diff --git a/404.html b/404.html index 30dd316d8a..2473719907 100644 --- a/404.html +++ b/404.html @@ -2,10 +2,10 @@ - -Page Not Found | Quickstart - - + +Page Not Found | Quickstart + +
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

diff --git a/assets/css/styles.01f7ab29.css b/assets/css/styles.01f7ab29.css deleted file mode 100644 index c06a1d018b..0000000000 --- a/assets/css/styles.01f7ab29.css +++ /dev/null @@ -1 +0,0 @@ -.col,.container{padding:0 var(--ifm-spacing-horizontal);width:100%}.markdown>h2,.markdown>h3,.markdown>h4,.markdown>h5,.markdown>h6{margin-bottom:calc(var(--ifm-heading-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown li,body{word-wrap:break-word}body,ol ol,ol ul,ul ol,ul ul{margin:0}pre,table{overflow:auto}blockquote,pre{margin:0 0 var(--ifm-spacing-vertical)}.breadcrumbs__link,.button{transition-timing-function:var(--ifm-transition-timing-default)}.button,code{vertical-align:middle}.button--outline.button--active,.button--outline:active,.button--outline:hover,:root{--ifm-button-color:var(--ifm-font-color-base-inverse)}.menu__link:hover,a{transition:color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--dark,:root{--ifm-navbar-link-hover-color:var(--ifm-color-primary)}.menu,.navbar-sidebar{overflow-x:hidden}:root,html[data-theme=dark]{--ifm-color-emphasis-500:var(--ifm-color-gray-500)}[data-theme=dark] details.history,[data-theme=light] details.history{--history-summary-icon:var(--docusaurus-details-decoration-color);--history-separator:var(--ifm-table-border-color)}.toggleButton_gllP,html{-webkit-tap-highlight-color:transparent}*,.loader,.loadingRing_RJI3 div{box-sizing:border-box}.clean-list,.containsTaskList_mC6p,.details_lb9f>summary,.dropdown__menu,.menu__list{list-style:none}:root{--ifm-color-scheme:light;--ifm-dark-value:10%;--ifm-darker-value:15%;--ifm-darkest-value:30%;--ifm-light-value:15%;--ifm-lighter-value:30%;--ifm-lightest-value:50%;--ifm-contrast-background-value:90%;--ifm-contrast-foreground-value:70%;--ifm-contrast-background-dark-value:70%;--ifm-contrast-foreground-dark-value:90%;--ifm-color-primary:#3578e5;--ifm-color-secondary:#ebedf0;--ifm-color-success:#00a400;--ifm-color-info:#54c7ec;--ifm-color-warning:#ffba00;--ifm-color-danger:#fa383e;--ifm-color-primary-dark:#306cce;--ifm-color-primary-darker:#2d66c3;--ifm-color-primary-darkest:#2554a0;--ifm-color-primary-light:#538ce9;--ifm-color-primary-lighter:#72a1ed;--ifm-color-primary-lightest:#9abcf2;--ifm-color-primary-contrast-background:#ebf2fc;--ifm-color-primary-contrast-foreground:#102445;--ifm-color-secondary-dark:#d4d5d8;--ifm-color-secondary-darker:#c8c9cc;--ifm-color-secondary-darkest:#a4a6a8;--ifm-color-secondary-light:#eef0f2;--ifm-color-secondary-lighter:#f1f2f5;--ifm-color-secondary-lightest:#f5f6f8;--ifm-color-secondary-contrast-background:#fdfdfe;--ifm-color-secondary-contrast-foreground:#474748;--ifm-color-success-dark:#009400;--ifm-color-success-darker:#008b00;--ifm-color-success-darkest:#007300;--ifm-color-success-light:#26b226;--ifm-color-success-lighter:#4dbf4d;--ifm-color-success-lightest:#80d280;--ifm-color-success-contrast-background:#e6f6e6;--ifm-color-success-contrast-foreground:#003100;--ifm-color-info-dark:#4cb3d4;--ifm-color-info-darker:#47a9c9;--ifm-color-info-darkest:#3b8ba5;--ifm-color-info-light:#6ecfef;--ifm-color-info-lighter:#87d8f2;--ifm-color-info-lightest:#aae3f6;--ifm-color-info-contrast-background:#eef9fd;--ifm-color-info-contrast-foreground:#193c47;--ifm-color-warning-dark:#e6a700;--ifm-color-warning-darker:#d99e00;--ifm-color-warning-darkest:#b38200;--ifm-color-warning-light:#ffc426;--ifm-color-warning-lighter:#ffcf4d;--ifm-color-warning-lightest:#ffdd80;--ifm-color-warning-contrast-background:#fff8e6;--ifm-color-warning-contrast-foreground:#4d3800;--ifm-color-danger-dark:#e13238;--ifm-color-danger-darker:#d53035;--ifm-color-danger-darkest:#af272b;--ifm-color-danger-light:#fb565b;--ifm-color-danger-lighter:#fb7478;--ifm-color-danger-lightest:#fd9c9f;--ifm-color-danger-contrast-background:#ffebec;--ifm-color-danger-contrast-foreground:#4b1113;--ifm-color-white:#fff;--ifm-color-black:#000;--ifm-color-gray-0:var(--ifm-color-white);--ifm-color-gray-100:#f5f6f7;--ifm-color-gray-200:#ebedf0;--ifm-color-gray-300:#dadde1;--ifm-color-gray-400:#ccd0d5;--ifm-color-gray-500:#bec3c9;--ifm-color-gray-600:#8d949e;--ifm-color-gray-700:#606770;--ifm-color-gray-800:#444950;--ifm-color-gray-900:#1c1e21;--ifm-color-gray-1000:var(--ifm-color-black);--ifm-color-emphasis-0:var(--ifm-color-gray-0);--ifm-color-emphasis-100:var(--ifm-color-gray-100);--ifm-color-emphasis-200:var(--ifm-color-gray-200);--ifm-color-emphasis-300:var(--ifm-color-gray-300);--ifm-color-emphasis-400:var(--ifm-color-gray-400);--ifm-color-emphasis-600:var(--ifm-color-gray-600);--ifm-color-emphasis-700:var(--ifm-color-gray-700);--ifm-color-emphasis-800:var(--ifm-color-gray-800);--ifm-color-emphasis-900:var(--ifm-color-gray-900);--ifm-color-emphasis-1000:var(--ifm-color-gray-1000);--ifm-color-content:var(--ifm-color-emphasis-900);--ifm-color-content-inverse:var(--ifm-color-emphasis-0);--ifm-color-content-secondary:#525860;--ifm-background-color:#0000;--ifm-background-surface-color:var(--ifm-color-content-inverse);--ifm-global-border-width:1px;--ifm-global-radius:0.4rem;--ifm-hover-overlay:#0000000d;--ifm-font-color-base:var(--ifm-color-content);--ifm-font-color-base-inverse:var(--ifm-color-content-inverse);--ifm-font-color-secondary:var(--ifm-color-content-secondary);--ifm-font-family-base:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ifm-font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--ifm-font-size-base:100%;--ifm-font-weight-light:300;--ifm-font-weight-normal:400;--ifm-font-weight-semibold:500;--ifm-font-weight-bold:700;--ifm-font-weight-base:var(--ifm-font-weight-normal);--ifm-line-height-base:1.65;--ifm-global-spacing:1rem;--ifm-spacing-vertical:var(--ifm-global-spacing);--ifm-spacing-horizontal:var(--ifm-global-spacing);--ifm-transition-fast:200ms;--ifm-transition-slow:400ms;--ifm-transition-timing-default:cubic-bezier(0.08,0.52,0.52,1);--ifm-global-shadow-lw:0 1px 2px 0 #0000001a;--ifm-global-shadow-md:0 5px 40px #0003;--ifm-global-shadow-tl:0 12px 28px 0 #0003,0 2px 4px 0 #0000001a;--ifm-z-index-dropdown:100;--ifm-z-index-fixed:200;--ifm-z-index-overlay:400;--ifm-container-width:1140px;--ifm-container-width-xl:1320px;--ifm-code-background:#f6f7f8;--ifm-code-border-radius:var(--ifm-global-radius);--ifm-code-font-size:90%;--ifm-code-padding-horizontal:0.1rem;--ifm-code-padding-vertical:0.1rem;--ifm-pre-background:var(--ifm-code-background);--ifm-pre-border-radius:var(--ifm-code-border-radius);--ifm-pre-color:inherit;--ifm-pre-line-height:1.45;--ifm-pre-padding:1rem;--ifm-heading-color:inherit;--ifm-heading-margin-top:0;--ifm-heading-margin-bottom:var(--ifm-spacing-vertical);--ifm-heading-font-family:var(--ifm-font-family-base);--ifm-heading-font-weight:var(--ifm-font-weight-bold);--ifm-heading-line-height:1.25;--ifm-h1-font-size:2rem;--ifm-h2-font-size:1.5rem;--ifm-h3-font-size:1.25rem;--ifm-h4-font-size:1rem;--ifm-h5-font-size:0.875rem;--ifm-h6-font-size:0.85rem;--ifm-image-alignment-padding:1.25rem;--ifm-leading-desktop:1.25;--ifm-leading:calc(var(--ifm-leading-desktop)*1rem);--ifm-list-left-padding:2rem;--ifm-list-margin:1rem;--ifm-list-item-margin:0.25rem;--ifm-list-paragraph-margin:1rem;--ifm-table-cell-padding:0.75rem;--ifm-table-background:#0000;--ifm-table-stripe-background:#00000008;--ifm-table-border-width:1px;--ifm-table-border-color:var(--ifm-color-emphasis-300);--ifm-table-head-background:inherit;--ifm-table-head-color:inherit;--ifm-table-head-font-weight:var(--ifm-font-weight-bold);--ifm-table-cell-color:inherit;--ifm-link-color:var(--ifm-color-primary);--ifm-link-decoration:none;--ifm-link-hover-color:var(--ifm-link-color);--ifm-link-hover-decoration:underline;--ifm-paragraph-margin-bottom:var(--ifm-leading);--ifm-blockquote-font-size:var(--ifm-font-size-base);--ifm-blockquote-border-left-width:2px;--ifm-blockquote-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-blockquote-padding-vertical:0;--ifm-blockquote-shadow:none;--ifm-blockquote-color:var(--ifm-color-emphasis-800);--ifm-blockquote-border-color:var(--ifm-color-emphasis-300);--ifm-hr-background-color:var(--ifm-color-emphasis-500);--ifm-hr-height:1px;--ifm-hr-margin-vertical:1.5rem;--ifm-scrollbar-size:7px;--ifm-scrollbar-track-background-color:#f1f1f1;--ifm-scrollbar-thumb-background-color:silver;--ifm-scrollbar-thumb-hover-background-color:#a7a7a7;--ifm-alert-background-color:inherit;--ifm-alert-border-color:inherit;--ifm-alert-border-radius:var(--ifm-global-radius);--ifm-alert-border-width:0px;--ifm-alert-border-left-width:5px;--ifm-alert-color:var(--ifm-font-color-base);--ifm-alert-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-alert-padding-vertical:var(--ifm-spacing-vertical);--ifm-alert-shadow:var(--ifm-global-shadow-lw);--ifm-avatar-intro-margin:1rem;--ifm-avatar-intro-alignment:inherit;--ifm-avatar-photo-size:3rem;--ifm-badge-background-color:inherit;--ifm-badge-border-color:inherit;--ifm-badge-border-radius:var(--ifm-global-radius);--ifm-badge-border-width:var(--ifm-global-border-width);--ifm-badge-color:var(--ifm-color-white);--ifm-badge-padding-horizontal:calc(var(--ifm-spacing-horizontal)*0.5);--ifm-badge-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-breadcrumb-border-radius:1.5rem;--ifm-breadcrumb-spacing:0.5rem;--ifm-breadcrumb-color-active:var(--ifm-color-primary);--ifm-breadcrumb-item-background-active:var(--ifm-hover-overlay);--ifm-breadcrumb-padding-horizontal:0.8rem;--ifm-breadcrumb-padding-vertical:0.4rem;--ifm-breadcrumb-size-multiplier:1;--ifm-breadcrumb-separator:url('data:image/svg+xml;utf8,');--ifm-breadcrumb-separator-filter:none;--ifm-breadcrumb-separator-size:0.5rem;--ifm-breadcrumb-separator-size-multiplier:1.25;--ifm-button-background-color:inherit;--ifm-button-border-color:var(--ifm-button-background-color);--ifm-button-border-width:var(--ifm-global-border-width);--ifm-button-font-weight:var(--ifm-font-weight-bold);--ifm-button-padding-horizontal:1.5rem;--ifm-button-padding-vertical:0.375rem;--ifm-button-size-multiplier:1;--ifm-button-transition-duration:var(--ifm-transition-fast);--ifm-button-border-radius:calc(var(--ifm-global-radius)*var(--ifm-button-size-multiplier));--ifm-button-group-spacing:2px;--ifm-card-background-color:var(--ifm-background-surface-color);--ifm-card-border-radius:calc(var(--ifm-global-radius)*2);--ifm-card-horizontal-spacing:var(--ifm-global-spacing);--ifm-card-vertical-spacing:var(--ifm-global-spacing);--ifm-toc-border-color:var(--ifm-color-emphasis-300);--ifm-toc-link-color:var(--ifm-color-content-secondary);--ifm-toc-padding-vertical:0.5rem;--ifm-toc-padding-horizontal:0.5rem;--ifm-dropdown-background-color:var(--ifm-background-surface-color);--ifm-dropdown-font-weight:var(--ifm-font-weight-semibold);--ifm-dropdown-link-color:var(--ifm-font-color-base);--ifm-dropdown-hover-background-color:var(--ifm-hover-overlay);--ifm-footer-background-color:var(--ifm-color-emphasis-100);--ifm-footer-color:inherit;--ifm-footer-link-color:var(--ifm-color-emphasis-700);--ifm-footer-link-hover-color:var(--ifm-color-primary);--ifm-footer-link-horizontal-spacing:0.5rem;--ifm-footer-padding-horizontal:calc(var(--ifm-spacing-horizontal)*2);--ifm-footer-padding-vertical:calc(var(--ifm-spacing-vertical)*2);--ifm-footer-title-color:inherit;--ifm-footer-logo-max-width:min(30rem,90vw);--ifm-hero-background-color:var(--ifm-background-surface-color);--ifm-hero-text-color:var(--ifm-color-emphasis-800);--ifm-menu-color:var(--ifm-color-emphasis-700);--ifm-menu-color-active:var(--ifm-color-primary);--ifm-menu-color-background-active:var(--ifm-hover-overlay);--ifm-menu-color-background-hover:var(--ifm-hover-overlay);--ifm-menu-link-padding-horizontal:0.75rem;--ifm-menu-link-padding-vertical:0.375rem;--ifm-menu-link-sublist-icon:url('data:image/svg+xml;utf8,');--ifm-menu-link-sublist-icon-filter:none;--ifm-navbar-background-color:var(--ifm-background-surface-color);--ifm-navbar-height:3.75rem;--ifm-navbar-item-padding-horizontal:0.75rem;--ifm-navbar-item-padding-vertical:0.25rem;--ifm-navbar-link-color:var(--ifm-font-color-base);--ifm-navbar-link-active-color:var(--ifm-link-color);--ifm-navbar-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-navbar-padding-vertical:calc(var(--ifm-spacing-vertical)*0.5);--ifm-navbar-shadow:var(--ifm-global-shadow-lw);--ifm-navbar-search-input-background-color:var(--ifm-color-emphasis-200);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-800);--ifm-navbar-search-input-placeholder-color:var(--ifm-color-emphasis-500);--ifm-navbar-search-input-icon:url('data:image/svg+xml;utf8,');--ifm-navbar-sidebar-width:83vw;--ifm-pagination-border-radius:var(--ifm-global-radius);--ifm-pagination-color-active:var(--ifm-color-primary);--ifm-pagination-font-size:1rem;--ifm-pagination-item-active-background:var(--ifm-hover-overlay);--ifm-pagination-page-spacing:0.2em;--ifm-pagination-padding-horizontal:calc(var(--ifm-spacing-horizontal)*1);--ifm-pagination-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-pagination-nav-border-radius:var(--ifm-global-radius);--ifm-pagination-nav-color-hover:var(--ifm-color-primary);--ifm-pills-color-active:var(--ifm-color-primary);--ifm-pills-color-background-active:var(--ifm-hover-overlay);--ifm-pills-spacing:0.125rem;--ifm-tabs-color:var(--ifm-font-color-secondary);--ifm-tabs-color-active:var(--ifm-color-primary);--ifm-tabs-color-active-border:var(--ifm-tabs-color-active);--ifm-tabs-padding-horizontal:1rem;--ifm-tabs-padding-vertical:1rem;--docusaurus-progress-bar-color:var(--ifm-color-primary);--ifm-color-primary:#45aaf2;--ifm-color-primary-dark:#3d98d1;--ifm-color-primary-darker:#3788bf;--ifm-color-primary-darkest:#2d6e99;--ifm-color-primary-light:#66b5f8;--ifm-color-primary-lighter:#80bff9;--ifm-color-primary-lightest:#99c9fa;--ifm-code-font-size:95%;--docusaurus-highlighted-code-line-bg:#21657e0d;--ifm-table-stripe-background:#c6ddff!important;--ifm-table-background:#fdfdfd7a!important;--docusaurus-announcement-bar-height:auto;--docusaurus-tag-list-border:var(--ifm-color-emphasis-300);--docusaurus-collapse-button-bg:#0000;--docusaurus-collapse-button-bg-hover:#0000001a;--doc-sidebar-width:300px;--doc-sidebar-hidden-width:30px}.badge--danger,.badge--info,.badge--primary,.badge--secondary,.badge--success,.badge--warning{--ifm-badge-border-color:var(--ifm-badge-background-color)}.button--link,.button--outline{--ifm-button-background-color:#0000}html{-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%;background-color:var(--ifm-background-color);color:var(--ifm-font-color-base);color-scheme:var(--ifm-color-scheme);font:var(--ifm-font-size-base)/var(--ifm-line-height-base) var(--ifm-font-family-base);text-rendering:optimizelegibility}iframe{border:0;color-scheme:auto}.container{margin:0 auto;max-width:var(--ifm-container-width)}.container--fluid{max-width:inherit}.row{display:flex;flex-wrap:wrap;margin:0 calc(var(--ifm-spacing-horizontal)*-1)}.list_eTzJ article:last-child,.margin-bottom--none,.margin-vert--none,.markdown>:last-child{margin-bottom:0!important}.margin-top--none,.margin-vert--none,.tabItem_LNqP{margin-top:0!important}.row--no-gutters{margin-left:0;margin-right:0}.margin-horiz--none,.margin-right--none{margin-right:0!important}.row--no-gutters>.col{padding-left:0;padding-right:0}.row--align-top{align-items:flex-start}.row--align-bottom{align-items:flex-end}.menuExternalLink_NmtK,.row--align-center{align-items:center}.row--align-stretch{align-items:stretch}.row--align-baseline{align-items:baseline}.col{--ifm-col-width:100%;flex:1 0;margin-left:0;max-width:var(--ifm-col-width)}.padding-bottom--none,.padding-vert--none{padding-bottom:0!important}.padding-top--none,.padding-vert--none{padding-top:0!important}.padding-horiz--none,.padding-left--none{padding-left:0!important}.padding-horiz--none,.padding-right--none{padding-right:0!important}.col[class*=col--]{flex:0 0 var(--ifm-col-width)}.col--1{--ifm-col-width:8.33333%}.col--offset-1{margin-left:8.33333%}.col--2{--ifm-col-width:16.66667%}.col--offset-2{margin-left:16.66667%}.col--3{--ifm-col-width:25%}.col--offset-3{margin-left:25%}.col--4{--ifm-col-width:33.33333%}.col--offset-4{margin-left:33.33333%}.col--5{--ifm-col-width:41.66667%}.col--offset-5{margin-left:41.66667%}.col--6{--ifm-col-width:50%}.col--offset-6{margin-left:50%}.col--7{--ifm-col-width:58.33333%}.col--offset-7{margin-left:58.33333%}.col--8{--ifm-col-width:66.66667%}.col--offset-8{margin-left:66.66667%}.col--9{--ifm-col-width:75%}.col--offset-9{margin-left:75%}.col--10{--ifm-col-width:83.33333%}.col--offset-10{margin-left:83.33333%}.col--11{--ifm-col-width:91.66667%}.col--offset-11{margin-left:91.66667%}.col--12{--ifm-col-width:100%}.col--offset-12{margin-left:100%}.margin-horiz--none,.margin-left--none{margin-left:0!important}.margin--none{margin:0!important}.margin-bottom--xs,.margin-vert--xs{margin-bottom:.25rem!important}.margin-top--xs,.margin-vert--xs{margin-top:.25rem!important}.margin-horiz--xs,.margin-left--xs{margin-left:.25rem!important}.margin-horiz--xs,.margin-right--xs{margin-right:.25rem!important}.margin--xs{margin:.25rem!important}.margin-bottom--sm,.margin-vert--sm{margin-bottom:.5rem!important}.margin-top--sm,.margin-vert--sm{margin-top:.5rem!important}.margin-horiz--sm,.margin-left--sm{margin-left:.5rem!important}.margin-horiz--sm,.margin-right--sm{margin-right:.5rem!important}.margin--sm{margin:.5rem!important}.margin-bottom--md,.margin-vert--md{margin-bottom:1rem!important}.margin-top--md,.margin-vert--md{margin-top:1rem!important}.margin-horiz--md,.margin-left--md{margin-left:1rem!important}.margin-horiz--md,.margin-right--md{margin-right:1rem!important}.margin--md{margin:1rem!important}.margin-bottom--lg,.margin-vert--lg{margin-bottom:2rem!important}.margin-top--lg,.margin-vert--lg{margin-top:2rem!important}.margin-horiz--lg,.margin-left--lg{margin-left:2rem!important}.margin-horiz--lg,.margin-right--lg{margin-right:2rem!important}.margin--lg{margin:2rem!important}.margin-bottom--xl,.margin-vert--xl{margin-bottom:5rem!important}.margin-top--xl,.margin-vert--xl{margin-top:5rem!important}.margin-horiz--xl,.margin-left--xl{margin-left:5rem!important}.margin-horiz--xl,.margin-right--xl{margin-right:5rem!important}.margin--xl{margin:5rem!important}.padding--none{padding:0!important}.padding-bottom--xs,.padding-vert--xs{padding-bottom:.25rem!important}.padding-top--xs,.padding-vert--xs{padding-top:.25rem!important}.padding-horiz--xs,.padding-left--xs{padding-left:.25rem!important}.padding-horiz--xs,.padding-right--xs{padding-right:.25rem!important}.padding--xs{padding:.25rem!important}.padding-bottom--sm,.padding-vert--sm{padding-bottom:.5rem!important}.padding-top--sm,.padding-vert--sm{padding-top:.5rem!important}.padding-horiz--sm,.padding-left--sm{padding-left:.5rem!important}.padding-horiz--sm,.padding-right--sm{padding-right:.5rem!important}.padding--sm{padding:.5rem!important}.padding-bottom--md,.padding-vert--md{padding-bottom:1rem!important}.padding-top--md,.padding-vert--md{padding-top:1rem!important}.padding-horiz--md,.padding-left--md{padding-left:1rem!important}.padding-horiz--md,.padding-right--md{padding-right:1rem!important}.padding--md{padding:1rem!important}.padding-bottom--lg,.padding-vert--lg{padding-bottom:2rem!important}.padding-top--lg,.padding-vert--lg{padding-top:2rem!important}.padding-horiz--lg,.padding-left--lg{padding-left:2rem!important}.padding-horiz--lg,.padding-right--lg{padding-right:2rem!important}.padding--lg{padding:2rem!important}.padding-bottom--xl,.padding-vert--xl{padding-bottom:5rem!important}.padding-top--xl,.padding-vert--xl{padding-top:5rem!important}.padding-horiz--xl,.padding-left--xl{padding-left:5rem!important}.padding-horiz--xl,.padding-right--xl{padding-right:5rem!important}.padding--xl{padding:5rem!important}code{background-color:var(--ifm-code-background);border:.1rem solid #0000001a;border-radius:var(--ifm-code-border-radius);font-family:var(--ifm-font-family-monospace);font-size:var(--ifm-code-font-size);padding:var(--ifm-code-padding-vertical) var(--ifm-code-padding-horizontal)}a code{color:inherit}pre{background-color:var(--ifm-pre-background);border-radius:var(--ifm-pre-border-radius);color:var(--ifm-pre-color);font:var(--ifm-code-font-size)/var(--ifm-pre-line-height) var(--ifm-font-family-monospace);padding:var(--ifm-pre-padding)}pre code{background-color:initial;border:none;font-size:100%;line-height:inherit;padding:0}kbd{background-color:var(--ifm-color-emphasis-0);border:1px solid var(--ifm-color-emphasis-400);border-radius:.2rem;box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-400);color:var(--ifm-color-emphasis-800);font:80% var(--ifm-font-family-monospace);padding:.15rem .3rem}h1,h2,h3,h4,h5,h6{color:var(--ifm-heading-color);font-family:var(--ifm-heading-font-family);font-weight:var(--ifm-heading-font-weight);line-height:var(--ifm-heading-line-height);margin:var(--ifm-heading-margin-top) 0 var(--ifm-heading-margin-bottom) 0}h1{font-size:var(--ifm-h1-font-size)}h2{font-size:var(--ifm-h2-font-size)}h3{font-size:var(--ifm-h3-font-size)}h4{font-size:var(--ifm-h4-font-size)}h5{font-size:var(--ifm-h5-font-size)}h6{font-size:var(--ifm-h6-font-size)}img{max-width:100%}img[align=right]{padding-left:var(--image-alignment-padding)}img[align=left]{padding-right:var(--image-alignment-padding)}.markdown{--ifm-h1-vertical-rhythm-top:3;--ifm-h2-vertical-rhythm-top:2;--ifm-h3-vertical-rhythm-top:1.5;--ifm-heading-vertical-rhythm-top:1.25;--ifm-h1-vertical-rhythm-bottom:1.25;--ifm-heading-vertical-rhythm-bottom:1}.markdown:after,.markdown:before{content:"";display:table}.markdown:after{clear:both}.markdown h1:first-child{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-h1-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown>h2{--ifm-h2-font-size:2rem;margin-top:calc(var(--ifm-h2-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h3{--ifm-h3-font-size:1.5rem;margin-top:calc(var(--ifm-h3-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h4,.markdown>h5,.markdown>h6{margin-top:calc(var(--ifm-heading-vertical-rhythm-top)*var(--ifm-leading))}.markdown>p,.markdown>pre,.markdown>ul,.tabList__CuJ{margin-bottom:var(--ifm-leading)}.markdown li>p{margin-top:var(--ifm-list-paragraph-margin)}.markdown li+li{margin-top:var(--ifm-list-item-margin)}ol,ul{margin:0 0 var(--ifm-list-margin);padding-left:var(--ifm-list-left-padding)}ol ol,ul ol{list-style-type:lower-roman}ol ol ol,ol ul ol,ul ol ol,ul ul ol{list-style-type:lower-alpha}table{border-collapse:collapse;display:block;margin-bottom:var(--ifm-spacing-vertical)}table thead tr{border-bottom:2px solid var(--ifm-table-border-color)}table thead,table tr:nth-child(2n){background-color:var(--ifm-table-stripe-background)}table tr{background-color:var(--ifm-table-background);border-top:var(--ifm-table-border-width) solid var(--ifm-table-border-color)}table td,table th{border:var(--ifm-table-border-width) solid var(--ifm-table-border-color);padding:var(--ifm-table-cell-padding)}table th{background-color:var(--ifm-table-head-background);color:var(--ifm-table-head-color);font-weight:var(--ifm-table-head-font-weight)}table td{color:var(--ifm-table-cell-color)}strong{font-weight:var(--ifm-font-weight-bold)}a{color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}a:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button:hover,.text--no-decoration,.text--no-decoration:hover,a:not([href]){text-decoration:none}p{margin:0 0 var(--ifm-paragraph-margin-bottom)}blockquote{border-left:var(--ifm-blockquote-border-left-width) solid var(--ifm-blockquote-border-color);box-shadow:var(--ifm-blockquote-shadow);color:var(--ifm-blockquote-color);font-size:var(--ifm-blockquote-font-size);padding:var(--ifm-blockquote-padding-vertical) var(--ifm-blockquote-padding-horizontal)}blockquote>:first-child{margin-top:0}blockquote>:last-child{margin-bottom:0}hr{background-color:var(--ifm-hr-background-color);border:0;height:var(--ifm-hr-height);margin:var(--ifm-hr-margin-vertical) 0}.shadow--lw{box-shadow:var(--ifm-global-shadow-lw)!important}.shadow--md{box-shadow:var(--ifm-global-shadow-md)!important}.shadow--tl{box-shadow:var(--ifm-global-shadow-tl)!important}.text--primary,.wordWrapButtonEnabled_EoeP .wordWrapButtonIcon_Bwma{color:var(--ifm-color-primary)}.text--secondary{color:var(--ifm-color-secondary)}.text--success{color:var(--ifm-color-success)}.text--info{color:var(--ifm-color-info)}.text--warning{color:var(--ifm-color-warning)}.text--danger{color:var(--ifm-color-danger)}.text--center{text-align:center}.text--left,details.history table thead th{text-align:left}.text--justify{text-align:justify}.text--right{text-align:right}.text--capitalize{text-transform:capitalize}.text--lowercase{text-transform:lowercase}.admonitionHeading_Gvgb,.alert__heading,.text--uppercase{text-transform:uppercase}.text--light{font-weight:var(--ifm-font-weight-light)}.text--normal{font-weight:var(--ifm-font-weight-normal)}.text--semibold{font-weight:var(--ifm-font-weight-semibold)}.text--bold{font-weight:var(--ifm-font-weight-bold)}.text--italic{font-style:italic}.text--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text--break{word-wrap:break-word!important;word-break:break-word!important}.clean-btn{background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;padding:0}.alert,.alert .close{color:var(--ifm-alert-foreground-color)}.clean-list{padding-left:0}.alert--primary{--ifm-alert-background-color:var(--ifm-color-primary-contrast-background);--ifm-alert-background-color-highlight:#3578e526;--ifm-alert-foreground-color:var(--ifm-color-primary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-primary-dark)}.alert--secondary{--ifm-alert-background-color:var(--ifm-color-secondary-contrast-background);--ifm-alert-background-color-highlight:#ebedf026;--ifm-alert-foreground-color:var(--ifm-color-secondary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-secondary-dark)}.alert--success{--ifm-alert-background-color:var(--ifm-color-success-contrast-background);--ifm-alert-background-color-highlight:#00a40026;--ifm-alert-foreground-color:var(--ifm-color-success-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-success-dark)}.alert--info{--ifm-alert-background-color:var(--ifm-color-info-contrast-background);--ifm-alert-background-color-highlight:#54c7ec26;--ifm-alert-foreground-color:var(--ifm-color-info-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-info-dark)}.alert--warning{--ifm-alert-background-color:var(--ifm-color-warning-contrast-background);--ifm-alert-background-color-highlight:#ffba0026;--ifm-alert-foreground-color:var(--ifm-color-warning-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-warning-dark)}.alert--danger{--ifm-alert-background-color:var(--ifm-color-danger-contrast-background);--ifm-alert-background-color-highlight:#fa383e26;--ifm-alert-foreground-color:var(--ifm-color-danger-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-danger-dark)}.alert{--ifm-code-background:var(--ifm-alert-background-color-highlight);--ifm-link-color:var(--ifm-alert-foreground-color);--ifm-link-hover-color:var(--ifm-alert-foreground-color);--ifm-link-decoration:underline;--ifm-tabs-color:var(--ifm-alert-foreground-color);--ifm-tabs-color-active:var(--ifm-alert-foreground-color);--ifm-tabs-color-active-border:var(--ifm-alert-border-color);background-color:var(--ifm-alert-background-color);border:var(--ifm-alert-border-width) solid var(--ifm-alert-border-color);border-left-width:var(--ifm-alert-border-left-width);border-radius:var(--ifm-alert-border-radius);box-shadow:var(--ifm-alert-shadow);padding:var(--ifm-alert-padding-vertical) var(--ifm-alert-padding-horizontal)}.alert__heading{align-items:center;display:flex;font:700 var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.5rem}.alert__icon{display:inline-flex;margin-right:.4em}.alert__icon svg{fill:var(--ifm-alert-foreground-color);stroke:var(--ifm-alert-foreground-color);stroke-width:0}.alert .close{margin:calc(var(--ifm-alert-padding-vertical)*-1) calc(var(--ifm-alert-padding-horizontal)*-1) 0 0;opacity:.75}.alert .close:focus,.alert .close:hover{opacity:1}.alert a{text-decoration-color:var(--ifm-alert-border-color)}.alert a:hover{text-decoration-thickness:2px}.avatar{column-gap:var(--ifm-avatar-intro-margin);display:flex}.avatar__photo{border-radius:50%;display:block;height:var(--ifm-avatar-photo-size);overflow:hidden;width:var(--ifm-avatar-photo-size)}.card--full-height,.navbar__logo img,body,html{height:100%}.avatar__photo--sm{--ifm-avatar-photo-size:2rem}.avatar__photo--lg{--ifm-avatar-photo-size:4rem}.avatar__photo--xl{--ifm-avatar-photo-size:6rem}.avatar__intro{display:flex;flex:1 1;flex-direction:column;justify-content:center;text-align:var(--ifm-avatar-intro-alignment)}.badge,.breadcrumbs__item,.breadcrumbs__link,.button,.dropdown>.navbar__link:after,.searchBarContainer_NW3z.searchIndexLoading_EJ1f .searchBarLoadingRing_YnHq{display:inline-block}.avatar__name{font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base)}.avatar__subtitle{margin-top:.25rem}.avatar--vertical{--ifm-avatar-intro-alignment:center;--ifm-avatar-intro-margin:0.5rem;align-items:center;flex-direction:column}.badge{background-color:var(--ifm-badge-background-color);border:var(--ifm-badge-border-width) solid var(--ifm-badge-border-color);border-radius:var(--ifm-badge-border-radius);color:var(--ifm-badge-color);font-size:75%;font-weight:var(--ifm-font-weight-bold);line-height:1;padding:var(--ifm-badge-padding-vertical) var(--ifm-badge-padding-horizontal)}.badge--primary{--ifm-badge-background-color:var(--ifm-color-primary)}.badge--secondary{--ifm-badge-background-color:var(--ifm-color-secondary);color:var(--ifm-color-black)}.breadcrumbs__link,.button.button--secondary.button--outline:not(.button--active):not(:hover){color:var(--ifm-font-color-base)}.badge--success{--ifm-badge-background-color:var(--ifm-color-success)}.badge--info{--ifm-badge-background-color:var(--ifm-color-info)}.badge--warning{--ifm-badge-background-color:var(--ifm-color-warning)}.badge--danger{--ifm-badge-background-color:var(--ifm-color-danger)}.breadcrumbs{margin-bottom:0;padding-left:0}.breadcrumbs__item:not(:last-child):after{background:var(--ifm-breadcrumb-separator) center;content:" ";display:inline-block;filter:var(--ifm-breadcrumb-separator-filter);height:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier));margin:0 var(--ifm-breadcrumb-spacing);opacity:.5;width:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier))}.breadcrumbs__item--active .breadcrumbs__link{background:var(--ifm-breadcrumb-item-background-active);color:var(--ifm-breadcrumb-color-active)}.breadcrumbs__link{border-radius:var(--ifm-breadcrumb-border-radius);font-size:calc(1rem*var(--ifm-breadcrumb-size-multiplier));padding:calc(var(--ifm-breadcrumb-padding-vertical)*var(--ifm-breadcrumb-size-multiplier)) calc(var(--ifm-breadcrumb-padding-horizontal)*var(--ifm-breadcrumb-size-multiplier));transition-duration:var(--ifm-transition-fast);transition-property:background,color}.breadcrumbs__link:any-link:hover,.breadcrumbs__link:link:hover,.breadcrumbs__link:visited:hover,area[href].breadcrumbs__link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs--sm{--ifm-breadcrumb-size-multiplier:0.8}.breadcrumbs--lg{--ifm-breadcrumb-size-multiplier:1.2}.button{background-color:var(--ifm-button-background-color);border:var(--ifm-button-border-width) solid var(--ifm-button-border-color);border-radius:var(--ifm-button-border-radius);cursor:pointer;font-size:calc(.875rem*var(--ifm-button-size-multiplier));font-weight:var(--ifm-button-font-weight);line-height:1.5;padding:calc(var(--ifm-button-padding-vertical)*var(--ifm-button-size-multiplier)) calc(var(--ifm-button-padding-horizontal)*var(--ifm-button-size-multiplier));text-align:center;transition-duration:var(--ifm-button-transition-duration);transition-property:color,background,border-color;-webkit-user-select:none;user-select:none;white-space:nowrap}.button,.button:hover{color:var(--ifm-button-color)}.button--outline{--ifm-button-color:var(--ifm-button-border-color)}.button--outline:hover{--ifm-button-background-color:var(--ifm-button-border-color)}.button--link{--ifm-button-border-color:#0000;color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}.button--link.button--active,.button--link:active,.button--link:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button.disabled,.button:disabled,.button[disabled]{opacity:.65;pointer-events:none}.button--sm{--ifm-button-size-multiplier:0.8}.button--lg{--ifm-button-size-multiplier:1.35}.button--block{display:block;width:100%}.button.button--secondary{color:var(--ifm-color-gray-900)}:where(.button--primary){--ifm-button-background-color:var(--ifm-color-primary);--ifm-button-border-color:var(--ifm-color-primary)}:where(.button--primary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-primary-dark);--ifm-button-border-color:var(--ifm-color-primary-dark)}.button--primary.button--active,.button--primary:active{--ifm-button-background-color:var(--ifm-color-primary-darker);--ifm-button-border-color:var(--ifm-color-primary-darker)}:where(.button--secondary){--ifm-button-background-color:var(--ifm-color-secondary);--ifm-button-border-color:var(--ifm-color-secondary)}:where(.button--secondary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-secondary-dark);--ifm-button-border-color:var(--ifm-color-secondary-dark)}.button--secondary.button--active,.button--secondary:active{--ifm-button-background-color:var(--ifm-color-secondary-darker);--ifm-button-border-color:var(--ifm-color-secondary-darker)}:where(.button--success){--ifm-button-background-color:var(--ifm-color-success);--ifm-button-border-color:var(--ifm-color-success)}:where(.button--success):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-success-dark);--ifm-button-border-color:var(--ifm-color-success-dark)}.button--success.button--active,.button--success:active{--ifm-button-background-color:var(--ifm-color-success-darker);--ifm-button-border-color:var(--ifm-color-success-darker)}:where(.button--info){--ifm-button-background-color:var(--ifm-color-info);--ifm-button-border-color:var(--ifm-color-info)}:where(.button--info):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-info-dark);--ifm-button-border-color:var(--ifm-color-info-dark)}.button--info.button--active,.button--info:active{--ifm-button-background-color:var(--ifm-color-info-darker);--ifm-button-border-color:var(--ifm-color-info-darker)}:where(.button--warning){--ifm-button-background-color:var(--ifm-color-warning);--ifm-button-border-color:var(--ifm-color-warning)}:where(.button--warning):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-warning-dark);--ifm-button-border-color:var(--ifm-color-warning-dark)}.button--warning.button--active,.button--warning:active{--ifm-button-background-color:var(--ifm-color-warning-darker);--ifm-button-border-color:var(--ifm-color-warning-darker)}:where(.button--danger){--ifm-button-background-color:var(--ifm-color-danger);--ifm-button-border-color:var(--ifm-color-danger)}:where(.button--danger):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-danger-dark);--ifm-button-border-color:var(--ifm-color-danger-dark)}.button--danger.button--active,.button--danger:active{--ifm-button-background-color:var(--ifm-color-danger-darker);--ifm-button-border-color:var(--ifm-color-danger-darker)}.button-group{display:inline-flex;gap:var(--ifm-button-group-spacing)}.button-group>.button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.button-group>.button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.button-group--block{display:flex;justify-content:stretch}.button-group--block>.button{flex-grow:1}.card{background-color:var(--ifm-card-background-color);border-radius:var(--ifm-card-border-radius);box-shadow:var(--ifm-global-shadow-lw);display:flex;flex-direction:column;overflow:hidden}.card__image{padding-top:var(--ifm-card-vertical-spacing)}.card__image:first-child{padding-top:0}.card__body,.card__footer,.card__header{padding:var(--ifm-card-vertical-spacing) var(--ifm-card-horizontal-spacing)}.card__body:not(:last-child),.card__footer:not(:last-child),.card__header:not(:last-child){padding-bottom:0}.card__body>:last-child,.card__footer>:last-child,.card__header>:last-child{margin-bottom:0}.card__footer{margin-top:auto}.table-of-contents{font-size:.8rem;margin-bottom:0;padding:var(--ifm-toc-padding-vertical) 0}.table-of-contents,.table-of-contents ul{list-style:none;padding-left:var(--ifm-toc-padding-horizontal)}.table-of-contents li{margin:var(--ifm-toc-padding-vertical) var(--ifm-toc-padding-horizontal)}.table-of-contents__left-border{border-left:1px solid var(--ifm-toc-border-color)}.table-of-contents__link{color:var(--ifm-toc-link-color);display:block}.table-of-contents__link--active,.table-of-contents__link--active code,.table-of-contents__link:hover,.table-of-contents__link:hover code{color:var(--ifm-color-primary);text-decoration:none}.content_knG7 a,.hitFooter_E9YW a,.suggestion_fB_2.cursor_eG29 mark{text-decoration:underline}.close{color:var(--ifm-color-black);float:right;font-size:1.5rem;font-weight:var(--ifm-font-weight-bold);line-height:1;opacity:.5;padding:1rem;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.close:hover{opacity:.7}.close:focus,.theme-code-block-highlighted-line .codeLineNumber_Tfdd:before{opacity:.8}.dropdown{display:inline-flex;font-weight:var(--ifm-dropdown-font-weight);position:relative;vertical-align:top}.dropdown--hoverable:hover .dropdown__menu,.dropdown--show .dropdown__menu{opacity:1;pointer-events:all;transform:translateY(-1px);visibility:visible}.dropdown--right .dropdown__menu{left:inherit;right:0}.dropdown--nocaret .navbar__link:after{content:none!important}.dropdown__menu{background-color:var(--ifm-dropdown-background-color);border-radius:var(--ifm-global-radius);box-shadow:var(--ifm-global-shadow-md);left:0;max-height:80vh;min-width:10rem;opacity:0;overflow-y:auto;padding:.5rem;pointer-events:none;position:absolute;top:calc(100% - var(--ifm-navbar-item-padding-vertical) + .3rem);transform:translateY(-.625rem);transition-duration:var(--ifm-transition-fast);transition-property:opacity,transform,visibility;transition-timing-function:var(--ifm-transition-timing-default);visibility:hidden;z-index:var(--ifm-z-index-dropdown)}.menu__caret,.menu__link,.menu__list-item-collapsible{border-radius:.25rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.dropdown__link{border-radius:.25rem;color:var(--ifm-dropdown-link-color);display:block;font-size:.875rem;margin-top:.2rem;padding:.25rem .5rem;white-space:nowrap}.dropdown__link--active,.dropdown__link:hover{background-color:var(--ifm-dropdown-hover-background-color);color:var(--ifm-dropdown-link-color);text-decoration:none}.dropdown__link--active,.dropdown__link--active:hover{--ifm-dropdown-link-color:var(--ifm-link-color)}.dropdown>.navbar__link:after{border-color:currentcolor #0000;border-style:solid;border-width:.4em .4em 0;content:"";margin-left:.3em;position:relative;top:2px;transform:translateY(-50%)}.footer{background-color:var(--ifm-footer-background-color);color:var(--ifm-footer-color);padding:var(--ifm-footer-padding-vertical) var(--ifm-footer-padding-horizontal)}.footer--dark{--ifm-footer-background-color:#303846;--ifm-footer-color:var(--ifm-footer-link-color);--ifm-footer-link-color:var(--ifm-color-secondary);--ifm-footer-title-color:var(--ifm-color-white)}.footer__links{margin-bottom:1rem}.footer__link-item{color:var(--ifm-footer-link-color);line-height:2}.footer__link-item:hover{color:var(--ifm-footer-link-hover-color)}.footer__link-separator{margin:0 var(--ifm-footer-link-horizontal-spacing)}.footer__logo{margin-top:1rem;max-width:var(--ifm-footer-logo-max-width)}.footer__title{color:var(--ifm-footer-title-color);font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base);margin-bottom:var(--ifm-heading-margin-bottom)}.menu,.navbar__link{font-weight:var(--ifm-font-weight-semibold)}.docItemContainer_Djhp article>:first-child,.docItemContainer_Djhp header+*,.footer__item{margin-top:0}.admonitionContent_BuS1>:last-child,.cardContainer_fWXF :last-child,.collapsibleContent_i85q p:last-child,.details_lb9f>summary>p:last-child,.footer__items,.searchResultItem_U687>h2,.tabItem_Ymn6>:last-child{margin-bottom:0}.codeBlockStandalone_MEMb,[type=checkbox]{padding:0}.hero{align-items:center;background-color:var(--ifm-hero-background-color);color:var(--ifm-hero-text-color);display:flex;padding:4rem 2rem}.hero--primary{--ifm-hero-background-color:var(--ifm-color-primary);--ifm-hero-text-color:var(--ifm-font-color-base-inverse)}.hero--dark{--ifm-hero-background-color:#303846;--ifm-hero-text-color:var(--ifm-color-white)}.hero__title{font-size:3rem}.hero__subtitle{font-size:1.5rem}.menu__list{margin:0;padding-left:0}.menu__caret,.menu__link{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu__list .menu__list{flex:0 0 100%;margin-top:.25rem;padding-left:var(--ifm-menu-link-padding-horizontal)}.menu__list-item:not(:first-child){margin-top:.25rem}.menu__list-item--collapsed .menu__list{height:0;overflow:hidden}.details_lb9f[data-collapsed=false].isBrowser_bmU9>summary:before,.details_lb9f[open]:not(.isBrowser_bmU9)>summary:before,.menu__list-item--collapsed .menu__caret:before,.menu__list-item--collapsed .menu__link--sublist:after{transform:rotate(90deg)}.menu__list-item-collapsible{display:flex;flex-wrap:wrap;position:relative}.menu__caret:hover,.menu__link:hover,.menu__list-item-collapsible--active,.menu__list-item-collapsible:hover{background:var(--ifm-menu-color-background-hover)}.menu__list-item-collapsible .menu__link--active,.menu__list-item-collapsible .menu__link:hover{background:none!important}.menu__caret,.menu__link{align-items:center;display:flex}.navbar-sidebar,.navbar-sidebar__backdrop{bottom:0;opacity:0;transition-duration:var(--ifm-transition-fast);transition-timing-function:ease-in-out;left:0;top:0;visibility:hidden}.menu__link{color:var(--ifm-menu-color);flex:1;line-height:1.25}.menu__link:hover{color:var(--ifm-menu-color);text-decoration:none}.menu__caret:before,.menu__link--sublist-caret:after{content:"";transform:rotate(180deg);transition:transform var(--ifm-transition-fast) linear;height:1.25rem;width:1.25rem;filter:var(--ifm-menu-link-sublist-icon-filter)}.menu__link--sublist-caret:after{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem;margin-left:auto;min-width:1.25rem}.menu__link--active,.menu__link--active:hover{color:var(--ifm-menu-color-active)}.navbar__brand,.navbar__link{color:var(--ifm-navbar-link-color)}.menu__link--active:not(.menu__link--sublist){background-color:var(--ifm-menu-color-background-active)}.menu__caret:before{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem}.navbar--dark,html[data-theme=dark]{--ifm-menu-link-sublist-icon-filter:invert(100%) sepia(94%) saturate(17%) hue-rotate(223deg) brightness(104%) contrast(98%)}.navbar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-navbar-shadow);height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar,.navbar>.container,.navbar>.container-fluid{display:flex}.navbar--fixed-top{position:sticky;top:0;z-index:var(--ifm-z-index-fixed)}.navbar__inner{display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.navbar__brand{align-items:center;display:flex;min-width:0}.navbar__brand:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.announcementBarContent_xLdY,.navbar__title{flex:1 1 auto}.navbar__toggle{display:none;margin-right:.5rem}.navbar__logo{flex:0 0 auto;height:2rem;margin-right:.5rem}.navbar__items{align-items:center;display:flex;flex:1;min-width:0}.navbar__items--center{flex:0 0 auto}.navbar__items--center .navbar__brand{margin:0}.navbar__items--center+.navbar__items--right{flex:1}.navbar__items--right{flex:0 0 auto;justify-content:flex-end}.navbar__items--right>:last-child{padding-right:0}.navbar__item{display:inline-block;padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}#nprogress,.navbar__item.dropdown .navbar__link:not([href]){pointer-events:none}.navbar__link--active,.navbar__link:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.navbar--dark,.navbar--primary{--ifm-menu-color:var(--ifm-color-gray-300);--ifm-navbar-link-color:var(--ifm-color-gray-100);--ifm-navbar-search-input-background-color:#ffffff1a;--ifm-navbar-search-input-placeholder-color:#ffffff80;color:var(--ifm-color-white)}.navbar--dark{--ifm-navbar-background-color:#242526;--ifm-menu-color-background-active:#ffffff0d;--ifm-navbar-search-input-color:var(--ifm-color-white)}.navbar--primary{--ifm-navbar-background-color:var(--ifm-color-primary);--ifm-navbar-link-hover-color:var(--ifm-color-white);--ifm-menu-color-active:var(--ifm-color-white);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-500)}.navbar__search-input{-webkit-appearance:none;appearance:none;background:var(--ifm-navbar-search-input-background-color) var(--ifm-navbar-search-input-icon) no-repeat .75rem center/1rem 1rem;border:none;border-radius:2rem;color:var(--ifm-navbar-search-input-color);cursor:text;display:inline-block;font-size:.9rem;height:2rem;padding:0 .5rem 0 2.25rem;width:12.5rem}.navbar__search-input::placeholder{color:var(--ifm-navbar-search-input-placeholder-color)}.navbar-sidebar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-global-shadow-md);position:fixed;transform:translate3d(-100%,0,0);transition-property:opacity,visibility,transform;width:var(--ifm-navbar-sidebar-width)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar__items{transform:translateZ(0)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar--show .navbar-sidebar__backdrop{opacity:1;visibility:visible}.navbar-sidebar__backdrop{background-color:#0009;position:fixed;right:0;transition-property:opacity,visibility}.navbar-sidebar__brand{align-items:center;box-shadow:var(--ifm-navbar-shadow);display:flex;flex:1;height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar-sidebar__items{display:flex;height:calc(100% - var(--ifm-navbar-height));transition:transform var(--ifm-transition-fast) ease-in-out}.navbar-sidebar__items--show-secondary{transform:translate3d(calc((var(--ifm-navbar-sidebar-width))*-1),0,0)}.navbar-sidebar__item{flex-shrink:0;padding:.5rem;width:calc(var(--ifm-navbar-sidebar-width))}.navbar-sidebar__back{background:var(--ifm-menu-color-background-active);font-size:15px;font-weight:var(--ifm-button-font-weight);margin:0 0 .2rem -.5rem;padding:.6rem 1.5rem;position:relative;text-align:left;top:-.5rem;width:calc(100% + 1rem)}.navbar-sidebar__close{display:flex;margin-left:auto}.pagination{column-gap:var(--ifm-pagination-page-spacing);display:flex;font-size:var(--ifm-pagination-font-size);padding-left:0}.pagination--sm{--ifm-pagination-font-size:0.8rem;--ifm-pagination-padding-horizontal:0.8rem;--ifm-pagination-padding-vertical:0.2rem}.pagination--lg{--ifm-pagination-font-size:1.2rem;--ifm-pagination-padding-horizontal:1.2rem;--ifm-pagination-padding-vertical:0.3rem}.pagination__item{display:inline-flex}.pagination__item>span{padding:var(--ifm-pagination-padding-vertical)}.pagination__item--active .pagination__link{color:var(--ifm-pagination-color-active)}.pagination__item--active .pagination__link,.pagination__item:not(.pagination__item--active):hover .pagination__link{background:var(--ifm-pagination-item-active-background)}.pagination__item--disabled,.pagination__item[disabled]{opacity:.25;pointer-events:none}.pagination__link{border-radius:var(--ifm-pagination-border-radius);color:var(--ifm-font-color-base);display:inline-block;padding:var(--ifm-pagination-padding-vertical) var(--ifm-pagination-padding-horizontal);transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination__link:hover{text-decoration:none}.pagination-nav{grid-gap:var(--ifm-spacing-horizontal);display:grid;gap:var(--ifm-spacing-horizontal);grid-template-columns:repeat(2,1fr)}.pagination-nav__link{border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-pagination-nav-border-radius);display:block;height:100%;line-height:var(--ifm-heading-line-height);padding:var(--ifm-global-spacing);transition:border-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination-nav__link:hover{border-color:var(--ifm-pagination-nav-color-hover);text-decoration:none}.pagination-nav__link--next{grid-column:2/3;text-align:right}.pagination-nav__label{font-size:var(--ifm-h4-font-size);font-weight:var(--ifm-heading-font-weight);word-break:break-word}.pagination-nav__link--prev .pagination-nav__label:before{content:"« "}.pagination-nav__link--next .pagination-nav__label:after{content:" »"}.pagination-nav__sublabel{color:var(--ifm-color-content-secondary);font-size:var(--ifm-h5-font-size);font-weight:var(--ifm-font-weight-semibold);margin-bottom:.25rem}.pills__item,.tabs{font-weight:var(--ifm-font-weight-bold)}.pills{display:flex;gap:var(--ifm-pills-spacing);padding-left:0}.pills__item{border-radius:.5rem;cursor:pointer;display:inline-block;padding:.25rem 1rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs,:not(.containsTaskList_mC6p>li)>.containsTaskList_mC6p{padding-left:0}.pills__item--active{color:var(--ifm-pills-color-active)}.pills__item--active,.pills__item:not(.pills__item--active):hover{background:var(--ifm-pills-color-background-active)}.pills--block{justify-content:stretch}.pills--block .pills__item{flex-grow:1;text-align:center}.tabs{color:var(--ifm-tabs-color);display:flex;margin-bottom:0;overflow-x:auto}.tabs__item{border-bottom:3px solid #0000;border-radius:var(--ifm-global-radius);cursor:pointer;display:inline-flex;padding:var(--ifm-tabs-padding-vertical) var(--ifm-tabs-padding-horizontal);transition:background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs__item--active{border-bottom-color:var(--ifm-tabs-color-active-border);border-bottom-left-radius:0;border-bottom-right-radius:0;color:var(--ifm-tabs-color-active)}.tabs__item:hover{background-color:var(--ifm-hover-overlay)}.tabs--block{justify-content:stretch}.tabs--block .tabs__item{flex-grow:1;justify-content:center}html[data-theme=dark]{--ifm-color-scheme:dark;--ifm-color-emphasis-0:var(--ifm-color-gray-1000);--ifm-color-emphasis-100:var(--ifm-color-gray-900);--ifm-color-emphasis-200:var(--ifm-color-gray-800);--ifm-color-emphasis-300:var(--ifm-color-gray-700);--ifm-color-emphasis-400:var(--ifm-color-gray-600);--ifm-color-emphasis-600:var(--ifm-color-gray-400);--ifm-color-emphasis-700:var(--ifm-color-gray-300);--ifm-color-emphasis-800:var(--ifm-color-gray-200);--ifm-color-emphasis-900:var(--ifm-color-gray-100);--ifm-color-emphasis-1000:var(--ifm-color-gray-0);--ifm-background-color:#1b1b1d;--ifm-background-surface-color:#242526;--ifm-hover-overlay:#ffffff0d;--ifm-color-content:#e3e3e3;--ifm-color-content-secondary:#fff;--ifm-breadcrumb-separator-filter:invert(64%) sepia(11%) saturate(0%) hue-rotate(149deg) brightness(99%) contrast(95%);--ifm-code-background:#ffffff1a;--ifm-scrollbar-track-background-color:#444;--ifm-scrollbar-thumb-background-color:#686868;--ifm-scrollbar-thumb-hover-background-color:#7a7a7a;--ifm-table-stripe-background:#ffffff12;--ifm-toc-border-color:var(--ifm-color-emphasis-200);--ifm-color-primary-contrast-background:#102445;--ifm-color-primary-contrast-foreground:#ebf2fc;--ifm-color-secondary-contrast-background:#474748;--ifm-color-secondary-contrast-foreground:#fdfdfe;--ifm-color-success-contrast-background:#003100;--ifm-color-success-contrast-foreground:#e6f6e6;--ifm-color-info-contrast-background:#193c47;--ifm-color-info-contrast-foreground:#eef9fd;--ifm-color-warning-contrast-background:#4d3800;--ifm-color-warning-contrast-foreground:#fff8e6;--ifm-color-danger-contrast-background:#4b1113;--ifm-color-danger-contrast-foreground:#ffebec}#nprogress .bar{background:var(--docusaurus-progress-bar-color);height:2px;left:0;position:fixed;top:0;width:100%;z-index:1031}#nprogress .peg{box-shadow:0 0 10px var(--docusaurus-progress-bar-color),0 0 5px var(--docusaurus-progress-bar-color);height:100%;opacity:1;position:absolute;right:0;transform:rotate(3deg) translateY(-4px);width:100px}[data-theme=dark]{--ifm-color-primary:#7a77ff;--ifm-color-primary-dark:#5552ff;--ifm-color-primary-darker:#433fff;--ifm-color-primary-darkest:#0c07ff;--ifm-color-primary-light:#9f9cff;--ifm-color-primary-lighter:#b1afff;--ifm-color-primary-lightest:#b1afff;--docusaurus-highlighted-code-line-bg:#0c0d152b;--ifm-table-stripe-background:#5e30a0!important;--ifm-table-background:#0000!important}[data-theme=light] code[class*=language-],[data-theme=light] pre[class*=language-]{background-color:#f9fafb!important}[data-theme=light] code[class*=language-] .token.comment,[data-theme=light] pre[class*=language-] .token.comment{color:#6e7781!important}[data-theme=light] code[class*=language-] .token.string,[data-theme=light] pre[class*=language-] .token.string{color:#0a3069!important}[data-theme=light] code[class*=language-] .token.keyword,[data-theme=light] pre[class*=language-] .token.keyword{color:#cf222e!important}[data-theme=light] code[class*=language-] .token.method,[data-theme=light] pre[class*=language-] .token.method{color:#6639ba!important}[data-theme=light] code[class*=language-] .token.number,[data-theme=light] code[class*=language-] .token.property,[data-theme=light] pre[class*=language-] .token.number,[data-theme=light] pre[class*=language-] .token.property{color:#0550ae!important}code[class*=language-],pre[class*=language-]{font-size:.85em}code[class*=language-] .token.comment,pre[class*=language-] .token.comment{font-size:.9em;font-style:normal!important}.navbar__brand{margin-right:0}.navbar__manual--title{font-weight:700;margin-right:1rem;padding:0}#__docusaurus-base-url-issue-banner-container,.hideAction_vcyE>svg,.navbar.navbar--fixed-top .navbar__item.dropdown.dropdown--hoverable svg,.themedComponent_mlkZ,[data-theme=dark] .lightToggleIcon_pyhR,[data-theme=light] .darkToggleIcon_wfgR,html[data-announcement-bar-initially-dismissed=true] .announcementBar_mb4j{display:none}[title="svg{height:var(--search-local-hit-height,56px);opacity:.5;width:24px}.hitIcon_a7Zy,.hitTree_kk6K>svg{stroke-width:var(--search-local-icon-stroke-width,1.4)}.hitAction_NqkB,.hitIcon_a7Zy{height:20px;width:20px}.hitWrapper_sAK8{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;margin:0 8px;overflow-x:hidden;width:80%}.hitWrapper_sAK8 mark{background:none;color:var(--search-local-highlight-color,var(--ifm-color-primary))}.hitTitle_vyVt{font-size:.9em}.hitPath_ieM4{font-size:.75em}.hitPath_ieM4,.hitTitle_vyVt{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.noResults_l6Q3{flex-direction:column;justify-content:center;padding:var(--search-local-spacing,12px) 0}.noResultsIcon_EBY5{margin-bottom:var(--search-local-spacing,12px)}.hitFooter_E9YW{font-size:.85em;margin-top:var(--search-local-spacing,12px);text-align:center}.cursor_eG29 .hideAction_vcyE>svg,.tocCollapsibleContent_vkbj a{display:block}.suggestion_fB_2.cursor_eG29,.suggestion_fB_2.cursor_eG29 .hitIcon_a7Zy,.suggestion_fB_2.cursor_eG29 .hitPath_ieM4,.suggestion_fB_2.cursor_eG29 .hitTree_kk6K,.suggestion_fB_2.cursor_eG29 mark{color:var(--search-local-hit-active-color,var(--ifm-color-white))!important}.searchBarContainer_NW3z{margin-left:16px}.searchBarContainer_NW3z .searchBarLoadingRing_YnHq{display:none;left:10px;position:absolute;top:6px}.searchBarContainer_NW3z .searchClearButton_qk4g{background:none;border:none;line-height:1rem;padding:0;position:absolute;right:.8rem;top:50%;transform:translateY(-50%)}.navbar__search{position:relative}.searchIndexLoading_EJ1f .navbar__search-input{background-image:none}.searchHintContainer_Pkmr{align-items:center;display:flex;gap:4px;height:100%;justify-content:center;pointer-events:none;position:absolute;right:10px;top:0}.searchHint_iIMx{background-color:var(--ifm-navbar-search-input-background-color);border:1px solid var(--ifm-color-emphasis-500);box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-500);color:var(--ifm-navbar-search-input-placeholder-color)}.loadingRing_RJI3{display:inline-block;height:20px;opacity:var(--search-local-loading-icon-opacity,.5);position:relative;width:20px}.loadingRing_RJI3 div{animation:1.2s cubic-bezier(.5,0,.5,1) infinite b;border:2px solid var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color));border-color:var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color)) #0000 #0000 #0000;border-radius:50%;display:block;height:16px;margin:2px;position:absolute;width:16px}.loadingRing_RJI3 div:first-child{animation-delay:-.45s}.loadingRing_RJI3 div:nth-child(2){animation-delay:-.3s}.loadingRing_RJI3 div:nth-child(3){animation-delay:-.15s}@keyframes b{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@supports selector(:has(*)){.navbarSearchContainer_Bca1:not(:has(>*)){display:none}}.navbarHideable_m1mJ{transition:transform var(--ifm-transition-fast) ease}.navbarHidden_jGov{transform:translate3d(0,calc(-100% - 2px),0)}.errorBoundaryError_a6uf{color:red;white-space:pre-wrap}.errorBoundaryFallback_VBag{color:red;padding:.55rem}.footerLogoLink_BH7S{opacity:.5;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.footerLogoLink_BH7S:hover,.hash-link:focus,:hover>.hash-link{opacity:1}.anchorWithStickyNavbar_LWe7{scroll-margin-top:calc(var(--ifm-navbar-height) + .5rem)}.anchorWithHideOnScrollNavbar_WYt5{scroll-margin-top:.5rem}.hash-link{opacity:0;padding-left:.5rem;transition:opacity var(--ifm-transition-fast);-webkit-user-select:none;user-select:none}.hash-link:before{content:"#"}.mainWrapper_z2l0{display:flex;flex:1 0 auto;flex-direction:column}.docusaurus-mt-lg{margin-top:3rem}#__docusaurus{display:flex;flex-direction:column;min-height:100%}.cardContainer_fWXF{--ifm-link-color:var(--ifm-color-emphasis-800);--ifm-link-hover-color:var(--ifm-color-emphasis-700);--ifm-link-hover-decoration:none;border:1px solid var(--ifm-color-emphasis-200);box-shadow:0 1.5px 3px 0 #00000026;transition:all var(--ifm-transition-fast) ease;transition-property:border,box-shadow}.cardContainer_fWXF:hover{border-color:var(--ifm-color-primary);box-shadow:0 3px 6px 0 #0003}.cardTitle_rnsV{font-size:1.2rem}.cardDescription_PWke{font-size:.8rem}.iconEdit_Z9Sw{margin-right:.3em;vertical-align:sub}.tag_zVej{border:1px solid var(--docusaurus-tag-list-border);transition:border var(--ifm-transition-fast)}.tag_zVej:hover{--docusaurus-tag-list-border:var(--ifm-link-color);text-decoration:none}.tagRegular_sFm0{border-radius:var(--ifm-global-radius);font-size:90%;padding:.2rem .5rem .3rem}.tagWithCount_h2kH{align-items:center;border-left:0;display:flex;padding:0 .5rem 0 1rem;position:relative}.tagWithCount_h2kH:after,.tagWithCount_h2kH:before{border:1px solid var(--docusaurus-tag-list-border);content:"";position:absolute;top:50%;transition:inherit}.tagWithCount_h2kH:before{border-bottom:0;border-right:0;height:1.18rem;right:100%;transform:translate(50%,-50%) rotate(-45deg);width:1.18rem}.tagWithCount_h2kH:after{border-radius:50%;height:.5rem;left:0;transform:translateY(-50%);width:.5rem}.tagWithCount_h2kH span{background:var(--ifm-color-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-color-black);font-size:.7rem;line-height:1.2;margin-left:.3rem;padding:.1rem .4rem}.tags_jXut{display:inline}.tag_QGVx{display:inline-block;margin:0 .4rem .5rem 0}.lastUpdated_vwxv{font-size:smaller;font-style:italic;margin-top:.2rem}.tocCollapsibleButton_TO0P{align-items:center;display:flex;font-size:inherit;justify-content:space-between;padding:.4rem .8rem;width:100%}.tocCollapsibleButton_TO0P:after{background:var(--ifm-menu-link-sublist-icon) 50% 50%/2rem 2rem no-repeat;content:"";filter:var(--ifm-menu-link-sublist-icon-filter);height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast);width:1.25rem}.tocCollapsibleButtonExpanded_MG3E:after,.tocCollapsibleExpanded_sAul{transform:none}.tocCollapsible_ETCw{background-color:var(--ifm-menu-color-background-active);border-radius:var(--ifm-global-radius);margin:1rem 0}.buttonGroup__atx button,.codeBlockContainer_Ckt0{background:var(--prism-background-color);color:var(--prism-color)}.tocCollapsibleContent_vkbj>ul{border-left:none;border-top:1px solid var(--ifm-color-emphasis-300);font-size:15px;padding:.2rem 0}.tocCollapsibleContent_vkbj ul li{margin:.4rem .8rem}.tableOfContents_bqdL{max-height:calc(100vh - var(--ifm-navbar-height) - 2rem);overflow-y:auto;position:sticky;top:calc(var(--ifm-navbar-height) + 1rem)}.codeBlockContainer_Ckt0{border-radius:var(--ifm-code-border-radius);box-shadow:var(--ifm-global-shadow-lw);margin-bottom:var(--ifm-leading)}.codeBlockContent_biex{border-radius:inherit;direction:ltr;position:relative}.codeBlockTitle_Ktv7{border-bottom:1px solid var(--ifm-color-emphasis-300);border-top-left-radius:inherit;border-top-right-radius:inherit;font-size:var(--ifm-code-font-size);font-weight:500;padding:.75rem var(--ifm-pre-padding)}.codeBlock_bY9V{--ifm-pre-background:var(--prism-background-color);margin:0;padding:0}.codeBlockTitle_Ktv7+.codeBlockContent_biex .codeBlock_bY9V{border-top-left-radius:0;border-top-right-radius:0}.codeBlockLines_e6Vv{float:left;font:inherit;min-width:100%;padding:var(--ifm-pre-padding)}.codeBlockLinesWithNumbering_o6Pm{display:table;padding:var(--ifm-pre-padding) 0}.buttonGroup__atx{column-gap:.2rem;display:flex;position:absolute;right:calc(var(--ifm-pre-padding)/2);top:calc(var(--ifm-pre-padding)/2)}.buttonGroup__atx button{align-items:center;border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-global-radius);display:flex;line-height:0;opacity:0;padding:.4rem;transition:opacity var(--ifm-transition-fast) ease-in-out}.buttonGroup__atx button:focus-visible,.buttonGroup__atx button:hover{opacity:1!important}.theme-code-block:hover .buttonGroup__atx button{opacity:.4}:where(:root){--docusaurus-highlighted-code-line-bg:#484d5b}:where([data-theme=dark]){--docusaurus-highlighted-code-line-bg:#646464}.theme-code-block-highlighted-line{background-color:var(--docusaurus-highlighted-code-line-bg);display:block;margin:0 calc(var(--ifm-pre-padding)*-1);padding:0 var(--ifm-pre-padding)}.codeLine_lJS_{counter-increment:a;display:table-row}.codeLineNumber_Tfdd{background:var(--ifm-pre-background);display:table-cell;left:0;overflow-wrap:normal;padding:0 var(--ifm-pre-padding);position:sticky;text-align:right;width:1%}.codeLineNumber_Tfdd:before{content:counter(a);opacity:.4}.codeLineContent_feaV{padding-right:var(--ifm-pre-padding)}.theme-code-block:hover .copyButtonCopied_obH4{opacity:1!important}.copyButtonIcons_eSgA{height:1.125rem;position:relative;width:1.125rem}.copyButtonIcon_y97N,.copyButtonSuccessIcon_LjdS{fill:currentColor;height:inherit;left:0;opacity:inherit;position:absolute;top:0;transition:all var(--ifm-transition-fast) ease;width:inherit}.copyButtonSuccessIcon_LjdS{color:#00d600;left:50%;opacity:0;top:50%;transform:translate(-50%,-50%) scale(.33)}.copyButtonCopied_obH4 .copyButtonIcon_y97N{opacity:0;transform:scale(.33)}.copyButtonCopied_obH4 .copyButtonSuccessIcon_LjdS{opacity:1;transform:translate(-50%,-50%) scale(1);transition-delay:75ms}.wordWrapButtonIcon_Bwma{height:1.2rem;width:1.2rem}.details_lb9f{--docusaurus-details-summary-arrow-size:0.38rem;--docusaurus-details-transition:transform 200ms ease;--docusaurus-details-decoration-color:grey}.details_lb9f>summary{cursor:pointer;padding-left:1rem;position:relative}.details_lb9f>summary::-webkit-details-marker{display:none}.details_lb9f>summary:before{border-color:#0000 #0000 #0000 var(--docusaurus-details-decoration-color);border-style:solid;border-width:var(--docusaurus-details-summary-arrow-size);content:"";left:0;position:absolute;top:.45rem;transform:rotate(0);transform-origin:calc(var(--docusaurus-details-summary-arrow-size)/2) 50%;transition:var(--docusaurus-details-transition)}.collapsibleContent_i85q{border-top:1px solid var(--docusaurus-details-decoration-color);margin-top:1rem;padding-top:1rem}.details_b_Ee{--docusaurus-details-decoration-color:var(--ifm-alert-border-color);--docusaurus-details-transition:transform var(--ifm-transition-fast) ease;border:1px solid var(--ifm-alert-border-color);margin:0 0 var(--ifm-spacing-vertical)}.img_ev3q{height:auto}.admonition_xJq3{margin-bottom:1em}.admonitionHeading_Gvgb{font:var(--ifm-heading-font-weight) var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family)}.admonitionHeading_Gvgb:not(:last-child){margin-bottom:.3rem}.admonitionHeading_Gvgb code{text-transform:none}.admonitionIcon_Rf37{display:inline-block;margin-right:.4em;vertical-align:middle}.admonitionIcon_Rf37 svg{fill:var(--ifm-alert-foreground-color);display:inline-block;height:1.6em;width:1.6em}.breadcrumbHomeIcon_YNFT{height:1.1rem;position:relative;top:1px;vertical-align:top;width:1.1rem}.breadcrumbsContainer_Z_bl{--ifm-breadcrumb-size-multiplier:0.8;margin-bottom:.8rem}.title_kItE{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-leading)*1.25)}.searchContextInput_mXoe,.searchQueryInput_CFBF{background:var(--ifm-background-color);border:var(--ifm-global-border-width) solid var(--ifm-color-content-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-font-color-base);font-size:var(--ifm-font-size-base);margin-bottom:1rem;padding:.5rem;width:100%}.searchResultItem_U687{border-bottom:1px solid #dfe3e8;padding:1rem 0}.searchResultItemPath_uIbk{color:var(--ifm-color-content-secondary);font-size:.8rem;margin:.5rem 0 0}.searchResultItemSummary_oZHr{font-style:italic;margin:.5rem 0 0}.backToTopButton_sjWU{background-color:var(--ifm-color-emphasis-200);border-radius:50%;bottom:1.3rem;box-shadow:var(--ifm-global-shadow-lw);height:3rem;opacity:0;position:fixed;right:1.3rem;transform:scale(0);transition:all var(--ifm-transition-fast) var(--ifm-transition-timing-default);visibility:hidden;width:3rem;z-index:calc(var(--ifm-z-index-fixed) - 1)}.backToTopButton_sjWU:after{background-color:var(--ifm-color-emphasis-1000);content:" ";display:inline-block;height:100%;-webkit-mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;width:100%}.backToTopButtonShow_xfvO{opacity:1;transform:scale(1);visibility:visible}[data-theme=dark]:root{--docusaurus-collapse-button-bg:#ffffff0d;--docusaurus-collapse-button-bg-hover:#ffffff1a}.collapseSidebarButton_PEFL{display:none;margin:0}.docSidebarContainer_YfHR,.sidebarLogo_isFc{display:none}.docMainContainer_TBSr,.docRoot_UBD9{display:flex;width:100%}.docsWrapper_hBAB{display:flex;flex:1 0 auto}@media (min-width:997px){.collapseSidebarButton_PEFL,.expandButton_TmdG{background-color:var(--docusaurus-collapse-button-bg)}:root{--docusaurus-announcement-bar-height:30px}.announcementBarClose_gvF7,.announcementBarPlaceholder_vyr4{flex-basis:50px}.navbarSearchContainer_Bca1{padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.lastUpdated_vwxv{text-align:right}.tocMobile_ITEo{display:none}.docItemCol_VOVn,.generatedIndexPage_vN6x{max-width:75%!important}.list_eTzJ article:nth-last-child(-n+2){margin-bottom:0!important}.collapseSidebarButton_PEFL{border:1px solid var(--ifm-toc-border-color);border-radius:0;bottom:0;display:block!important;height:40px;position:sticky}.collapseSidebarButtonIcon_kv0_{margin-top:4px;transform:rotate(180deg)}.expandButtonIcon_i1dp,[dir=rtl] .collapseSidebarButtonIcon_kv0_{transform:rotate(0)}.collapseSidebarButton_PEFL:focus,.collapseSidebarButton_PEFL:hover,.expandButton_TmdG:focus,.expandButton_TmdG:hover{background-color:var(--docusaurus-collapse-button-bg-hover)}.menuHtmlItem_M9Kj{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu_SIkG{flex-grow:1;padding:.5rem}@supports (scrollbar-gutter:stable){.menu_SIkG{padding:.5rem 0 .5rem .5rem;scrollbar-gutter:stable}}.menuWithAnnouncementBar_GW3s{margin-bottom:var(--docusaurus-announcement-bar-height)}.sidebar_njMd{display:flex;flex-direction:column;height:100%;padding-top:var(--ifm-navbar-height);width:var(--doc-sidebar-width)}.sidebarWithHideableNavbar_wUlq{padding-top:0}.sidebarHidden_VK0M{opacity:0;visibility:hidden}.sidebarLogo_isFc{align-items:center;color:inherit!important;display:flex!important;margin:0 var(--ifm-navbar-padding-horizontal);max-height:var(--ifm-navbar-height);min-height:var(--ifm-navbar-height);text-decoration:none!important}.sidebarLogo_isFc img{height:2rem;margin-right:.5rem}.expandButton_TmdG{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;transition:background-color var(--ifm-transition-fast) ease;width:100%}[dir=rtl] .expandButtonIcon_i1dp{transform:rotate(180deg)}.docSidebarContainer_YfHR{border-right:1px solid var(--ifm-toc-border-color);-webkit-clip-path:inset(0);clip-path:inset(0);display:block;margin-top:calc(var(--ifm-navbar-height)*-1);transition:width var(--ifm-transition-fast) ease;width:var(--doc-sidebar-width);will-change:width}.docSidebarContainerHidden_DPk8{cursor:pointer;width:var(--doc-sidebar-hidden-width)}.sidebarViewport_aRkj{height:100%;max-height:100vh;position:sticky;top:0}.docMainContainer_TBSr{flex-grow:1;max-width:calc(100% - var(--doc-sidebar-width))}.docMainContainerEnhanced_lQrH{max-width:calc(100% - var(--doc-sidebar-hidden-width))}.docItemWrapperEnhanced_JWYK{max-width:calc(var(--ifm-container-width) + var(--doc-sidebar-width))!important}}@media (min-width:1440px){.container{max-width:var(--ifm-container-width-xl)}}@media (max-width:996px){.col{--ifm-col-width:100%;flex-basis:var(--ifm-col-width);margin-left:0}.footer{--ifm-footer-padding-horizontal:0}.colorModeToggle_DEke,.footer__link-separator,.navbar__item,.tableOfContents_bqdL{display:none}.footer__col{margin-bottom:calc(var(--ifm-spacing-vertical)*3)}.footer__link-item{display:block}.hero{padding-left:0;padding-right:0}.navbar>.container,.navbar>.container-fluid{padding:0}.navbar__toggle{display:inherit}.navbar__search-input{width:9rem}.pills--block,.tabs--block{flex-direction:column}.navbarSearchContainer_Bca1{position:absolute;right:var(--ifm-navbar-padding-horizontal)}.docItemContainer_F8PC{padding:0 .3rem}}@media not (max-width:996px){.searchBar_RVTs.searchBarLeft_MXDe .dropdownMenu_qbY6{left:0!important;right:auto!important}}@media only screen and (max-width:996px){.searchQueryColumn_q7nx{max-width:60%!important}.searchContextColumn_oWAF{max-width:40%!important}}@media (max-width:576px){.markdown h1:first-child{--ifm-h1-font-size:2rem}.markdown>h2{--ifm-h2-font-size:1.5rem}.markdown>h3{--ifm-h3-font-size:1.25rem}.navbar__search-input:not(:focus){width:2rem}.searchBar_RVTs .dropdownMenu_qbY6{max-width:calc(100vw - var(--ifm-navbar-padding-horizontal)*2);width:var(--search-local-modal-width-sm,340px)}.searchBarContainer_NW3z:not(.focused_OWtg) .searchClearButton_qk4g,.searchHintContainer_Pkmr{display:none}}@media screen and (max-width:576px){.searchQueryColumn_q7nx{max-width:100%!important}.searchContextColumn_oWAF{max-width:100%!important;padding-left:var(--ifm-spacing-horizontal)!important}}@media (hover:hover){.backToTopButton_sjWU:hover{background-color:var(--ifm-color-emphasis-300)}}@media (pointer:fine){.thin-scrollbar{scrollbar-width:thin}.thin-scrollbar::-webkit-scrollbar{height:var(--ifm-scrollbar-size);width:var(--ifm-scrollbar-size)}.thin-scrollbar::-webkit-scrollbar-track{background:var(--ifm-scrollbar-track-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb{background:var(--ifm-scrollbar-thumb-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--ifm-scrollbar-thumb-hover-background-color)}}@media (prefers-reduced-motion:reduce){:root{--ifm-transition-fast:0ms;--ifm-transition-slow:0ms}}@media print{.announcementBar_mb4j,.footer,.menu,.navbar,.pagination-nav,.table-of-contents,.tocMobile_ITEo{display:none}.tabs{page-break-inside:avoid}.codeBlockLines_e6Vv{white-space:pre-wrap}} \ No newline at end of file diff --git a/assets/css/styles.4c3135ed.css b/assets/css/styles.4c3135ed.css new file mode 100644 index 0000000000..0032d4a2ad --- /dev/null +++ b/assets/css/styles.4c3135ed.css @@ -0,0 +1 @@ +.col,.container{padding:0 var(--ifm-spacing-horizontal);width:100%}.markdown>h2,.markdown>h3,.markdown>h4,.markdown>h5,.markdown>h6{margin-bottom:calc(var(--ifm-heading-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown li,body{word-wrap:break-word}body,ol ol,ol ul,ul ol,ul ul{margin:0}pre,table{overflow:auto}blockquote,pre{margin:0 0 var(--ifm-spacing-vertical)}.breadcrumbs__link,.button{transition-timing-function:var(--ifm-transition-timing-default)}.button,code{vertical-align:middle}.button--outline.button--active,.button--outline:active,.button--outline:hover,:root{--ifm-button-color:var(--ifm-font-color-base-inverse)}.menu__link:hover,a{transition:color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--dark,:root{--ifm-navbar-link-hover-color:var(--ifm-color-primary)}.menu,.navbar-sidebar{overflow-x:hidden}:root,html[data-theme=dark]{--ifm-color-emphasis-500:var(--ifm-color-gray-500)}[data-theme=dark] details.history,[data-theme=light] details.history{--history-summary-icon:var(--docusaurus-details-decoration-color);--history-separator:var(--ifm-table-border-color)}.toggleButton_gllP,html{-webkit-tap-highlight-color:transparent}*,.loader,.loadingRing_RJI3 div{box-sizing:border-box}.clean-list,.containsTaskList_mC6p,.details_lb9f>summary,.dropdown__menu,.menu__list{list-style:none}:root{--ifm-color-scheme:light;--ifm-dark-value:10%;--ifm-darker-value:15%;--ifm-darkest-value:30%;--ifm-light-value:15%;--ifm-lighter-value:30%;--ifm-lightest-value:50%;--ifm-contrast-background-value:90%;--ifm-contrast-foreground-value:70%;--ifm-contrast-background-dark-value:70%;--ifm-contrast-foreground-dark-value:90%;--ifm-color-primary:#3578e5;--ifm-color-secondary:#ebedf0;--ifm-color-success:#00a400;--ifm-color-info:#54c7ec;--ifm-color-warning:#ffba00;--ifm-color-danger:#fa383e;--ifm-color-primary-dark:#306cce;--ifm-color-primary-darker:#2d66c3;--ifm-color-primary-darkest:#2554a0;--ifm-color-primary-light:#538ce9;--ifm-color-primary-lighter:#72a1ed;--ifm-color-primary-lightest:#9abcf2;--ifm-color-primary-contrast-background:#ebf2fc;--ifm-color-primary-contrast-foreground:#102445;--ifm-color-secondary-dark:#d4d5d8;--ifm-color-secondary-darker:#c8c9cc;--ifm-color-secondary-darkest:#a4a6a8;--ifm-color-secondary-light:#eef0f2;--ifm-color-secondary-lighter:#f1f2f5;--ifm-color-secondary-lightest:#f5f6f8;--ifm-color-secondary-contrast-background:#fdfdfe;--ifm-color-secondary-contrast-foreground:#474748;--ifm-color-success-dark:#009400;--ifm-color-success-darker:#008b00;--ifm-color-success-darkest:#007300;--ifm-color-success-light:#26b226;--ifm-color-success-lighter:#4dbf4d;--ifm-color-success-lightest:#80d280;--ifm-color-success-contrast-background:#e6f6e6;--ifm-color-success-contrast-foreground:#003100;--ifm-color-info-dark:#4cb3d4;--ifm-color-info-darker:#47a9c9;--ifm-color-info-darkest:#3b8ba5;--ifm-color-info-light:#6ecfef;--ifm-color-info-lighter:#87d8f2;--ifm-color-info-lightest:#aae3f6;--ifm-color-info-contrast-background:#eef9fd;--ifm-color-info-contrast-foreground:#193c47;--ifm-color-warning-dark:#e6a700;--ifm-color-warning-darker:#d99e00;--ifm-color-warning-darkest:#b38200;--ifm-color-warning-light:#ffc426;--ifm-color-warning-lighter:#ffcf4d;--ifm-color-warning-lightest:#ffdd80;--ifm-color-warning-contrast-background:#fff8e6;--ifm-color-warning-contrast-foreground:#4d3800;--ifm-color-danger-dark:#e13238;--ifm-color-danger-darker:#d53035;--ifm-color-danger-darkest:#af272b;--ifm-color-danger-light:#fb565b;--ifm-color-danger-lighter:#fb7478;--ifm-color-danger-lightest:#fd9c9f;--ifm-color-danger-contrast-background:#ffebec;--ifm-color-danger-contrast-foreground:#4b1113;--ifm-color-white:#fff;--ifm-color-black:#000;--ifm-color-gray-0:var(--ifm-color-white);--ifm-color-gray-100:#f5f6f7;--ifm-color-gray-200:#ebedf0;--ifm-color-gray-300:#dadde1;--ifm-color-gray-400:#ccd0d5;--ifm-color-gray-500:#bec3c9;--ifm-color-gray-600:#8d949e;--ifm-color-gray-700:#606770;--ifm-color-gray-800:#444950;--ifm-color-gray-900:#1c1e21;--ifm-color-gray-1000:var(--ifm-color-black);--ifm-color-emphasis-0:var(--ifm-color-gray-0);--ifm-color-emphasis-100:var(--ifm-color-gray-100);--ifm-color-emphasis-200:var(--ifm-color-gray-200);--ifm-color-emphasis-300:var(--ifm-color-gray-300);--ifm-color-emphasis-400:var(--ifm-color-gray-400);--ifm-color-emphasis-600:var(--ifm-color-gray-600);--ifm-color-emphasis-700:var(--ifm-color-gray-700);--ifm-color-emphasis-800:var(--ifm-color-gray-800);--ifm-color-emphasis-900:var(--ifm-color-gray-900);--ifm-color-emphasis-1000:var(--ifm-color-gray-1000);--ifm-color-content:var(--ifm-color-emphasis-900);--ifm-color-content-inverse:var(--ifm-color-emphasis-0);--ifm-color-content-secondary:#525860;--ifm-background-color:#0000;--ifm-background-surface-color:var(--ifm-color-content-inverse);--ifm-global-border-width:1px;--ifm-global-radius:0.4rem;--ifm-hover-overlay:#0000000d;--ifm-font-color-base:var(--ifm-color-content);--ifm-font-color-base-inverse:var(--ifm-color-content-inverse);--ifm-font-color-secondary:var(--ifm-color-content-secondary);--ifm-font-family-base:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ifm-font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--ifm-font-size-base:100%;--ifm-font-weight-light:300;--ifm-font-weight-normal:400;--ifm-font-weight-semibold:500;--ifm-font-weight-bold:700;--ifm-font-weight-base:var(--ifm-font-weight-normal);--ifm-line-height-base:1.65;--ifm-global-spacing:1rem;--ifm-spacing-vertical:var(--ifm-global-spacing);--ifm-spacing-horizontal:var(--ifm-global-spacing);--ifm-transition-fast:200ms;--ifm-transition-slow:400ms;--ifm-transition-timing-default:cubic-bezier(0.08,0.52,0.52,1);--ifm-global-shadow-lw:0 1px 2px 0 #0000001a;--ifm-global-shadow-md:0 5px 40px #0003;--ifm-global-shadow-tl:0 12px 28px 0 #0003,0 2px 4px 0 #0000001a;--ifm-z-index-dropdown:100;--ifm-z-index-fixed:200;--ifm-z-index-overlay:400;--ifm-container-width:1140px;--ifm-container-width-xl:1320px;--ifm-code-background:#f6f7f8;--ifm-code-border-radius:var(--ifm-global-radius);--ifm-code-font-size:90%;--ifm-code-padding-horizontal:0.1rem;--ifm-code-padding-vertical:0.1rem;--ifm-pre-background:var(--ifm-code-background);--ifm-pre-border-radius:var(--ifm-code-border-radius);--ifm-pre-color:inherit;--ifm-pre-line-height:1.45;--ifm-pre-padding:1rem;--ifm-heading-color:inherit;--ifm-heading-margin-top:0;--ifm-heading-margin-bottom:var(--ifm-spacing-vertical);--ifm-heading-font-family:var(--ifm-font-family-base);--ifm-heading-font-weight:var(--ifm-font-weight-bold);--ifm-heading-line-height:1.25;--ifm-h1-font-size:2rem;--ifm-h2-font-size:1.5rem;--ifm-h3-font-size:1.25rem;--ifm-h4-font-size:1rem;--ifm-h5-font-size:0.875rem;--ifm-h6-font-size:0.85rem;--ifm-image-alignment-padding:1.25rem;--ifm-leading-desktop:1.25;--ifm-leading:calc(var(--ifm-leading-desktop)*1rem);--ifm-list-left-padding:2rem;--ifm-list-margin:1rem;--ifm-list-item-margin:0.25rem;--ifm-list-paragraph-margin:1rem;--ifm-table-cell-padding:0.75rem;--ifm-table-background:#0000;--ifm-table-stripe-background:#00000008;--ifm-table-border-width:1px;--ifm-table-border-color:var(--ifm-color-emphasis-300);--ifm-table-head-background:inherit;--ifm-table-head-color:inherit;--ifm-table-head-font-weight:var(--ifm-font-weight-bold);--ifm-table-cell-color:inherit;--ifm-link-color:var(--ifm-color-primary);--ifm-link-decoration:none;--ifm-link-hover-color:var(--ifm-link-color);--ifm-link-hover-decoration:underline;--ifm-paragraph-margin-bottom:var(--ifm-leading);--ifm-blockquote-font-size:var(--ifm-font-size-base);--ifm-blockquote-border-left-width:2px;--ifm-blockquote-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-blockquote-padding-vertical:0;--ifm-blockquote-shadow:none;--ifm-blockquote-color:var(--ifm-color-emphasis-800);--ifm-blockquote-border-color:var(--ifm-color-emphasis-300);--ifm-hr-background-color:var(--ifm-color-emphasis-500);--ifm-hr-height:1px;--ifm-hr-margin-vertical:1.5rem;--ifm-scrollbar-size:7px;--ifm-scrollbar-track-background-color:#f1f1f1;--ifm-scrollbar-thumb-background-color:silver;--ifm-scrollbar-thumb-hover-background-color:#a7a7a7;--ifm-alert-background-color:inherit;--ifm-alert-border-color:inherit;--ifm-alert-border-radius:var(--ifm-global-radius);--ifm-alert-border-width:0px;--ifm-alert-border-left-width:5px;--ifm-alert-color:var(--ifm-font-color-base);--ifm-alert-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-alert-padding-vertical:var(--ifm-spacing-vertical);--ifm-alert-shadow:var(--ifm-global-shadow-lw);--ifm-avatar-intro-margin:1rem;--ifm-avatar-intro-alignment:inherit;--ifm-avatar-photo-size:3rem;--ifm-badge-background-color:inherit;--ifm-badge-border-color:inherit;--ifm-badge-border-radius:var(--ifm-global-radius);--ifm-badge-border-width:var(--ifm-global-border-width);--ifm-badge-color:var(--ifm-color-white);--ifm-badge-padding-horizontal:calc(var(--ifm-spacing-horizontal)*0.5);--ifm-badge-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-breadcrumb-border-radius:1.5rem;--ifm-breadcrumb-spacing:0.5rem;--ifm-breadcrumb-color-active:var(--ifm-color-primary);--ifm-breadcrumb-item-background-active:var(--ifm-hover-overlay);--ifm-breadcrumb-padding-horizontal:0.8rem;--ifm-breadcrumb-padding-vertical:0.4rem;--ifm-breadcrumb-size-multiplier:1;--ifm-breadcrumb-separator:url('data:image/svg+xml;utf8,');--ifm-breadcrumb-separator-filter:none;--ifm-breadcrumb-separator-size:0.5rem;--ifm-breadcrumb-separator-size-multiplier:1.25;--ifm-button-background-color:inherit;--ifm-button-border-color:var(--ifm-button-background-color);--ifm-button-border-width:var(--ifm-global-border-width);--ifm-button-font-weight:var(--ifm-font-weight-bold);--ifm-button-padding-horizontal:1.5rem;--ifm-button-padding-vertical:0.375rem;--ifm-button-size-multiplier:1;--ifm-button-transition-duration:var(--ifm-transition-fast);--ifm-button-border-radius:calc(var(--ifm-global-radius)*var(--ifm-button-size-multiplier));--ifm-button-group-spacing:2px;--ifm-card-background-color:var(--ifm-background-surface-color);--ifm-card-border-radius:calc(var(--ifm-global-radius)*2);--ifm-card-horizontal-spacing:var(--ifm-global-spacing);--ifm-card-vertical-spacing:var(--ifm-global-spacing);--ifm-toc-border-color:var(--ifm-color-emphasis-300);--ifm-toc-link-color:var(--ifm-color-content-secondary);--ifm-toc-padding-vertical:0.5rem;--ifm-toc-padding-horizontal:0.5rem;--ifm-dropdown-background-color:var(--ifm-background-surface-color);--ifm-dropdown-font-weight:var(--ifm-font-weight-semibold);--ifm-dropdown-link-color:var(--ifm-font-color-base);--ifm-dropdown-hover-background-color:var(--ifm-hover-overlay);--ifm-footer-background-color:var(--ifm-color-emphasis-100);--ifm-footer-color:inherit;--ifm-footer-link-color:var(--ifm-color-emphasis-700);--ifm-footer-link-hover-color:var(--ifm-color-primary);--ifm-footer-link-horizontal-spacing:0.5rem;--ifm-footer-padding-horizontal:calc(var(--ifm-spacing-horizontal)*2);--ifm-footer-padding-vertical:calc(var(--ifm-spacing-vertical)*2);--ifm-footer-title-color:inherit;--ifm-footer-logo-max-width:min(30rem,90vw);--ifm-hero-background-color:var(--ifm-background-surface-color);--ifm-hero-text-color:var(--ifm-color-emphasis-800);--ifm-menu-color:var(--ifm-color-emphasis-700);--ifm-menu-color-active:var(--ifm-color-primary);--ifm-menu-color-background-active:var(--ifm-hover-overlay);--ifm-menu-color-background-hover:var(--ifm-hover-overlay);--ifm-menu-link-padding-horizontal:0.75rem;--ifm-menu-link-padding-vertical:0.375rem;--ifm-menu-link-sublist-icon:url('data:image/svg+xml;utf8,');--ifm-menu-link-sublist-icon-filter:none;--ifm-navbar-background-color:var(--ifm-background-surface-color);--ifm-navbar-height:3.75rem;--ifm-navbar-item-padding-horizontal:0.75rem;--ifm-navbar-item-padding-vertical:0.25rem;--ifm-navbar-link-color:var(--ifm-font-color-base);--ifm-navbar-link-active-color:var(--ifm-link-color);--ifm-navbar-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-navbar-padding-vertical:calc(var(--ifm-spacing-vertical)*0.5);--ifm-navbar-shadow:var(--ifm-global-shadow-lw);--ifm-navbar-search-input-background-color:var(--ifm-color-emphasis-200);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-800);--ifm-navbar-search-input-placeholder-color:var(--ifm-color-emphasis-500);--ifm-navbar-search-input-icon:url('data:image/svg+xml;utf8,');--ifm-navbar-sidebar-width:83vw;--ifm-pagination-border-radius:var(--ifm-global-radius);--ifm-pagination-color-active:var(--ifm-color-primary);--ifm-pagination-font-size:1rem;--ifm-pagination-item-active-background:var(--ifm-hover-overlay);--ifm-pagination-page-spacing:0.2em;--ifm-pagination-padding-horizontal:calc(var(--ifm-spacing-horizontal)*1);--ifm-pagination-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-pagination-nav-border-radius:var(--ifm-global-radius);--ifm-pagination-nav-color-hover:var(--ifm-color-primary);--ifm-pills-color-active:var(--ifm-color-primary);--ifm-pills-color-background-active:var(--ifm-hover-overlay);--ifm-pills-spacing:0.125rem;--ifm-tabs-color:var(--ifm-font-color-secondary);--ifm-tabs-color-active:var(--ifm-color-primary);--ifm-tabs-color-active-border:var(--ifm-tabs-color-active);--ifm-tabs-padding-horizontal:1rem;--ifm-tabs-padding-vertical:1rem;--docusaurus-progress-bar-color:var(--ifm-color-primary);--ifm-color-primary:#45aaf2;--ifm-color-primary-dark:#3d98d1;--ifm-color-primary-darker:#3788bf;--ifm-color-primary-darkest:#2d6e99;--ifm-color-primary-light:#66b5f8;--ifm-color-primary-lighter:#80bff9;--ifm-color-primary-lightest:#99c9fa;--ifm-code-font-size:95%;--docusaurus-highlighted-code-line-bg:#21657e0d;--ifm-table-stripe-background:#c6ddff!important;--ifm-table-background:#fdfdfd7a!important;--docusaurus-announcement-bar-height:auto;--docusaurus-tag-list-border:var(--ifm-color-emphasis-300);--docusaurus-collapse-button-bg:#0000;--docusaurus-collapse-button-bg-hover:#0000001a;--doc-sidebar-width:300px;--doc-sidebar-hidden-width:30px}.badge--danger,.badge--info,.badge--primary,.badge--secondary,.badge--success,.badge--warning{--ifm-badge-border-color:var(--ifm-badge-background-color)}.button--link,.button--outline{--ifm-button-background-color:#0000}html{-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%;background-color:var(--ifm-background-color);color:var(--ifm-font-color-base);color-scheme:var(--ifm-color-scheme);font:var(--ifm-font-size-base)/var(--ifm-line-height-base) var(--ifm-font-family-base);text-rendering:optimizelegibility}iframe{border:0;color-scheme:auto}.container{margin:0 auto;max-width:var(--ifm-container-width)}.container--fluid{max-width:inherit}.row{display:flex;flex-wrap:wrap;margin:0 calc(var(--ifm-spacing-horizontal)*-1)}.margin-bottom--none,.margin-vert--none,.markdown>:last-child{margin-bottom:0!important}.margin-top--none,.margin-vert--none,.tabItem_LNqP{margin-top:0!important}.row--no-gutters{margin-left:0;margin-right:0}.margin-horiz--none,.margin-right--none{margin-right:0!important}.row--no-gutters>.col{padding-left:0;padding-right:0}.row--align-top{align-items:flex-start}.row--align-bottom{align-items:flex-end}.menuExternalLink_NmtK,.row--align-center{align-items:center}.row--align-stretch{align-items:stretch}.row--align-baseline{align-items:baseline}.col{--ifm-col-width:100%;flex:1 0;margin-left:0;max-width:var(--ifm-col-width)}.padding-bottom--none,.padding-vert--none{padding-bottom:0!important}.padding-top--none,.padding-vert--none{padding-top:0!important}.padding-horiz--none,.padding-left--none{padding-left:0!important}.padding-horiz--none,.padding-right--none{padding-right:0!important}.col[class*=col--]{flex:0 0 var(--ifm-col-width)}.col--1{--ifm-col-width:8.33333%}.col--offset-1{margin-left:8.33333%}.col--2{--ifm-col-width:16.66667%}.col--offset-2{margin-left:16.66667%}.col--3{--ifm-col-width:25%}.col--offset-3{margin-left:25%}.col--4{--ifm-col-width:33.33333%}.col--offset-4{margin-left:33.33333%}.col--5{--ifm-col-width:41.66667%}.col--offset-5{margin-left:41.66667%}.col--6{--ifm-col-width:50%}.col--offset-6{margin-left:50%}.col--7{--ifm-col-width:58.33333%}.col--offset-7{margin-left:58.33333%}.col--8{--ifm-col-width:66.66667%}.col--offset-8{margin-left:66.66667%}.col--9{--ifm-col-width:75%}.col--offset-9{margin-left:75%}.col--10{--ifm-col-width:83.33333%}.col--offset-10{margin-left:83.33333%}.col--11{--ifm-col-width:91.66667%}.col--offset-11{margin-left:91.66667%}.col--12{--ifm-col-width:100%}.col--offset-12{margin-left:100%}.margin-horiz--none,.margin-left--none{margin-left:0!important}.margin--none{margin:0!important}.margin-bottom--xs,.margin-vert--xs{margin-bottom:.25rem!important}.margin-top--xs,.margin-vert--xs{margin-top:.25rem!important}.margin-horiz--xs,.margin-left--xs{margin-left:.25rem!important}.margin-horiz--xs,.margin-right--xs{margin-right:.25rem!important}.margin--xs{margin:.25rem!important}.margin-bottom--sm,.margin-vert--sm{margin-bottom:.5rem!important}.margin-top--sm,.margin-vert--sm{margin-top:.5rem!important}.margin-horiz--sm,.margin-left--sm{margin-left:.5rem!important}.margin-horiz--sm,.margin-right--sm{margin-right:.5rem!important}.margin--sm{margin:.5rem!important}.margin-bottom--md,.margin-vert--md{margin-bottom:1rem!important}.margin-top--md,.margin-vert--md{margin-top:1rem!important}.margin-horiz--md,.margin-left--md{margin-left:1rem!important}.margin-horiz--md,.margin-right--md{margin-right:1rem!important}.margin--md{margin:1rem!important}.margin-bottom--lg,.margin-vert--lg{margin-bottom:2rem!important}.margin-top--lg,.margin-vert--lg{margin-top:2rem!important}.margin-horiz--lg,.margin-left--lg{margin-left:2rem!important}.margin-horiz--lg,.margin-right--lg{margin-right:2rem!important}.margin--lg{margin:2rem!important}.margin-bottom--xl,.margin-vert--xl{margin-bottom:5rem!important}.margin-top--xl,.margin-vert--xl{margin-top:5rem!important}.margin-horiz--xl,.margin-left--xl{margin-left:5rem!important}.margin-horiz--xl,.margin-right--xl{margin-right:5rem!important}.margin--xl{margin:5rem!important}.padding--none{padding:0!important}.padding-bottom--xs,.padding-vert--xs{padding-bottom:.25rem!important}.padding-top--xs,.padding-vert--xs{padding-top:.25rem!important}.padding-horiz--xs,.padding-left--xs{padding-left:.25rem!important}.padding-horiz--xs,.padding-right--xs{padding-right:.25rem!important}.padding--xs{padding:.25rem!important}.padding-bottom--sm,.padding-vert--sm{padding-bottom:.5rem!important}.padding-top--sm,.padding-vert--sm{padding-top:.5rem!important}.padding-horiz--sm,.padding-left--sm{padding-left:.5rem!important}.padding-horiz--sm,.padding-right--sm{padding-right:.5rem!important}.padding--sm{padding:.5rem!important}.padding-bottom--md,.padding-vert--md{padding-bottom:1rem!important}.padding-top--md,.padding-vert--md{padding-top:1rem!important}.padding-horiz--md,.padding-left--md{padding-left:1rem!important}.padding-horiz--md,.padding-right--md{padding-right:1rem!important}.padding--md{padding:1rem!important}.padding-bottom--lg,.padding-vert--lg{padding-bottom:2rem!important}.padding-top--lg,.padding-vert--lg{padding-top:2rem!important}.padding-horiz--lg,.padding-left--lg{padding-left:2rem!important}.padding-horiz--lg,.padding-right--lg{padding-right:2rem!important}.padding--lg{padding:2rem!important}.padding-bottom--xl,.padding-vert--xl{padding-bottom:5rem!important}.padding-top--xl,.padding-vert--xl{padding-top:5rem!important}.padding-horiz--xl,.padding-left--xl{padding-left:5rem!important}.padding-horiz--xl,.padding-right--xl{padding-right:5rem!important}.padding--xl{padding:5rem!important}code{background-color:var(--ifm-code-background);border:.1rem solid #0000001a;border-radius:var(--ifm-code-border-radius);font-family:var(--ifm-font-family-monospace);font-size:var(--ifm-code-font-size);padding:var(--ifm-code-padding-vertical) var(--ifm-code-padding-horizontal)}a code{color:inherit}pre{background-color:var(--ifm-pre-background);border-radius:var(--ifm-pre-border-radius);color:var(--ifm-pre-color);font:var(--ifm-code-font-size)/var(--ifm-pre-line-height) var(--ifm-font-family-monospace);padding:var(--ifm-pre-padding)}pre code{background-color:initial;border:none;font-size:100%;line-height:inherit;padding:0}kbd{background-color:var(--ifm-color-emphasis-0);border:1px solid var(--ifm-color-emphasis-400);border-radius:.2rem;box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-400);color:var(--ifm-color-emphasis-800);font:80% var(--ifm-font-family-monospace);padding:.15rem .3rem}h1,h2,h3,h4,h5,h6{color:var(--ifm-heading-color);font-family:var(--ifm-heading-font-family);font-weight:var(--ifm-heading-font-weight);line-height:var(--ifm-heading-line-height);margin:var(--ifm-heading-margin-top) 0 var(--ifm-heading-margin-bottom) 0}h1{font-size:var(--ifm-h1-font-size)}h2{font-size:var(--ifm-h2-font-size)}h3{font-size:var(--ifm-h3-font-size)}h4{font-size:var(--ifm-h4-font-size)}h5{font-size:var(--ifm-h5-font-size)}h6{font-size:var(--ifm-h6-font-size)}img{max-width:100%}img[align=right]{padding-left:var(--image-alignment-padding)}img[align=left]{padding-right:var(--image-alignment-padding)}.markdown{--ifm-h1-vertical-rhythm-top:3;--ifm-h2-vertical-rhythm-top:2;--ifm-h3-vertical-rhythm-top:1.5;--ifm-heading-vertical-rhythm-top:1.25;--ifm-h1-vertical-rhythm-bottom:1.25;--ifm-heading-vertical-rhythm-bottom:1}.markdown:after,.markdown:before{content:"";display:table}.markdown:after{clear:both}.markdown h1:first-child{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-h1-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown>h2{--ifm-h2-font-size:2rem;margin-top:calc(var(--ifm-h2-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h3{--ifm-h3-font-size:1.5rem;margin-top:calc(var(--ifm-h3-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h4,.markdown>h5,.markdown>h6{margin-top:calc(var(--ifm-heading-vertical-rhythm-top)*var(--ifm-leading))}.markdown>p,.markdown>pre,.markdown>ul,.tabList__CuJ{margin-bottom:var(--ifm-leading)}.markdown li>p{margin-top:var(--ifm-list-paragraph-margin)}.markdown li+li{margin-top:var(--ifm-list-item-margin)}ol,ul{margin:0 0 var(--ifm-list-margin);padding-left:var(--ifm-list-left-padding)}ol ol,ul ol{list-style-type:lower-roman}ol ol ol,ol ul ol,ul ol ol,ul ul ol{list-style-type:lower-alpha}table{border-collapse:collapse;display:block;margin-bottom:var(--ifm-spacing-vertical)}table thead tr{border-bottom:2px solid var(--ifm-table-border-color)}table thead,table tr:nth-child(2n){background-color:var(--ifm-table-stripe-background)}table tr{background-color:var(--ifm-table-background);border-top:var(--ifm-table-border-width) solid var(--ifm-table-border-color)}table td,table th{border:var(--ifm-table-border-width) solid var(--ifm-table-border-color);padding:var(--ifm-table-cell-padding)}table th{background-color:var(--ifm-table-head-background);color:var(--ifm-table-head-color);font-weight:var(--ifm-table-head-font-weight)}table td{color:var(--ifm-table-cell-color)}strong{font-weight:var(--ifm-font-weight-bold)}a{color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}a:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button:hover,.text--no-decoration,.text--no-decoration:hover,a:not([href]){text-decoration:none}p{margin:0 0 var(--ifm-paragraph-margin-bottom)}blockquote{border-left:var(--ifm-blockquote-border-left-width) solid var(--ifm-blockquote-border-color);box-shadow:var(--ifm-blockquote-shadow);color:var(--ifm-blockquote-color);font-size:var(--ifm-blockquote-font-size);padding:var(--ifm-blockquote-padding-vertical) var(--ifm-blockquote-padding-horizontal)}blockquote>:first-child{margin-top:0}blockquote>:last-child{margin-bottom:0}hr{background-color:var(--ifm-hr-background-color);border:0;height:var(--ifm-hr-height);margin:var(--ifm-hr-margin-vertical) 0}.shadow--lw{box-shadow:var(--ifm-global-shadow-lw)!important}.shadow--md{box-shadow:var(--ifm-global-shadow-md)!important}.shadow--tl{box-shadow:var(--ifm-global-shadow-tl)!important}.text--primary,.wordWrapButtonEnabled_EoeP .wordWrapButtonIcon_Bwma{color:var(--ifm-color-primary)}.text--secondary{color:var(--ifm-color-secondary)}.text--success{color:var(--ifm-color-success)}.text--info{color:var(--ifm-color-info)}.text--warning{color:var(--ifm-color-warning)}.text--danger{color:var(--ifm-color-danger)}.text--center{text-align:center}.text--left,details.history table thead th{text-align:left}.text--justify{text-align:justify}.text--right{text-align:right}.text--capitalize{text-transform:capitalize}.text--lowercase{text-transform:lowercase}.admonitionHeading_Gvgb,.alert__heading,.text--uppercase{text-transform:uppercase}.text--light{font-weight:var(--ifm-font-weight-light)}.text--normal{font-weight:var(--ifm-font-weight-normal)}.text--semibold{font-weight:var(--ifm-font-weight-semibold)}.text--bold{font-weight:var(--ifm-font-weight-bold)}.text--italic{font-style:italic}.text--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text--break{word-wrap:break-word!important;word-break:break-word!important}.clean-btn{background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;padding:0}.alert,.alert .close{color:var(--ifm-alert-foreground-color)}.clean-list{padding-left:0}.alert--primary{--ifm-alert-background-color:var(--ifm-color-primary-contrast-background);--ifm-alert-background-color-highlight:#3578e526;--ifm-alert-foreground-color:var(--ifm-color-primary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-primary-dark)}.alert--secondary{--ifm-alert-background-color:var(--ifm-color-secondary-contrast-background);--ifm-alert-background-color-highlight:#ebedf026;--ifm-alert-foreground-color:var(--ifm-color-secondary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-secondary-dark)}.alert--success{--ifm-alert-background-color:var(--ifm-color-success-contrast-background);--ifm-alert-background-color-highlight:#00a40026;--ifm-alert-foreground-color:var(--ifm-color-success-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-success-dark)}.alert--info{--ifm-alert-background-color:var(--ifm-color-info-contrast-background);--ifm-alert-background-color-highlight:#54c7ec26;--ifm-alert-foreground-color:var(--ifm-color-info-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-info-dark)}.alert--warning{--ifm-alert-background-color:var(--ifm-color-warning-contrast-background);--ifm-alert-background-color-highlight:#ffba0026;--ifm-alert-foreground-color:var(--ifm-color-warning-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-warning-dark)}.alert--danger{--ifm-alert-background-color:var(--ifm-color-danger-contrast-background);--ifm-alert-background-color-highlight:#fa383e26;--ifm-alert-foreground-color:var(--ifm-color-danger-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-danger-dark)}.alert{--ifm-code-background:var(--ifm-alert-background-color-highlight);--ifm-link-color:var(--ifm-alert-foreground-color);--ifm-link-hover-color:var(--ifm-alert-foreground-color);--ifm-link-decoration:underline;--ifm-tabs-color:var(--ifm-alert-foreground-color);--ifm-tabs-color-active:var(--ifm-alert-foreground-color);--ifm-tabs-color-active-border:var(--ifm-alert-border-color);background-color:var(--ifm-alert-background-color);border:var(--ifm-alert-border-width) solid var(--ifm-alert-border-color);border-left-width:var(--ifm-alert-border-left-width);border-radius:var(--ifm-alert-border-radius);box-shadow:var(--ifm-alert-shadow);padding:var(--ifm-alert-padding-vertical) var(--ifm-alert-padding-horizontal)}.alert__heading{align-items:center;display:flex;font:700 var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.5rem}.alert__icon{display:inline-flex;margin-right:.4em}.alert__icon svg{fill:var(--ifm-alert-foreground-color);stroke:var(--ifm-alert-foreground-color);stroke-width:0}.alert .close{margin:calc(var(--ifm-alert-padding-vertical)*-1) calc(var(--ifm-alert-padding-horizontal)*-1) 0 0;opacity:.75}.alert .close:focus,.alert .close:hover{opacity:1}.alert a{text-decoration-color:var(--ifm-alert-border-color)}.alert a:hover{text-decoration-thickness:2px}.avatar{column-gap:var(--ifm-avatar-intro-margin);display:flex}.avatar__photo{border-radius:50%;display:block;height:var(--ifm-avatar-photo-size);overflow:hidden;width:var(--ifm-avatar-photo-size)}.card--full-height,.navbar__logo img,body,html{height:100%}.avatar__photo--sm{--ifm-avatar-photo-size:2rem}.avatar__photo--lg{--ifm-avatar-photo-size:4rem}.avatar__photo--xl{--ifm-avatar-photo-size:6rem}.avatar__intro{display:flex;flex:1 1;flex-direction:column;justify-content:center;text-align:var(--ifm-avatar-intro-alignment)}.badge,.breadcrumbs__item,.breadcrumbs__link,.button,.dropdown>.navbar__link:after,.searchBarContainer_NW3z.searchIndexLoading_EJ1f .searchBarLoadingRing_YnHq{display:inline-block}.avatar__name{font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base)}.avatar__subtitle{margin-top:.25rem}.avatar--vertical{--ifm-avatar-intro-alignment:center;--ifm-avatar-intro-margin:0.5rem;align-items:center;flex-direction:column}.badge{background-color:var(--ifm-badge-background-color);border:var(--ifm-badge-border-width) solid var(--ifm-badge-border-color);border-radius:var(--ifm-badge-border-radius);color:var(--ifm-badge-color);font-size:75%;font-weight:var(--ifm-font-weight-bold);line-height:1;padding:var(--ifm-badge-padding-vertical) var(--ifm-badge-padding-horizontal)}.badge--primary{--ifm-badge-background-color:var(--ifm-color-primary)}.badge--secondary{--ifm-badge-background-color:var(--ifm-color-secondary);color:var(--ifm-color-black)}.breadcrumbs__link,.button.button--secondary.button--outline:not(.button--active):not(:hover){color:var(--ifm-font-color-base)}.badge--success{--ifm-badge-background-color:var(--ifm-color-success)}.badge--info{--ifm-badge-background-color:var(--ifm-color-info)}.badge--warning{--ifm-badge-background-color:var(--ifm-color-warning)}.badge--danger{--ifm-badge-background-color:var(--ifm-color-danger)}.breadcrumbs{margin-bottom:0;padding-left:0}.breadcrumbs__item:not(:last-child):after{background:var(--ifm-breadcrumb-separator) center;content:" ";display:inline-block;filter:var(--ifm-breadcrumb-separator-filter);height:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier));margin:0 var(--ifm-breadcrumb-spacing);opacity:.5;width:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier))}.breadcrumbs__item--active .breadcrumbs__link{background:var(--ifm-breadcrumb-item-background-active);color:var(--ifm-breadcrumb-color-active)}.breadcrumbs__link{border-radius:var(--ifm-breadcrumb-border-radius);font-size:calc(1rem*var(--ifm-breadcrumb-size-multiplier));padding:calc(var(--ifm-breadcrumb-padding-vertical)*var(--ifm-breadcrumb-size-multiplier)) calc(var(--ifm-breadcrumb-padding-horizontal)*var(--ifm-breadcrumb-size-multiplier));transition-duration:var(--ifm-transition-fast);transition-property:background,color}.breadcrumbs__link:any-link:hover,.breadcrumbs__link:link:hover,.breadcrumbs__link:visited:hover,area[href].breadcrumbs__link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs--sm{--ifm-breadcrumb-size-multiplier:0.8}.breadcrumbs--lg{--ifm-breadcrumb-size-multiplier:1.2}.button{background-color:var(--ifm-button-background-color);border:var(--ifm-button-border-width) solid var(--ifm-button-border-color);border-radius:var(--ifm-button-border-radius);cursor:pointer;font-size:calc(.875rem*var(--ifm-button-size-multiplier));font-weight:var(--ifm-button-font-weight);line-height:1.5;padding:calc(var(--ifm-button-padding-vertical)*var(--ifm-button-size-multiplier)) calc(var(--ifm-button-padding-horizontal)*var(--ifm-button-size-multiplier));text-align:center;transition-duration:var(--ifm-button-transition-duration);transition-property:color,background,border-color;-webkit-user-select:none;user-select:none;white-space:nowrap}.button,.button:hover{color:var(--ifm-button-color)}.button--outline{--ifm-button-color:var(--ifm-button-border-color)}.button--outline:hover{--ifm-button-background-color:var(--ifm-button-border-color)}.button--link{--ifm-button-border-color:#0000;color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}.button--link.button--active,.button--link:active,.button--link:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button.disabled,.button:disabled,.button[disabled]{opacity:.65;pointer-events:none}.button--sm{--ifm-button-size-multiplier:0.8}.button--lg{--ifm-button-size-multiplier:1.35}.button--block{display:block;width:100%}.button.button--secondary{color:var(--ifm-color-gray-900)}:where(.button--primary){--ifm-button-background-color:var(--ifm-color-primary);--ifm-button-border-color:var(--ifm-color-primary)}:where(.button--primary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-primary-dark);--ifm-button-border-color:var(--ifm-color-primary-dark)}.button--primary.button--active,.button--primary:active{--ifm-button-background-color:var(--ifm-color-primary-darker);--ifm-button-border-color:var(--ifm-color-primary-darker)}:where(.button--secondary){--ifm-button-background-color:var(--ifm-color-secondary);--ifm-button-border-color:var(--ifm-color-secondary)}:where(.button--secondary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-secondary-dark);--ifm-button-border-color:var(--ifm-color-secondary-dark)}.button--secondary.button--active,.button--secondary:active{--ifm-button-background-color:var(--ifm-color-secondary-darker);--ifm-button-border-color:var(--ifm-color-secondary-darker)}:where(.button--success){--ifm-button-background-color:var(--ifm-color-success);--ifm-button-border-color:var(--ifm-color-success)}:where(.button--success):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-success-dark);--ifm-button-border-color:var(--ifm-color-success-dark)}.button--success.button--active,.button--success:active{--ifm-button-background-color:var(--ifm-color-success-darker);--ifm-button-border-color:var(--ifm-color-success-darker)}:where(.button--info){--ifm-button-background-color:var(--ifm-color-info);--ifm-button-border-color:var(--ifm-color-info)}:where(.button--info):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-info-dark);--ifm-button-border-color:var(--ifm-color-info-dark)}.button--info.button--active,.button--info:active{--ifm-button-background-color:var(--ifm-color-info-darker);--ifm-button-border-color:var(--ifm-color-info-darker)}:where(.button--warning){--ifm-button-background-color:var(--ifm-color-warning);--ifm-button-border-color:var(--ifm-color-warning)}:where(.button--warning):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-warning-dark);--ifm-button-border-color:var(--ifm-color-warning-dark)}.button--warning.button--active,.button--warning:active{--ifm-button-background-color:var(--ifm-color-warning-darker);--ifm-button-border-color:var(--ifm-color-warning-darker)}:where(.button--danger){--ifm-button-background-color:var(--ifm-color-danger);--ifm-button-border-color:var(--ifm-color-danger)}:where(.button--danger):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-danger-dark);--ifm-button-border-color:var(--ifm-color-danger-dark)}.button--danger.button--active,.button--danger:active{--ifm-button-background-color:var(--ifm-color-danger-darker);--ifm-button-border-color:var(--ifm-color-danger-darker)}.button-group{display:inline-flex;gap:var(--ifm-button-group-spacing)}.button-group>.button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.button-group>.button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.button-group--block{display:flex;justify-content:stretch}.button-group--block>.button{flex-grow:1}.card{background-color:var(--ifm-card-background-color);border-radius:var(--ifm-card-border-radius);box-shadow:var(--ifm-global-shadow-lw);display:flex;flex-direction:column;overflow:hidden}.card__image{padding-top:var(--ifm-card-vertical-spacing)}.card__image:first-child{padding-top:0}.card__body,.card__footer,.card__header{padding:var(--ifm-card-vertical-spacing) var(--ifm-card-horizontal-spacing)}.card__body:not(:last-child),.card__footer:not(:last-child),.card__header:not(:last-child){padding-bottom:0}.card__body>:last-child,.card__footer>:last-child,.card__header>:last-child{margin-bottom:0}.card__footer{margin-top:auto}.table-of-contents{font-size:.8rem;margin-bottom:0;padding:var(--ifm-toc-padding-vertical) 0}.table-of-contents,.table-of-contents ul{list-style:none;padding-left:var(--ifm-toc-padding-horizontal)}.table-of-contents li{margin:var(--ifm-toc-padding-vertical) var(--ifm-toc-padding-horizontal)}.table-of-contents__left-border{border-left:1px solid var(--ifm-toc-border-color)}.table-of-contents__link{color:var(--ifm-toc-link-color);display:block}.table-of-contents__link--active,.table-of-contents__link--active code,.table-of-contents__link:hover,.table-of-contents__link:hover code{color:var(--ifm-color-primary);text-decoration:none}.content_knG7 a,.hitFooter_E9YW a,.suggestion_fB_2.cursor_eG29 mark{text-decoration:underline}.close{color:var(--ifm-color-black);float:right;font-size:1.5rem;font-weight:var(--ifm-font-weight-bold);line-height:1;opacity:.5;padding:1rem;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.close:hover{opacity:.7}.close:focus,.theme-code-block-highlighted-line .codeLineNumber_Tfdd:before{opacity:.8}.dropdown{display:inline-flex;font-weight:var(--ifm-dropdown-font-weight);position:relative;vertical-align:top}.dropdown--hoverable:hover .dropdown__menu,.dropdown--show .dropdown__menu{opacity:1;pointer-events:all;transform:translateY(-1px);visibility:visible}.dropdown--right .dropdown__menu{left:inherit;right:0}.dropdown--nocaret .navbar__link:after{content:none!important}.dropdown__menu{background-color:var(--ifm-dropdown-background-color);border-radius:var(--ifm-global-radius);box-shadow:var(--ifm-global-shadow-md);left:0;max-height:80vh;min-width:10rem;opacity:0;overflow-y:auto;padding:.5rem;pointer-events:none;position:absolute;top:calc(100% - var(--ifm-navbar-item-padding-vertical) + .3rem);transform:translateY(-.625rem);transition-duration:var(--ifm-transition-fast);transition-property:opacity,transform,visibility;transition-timing-function:var(--ifm-transition-timing-default);visibility:hidden;z-index:var(--ifm-z-index-dropdown)}.menu__caret,.menu__link,.menu__list-item-collapsible{border-radius:.25rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.dropdown__link{border-radius:.25rem;color:var(--ifm-dropdown-link-color);display:block;font-size:.875rem;margin-top:.2rem;padding:.25rem .5rem;white-space:nowrap}.dropdown__link--active,.dropdown__link:hover{background-color:var(--ifm-dropdown-hover-background-color);color:var(--ifm-dropdown-link-color);text-decoration:none}.dropdown__link--active,.dropdown__link--active:hover{--ifm-dropdown-link-color:var(--ifm-link-color)}.dropdown>.navbar__link:after{border-color:currentcolor #0000;border-style:solid;border-width:.4em .4em 0;content:"";margin-left:.3em;position:relative;top:2px;transform:translateY(-50%)}.footer{background-color:var(--ifm-footer-background-color);color:var(--ifm-footer-color);padding:var(--ifm-footer-padding-vertical) var(--ifm-footer-padding-horizontal)}.footer--dark{--ifm-footer-background-color:#303846;--ifm-footer-color:var(--ifm-footer-link-color);--ifm-footer-link-color:var(--ifm-color-secondary);--ifm-footer-title-color:var(--ifm-color-white)}.footer__links{margin-bottom:1rem}.footer__link-item{color:var(--ifm-footer-link-color);line-height:2}.footer__link-item:hover{color:var(--ifm-footer-link-hover-color)}.footer__link-separator{margin:0 var(--ifm-footer-link-horizontal-spacing)}.footer__logo{margin-top:1rem;max-width:var(--ifm-footer-logo-max-width)}.footer__title{color:var(--ifm-footer-title-color);font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base);margin-bottom:var(--ifm-heading-margin-bottom)}.menu,.navbar__link{font-weight:var(--ifm-font-weight-semibold)}.docItemContainer_Djhp article>:first-child,.docItemContainer_Djhp header+*,.footer__item{margin-top:0}.admonitionContent_BuS1>:last-child,.collapsibleContent_i85q p:last-child,.details_lb9f>summary>p:last-child,.footer__items,.searchResultItem_U687>h2,.tabItem_Ymn6>:last-child{margin-bottom:0}.codeBlockStandalone_MEMb,[type=checkbox]{padding:0}.hero{align-items:center;background-color:var(--ifm-hero-background-color);color:var(--ifm-hero-text-color);display:flex;padding:4rem 2rem}.hero--primary{--ifm-hero-background-color:var(--ifm-color-primary);--ifm-hero-text-color:var(--ifm-font-color-base-inverse)}.hero--dark{--ifm-hero-background-color:#303846;--ifm-hero-text-color:var(--ifm-color-white)}.hero__title{font-size:3rem}.hero__subtitle{font-size:1.5rem}.menu__list{margin:0;padding-left:0}.menu__caret,.menu__link{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu__list .menu__list{flex:0 0 100%;margin-top:.25rem;padding-left:var(--ifm-menu-link-padding-horizontal)}.menu__list-item:not(:first-child){margin-top:.25rem}.menu__list-item--collapsed .menu__list{height:0;overflow:hidden}.details_lb9f[data-collapsed=false].isBrowser_bmU9>summary:before,.details_lb9f[open]:not(.isBrowser_bmU9)>summary:before,.menu__list-item--collapsed .menu__caret:before,.menu__list-item--collapsed .menu__link--sublist:after{transform:rotate(90deg)}.menu__list-item-collapsible{display:flex;flex-wrap:wrap;position:relative}.menu__caret:hover,.menu__link:hover,.menu__list-item-collapsible--active,.menu__list-item-collapsible:hover{background:var(--ifm-menu-color-background-hover)}.menu__list-item-collapsible .menu__link--active,.menu__list-item-collapsible .menu__link:hover{background:none!important}.menu__caret,.menu__link{align-items:center;display:flex}.navbar-sidebar,.navbar-sidebar__backdrop{bottom:0;opacity:0;transition-duration:var(--ifm-transition-fast);transition-timing-function:ease-in-out;left:0;top:0;visibility:hidden}.menu__link{color:var(--ifm-menu-color);flex:1;line-height:1.25}.menu__link:hover{color:var(--ifm-menu-color);text-decoration:none}.menu__caret:before,.menu__link--sublist-caret:after{content:"";transform:rotate(180deg);transition:transform var(--ifm-transition-fast) linear;height:1.25rem;width:1.25rem;filter:var(--ifm-menu-link-sublist-icon-filter)}.menu__link--sublist-caret:after{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem;margin-left:auto;min-width:1.25rem}.menu__link--active,.menu__link--active:hover{color:var(--ifm-menu-color-active)}.navbar__brand,.navbar__link{color:var(--ifm-navbar-link-color)}.menu__link--active:not(.menu__link--sublist){background-color:var(--ifm-menu-color-background-active)}.menu__caret:before{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem}.navbar--dark,html[data-theme=dark]{--ifm-menu-link-sublist-icon-filter:invert(100%) sepia(94%) saturate(17%) hue-rotate(223deg) brightness(104%) contrast(98%)}.navbar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-navbar-shadow);height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar,.navbar>.container,.navbar>.container-fluid{display:flex}.navbar--fixed-top{position:sticky;top:0;z-index:var(--ifm-z-index-fixed)}.navbar__inner{display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.navbar__brand{align-items:center;display:flex;min-width:0}.navbar__brand:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.announcementBarContent_xLdY,.navbar__title{flex:1 1 auto}.navbar__toggle{display:none;margin-right:.5rem}.navbar__logo{flex:0 0 auto;height:2rem;margin-right:.5rem}.navbar__items{align-items:center;display:flex;flex:1;min-width:0}.navbar__items--center{flex:0 0 auto}.navbar__items--center .navbar__brand{margin:0}.navbar__items--center+.navbar__items--right{flex:1}.navbar__items--right{flex:0 0 auto;justify-content:flex-end}.navbar__items--right>:last-child{padding-right:0}.navbar__item{display:inline-block;padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}#nprogress,.navbar__item.dropdown .navbar__link:not([href]){pointer-events:none}.navbar__link--active,.navbar__link:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.navbar--dark,.navbar--primary{--ifm-menu-color:var(--ifm-color-gray-300);--ifm-navbar-link-color:var(--ifm-color-gray-100);--ifm-navbar-search-input-background-color:#ffffff1a;--ifm-navbar-search-input-placeholder-color:#ffffff80;color:var(--ifm-color-white)}.navbar--dark{--ifm-navbar-background-color:#242526;--ifm-menu-color-background-active:#ffffff0d;--ifm-navbar-search-input-color:var(--ifm-color-white)}.navbar--primary{--ifm-navbar-background-color:var(--ifm-color-primary);--ifm-navbar-link-hover-color:var(--ifm-color-white);--ifm-menu-color-active:var(--ifm-color-white);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-500)}.navbar__search-input{-webkit-appearance:none;appearance:none;background:var(--ifm-navbar-search-input-background-color) var(--ifm-navbar-search-input-icon) no-repeat .75rem center/1rem 1rem;border:none;border-radius:2rem;color:var(--ifm-navbar-search-input-color);cursor:text;display:inline-block;font-size:.9rem;height:2rem;padding:0 .5rem 0 2.25rem;width:12.5rem}.navbar__search-input::placeholder{color:var(--ifm-navbar-search-input-placeholder-color)}.navbar-sidebar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-global-shadow-md);position:fixed;transform:translate3d(-100%,0,0);transition-property:opacity,visibility,transform;width:var(--ifm-navbar-sidebar-width)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar__items{transform:translateZ(0)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar--show .navbar-sidebar__backdrop{opacity:1;visibility:visible}.navbar-sidebar__backdrop{background-color:#0009;position:fixed;right:0;transition-property:opacity,visibility}.navbar-sidebar__brand{align-items:center;box-shadow:var(--ifm-navbar-shadow);display:flex;flex:1;height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar-sidebar__items{display:flex;height:calc(100% - var(--ifm-navbar-height));transition:transform var(--ifm-transition-fast) ease-in-out}.navbar-sidebar__items--show-secondary{transform:translate3d(calc((var(--ifm-navbar-sidebar-width))*-1),0,0)}.navbar-sidebar__item{flex-shrink:0;padding:.5rem;width:calc(var(--ifm-navbar-sidebar-width))}.navbar-sidebar__back{background:var(--ifm-menu-color-background-active);font-size:15px;font-weight:var(--ifm-button-font-weight);margin:0 0 .2rem -.5rem;padding:.6rem 1.5rem;position:relative;text-align:left;top:-.5rem;width:calc(100% + 1rem)}.navbar-sidebar__close{display:flex;margin-left:auto}.pagination{column-gap:var(--ifm-pagination-page-spacing);display:flex;font-size:var(--ifm-pagination-font-size);padding-left:0}.pagination--sm{--ifm-pagination-font-size:0.8rem;--ifm-pagination-padding-horizontal:0.8rem;--ifm-pagination-padding-vertical:0.2rem}.pagination--lg{--ifm-pagination-font-size:1.2rem;--ifm-pagination-padding-horizontal:1.2rem;--ifm-pagination-padding-vertical:0.3rem}.pagination__item{display:inline-flex}.pagination__item>span{padding:var(--ifm-pagination-padding-vertical)}.pagination__item--active .pagination__link{color:var(--ifm-pagination-color-active)}.pagination__item--active .pagination__link,.pagination__item:not(.pagination__item--active):hover .pagination__link{background:var(--ifm-pagination-item-active-background)}.pagination__item--disabled,.pagination__item[disabled]{opacity:.25;pointer-events:none}.pagination__link{border-radius:var(--ifm-pagination-border-radius);color:var(--ifm-font-color-base);display:inline-block;padding:var(--ifm-pagination-padding-vertical) var(--ifm-pagination-padding-horizontal);transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination__link:hover{text-decoration:none}.pagination-nav{grid-gap:var(--ifm-spacing-horizontal);display:grid;gap:var(--ifm-spacing-horizontal);grid-template-columns:repeat(2,1fr)}.pagination-nav__link{border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-pagination-nav-border-radius);display:block;height:100%;line-height:var(--ifm-heading-line-height);padding:var(--ifm-global-spacing);transition:border-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination-nav__link:hover{border-color:var(--ifm-pagination-nav-color-hover);text-decoration:none}.pagination-nav__link--next{grid-column:2/3;text-align:right}.pagination-nav__label{font-size:var(--ifm-h4-font-size);font-weight:var(--ifm-heading-font-weight);word-break:break-word}.pagination-nav__link--prev .pagination-nav__label:before{content:"« "}.pagination-nav__link--next .pagination-nav__label:after{content:" »"}.pagination-nav__sublabel{color:var(--ifm-color-content-secondary);font-size:var(--ifm-h5-font-size);font-weight:var(--ifm-font-weight-semibold);margin-bottom:.25rem}.pills__item,.tabs{font-weight:var(--ifm-font-weight-bold)}.pills{display:flex;gap:var(--ifm-pills-spacing);padding-left:0}.pills__item{border-radius:.5rem;cursor:pointer;display:inline-block;padding:.25rem 1rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs,:not(.containsTaskList_mC6p>li)>.containsTaskList_mC6p{padding-left:0}.pills__item--active{color:var(--ifm-pills-color-active)}.pills__item--active,.pills__item:not(.pills__item--active):hover{background:var(--ifm-pills-color-background-active)}.pills--block{justify-content:stretch}.pills--block .pills__item{flex-grow:1;text-align:center}.tabs{color:var(--ifm-tabs-color);display:flex;margin-bottom:0;overflow-x:auto}.tabs__item{border-bottom:3px solid #0000;border-radius:var(--ifm-global-radius);cursor:pointer;display:inline-flex;padding:var(--ifm-tabs-padding-vertical) var(--ifm-tabs-padding-horizontal);transition:background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs__item--active{border-bottom-color:var(--ifm-tabs-color-active-border);border-bottom-left-radius:0;border-bottom-right-radius:0;color:var(--ifm-tabs-color-active)}.tabs__item:hover{background-color:var(--ifm-hover-overlay)}.tabs--block{justify-content:stretch}.tabs--block .tabs__item{flex-grow:1;justify-content:center}html[data-theme=dark]{--ifm-color-scheme:dark;--ifm-color-emphasis-0:var(--ifm-color-gray-1000);--ifm-color-emphasis-100:var(--ifm-color-gray-900);--ifm-color-emphasis-200:var(--ifm-color-gray-800);--ifm-color-emphasis-300:var(--ifm-color-gray-700);--ifm-color-emphasis-400:var(--ifm-color-gray-600);--ifm-color-emphasis-600:var(--ifm-color-gray-400);--ifm-color-emphasis-700:var(--ifm-color-gray-300);--ifm-color-emphasis-800:var(--ifm-color-gray-200);--ifm-color-emphasis-900:var(--ifm-color-gray-100);--ifm-color-emphasis-1000:var(--ifm-color-gray-0);--ifm-background-color:#1b1b1d;--ifm-background-surface-color:#242526;--ifm-hover-overlay:#ffffff0d;--ifm-color-content:#e3e3e3;--ifm-color-content-secondary:#fff;--ifm-breadcrumb-separator-filter:invert(64%) sepia(11%) saturate(0%) hue-rotate(149deg) brightness(99%) contrast(95%);--ifm-code-background:#ffffff1a;--ifm-scrollbar-track-background-color:#444;--ifm-scrollbar-thumb-background-color:#686868;--ifm-scrollbar-thumb-hover-background-color:#7a7a7a;--ifm-table-stripe-background:#ffffff12;--ifm-toc-border-color:var(--ifm-color-emphasis-200);--ifm-color-primary-contrast-background:#102445;--ifm-color-primary-contrast-foreground:#ebf2fc;--ifm-color-secondary-contrast-background:#474748;--ifm-color-secondary-contrast-foreground:#fdfdfe;--ifm-color-success-contrast-background:#003100;--ifm-color-success-contrast-foreground:#e6f6e6;--ifm-color-info-contrast-background:#193c47;--ifm-color-info-contrast-foreground:#eef9fd;--ifm-color-warning-contrast-background:#4d3800;--ifm-color-warning-contrast-foreground:#fff8e6;--ifm-color-danger-contrast-background:#4b1113;--ifm-color-danger-contrast-foreground:#ffebec}#nprogress .bar{background:var(--docusaurus-progress-bar-color);height:2px;left:0;position:fixed;top:0;width:100%;z-index:1031}#nprogress .peg{box-shadow:0 0 10px var(--docusaurus-progress-bar-color),0 0 5px var(--docusaurus-progress-bar-color);height:100%;opacity:1;position:absolute;right:0;transform:rotate(3deg) translateY(-4px);width:100px}[data-theme=dark]{--ifm-color-primary:#7a77ff;--ifm-color-primary-dark:#5552ff;--ifm-color-primary-darker:#433fff;--ifm-color-primary-darkest:#0c07ff;--ifm-color-primary-light:#9f9cff;--ifm-color-primary-lighter:#b1afff;--ifm-color-primary-lightest:#b1afff;--docusaurus-highlighted-code-line-bg:#0c0d152b;--ifm-table-stripe-background:#5e30a0!important;--ifm-table-background:#0000!important}[data-theme=light] code[class*=language-],[data-theme=light] pre[class*=language-]{background-color:#f9fafb!important}[data-theme=light] code[class*=language-] .token.comment,[data-theme=light] pre[class*=language-] .token.comment{color:#6e7781!important}[data-theme=light] code[class*=language-] .token.string,[data-theme=light] pre[class*=language-] .token.string{color:#0a3069!important}[data-theme=light] code[class*=language-] .token.keyword,[data-theme=light] pre[class*=language-] .token.keyword{color:#cf222e!important}[data-theme=light] code[class*=language-] .token.method,[data-theme=light] pre[class*=language-] .token.method{color:#6639ba!important}[data-theme=light] code[class*=language-] .token.number,[data-theme=light] code[class*=language-] .token.property,[data-theme=light] pre[class*=language-] .token.number,[data-theme=light] pre[class*=language-] .token.property{color:#0550ae!important}code[class*=language-],pre[class*=language-]{font-size:.85em}code[class*=language-] .token.comment,pre[class*=language-] .token.comment{font-size:.9em;font-style:normal!important}.navbar__brand{margin-right:0}.navbar__manual--title{font-weight:700;margin-right:1rem;padding:0}#__docusaurus-base-url-issue-banner-container,.docSidebarContainer_YfHR,.hideAction_vcyE>svg,.navbar.navbar--fixed-top .navbar__item.dropdown.dropdown--hoverable svg,.sidebarLogo_isFc,.themedComponent_mlkZ,[data-theme=dark] .lightToggleIcon_pyhR,[data-theme=light] .darkToggleIcon_wfgR,html[data-announcement-bar-initially-dismissed=true] .announcementBar_mb4j{display:none}[title="svg{height:var(--search-local-hit-height,56px);opacity:.5;width:24px}.hitIcon_a7Zy,.hitTree_kk6K>svg{stroke-width:var(--search-local-icon-stroke-width,1.4)}.hitAction_NqkB,.hitIcon_a7Zy{height:20px;width:20px}.hitWrapper_sAK8{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;margin:0 8px;overflow-x:hidden;width:80%}.hitWrapper_sAK8 mark{background:none;color:var(--search-local-highlight-color,var(--ifm-color-primary))}.hitTitle_vyVt{font-size:.9em}.hitPath_ieM4{font-size:.75em}.hitPath_ieM4,.hitTitle_vyVt{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.noResults_l6Q3{flex-direction:column;justify-content:center;padding:var(--search-local-spacing,12px) 0}.noResultsIcon_EBY5{margin-bottom:var(--search-local-spacing,12px)}.hitFooter_E9YW{font-size:.85em;margin-top:var(--search-local-spacing,12px);text-align:center}.cursor_eG29 .hideAction_vcyE>svg,.tocCollapsibleContent_vkbj a{display:block}.suggestion_fB_2.cursor_eG29,.suggestion_fB_2.cursor_eG29 .hitIcon_a7Zy,.suggestion_fB_2.cursor_eG29 .hitPath_ieM4,.suggestion_fB_2.cursor_eG29 .hitTree_kk6K,.suggestion_fB_2.cursor_eG29 mark{color:var(--search-local-hit-active-color,var(--ifm-color-white))!important}.searchBarContainer_NW3z{margin-left:16px}.searchBarContainer_NW3z .searchBarLoadingRing_YnHq{display:none;left:10px;position:absolute;top:6px}.searchBarContainer_NW3z .searchClearButton_qk4g{background:none;border:none;line-height:1rem;padding:0;position:absolute;right:.8rem;top:50%;transform:translateY(-50%)}.navbar__search{position:relative}.searchIndexLoading_EJ1f .navbar__search-input{background-image:none}.searchHintContainer_Pkmr{align-items:center;display:flex;gap:4px;height:100%;justify-content:center;pointer-events:none;position:absolute;right:10px;top:0}.searchHint_iIMx{background-color:var(--ifm-navbar-search-input-background-color);border:1px solid var(--ifm-color-emphasis-500);box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-500);color:var(--ifm-navbar-search-input-placeholder-color)}.loadingRing_RJI3{display:inline-block;height:20px;opacity:var(--search-local-loading-icon-opacity,.5);position:relative;width:20px}.loadingRing_RJI3 div{animation:1.2s cubic-bezier(.5,0,.5,1) infinite b;border:2px solid var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color));border-color:var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color)) #0000 #0000 #0000;border-radius:50%;display:block;height:16px;margin:2px;position:absolute;width:16px}.loadingRing_RJI3 div:first-child{animation-delay:-.45s}.loadingRing_RJI3 div:nth-child(2){animation-delay:-.3s}.loadingRing_RJI3 div:nth-child(3){animation-delay:-.15s}@keyframes b{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@supports selector(:has(*)){.navbarSearchContainer_Bca1:not(:has(>*)){display:none}}.navbarHideable_m1mJ{transition:transform var(--ifm-transition-fast) ease}.navbarHidden_jGov{transform:translate3d(0,calc(-100% - 2px),0)}.errorBoundaryError_a6uf{color:red;white-space:pre-wrap}.errorBoundaryFallback_VBag{color:red;padding:.55rem}.footerLogoLink_BH7S{opacity:.5;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.footerLogoLink_BH7S:hover,.hash-link:focus,:hover>.hash-link{opacity:1}.anchorWithStickyNavbar_LWe7{scroll-margin-top:calc(var(--ifm-navbar-height) + .5rem)}.anchorWithHideOnScrollNavbar_WYt5{scroll-margin-top:.5rem}.hash-link{opacity:0;padding-left:.5rem;transition:opacity var(--ifm-transition-fast);-webkit-user-select:none;user-select:none}.hash-link:before{content:"#"}.mainWrapper_z2l0{display:flex;flex:1 0 auto;flex-direction:column}.docusaurus-mt-lg{margin-top:3rem}#__docusaurus{display:flex;flex-direction:column;min-height:100%}.iconEdit_Z9Sw{margin-right:.3em;vertical-align:sub}.tag_zVej{border:1px solid var(--docusaurus-tag-list-border);transition:border var(--ifm-transition-fast)}.tag_zVej:hover{--docusaurus-tag-list-border:var(--ifm-link-color);text-decoration:none}.tagRegular_sFm0{border-radius:var(--ifm-global-radius);font-size:90%;padding:.2rem .5rem .3rem}.tagWithCount_h2kH{align-items:center;border-left:0;display:flex;padding:0 .5rem 0 1rem;position:relative}.tagWithCount_h2kH:after,.tagWithCount_h2kH:before{border:1px solid var(--docusaurus-tag-list-border);content:"";position:absolute;top:50%;transition:inherit}.tagWithCount_h2kH:before{border-bottom:0;border-right:0;height:1.18rem;right:100%;transform:translate(50%,-50%) rotate(-45deg);width:1.18rem}.tagWithCount_h2kH:after{border-radius:50%;height:.5rem;left:0;transform:translateY(-50%);width:.5rem}.tagWithCount_h2kH span{background:var(--ifm-color-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-color-black);font-size:.7rem;line-height:1.2;margin-left:.3rem;padding:.1rem .4rem}.tags_jXut{display:inline}.tag_QGVx{display:inline-block;margin:0 .4rem .5rem 0}.lastUpdated_vwxv{font-size:smaller;font-style:italic;margin-top:.2rem}.tocCollapsibleButton_TO0P{align-items:center;display:flex;font-size:inherit;justify-content:space-between;padding:.4rem .8rem;width:100%}.tocCollapsibleButton_TO0P:after{background:var(--ifm-menu-link-sublist-icon) 50% 50%/2rem 2rem no-repeat;content:"";filter:var(--ifm-menu-link-sublist-icon-filter);height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast);width:1.25rem}.tocCollapsibleButtonExpanded_MG3E:after,.tocCollapsibleExpanded_sAul{transform:none}.tocCollapsible_ETCw{background-color:var(--ifm-menu-color-background-active);border-radius:var(--ifm-global-radius);margin:1rem 0}.tocCollapsibleContent_vkbj>ul{border-left:none;border-top:1px solid var(--ifm-color-emphasis-300);font-size:15px;padding:.2rem 0}.tocCollapsibleContent_vkbj ul li{margin:.4rem .8rem}.tableOfContents_bqdL{max-height:calc(100vh - var(--ifm-navbar-height) - 2rem);overflow-y:auto;position:sticky;top:calc(var(--ifm-navbar-height) + 1rem)}.searchContextInput_mXoe,.searchQueryInput_CFBF{background:var(--ifm-background-color);border:var(--ifm-global-border-width) solid var(--ifm-color-content-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-font-color-base);font-size:var(--ifm-font-size-base);margin-bottom:1rem;padding:.5rem;width:100%}.searchResultItem_U687{border-bottom:1px solid #dfe3e8;padding:1rem 0}.searchResultItemPath_uIbk{color:var(--ifm-color-content-secondary);font-size:.8rem;margin:.5rem 0 0}.searchResultItemSummary_oZHr{font-style:italic;margin:.5rem 0 0}.tag_Nnez{display:inline-block;margin:.5rem .5rem 0 1rem}.backToTopButton_sjWU{background-color:var(--ifm-color-emphasis-200);border-radius:50%;bottom:1.3rem;box-shadow:var(--ifm-global-shadow-lw);height:3rem;opacity:0;position:fixed;right:1.3rem;transform:scale(0);transition:all var(--ifm-transition-fast) var(--ifm-transition-timing-default);visibility:hidden;width:3rem;z-index:calc(var(--ifm-z-index-fixed) - 1)}.buttonGroup__atx button,.codeBlockContainer_Ckt0{background:var(--prism-background-color);color:var(--prism-color)}.backToTopButton_sjWU:after{background-color:var(--ifm-color-emphasis-1000);content:" ";display:inline-block;height:100%;-webkit-mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;width:100%}.backToTopButtonShow_xfvO{opacity:1;transform:scale(1);visibility:visible}[data-theme=dark]:root{--docusaurus-collapse-button-bg:#ffffff0d;--docusaurus-collapse-button-bg-hover:#ffffff1a}.collapseSidebarButton_PEFL{display:none;margin:0}.docMainContainer_TBSr,.docRoot_UBD9{display:flex;width:100%}.docsWrapper_hBAB{display:flex;flex:1 0 auto}.codeBlockContainer_Ckt0{border-radius:var(--ifm-code-border-radius);box-shadow:var(--ifm-global-shadow-lw);margin-bottom:var(--ifm-leading)}.codeBlockContent_biex{border-radius:inherit;direction:ltr;position:relative}.codeBlockTitle_Ktv7{border-bottom:1px solid var(--ifm-color-emphasis-300);border-top-left-radius:inherit;border-top-right-radius:inherit;font-size:var(--ifm-code-font-size);font-weight:500;padding:.75rem var(--ifm-pre-padding)}.codeBlock_bY9V{--ifm-pre-background:var(--prism-background-color);margin:0;padding:0}.codeBlockTitle_Ktv7+.codeBlockContent_biex .codeBlock_bY9V{border-top-left-radius:0;border-top-right-radius:0}.codeBlockLines_e6Vv{float:left;font:inherit;min-width:100%;padding:var(--ifm-pre-padding)}.codeBlockLinesWithNumbering_o6Pm{display:table;padding:var(--ifm-pre-padding) 0}.buttonGroup__atx{column-gap:.2rem;display:flex;position:absolute;right:calc(var(--ifm-pre-padding)/2);top:calc(var(--ifm-pre-padding)/2)}.buttonGroup__atx button{align-items:center;border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-global-radius);display:flex;line-height:0;opacity:0;padding:.4rem;transition:opacity var(--ifm-transition-fast) ease-in-out}.buttonGroup__atx button:focus-visible,.buttonGroup__atx button:hover{opacity:1!important}.theme-code-block:hover .buttonGroup__atx button{opacity:.4}:where(:root){--docusaurus-highlighted-code-line-bg:#484d5b}:where([data-theme=dark]){--docusaurus-highlighted-code-line-bg:#646464}.theme-code-block-highlighted-line{background-color:var(--docusaurus-highlighted-code-line-bg);display:block;margin:0 calc(var(--ifm-pre-padding)*-1);padding:0 var(--ifm-pre-padding)}.codeLine_lJS_{counter-increment:a;display:table-row}.codeLineNumber_Tfdd{background:var(--ifm-pre-background);display:table-cell;left:0;overflow-wrap:normal;padding:0 var(--ifm-pre-padding);position:sticky;text-align:right;width:1%}.codeLineNumber_Tfdd:before{content:counter(a);opacity:.4}.codeLineContent_feaV{padding-right:var(--ifm-pre-padding)}.details_lb9f{--docusaurus-details-summary-arrow-size:0.38rem;--docusaurus-details-transition:transform 200ms ease;--docusaurus-details-decoration-color:grey}.details_lb9f>summary{cursor:pointer;padding-left:1rem;position:relative}.details_lb9f>summary::-webkit-details-marker{display:none}.details_lb9f>summary:before{border-color:#0000 #0000 #0000 var(--docusaurus-details-decoration-color);border-style:solid;border-width:var(--docusaurus-details-summary-arrow-size);content:"";left:0;position:absolute;top:.45rem;transform:rotate(0);transform-origin:calc(var(--docusaurus-details-summary-arrow-size)/2) 50%;transition:var(--docusaurus-details-transition)}.collapsibleContent_i85q{border-top:1px solid var(--docusaurus-details-decoration-color);margin-top:1rem;padding-top:1rem}.theme-code-block:hover .copyButtonCopied_obH4{opacity:1!important}.copyButtonIcons_eSgA{height:1.125rem;position:relative;width:1.125rem}.copyButtonIcon_y97N,.copyButtonSuccessIcon_LjdS{fill:currentColor;height:inherit;left:0;opacity:inherit;position:absolute;top:0;transition:all var(--ifm-transition-fast) ease;width:inherit}.copyButtonSuccessIcon_LjdS{color:#00d600;left:50%;opacity:0;top:50%;transform:translate(-50%,-50%) scale(.33)}.copyButtonCopied_obH4 .copyButtonIcon_y97N{opacity:0;transform:scale(.33)}.copyButtonCopied_obH4 .copyButtonSuccessIcon_LjdS{opacity:1;transform:translate(-50%,-50%) scale(1);transition-delay:75ms}.details_b_Ee{--docusaurus-details-decoration-color:var(--ifm-alert-border-color);--docusaurus-details-transition:transform var(--ifm-transition-fast) ease;border:1px solid var(--ifm-alert-border-color);margin:0 0 var(--ifm-spacing-vertical)}.wordWrapButtonIcon_Bwma{height:1.2rem;width:1.2rem}.img_ev3q{height:auto}.admonition_xJq3{margin-bottom:1em}.admonitionHeading_Gvgb{font:var(--ifm-heading-font-weight) var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family)}.admonitionHeading_Gvgb:not(:last-child){margin-bottom:.3rem}.admonitionHeading_Gvgb code{text-transform:none}.admonitionIcon_Rf37{display:inline-block;margin-right:.4em;vertical-align:middle}.admonitionIcon_Rf37 svg{fill:var(--ifm-alert-foreground-color);display:inline-block;height:1.6em;width:1.6em}.breadcrumbHomeIcon_YNFT{height:1.1rem;position:relative;top:1px;vertical-align:top;width:1.1rem}.breadcrumbsContainer_Z_bl{--ifm-breadcrumb-size-multiplier:0.8;margin-bottom:.8rem}@media (min-width:997px){.collapseSidebarButton_PEFL,.expandButton_TmdG{background-color:var(--docusaurus-collapse-button-bg)}:root{--docusaurus-announcement-bar-height:30px}.announcementBarClose_gvF7,.announcementBarPlaceholder_vyr4{flex-basis:50px}.navbarSearchContainer_Bca1{padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.lastUpdated_vwxv{text-align:right}.tocMobile_ITEo{display:none}.collapseSidebarButton_PEFL{border:1px solid var(--ifm-toc-border-color);border-radius:0;bottom:0;display:block!important;height:40px;position:sticky}.collapseSidebarButtonIcon_kv0_{margin-top:4px;transform:rotate(180deg)}.expandButtonIcon_i1dp,[dir=rtl] .collapseSidebarButtonIcon_kv0_{transform:rotate(0)}.collapseSidebarButton_PEFL:focus,.collapseSidebarButton_PEFL:hover,.expandButton_TmdG:focus,.expandButton_TmdG:hover{background-color:var(--docusaurus-collapse-button-bg-hover)}.menuHtmlItem_M9Kj{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu_SIkG{flex-grow:1;padding:.5rem}@supports (scrollbar-gutter:stable){.menu_SIkG{padding:.5rem 0 .5rem .5rem;scrollbar-gutter:stable}}.menuWithAnnouncementBar_GW3s{margin-bottom:var(--docusaurus-announcement-bar-height)}.sidebar_njMd{display:flex;flex-direction:column;height:100%;padding-top:var(--ifm-navbar-height);width:var(--doc-sidebar-width)}.sidebarWithHideableNavbar_wUlq{padding-top:0}.sidebarHidden_VK0M{opacity:0;visibility:hidden}.sidebarLogo_isFc{align-items:center;color:inherit!important;display:flex!important;margin:0 var(--ifm-navbar-padding-horizontal);max-height:var(--ifm-navbar-height);min-height:var(--ifm-navbar-height);text-decoration:none!important}.sidebarLogo_isFc img{height:2rem;margin-right:.5rem}.expandButton_TmdG{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;transition:background-color var(--ifm-transition-fast) ease;width:100%}[dir=rtl] .expandButtonIcon_i1dp{transform:rotate(180deg)}.docSidebarContainer_YfHR{border-right:1px solid var(--ifm-toc-border-color);-webkit-clip-path:inset(0);clip-path:inset(0);display:block;margin-top:calc(var(--ifm-navbar-height)*-1);transition:width var(--ifm-transition-fast) ease;width:var(--doc-sidebar-width);will-change:width}.docSidebarContainerHidden_DPk8{cursor:pointer;width:var(--doc-sidebar-hidden-width)}.sidebarViewport_aRkj{height:100%;max-height:100vh;position:sticky;top:0}.docMainContainer_TBSr{flex-grow:1;max-width:calc(100% - var(--doc-sidebar-width))}.docMainContainerEnhanced_lQrH{max-width:calc(100% - var(--doc-sidebar-hidden-width))}.docItemWrapperEnhanced_JWYK{max-width:calc(var(--ifm-container-width) + var(--doc-sidebar-width))!important}.docItemCol_VOVn{max-width:75%!important}}@media (min-width:1440px){.container{max-width:var(--ifm-container-width-xl)}}@media (max-width:996px){.col{--ifm-col-width:100%;flex-basis:var(--ifm-col-width);margin-left:0}.footer{--ifm-footer-padding-horizontal:0}.colorModeToggle_DEke,.footer__link-separator,.navbar__item,.tableOfContents_bqdL{display:none}.footer__col{margin-bottom:calc(var(--ifm-spacing-vertical)*3)}.footer__link-item{display:block}.hero{padding-left:0;padding-right:0}.navbar>.container,.navbar>.container-fluid{padding:0}.navbar__toggle{display:inherit}.navbar__search-input{width:9rem}.pills--block,.tabs--block{flex-direction:column}.navbarSearchContainer_Bca1{position:absolute;right:var(--ifm-navbar-padding-horizontal)}.docItemContainer_F8PC{padding:0 .3rem}}@media not (max-width:996px){.searchBar_RVTs.searchBarLeft_MXDe .dropdownMenu_qbY6{left:0!important;right:auto!important}}@media only screen and (max-width:996px){.searchQueryColumn_q7nx{max-width:60%!important}.searchContextColumn_oWAF{max-width:40%!important}}@media (max-width:576px){.markdown h1:first-child{--ifm-h1-font-size:2rem}.markdown>h2{--ifm-h2-font-size:1.5rem}.markdown>h3{--ifm-h3-font-size:1.25rem}.navbar__search-input:not(:focus){width:2rem}.searchBar_RVTs .dropdownMenu_qbY6{max-width:calc(100vw - var(--ifm-navbar-padding-horizontal)*2);width:var(--search-local-modal-width-sm,340px)}.searchBarContainer_NW3z:not(.focused_OWtg) .searchClearButton_qk4g,.searchHintContainer_Pkmr{display:none}}@media screen and (max-width:576px){.searchQueryColumn_q7nx{max-width:100%!important}.searchContextColumn_oWAF{max-width:100%!important;padding-left:var(--ifm-spacing-horizontal)!important}}@media (hover:hover){.backToTopButton_sjWU:hover{background-color:var(--ifm-color-emphasis-300)}}@media (pointer:fine){.thin-scrollbar{scrollbar-width:thin}.thin-scrollbar::-webkit-scrollbar{height:var(--ifm-scrollbar-size);width:var(--ifm-scrollbar-size)}.thin-scrollbar::-webkit-scrollbar-track{background:var(--ifm-scrollbar-track-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb{background:var(--ifm-scrollbar-thumb-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--ifm-scrollbar-thumb-hover-background-color)}}@media (prefers-reduced-motion:reduce){:root{--ifm-transition-fast:0ms;--ifm-transition-slow:0ms}}@media print{.announcementBar_mb4j,.footer,.menu,.navbar,.pagination-nav,.table-of-contents,.tocMobile_ITEo{display:none}.tabs{page-break-inside:avoid}.codeBlockLines_e6Vv{white-space:pre-wrap}} \ No newline at end of file diff --git a/assets/js/0e27d5d9.777a9488.js b/assets/js/0e27d5d9.777a9488.js new file mode 100644 index 0000000000..c78e4b3a16 --- /dev/null +++ b/assets/js/0e27d5d9.777a9488.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5072],{9247:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>i,toc:()=>d});var a=t(5893),r=t(1151),s=t(4866),o=t(5162);const l={},u="Row Data Packet",i={id:"examples/typescript/row-data/index",title:"Row Data Packet",description:"",source:"@site/docs/examples/typescript/row-data/00-index.mdx",sourceDirName:"examples/typescript/row-data",slug:"/examples/typescript/row-data/index",permalink:"/node-mysql2/docs/examples/typescript/row-data/index",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/row-data/00-index.mdx",tags:[],version:"current",sidebarPosition:0,frontMatter:{},sidebar:"examples",previous:{title:"Procedure Call Packet (Row as Array)",permalink:"/node-mysql2/docs/examples/typescript/procedure-call/row-as-array"},next:{title:"Row Data Packet (Row as Array)",permalink:"/node-mysql2/docs/examples/typescript/row-data/row-as-array"}},c={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,r.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.h1,{id:"row-data-packet",children:"Row Data Packet"}),"\n",(0,a.jsx)(s.Z,{children:(0,a.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n id: number;\n name: string;\n}\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Getting users */\n const [users] = await conn.query(\n 'SELECT * FROM `users` ORDER BY `name` ASC;'\n );\n\n users.forEach((user) => {\n console.log('-----------');\n console.log('id: ', user.id);\n console.log('name:', user.name);\n });\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * -----------\n * id: 4\n * name: Gween\n * -----------\n * id: 2\n * name: John\n * -----------\n * id: 1\n * name: Josh\n * -----------\n * id: 3\n * name: Marie\n */\n"})})})})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var a=t(512);const r={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,a.Z)(r.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>k});var a=t(7294),r=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),i=t(7392),c=t(12);function d(e){return a.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,a.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,a.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:a,default:r}}=e;return{value:n,label:t,attributes:a,default:r}}))}(t);return function(e){const n=(0,i.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const r=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,a.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(r.location.search);n.set(s,e),r.replace({...r.location,search:n.toString()})}),[s,r])]}function h(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,s=p(e),[o,u]=(0,a.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const a=t.find((e=>e.default))??t[0];if(!a)throw new Error("Unexpected error: 0 tabValues");return a.value}({defaultValue:n,tabValues:s}))),[i,d]=f({queryString:t,groupId:r}),[h,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,s]=(0,c.Nk)(t);return[r,(0,a.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:r}),w=(()=>{const e=i??h;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{w&&u(w)}),[w]);return{selectedValue:o,selectValue:(0,a.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const w={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var y=t(5893);function x(e){let{className:n,block:t,selectedValue:a,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const n=e.currentTarget,t=u.indexOf(n),r=l[t].value;r!==a&&(i(n),o(r))},d=e=>{let n=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,y.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,y.jsx)("li",{role:"tab",tabIndex:a===n?0:-1,"aria-selected":a===n,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,r.Z)("tabs__item",w.tabItem,s?.className,{"tabs__item--active":a===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:r}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===r));return e?(0,a.cloneElement)(e,{className:"margin-top--md"}):null}return(0,y.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,a.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function g(e){const n=h(e);return(0,y.jsxs)("div",{className:(0,r.Z)("tabs-container",w.tabList),children:[(0,y.jsx)(x,{...e,...n}),(0,y.jsx)(v,{...e,...n})]})}function k(e){const n=(0,b.Z)();return(0,y.jsx)(g,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var a=t(7294);const r={},s=a.createContext(r);function o(e){const n=a.useContext(s);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),a.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/0fd3066c.e8dbfbc3.js b/assets/js/0fd3066c.e8dbfbc3.js new file mode 100644 index 0000000000..89a771bec7 --- /dev/null +++ b/assets/js/0fd3066c.e8dbfbc3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7272],{5299:e=>{e.exports=JSON.parse('{"label":"Parameters","permalink":"/node-mysql2/docs/tags/parameters","allTagsPath":"/node-mysql2/docs/tags","count":4,"items":[{"id":"examples/queries/prepared-statements/delete","title":"DELETE","description":"execute(sql, values)","permalink":"/node-mysql2/docs/examples/queries/prepared-statements/delete"},{"id":"examples/queries/prepared-statements/insert","title":"INSERT","description":"execute(sql, values)","permalink":"/node-mysql2/docs/examples/queries/prepared-statements/insert"},{"id":"examples/queries/prepared-statements/select","title":"SELECT","description":"execute(sql, values)","permalink":"/node-mysql2/docs/examples/queries/prepared-statements/select"},{"id":"examples/queries/prepared-statements/update","title":"UPDATE","description":"execute(sql, values)","permalink":"/node-mysql2/docs/examples/queries/prepared-statements/update"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/assets/js/10c30137.cf2ed8f6.js b/assets/js/10c30137.cf2ed8f6.js deleted file mode 100644 index 7448b7a74b..0000000000 --- a/assets/js/10c30137.cf2ed8f6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8193],{6161:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>c,default:()=>p,frontMatter:()=>l,metadata:()=>u,toc:()=>d});var r=t(5893),s=t(1151),o=t(4866),a=t(5162);const l={},c="Connect Over Socks",u={id:"examples/connect-over-socks",title:"Connect Over Socks",description:"",source:"@site/docs/examples/connect-over-socks.mdx",sourceDirName:"examples",slug:"/examples/connect-over-socks",permalink:"/node-mysql2/docs/examples/connect-over-socks",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/connect-over-socks.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Binlog Watcher",permalink:"/node-mysql2/docs/examples/binlog-watcher"},next:{title:"Execute",permalink:"/node-mysql2/docs/examples/execute"}},i={},d=[];function m(e){const n={code:"code",h1:"h1",pre:"pre",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"connect-over-socks",children:"Connect Over Socks"}),"\n",(0,r.jsx)(o.Z,{children:(0,r.jsx)(a.Z,{value:"index.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\n// const socksProxy = new SocksConnection({ port: 3306 });\n// const conn = mysql.createConnection({\n// stream: socksProxy,\n// });\n\n// conn.query(\"select 1+1\", function(err, rows, fields) {\n// console.log(err, rows, fields);\n// });\n\nconst conn1 = mysql.createPool({\n debug: 1,\n stream: function () {\n return new SocksConnection({ port: 3306 });\n },\n});\n\nconn1.execute('select sleep(1.1) as www', (err, rows, fields) => {\n console.log(err, rows, fields);\n});\n\nconn1.execute('select sleep(1) as qqq', (err, rows, fields) => {\n console.log(err, rows, fields);\n});\n\nconn1.execute('select sleep(1) as qqq', (err, rows, fields) => {\n console.log(err, rows, fields);\n});\n"})})})})]})}function p(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>a});t(7294);var r=t(512);const s={tabItem:"tabItem_Ymn6"};var o=t(5893);function a(e){let{children:n,hidden:t,className:a}=e;return(0,o.jsx)("div",{role:"tabpanel",className:(0,r.Z)(s.tabItem,a),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>k});var r=t(7294),s=t(512),o=t(2466),a=t(6550),l=t(469),c=t(1980),u=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:s}}=e;return{value:n,label:t,attributes:r,default:s}}))}(t);return function(e){const n=(0,u.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const s=(0,a.k6)(),o=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,c._X)(o),(0,r.useCallback)((e=>{if(!o)return;const n=new URLSearchParams(s.location.search);n.set(o,e),s.replace({...s.location,search:n.toString()})}),[o,s])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:s}=e,o=m(e),[a,c]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:o}))),[u,d]=f({queryString:t,groupId:s}),[b,h]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[s,o]=(0,i.Nk)(t);return[s,(0,r.useCallback)((e=>{t&&o.set(e)}),[t,o])]}({groupId:s}),v=(()=>{const e=u??b;return p({value:e,tabValues:o})?e:null})();(0,l.Z)((()=>{v&&c(v)}),[v]);return{selectedValue:a,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:o}))throw new Error(`Can't select invalid tab value=${e}`);c(e),d(e),h(e)}),[d,h,o]),tabValues:o}}var h=t(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=t(5893);function g(e){let{className:n,block:t,selectedValue:r,selectValue:a,tabValues:l}=e;const c=[],{blockElementScrollPositionUntilNextRender:u}=(0,o.o5)(),i=e=>{const n=e.currentTarget,t=c.indexOf(n),s=l[t].value;s!==r&&(u(n),a(s))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=c.indexOf(e.currentTarget)+1;n=c[t]??c[0];break}case"ArrowLeft":{const t=c.indexOf(e.currentTarget)-1;n=c[t]??c[c.length-1];break}}n?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:o}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>c.push(e),onKeyDown:d,onClick:i,...o,className:(0,s.Z)("tabs__item",v.tabItem,o?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function w(e){let{lazy:n,children:t,selectedValue:s}=e;const o=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=o.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:o.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==s})))})}function y(e){const n=b(e);return(0,x.jsxs)("div",{className:(0,s.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(g,{...e,...n}),(0,x.jsx)(w,{...e,...n})]})}function k(e){const n=(0,h.Z)();return(0,x.jsx)(y,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>a});var r=t(7294);const s={},o=r.createContext(s);function a(e){const n=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/11a54026.7e616dd9.js b/assets/js/11a54026.7e616dd9.js new file mode 100644 index 0000000000..e1d688e1e6 --- /dev/null +++ b/assets/js/11a54026.7e616dd9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5775],{8857:e=>{e.exports=JSON.parse('{"label":"createPoolCluster","permalink":"/node-mysql2/docs/tags/create-pool-cluster","allTagsPath":"/node-mysql2/docs/tags","count":1,"items":[{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/docs/examples/connections/createPoolCluster"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/assets/js/11e11f3b.958ffa2a.js b/assets/js/11e11f3b.958ffa2a.js new file mode 100644 index 0000000000..b834fcc610 --- /dev/null +++ b/assets/js/11e11f3b.958ffa2a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8625],{3463:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>h,contentTitle:()=>d,default:()=>g,frontMatter:()=>a,metadata:()=>u,toc:()=>m});var r=s(5893),t=s(1151),o=s(4866),c=s(5162),l=s(6393),i=s(4379);const a={sidebar_position:1,tags:["createConnection","URI","SHA1","RDS","SSL","Socks"]},d="createConnection",u={id:"examples/connections/create-connection",title:"createConnection",description:"For queries please see the Simple Queries and Prepared Statements examples.",source:"@site/docs/examples/connections/create-connection.mdx",sourceDirName:"examples/connections",slug:"/examples/connections/create-connection",permalink:"/node-mysql2/docs/examples/connections/create-connection",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/connections/create-connection.mdx",tags:[{label:"createConnection",permalink:"/node-mysql2/docs/tags/create-connection"},{label:"URI",permalink:"/node-mysql2/docs/tags/uri"},{label:"SHA1",permalink:"/node-mysql2/docs/tags/sha-1"},{label:"RDS",permalink:"/node-mysql2/docs/tags/rds"},{label:"SSL",permalink:"/node-mysql2/docs/tags/ssl"},{label:"Socks",permalink:"/node-mysql2/docs/tags/socks"}],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,tags:["createConnection","URI","SHA1","RDS","SSL","Socks"]},sidebar:"examples",previous:{title:"Introduction",permalink:"/node-mysql2/docs/examples"},next:{title:"createPool",permalink:"/node-mysql2/docs/examples/connections/create-pool"}},h={},m=[{value:"createConnection(connectionUri)",id:"createconnectionconnectionuri",level:2},{value:"createConnection(config)",id:"createconnectionconfig",level:2},{value:"createConnection(config) \u2014 SHA1",id:"createconnectionconfig--sha1",level:2},{value:"createConnection(config) \u2014 SSL",id:"createconnectionconfig--ssl",level:2},{value:"createConnection(config) \u2014 RDS SSL",id:"createconnectionconfig--rds-ssl",level:2},{value:"Related Links",id:"related-links",level:3},{value:"createConnection(config) \u2014 Socks",id:"createconnectionconfig--socks",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ConnectionOptions",id:"connectionoptions",level:3}];function p(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"createconnection",children:"createConnection"}),"\n",(0,r.jsx)(n.admonition,{type:"info",children:(0,r.jsxs)(n.p,{children:["For queries please see the ",(0,r.jsx)(n.a,{href:"/docs/examples/queries/simple-queries",children:(0,r.jsx)(n.strong,{children:"Simple Queries"})})," and ",(0,r.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements",children:(0,r.jsx)(n.strong,{children:"Prepared Statements"})})," examples."]})}),"\n",(0,r.jsx)(n.h2,{id:"createconnectionconnectionuri",children:"createConnection(connectionUri)"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:"createConnection(connectionUri: string)"})}),"\n"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(c.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const connection = await mysql.createConnection(\n 'mysql://root:password@localhost:3306/test'\n );\n // highlight-end\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(c.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection(\n 'mysql://root:password@localhost:3306/test'\n);\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})})})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"createconnectionconfig",children:"createConnection(config)"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["createConnection(config: ",(0,r.jsx)(n.a,{href:"#connectionoptions",children:"ConnectionOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(c.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n // port: 3306,\n // password: '',\n });\n // highlight-end\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(c.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n // port: 3306,\n // password: '',\n});\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})})})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"createconnectionconfig--sha1",children:"createConnection(config) \u2014 SHA1"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["createConnection(config: ",(0,r.jsx)(n.a,{href:"#connectionoptions",children:"ConnectionOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(c.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const connection = await mysql.createConnection({\n // ...\n passwordSha1: Buffer.from(\n '8bb6118f8fd6935ad0876a3be34a717d32708ffd',\n 'hex'\n ),\n });\n // highlight-end\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(c.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n // ...\n passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'),\n});\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})})})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"createconnectionconfig--ssl",children:"createConnection(config) \u2014 SSL"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["createConnection(config: ",(0,r.jsx)(n.a,{href:"#connectionoptions",children:"ConnectionOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(c.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const connection = await mysql.createConnection({\n // ...\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n });\n // highlight-end\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(c.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n // ...\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n});\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})})}),(0,r.jsxs)(c.Z,{value:"certs/ca-cert.pem",children:[(0,r.jsx)(i.I,{language:"plan",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/test/fixtures/ssl/certs/ca.pem"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["See ",(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/tree/master/test/fixtures/ssl/certs",children:"ssl/certs"}),"."]}),"\n"]})]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"createconnectionconfig--rds-ssl",children:"createConnection(config) \u2014 RDS SSL"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["createConnection(config: ",(0,r.jsx)(n.a,{href:"#connectionoptions",children:"ConnectionOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["You can use ",(0,r.jsx)(n.strong,{children:"Amazon RDS"})," string as value to ssl property to connect to ",(0,r.jsx)(n.strong,{children:"Amazon RDS"})," MySQL over SSL."]}),"\n",(0,r.jsxs)(n.p,{children:["In that case ",(0,r.jsx)(n.a,{href:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem",children:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem"})," CA cert is used:"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsxs)(c.Z,{value:"promise.js",default:!0,children:[(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const connection = await mysql.createConnection({\n // ...\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n });\n // highlight-end\n} catch (err) {\n console.log(err);\n}\n"})}),(0,r.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"try {\n const [res] = await connection.query('SHOW `status` LIKE \"Ssl_cipher\"');\n await connection.end();\n\n console.log(res);\n} catch (err) {\n console.log(err);\n}\n"})})})]}),(0,r.jsxs)(c.Z,{value:"callback.js",children:[(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n // ...\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n});\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})}),(0,r.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"connectionquery('SHOW `status` LIKE \"Ssl_cipher\"', function (err, res) {\n connection.end();\n\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(res);\n});\n"})})})]})]}),"\n",(0,r.jsx)(n.h3,{id:"related-links",children:"Related Links"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Issues"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/issues/2130",children:"#2130 \u2014 Update TLS certs for Amazon RDS instances"})}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Pull Requests"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/pull/2119",children:"#2119 \u2014 fix: make startTls code compatible with Bun"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/pull/2131",children:"#2131 \u2014 Update Amazon RDS SSL CA cert"})}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"createconnectionconfig--socks",children:"createConnection(config) \u2014 Socks"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["createConnection(config: ",(0,r.jsx)(n.a,{href:"#connectionoptions",children:"ConnectionOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(c.Z,{value:"A.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\nconst socksProxy = new SocksConnection({ port: 3306 });\n// highlight-start\nconst connection = mysql.createConnection({\n stream: socksProxy,\n});\n// highlight-end\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})})}),(0,r.jsx)(c.Z,{value:"B.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\n// highlight-start\nconst connection = mysql.createConnection({\n debug: 1,\n stream: function () {\n return new SocksConnection({ port: 3306 });\n },\n});\n// highlight-end\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})})})]}),"\n",(0,r.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"connection.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n\nconnection.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n\nconnection.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n"})})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,r.jsx)(n.h3,{id:"connectionoptions",children:"ConnectionOptions"}),"\n",(0,r.jsx)(l.Z,{title:"ConnectionOptions Specification",children:(0,r.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/Connection.d.ts",extractMethod:"ConnectionOptions",methodType:"interface"})})]})}function g(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,s)=>{s.d(n,{Z:()=>c});s(7294);var r=s(512);const t={tabItem:"tabItem_Ymn6"};var o=s(5893);function c(e){let{children:n,hidden:s,className:c}=e;return(0,o.jsx)("div",{role:"tabpanel",className:(0,r.Z)(t.tabItem,c),hidden:s,children:n})}},4866:(e,n,s)=>{s.d(n,{Z:()=>S});var r=s(7294),t=s(512),o=s(2466),c=s(6550),l=s(469),i=s(1980),a=s(7392),d=s(12);function u(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:s}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return u(e).map((e=>{let{props:{value:n,label:s,attributes:r,default:t}}=e;return{value:n,label:s,attributes:r,default:t}}))}(s);return function(e){const n=(0,a.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,s])}function m(e){let{value:n,tabValues:s}=e;return s.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:s}=e;const t=(0,c.k6)(),o=function(e){let{queryString:n=!1,groupId:s}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!s)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:n,groupId:s});return[(0,i._X)(o),(0,r.useCallback)((e=>{if(!o)return;const n=new URLSearchParams(t.location.search);n.set(o,e),t.replace({...t.location,search:n.toString()})}),[o,t])]}function g(e){const{defaultValue:n,queryString:s=!1,groupId:t}=e,o=h(e),[c,i]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!m({value:n,tabValues:s}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=s.find((e=>e.default))??s[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:o}))),[a,u]=p({queryString:s,groupId:t}),[g,x]=function(e){let{groupId:n}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(n),[t,o]=(0,d.Nk)(s);return[t,(0,r.useCallback)((e=>{s&&o.set(e)}),[s,o])]}({groupId:t}),j=(()=>{const e=a??g;return m({value:e,tabValues:o})?e:null})();(0,l.Z)((()=>{j&&i(j)}),[j]);return{selectedValue:c,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:o}))throw new Error(`Can't select invalid tab value=${e}`);i(e),u(e),x(e)}),[u,x,o]),tabValues:o}}var x=s(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=s(5893);function y(e){let{className:n,block:s,selectedValue:r,selectValue:c,tabValues:l}=e;const i=[],{blockElementScrollPositionUntilNextRender:a}=(0,o.o5)(),d=e=>{const n=e.currentTarget,s=i.indexOf(n),t=l[s].value;t!==r&&(a(n),c(t))},u=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const s=i.indexOf(e.currentTarget)+1;n=i[s]??i[0];break}case"ArrowLeft":{const s=i.indexOf(e.currentTarget)-1;n=i[s]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,t.Z)("tabs",{"tabs--block":s},n),children:l.map((e=>{let{value:n,label:s,attributes:o}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>i.push(e),onKeyDown:u,onClick:d,...o,className:(0,t.Z)("tabs__item",j.tabItem,o?.className,{"tabs__item--active":r===n}),children:s??n},n)}))})}function b(e){let{lazy:n,children:s,selectedValue:t}=e;const o=(Array.isArray(s)?s:[s]).filter(Boolean);if(n){const e=o.find((e=>e.props.value===t));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:o.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function q(e){const n=g(e);return(0,f.jsxs)("div",{className:(0,t.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(y,{...e,...n}),(0,f.jsx)(b,{...e,...n})]})}function S(e){const n=(0,x.Z)();return(0,f.jsx)(q,{...e,children:u(e.children)},String(n))}},4379:(e,n,s)=>{s.d(n,{I:()=>i});var r=s(7294),t=s(2263),o=s(9286),c=s(5893);const l=()=>(0,c.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:s,extractMethod:i,methodType:a}=e;const[d,u]=(0,r.useState)(""),[h,m]=(0,r.useState)(!0),[p,g]=(0,r.useState)(!0),{siteConfig:x}=(0,t.Z)(),j=x.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,r.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&a?((e,n,s)=>{const r=e.split("\n"),t=`${s} ${n}`;let o=!1,c=0,l="";for(const i of r)if(i.includes(t)&&(o=!0),o&&(i.includes("{")&&c++,l+=i+"\n",i.includes("}")&&(c--,0===c)))break;return l.trim()||e})(e,i,a):e;u(n||e),m(!1),g(!1)})).catch((()=>{g(!0),m(!1)})),()=>{e.abort()}}),[f,i,a]),(0,c.jsx)(c.Fragment,{children:h?(0,c.jsx)(l,{}):(0,c.jsx)(c.Fragment,{children:p?(0,c.jsxs)("div",{children:["Unable to access the requested link: ",(0,c.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,c.jsx)(o.Z,{className:`language-${s}`,children:d})})})}},6393:(e,n,s)=>{s.d(n,{Z:()=>o});var r=s(4673),t=s(5893);const o=e=>{let{children:n,open:s,title:o}=e;return(0,t.jsx)(r.Z,{open:s,className:"faq",summary:(0,t.jsx)("summary",{children:(0,t.jsx)("strong",{children:o})}),children:(0,t.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/assets/js/14eb3368.a0a1fb1b.js b/assets/js/14eb3368.a0a1fb1b.js deleted file mode 100644 index 85a65e4753..0000000000 --- a/assets/js/14eb3368.a0a1fb1b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9817],{1310:(e,t,s)=>{s.d(t,{Z:()=>p});s(7294);var n=s(512),i=s(5281),a=s(3438),r=s(8596),c=s(9960),l=s(5999),o=s(4996),d=s(5893);function m(e){return(0,d.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,d.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"})})}const u={breadcrumbHomeIcon:"breadcrumbHomeIcon_YNFT"};function h(){const e=(0,o.Z)("/");return(0,d.jsx)("li",{className:"breadcrumbs__item",children:(0,d.jsx)(c.Z,{"aria-label":(0,l.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,d.jsx)(m,{className:u.breadcrumbHomeIcon})})})}const b={breadcrumbsContainer:"breadcrumbsContainer_Z_bl"};function x(e){let{children:t,href:s,isLast:n}=e;const i="breadcrumbs__link";return n?(0,d.jsx)("span",{className:i,itemProp:"name",children:t}):s?(0,d.jsx)(c.Z,{className:i,href:s,itemProp:"item",children:(0,d.jsx)("span",{itemProp:"name",children:t})}):(0,d.jsx)("span",{className:i,children:t})}function v(e){let{children:t,active:s,index:i,addMicrodata:a}=e;return(0,d.jsxs)("li",{...a&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,n.Z)("breadcrumbs__item",{"breadcrumbs__item--active":s}),children:[t,(0,d.jsx)("meta",{itemProp:"position",content:String(i+1)})]})}function p(){const e=(0,a.s1)(),t=(0,r.Ns)();return e?(0,d.jsx)("nav",{className:(0,n.Z)(i.k.docs.docBreadcrumbs,b.breadcrumbsContainer),"aria-label":(0,l.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,d.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[t&&(0,d.jsx)(h,{}),e.map(((t,s)=>{const n=s===e.length-1,i="category"===t.type&&t.linkUnlisted?void 0:t.href;return(0,d.jsx)(v,{active:n,index:s,addMicrodata:!!i,children:(0,d.jsx)(x,{href:i,isLast:n,children:t.label})},s)}))]})}):null}},4228:(e,t,s)=>{s.r(t),s.d(t,{default:()=>I});s(7294);var n=s(1944),i=s(3438),a=s(4996),r=s(512),c=s(9960),l=s(3919),o=s(5999),d=s(2503);const m={cardContainer:"cardContainer_fWXF",cardTitle:"cardTitle_rnsV",cardDescription:"cardDescription_PWke"};var u=s(5893);function h(e){let{href:t,children:s}=e;return(0,u.jsx)(c.Z,{href:t,className:(0,r.Z)("card padding--lg",m.cardContainer),children:s})}function b(e){let{href:t,icon:s,title:n,description:i}=e;return(0,u.jsxs)(h,{href:t,children:[(0,u.jsxs)(d.Z,{as:"h2",className:(0,r.Z)("text--truncate",m.cardTitle),title:n,children:[s," ",n]}),i&&(0,u.jsx)("p",{className:(0,r.Z)("text--truncate",m.cardDescription),title:i,children:i})]})}function x(e){let{item:t}=e;const s=(0,i.LM)(t);return s?(0,u.jsx)(b,{href:s,icon:"\ud83d\uddc3\ufe0f",title:t.label,description:t.description??(0,o.I)({message:"{count} items",id:"theme.docs.DocCard.categoryDescription",description:"The default description for a category card in the generated index about how many items this category includes"},{count:t.items.length})}):null}function v(e){let{item:t}=e;const s=(0,l.Z)(t.href)?"\ud83d\udcc4\ufe0f":"\ud83d\udd17",n=(0,i.xz)(t.docId??void 0);return(0,u.jsx)(b,{href:t.href,icon:s,title:t.label,description:t.description??n?.description})}function p(e){let{item:t}=e;switch(t.type){case"link":return(0,u.jsx)(v,{item:t});case"category":return(0,u.jsx)(x,{item:t});default:throw new Error(`unknown item type ${JSON.stringify(t)}`)}}function g(e){let{className:t}=e;const s=(0,i.jA)();return(0,u.jsx)(j,{items:s.items,className:t})}function j(e){const{items:t,className:s}=e;if(!t)return(0,u.jsx)(g,{...e});const n=(0,i.MN)(t);return(0,u.jsx)("section",{className:(0,r.Z)("row",s),children:n.map(((e,t)=>(0,u.jsx)("article",{className:"col col--6 margin-bottom--lg",children:(0,u.jsx)(p,{item:e})},t)))})}var f=s(4966),N=s(3120),Z=s(4364),L=s(1310);const _={generatedIndexPage:"generatedIndexPage_vN6x",list:"list_eTzJ",title:"title_kItE"};function k(e){let{categoryGeneratedIndex:t}=e;return(0,u.jsx)(n.d,{title:t.title,description:t.description,keywords:t.keywords,image:(0,a.Z)(t.image)})}function T(e){let{categoryGeneratedIndex:t}=e;const s=(0,i.jA)();return(0,u.jsxs)("div",{className:_.generatedIndexPage,children:[(0,u.jsx)(N.Z,{}),(0,u.jsx)(L.Z,{}),(0,u.jsx)(Z.Z,{}),(0,u.jsxs)("header",{children:[(0,u.jsx)(d.Z,{as:"h1",className:_.title,children:t.title}),t.description&&(0,u.jsx)("p",{children:t.description})]}),(0,u.jsx)("article",{className:"margin-top--lg",children:(0,u.jsx)(j,{items:s.items,className:_.list})}),(0,u.jsx)("footer",{className:"margin-top--lg",children:(0,u.jsx)(f.Z,{previous:t.navigation.previous,next:t.navigation.next})})]})}function I(e){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(k,{...e}),(0,u.jsx)(T,{...e})]})}},4966:(e,t,s)=>{s.d(t,{Z:()=>l});s(7294);var n=s(5999),i=s(512),a=s(9960),r=s(5893);function c(e){const{permalink:t,title:s,subLabel:n,isNext:c}=e;return(0,r.jsxs)(a.Z,{className:(0,i.Z)("pagination-nav__link",c?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[n&&(0,r.jsx)("div",{className:"pagination-nav__sublabel",children:n}),(0,r.jsx)("div",{className:"pagination-nav__label",children:s})]})}function l(e){const{previous:t,next:s}=e;return(0,r.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,n.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[t&&(0,r.jsx)(c,{...t,subLabel:(0,r.jsx)(n.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),s&&(0,r.jsx)(c,{...s,subLabel:(0,r.jsx)(n.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}},4364:(e,t,s)=>{s.d(t,{Z:()=>l});s(7294);var n=s(512),i=s(5999),a=s(5281),r=s(4477),c=s(5893);function l(e){let{className:t}=e;const s=(0,r.E)();return s.badge?(0,c.jsx)("span",{className:(0,n.Z)(t,a.k.docs.docVersionBadge,"badge badge--secondary"),children:(0,c.jsx)(i.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:s.label},children:"Version: {versionLabel}"})}):null}},3120:(e,t,s)=>{s.d(t,{Z:()=>v});s(7294);var n=s(512),i=s(2263),a=s(9960),r=s(5999),c=s(143),l=s(5281),o=s(373),d=s(4477),m=s(5893);const u={unreleased:function(e){let{siteTitle:t,versionMetadata:s}=e;return(0,m.jsx)(r.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,m.jsx)("b",{children:s.label})},children:"This is unreleased documentation for {siteTitle} {versionLabel} version."})},unmaintained:function(e){let{siteTitle:t,versionMetadata:s}=e;return(0,m.jsx)(r.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,m.jsx)("b",{children:s.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function h(e){const t=u[e.versionMetadata.banner];return(0,m.jsx)(t,{...e})}function b(e){let{versionLabel:t,to:s,onClick:n}=e;return(0,m.jsx)(r.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:(0,m.jsx)("b",{children:(0,m.jsx)(a.Z,{to:s,onClick:n,children:(0,m.jsx)(r.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:s}=e;const{siteConfig:{title:a}}=(0,i.Z)(),{pluginId:r}=(0,c.gA)({failfast:!0}),{savePreferredVersionName:d}=(0,o.J)(r),{latestDocSuggestion:u,latestVersionSuggestion:x}=(0,c.Jo)(r),v=u??(p=x).docs.find((e=>e.id===p.mainDocId));var p;return(0,m.jsxs)("div",{className:(0,n.Z)(t,l.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,m.jsx)("div",{children:(0,m.jsx)(h,{siteTitle:a,versionMetadata:s})}),(0,m.jsx)("div",{className:"margin-top--md",children:(0,m.jsx)(b,{versionLabel:x.label,to:v.path,onClick:()=>d(x.name)})})]})}function v(e){let{className:t}=e;const s=(0,d.E)();return s.banner?(0,m.jsx)(x,{className:t,versionMetadata:s}):null}}}]); \ No newline at end of file diff --git a/assets/js/1568425c.6348d27b.js b/assets/js/1568425c.6348d27b.js new file mode 100644 index 0000000000..d85cd86da6 --- /dev/null +++ b/assets/js/1568425c.6348d27b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9458],{904:(e,s,i)=>{i.r(s),i.d(s,{assets:()=>c,contentTitle:()=>l,default:()=>p,frontMatter:()=>n,metadata:()=>a,toc:()=>o});var r=i(5893),t=i(1151);const n={},l="Simple Queries",a={id:"examples/queries/simple-queries/index",title:"Simple Queries",description:"For Prepared Statements or Placeholders / Parameters examples, please see here.",source:"@site/docs/examples/queries/simple-queries/index.mdx",sourceDirName:"examples/queries/simple-queries",slug:"/examples/queries/simple-queries/",permalink:"/node-mysql2/docs/examples/queries/simple-queries/",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/simple-queries/index.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"createPoolCluster",permalink:"/node-mysql2/docs/examples/connections/createPoolCluster"},next:{title:"INSERT",permalink:"/node-mysql2/docs/examples/queries/simple-queries/insert"}},c={},o=[];function d(e){const s={a:"a",admonition:"admonition",h1:"h1",hr:"hr",input:"input",li:"li",p:"p",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.h1,{id:"simple-queries",children:"Simple Queries"}),"\n",(0,r.jsx)(s.admonition,{type:"info",children:(0,r.jsxs)(s.p,{children:["For ",(0,r.jsx)(s.strong,{children:"Prepared Statements"})," or ",(0,r.jsx)(s.strong,{children:"Placeholders"})," / ",(0,r.jsx)(s.strong,{children:"Parameters"})," examples, please see ",(0,r.jsx)(s.a,{href:"/docs/examples/queries/prepared-statements",children:"here"}),"."]})}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.p,{children:"Usage examples:"}),"\n",(0,r.jsxs)(s.ul,{className:"contains-task-list",children:["\n",(0,r.jsxs)(s.li,{className:"task-list-item",children:[(0,r.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,r.jsx)(s.a,{href:"/docs/examples/queries/simple-queries/insert",children:(0,r.jsx)(s.strong,{children:"INSERT"})})]}),"\n",(0,r.jsxs)(s.li,{className:"task-list-item",children:[(0,r.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,r.jsx)(s.a,{href:"/docs/examples/queries/simple-queries/select",children:(0,r.jsx)(s.strong,{children:"SELECT"})})]}),"\n",(0,r.jsxs)(s.li,{className:"task-list-item",children:[(0,r.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,r.jsx)(s.a,{href:"/docs/examples/queries/simple-queries/update",children:(0,r.jsx)(s.strong,{children:"UPDATE"})})]}),"\n",(0,r.jsxs)(s.li,{className:"task-list-item",children:[(0,r.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,r.jsx)(s.a,{href:"/docs/examples/queries/simple-queries/delete",children:(0,r.jsx)(s.strong,{children:"DELETE"})})]}),"\n"]})]})}function p(e={}){const{wrapper:s}={...(0,t.a)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},1151:(e,s,i)=>{i.d(s,{Z:()=>a,a:()=>l});var r=i(7294);const t={},n=r.createContext(t);function l(e){const s=r.useContext(n);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function a(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),r.createElement(n.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/17896441.569c1c67.js b/assets/js/17896441.569c1c67.js new file mode 100644 index 0000000000..4c7525c8dd --- /dev/null +++ b/assets/js/17896441.569c1c67.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7918],{9047:(e,t,n)=>{n.d(t,{Z:()=>H});var s=n(7294),i=n(5893);function a(e){const{mdxAdmonitionTitle:t,rest:n}=function(e){const t=s.Children.toArray(e),n=t.find((e=>s.isValidElement(e)&&"mdxAdmonitionTitle"===e.type)),a=t.filter((e=>e!==n)),l=n?.props.children;return{mdxAdmonitionTitle:l,rest:a.length>0?(0,i.jsx)(i.Fragment,{children:a}):null}}(e.children),a=e.title??t;return{...e,...a&&{title:a},children:n}}var l=n(512),o=n(5999),r=n(5281);const c={admonition:"admonition_xJq3",admonitionHeading:"admonitionHeading_Gvgb",admonitionIcon:"admonitionIcon_Rf37",admonitionContent:"admonitionContent_BuS1"};function d(e){let{type:t,className:n,children:s}=e;return(0,i.jsx)("div",{className:(0,l.Z)(r.k.common.admonition,r.k.common.admonitionType(t),c.admonition,n),children:s})}function u(e){let{icon:t,title:n}=e;return(0,i.jsxs)("div",{className:c.admonitionHeading,children:[(0,i.jsx)("span",{className:c.admonitionIcon,children:t}),n]})}function m(e){let{children:t}=e;return t?(0,i.jsx)("div",{className:c.admonitionContent,children:t}):null}function h(e){const{type:t,icon:n,title:s,children:a,className:l}=e;return(0,i.jsxs)(d,{type:t,className:l,children:[(0,i.jsx)(u,{title:s,icon:n}),(0,i.jsx)(m,{children:a})]})}function x(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.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"})})}const v={icon:(0,i.jsx)(x,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function f(e){return(0,i.jsx)(h,{...v,...e,className:(0,l.Z)("alert alert--secondary",e.className),children:e.children})}function p(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.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"})})}const j={icon:(0,i.jsx)(p,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function g(e){return(0,i.jsx)(h,{...j,...e,className:(0,l.Z)("alert alert--success",e.className),children:e.children})}function b(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.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"})})}const N={icon:(0,i.jsx)(b,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function C(e){return(0,i.jsx)(h,{...N,...e,className:(0,l.Z)("alert alert--info",e.className),children:e.children})}function L(e){return(0,i.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,i.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"})})}const Z={icon:(0,i.jsx)(L,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function _(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.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"})})}const k={icon:(0,i.jsx)(_,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const T={icon:(0,i.jsx)(L,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const y={...{note:f,tip:g,info:C,warning:function(e){return(0,i.jsx)(h,{...Z,...e,className:(0,l.Z)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,i.jsx)(h,{...k,...e,className:(0,l.Z)("alert alert--danger",e.className),children:e.children})}},...{secondary:e=>(0,i.jsx)(f,{title:"secondary",...e}),important:e=>(0,i.jsx)(C,{title:"important",...e}),success:e=>(0,i.jsx)(g,{title:"success",...e}),caution:function(e){return(0,i.jsx)(h,{...T,...e,className:(0,l.Z)("alert alert--warning",e.className),children:e.children})}}};function H(e){const t=a(e),n=(s=t.type,y[s]||(console.warn(`No admonition component found for admonition type "${s}". Using Info as fallback.`),y.info));var s;return(0,i.jsx)(n,{...t})}},4758:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ve});var s=n(7294),i=n(1944),a=n(902),l=n(5893);const o=s.createContext(null);function r(e){let{children:t,content:n}=e;const i=function(e){return(0,s.useMemo)((()=>({metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc})),[e])}(n);return(0,l.jsx)(o.Provider,{value:i,children:t})}function c(){const e=(0,s.useContext)(o);if(null===e)throw new a.i6("DocProvider");return e}function d(){const{metadata:e,frontMatter:t,assets:n}=c();return(0,l.jsx)(i.d,{title:e.title,description:e.description,keywords:t.keywords,image:n.image??t.image})}var u=n(512),m=n(7524),h=n(5999),x=n(3692);function v(e){const{permalink:t,title:n,subLabel:s,isNext:i}=e;return(0,l.jsxs)(x.Z,{className:(0,u.Z)("pagination-nav__link",i?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[s&&(0,l.jsx)("div",{className:"pagination-nav__sublabel",children:s}),(0,l.jsx)("div",{className:"pagination-nav__label",children:n})]})}function f(e){const{previous:t,next:n}=e;return(0,l.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,h.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[t&&(0,l.jsx)(v,{...t,subLabel:(0,l.jsx)(h.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),n&&(0,l.jsx)(v,{...n,subLabel:(0,l.jsx)(h.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}function p(){const{metadata:e}=c();return(0,l.jsx)(f,{previous:e.previous,next:e.next})}var j=n(2263),g=n(143),b=n(5281),N=n(373),C=n(4477);const L={unreleased:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,l.jsx)(h.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,l.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,l.jsx)(h.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,l.jsx)("b",{children:n.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function Z(e){const t=L[e.versionMetadata.banner];return(0,l.jsx)(t,{...e})}function _(e){let{versionLabel:t,to:n,onClick:s}=e;return(0,l.jsx)(h.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:(0,l.jsx)("b",{children:(0,l.jsx)(x.Z,{to:n,onClick:s,children:(0,l.jsx)(h.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 k(e){let{className:t,versionMetadata:n}=e;const{siteConfig:{title:s}}=(0,j.Z)(),{pluginId:i}=(0,g.gA)({failfast:!0}),{savePreferredVersionName:a}=(0,N.J)(i),{latestDocSuggestion:o,latestVersionSuggestion:r}=(0,g.Jo)(i),c=o??(d=r).docs.find((e=>e.id===d.mainDocId));var d;return(0,l.jsxs)("div",{className:(0,u.Z)(t,b.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,l.jsx)("div",{children:(0,l.jsx)(Z,{siteTitle:s,versionMetadata:n})}),(0,l.jsx)("div",{className:"margin-top--md",children:(0,l.jsx)(_,{versionLabel:r.label,to:c.path,onClick:()=>a(r.name)})})]})}function T(e){let{className:t}=e;const n=(0,C.E)();return n.banner?(0,l.jsx)(k,{className:t,versionMetadata:n}):null}function y(e){let{className:t}=e;const n=(0,C.E)();return n.badge?(0,l.jsx)("span",{className:(0,u.Z)(t,b.k.docs.docVersionBadge,"badge badge--secondary"),children:(0,l.jsx)(h.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label},children:"Version: {versionLabel}"})}):null}function H(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:n}=e;return(0,l.jsx)(h.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:(0,l.jsx)("b",{children:(0,l.jsx)("time",{dateTime:new Date(1e3*t).toISOString(),children:n})})},children:" on {date}"})}function w(e){let{lastUpdatedBy:t}=e;return(0,l.jsx)(h.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:(0,l.jsx)("b",{children:t})},children:" by {user}"})}function U(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:n,lastUpdatedBy:s}=e;return(0,l.jsxs)("span",{className:b.k.common.lastUpdated,children:[(0,l.jsx)(h.Z,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t&&n?(0,l.jsx)(H,{lastUpdatedAt:t,formattedLastUpdatedAt:n}):"",byUser:s?(0,l.jsx)(w,{lastUpdatedBy:s}):""},children:"Last updated{atDate}{byUser}"}),!1]})}const A={iconEdit:"iconEdit_Z9Sw"};function M(e){let{className:t,...n}=e;return(0,l.jsx)("svg",{fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,u.Z)(A.iconEdit,t),"aria-hidden":"true",...n,children:(0,l.jsx)("g",{children:(0,l.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 B(e){let{editUrl:t}=e;return(0,l.jsxs)(x.Z,{to:t,className:b.k.common.editThisPage,children:[(0,l.jsx)(M,{}),(0,l.jsx)(h.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page",children:"Edit this page"})]})}var I=n(3008);const E={tags:"tags_jXut",tag:"tag_QGVx"};function z(e){let{tags:t}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("b",{children:(0,l.jsx)(h.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,l.jsx)("ul",{className:(0,u.Z)(E.tags,"padding--none","margin-left--sm"),children:t.map((e=>{let{label:t,permalink:n}=e;return(0,l.jsx)("li",{className:E.tag,children:(0,l.jsx)(I.Z,{label:t,permalink:n})},n)}))})]})}const V={lastUpdated:"lastUpdated_vwxv"};function R(e){return(0,l.jsx)("div",{className:(0,u.Z)(b.k.docs.docFooterTagsRow,"row margin-bottom--sm"),children:(0,l.jsx)("div",{className:"col",children:(0,l.jsx)(z,{...e})})})}function O(e){let{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:s,formattedLastUpdatedAt:i}=e;return(0,l.jsxs)("div",{className:(0,u.Z)(b.k.docs.docFooterEditMetaRow,"row"),children:[(0,l.jsx)("div",{className:"col",children:t&&(0,l.jsx)(B,{editUrl:t})}),(0,l.jsx)("div",{className:(0,u.Z)("col",V.lastUpdated),children:(n||s)&&(0,l.jsx)(U,{lastUpdatedAt:n,formattedLastUpdatedAt:i,lastUpdatedBy:s})})]})}function S(){const{metadata:e}=c(),{editUrl:t,lastUpdatedAt:n,formattedLastUpdatedAt:s,lastUpdatedBy:i,tags:a}=e,o=a.length>0,r=!!(t||n||i);return o||r?(0,l.jsxs)("footer",{className:(0,u.Z)(b.k.docs.docFooter,"docusaurus-mt-lg"),children:[o&&(0,l.jsx)(R,{tags:a}),r&&(0,l.jsx)(O,{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:i,formattedLastUpdatedAt:s})]}):null}var F=n(6043),P=n(6668);function D(e){const t=e.map((e=>({...e,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);t.forEach(((e,t)=>{const s=n.slice(2,e.level);e.parentIndex=Math.max(...s),n[e.level]=t}));const s=[];return t.forEach((e=>{const{parentIndex:n,...i}=e;n>=0?t[n].children.push(i):s.push(i)})),s}function q(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:s}=e;return t.flatMap((e=>{const t=q({toc:e.children,minHeadingLevel:n,maxHeadingLevel:s});return function(e){return e.level>=n&&e.level<=s}(e)?[{...e,children:t}]:t}))}function G(e){const t=e.getBoundingClientRect();return t.top===t.bottom?G(e.parentNode):t}function W(e,t){let{anchorTopOffset:n}=t;const s=e.find((e=>G(e).top>=n));if(s){return function(e){return e.top>0&&e.bottom{e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}function J(e){const t=(0,s.useRef)(void 0),n=$();(0,s.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:s,linkActiveClassName:i,minHeadingLevel:a,maxHeadingLevel:l}=e;function o(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(s),o=function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e;const s=[];for(let i=t;i<=n;i+=1)s.push(`h${i}.anchor`);return Array.from(document.querySelectorAll(s.join()))}({minHeadingLevel:a,maxHeadingLevel:l}),r=W(o,{anchorTopOffset:n.current}),c=e.find((e=>r&&r.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,n){n?(t.current&&t.current!==e&&t.current.classList.remove(i),e.classList.add(i),t.current=e):e.classList.remove(i)}(e,e===c)}))}return document.addEventListener("scroll",o),document.addEventListener("resize",o),o(),()=>{document.removeEventListener("scroll",o),document.removeEventListener("resize",o)}}),[e,n])}function Q(e){let{toc:t,className:n,linkClassName:s,isChild:i}=e;return t.length?(0,l.jsx)("ul",{className:i?void 0:n,children:t.map((e=>(0,l.jsxs)("li",{children:[(0,l.jsx)(x.Z,{to:`#${e.id}`,className:s??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,l.jsx)(Q,{isChild:!0,toc:e.children,className:n,linkClassName:s})]},e.id)))}):null}const X=s.memo(Q);function Y(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:i="table-of-contents__link",linkActiveClassName:a,minHeadingLevel:o,maxHeadingLevel:r,...c}=e;const d=(0,P.L)(),u=o??d.tableOfContents.minHeadingLevel,m=r??d.tableOfContents.maxHeadingLevel,h=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:i}=e;return(0,s.useMemo)((()=>q({toc:D(t),minHeadingLevel:n,maxHeadingLevel:i})),[t,n,i])}({toc:t,minHeadingLevel:u,maxHeadingLevel:m});return J((0,s.useMemo)((()=>{if(i&&a)return{linkClassName:i,linkActiveClassName:a,minHeadingLevel:u,maxHeadingLevel:m}}),[i,a,u,m])),(0,l.jsx)(X,{toc:h,className:n,linkClassName:i,...c})}const K={tocCollapsibleButton:"tocCollapsibleButton_TO0P",tocCollapsibleButtonExpanded:"tocCollapsibleButtonExpanded_MG3E"};function ee(e){let{collapsed:t,...n}=e;return(0,l.jsx)("button",{type:"button",...n,className:(0,u.Z)("clean-btn",K.tocCollapsibleButton,!t&&K.tocCollapsibleButtonExpanded,n.className),children:(0,l.jsx)(h.Z,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component",children:"On this page"})})}const te={tocCollapsible:"tocCollapsible_ETCw",tocCollapsibleContent:"tocCollapsibleContent_vkbj",tocCollapsibleExpanded:"tocCollapsibleExpanded_sAul"};function ne(e){let{toc:t,className:n,minHeadingLevel:s,maxHeadingLevel:i}=e;const{collapsed:a,toggleCollapsed:o}=(0,F.u)({initialState:!0});return(0,l.jsxs)("div",{className:(0,u.Z)(te.tocCollapsible,!a&&te.tocCollapsibleExpanded,n),children:[(0,l.jsx)(ee,{collapsed:a,onClick:o}),(0,l.jsx)(F.z,{lazy:!0,className:te.tocCollapsibleContent,collapsed:a,children:(0,l.jsx)(Y,{toc:t,minHeadingLevel:s,maxHeadingLevel:i})})]})}const se={tocMobile:"tocMobile_ITEo"};function ie(){const{toc:e,frontMatter:t}=c();return(0,l.jsx)(ne,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:(0,u.Z)(b.k.docs.docTocMobile,se.tocMobile)})}const ae={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"},le="table-of-contents__link toc-highlight",oe="table-of-contents__link--active";function re(e){let{className:t,...n}=e;return(0,l.jsx)("div",{className:(0,u.Z)(ae.tableOfContents,"thin-scrollbar",t),children:(0,l.jsx)(Y,{...n,linkClassName:le,linkActiveClassName:oe})})}function ce(){const{toc:e,frontMatter:t}=c();return(0,l.jsx)(re,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:b.k.docs.docTocDesktop})}var de=n(2503),ue=n(1151),me=n(5742),he=n(9286);function xe(e){return(0,l.jsx)("code",{...e})}var ve=n(4673);function fe(e){const t=s.Children.toArray(e.children),n=t.find((e=>s.isValidElement(e)&&"summary"===e.type)),i=(0,l.jsx)(l.Fragment,{children:t.filter((e=>e!==n))});return(0,l.jsx)(ve.Z,{...e,summary:n,children:i})}function pe(e){return(0,l.jsx)(de.Z,{...e})}const je={containsTaskList:"containsTaskList_mC6p"};function ge(e){if(void 0!==e)return(0,u.Z)(e,e?.includes("contains-task-list")&&je.containsTaskList)}const be={img:"img_ev3q"};var Ne=n(9047);const Ce={Head:me.Z,details:fe,Details:fe,code:function(e){return function(e){return void 0!==e.children&&s.Children.toArray(e.children).every((e=>"string"==typeof e&&!e.includes("\n")))}(e)?(0,l.jsx)(xe,{...e}):(0,l.jsx)(he.Z,{...e})},a:function(e){return(0,l.jsx)(x.Z,{...e})},pre:function(e){return(0,l.jsx)(l.Fragment,{children:e.children})},ul:function(e){return(0,l.jsx)("ul",{...e,className:ge(e.className)})},img:function(e){return(0,l.jsx)("img",{loading:"lazy",...e,className:(t=e.className,(0,u.Z)(t,be.img))});var t},h1:e=>(0,l.jsx)(pe,{as:"h1",...e}),h2:e=>(0,l.jsx)(pe,{as:"h2",...e}),h3:e=>(0,l.jsx)(pe,{as:"h3",...e}),h4:e=>(0,l.jsx)(pe,{as:"h4",...e}),h5:e=>(0,l.jsx)(pe,{as:"h5",...e}),h6:e=>(0,l.jsx)(pe,{as:"h6",...e}),admonition:Ne.Z,mermaid:()=>null};function Le(e){let{children:t}=e;return(0,l.jsx)(ue.Z,{components:Ce,children:t})}function Ze(e){let{children:t}=e;const n=function(){const{metadata:e,frontMatter:t,contentTitle:n}=c();return t.hide_title||void 0!==n?null:e.title}();return(0,l.jsxs)("div",{className:(0,u.Z)(b.k.docs.docMarkdown,"markdown"),children:[n&&(0,l.jsx)("header",{children:(0,l.jsx)(de.Z,{as:"h1",children:n})}),(0,l.jsx)(Le,{children:t})]})}var _e=n(3438),ke=n(8596),Te=n(4996);function ye(e){return(0,l.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,l.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"})})}const He={breadcrumbHomeIcon:"breadcrumbHomeIcon_YNFT"};function we(){const e=(0,Te.Z)("/");return(0,l.jsx)("li",{className:"breadcrumbs__item",children:(0,l.jsx)(x.Z,{"aria-label":(0,h.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,l.jsx)(ye,{className:He.breadcrumbHomeIcon})})})}const Ue={breadcrumbsContainer:"breadcrumbsContainer_Z_bl"};function Ae(e){let{children:t,href:n,isLast:s}=e;const i="breadcrumbs__link";return s?(0,l.jsx)("span",{className:i,itemProp:"name",children:t}):n?(0,l.jsx)(x.Z,{className:i,href:n,itemProp:"item",children:(0,l.jsx)("span",{itemProp:"name",children:t})}):(0,l.jsx)("span",{className:i,children:t})}function Me(e){let{children:t,active:n,index:s,addMicrodata:i}=e;return(0,l.jsxs)("li",{...i&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,u.Z)("breadcrumbs__item",{"breadcrumbs__item--active":n}),children:[t,(0,l.jsx)("meta",{itemProp:"position",content:String(s+1)})]})}function Be(){const e=(0,_e.s1)(),t=(0,ke.Ns)();return e?(0,l.jsx)("nav",{className:(0,u.Z)(b.k.docs.docBreadcrumbs,Ue.breadcrumbsContainer),"aria-label":(0,h.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,l.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[t&&(0,l.jsx)(we,{}),e.map(((t,n)=>{const s=n===e.length-1,i="category"===t.type&&t.linkUnlisted?void 0:t.href;return(0,l.jsx)(Me,{active:s,index:n,addMicrodata:!!i,children:(0,l.jsx)(Ae,{href:i,isLast:s,children:t.label})},n)}))]})}):null}var Ie=n(2212);const Ee={docItemContainer:"docItemContainer_Djhp",docItemCol:"docItemCol_VOVn"};function ze(e){let{children:t}=e;const n=function(){const{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,l.jsx)(ie,{}):void 0,desktop:!i||"desktop"!==n&&"ssr"!==n?void 0:(0,l.jsx)(ce,{})}}(),{metadata:{unlisted:s}}=c();return(0,l.jsxs)("div",{className:"row",children:[(0,l.jsxs)("div",{className:(0,u.Z)("col",!n.hidden&&Ee.docItemCol),children:[s&&(0,l.jsx)(Ie.Z,{}),(0,l.jsx)(T,{}),(0,l.jsxs)("div",{className:Ee.docItemContainer,children:[(0,l.jsxs)("article",{children:[(0,l.jsx)(Be,{}),(0,l.jsx)(y,{}),n.mobile,(0,l.jsx)(Ze,{children:t}),(0,l.jsx)(S,{})]}),(0,l.jsx)(p,{})]})]}),n.desktop&&(0,l.jsx)("div",{className:"col col--3",children:n.desktop})]})}function Ve(e){const t=`docs-doc-id-${e.content.metadata.id}`,n=e.content;return(0,l.jsx)(r,{content:e.content,children:(0,l.jsxs)(i.FG,{className:t,children:[(0,l.jsx)(d,{}),(0,l.jsx)(ze,{children:(0,l.jsx)(n,{})})]})})}},3008:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var s=n(512),i=n(3692);const a={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};var l=n(5893);function o(e){let{permalink:t,label:n,count:o}=e;return(0,l.jsxs)(i.Z,{href:t,className:(0,s.Z)(a.tag,o?a.tagWithCount:a.tagRegular),children:[n,o&&(0,l.jsx)("span",{children:o})]})}},2212:(e,t,n)=>{n.d(t,{Z:()=>h});n(7294);var s=n(512),i=n(5999),a=n(5742),l=n(5893);function o(){return(0,l.jsx)(i.Z,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function r(){return(0,l.jsx)(i.Z,{id:"theme.unlistedContent.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 c(){return(0,l.jsx)(a.Z,{children:(0,l.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}var d=n(5281),u=n(9047);function m(e){let{className:t}=e;return(0,l.jsx)(u.Z,{type:"caution",title:(0,l.jsx)(o,{}),className:(0,s.Z)(t,d.k.common.unlistedBanner),children:(0,l.jsx)(r,{})})}function h(e){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c,{}),(0,l.jsx)(m,{...e})]})}}}]); \ No newline at end of file diff --git a/assets/js/17896441.6fafa0da.js b/assets/js/17896441.6fafa0da.js deleted file mode 100644 index eea20a3dba..0000000000 --- a/assets/js/17896441.6fafa0da.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7918],{4673:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var s=n(7294),a=n(512),o=n(2389),i=n(6043);const l={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var c=n(5893);function r(e){return!!e&&("SUMMARY"===e.tagName||r(e.parentElement))}function d(e,t){return!!e&&(e===t||d(e.parentElement,t))}function u(e){let{summary:t,children:n,...u}=e;const m=(0,o.Z)(),h=(0,s.useRef)(null),{collapsed:p,setCollapsed:f}=(0,i.u)({initialState:!u.open}),[x,b]=(0,s.useState)(u.open),g=s.isValidElement(t)?t:(0,c.jsx)("summary",{children:t??"Details"});return(0,c.jsxs)("details",{...u,ref:h,open:x,"data-collapsed":p,className:(0,a.Z)(l.details,m&&l.isBrowser,u.className),onMouseDown:e=>{r(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const t=e.target;r(t)&&d(t,h.current)&&(e.preventDefault(),p?(f(!1),b(!0)):f(!0))},children:[g,(0,c.jsx)(i.z,{lazy:!1,collapsed:p,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{f(e),b(!e)},children:(0,c.jsx)("div",{className:l.collapsibleContent,children:n})})]})}const m={details:"details_b_Ee"},h="alert alert--info";function p(e){let{...t}=e;return(0,c.jsx)(u,{...t,className:(0,a.Z)(h,m.details,t.className)})}},1310:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});n(7294);var s=n(512),a=n(5281),o=n(3438),i=n(8596),l=n(9960),c=n(5999),r=n(4996),d=n(5893);function u(e){return(0,d.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,d.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"})})}const m={breadcrumbHomeIcon:"breadcrumbHomeIcon_YNFT"};function h(){const e=(0,r.Z)("/");return(0,d.jsx)("li",{className:"breadcrumbs__item",children:(0,d.jsx)(l.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,d.jsx)(u,{className:m.breadcrumbHomeIcon})})})}const p={breadcrumbsContainer:"breadcrumbsContainer_Z_bl"};function f(e){let{children:t,href:n,isLast:s}=e;const a="breadcrumbs__link";return s?(0,d.jsx)("span",{className:a,itemProp:"name",children:t}):n?(0,d.jsx)(l.Z,{className:a,href:n,itemProp:"item",children:(0,d.jsx)("span",{itemProp:"name",children:t})}):(0,d.jsx)("span",{className:a,children:t})}function x(e){let{children:t,active:n,index:a,addMicrodata:o}=e;return(0,d.jsxs)("li",{...o&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,s.Z)("breadcrumbs__item",{"breadcrumbs__item--active":n}),children:[t,(0,d.jsx)("meta",{itemProp:"position",content:String(a+1)})]})}function b(){const e=(0,o.s1)(),t=(0,i.Ns)();return e?(0,d.jsx)("nav",{className:(0,s.Z)(a.k.docs.docBreadcrumbs,p.breadcrumbsContainer),"aria-label":(0,c.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,d.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[t&&(0,d.jsx)(h,{}),e.map(((t,n)=>{const s=n===e.length-1,a="category"===t.type&&t.linkUnlisted?void 0:t.href;return(0,d.jsx)(x,{active:s,index:n,addMicrodata:!!a,children:(0,d.jsx)(f,{href:a,isLast:s,children:t.label})},n)}))]})}):null}},9678:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>gt});var s=n(7294),a=n(1944),o=n(902),i=n(5893);const l=s.createContext(null);function c(e){let{children:t,content:n}=e;const a=function(e){return(0,s.useMemo)((()=>({metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc})),[e])}(n);return(0,i.jsx)(l.Provider,{value:a,children:t})}function r(){const e=(0,s.useContext)(l);if(null===e)throw new o.i6("DocProvider");return e}function d(){const{metadata:e,frontMatter:t,assets:n}=r();return(0,i.jsx)(a.d,{title:e.title,description:e.description,keywords:t.keywords,image:n.image??t.image})}var u=n(512),m=n(7524),h=n(4966);function p(){const{metadata:e}=r();return(0,i.jsx)(h.Z,{previous:e.previous,next:e.next})}var f=n(3120),x=n(4364),b=n(5281),g=n(5999);function j(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:n}=e;return(0,i.jsx)(g.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:(0,i.jsx)("b",{children:(0,i.jsx)("time",{dateTime:new Date(1e3*t).toISOString(),children:n})})},children:" on {date}"})}function v(e){let{lastUpdatedBy:t}=e;return(0,i.jsx)(g.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:(0,i.jsx)("b",{children:t})},children:" by {user}"})}function N(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:n,lastUpdatedBy:s}=e;return(0,i.jsxs)("span",{className:b.k.common.lastUpdated,children:[(0,i.jsx)(g.Z,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t&&n?(0,i.jsx)(j,{lastUpdatedAt:t,formattedLastUpdatedAt:n}):"",byUser:s?(0,i.jsx)(v,{lastUpdatedBy:s}):""},children:"Last updated{atDate}{byUser}"}),!1]})}var C=n(9960);const k={iconEdit:"iconEdit_Z9Sw"};function L(e){let{className:t,...n}=e;return(0,i.jsx)("svg",{fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,u.Z)(k.iconEdit,t),"aria-hidden":"true",...n,children:(0,i.jsx)("g",{children:(0,i.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 y(e){let{editUrl:t}=e;return(0,i.jsxs)(C.Z,{to:t,className:b.k.common.editThisPage,children:[(0,i.jsx)(L,{}),(0,i.jsx)(g.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page",children:"Edit this page"})]})}const w={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};function B(e){let{permalink:t,label:n,count:s}=e;return(0,i.jsxs)(C.Z,{href:t,className:(0,u.Z)(w.tag,s?w.tagWithCount:w.tagRegular),children:[n,s&&(0,i.jsx)("span",{children:s})]})}const _={tags:"tags_jXut",tag:"tag_QGVx"};function Z(e){let{tags:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("b",{children:(0,i.jsx)(g.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,i.jsx)("ul",{className:(0,u.Z)(_.tags,"padding--none","margin-left--sm"),children:t.map((e=>{let{label:t,permalink:n}=e;return(0,i.jsx)("li",{className:_.tag,children:(0,i.jsx)(B,{label:t,permalink:n})},n)}))})]})}const T={lastUpdated:"lastUpdated_vwxv"};function E(e){return(0,i.jsx)("div",{className:(0,u.Z)(b.k.docs.docFooterTagsRow,"row margin-bottom--sm"),children:(0,i.jsx)("div",{className:"col",children:(0,i.jsx)(Z,{...e})})})}function H(e){let{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:s,formattedLastUpdatedAt:a}=e;return(0,i.jsxs)("div",{className:(0,u.Z)(b.k.docs.docFooterEditMetaRow,"row"),children:[(0,i.jsx)("div",{className:"col",children:t&&(0,i.jsx)(y,{editUrl:t})}),(0,i.jsx)("div",{className:(0,u.Z)("col",T.lastUpdated),children:(n||s)&&(0,i.jsx)(N,{lastUpdatedAt:n,formattedLastUpdatedAt:a,lastUpdatedBy:s})})]})}function A(){const{metadata:e}=r(),{editUrl:t,lastUpdatedAt:n,formattedLastUpdatedAt:s,lastUpdatedBy:a,tags:o}=e,l=o.length>0,c=!!(t||n||a);return l||c?(0,i.jsxs)("footer",{className:(0,u.Z)(b.k.docs.docFooter,"docusaurus-mt-lg"),children:[l&&(0,i.jsx)(E,{tags:o}),c&&(0,i.jsx)(H,{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:a,formattedLastUpdatedAt:s})]}):null}var I=n(6043),M=n(6668);function S(e){const t=e.map((e=>({...e,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);t.forEach(((e,t)=>{const s=n.slice(2,e.level);e.parentIndex=Math.max(...s),n[e.level]=t}));const s=[];return t.forEach((e=>{const{parentIndex:n,...a}=e;n>=0?t[n].children.push(a):s.push(a)})),s}function U(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:s}=e;return t.flatMap((e=>{const t=U({toc:e.children,minHeadingLevel:n,maxHeadingLevel:s});return function(e){return e.level>=n&&e.level<=s}(e)?[{...e,children:t}]:t}))}function z(e){const t=e.getBoundingClientRect();return t.top===t.bottom?z(e.parentNode):t}function V(e,t){let{anchorTopOffset:n}=t;const s=e.find((e=>z(e).top>=n));if(s){return function(e){return e.top>0&&e.bottom{e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}function O(e){const t=(0,s.useRef)(void 0),n=R();(0,s.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:s,linkActiveClassName:a,minHeadingLevel:o,maxHeadingLevel:i}=e;function l(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(s),l=function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e;const s=[];for(let a=t;a<=n;a+=1)s.push(`h${a}.anchor`);return Array.from(document.querySelectorAll(s.join()))}({minHeadingLevel:o,maxHeadingLevel:i}),c=V(l,{anchorTopOffset:n.current}),r=e.find((e=>c&&c.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,n){n?(t.current&&t.current!==e&&t.current.classList.remove(a),e.classList.add(a),t.current=e):e.classList.remove(a)}(e,e===r)}))}return document.addEventListener("scroll",l),document.addEventListener("resize",l),l(),()=>{document.removeEventListener("scroll",l),document.removeEventListener("resize",l)}}),[e,n])}function P(e){let{toc:t,className:n,linkClassName:s,isChild:a}=e;return t.length?(0,i.jsx)("ul",{className:a?void 0:n,children:t.map((e=>(0,i.jsxs)("li",{children:[(0,i.jsx)(C.Z,{to:`#${e.id}`,className:s??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,i.jsx)(P,{isChild:!0,toc:e.children,className:n,linkClassName:s})]},e.id)))}):null}const $=s.memo(P);function D(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:a="table-of-contents__link",linkActiveClassName:o,minHeadingLevel:l,maxHeadingLevel:c,...r}=e;const d=(0,M.L)(),u=l??d.tableOfContents.minHeadingLevel,m=c??d.tableOfContents.maxHeadingLevel,h=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:a}=e;return(0,s.useMemo)((()=>U({toc:S(t),minHeadingLevel:n,maxHeadingLevel:a})),[t,n,a])}({toc:t,minHeadingLevel:u,maxHeadingLevel:m});return O((0,s.useMemo)((()=>{if(a&&o)return{linkClassName:a,linkActiveClassName:o,minHeadingLevel:u,maxHeadingLevel:m}}),[a,o,u,m])),(0,i.jsx)($,{toc:h,className:n,linkClassName:a,...r})}const W={tocCollapsibleButton:"tocCollapsibleButton_TO0P",tocCollapsibleButtonExpanded:"tocCollapsibleButtonExpanded_MG3E"};function F(e){let{collapsed:t,...n}=e;return(0,i.jsx)("button",{type:"button",...n,className:(0,u.Z)("clean-btn",W.tocCollapsibleButton,!t&&W.tocCollapsibleButtonExpanded,n.className),children:(0,i.jsx)(g.Z,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component",children:"On this page"})})}const q={tocCollapsible:"tocCollapsible_ETCw",tocCollapsibleContent:"tocCollapsibleContent_vkbj",tocCollapsibleExpanded:"tocCollapsibleExpanded_sAul"};function G(e){let{toc:t,className:n,minHeadingLevel:s,maxHeadingLevel:a}=e;const{collapsed:o,toggleCollapsed:l}=(0,I.u)({initialState:!0});return(0,i.jsxs)("div",{className:(0,u.Z)(q.tocCollapsible,!o&&q.tocCollapsibleExpanded,n),children:[(0,i.jsx)(F,{collapsed:o,onClick:l}),(0,i.jsx)(I.z,{lazy:!0,className:q.tocCollapsibleContent,collapsed:o,children:(0,i.jsx)(D,{toc:t,minHeadingLevel:s,maxHeadingLevel:a})})]})}const J={tocMobile:"tocMobile_ITEo"};function Y(){const{toc:e,frontMatter:t}=r();return(0,i.jsx)(G,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:(0,u.Z)(b.k.docs.docTocMobile,J.tocMobile)})}const Q={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"},X="table-of-contents__link toc-highlight",K="table-of-contents__link--active";function ee(e){let{className:t,...n}=e;return(0,i.jsx)("div",{className:(0,u.Z)(Q.tableOfContents,"thin-scrollbar",t),children:(0,i.jsx)(D,{...n,linkClassName:X,linkActiveClassName:K})})}function te(){const{toc:e,frontMatter:t}=r();return(0,i.jsx)(ee,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:b.k.docs.docTocDesktop})}var ne=n(2503),se=n(1151),ae=n(5742),oe=n(2389),ie=n(2949);function le(){const{prism:e}=(0,M.L)(),{colorMode:t}=(0,ie.I)(),n=e.theme,s=e.darkTheme||n;return"dark"===t?s:n}var ce=n(7594),re=n.n(ce);const de=/title=(?["'])(?.*?)\1/,ue=/\{(?<range>[\d,-]+)\}/,me={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"},lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""}};function he(e,t){const n=e.map((e=>{const{start:n,end:s}=me[e];return`(?:${n}\\s*(${t.flatMap((e=>[e.line,e.block?.start,e.block?.end].filter(Boolean))).join("|")})\\s*${s})`})).join("|");return new RegExp(`^\\s*(?:${n})\\s*$`)}function pe(e,t){let n=e.replace(/\n$/,"");const{language:s,magicComments:a,metastring:o}=t;if(o&&ue.test(o)){const e=o.match(ue).groups.range;if(0===a.length)throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${o}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);const t=a[0].className,s=re()(e).filter((e=>e>0)).map((e=>[e-1,[t]]));return{lineClassNames:Object.fromEntries(s),code:n}}if(void 0===s)return{lineClassNames:{},code:n};const i=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return he(["js","jsBlock"],t);case"jsx":case"tsx":return he(["js","jsBlock","jsx"],t);case"html":return he(["js","jsBlock","html"],t);case"python":case"py":case"bash":return he(["bash"],t);case"markdown":case"md":return he(["html","jsx","bash"],t);case"tex":case"latex":case"matlab":return he(["tex"],t);case"lua":case"haskell":case"sql":return he(["lua"],t);case"wasm":return he(["wasm"],t);default:return he(Object.keys(me).filter((e=>!["lua","wasm","tex","latex","matlab"].includes(e))),t)}}(s,a),l=n.split("\n"),c=Object.fromEntries(a.map((e=>[e.className,{start:0,range:""}]))),r=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 h=0;h<l.length;){const e=l[h].match(i);if(!e){h+=1;continue}const t=e.slice(1).find((e=>void 0!==e));r[t]?c[r[t]].range+=`${h},`:d[t]?c[d[t]].start=h:u[t]&&(c[u[t]].range+=`${c[u[t]].start}-${h-1},`),l.splice(h,1)}n=l.join("\n");const m={};return Object.entries(c).forEach((e=>{let[t,{range:n}]=e;re()(n).forEach((e=>{m[e]??=[],m[e].push(t)}))})),{lineClassNames:m,code:n}}const fe={codeBlockContainer:"codeBlockContainer_Ckt0"};function xe(e){let{as:t,...n}=e;const s=function(e){const t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach((e=>{let[s,a]=e;const o=t[s];o&&"string"==typeof a&&(n[o]=a)})),n}(le());return(0,i.jsx)(t,{...n,style:s,className:(0,u.Z)(n.className,fe.codeBlockContainer,b.k.common.codeBlock)})}const be={codeBlockContent:"codeBlockContent_biex",codeBlockTitle:"codeBlockTitle_Ktv7",codeBlock:"codeBlock_bY9V",codeBlockStandalone:"codeBlockStandalone_MEMb",codeBlockLines:"codeBlockLines_e6Vv",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_o6Pm",buttonGroup:"buttonGroup__atx"};function ge(e){let{children:t,className:n}=e;return(0,i.jsx)(xe,{as:"pre",tabIndex:0,className:(0,u.Z)(be.codeBlockStandalone,"thin-scrollbar",n),children:(0,i.jsx)("code",{className:be.codeBlockLines,children:t})})}const je={attributes:!0,characterData:!0,childList:!0,subtree:!0};function ve(e,t){const[n,a]=(0,s.useState)(),i=(0,s.useCallback)((()=>{a(e.current?.closest("[role=tabpanel][hidden]"))}),[e,a]);(0,s.useEffect)((()=>{i()}),[i]),function(e,t,n){void 0===n&&(n=je);const a=(0,o.zX)(t),i=(0,o.Ql)(n);(0,s.useEffect)((()=>{const t=new MutationObserver(a);return e&&t.observe(e,i),()=>t.disconnect()}),[e,a,i])}(n,(e=>{e.forEach((e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),i())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}var Ne=n(2573);const Ce={codeLine:"codeLine_lJS_",codeLineNumber:"codeLineNumber_Tfdd",codeLineContent:"codeLineContent_feaV"};function ke(e){let{line:t,classNames:n,showLineNumbers:s,getLineProps:a,getTokenProps:o}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");const l=a({line:t,className:(0,u.Z)(n,s&&Ce.codeLine)}),c=t.map(((e,t)=>(0,i.jsx)("span",{...o({token:e,key:t})},t)));return(0,i.jsxs)("span",{...l,children:[s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:Ce.codeLineNumber}),(0,i.jsx)("span",{className:Ce.codeLineContent,children:c})]}):c,(0,i.jsx)("br",{})]})}function Le(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.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 ye(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}const we={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function Be(e){let{code:t,className:n}=e;const[a,o]=(0,s.useState)(!1),l=(0,s.useRef)(void 0),c=(0,s.useCallback)((()=>{!function(e,t){let{target:n=document.body}=void 0===t?{}:t;if("string"!=typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const s=document.createElement("textarea"),a=document.activeElement;s.value=e,s.setAttribute("readonly",""),s.style.contain="strict",s.style.position="absolute",s.style.left="-9999px",s.style.fontSize="12pt";const o=document.getSelection(),i=o.rangeCount>0&&o.getRangeAt(0);n.append(s),s.select(),s.selectionStart=0,s.selectionEnd=e.length;let l=!1;try{l=document.execCommand("copy")}catch{}s.remove(),i&&(o.removeAllRanges(),o.addRange(i)),a&&a.focus()}(t),o(!0),l.current=window.setTimeout((()=>{o(!1)}),1e3)}),[t]);return(0,s.useEffect)((()=>()=>window.clearTimeout(l.current)),[]),(0,i.jsx)("button",{type:"button","aria-label":a?(0,g.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,g.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,g.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,u.Z)("clean-btn",n,we.copyButton,a&&we.copyButtonCopied),onClick:c,children:(0,i.jsxs)("span",{className:we.copyButtonIcons,"aria-hidden":"true",children:[(0,i.jsx)(Le,{className:we.copyButtonIcon}),(0,i.jsx)(ye,{className:we.copyButtonSuccessIcon})]})})}function _e(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.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"})})}const Ze={wordWrapButtonIcon:"wordWrapButtonIcon_Bwma",wordWrapButtonEnabled:"wordWrapButtonEnabled_EoeP"};function Te(e){let{className:t,onClick:n,isEnabled:s}=e;const a=(0,g.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,i.jsx)("button",{type:"button",onClick:n,className:(0,u.Z)("clean-btn",t,s&&Ze.wordWrapButtonEnabled),"aria-label":a,title:a,children:(0,i.jsx)(_e,{className:Ze.wordWrapButtonIcon,"aria-hidden":"true"})})}function Ee(e){let{children:t,className:n="",metastring:a,title:o,showLineNumbers:l,language:c}=e;const{prism:{defaultLanguage:r,magicComments:d}}=(0,M.L)(),m=function(e){return e?.toLowerCase()}(c??function(e){const t=e.split(" ").find((e=>e.startsWith("language-")));return t?.replace(/language-/,"")}(n)??r),h=le(),p=function(){const[e,t]=(0,s.useState)(!1),[n,a]=(0,s.useState)(!1),o=(0,s.useRef)(null),i=(0,s.useCallback)((()=>{const n=o.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[o,e]),l=(0,s.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=o.current,n=e>t||o.current.querySelector("code").hasAttribute("style");a(n)}),[o]);return ve(o,l),(0,s.useEffect)((()=>{l()}),[e,l]),(0,s.useEffect)((()=>(window.addEventListener("resize",l,{passive:!0}),()=>{window.removeEventListener("resize",l)})),[l]),{codeBlockRef:o,isEnabled:e,isCodeScrollable:n,toggle:i}}(),f=function(e){return e?.match(de)?.groups.title??""}(a)||o,{lineClassNames:x,code:b}=pe(t,{metastring:a,language:m,magicComments:d}),g=l??function(e){return Boolean(e?.includes("showLineNumbers"))}(a);return(0,i.jsxs)(xe,{as:"div",className:(0,u.Z)(n,m&&!n.includes(`language-${m}`)&&`language-${m}`),children:[f&&(0,i.jsx)("div",{className:be.codeBlockTitle,children:f}),(0,i.jsxs)("div",{className:be.codeBlockContent,children:[(0,i.jsx)(Ne.y$,{theme:h,code:b,language:m??"text",children:e=>{let{className:t,style:n,tokens:s,getLineProps:a,getTokenProps:o}=e;return(0,i.jsx)("pre",{tabIndex:0,ref:p.codeBlockRef,className:(0,u.Z)(t,be.codeBlock,"thin-scrollbar"),style:n,children:(0,i.jsx)("code",{className:(0,u.Z)(be.codeBlockLines,g&&be.codeBlockLinesWithNumbering),children:s.map(((e,t)=>(0,i.jsx)(ke,{line:e,getLineProps:a,getTokenProps:o,classNames:x[t],showLineNumbers:g},t)))})})}}),(0,i.jsxs)("div",{className:be.buttonGroup,children:[(p.isEnabled||p.isCodeScrollable)&&(0,i.jsx)(Te,{className:be.codeButton,onClick:()=>p.toggle(),isEnabled:p.isEnabled}),(0,i.jsx)(Be,{className:be.codeButton,code:b})]})]})]})}function He(e){let{children:t,...n}=e;const a=(0,oe.Z)(),o=function(e){return s.Children.toArray(e).some((e=>(0,s.isValidElement)(e)))?e:Array.isArray(e)?e.join(""):e}(t),l="string"==typeof o?Ee:ge;return(0,i.jsx)(l,{...n,children:o},String(a))}var Ae=n(4673);function Ie(e){const t=s.Children.toArray(e.children),n=t.find((e=>s.isValidElement(e)&&"summary"===e.type)),a=(0,i.jsx)(i.Fragment,{children:t.filter((e=>e!==n))});return(0,i.jsx)(Ae.Z,{...e,summary:n,children:a})}function Me(e){return(0,i.jsx)(ne.Z,{...e})}const Se={containsTaskList:"containsTaskList_mC6p"};function Ue(e){if(void 0!==e)return(0,u.Z)(e,e?.includes("contains-task-list")&&Se.containsTaskList)}const ze={img:"img_ev3q"};function Ve(e){const{mdxAdmonitionTitle:t,rest:n}=function(e){const t=s.Children.toArray(e),n=t.find((e=>s.isValidElement(e)&&"mdxAdmonitionTitle"===e.type)),a=t.filter((e=>e!==n)),o=n?.props.children;return{mdxAdmonitionTitle:o,rest:a.length>0?(0,i.jsx)(i.Fragment,{children:a}):null}}(e.children),a=e.title??t;return{...e,...a&&{title:a},children:n}}const Re={admonition:"admonition_xJq3",admonitionHeading:"admonitionHeading_Gvgb",admonitionIcon:"admonitionIcon_Rf37",admonitionContent:"admonitionContent_BuS1"};function Oe(e){let{type:t,className:n,children:s}=e;return(0,i.jsx)("div",{className:(0,u.Z)(b.k.common.admonition,b.k.common.admonitionType(t),Re.admonition,n),children:s})}function Pe(e){let{icon:t,title:n}=e;return(0,i.jsxs)("div",{className:Re.admonitionHeading,children:[(0,i.jsx)("span",{className:Re.admonitionIcon,children:t}),n]})}function $e(e){let{children:t}=e;return t?(0,i.jsx)("div",{className:Re.admonitionContent,children:t}):null}function De(e){const{type:t,icon:n,title:s,children:a,className:o}=e;return(0,i.jsxs)(Oe,{type:t,className:o,children:[(0,i.jsx)(Pe,{title:s,icon:n}),(0,i.jsx)($e,{children:a})]})}function We(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.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"})})}const Fe={icon:(0,i.jsx)(We,{}),title:(0,i.jsx)(g.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function qe(e){return(0,i.jsx)(De,{...Fe,...e,className:(0,u.Z)("alert alert--secondary",e.className),children:e.children})}function Ge(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.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"})})}const Je={icon:(0,i.jsx)(Ge,{}),title:(0,i.jsx)(g.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function Ye(e){return(0,i.jsx)(De,{...Je,...e,className:(0,u.Z)("alert alert--success",e.className),children:e.children})}function Qe(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.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"})})}const Xe={icon:(0,i.jsx)(Qe,{}),title:(0,i.jsx)(g.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function Ke(e){return(0,i.jsx)(De,{...Xe,...e,className:(0,u.Z)("alert alert--info",e.className),children:e.children})}function et(e){return(0,i.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,i.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"})})}const tt={icon:(0,i.jsx)(et,{}),title:(0,i.jsx)(g.Z,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function nt(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.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"})})}const st={icon:(0,i.jsx)(nt,{}),title:(0,i.jsx)(g.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const at={icon:(0,i.jsx)(et,{}),title:(0,i.jsx)(g.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const ot={...{note:qe,tip:Ye,info:Ke,warning:function(e){return(0,i.jsx)(De,{...tt,...e,className:(0,u.Z)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,i.jsx)(De,{...st,...e,className:(0,u.Z)("alert alert--danger",e.className),children:e.children})}},...{secondary:e=>(0,i.jsx)(qe,{title:"secondary",...e}),important:e=>(0,i.jsx)(Ke,{title:"important",...e}),success:e=>(0,i.jsx)(Ye,{title:"success",...e}),caution:function(e){return(0,i.jsx)(De,{...at,...e,className:(0,u.Z)("alert alert--warning",e.className),children:e.children})}}};function it(e){const t=Ve(e),n=(s=t.type,ot[s]||(console.warn(`No admonition component found for admonition type "${s}". Using Info as fallback.`),ot.info));var s;return(0,i.jsx)(n,{...t})}const lt={Head:ae.Z,details:Ie,Details:Ie,code:function(e){return s.Children.toArray(e.children).every((e=>"string"==typeof e&&!e.includes("\n")))?(0,i.jsx)("code",{...e}):(0,i.jsx)(He,{...e})},a:function(e){return(0,i.jsx)(C.Z,{...e})},pre:function(e){return(0,i.jsx)(i.Fragment,{children:e.children})},ul:function(e){return(0,i.jsx)("ul",{...e,className:Ue(e.className)})},img:function(e){return(0,i.jsx)("img",{loading:"lazy",...e,className:(t=e.className,(0,u.Z)(t,ze.img))});var t},h1:e=>(0,i.jsx)(Me,{as:"h1",...e}),h2:e=>(0,i.jsx)(Me,{as:"h2",...e}),h3:e=>(0,i.jsx)(Me,{as:"h3",...e}),h4:e=>(0,i.jsx)(Me,{as:"h4",...e}),h5:e=>(0,i.jsx)(Me,{as:"h5",...e}),h6:e=>(0,i.jsx)(Me,{as:"h6",...e}),admonition:it,mermaid:()=>null};function ct(e){let{children:t}=e;return(0,i.jsx)(se.Z,{components:lt,children:t})}function rt(e){let{children:t}=e;const n=function(){const{metadata:e,frontMatter:t,contentTitle:n}=r();return t.hide_title||void 0!==n?null:e.title}();return(0,i.jsxs)("div",{className:(0,u.Z)(b.k.docs.docMarkdown,"markdown"),children:[n&&(0,i.jsx)("header",{children:(0,i.jsx)(ne.Z,{as:"h1",children:n})}),(0,i.jsx)(ct,{children:t})]})}var dt=n(1310);function ut(){return(0,i.jsx)(g.Z,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function mt(){return(0,i.jsx)(g.Z,{id:"theme.unlistedContent.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 ht(){return(0,i.jsx)(ae.Z,{children:(0,i.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function pt(e){let{className:t}=e;return(0,i.jsx)(it,{type:"caution",title:(0,i.jsx)(ut,{}),className:(0,u.Z)(t,b.k.common.unlistedBanner),children:(0,i.jsx)(mt,{})})}function ft(e){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ht,{}),(0,i.jsx)(pt,{...e})]})}const xt={docItemContainer:"docItemContainer_Djhp",docItemCol:"docItemCol_VOVn"};function bt(e){let{children:t}=e;const n=function(){const{frontMatter:e,toc:t}=r(),n=(0,m.i)(),s=e.hide_table_of_contents,a=!s&&t.length>0;return{hidden:s,mobile:a?(0,i.jsx)(Y,{}):void 0,desktop:!a||"desktop"!==n&&"ssr"!==n?void 0:(0,i.jsx)(te,{})}}(),{metadata:{unlisted:s}}=r();return(0,i.jsxs)("div",{className:"row",children:[(0,i.jsxs)("div",{className:(0,u.Z)("col",!n.hidden&&xt.docItemCol),children:[s&&(0,i.jsx)(ft,{}),(0,i.jsx)(f.Z,{}),(0,i.jsxs)("div",{className:xt.docItemContainer,children:[(0,i.jsxs)("article",{children:[(0,i.jsx)(dt.Z,{}),(0,i.jsx)(x.Z,{}),n.mobile,(0,i.jsx)(rt,{children:t}),(0,i.jsx)(A,{})]}),(0,i.jsx)(p,{})]})]}),n.desktop&&(0,i.jsx)("div",{className:"col col--3",children:n.desktop})]})}function gt(e){const t=`docs-doc-id-${e.content.metadata.id}`,n=e.content;return(0,i.jsx)(c,{content:e.content,children:(0,i.jsxs)(a.FG,{className:t,children:[(0,i.jsx)(d,{}),(0,i.jsx)(bt,{children:(0,i.jsx)(n,{})})]})})}},4966:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});n(7294);var s=n(5999),a=n(512),o=n(9960),i=n(5893);function l(e){const{permalink:t,title:n,subLabel:s,isNext:l}=e;return(0,i.jsxs)(o.Z,{className:(0,a.Z)("pagination-nav__link",l?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[s&&(0,i.jsx)("div",{className:"pagination-nav__sublabel",children:s}),(0,i.jsx)("div",{className:"pagination-nav__label",children:n})]})}function c(e){const{previous:t,next:n}=e;return(0,i.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,s.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[t&&(0,i.jsx)(l,{...t,subLabel:(0,i.jsx)(s.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),n&&(0,i.jsx)(l,{...n,subLabel:(0,i.jsx)(s.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}},4364:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});n(7294);var s=n(512),a=n(5999),o=n(5281),i=n(4477),l=n(5893);function c(e){let{className:t}=e;const n=(0,i.E)();return n.badge?(0,l.jsx)("span",{className:(0,s.Z)(t,o.k.docs.docVersionBadge,"badge badge--secondary"),children:(0,l.jsx)(a.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label},children:"Version: {versionLabel}"})}):null}},3120:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});n(7294);var s=n(512),a=n(2263),o=n(9960),i=n(5999),l=n(143),c=n(5281),r=n(373),d=n(4477),u=n(5893);const m={unreleased:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,u.jsx)(i.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,u.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,u.jsx)(i.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,u.jsx)("b",{children:n.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function h(e){const t=m[e.versionMetadata.banner];return(0,u.jsx)(t,{...e})}function p(e){let{versionLabel:t,to:n,onClick:s}=e;return(0,u.jsx)(i.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:(0,u.jsx)("b",{children:(0,u.jsx)(o.Z,{to:n,onClick:s,children:(0,u.jsx)(i.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 f(e){let{className:t,versionMetadata:n}=e;const{siteConfig:{title:o}}=(0,a.Z)(),{pluginId:i}=(0,l.gA)({failfast:!0}),{savePreferredVersionName:d}=(0,r.J)(i),{latestDocSuggestion:m,latestVersionSuggestion:f}=(0,l.Jo)(i),x=m??(b=f).docs.find((e=>e.id===b.mainDocId));var b;return(0,u.jsxs)("div",{className:(0,s.Z)(t,c.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,u.jsx)("div",{children:(0,u.jsx)(h,{siteTitle:o,versionMetadata:n})}),(0,u.jsx)("div",{className:"margin-top--md",children:(0,u.jsx)(p,{versionLabel:f.label,to:x.path,onClick:()=>d(f.name)})})]})}function x(e){let{className:t}=e;const n=(0,d.E)();return n.banner?(0,u.jsx)(f,{className:t,versionMetadata:n}):null}},7594:(e,t)=>{function n(e){let t,n=[];for(let s of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(s))n.push(parseInt(s,10));else if(t=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,s,a,o]=t;if(s&&o){s=parseInt(s),o=parseInt(o);const e=s<o?1:-1;"-"!==a&&".."!==a&&"\u2025"!==a||(o+=e);for(let t=s;t!==o;t+=e)n.push(t)}}return n}t.default=n,e.exports=n},1151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l,a:()=>i});var s=n(7294);const a={},o=s.createContext(a);function i(e){const t=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:i(e.components),s.createElement(o.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/1a362983.2aad723b.js b/assets/js/1a362983.2aad723b.js deleted file mode 100644 index 9bc264543e..0000000000 --- a/assets/js/1a362983.2aad723b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[138],{4491:e=>{e.exports=JSON.parse('{"title":"Row Data Packet","slug":"/category/row-data-packet","permalink":"/node-mysql2/docs/category/row-data-packet","navigation":{"previous":{"title":"Procedure Call Packet (Row as Array)","permalink":"/node-mysql2/docs/examples/typescript/procedure-call/row-as-array"},"next":{"title":"Row Data Packet","permalink":"/node-mysql2/docs/examples/typescript/row-data/row-data-packet"}}}')}}]); \ No newline at end of file diff --git a/assets/js/1a4e3797.5fb5e418.js b/assets/js/1a4e3797.5fb5e418.js deleted file mode 100644 index a7600067f6..0000000000 --- a/assets/js/1a4e3797.5fb5e418.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7920],{2027:(e,t,r)=>{r.r(t),r.d(t,{default:()=>$});var s=r(7294),a=r(2263),n=r(8862),c=r(5742),l=r(9960),o=r(5999);const u=["zero","one","two","few","many","other"];function h(e){return u.filter((t=>e.includes(t)))}const i={locale:"en",pluralForms:h(["one","other"]),select:e=>1===e?"one":"other"};function m(){const{i18n:{currentLocale:e}}=(0,a.Z)();return(0,s.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:h(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),i}}),[e])}function d(){const e=m();return{selectMessage:(t,r)=>function(e,t,r){const s=e.split("|");if(1===s.length)return s[0];s.length>r.pluralForms.length&&console.error(`For locale=${r.locale}, a maximum of ${r.pluralForms.length} plural forms are expected (${r.pluralForms.join(",")}), but the message contains ${s.length}: ${e}`);const a=r.select(t),n=r.pluralForms.indexOf(a);return s[Math.min(n,s.length-1)]}(r,t,e)}}var p=r(1728),g=r(6550),x=r(2389),f=r(8087);const y=function(){const e=(0,x.Z)(),t=(0,g.k6)(),r=(0,g.TH)(),{siteConfig:{baseUrl:s}}=(0,a.Z)(),n=e?new URLSearchParams(r.search):null,c=n?.get("q")||"",l=n?.get("ctx")||"",o=n?.get("version")||"",u=e=>{const t=new URLSearchParams(r.search);return e?t.set("q",e):t.delete("q"),t};return{searchValue:c,searchContext:l&&Array.isArray(f.Kc)&&f.Kc.some((e=>"string"==typeof e?e===l:e.path===l))?l:"",searchVersion:o,updateSearchPath:e=>{const r=u(e);t.replace({search:r.toString()})},updateSearchContext:e=>{const s=new URLSearchParams(r.search);s.set("ctx",e),t.replace({search:s.toString()})},generateSearchPageLink:e=>{const t=u(e);return`${s}search?${t.toString()}`}}};var S=r(22),C=r(8202),j=r(2539),I=r(726),w=r(1073),v=r(311),R=r(3926);const P={searchContextInput:"searchContextInput_mXoe",searchQueryInput:"searchQueryInput_CFBF",searchResultItem:"searchResultItem_U687",searchResultItemPath:"searchResultItemPath_uIbk",searchResultItemSummary:"searchResultItemSummary_oZHr",searchQueryColumn:"searchQueryColumn_q7nx",searchContextColumn:"searchContextColumn_oWAF"};var b=r(51),_=r(5893);function F(){const{siteConfig:{baseUrl:e},i18n:{currentLocale:t}}=(0,a.Z)(),{selectMessage:r}=d(),{searchValue:n,searchContext:l,searchVersion:u,updateSearchPath:h,updateSearchContext:i}=y(),[m,g]=(0,s.useState)(n),[x,j]=(0,s.useState)(),[I,w]=(0,s.useState)(),R=`${e}${u}`,F=(0,s.useMemo)((()=>m?(0,o.I)({id:"theme.SearchPage.existingResultsTitle",message:'Search results for "{query}"',description:"The search page title for non-empty query"},{query:m}):(0,o.I)({id:"theme.SearchPage.emptyResultsTitle",message:"Search the documentation",description:"The search page title for empty query"})),[m]);(0,s.useEffect)((()=>{h(m),x&&(m?x(m,(e=>{w(e)})):w(void 0))}),[m,x]);const $=(0,s.useCallback)((e=>{g(e.target.value)}),[]);return(0,s.useEffect)((()=>{n&&n!==m&&g(n)}),[n]),(0,s.useEffect)((()=>{!async function(){const{wrappedIndexes:e,zhDictionary:t}=!Array.isArray(f.Kc)||l||f.pQ?await(0,S.w)(R,l):{wrappedIndexes:[],zhDictionary:[]};j((()=>(0,C.v)(e,t,100)))}()}),[l,R]),(0,_.jsxs)(s.Fragment,{children:[(0,_.jsxs)(c.Z,{children:[(0,_.jsx)("meta",{property:"robots",content:"noindex, follow"}),(0,_.jsx)("title",{children:F})]}),(0,_.jsxs)("div",{className:"container margin-vert--lg",children:[(0,_.jsx)("h1",{children:F}),(0,_.jsxs)("div",{className:"row",children:[(0,_.jsx)("div",{className:(0,p.Z)("col",{[P.searchQueryColumn]:Array.isArray(f.Kc),"col--9":Array.isArray(f.Kc),"col--12":!Array.isArray(f.Kc)}),children:(0,_.jsx)("input",{type:"search",name:"q",className:P.searchQueryInput,"aria-label":"Search",onChange:$,value:m,autoComplete:"off",autoFocus:!0})}),Array.isArray(f.Kc)?(0,_.jsx)("div",{className:(0,p.Z)("col","col--3","padding-left--none",P.searchContextColumn),children:(0,_.jsxs)("select",{name:"search-context",className:P.searchContextInput,id:"context-selector",value:l,onChange:e=>i(e.target.value),children:[f.pQ&&(0,_.jsx)("option",{value:"",children:(0,o.I)({id:"theme.SearchPage.searchContext.everywhere",message:"everywhere"})}),f.Kc.map((e=>{const{label:r,path:s}=(0,b._)(e,t);return(0,_.jsx)("option",{value:s,children:r},s)}))]})}):null]}),!x&&m&&(0,_.jsx)("div",{children:(0,_.jsx)(v.Z,{})}),I&&(I.length>0?(0,_.jsx)("p",{children:r(I.length,(0,o.I)({id:"theme.SearchPage.documentsFound.plurals",message:"1 document found|{count} documents found",description:'Pluralized label for "{count} documents found". 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)'},{count:I.length}))}):(0,_.jsx)("p",{children:(0,o.I)({id:"theme.SearchPage.noResultsText",message:"No documents were found",description:"The paragraph for empty search result"})})),(0,_.jsx)("section",{children:I&&I.map((e=>(0,_.jsx)(A,{searchResult:e},e.document.i)))})]})]})}function A(e){let{searchResult:{document:t,type:r,page:s,tokens:a,metadata:n}}=e;const c=0===r,o=2===r,u=(c?t.b:s.b).slice(),h=o?t.s:t.t;c||u.push(s.t);let i="";if(f.vc&&a.length>0){const e=new URLSearchParams;for(const t of a)e.append("_highlight",t);i=`?${e.toString()}`}return(0,_.jsxs)("article",{className:P.searchResultItem,children:[(0,_.jsx)("h2",{children:(0,_.jsx)(l.Z,{to:t.u+i+(t.h||""),dangerouslySetInnerHTML:{__html:o?(0,j.C)(h,a):(0,I.o)(h,(0,w.m)(n,"t"),a,100)}})}),u.length>0&&(0,_.jsx)("p",{className:P.searchResultItemPath,children:(0,R.e)(u)}),o&&(0,_.jsx)("p",{className:P.searchResultItemSummary,dangerouslySetInnerHTML:{__html:(0,I.o)(t.t,(0,w.m)(n,"t"),a,100)}})]})}const $=function(){return(0,_.jsx)(n.Z,{children:(0,_.jsx)(F,{})})}}}]); \ No newline at end of file diff --git a/assets/js/1a4e3797.b37fdfae.js b/assets/js/1a4e3797.b37fdfae.js new file mode 100644 index 0000000000..3013e31893 --- /dev/null +++ b/assets/js/1a4e3797.b37fdfae.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7920],{8824:(e,t,r)=>{r.d(t,{c:()=>u});var s=r(7294),a=r(2263);const n=["zero","one","two","few","many","other"];function c(e){return n.filter((t=>e.includes(t)))}const l={locale:"en",pluralForms:c(["one","other"]),select:e=>1===e?"one":"other"};function o(){const{i18n:{currentLocale:e}}=(0,a.Z)();return(0,s.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:c(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),l}}),[e])}function u(){const e=o();return{selectMessage:(t,r)=>function(e,t,r){const s=e.split("|");if(1===s.length)return s[0];s.length>r.pluralForms.length&&console.error(`For locale=${r.locale}, a maximum of ${r.pluralForms.length} plural forms are expected (${r.pluralForms.join(",")}), but the message contains ${s.length}: ${e}`);const a=r.select(t),n=r.pluralForms.indexOf(a);return s[Math.min(n,s.length-1)]}(r,t,e)}}},1473:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var s=r(7294),a=r(2263),n=r(8862),c=r(5742),l=r(3692),o=r(5999),u=r(8824),h=r(1728),i=r(6550),m=r(2389),d=r(8087);const p=function(){const e=(0,m.Z)(),t=(0,i.k6)(),r=(0,i.TH)(),{siteConfig:{baseUrl:s}}=(0,a.Z)(),n=e?new URLSearchParams(r.search):null,c=n?.get("q")||"",l=n?.get("ctx")||"",o=n?.get("version")||"",u=e=>{const t=new URLSearchParams(r.search);return e?t.set("q",e):t.delete("q"),t};return{searchValue:c,searchContext:l&&Array.isArray(d.Kc)&&d.Kc.some((e=>"string"==typeof e?e===l:e.path===l))?l:"",searchVersion:o,updateSearchPath:e=>{const r=u(e);t.replace({search:r.toString()})},updateSearchContext:e=>{const s=new URLSearchParams(r.search);s.set("ctx",e),t.replace({search:s.toString()})},generateSearchPageLink:e=>{const t=u(e);return`${s}search?${t.toString()}`}}};var g=r(22),x=r(8202),f=r(2539),y=r(726),S=r(1073),C=r(311),j=r(3926);const I={searchContextInput:"searchContextInput_mXoe",searchQueryInput:"searchQueryInput_CFBF",searchResultItem:"searchResultItem_U687",searchResultItemPath:"searchResultItemPath_uIbk",searchResultItemSummary:"searchResultItemSummary_oZHr",searchQueryColumn:"searchQueryColumn_q7nx",searchContextColumn:"searchContextColumn_oWAF"};var w=r(51),v=r(5893);function R(){const{siteConfig:{baseUrl:e},i18n:{currentLocale:t}}=(0,a.Z)(),{selectMessage:r}=(0,u.c)(),{searchValue:n,searchContext:l,searchVersion:i,updateSearchPath:m,updateSearchContext:f}=p(),[y,S]=(0,s.useState)(n),[j,R]=(0,s.useState)(),[b,_]=(0,s.useState)(),F=`${e}${i}`,A=(0,s.useMemo)((()=>y?(0,o.I)({id:"theme.SearchPage.existingResultsTitle",message:'Search results for "{query}"',description:"The search page title for non-empty query"},{query:y}):(0,o.I)({id:"theme.SearchPage.emptyResultsTitle",message:"Search the documentation",description:"The search page title for empty query"})),[y]);(0,s.useEffect)((()=>{m(y),j&&(y?j(y,(e=>{_(e)})):_(void 0))}),[y,j]);const $=(0,s.useCallback)((e=>{S(e.target.value)}),[]);return(0,s.useEffect)((()=>{n&&n!==y&&S(n)}),[n]),(0,s.useEffect)((()=>{!async function(){const{wrappedIndexes:e,zhDictionary:t}=!Array.isArray(d.Kc)||l||d.pQ?await(0,g.w)(F,l):{wrappedIndexes:[],zhDictionary:[]};R((()=>(0,x.v)(e,t,100)))}()}),[l,F]),(0,v.jsxs)(s.Fragment,{children:[(0,v.jsxs)(c.Z,{children:[(0,v.jsx)("meta",{property:"robots",content:"noindex, follow"}),(0,v.jsx)("title",{children:A})]}),(0,v.jsxs)("div",{className:"container margin-vert--lg",children:[(0,v.jsx)("h1",{children:A}),(0,v.jsxs)("div",{className:"row",children:[(0,v.jsx)("div",{className:(0,h.Z)("col",{[I.searchQueryColumn]:Array.isArray(d.Kc),"col--9":Array.isArray(d.Kc),"col--12":!Array.isArray(d.Kc)}),children:(0,v.jsx)("input",{type:"search",name:"q",className:I.searchQueryInput,"aria-label":"Search",onChange:$,value:y,autoComplete:"off",autoFocus:!0})}),Array.isArray(d.Kc)?(0,v.jsx)("div",{className:(0,h.Z)("col","col--3","padding-left--none",I.searchContextColumn),children:(0,v.jsxs)("select",{name:"search-context",className:I.searchContextInput,id:"context-selector",value:l,onChange:e=>f(e.target.value),children:[d.pQ&&(0,v.jsx)("option",{value:"",children:(0,o.I)({id:"theme.SearchPage.searchContext.everywhere",message:"everywhere"})}),d.Kc.map((e=>{const{label:r,path:s}=(0,w._)(e,t);return(0,v.jsx)("option",{value:s,children:r},s)}))]})}):null]}),!j&&y&&(0,v.jsx)("div",{children:(0,v.jsx)(C.Z,{})}),b&&(b.length>0?(0,v.jsx)("p",{children:r(b.length,(0,o.I)({id:"theme.SearchPage.documentsFound.plurals",message:"1 document found|{count} documents found",description:'Pluralized label for "{count} documents found". 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)'},{count:b.length}))}):(0,v.jsx)("p",{children:(0,o.I)({id:"theme.SearchPage.noResultsText",message:"No documents were found",description:"The paragraph for empty search result"})})),(0,v.jsx)("section",{children:b&&b.map((e=>(0,v.jsx)(P,{searchResult:e},e.document.i)))})]})]})}function P(e){let{searchResult:{document:t,type:r,page:s,tokens:a,metadata:n}}=e;const c=0===r,o=2===r,u=(c?t.b:s.b).slice(),h=o?t.s:t.t;c||u.push(s.t);let i="";if(d.vc&&a.length>0){const e=new URLSearchParams;for(const t of a)e.append("_highlight",t);i=`?${e.toString()}`}return(0,v.jsxs)("article",{className:I.searchResultItem,children:[(0,v.jsx)("h2",{children:(0,v.jsx)(l.Z,{to:t.u+i+(t.h||""),dangerouslySetInnerHTML:{__html:o?(0,f.C)(h,a):(0,y.o)(h,(0,S.m)(n,"t"),a,100)}})}),u.length>0&&(0,v.jsx)("p",{className:I.searchResultItemPath,children:(0,j.e)(u)}),o&&(0,v.jsx)("p",{className:I.searchResultItemSummary,dangerouslySetInnerHTML:{__html:(0,y.o)(t.t,(0,S.m)(n,"t"),a,100)}})]})}const b=function(){return(0,v.jsx)(n.Z,{children:(0,v.jsx)(R,{})})}}}]); \ No newline at end of file diff --git a/assets/js/1f08bd40.b4d8e865.js b/assets/js/1f08bd40.b4d8e865.js deleted file mode 100644 index aded3e12c0..0000000000 --- a/assets/js/1f08bd40.b4d8e865.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[312],{5467:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>l,default:()=>m,frontMatter:()=>u,metadata:()=>i,toc:()=>d});var a=n(5893),r=n(1151),s=n(4866),o=n(5162);const u={},l="Row Data Packet",i={id:"examples/typescript/row-data/row-data-packet",title:"Row Data Packet",description:"",source:"@site/docs/examples/typescript/row-data/00-row-data-packet.mdx",sourceDirName:"examples/typescript/row-data",slug:"/examples/typescript/row-data/row-data-packet",permalink:"/node-mysql2/docs/examples/typescript/row-data/row-data-packet",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/row-data/00-row-data-packet.mdx",tags:[],version:"current",sidebarPosition:0,frontMatter:{},sidebar:"examples",previous:{title:"Row Data Packet",permalink:"/node-mysql2/docs/category/row-data-packet"},next:{title:"Row Data Packet (Row as Array)",permalink:"/node-mysql2/docs/examples/typescript/row-data/row-as-array"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,r.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h1,{id:"row-data-packet",children:"Row Data Packet"}),"\n",(0,a.jsx)(s.Z,{children:(0,a.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n id: number;\n name: string;\n}\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Getting users */\n const [users] = await conn.query<User[]>(\n 'SELECT * FROM `users` ORDER BY `name` ASC;'\n );\n\n users.forEach((user) => {\n console.log('-----------');\n console.log('id: ', user.id);\n console.log('name:', user.name);\n });\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * -----------\n * id: 4\n * name: Gween\n * -----------\n * id: 2\n * name: John\n * -----------\n * id: 1\n * name: Josh\n * -----------\n * id: 3\n * name: Marie\n */\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,r.a)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var a=n(512);const r={tabItem:"tabItem_Ymn6"};var s=n(5893);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,a.Z)(r.tabItem,o),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>k});var a=n(7294),r=n(512),s=n(2466),o=n(6550),u=n(469),l=n(1980),i=n(7392),c=n(12);function d(e){return a.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,a.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,a.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:a,default:r}}=e;return{value:t,label:n,attributes:a,default:r}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const r=(0,o.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,l._X)(s),(0,a.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(r.location.search);t.set(s,e),r.replace({...r.location,search:t.toString()})}),[s,r])]}function h(e){const{defaultValue:t,queryString:n=!1,groupId:r}=e,s=p(e),[o,l]=(0,a.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const a=n.find((e=>e.default))??n[0];if(!a)throw new Error("Unexpected error: 0 tabValues");return a.value}({defaultValue:t,tabValues:s}))),[i,d]=f({queryString:n,groupId:r}),[h,b]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[r,s]=(0,c.Nk)(n);return[r,(0,a.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:r}),w=(()=>{const e=i??h;return m({value:e,tabValues:s})?e:null})();(0,u.Z)((()=>{w&&l(w)}),[w]);return{selectedValue:o,selectValue:(0,a.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=n(2389);const w={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var y=n(5893);function v(e){let{className:t,block:n,selectedValue:a,selectValue:o,tabValues:u}=e;const l=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=l.indexOf(t),r=u[n].value;r!==a&&(i(t),o(r))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=l.indexOf(e.currentTarget)+1;t=l[n]??l[0];break}case"ArrowLeft":{const n=l.indexOf(e.currentTarget)-1;t=l[n]??l[l.length-1];break}}t?.focus()};return(0,y.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":n},t),children:u.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,y.jsx)("li",{role:"tab",tabIndex:a===t?0:-1,"aria-selected":a===t,ref:e=>l.push(e),onKeyDown:d,onClick:c,...s,className:(0,r.Z)("tabs__item",w.tabItem,s?.className,{"tabs__item--active":a===t}),children:n??t},t)}))})}function g(e){let{lazy:t,children:n,selectedValue:r}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===r));return e?(0,a.cloneElement)(e,{className:"margin-top--md"}):null}return(0,y.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,a.cloneElement)(e,{key:t,hidden:e.props.value!==r})))})}function x(e){const t=h(e);return(0,y.jsxs)("div",{className:(0,r.Z)("tabs-container",w.tabList),children:[(0,y.jsx)(v,{...e,...t}),(0,y.jsx)(g,{...e,...t})]})}function k(e){const t=(0,b.Z)();return(0,y.jsx)(x,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>u,a:()=>o});var a=n(7294);const r={},s=a.createContext(r);function o(e){const t=a.useContext(s);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function u(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),a.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/20afe101.be6389dc.js b/assets/js/20afe101.be6389dc.js new file mode 100644 index 0000000000..721978a0eb --- /dev/null +++ b/assets/js/20afe101.be6389dc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1411],{3156:e=>{e.exports=JSON.parse('{"label":"URI","permalink":"/node-mysql2/docs/tags/uri","allTagsPath":"/node-mysql2/docs/tags","count":3,"items":[{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/docs/examples/connections/create-connection"},{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/docs/examples/connections/create-pool"},{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/docs/examples/connections/createPoolCluster"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/assets/js/22161331.bdd78c44.js b/assets/js/22161331.bdd78c44.js new file mode 100644 index 0000000000..06ede7720d --- /dev/null +++ b/assets/js/22161331.bdd78c44.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[556],{7165:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>p,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),s=t(1151),o=t(4866),a=t(5162);const l={},u="MySQL Proxy",c={id:"examples/tests/mysql-proxy",title:"MySQL Proxy",description:"",source:"@site/docs/examples/tests/mysql-proxy.mdx",sourceDirName:"examples/tests",slug:"/examples/tests/mysql-proxy",permalink:"/node-mysql2/docs/examples/tests/mysql-proxy",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/tests/mysql-proxy.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"await \u2014 co",permalink:"/node-mysql2/docs/examples/promise-wrapper/co-await"},next:{title:"Pool",permalink:"/node-mysql2/docs/examples/tests/pool"}},i={},d=[];function m(e){const n={code:"code",h1:"h1",pre:"pre",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"mysql-proxy",children:"MySQL Proxy"}),"\n",(0,r.jsx)(o.Z,{children:(0,r.jsx)(a.Z,{value:"index.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst ClientFlags = require('mysql2/lib/constants/client.js');\n\nconst server = mysql.createServer();\nserver.listen(3307);\n\nserver.on('connection', (conn) => {\n console.log('connection');\n\n conn.serverHandshake({\n protocolVersion: 10,\n serverVersion: 'node.js rocks',\n connectionId: 1234,\n statusFlags: 2,\n characterSet: 8,\n capabilityFlags: 0xffffff ^ ClientFlags.COMPRESS,\n });\n\n conn.on('field_list', (table, fields) => {\n console.log('field list:', table, fields);\n conn.writeEof();\n });\n\n const remote = mysql.createConnection({\n user: 'root',\n database: 'dbname',\n host: 'server.example.com',\n password: 'secret',\n });\n\n conn.on('query', (sql) => {\n console.log(`proxying query: ${sql}`);\n remote.query(sql, function (err) {\n // overloaded args, either (err, result :object)\n // or (err, rows :array, columns :array)\n if (Array.isArray(arguments[1])) {\n // response to a 'select', 'show' or similar\n const rows = arguments[1],\n columns = arguments[2];\n console.log('rows', rows);\n console.log('columns', columns);\n conn.writeTextResult(rows, columns);\n } else {\n // response to an 'insert', 'update' or 'delete'\n const result = arguments[1];\n console.log('result', result);\n conn.writeOk(result);\n }\n });\n });\n\n conn.on('end', remote.end.bind(remote));\n});\n"})})})})]})}function p(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>a});t(7294);var r=t(512);const s={tabItem:"tabItem_Ymn6"};var o=t(5893);function a(e){let{children:n,hidden:t,className:a}=e;return(0,o.jsx)("div",{role:"tabpanel",className:(0,r.Z)(s.tabItem,a),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>q});var r=t(7294),s=t(512),o=t(2466),a=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:s}}=e;return{value:n,label:t,attributes:r,default:s}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const s=(0,a.k6)(),o=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(o),(0,r.useCallback)((e=>{if(!o)return;const n=new URLSearchParams(s.location.search);n.set(o,e),s.replace({...s.location,search:n.toString()})}),[o,s])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:s}=e,o=m(e),[a,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:o}))),[c,d]=f({queryString:t,groupId:s}),[b,h]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[s,o]=(0,i.Nk)(t);return[s,(0,r.useCallback)((e=>{t&&o.set(e)}),[t,o])]}({groupId:s}),y=(()=>{const e=c??b;return p({value:e,tabValues:o})?e:null})();(0,l.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:a,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:o}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,o]),tabValues:o}}var h=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=t(5893);function x(e){let{className:n,block:t,selectedValue:r,selectValue:a,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,o.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),s=l[t].value;s!==r&&(c(n),a(s))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:o}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...o,className:(0,s.Z)("tabs__item",y.tabItem,o?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function g(e){let{lazy:n,children:t,selectedValue:s}=e;const o=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=o.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:o.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==s})))})}function w(e){const n=b(e);return(0,v.jsxs)("div",{className:(0,s.Z)("tabs-container",y.tabList),children:[(0,v.jsx)(x,{...e,...n}),(0,v.jsx)(g,{...e,...n})]})}function q(e){const n=(0,h.Z)();return(0,v.jsx)(w,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>a});var r=t(7294);const s={},o=r.createContext(s);function a(e){const n=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/2a05ee09.1e59c012.js b/assets/js/2a05ee09.1e59c012.js new file mode 100644 index 0000000000..9acd28eee0 --- /dev/null +++ b/assets/js/2a05ee09.1e59c012.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2714],{398:e=>{e.exports=JSON.parse('{"label":"SSL","permalink":"/node-mysql2/docs/tags/ssl","allTagsPath":"/node-mysql2/docs/tags","count":3,"items":[{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/docs/examples/connections/create-connection"},{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/docs/examples/connections/create-pool"},{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/docs/examples/connections/createPoolCluster"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/assets/js/2bc14e22.3ce1e359.js b/assets/js/2bc14e22.684b748e.js similarity index 63% rename from assets/js/2bc14e22.3ce1e359.js rename to assets/js/2bc14e22.684b748e.js index 65f0c37d60..b82d00d6db 100644 --- a/assets/js/2bc14e22.3ce1e359.js +++ b/assets/js/2bc14e22.684b748e.js @@ -1,2 +1,2 @@ -/*! For license information please see 2bc14e22.3ce1e359.js.LICENSE.txt */ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2839],{4760:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>x,frontMatter:()=>a,metadata:()=>i,toc:()=>h});var t=s(5893),r=s(1151),l=s(8609),c=s(3901);const a={},o="Using MySQL2 with TypeScript",i={id:"documentation/typescript-examples",title:"Using MySQL2 with TypeScript",description:"Installation",source:"@site/docs/documentation/typescript-examples.mdx",sourceDirName:"documentation",slug:"/documentation/typescript-examples",permalink:"/node-mysql2/docs/documentation/typescript-examples",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/documentation/typescript-examples.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Promise Wrappers",permalink:"/node-mysql2/docs/documentation/promise-wrapper"},next:{title:"API and Configuration",permalink:"/node-mysql2/docs/api-and-configurations"}},d={},h=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"Connection",id:"connection",level:3},{value:"Pool Connection",id:"pool-connection",level:3},{value:"Query and Execute",id:"query-and-execute",level:3},{value:"A simple query",id:"a-simple-query",level:4},{value:"Type Specification",id:"type-specification",level:2},{value:"RowDataPacket[]",id:"rowdatapacket",level:3},{value:"RowDataPacket[][]",id:"rowdatapacket-1",level:3},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"ResultSetHeader[]",id:"resultsetheader-1",level:3},{value:"ProcedureCallPacket",id:"procedurecallpacket",level:3},{value:"OkPacket",id:"okpacket",level:3},{value:"Examples",id:"examples",level:2}];function u(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",br:"br",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"using-mysql2-with-typescript",children:"Using MySQL2 with TypeScript"}),"\n",(0,t.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm install --save mysql2\nnpm install --save-dev @types/node\n"})}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"@types/node"})," ensure the proper interaction between ",(0,t.jsx)(n.strong,{children:"TypeScript"})," and the ",(0,t.jsx)(n.strong,{children:"Node.js"})," modules used by ",(0,t.jsx)(n.strong,{children:"MySQL2"})," (",(0,t.jsx)(n.em,{children:"net"}),", ",(0,t.jsx)(n.em,{children:"events"}),", ",(0,t.jsx)(n.em,{children:"stream"}),", ",(0,t.jsx)(n.em,{children:"tls"}),", etc.)."]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:["Requires ",(0,t.jsx)(n.strong,{children:"TypeScript"})," ",(0,t.jsx)(n.code,{children:">=4.5.2"}),"."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsxs)(n.p,{children:["You can import ",(0,t.jsx)(n.strong,{children:"MySQL2"})," in two ways:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["By setting the ",(0,t.jsx)(n.code,{children:"esModuleInterop"})," option to ",(0,t.jsx)(n.code,{children:"true"})," in ",(0,t.jsx)(n.code,{children:"tsconfig.json"})]}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql from 'mysql2';\nimport mysql from 'mysql2/promise';\n"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["By setting the ",(0,t.jsx)(n.code,{children:"esModuleInterop"})," option to ",(0,t.jsx)(n.code,{children:"false"})," in ",(0,t.jsx)(n.code,{children:"tsconfig.json"})]}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import * as mysql from 'mysql2';\nimport * as mysql from 'mysql2/promise';\n"})}),"\n",(0,t.jsx)(n.h3,{id:"connection",children:"Connection"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ConnectionOptions } from 'mysql2';\n\nconst access: ConnectionOptions = {\n user: 'test',\n database: 'test',\n};\n\nconst conn = mysql.createConnection(access);\n"})}),"\n",(0,t.jsx)(n.h3,{id:"pool-connection",children:"Pool Connection"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { PoolOptions } from 'mysql2';\n\nconst access: PoolOptions = {\n user: 'test',\n database: 'test',\n};\n\nconst conn = mysql.createPool(access);\n"})}),"\n",(0,t.jsx)(n.h3,{id:"query-and-execute",children:"Query and Execute"}),"\n",(0,t.jsx)(n.h4,{id:"a-simple-query",children:"A simple query"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"conn.query('SELECT 1 + 1 AS `test`;', (_err, rows) => {\n /**\n * @rows: [ { test: 2 } ]\n */\n});\n\nconn.execute('SELECT 1 + 1 AS `test`;', (_err, rows) => {\n /**\n * @rows: [ { test: 2 } ]\n */\n});\n"})}),"\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"rows"})," output will be these possible types:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"RowDataPacket[]"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"RowDataPacket[][]"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"ResultSetHeader"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"ResultSetHeader[]"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"ProcedureCallPacket"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"In this example, you need to manually check the output types"}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"type-specification",children:"Type Specification"}),"\n",(0,t.jsx)(n.h3,{id:"rowdatapacket",children:"RowDataPacket[]"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(n.p,{children:"An array with the returned rows, for example:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { RowDataPacket } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\n// SELECT\nconn.query<RowDataPacket[]>('SELECT 1 + 1 AS `test`;', (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ { test: 2 } ]\n */\n});\n\n// SHOW\nconn.query<RowDataPacket[]>('SHOW TABLES FROM `test`;', (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ { Tables_in_test: 'test' } ]\n */\n});\n"})}),"\n",(0,t.jsxs)(n.p,{children:["Using ",(0,t.jsx)(n.code,{children:"rowsAsArray"})," option as ",(0,t.jsx)(n.code,{children:"true"}),":"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { RowDataPacket } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n rowsAsArray: true,\n});\n\n// SELECT\nconn.query<RowDataPacket[]>(\n 'SELECT 1 + 1 AS test, 2 + 2 AS test;',\n (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ [ 2, 4 ] ]\n */\n }\n);\n\n// SHOW\nconn.query<RowDataPacket[]>('SHOW TABLES FROM `test`;', (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ [ 'test' ] ]\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"rowdatapacket-1",children:"RowDataPacket[][]"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsxs)(n.p,{children:["Using ",(0,t.jsx)(n.code,{children:"multipleStatements"})," option as ",(0,t.jsx)(n.code,{children:"true"})," with multiple queries:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { RowDataPacket } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n multipleStatements: true,\n});\n\nconst sql = `\n SELECT 1 + 1 AS test;\n SELECT 2 + 2 AS test;\n`;\n\nconn.query<RowDataPacket[][]>(sql, (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ [ { test: 2 } ], [ { test: 4 } ] ]\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(l.A,{records:[{version:"3.5.1",changes:[(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.strong,{children:"OkPacket"})," is deprecated and might be removed in the future major release.",(0,t.jsx)(n.br,{}),"Please use ",(0,t.jsx)(n.strong,{children:"ResultSetHeader"})," instead."]}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.strong,{children:"changedRows"})," option is deprecated and might be removed in the future major release.",(0,t.jsx)(n.br,{}),"Please use ",(0,t.jsx)(n.strong,{children:"affectedRows"})," instead."]})]}]}),"\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.code,{children:"INSERT"}),", ",(0,t.jsx)(n.code,{children:"UPDATE"}),", ",(0,t.jsx)(n.code,{children:"DELETE"}),", ",(0,t.jsx)(n.code,{children:"TRUNCATE"}),", etc.:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ResultSetHeader } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\nconst sql = `\n SET @1 = 1;\n`;\n\nconn.query<ResultSetHeader>(sql, (_err, result) => {\n console.log(result);\n /**\n * @result: ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 2,\n warningStatus: 0,\n changedRows: 0\n }\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"resultsetheader-1",children:"ResultSetHeader[]"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(l.A,{records:[{version:"3.5.1",changes:[(0,t.jsxs)(t.Fragment,{children:["Introduce ",(0,t.jsx)(n.strong,{children:"ResultSetHeader[]"})]})]}]}),"\n",(0,t.jsxs)(n.p,{children:["For multiples ",(0,t.jsx)(n.code,{children:"INSERT"}),", ",(0,t.jsx)(n.code,{children:"UPDATE"}),", ",(0,t.jsx)(n.code,{children:"DELETE"}),", ",(0,t.jsx)(n.code,{children:"TRUNCATE"}),", etc. when using ",(0,t.jsx)(n.code,{children:"multipleStatements"})," as ",(0,t.jsx)(n.code,{children:"true"}),":"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ResultSetHeader } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n multipleStatements: true,\n});\n\nconst sql = `\n SET @1 = 1;\n SET @2 = 2;\n`;\n\nconn.query<ResultSetHeader[]>(sql, (_err, results) => {\n console.log(results);\n /**\n * @results: [\n ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 10,\n warningStatus: 0,\n changedRows: 0\n },\n ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 2,\n warningStatus: 0,\n changedRows: 0\n }\n ]\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"procedurecallpacket",children:"ProcedureCallPacket"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(l.A,{records:[{version:"3.5.1",changes:[(0,t.jsxs)(t.Fragment,{children:["Introduce ",(0,t.jsx)(n.strong,{children:"ProcedureCallPacket"})]})]}]}),"\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["By performing a ",(0,t.jsx)(n.strong,{children:"Call Procedure"})," using ",(0,t.jsx)(n.code,{children:"INSERT"}),", ",(0,t.jsx)(n.code,{children:"UPDATE"}),", etc., the return will be a ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket<ResultSetHeader>"})," (even if you perform multiples queries and set ",(0,t.jsx)(n.code,{children:"multipleStatements"})," to ",(0,t.jsx)(n.code,{children:"true"}),"):"]})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ProcedureCallPacket, ResultSetHeader } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\n/** ResultSetHeader */\nconn.query('DROP PROCEDURE IF EXISTS myProcedure');\n\n/** ResultSetHeader */\nconn.query(`\n CREATE PROCEDURE myProcedure()\n BEGIN\n SET @1 = 1;\n SET @2 = 2;\n END\n `);\n\n/** ProcedureCallPacket */\nconst sql = 'CALL myProcedure()';\n\nconn.query<ProcedureCallPacket<ResultSetHeader>>(sql, (_err, result) => {\n console.log(result);\n /**\n * @result: ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 2,\n warningStatus: 0,\n changedRows: 0\n }\n */\n});\n"})}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.code,{children:"CREATE PROCEDURE"})," and ",(0,t.jsx)(n.code,{children:"DROP PROCEDURE"}),", these returns will be the ",(0,t.jsx)(n.em,{children:"default"})," ",(0,t.jsx)(n.code,{children:"ResultSetHeader"}),"."]}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["By using ",(0,t.jsx)(n.code,{children:"SELECT"})," and ",(0,t.jsx)(n.code,{children:"SHOW"})," queries in a ",(0,t.jsx)(n.strong,{children:"Procedure Call"}),", it groups the results as:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"/** ProcedureCallPacket<RowDataPacket[]> */\n[RowDataPacket[], ResultSetHeader]\n"})}),"\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket<RowDataPacket[]>"}),", please see the following examples."]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"okpacket",children:"OkPacket"}),"\n",(0,t.jsx)(c.X,{level:0,message:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.strong,{children:"OkPacket"})," is deprecated and might be removed in the future major release.",(0,t.jsx)(n.br,{}),"Please use ",(0,t.jsx)(n.strong,{children:"ResultSetHeader"})," instead."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"examples",children:"Examples"}),"\n",(0,t.jsxs)(n.p,{children:["You can also check some code examples using ",(0,t.jsx)(n.strong,{children:"MySQL2"})," and ",(0,t.jsx)(n.strong,{children:"TypeScript"})," to understand advanced concepts:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/row-data-packet",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/row-as-array",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," and ",(0,t.jsx)(n.code,{children:"rowAsArray"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/multi-statements",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," and ",(0,t.jsx)(n.code,{children:"multipleStatements"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/row-as-array-multi-statements",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"}),", ",(0,t.jsx)(n.code,{children:"rowAsArray"})," and ",(0,t.jsx)(n.code,{children:"multipleStatements"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/procedure-call/procedure-call-packet",children:["Checking for ",(0,t.jsx)(n.code,{children:"ResultSetHeader"}),", extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," from ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/procedure-call/row-as-array",children:["Checking for ",(0,t.jsx)(n.code,{children:"ResultSetHeader"}),", extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," and ",(0,t.jsx)(n.code,{children:"rowAsArray"})," from ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/basic-custom-class",children:["Creating a basic custom ",(0,t.jsx)(n.strong,{children:"MySQL2"})," ",(0,t.jsx)(n.strong,{children:"Class"})]})}),"\n"]})]})}function x(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}},4673:(e,n,s)=>{s.d(n,{Z:()=>p});var t=s(7294),r=s(512),l=s(2389),c=s(6043);const a={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var o=s(5893);function i(e){return!!e&&("SUMMARY"===e.tagName||i(e.parentElement))}function d(e,n){return!!e&&(e===n||d(e.parentElement,n))}function h(e){let{summary:n,children:s,...h}=e;const u=(0,l.Z)(),x=(0,t.useRef)(null),{collapsed:p,setCollapsed:j}=(0,c.u)({initialState:!h.open}),[m,y]=(0,t.useState)(h.open),g=t.isValidElement(n)?n:(0,o.jsx)("summary",{children:n??"Details"});return(0,o.jsxs)("details",{...h,ref:x,open:m,"data-collapsed":p,className:(0,r.Z)(a.details,u&&a.isBrowser,h.className),onMouseDown:e=>{i(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const n=e.target;i(n)&&d(n,x.current)&&(e.preventDefault(),p?(j(!1),y(!0)):j(!0))},children:[g,(0,o.jsx)(c.z,{lazy:!1,collapsed:p,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{j(e),y(!e)},children:(0,o.jsx)("div",{className:a.collapsibleContent,children:s})})]})}const u={details:"details_b_Ee"},x="alert alert--info";function p(e){let{...n}=e;return(0,o.jsx)(h,{...n,className:(0,r.Z)(x,u.details,n.className)})}},8609:(e,n,s)=>{s.d(n,{A:()=>c});var t=s(4673);const r=(0,s(4297).Z)("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]);var l=s(5893);const c=e=>{let{records:n,open:s}=e;return(0,l.jsx)(t.Z,{open:s,summary:(0,l.jsxs)("summary",{children:[(0,l.jsx)(r,{})," History"]}),className:"history",children:(0,l.jsxs)("table",{children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{children:"Version"}),(0,l.jsx)("th",{children:"Changes"})]})}),(0,l.jsx)("tbody",{children:n.map(((e,n)=>(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:(0,l.jsxs)("strong",{children:["v",e.version.replace(/[^0-9.]/g,"")]})}),(0,l.jsx)("td",{children:(0,l.jsx)("div",{className:"changes",children:e.changes.map(((e,n)=>(0,l.jsx)("section",{children:e},`change:${n}`)))})})]},`record:${n}`)))})]})})}},3901:(e,n,s)=>{s.d(n,{X:()=>u});var t=s(9960),r=s(4297);const l=(0,r.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),c=(0,r.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),a=(0,r.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),o=(0,r.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),i=(0,r.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),d=(0,r.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var h=s(5893);const u=e=>{let{level:n,message:s}=e;const r={0:{title:"Deprecated",icon:(0,h.jsx)(l,{})},1:{title:"Experimental",icon:(0,h.jsx)(c,{})},1.1:{title:"Early Development",icon:(0,h.jsx)(a,{})},1.2:{title:"Release Candidate",icon:(0,h.jsx)(o,{})},2:{title:"Stable",icon:(0,h.jsx)(i,{})},3:{title:"Legacy",icon:(0,h.jsx)(d,{})}};return(0,h.jsxs)("section",{className:"stability","data-level":n,children:[(0,h.jsx)(t.Z,{to:"/docs/stability-badges",children:(0,h.jsxs)("header",{children:[(0,h.jsx)("strong",{children:n}),(0,h.jsx)("span",{children:r[n].title}),r[n].icon]})}),s?(0,h.jsx)("p",{children:s}):null]})}},4297:(e,n,s)=>{s.d(n,{Z:()=>l});var t=s(7294),r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const l=(e,n)=>{const s=(0,t.forwardRef)((({color:s="currentColor",size:l=24,strokeWidth:c=2,absoluteStrokeWidth:a,className:o="",children:i,...d},h)=>{return(0,t.createElement)("svg",{ref:h,...r,width:l,height:l,stroke:s,strokeWidth:a?24*Number(c)/Number(l):c,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,o].join(" "),...d},[...n.map((([e,n])=>(0,t.createElement)(e,n))),...Array.isArray(i)?i:[i]]);var u}));return s.displayName=`${e}`,s}},1151:(e,n,s)=>{s.d(n,{Z:()=>a,a:()=>c});var t=s(7294);const r={},l=t.createContext(r);function c(e){const n=t.useContext(l);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),t.createElement(l.Provider,{value:n},e.children)}}}]); \ No newline at end of file +/*! For license information please see 2bc14e22.684b748e.js.LICENSE.txt */ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2839],{4760:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>x,frontMatter:()=>a,metadata:()=>i,toc:()=>h});var t=s(5893),r=s(1151),l=s(8609),c=s(3901);const a={},o="Using MySQL2 with TypeScript",i={id:"documentation/typescript-examples",title:"Using MySQL2 with TypeScript",description:"Installation",source:"@site/docs/documentation/typescript-examples.mdx",sourceDirName:"documentation",slug:"/documentation/typescript-examples",permalink:"/node-mysql2/docs/documentation/typescript-examples",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/documentation/typescript-examples.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Promise Wrappers",permalink:"/node-mysql2/docs/documentation/promise-wrapper"},next:{title:"API and Configuration",permalink:"/node-mysql2/docs/api-and-configurations"}},d={},h=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"Connection",id:"connection",level:3},{value:"Pool Connection",id:"pool-connection",level:3},{value:"Query and Execute",id:"query-and-execute",level:3},{value:"A simple query",id:"a-simple-query",level:4},{value:"Type Specification",id:"type-specification",level:2},{value:"RowDataPacket[]",id:"rowdatapacket",level:3},{value:"RowDataPacket[][]",id:"rowdatapacket-1",level:3},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"ResultSetHeader[]",id:"resultsetheader-1",level:3},{value:"ProcedureCallPacket",id:"procedurecallpacket",level:3},{value:"OkPacket",id:"okpacket",level:3},{value:"Examples",id:"examples",level:2}];function u(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",br:"br",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"using-mysql2-with-typescript",children:"Using MySQL2 with TypeScript"}),"\n",(0,t.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm install --save mysql2\nnpm install --save-dev @types/node\n"})}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"@types/node"})," ensure the proper interaction between ",(0,t.jsx)(n.strong,{children:"TypeScript"})," and the ",(0,t.jsx)(n.strong,{children:"Node.js"})," modules used by ",(0,t.jsx)(n.strong,{children:"MySQL2"})," (",(0,t.jsx)(n.em,{children:"net"}),", ",(0,t.jsx)(n.em,{children:"events"}),", ",(0,t.jsx)(n.em,{children:"stream"}),", ",(0,t.jsx)(n.em,{children:"tls"}),", etc.)."]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:["Requires ",(0,t.jsx)(n.strong,{children:"TypeScript"})," ",(0,t.jsx)(n.code,{children:">=4.5.2"}),"."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsxs)(n.p,{children:["You can import ",(0,t.jsx)(n.strong,{children:"MySQL2"})," in two ways:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["By setting the ",(0,t.jsx)(n.code,{children:"esModuleInterop"})," option to ",(0,t.jsx)(n.code,{children:"true"})," in ",(0,t.jsx)(n.code,{children:"tsconfig.json"})]}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql from 'mysql2';\nimport mysql from 'mysql2/promise';\n"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["By setting the ",(0,t.jsx)(n.code,{children:"esModuleInterop"})," option to ",(0,t.jsx)(n.code,{children:"false"})," in ",(0,t.jsx)(n.code,{children:"tsconfig.json"})]}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import * as mysql from 'mysql2';\nimport * as mysql from 'mysql2/promise';\n"})}),"\n",(0,t.jsx)(n.h3,{id:"connection",children:"Connection"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ConnectionOptions } from 'mysql2';\n\nconst access: ConnectionOptions = {\n user: 'test',\n database: 'test',\n};\n\nconst conn = mysql.createConnection(access);\n"})}),"\n",(0,t.jsx)(n.h3,{id:"pool-connection",children:"Pool Connection"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { PoolOptions } from 'mysql2';\n\nconst access: PoolOptions = {\n user: 'test',\n database: 'test',\n};\n\nconst conn = mysql.createPool(access);\n"})}),"\n",(0,t.jsx)(n.h3,{id:"query-and-execute",children:"Query and Execute"}),"\n",(0,t.jsx)(n.h4,{id:"a-simple-query",children:"A simple query"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"conn.query('SELECT 1 + 1 AS `test`;', (_err, rows) => {\n /**\n * @rows: [ { test: 2 } ]\n */\n});\n\nconn.execute('SELECT 1 + 1 AS `test`;', (_err, rows) => {\n /**\n * @rows: [ { test: 2 } ]\n */\n});\n"})}),"\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"rows"})," output will be these possible types:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"RowDataPacket[]"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"RowDataPacket[][]"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"ResultSetHeader"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"ResultSetHeader[]"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"ProcedureCallPacket"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"In this example, you need to manually check the output types"}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"type-specification",children:"Type Specification"}),"\n",(0,t.jsx)(n.h3,{id:"rowdatapacket",children:"RowDataPacket[]"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(n.p,{children:"An array with the returned rows, for example:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { RowDataPacket } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\n// SELECT\nconn.query<RowDataPacket[]>('SELECT 1 + 1 AS `test`;', (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ { test: 2 } ]\n */\n});\n\n// SHOW\nconn.query<RowDataPacket[]>('SHOW TABLES FROM `test`;', (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ { Tables_in_test: 'test' } ]\n */\n});\n"})}),"\n",(0,t.jsxs)(n.p,{children:["Using ",(0,t.jsx)(n.code,{children:"rowsAsArray"})," option as ",(0,t.jsx)(n.code,{children:"true"}),":"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { RowDataPacket } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n rowsAsArray: true,\n});\n\n// SELECT\nconn.query<RowDataPacket[]>(\n 'SELECT 1 + 1 AS test, 2 + 2 AS test;',\n (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ [ 2, 4 ] ]\n */\n }\n);\n\n// SHOW\nconn.query<RowDataPacket[]>('SHOW TABLES FROM `test`;', (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ [ 'test' ] ]\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"rowdatapacket-1",children:"RowDataPacket[][]"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsxs)(n.p,{children:["Using ",(0,t.jsx)(n.code,{children:"multipleStatements"})," option as ",(0,t.jsx)(n.code,{children:"true"})," with multiple queries:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { RowDataPacket } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n multipleStatements: true,\n});\n\nconst sql = `\n SELECT 1 + 1 AS test;\n SELECT 2 + 2 AS test;\n`;\n\nconn.query<RowDataPacket[][]>(sql, (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ [ { test: 2 } ], [ { test: 4 } ] ]\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(l.A,{records:[{version:"3.5.1",changes:[(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.strong,{children:"OkPacket"})," is deprecated and might be removed in the future major release.",(0,t.jsx)(n.br,{}),"Please use ",(0,t.jsx)(n.strong,{children:"ResultSetHeader"})," instead."]}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.strong,{children:"changedRows"})," option is deprecated and might be removed in the future major release.",(0,t.jsx)(n.br,{}),"Please use ",(0,t.jsx)(n.strong,{children:"affectedRows"})," instead."]})]}]}),"\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.code,{children:"INSERT"}),", ",(0,t.jsx)(n.code,{children:"UPDATE"}),", ",(0,t.jsx)(n.code,{children:"DELETE"}),", ",(0,t.jsx)(n.code,{children:"TRUNCATE"}),", etc.:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ResultSetHeader } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\nconst sql = `\n SET @1 = 1;\n`;\n\nconn.query<ResultSetHeader>(sql, (_err, result) => {\n console.log(result);\n /**\n * @result: ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 2,\n warningStatus: 0,\n changedRows: 0\n }\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"resultsetheader-1",children:"ResultSetHeader[]"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(l.A,{records:[{version:"3.5.1",changes:[(0,t.jsxs)(t.Fragment,{children:["Introduce ",(0,t.jsx)(n.strong,{children:"ResultSetHeader[]"})]})]}]}),"\n",(0,t.jsxs)(n.p,{children:["For multiples ",(0,t.jsx)(n.code,{children:"INSERT"}),", ",(0,t.jsx)(n.code,{children:"UPDATE"}),", ",(0,t.jsx)(n.code,{children:"DELETE"}),", ",(0,t.jsx)(n.code,{children:"TRUNCATE"}),", etc. when using ",(0,t.jsx)(n.code,{children:"multipleStatements"})," as ",(0,t.jsx)(n.code,{children:"true"}),":"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ResultSetHeader } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n multipleStatements: true,\n});\n\nconst sql = `\n SET @1 = 1;\n SET @2 = 2;\n`;\n\nconn.query<ResultSetHeader[]>(sql, (_err, results) => {\n console.log(results);\n /**\n * @results: [\n ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 10,\n warningStatus: 0,\n changedRows: 0\n },\n ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 2,\n warningStatus: 0,\n changedRows: 0\n }\n ]\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"procedurecallpacket",children:"ProcedureCallPacket"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(l.A,{records:[{version:"3.5.1",changes:[(0,t.jsxs)(t.Fragment,{children:["Introduce ",(0,t.jsx)(n.strong,{children:"ProcedureCallPacket"})]})]}]}),"\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["By performing a ",(0,t.jsx)(n.strong,{children:"Call Procedure"})," using ",(0,t.jsx)(n.code,{children:"INSERT"}),", ",(0,t.jsx)(n.code,{children:"UPDATE"}),", etc., the return will be a ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket<ResultSetHeader>"})," (even if you perform multiples queries and set ",(0,t.jsx)(n.code,{children:"multipleStatements"})," to ",(0,t.jsx)(n.code,{children:"true"}),"):"]})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ProcedureCallPacket, ResultSetHeader } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\n/** ResultSetHeader */\nconn.query('DROP PROCEDURE IF EXISTS myProcedure');\n\n/** ResultSetHeader */\nconn.query(`\n CREATE PROCEDURE myProcedure()\n BEGIN\n SET @1 = 1;\n SET @2 = 2;\n END\n `);\n\n/** ProcedureCallPacket */\nconst sql = 'CALL myProcedure()';\n\nconn.query<ProcedureCallPacket<ResultSetHeader>>(sql, (_err, result) => {\n console.log(result);\n /**\n * @result: ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 2,\n warningStatus: 0,\n changedRows: 0\n }\n */\n});\n"})}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.code,{children:"CREATE PROCEDURE"})," and ",(0,t.jsx)(n.code,{children:"DROP PROCEDURE"}),", these returns will be the ",(0,t.jsx)(n.em,{children:"default"})," ",(0,t.jsx)(n.code,{children:"ResultSetHeader"}),"."]}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["By using ",(0,t.jsx)(n.code,{children:"SELECT"})," and ",(0,t.jsx)(n.code,{children:"SHOW"})," queries in a ",(0,t.jsx)(n.strong,{children:"Procedure Call"}),", it groups the results as:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"/** ProcedureCallPacket<RowDataPacket[]> */\n[RowDataPacket[], ResultSetHeader]\n"})}),"\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket<RowDataPacket[]>"}),", please see the following examples."]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"okpacket",children:"OkPacket"}),"\n",(0,t.jsx)(c.X,{level:0,message:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.strong,{children:"OkPacket"})," is deprecated and might be removed in the future major release.",(0,t.jsx)(n.br,{}),"Please use ",(0,t.jsx)(n.strong,{children:"ResultSetHeader"})," instead."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"examples",children:"Examples"}),"\n",(0,t.jsxs)(n.p,{children:["You can also check some code examples using ",(0,t.jsx)(n.strong,{children:"MySQL2"})," and ",(0,t.jsx)(n.strong,{children:"TypeScript"})," to understand advanced concepts:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/index",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/row-as-array",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," and ",(0,t.jsx)(n.code,{children:"rowAsArray"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/multi-statements",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," and ",(0,t.jsx)(n.code,{children:"multipleStatements"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/row-as-array-multi-statements",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"}),", ",(0,t.jsx)(n.code,{children:"rowAsArray"})," and ",(0,t.jsx)(n.code,{children:"multipleStatements"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/procedure-call/index",children:["Checking for ",(0,t.jsx)(n.code,{children:"ResultSetHeader"}),", extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," from ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/procedure-call/row-as-array",children:["Checking for ",(0,t.jsx)(n.code,{children:"ResultSetHeader"}),", extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," and ",(0,t.jsx)(n.code,{children:"rowAsArray"})," from ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/basic-custom-class",children:["Creating a basic custom ",(0,t.jsx)(n.strong,{children:"MySQL2"})," ",(0,t.jsx)(n.strong,{children:"Class"})]})}),"\n"]})]})}function x(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}},4673:(e,n,s)=>{s.d(n,{Z:()=>p});var t=s(7294),r=s(512),l=s(2389),c=s(6043);const a={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var o=s(5893);function i(e){return!!e&&("SUMMARY"===e.tagName||i(e.parentElement))}function d(e,n){return!!e&&(e===n||d(e.parentElement,n))}function h(e){let{summary:n,children:s,...h}=e;const u=(0,l.Z)(),x=(0,t.useRef)(null),{collapsed:p,setCollapsed:j}=(0,c.u)({initialState:!h.open}),[m,y]=(0,t.useState)(h.open),g=t.isValidElement(n)?n:(0,o.jsx)("summary",{children:n??"Details"});return(0,o.jsxs)("details",{...h,ref:x,open:m,"data-collapsed":p,className:(0,r.Z)(a.details,u&&a.isBrowser,h.className),onMouseDown:e=>{i(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const n=e.target;i(n)&&d(n,x.current)&&(e.preventDefault(),p?(j(!1),y(!0)):j(!0))},children:[g,(0,o.jsx)(c.z,{lazy:!1,collapsed:p,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{j(e),y(!e)},children:(0,o.jsx)("div",{className:a.collapsibleContent,children:s})})]})}const u={details:"details_b_Ee"},x="alert alert--info";function p(e){let{...n}=e;return(0,o.jsx)(h,{...n,className:(0,r.Z)(x,u.details,n.className)})}},8609:(e,n,s)=>{s.d(n,{A:()=>c});var t=s(4673);const r=(0,s(4297).Z)("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]);var l=s(5893);const c=e=>{let{records:n,open:s}=e;return(0,l.jsx)(t.Z,{open:s,summary:(0,l.jsxs)("summary",{children:[(0,l.jsx)(r,{})," History"]}),className:"history",children:(0,l.jsxs)("table",{children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{children:"Version"}),(0,l.jsx)("th",{children:"Changes"})]})}),(0,l.jsx)("tbody",{children:n.map(((e,n)=>(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:(0,l.jsxs)("strong",{children:["v",e.version.replace(/[^0-9.]/g,"")]})}),(0,l.jsx)("td",{children:(0,l.jsx)("div",{className:"changes",children:e.changes.map(((e,n)=>(0,l.jsx)("section",{children:e},`change:${n}`)))})})]},`record:${n}`)))})]})})}},3901:(e,n,s)=>{s.d(n,{X:()=>u});var t=s(3692),r=s(4297);const l=(0,r.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),c=(0,r.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),a=(0,r.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),o=(0,r.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),i=(0,r.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),d=(0,r.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var h=s(5893);const u=e=>{let{level:n,message:s}=e;const r={0:{title:"Deprecated",icon:(0,h.jsx)(l,{})},1:{title:"Experimental",icon:(0,h.jsx)(c,{})},1.1:{title:"Early Development",icon:(0,h.jsx)(a,{})},1.2:{title:"Release Candidate",icon:(0,h.jsx)(o,{})},2:{title:"Stable",icon:(0,h.jsx)(i,{})},3:{title:"Legacy",icon:(0,h.jsx)(d,{})}};return(0,h.jsxs)("section",{className:"stability","data-level":n,children:[(0,h.jsx)(t.Z,{to:"/docs/stability-badges",children:(0,h.jsxs)("header",{children:[(0,h.jsx)("strong",{children:n}),(0,h.jsx)("span",{children:r[n].title}),r[n].icon]})}),s?(0,h.jsx)("p",{children:s}):null]})}},4297:(e,n,s)=>{s.d(n,{Z:()=>l});var t=s(7294),r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const l=(e,n)=>{const s=(0,t.forwardRef)((({color:s="currentColor",size:l=24,strokeWidth:c=2,absoluteStrokeWidth:a,className:o="",children:i,...d},h)=>{return(0,t.createElement)("svg",{ref:h,...r,width:l,height:l,stroke:s,strokeWidth:a?24*Number(c)/Number(l):c,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,o].join(" "),...d},[...n.map((([e,n])=>(0,t.createElement)(e,n))),...Array.isArray(i)?i:[i]]);var u}));return s.displayName=`${e}`,s}},1151:(e,n,s)=>{s.d(n,{Z:()=>a,a:()=>c});var t=s(7294);const r={},l=t.createContext(r);function c(e){const n=t.useContext(l);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),t.createElement(l.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/2bc14e22.3ce1e359.js.LICENSE.txt b/assets/js/2bc14e22.684b748e.js.LICENSE.txt similarity index 76% rename from assets/js/2bc14e22.3ce1e359.js.LICENSE.txt rename to assets/js/2bc14e22.684b748e.js.LICENSE.txt index 4b1ddb7671..3d48b22d31 100644 --- a/assets/js/2bc14e22.3ce1e359.js.LICENSE.txt +++ b/assets/js/2bc14e22.684b748e.js.LICENSE.txt @@ -1,5 +1,5 @@ /** - * @license lucide-react v0.303.0 - ISC + * @license lucide-react v0.306.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. diff --git a/assets/js/3226d26d.e340bb5c.js b/assets/js/3226d26d.e340bb5c.js new file mode 100644 index 0000000000..abc58a0439 --- /dev/null +++ b/assets/js/3226d26d.e340bb5c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4243],{7991:e=>{e.exports=JSON.parse('{"label":"Placeholders","permalink":"/node-mysql2/docs/tags/placeholders","allTagsPath":"/node-mysql2/docs/tags","count":4,"items":[{"id":"examples/queries/prepared-statements/delete","title":"DELETE","description":"execute(sql, values)","permalink":"/node-mysql2/docs/examples/queries/prepared-statements/delete"},{"id":"examples/queries/prepared-statements/insert","title":"INSERT","description":"execute(sql, values)","permalink":"/node-mysql2/docs/examples/queries/prepared-statements/insert"},{"id":"examples/queries/prepared-statements/select","title":"SELECT","description":"execute(sql, values)","permalink":"/node-mysql2/docs/examples/queries/prepared-statements/select"},{"id":"examples/queries/prepared-statements/update","title":"UPDATE","description":"execute(sql, values)","permalink":"/node-mysql2/docs/examples/queries/prepared-statements/update"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/assets/js/3720c009.8c42b22a.js b/assets/js/3720c009.8c42b22a.js new file mode 100644 index 0000000000..93b7ade9e4 --- /dev/null +++ b/assets/js/3720c009.8c42b22a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3751],{9861:(t,e,s)=>{s.r(e),s.d(e,{default:()=>p});s(7294);var a=s(512),r=s(1944),l=s(5281),n=s(5999);const c=()=>(0,n.I)({id:"theme.tags.tagsPageTitle",message:"Tags",description:"The title of the tag list page"});var i=s(3008),g=s(2503);const o={tag:"tag_Nnez"};var u=s(5893);function h(t){let{letterEntry:e}=t;return(0,u.jsxs)("article",{children:[(0,u.jsx)(g.Z,{as:"h2",id:e.letter,children:e.letter}),(0,u.jsx)("ul",{className:"padding--none",children:e.tags.map((t=>(0,u.jsx)("li",{className:o.tag,children:(0,u.jsx)(i.Z,{...t})},t.permalink)))}),(0,u.jsx)("hr",{})]})}function d(t){let{tags:e}=t;const s=function(t){const e={};return Object.values(t).forEach((t=>{const s=function(t){return t[0].toUpperCase()}(t.label);e[s]??=[],e[s].push(t)})),Object.entries(e).sort(((t,e)=>{let[s]=t,[a]=e;return s.localeCompare(a)})).map((t=>{let[e,s]=t;return{letter:e,tags:s.sort(((t,e)=>t.label.localeCompare(e.label)))}}))}(e);return(0,u.jsx)("section",{className:"margin-vert--lg",children:s.map((t=>(0,u.jsx)(h,{letterEntry:t},t.letter)))})}var j=s(197);function m(t){let{title:e}=t;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(r.d,{title:e}),(0,u.jsx)(j.Z,{tag:"doc_tags_list"})]})}function x(t){let{tags:e,title:s}=t;return(0,u.jsx)(r.FG,{className:(0,a.Z)(l.k.page.docsTagsListPage),children:(0,u.jsx)("div",{className:"container margin-vert--lg",children:(0,u.jsx)("div",{className:"row",children:(0,u.jsxs)("main",{className:"col col--8 col--offset-2",children:[(0,u.jsx)(g.Z,{as:"h1",children:s}),(0,u.jsx)(d,{tags:e})]})})})})}function p(t){const e=c();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(m,{...t,title:e}),(0,u.jsx)(x,{...t,title:e})]})}},3008:(t,e,s)=>{s.d(e,{Z:()=>c});s(7294);var a=s(512),r=s(3692);const l={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};var n=s(5893);function c(t){let{permalink:e,label:s,count:c}=t;return(0,n.jsxs)(r.Z,{href:e,className:(0,a.Z)(l.tag,c?l.tagWithCount:l.tagRegular),children:[s,c&&(0,n.jsx)("span",{children:c})]})}}}]); \ No newline at end of file diff --git a/assets/js/3be0564c.69bfa956.js b/assets/js/3be0564c.69bfa956.js deleted file mode 100644 index 600cb81a93..0000000000 --- a/assets/js/3be0564c.69bfa956.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9594],{3034:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>h,frontMatter:()=>l,metadata:()=>i,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),o=n(5162);const l={},u="Binlog Watcher",i={id:"examples/binlog-watcher",title:"Binlog Watcher",description:"",source:"@site/docs/examples/binlog-watcher.mdx",sourceDirName:"examples",slug:"/examples/binlog-watcher",permalink:"/node-mysql2/docs/examples/binlog-watcher",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/binlog-watcher.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Introduction",permalink:"/node-mysql2/docs/examples"},next:{title:"Connect Over Socks",permalink:"/node-mysql2/docs/examples/connect-over-socks"}},c={},d=[];function m(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"binlog-watcher",children:"Binlog Watcher"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst through2 = require('through2');\n\nconst binlogStream = mysql.createBinlogStream({\n serverId: 123, // slave ID, first field in \"show slave hosts\" sql response\n // you can also specify slave host, username, password and port\n masterId: 0,\n filename: 'mysql-bin.000007',\n binlogPos: 120,\n flags: 1, // 1 = \"non-blocking mode\"\n});\n\nbinlogStream.pipe(\n through2.obj((obj, enc, next) => {\n console.log(obj);\n next();\n })\n);\n"})})})})]})}function h(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>j});var r=n(7294),a=n(512),s=n(2466),o=n(6550),l=n(469),u=n(1980),i=n(7392),c=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function h(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function p(e){let{queryString:t=!1,groupId:n}=e;const a=(0,o.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=m(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!h({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[i,d]=p({queryString:n,groupId:a}),[b,f]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,c.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),g=(()=>{const e=i??b;return h({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{g&&u(g)}),[g]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!h({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),f(e)}),[d,f,s]),tabValues:s}}var f=n(2389);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=n(5893);function x(e){let{className:t,block:n,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=u.indexOf(t),a=l[n].value;a!==r&&(i(t),o(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:l.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,a.Z)("tabs__item",g.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function y(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function w(e){const t=b(e);return(0,v.jsxs)("div",{className:(0,a.Z)("tabs-container",g.tabList),children:[(0,v.jsx)(x,{...e,...t}),(0,v.jsx)(y,{...e,...t})]})}function j(e){const t=(0,f.Z)();return(0,v.jsx)(w,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>o});var r=n(7294);const a={},s=r.createContext(a);function o(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/3be0564c.99fbf261.js b/assets/js/3be0564c.99fbf261.js new file mode 100644 index 0000000000..efe61ac715 --- /dev/null +++ b/assets/js/3be0564c.99fbf261.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9594],{3034:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>p,frontMatter:()=>o,metadata:()=>i,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),l=n(5162);const o={},u="Binlog Watcher",i={id:"examples/binlog-watcher",title:"Binlog Watcher",description:"",source:"@site/docs/examples/binlog-watcher.mdx",sourceDirName:"examples",slug:"/examples/binlog-watcher",permalink:"/node-mysql2/docs/examples/binlog-watcher",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/binlog-watcher.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"DELETE",permalink:"/node-mysql2/docs/examples/queries/prepared-statements/delete"},next:{title:"await \u2014 co",permalink:"/node-mysql2/docs/examples/promise-wrapper/co-await"}},c={},d=[];function m(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"binlog-watcher",children:"Binlog Watcher"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(l.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst through2 = require('through2');\n\nconst binlogStream = mysql.createBinlogStream({\n serverId: 123, // slave ID, first field in \"show slave hosts\" sql response\n // you can also specify slave host, username, password and port\n masterId: 0,\n filename: 'mysql-bin.000007',\n binlogPos: 120,\n flags: 1, // 1 = \"non-blocking mode\"\n});\n\nbinlogStream.pipe(\n through2.obj((obj, enc, next) => {\n console.log(obj);\n next();\n })\n);\n"})})})})]})}function p(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function l(e){let{children:t,hidden:n,className:l}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,l),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>j});var r=n(7294),a=n(512),s=n(2466),l=n(6550),o=n(469),u=n(1980),i=n(7392),c=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function p(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function h(e){let{queryString:t=!1,groupId:n}=e;const a=(0,l.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=m(e),[l,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!p({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[i,d]=h({queryString:n,groupId:a}),[b,f]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,c.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),g=(()=>{const e=i??b;return p({value:e,tabValues:s})?e:null})();(0,o.Z)((()=>{g&&u(g)}),[g]);return{selectedValue:l,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),f(e)}),[d,f,s]),tabValues:s}}var f=n(2389);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=n(5893);function x(e){let{className:t,block:n,selectedValue:r,selectValue:l,tabValues:o}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=u.indexOf(t),a=o[n].value;a!==r&&(i(t),l(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,a.Z)("tabs__item",g.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function w(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function y(e){const t=b(e);return(0,v.jsxs)("div",{className:(0,a.Z)("tabs-container",g.tabList),children:[(0,v.jsx)(x,{...e,...t}),(0,v.jsx)(w,{...e,...t})]})}function j(e){const t=(0,f.Z)();return(0,v.jsx)(y,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>o,a:()=>l});var r=n(7294);const a={},s=r.createContext(a);function l(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:l(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/3bea1af6.2654cd83.js b/assets/js/3bea1af6.2654cd83.js deleted file mode 100644 index 0d266ce428..0000000000 --- a/assets/js/3bea1af6.2654cd83.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9264],{3006:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>i,contentTitle:()=>u,default:()=>p,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),o=n(5162);const l={},u="Execute",c={id:"examples/execute",title:"Execute",description:"",source:"@site/docs/examples/execute.mdx",sourceDirName:"examples",slug:"/examples/execute",permalink:"/node-mysql2/docs/examples/execute",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/execute.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Connect Over Socks",permalink:"/node-mysql2/docs/examples/connect-over-socks"},next:{title:"MySQL Proxy",permalink:"/node-mysql2/docs/examples/mysqlproxy"}},i={},d=[];function m(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"execute",children:"Execute"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\n// get the client\nconst mysql = require('mysql2');\n\n// create the connection to database\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\nconnection.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [1, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n connection.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [3, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n connection.unprepare('select ?+1 as qqq, ? as rrr, ? as yyy');\n connection.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [3, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n }\n );\n }\n );\n }\n);\n"})})})})]})}function p(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(7294),a=n(512),s=n(2466),o=n(6550),l=n(469),u=n(1980),c=n(7392),i=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,c.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function p(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const a=(0,o.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function h(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=m(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!p({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[c,d]=f({queryString:n,groupId:a}),[h,b]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,i.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),x=(()=>{const e=c??h;return p({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{x&&u(x)}),[x]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=n(2389);const x={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=n(5893);function y(e){let{className:t,block:n,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const t=e.currentTarget,n=u.indexOf(t),a=l[n].value;a!==r&&(c(t),o(a))},d=e=>{let t=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:l.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",x.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function g(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function q(e){const t=h(e);return(0,v.jsxs)("div",{className:(0,a.Z)("tabs-container",x.tabList),children:[(0,v.jsx)(y,{...e,...t}),(0,v.jsx)(g,{...e,...t})]})}function w(e){const t=(0,b.Z)();return(0,v.jsx)(q,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>o});var r=n(7294);const a={},s=r.createContext(a);function o(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/43758d02.6ddfbc88.js b/assets/js/43758d02.6ddfbc88.js deleted file mode 100644 index 0b8a70a91e..0000000000 --- a/assets/js/43758d02.6ddfbc88.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[764],{3230:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>i,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),o=n(5162);const l={},u="Pool Test",i={id:"examples/pool-test",title:"Pool Test",description:"",source:"@site/docs/examples/pool-test.mdx",sourceDirName:"examples",slug:"/examples/pool-test",permalink:"/node-mysql2/docs/examples/pool-test",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/pool-test.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Pass SHA",permalink:"/node-mysql2/docs/examples/pass-sha"},next:{title:"Prepared Statements",permalink:"/node-mysql2/docs/examples/prepare"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"pool-test",children:"Pool Test"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst pool = require('mysql2').createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n password: 'root',\n});\n\nsetInterval(() => {\n for (let i = 0; i < 5; ++i) {\n pool.query((err, rows, fields) => {\n console.log(rows, fields);\n // Connection is automatically released once query resolves\n });\n }\n}, 1000);\n\nsetInterval(() => {\n for (let i = 0; i < 5; ++i) {\n pool.getConnection((err, db) => {\n db.query('select sleep(0.5) as qqq', (err, rows, fields) => {\n console.log(rows, fields);\n db.release();\n });\n });\n }\n}, 1000);\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>q});var r=n(7294),a=n(512),s=n(2466),o=n(6550),l=n(469),u=n(1980),i=n(7392),c=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const a=(0,o.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[i,d]=f({queryString:n,groupId:a}),[b,h]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,c.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),v=(()=>{const e=i??b;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,s]),tabValues:s}}var h=n(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=n(5893);function g(e){let{className:t,block:n,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=u.indexOf(t),a=l[n].value;a!==r&&(i(t),o(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:l.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function y(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function w(e){const t=b(e);return(0,x.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(g,{...e,...t}),(0,x.jsx)(y,{...e,...t})]})}function q(e){const t=(0,h.Z)();return(0,x.jsx)(w,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>o});var r=n(7294);const a={},s=r.createContext(a);function o(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/4e547710.9c523c17.js b/assets/js/4e547710.9c523c17.js deleted file mode 100644 index ae4ad0339a..0000000000 --- a/assets/js/4e547710.9c523c17.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1449],{9393:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>u,contentTitle:()=>c,default:()=>m,frontMatter:()=>l,metadata:()=>i,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},c="Promise CO Await",i={id:"examples/promise-co-await",title:"Promise CO Await",description:"",source:"@site/docs/examples/promise-co-await.mdx",sourceDirName:"examples",slug:"/examples/promise-co-await",permalink:"/node-mysql2/docs/examples/promise-co-await",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/promise-co-await.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Prepared Statements",permalink:"/node-mysql2/docs/examples/prepare"},next:{title:"Queries",permalink:"/node-mysql2/docs/category/queries"}},u={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"promise-co-await",children:"Promise CO Await"}),"\n",(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(o.Z,{value:"await.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2/promise');\n\nasync function test() {\n const c = await mysql.createConnection({\n port: 3306,\n user: 'testuser',\n namedPlaceholders: true,\n password: 'testpassword',\n });\n console.log('connected!');\n const [rows, fields] = await c.query('show databases');\n console.log(rows);\n\n try {\n const [rows, fields] = await c.query('some invalid sql here');\n } catch (e) {\n console.log('caught exception!', e);\n }\n\n console.log(await c.execute('select sleep(0.5)'));\n console.log('after first sleep');\n console.log(await c.execute('select sleep(0.5)'));\n console.log('after second sleep');\n let start = +new Date();\n console.log(\n await Promise.all([\n c.execute('select sleep(2.5)'),\n c.execute('select sleep(2.5)'),\n ])\n );\n console.log(\n 'after 2+3 parallel sleep which is in fact not parallel because commands are queued per connection'\n );\n let end = +new Date();\n console.log(end - start);\n await c.end();\n\n const p = mysql.createPool({\n port: 3306,\n user: 'testuser',\n namedPlaceholders: true,\n password: 'testpassword',\n });\n console.log(await p.execute('select sleep(0.5)'));\n console.log('after first pool sleep');\n start = +new Date();\n console.log(\n await Promise.all([\n p.execute('select sleep(2.5)'),\n p.execute('select sleep(2.5)'),\n ])\n );\n console.log('after 2+3 parallel pool sleep');\n end = +new Date();\n console.log(end - start);\n await p.end();\n}\n\ntest()\n .then(() => {\n console.log('done');\n })\n .catch((err) => {\n console.log('error!', err);\n throw err;\n });\n"})})}),(0,r.jsx)(o.Z,{value:"co.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2/promise');\nconst co = require('co');\n\nco(function* () {\n const c = yield mysql.createConnection({\n port: 3306,\n user: 'root',\n namedPlaceholders: true,\n });\n const rows = yield c.query('show databases');\n console.log(rows);\n console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 }));\n yield c.end();\n})\n .then(function () {\n console.log('done');\n })\n .catch(function (err) {\n console.log(err);\n throw err;\n });\n"})})}),(0,r.jsx)(o.Z,{value:".babelrc",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{\n "plugins": ["transform-async-to-generator"]\n}\n'})})}),(0,r.jsx)(o.Z,{value:"package.json",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{\n "name": "promise-co-await",\n "version": "1.0.0",\n "description": "",\n "main": "await.js",\n "scripts": {\n "test": "echo \\"Error: no test specified\\" && exit 1"\n },\n "author": "",\n "license": "ISC",\n "dependencies": {\n "babel-cli": "^6.9.0"\n }\n}\n'})})})]})]})}function m(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>j});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),c=t(1980),i=t(7392),u=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,i.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function h(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,c._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function f(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=p(e),[o,c]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[i,d]=h({queryString:t,groupId:a}),[f,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,u.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),g=(()=>{const e=i??f;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{g&&c(g)}),[g]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);c(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var w=t(5893);function x(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const c=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),u=e=>{const n=e.currentTarget,t=c.indexOf(n),a=l[t].value;a!==r&&(i(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const t=c.indexOf(e.currentTarget)+1;n=c[t]??c[0];break}case"ArrowLeft":{const t=c.indexOf(e.currentTarget)-1;n=c[t]??c[c.length-1];break}}n?.focus()};return(0,w.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,w.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>c.push(e),onKeyDown:d,onClick:u,...s,className:(0,a.Z)("tabs__item",g.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,w.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function y(e){const n=f(e);return(0,w.jsxs)("div",{className:(0,a.Z)("tabs-container",g.tabList),children:[(0,w.jsx)(x,{...e,...n}),(0,w.jsx)(v,{...e,...n})]})}function j(e){const n=(0,b.Z)();return(0,w.jsx)(y,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/4edc808e.1929d38c.js b/assets/js/4edc808e.1929d38c.js new file mode 100644 index 0000000000..41a64b873a --- /dev/null +++ b/assets/js/4edc808e.1929d38c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4173],{7559:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>i,metadata:()=>u,toc:()=>h});var t=s(5893),o=s(1151),r=s(4866),a=s(5162),l=s(4442);const i={slug:"/",position:1,title:"Quickstart",description:"MySQL client for Node.js with focus on performance"},c="MySQL2",u={id:"index",title:"Quickstart",description:"MySQL client for Node.js with focus on performance",source:"@site/docs/index.mdx",sourceDirName:".",slug:"/",permalink:"/node-mysql2/docs/",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/index.mdx",tags:[],version:"current",frontMatter:{slug:"/",position:1,title:"Quickstart",description:"MySQL client for Node.js with focus on performance"},sidebar:"docs",next:{title:"History and Why MySQL2",permalink:"/node-mysql2/docs/history-and-why-mysq2"}},d={},h=[{value:"Installation",id:"installation",level:2},{value:"First Query",id:"first-query",level:3},{value:"Using Prepared Statements",id:"using-prepared-statements",level:3},{value:"Using Connection Pools",id:"using-connection-pools",level:3},{value:"Using Promise Wrapper",id:"using-promise-wrapper",level:3},{value:"Array Results",id:"array-results",level:3},{value:"Connection Level",id:"connection-level",level:4},{value:"Query Level",id:"query-level",level:4}];function m(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",hr:"hr",img:"img",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,o.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.V,{title:"MySQL2 | Quickstart"}),"\n",(0,t.jsx)(n.h1,{id:"mysql2",children:"MySQL2"}),"\n","\n",(0,t.jsx)(n.p,{children:"MySQL client for Node.js with focus on performance. Supports prepared statements, non-utf8 encodings, binary log protocol, compression, ssl much more."}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://npmjs.org/package/mysql2",children:(0,t.jsx)(n.img,{src:"https://img.shields.io/npm/v/mysql2.svg",alt:"NPM Version"})}),"\n",(0,t.jsx)(n.a,{href:"https://npmjs.org/package/mysql2",children:(0,t.jsx)(n.img,{src:"https://img.shields.io/npm/dm/mysql2.svg",alt:"NPM Downloads"})}),"\n",(0,t.jsx)(n.a,{href:"https://nodejs.org/download/",children:(0,t.jsx)(n.img,{src:"https://img.shields.io/node/v/mysql2.svg",alt:"Node.js Version"})}),"\n",(0,t.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/blob/master/License",children:(0,t.jsx)(n.img,{src:"https://img.shields.io/npm/l/mysql2.svg?maxAge=2592000",alt:"License"})})]}),"\n",(0,t.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,t.jsx)(n.p,{children:"MySQL2 is free from native bindings and can be installed on Linux, Mac OS or Windows without any issues."}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(a.Z,{value:"JavaScript",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm install --save mysql2\n"})})}),(0,t.jsxs)(a.Z,{value:"TypeScript",children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm install --save mysql2\nnpm install --save-dev @types/node\n"})}),(0,t.jsxs)(n.p,{children:["For TypeScript documentation and examples, see ",(0,t.jsx)(n.a,{href:"/docs/documentation/typescript-examples",children:"here"}),"."]})]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"first-query",children:"First Query"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["To explore more queries examples, please visit the example sections ",(0,t.jsx)(n.a,{href:"/docs/examples/queries/simple-queries",children:(0,t.jsx)(n.strong,{children:"Simple Queries"})})," and ",(0,t.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements",children:(0,t.jsx)(n.strong,{children:"Prepared Statements"})}),"."]}),"\n"]}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(a.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"// Get the client\nimport mysql from 'mysql2/promise';\n\n// Create the connection to database\nconst connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// A simple SELECT query\ntry {\n const [results, fields] = await connection.query(\n 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45'\n );\n\n console.log(results); // results contains rows returned by server\n console.log(fields); // fields contains extra meta data about results, if available\n} catch (err) {\n console.log(err);\n}\n\n// Using placeholders\ntry {\n const [results] = await connection.query(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Page', 45]\n );\n\n console.log(results);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"// Get the client\nconst mysql = require('mysql2');\n\n// Create the connection to database\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// A simple SELECT query\nconnection.query(\n 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45',\n function (err, results, fields) {\n console.log(results); // results contains rows returned by server\n console.log(fields); // fields contains extra meta data about results, if available\n }\n);\n\n// Using placeholders\nconnection.query(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Page', 45],\n function (err, results) {\n console.log(results);\n }\n);\n"})})})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"using-prepared-statements",children:"Using Prepared Statements"}),"\n",(0,t.jsx)(n.p,{children:"With MySQL2 you also get the prepared statements. With prepared statements MySQL doesn't have to prepare plan for same query every time, this results in better performance. If you don't know why they are important, please check these discussions:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"https://stackoverflow.com/questions/8263371/how-can-prepared-statements-protect-from-sql-injection-attacks",children:"How prepared statements can protect from SQL Injection attacks"})}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["MySQL2 provides ",(0,t.jsx)(n.code,{children:"execute"})," helper which will prepare and query the statement. You can also manually prepare / unprepare statement with ",(0,t.jsx)(n.code,{children:"prepare"})," / ",(0,t.jsx)(n.code,{children:"unprepare"})," methods."]}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["To explore more Prepared Statements and Placeholders examples, please visit the example section ",(0,t.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements",children:(0,t.jsx)(n.strong,{children:"Prepared Statements"})}),"."]}),"\n"]}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(a.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // create the connection to database\n const connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n });\n\n // execute will internally call prepare and query\n const [results, fields] = await connection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Rick C-137', 53]\n );\n\n console.log(results); // results contains rows returned by server\n console.log(fields); // fields contains extra meta data about results, if available\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\n// create the connection to database\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// execute will internally call prepare and query\nconnection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Rick C-137', 53],\n function (err, results, fields) {\n console.log(results); // results contains rows returned by server\n console.log(fields); // fields contains extra meta data about results, if available\n }\n);\n"})})})]}),"\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsx)(n.p,{children:"If you execute same statement again, it will be picked from a LRU cache which will save query preparation time and give better performance."})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"using-connection-pools",children:"Using Connection Pools"}),"\n",(0,t.jsx)(n.p,{children:"Connection pools help reduce the time spent connecting to the MySQL server by reusing a previous connection, leaving them open instead of closing when you are done with them."}),"\n",(0,t.jsx)(n.p,{children:"This improves the latency of queries as you avoid all of the overhead that comes with establishing a new connection."}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["To explore more Connection Pools examples, please visit the example section ",(0,t.jsx)(n.a,{href:"/docs/examples/connections/create-pool",children:(0,t.jsx)(n.strong,{children:"createPool"})}),"."]}),"\n"]}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(a.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\n// Create the connection pool. The pool-specific settings are the defaults\nconst pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n waitForConnections: true,\n connectionLimit: 10,\n maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit`\n idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000\n queueLimit: 0,\n enableKeepAlive: true,\n keepAliveInitialDelay: 0,\n});\n"})})}),(0,t.jsx)(a.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\n// Create the connection pool. The pool-specific settings are the defaults\nconst pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n waitForConnections: true,\n connectionLimit: 10,\n maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit`\n idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000\n queueLimit: 0,\n enableKeepAlive: true,\n keepAliveInitialDelay: 0,\n});\n"})})})]}),"\n",(0,t.jsx)(n.admonition,{type:"note",children:(0,t.jsx)(n.p,{children:"The pool does not create all connections upfront but creates them on demand until the connection limit is reached."})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsxs)(n.p,{children:["You can use the pool in the same way as connections (using ",(0,t.jsx)(n.code,{children:"pool.query()"})," and ",(0,t.jsx)(n.code,{children:"pool.execute()"}),"):"]}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(a.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"try {\n // For pool initialization, see above\n const [rows, fields] = await pool.query('SELECT `field` FROM `table`');\n // Connection is automatically released when query resolves\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"// For pool initialization, see above\npool.query('SELECT `field` FROM `table`', function (err, rows, fields) {\n // Connection is automatically released when query resolves\n});\n"})})})]}),"\n",(0,t.jsx)(n.p,{children:"Alternatively, there is also the possibility of manually acquiring a connection from the pool and returning it later:"}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(a.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"// For pool initialization, see above\nconst conn = await pool.getConnection();\n\n// Do something with the connection\nawait conn.query(/* ... */);\n\n// Don't forget to release the connection when finished!\npool.releaseConnection(conn);\n"})})}),(0,t.jsx)(a.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"// For pool initialization, see above\npool.getConnection(function (err, conn) {\n // Do something with the connection\n conn.query(/* ... */);\n\n // Don't forget to release the connection when finished!\n pool.releaseConnection(conn);\n});\n"})})})]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Additionally, directly release the connection using the ",(0,t.jsx)(n.code,{children:"connection"})," object:"]}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"conn.release();\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"using-promise-wrapper",children:"Using Promise Wrapper"}),"\n",(0,t.jsx)(n.p,{children:"MySQL2 also support Promise API. Which works very well with ES7 async await."}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nasync function main() {\n // create the connection\n const connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n });\n\n // query database\n const [rows, fields] = await connection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Morty', 14]\n );\n}\n"})}),"\n",(0,t.jsxs)(n.p,{children:["MySQL2 use default ",(0,t.jsx)(n.code,{children:"Promise"})," object available in scope. But you can choose which ",(0,t.jsx)(n.code,{children:"Promise"})," implementation you want to use."]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"// get the client\nimport mysql from 'mysql2/promise';\n\n// get the promise implementation, we will use bluebird\nimport bluebird from 'bluebird';\n\n// create the connection, specify bluebird as Promise\nconst connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n Promise: bluebird,\n});\n\n// query database\nconst [rows, fields] = await connection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Morty', 14]\n);\n"})}),"\n",(0,t.jsxs)(n.p,{children:["MySQL2 also exposes a ",(0,t.jsx)(n.code,{children:".promise()"})," function on Pools, so you can create a promise/non-promise connections from the same pool."]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2';\n\nasync function main() {\n // create the pool\n const pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n });\n\n // now get a Promise wrapped instance of that pool\n const promisePool = pool.promise();\n\n // query database using promises\n const [rows, fields] = await promisePool.query('SELECT 1');\n}\n"})}),"\n",(0,t.jsxs)(n.p,{children:["MySQL2 exposes a ",(0,t.jsx)(n.code,{children:".promise()"}),' function on Connections, to "upgrade" an existing non-promise connection to use promise.']}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",metastring:"{11}",children:"const mysql = require('mysql2');\n\n// create the connection\nconst conn = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\nconn\n .promise()\n .query('SELECT 1')\n .then(([rows, fields]) => {\n console.log(rows);\n })\n .catch(console.log)\n .then(() => conn.end());\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"array-results",children:"Array Results"}),"\n",(0,t.jsxs)(n.p,{children:["If you have two columns with the same name, you might want to get results as an array rather than an object to prevent them from clashing. This is a deviation from the ",(0,t.jsx)(n.a,{href:"https://github.com/mysqljs/mysql",children:"Node MySQL"})," library."]}),"\n",(0,t.jsxs)(n.p,{children:["For example: ",(0,t.jsx)(n.code,{children:"SELECT 1 AS `foo`, 2 AS `foo`"}),"."]}),"\n",(0,t.jsx)(n.p,{children:"You can enable this setting at either the connection level (applies to all queries), or at the query level (applies only to that specific query)."}),"\n",(0,t.jsx)(n.h4,{id:"connection-level",children:"Connection Level"}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(a.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",metastring:"{5}",children:"const conn = await mysql.createConnection({\n host: 'localhost',\n database: 'test',\n user: 'root',\n rowsAsArray: true,\n});\n"})})}),(0,t.jsx)(a.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",metastring:"{5}",children:"const conn = mysql.createConnection({\n host: 'localhost',\n database: 'test',\n user: 'root',\n rowsAsArray: true,\n});\n"})})})]}),"\n",(0,t.jsx)(n.h4,{id:"query-level",children:"Query Level"}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(a.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",metastring:"{4}",children:"try {\n const [results, fields] = await conn.query({\n sql: 'SELECT 1 AS `foo`, 2 AS `foo`',\n rowsAsArray: true,\n });\n\n console.log(results); // in this query, results will be an array of arrays rather than an array of objects\n console.log(fields); // fields are unchanged\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",metastring:"{4}",children:"conn.query(\n {\n sql: 'SELECT 1 AS `foo`, 2 AS `foo`',\n rowsAsArray: true,\n },\n function (err, results, fields) {\n console.log(results); // in this query, results will be an array of arrays rather than an array of objects\n console.log(fields); // fields are unchanged\n }\n);\n"})})})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.admonition,{title:"Getting Help",type:"tip",children:(0,t.jsxs)(n.p,{children:["Need help? Ask your question on ",(0,t.jsx)(n.a,{href:"https://stackoverflow.com/questions/tagged/mysql2",children:"Stack Overflow"})," or ",(0,t.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/discussions",children:"GitHub"}),".\nIf you've encountered an issue, please ",(0,t.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/issues",children:"file it on GitHub"}),"."]})})]})}function p(e={}){const{wrapper:n}={...(0,o.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},5162:(e,n,s)=>{s.d(n,{Z:()=>a});s(7294);var t=s(512);const o={tabItem:"tabItem_Ymn6"};var r=s(5893);function a(e){let{children:n,hidden:s,className:a}=e;return(0,r.jsx)("div",{role:"tabpanel",className:(0,t.Z)(o.tabItem,a),hidden:s,children:n})}},4866:(e,n,s)=>{s.d(n,{Z:()=>q});var t=s(7294),o=s(512),r=s(2466),a=s(6550),l=s(469),i=s(1980),c=s(7392),u=s(12);function d(e){return t.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,t.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:s}=e;return(0,t.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:s,attributes:t,default:o}}=e;return{value:n,label:s,attributes:t,default:o}}))}(s);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,s])}function m(e){let{value:n,tabValues:s}=e;return s.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:s}=e;const o=(0,a.k6)(),r=function(e){let{queryString:n=!1,groupId:s}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!s)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:n,groupId:s});return[(0,i._X)(r),(0,t.useCallback)((e=>{if(!r)return;const n=new URLSearchParams(o.location.search);n.set(r,e),o.replace({...o.location,search:n.toString()})}),[r,o])]}function x(e){const{defaultValue:n,queryString:s=!1,groupId:o}=e,r=h(e),[a,i]=(0,t.useState)((()=>function(e){let{defaultValue:n,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:s}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const t=s.find((e=>e.default))??s[0];if(!t)throw new Error("Unexpected error: 0 tabValues");return t.value}({defaultValue:n,tabValues:r}))),[c,d]=p({queryString:s,groupId:o}),[x,y]=function(e){let{groupId:n}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(n),[o,r]=(0,u.Nk)(s);return[o,(0,t.useCallback)((e=>{s&&r.set(e)}),[s,r])]}({groupId:o}),f=(()=>{const e=c??x;return m({value:e,tabValues:r})?e:null})();(0,l.Z)((()=>{f&&i(f)}),[f]);return{selectedValue:a,selectValue:(0,t.useCallback)((e=>{if(!m({value:e,tabValues:r}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),y(e)}),[d,y,r]),tabValues:r}}var y=s(2389);const f={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var j=s(5893);function g(e){let{className:n,block:s,selectedValue:t,selectValue:a,tabValues:l}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,r.o5)(),u=e=>{const n=e.currentTarget,s=i.indexOf(n),o=l[s].value;o!==t&&(c(n),a(o))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const s=i.indexOf(e.currentTarget)+1;n=i[s]??i[0];break}case"ArrowLeft":{const s=i.indexOf(e.currentTarget)-1;n=i[s]??i[i.length-1];break}}n?.focus()};return(0,j.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,o.Z)("tabs",{"tabs--block":s},n),children:l.map((e=>{let{value:n,label:s,attributes:r}=e;return(0,j.jsx)("li",{role:"tab",tabIndex:t===n?0:-1,"aria-selected":t===n,ref:e=>i.push(e),onKeyDown:d,onClick:u,...r,className:(0,o.Z)("tabs__item",f.tabItem,r?.className,{"tabs__item--active":t===n}),children:s??n},n)}))})}function b(e){let{lazy:n,children:s,selectedValue:o}=e;const r=(Array.isArray(s)?s:[s]).filter(Boolean);if(n){const e=r.find((e=>e.props.value===o));return e?(0,t.cloneElement)(e,{className:"margin-top--md"}):null}return(0,j.jsx)("div",{className:"margin-top--md",children:r.map(((e,n)=>(0,t.cloneElement)(e,{key:n,hidden:e.props.value!==o})))})}function v(e){const n=x(e);return(0,j.jsxs)("div",{className:(0,o.Z)("tabs-container",f.tabList),children:[(0,j.jsx)(g,{...e,...n}),(0,j.jsx)(b,{...e,...n})]})}function q(e){const n=(0,y.Z)();return(0,j.jsx)(v,{...e,children:d(e.children)},String(n))}},4442:(e,n,s)=>{s.d(n,{V:()=>r});var t=s(5742),o=s(5893);const r=e=>{let{title:n}=e;return(0,o.jsx)(t.Z,{children:(0,o.jsx)("title",{children:n})})}},1151:(e,n,s)=>{s.d(n,{Z:()=>l,a:()=>a});var t=s(7294);const o={},r=t.createContext(o);function a(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/4edc808e.4fde5883.js b/assets/js/4edc808e.4fde5883.js deleted file mode 100644 index ec12d829ca..0000000000 --- a/assets/js/4edc808e.4fde5883.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4173],{7559:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>i,metadata:()=>u,toc:()=>h});var s=t(5893),o=t(1151),r=t(4866),a=t(5162),l=t(4442);const i={slug:"/",position:1,title:"Quickstart",description:"MySQL client for Node.js with focus on performance"},c="MySQL2",u={id:"index",title:"Quickstart",description:"MySQL client for Node.js with focus on performance",source:"@site/docs/index.mdx",sourceDirName:".",slug:"/",permalink:"/node-mysql2/docs/",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/index.mdx",tags:[],version:"current",frontMatter:{slug:"/",position:1,title:"Quickstart",description:"MySQL client for Node.js with focus on performance"},sidebar:"docs",next:{title:"History and Why MySQL2",permalink:"/node-mysql2/docs/history-and-why-mysq2"}},d={},h=[{value:"Installation",id:"installation",level:2},{value:"First Query",id:"first-query",level:3},{value:"Using Prepared Statements",id:"using-prepared-statements",level:3},{value:"Using Connection Pools",id:"using-connection-pools",level:3},{value:"Using Promise Wrapper",id:"using-promise-wrapper",level:3},{value:"Array Results",id:"array-results",level:3},{value:"Connection Level",id:"connection-level",level:4},{value:"Query Level",id:"query-level",level:4}];function m(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",hr:"hr",img:"img",li:"li",p:"p",pre:"pre",ul:"ul",...(0,o.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.V,{title:"MySQL2 | Quickstart"}),"\n",(0,s.jsx)(n.h1,{id:"mysql2",children:"MySQL2"}),"\n","\n",(0,s.jsx)(n.p,{children:"MySQL client for Node.js with focus on performance. Supports prepared statements, non-utf8 encodings, binary log protocol, compression, ssl much more."}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"https://npmjs.org/package/mysql2",children:(0,s.jsx)(n.img,{src:"https://img.shields.io/npm/v/mysql2.svg",alt:"NPM Version"})}),"\n",(0,s.jsx)(n.a,{href:"https://npmjs.org/package/mysql2",children:(0,s.jsx)(n.img,{src:"https://img.shields.io/npm/dm/mysql2.svg",alt:"NPM Downloads"})}),"\n",(0,s.jsx)(n.a,{href:"https://nodejs.org/download/",children:(0,s.jsx)(n.img,{src:"https://img.shields.io/node/v/mysql2.svg",alt:"Node.js Version"})}),"\n",(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/blob/master/License",children:(0,s.jsx)(n.img,{src:"https://img.shields.io/npm/l/mysql2.svg?maxAge=2592000",alt:"License"})})]}),"\n",(0,s.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,s.jsx)(n.p,{children:"MySQL2 is free from native bindings and can be installed on Linux, Mac OS or Windows without any issues."}),"\n",(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(a.Z,{value:"JavaScript",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"npm install --save mysql2\n"})})}),(0,s.jsxs)(a.Z,{value:"TypeScript",children:[(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"npm install --save mysql2\nnpm install --save-dev @types/node\n"})}),(0,s.jsxs)(n.p,{children:["For TypeScript documentation and examples, see ",(0,s.jsx)(n.a,{href:"/docs/documentation/typescript-examples",children:"here"}),"."]})]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"first-query",children:"First Query"}),"\n",(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(a.Z,{value:"Promise",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"// Get the client\nimport mysql from 'mysql2/promise';\n\n// Create the connection to database\nconst connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// A simple SELECT query\ntry {\n const [results, fields] = await connection.query(\n 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45'\n );\n\n console.log(results); // results contains rows returned by server\n console.log(fields); // fields contains extra meta data about results, if available\n} catch (err) {\n console.log(err);\n}\n\n// Using placeholders\ntry {\n const [results] = await connection.query(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Page', 45]\n );\n\n console.log(results);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"Callback",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"// Get the client\nconst mysql = require('mysql2');\n\n// Create the connection to database\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// A simple SELECT query\nconnection.query(\n 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45',\n function (err, results, fields) {\n console.log(results); // results contains rows returned by server\n console.log(fields); // fields contains extra meta data about results, if available\n }\n);\n\n// Using placeholders\nconnection.query(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Page', 45],\n function (err, results) {\n console.log(results);\n }\n);\n"})})})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"using-prepared-statements",children:"Using Prepared Statements"}),"\n",(0,s.jsx)(n.p,{children:"With MySQL2 you also get the prepared statements. With prepared statements MySQL doesn't have to prepare plan for same query every time, this results in better performance. If you don't know why they are important, please check these discussions:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://stackoverflow.com/questions/8263371/how-can-prepared-statements-protect-from-sql-injection-attacks",children:"How prepared statements can protect from SQL Injection attacks"})}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["MySQL2 provides ",(0,s.jsx)(n.code,{children:"execute"})," helper which will prepare and query the statement. You can also manually prepare / unprepare statement with ",(0,s.jsx)(n.code,{children:"prepare"})," / ",(0,s.jsx)(n.code,{children:"unprepare"})," methods."]}),"\n",(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(a.Z,{value:"Promise",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // create the connection to database\n const connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n });\n\n // execute will internally call prepare and query\n const [results, fields] = await connection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Rick C-137', 53]\n );\n\n console.log(results); // results contains rows returned by server\n console.log(fields); // fields contains extra meta data about results, if available\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"Callback",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\n// create the connection to database\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// execute will internally call prepare and query\nconnection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Rick C-137', 53],\n function (err, results, fields) {\n console.log(results); // results contains rows returned by server\n console.log(fields); // fields contains extra meta data about results, if available\n }\n);\n"})})})]}),"\n",(0,s.jsx)(n.admonition,{type:"tip",children:(0,s.jsx)(n.p,{children:"If you execute same statement again, it will be picked from a LRU cache which will save query preparation time and give better performance."})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"using-connection-pools",children:"Using Connection Pools"}),"\n",(0,s.jsx)(n.p,{children:"Connection pools help reduce the time spent connecting to the MySQL server by reusing a previous connection, leaving them open instead of closing when you are done with them."}),"\n",(0,s.jsx)(n.p,{children:"This improves the latency of queries as you avoid all of the overhead that comes with establishing a new connection."}),"\n",(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(a.Z,{value:"Promise",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\n// Create the connection pool. The pool-specific settings are the defaults\nconst pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n waitForConnections: true,\n connectionLimit: 10,\n maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit`\n idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000\n queueLimit: 0,\n enableKeepAlive: true,\n keepAliveInitialDelay: 0,\n});\n"})})}),(0,s.jsx)(a.Z,{value:"Callback",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\n// Create the connection pool. The pool-specific settings are the defaults\nconst pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n waitForConnections: true,\n connectionLimit: 10,\n maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit`\n idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000\n queueLimit: 0,\n enableKeepAlive: true,\n keepAliveInitialDelay: 0,\n});\n"})})})]}),"\n",(0,s.jsx)(n.admonition,{type:"note",children:(0,s.jsx)(n.p,{children:"The pool does not create all connections upfront but creates them on demand until the connection limit is reached."})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsxs)(n.p,{children:["You can use the pool in the same way as connections (using ",(0,s.jsx)(n.code,{children:"pool.query()"})," and ",(0,s.jsx)(n.code,{children:"pool.execute()"}),"):"]}),"\n",(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(a.Z,{value:"Promise",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n // For pool initialization, see above\n const [rows, fields] = await pool.query('SELECT `field` FROM `table`');\n // Connection is automatically released when query resolves\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"Callback",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"// For pool initialization, see above\npool.query('SELECT `field` FROM `table`', function (err, rows, fields) {\n // Connection is automatically released when query resolves\n});\n"})})})]}),"\n",(0,s.jsx)(n.p,{children:"Alternatively, there is also the possibility of manually acquiring a connection from the pool and returning it later:"}),"\n",(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(a.Z,{value:"Promise",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"// For pool initialization, see above\nconst conn = await pool.getConnection();\n\n// Do something with the connection\nawait conn.query(/* ... */);\n\n// Don't forget to release the connection when finished!\npool.releaseConnection(conn);\n"})})}),(0,s.jsx)(a.Z,{value:"Callback",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"// For pool initialization, see above\npool.getConnection(function (err, conn) {\n // Do something with the connection\n conn.query(/* ... */);\n\n // Don't forget to release the connection when finished!\n pool.releaseConnection(conn);\n});\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Additionally, directly release the connection using the ",(0,s.jsx)(n.code,{children:"connection"})," object:"]}),"\n"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"conn.release();\n"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"using-promise-wrapper",children:"Using Promise Wrapper"}),"\n",(0,s.jsx)(n.p,{children:"MySQL2 also support Promise API. Which works very well with ES7 async await."}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nasync function main() {\n // create the connection\n const connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n });\n\n // query database\n const [rows, fields] = await connection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Morty', 14]\n );\n}\n"})}),"\n",(0,s.jsxs)(n.p,{children:["MySQL2 use default ",(0,s.jsx)(n.code,{children:"Promise"})," object available in scope. But you can choose which ",(0,s.jsx)(n.code,{children:"Promise"})," implementation you want to use."]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"// get the client\nimport mysql from 'mysql2/promise';\n\n// get the promise implementation, we will use bluebird\nimport bluebird from 'bluebird';\n\n// create the connection, specify bluebird as Promise\nconst connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n Promise: bluebird,\n});\n\n// query database\nconst [rows, fields] = await connection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Morty', 14]\n);\n"})}),"\n",(0,s.jsxs)(n.p,{children:["MySQL2 also exposes a ",(0,s.jsx)(n.code,{children:".promise()"})," function on Pools, so you can create a promise/non-promise connections from the same pool."]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2';\n\nasync function main() {\n // create the pool\n const pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n });\n\n // now get a Promise wrapped instance of that pool\n const promisePool = pool.promise();\n\n // query database using promises\n const [rows, fields] = await promisePool.query('SELECT 1');\n}\n"})}),"\n",(0,s.jsxs)(n.p,{children:["MySQL2 exposes a ",(0,s.jsx)(n.code,{children:".promise()"}),' function on Connections, to "upgrade" an existing non-promise connection to use promise.']}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",metastring:"{11}",children:"const mysql = require('mysql2');\n\n// create the connection\nconst conn = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\nconn\n .promise()\n .query('SELECT 1')\n .then(([rows, fields]) => {\n console.log(rows);\n })\n .catch(console.log)\n .then(() => conn.end());\n"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"array-results",children:"Array Results"}),"\n",(0,s.jsxs)(n.p,{children:["If you have two columns with the same name, you might want to get results as an array rather than an object to prevent them from clashing. This is a deviation from the ",(0,s.jsx)(n.a,{href:"https://github.com/mysqljs/mysql",children:"Node MySQL"})," library."]}),"\n",(0,s.jsxs)(n.p,{children:["For example: ",(0,s.jsx)(n.code,{children:"SELECT 1 AS `foo`, 2 AS `foo`"}),"."]}),"\n",(0,s.jsx)(n.p,{children:"You can enable this setting at either the connection level (applies to all queries), or at the query level (applies only to that specific query)."}),"\n",(0,s.jsx)(n.h4,{id:"connection-level",children:"Connection Level"}),"\n",(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(a.Z,{value:"Promise",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",metastring:"{5}",children:"const conn = await mysql.createConnection({\n host: 'localhost',\n database: 'test',\n user: 'root',\n rowsAsArray: true,\n});\n"})})}),(0,s.jsx)(a.Z,{value:"Callback",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",metastring:"{5}",children:"const conn = mysql.createConnection({\n host: 'localhost',\n database: 'test',\n user: 'root',\n rowsAsArray: true,\n});\n"})})})]}),"\n",(0,s.jsx)(n.h4,{id:"query-level",children:"Query Level"}),"\n",(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(a.Z,{value:"Promise",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",metastring:"{4}",children:"try {\n const [results, fields] = await conn.query({\n sql: 'SELECT 1 AS `foo`, 2 AS `foo`',\n rowsAsArray: true,\n });\n\n console.log(results); // in this query, results will be an array of arrays rather than an array of objects\n console.log(fields); // fields are unchanged\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"Callback",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",metastring:"{4}",children:"conn.query(\n {\n sql: 'SELECT 1 AS `foo`, 2 AS `foo`',\n rowsAsArray: true,\n },\n function (err, results, fields) {\n console.log(results); // in this query, results will be an array of arrays rather than an array of objects\n console.log(fields); // fields are unchanged\n }\n);\n"})})})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.admonition,{title:"Getting Help",type:"tip",children:(0,s.jsxs)(n.p,{children:["Need help? Ask your question on ",(0,s.jsx)(n.a,{href:"https://stackoverflow.com/questions/tagged/mysql2",children:"Stack Overflow"})," or ",(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/discussions",children:"GitHub"}),".\nIf you've encountered an issue, please ",(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/issues",children:"file it on GitHub"}),"."]})})]})}function p(e={}){const{wrapper:n}={...(0,o.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>a});t(7294);var s=t(512);const o={tabItem:"tabItem_Ymn6"};var r=t(5893);function a(e){let{children:n,hidden:t,className:a}=e;return(0,r.jsx)("div",{role:"tabpanel",className:(0,s.Z)(o.tabItem,a),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>q});var s=t(7294),o=t(512),r=t(2466),a=t(6550),l=t(469),i=t(1980),c=t(7392),u=t(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:t}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:s,default:o}}=e;return{value:n,label:t,attributes:s,default:o}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:t}=e;const o=(0,a.k6)(),r=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,i._X)(r),(0,s.useCallback)((e=>{if(!r)return;const n=new URLSearchParams(o.location.search);n.set(r,e),o.replace({...o.location,search:n.toString()})}),[r,o])]}function y(e){const{defaultValue:n,queryString:t=!1,groupId:o}=e,r=h(e),[a,i]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=t.find((e=>e.default))??t[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:r}))),[c,d]=p({queryString:t,groupId:o}),[y,f]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[o,r]=(0,u.Nk)(t);return[o,(0,s.useCallback)((e=>{t&&r.set(e)}),[t,r])]}({groupId:o}),g=(()=>{const e=c??y;return m({value:e,tabValues:r})?e:null})();(0,l.Z)((()=>{g&&i(g)}),[g]);return{selectedValue:a,selectValue:(0,s.useCallback)((e=>{if(!m({value:e,tabValues:r}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),f(e)}),[d,f,r]),tabValues:r}}var f=t(2389);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=t(5893);function j(e){let{className:n,block:t,selectedValue:s,selectValue:a,tabValues:l}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,r.o5)(),u=e=>{const n=e.currentTarget,t=i.indexOf(n),o=l[t].value;o!==s&&(c(n),a(o))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const t=i.indexOf(e.currentTarget)+1;n=i[t]??i[0];break}case"ArrowLeft":{const t=i.indexOf(e.currentTarget)-1;n=i[t]??i[i.length-1];break}}n?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,o.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:r}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>i.push(e),onKeyDown:d,onClick:u,...r,className:(0,o.Z)("tabs__item",g.tabItem,r?.className,{"tabs__item--active":s===n}),children:t??n},n)}))})}function b(e){let{lazy:n,children:t,selectedValue:o}=e;const r=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=r.find((e=>e.props.value===o));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:r.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==o})))})}function v(e){const n=y(e);return(0,x.jsxs)("div",{className:(0,o.Z)("tabs-container",g.tabList),children:[(0,x.jsx)(j,{...e,...n}),(0,x.jsx)(b,{...e,...n})]})}function q(e){const n=(0,f.Z)();return(0,x.jsx)(v,{...e,children:d(e.children)},String(n))}},4442:(e,n,t)=>{t.d(n,{V:()=>r});var s=t(5742),o=t(5893);const r=e=>{let{title:n}=e;return(0,o.jsx)(s.Z,{children:(0,o.jsx)("title",{children:n})})}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>a});var s=t(7294);const o={},r=s.createContext(o);function a(e){const n=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),s.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5020.614bd897.js b/assets/js/5020.614bd897.js new file mode 100644 index 0000000000..b95a55ddd6 --- /dev/null +++ b/assets/js/5020.614bd897.js @@ -0,0 +1 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5020],{9286:(e,t,n)=>{"use strict";n.d(t,{Z:()=>H});var s=n(7294),o=n(2389),c=n(512),a=n(2949),r=n(6668);function l(){const{prism:e}=(0,r.L)(),{colorMode:t}=(0,a.I)(),n=e.theme,s=e.darkTheme||n;return"dark"===t?s:n}var i=n(5281),u=n(7594),d=n.n(u);const m=/title=(?<quote>["'])(?<title>.*?)\1/,p=/\{(?<range>[\d,-]+)\}/,b={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}},f={...b,lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""},vb:{start:"['\u2018\u2019]",end:""},rem:{start:"[Rr][Ee][Mm]\\b",end:""},f90:{start:"!",end:""},ml:{start:"\\(\\*",end:"\\*\\)"},cobol:{start:"\\*>",end:""}},h=Object.keys(b);function g(e,t){const n=e.map((e=>{const{start:n,end:s}=f[e];return`(?:${n}\\s*(${t.flatMap((e=>[e.line,e.block?.start,e.block?.end].filter(Boolean))).join("|")})\\s*${s})`})).join("|");return new RegExp(`^\\s*(?:${n})\\s*$`)}function k(e,t){let n=e.replace(/\n$/,"");const{language:s,magicComments:o,metastring:c}=t;if(c&&p.test(c)){const e=c.match(p).groups.range;if(0===o.length)throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${c}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);const t=o[0].className,s=d()(e).filter((e=>e>0)).map((e=>[e-1,[t]]));return{lineClassNames:Object.fromEntries(s),code:n}}if(void 0===s)return{lineClassNames:{},code:n};const a=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":case"sql":return g(["lua"],t);case"wasm":return g(["wasm"],t);case"vb":case"vbnet":case"vba":case"visual-basic":return g(["vb","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(h,t)}}(s,o),r=n.split("\n"),l=Object.fromEntries(o.map((e=>[e.className,{start:0,range:""}]))),i=Object.fromEntries(o.filter((e=>e.line)).map((e=>{let{className:t,line:n}=e;return[n,t]}))),u=Object.fromEntries(o.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.start,t]}))),m=Object.fromEntries(o.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.end,t]})));for(let d=0;d<r.length;){const e=r[d].match(a);if(!e){d+=1;continue}const t=e.slice(1).find((e=>void 0!==e));i[t]?l[i[t]].range+=`${d},`:u[t]?l[u[t]].start=d:m[t]&&(l[m[t]].range+=`${l[m[t]].start}-${d-1},`),r.splice(d,1)}n=r.join("\n");const b={};return Object.entries(l).forEach((e=>{let[t,{range:n}]=e;d()(n).forEach((e=>{b[e]??=[],b[e].push(t)}))})),{lineClassNames:b,code:n}}const x={codeBlockContainer:"codeBlockContainer_Ckt0"};var j=n(5893);function B(e){let{as:t,...n}=e;const s=function(e){const t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach((e=>{let[s,o]=e;const c=t[s];c&&"string"==typeof o&&(n[c]=o)})),n}(l());return(0,j.jsx)(t,{...n,style:s,className:(0,c.Z)(n.className,x.codeBlockContainer,i.k.common.codeBlock)})}const y={codeBlockContent:"codeBlockContent_biex",codeBlockTitle:"codeBlockTitle_Ktv7",codeBlock:"codeBlock_bY9V",codeBlockStandalone:"codeBlockStandalone_MEMb",codeBlockLines:"codeBlockLines_e6Vv",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_o6Pm",buttonGroup:"buttonGroup__atx"};function v(e){let{children:t,className:n}=e;return(0,j.jsx)(B,{as:"pre",tabIndex:0,className:(0,c.Z)(y.codeBlockStandalone,"thin-scrollbar",n),children:(0,j.jsx)("code",{className:y.codeBlockLines,children:t})})}var C=n(902);const N={attributes:!0,characterData:!0,childList:!0,subtree:!0};function w(e,t){const[n,o]=(0,s.useState)(),c=(0,s.useCallback)((()=>{o(e.current?.closest("[role=tabpanel][hidden]"))}),[e,o]);(0,s.useEffect)((()=>{c()}),[c]),function(e,t,n){void 0===n&&(n=N);const o=(0,C.zX)(t),c=(0,C.Ql)(n);(0,s.useEffect)((()=>{const t=new MutationObserver(o);return e&&t.observe(e,c),()=>t.disconnect()}),[e,o,c])}(n,(e=>{e.forEach((e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),c())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}var E=n(2573);const L={codeLine:"codeLine_lJS_",codeLineNumber:"codeLineNumber_Tfdd",codeLineContent:"codeLineContent_feaV"};function S(e){let{line:t,classNames:n,showLineNumbers:s,getLineProps:o,getTokenProps:a}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");const r=o({line:t,className:(0,c.Z)(n,s&&L.codeLine)}),l=t.map(((e,t)=>(0,j.jsx)("span",{...a({token:e,key:t})},t)));return(0,j.jsxs)("span",{...r,children:[s?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("span",{className:L.codeLineNumber}),(0,j.jsx)("span",{className:L.codeLineContent,children:l})]}):l,(0,j.jsx)("br",{})]})}var _=n(5999);function I(e){return(0,j.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,j.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 A(e){return(0,j.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,j.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}const T={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function Z(e){let{code:t,className:n}=e;const[o,a]=(0,s.useState)(!1),r=(0,s.useRef)(void 0),l=(0,s.useCallback)((()=>{!function(e,t){let{target:n=document.body}=void 0===t?{}:t;if("string"!=typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const s=document.createElement("textarea"),o=document.activeElement;s.value=e,s.setAttribute("readonly",""),s.style.contain="strict",s.style.position="absolute",s.style.left="-9999px",s.style.fontSize="12pt";const c=document.getSelection(),a=c.rangeCount>0&&c.getRangeAt(0);n.append(s),s.select(),s.selectionStart=0,s.selectionEnd=e.length;let r=!1;try{r=document.execCommand("copy")}catch{}s.remove(),a&&(c.removeAllRanges(),c.addRange(a)),o&&o.focus()}(t),a(!0),r.current=window.setTimeout((()=>{a(!1)}),1e3)}),[t]);return(0,s.useEffect)((()=>()=>window.clearTimeout(r.current)),[]),(0,j.jsx)("button",{type:"button","aria-label":o?(0,_.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,_.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,_.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,c.Z)("clean-btn",n,T.copyButton,o&&T.copyButtonCopied),onClick:l,children:(0,j.jsxs)("span",{className:T.copyButtonIcons,"aria-hidden":"true",children:[(0,j.jsx)(I,{className:T.copyButtonIcon}),(0,j.jsx)(A,{className:T.copyButtonSuccessIcon})]})})}function M(e){return(0,j.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,j.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"})})}const $={wordWrapButtonIcon:"wordWrapButtonIcon_Bwma",wordWrapButtonEnabled:"wordWrapButtonEnabled_EoeP"};function W(e){let{className:t,onClick:n,isEnabled:s}=e;const o=(0,_.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,j.jsx)("button",{type:"button",onClick:n,className:(0,c.Z)("clean-btn",t,s&&$.wordWrapButtonEnabled),"aria-label":o,title:o,children:(0,j.jsx)(M,{className:$.wordWrapButtonIcon,"aria-hidden":"true"})})}function R(e){let{children:t,className:n="",metastring:o,title:a,showLineNumbers:i,language:u}=e;const{prism:{defaultLanguage:d,magicComments:p}}=(0,r.L)(),b=function(e){return e?.toLowerCase()}(u??function(e){const t=e.split(" ").find((e=>e.startsWith("language-")));return t?.replace(/language-/,"")}(n)??d),f=l(),h=function(){const[e,t]=(0,s.useState)(!1),[n,o]=(0,s.useState)(!1),c=(0,s.useRef)(null),a=(0,s.useCallback)((()=>{const n=c.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[c,e]),r=(0,s.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=c.current,n=e>t||c.current.querySelector("code").hasAttribute("style");o(n)}),[c]);return w(c,r),(0,s.useEffect)((()=>{r()}),[e,r]),(0,s.useEffect)((()=>(window.addEventListener("resize",r,{passive:!0}),()=>{window.removeEventListener("resize",r)})),[r]),{codeBlockRef:c,isEnabled:e,isCodeScrollable:n,toggle:a}}(),g=function(e){return e?.match(m)?.groups.title??""}(o)||a,{lineClassNames:x,code:v}=k(t,{metastring:o,language:b,magicComments:p}),C=i??function(e){return Boolean(e?.includes("showLineNumbers"))}(o);return(0,j.jsxs)(B,{as:"div",className:(0,c.Z)(n,b&&!n.includes(`language-${b}`)&&`language-${b}`),children:[g&&(0,j.jsx)("div",{className:y.codeBlockTitle,children:g}),(0,j.jsxs)("div",{className:y.codeBlockContent,children:[(0,j.jsx)(E.y$,{theme:f,code:v,language:b??"text",children:e=>{let{className:t,style:n,tokens:s,getLineProps:o,getTokenProps:a}=e;return(0,j.jsx)("pre",{tabIndex:0,ref:h.codeBlockRef,className:(0,c.Z)(t,y.codeBlock,"thin-scrollbar"),style:n,children:(0,j.jsx)("code",{className:(0,c.Z)(y.codeBlockLines,C&&y.codeBlockLinesWithNumbering),children:s.map(((e,t)=>(0,j.jsx)(S,{line:e,getLineProps:o,getTokenProps:a,classNames:x[t],showLineNumbers:C},t)))})})}}),(0,j.jsxs)("div",{className:y.buttonGroup,children:[(h.isEnabled||h.isCodeScrollable)&&(0,j.jsx)(W,{className:y.codeButton,onClick:()=>h.toggle(),isEnabled:h.isEnabled}),(0,j.jsx)(Z,{className:y.codeButton,code:v})]})]})]})}function H(e){let{children:t,...n}=e;const c=(0,o.Z)(),a=function(e){return s.Children.toArray(e).some((e=>(0,s.isValidElement)(e)))?e:Array.isArray(e)?e.join(""):e}(t),r="string"==typeof a?R:v;return(0,j.jsx)(r,{...n,children:a},String(c))}},4673:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var s=n(7294),o=n(512),c=n(2389),a=n(6043);const r={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var l=n(5893);function i(e){return!!e&&("SUMMARY"===e.tagName||i(e.parentElement))}function u(e,t){return!!e&&(e===t||u(e.parentElement,t))}function d(e){let{summary:t,children:n,...d}=e;const m=(0,c.Z)(),p=(0,s.useRef)(null),{collapsed:b,setCollapsed:f}=(0,a.u)({initialState:!d.open}),[h,g]=(0,s.useState)(d.open),k=s.isValidElement(t)?t:(0,l.jsx)("summary",{children:t??"Details"});return(0,l.jsxs)("details",{...d,ref:p,open:h,"data-collapsed":b,className:(0,o.Z)(r.details,m&&r.isBrowser,d.className),onMouseDown:e=>{i(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const t=e.target;i(t)&&u(t,p.current)&&(e.preventDefault(),b?(f(!1),g(!0)):f(!0))},children:[k,(0,l.jsx)(a.z,{lazy:!1,collapsed:b,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{f(e),g(!e)},children:(0,l.jsx)("div",{className:r.collapsibleContent,children:n})})]})}const m={details:"details_b_Ee"},p="alert alert--info";function b(e){let{...t}=e;return(0,l.jsx)(d,{...t,className:(0,o.Z)(p,m.details,t.className)})}},7594:(e,t)=>{function n(e){let t,n=[];for(let s of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(s))n.push(parseInt(s,10));else if(t=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,s,o,c]=t;if(s&&c){s=parseInt(s),c=parseInt(c);const e=s<c?1:-1;"-"!==o&&".."!==o&&"\u2025"!==o||(c+=e);for(let t=s;t!==c;t+=e)n.push(t)}}return n}t.default=n,e.exports=n},1151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r,a:()=>a});var s=n(7294);const o={},c=s.createContext(o);function a(e){const t=s.useContext(c);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),s.createElement(c.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/508f32b9.cc76f031.js b/assets/js/508f32b9.cc76f031.js new file mode 100644 index 0000000000..20a36215ce --- /dev/null +++ b/assets/js/508f32b9.cc76f031.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8453],{6193:e=>{e.exports=JSON.parse('{"label":"RDS","permalink":"/node-mysql2/docs/tags/rds","allTagsPath":"/node-mysql2/docs/tags","count":3,"items":[{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/docs/examples/connections/create-connection"},{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/docs/examples/connections/create-pool"},{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/docs/examples/connections/createPoolCluster"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/assets/js/51824e23.17207933.js b/assets/js/51824e23.17207933.js deleted file mode 100644 index a768536447..0000000000 --- a/assets/js/51824e23.17207933.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[794],{8799:e=>{e.exports=JSON.parse('{"title":"SSL","slug":"/category/ssl","permalink":"/node-mysql2/docs/category/ssl","navigation":{"previous":{"title":"Server","permalink":"/node-mysql2/docs/examples/server"},"next":{"title":"RDS SSL","permalink":"/node-mysql2/docs/examples/ssl/rds-ssl"}}}')}}]); \ No newline at end of file diff --git a/assets/js/546b1c5f.9b265e0d.js b/assets/js/546b1c5f.a8bfad30.js similarity index 84% rename from assets/js/546b1c5f.9b265e0d.js rename to assets/js/546b1c5f.a8bfad30.js index 37500cfe72..0e9e62f40a 100644 --- a/assets/js/546b1c5f.9b265e0d.js +++ b/assets/js/546b1c5f.a8bfad30.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8263],{403:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>p,frontMatter:()=>t,metadata:()=>i,toc:()=>l});var s=o(5893),r=o(1151);const t={},c="Promise Wrappers",i={id:"documentation/promise-wrapper",title:"Promise Wrappers",description:"In addition to errback interface there is thin wrapper to expose Promise-based api",source:"@site/docs/documentation/promise-wrapper.mdx",sourceDirName:"documentation",slug:"/documentation/promise-wrapper",permalink:"/node-mysql2/docs/documentation/promise-wrapper",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/documentation/promise-wrapper.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Prepared Statements",permalink:"/node-mysql2/docs/documentation/prepared-statements"},next:{title:"Using MySQL2 with TypeScript",permalink:"/node-mysql2/docs/documentation/typescript-examples"}},a={},l=[{value:"Basic Promise",id:"basic-promise",level:2},{value:"ES7 Async Await",id:"es7-async-await",level:2},{value:"With CO",id:"with-co",level:2}];function m(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"promise-wrappers",children:"Promise Wrappers"}),"\n",(0,s.jsx)(n.p,{children:"In addition to errback interface there is thin wrapper to expose Promise-based api"}),"\n",(0,s.jsx)(n.h2,{id:"basic-promise",children:"Basic Promise"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"/* eslint-env es6 */\nconst mysql = require('mysql2/promise'); // or require('mysql2').createConnectionPromise\nmysql\n .createConnection({\n /* same parameters as for non-promise createConnection */\n })\n .then((conn) => conn.query('select foo from bar'))\n .then(([rows, fields]) => console.log(rows[0].foo));\n"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const pool = require('mysql2/promise').createPool({}); // or require('mysql2').createPoolPromise({}) or require('mysql2').createPool({}).promise()\npool\n .getConnection()\n .then((conn) => {\n const res = conn.query('select foo from bar');\n conn.release();\n return res;\n })\n .then((result) => {\n console.log(result[0][0].foo);\n })\n .catch((err) => {\n console.log(err); // any of connection time or query time errors from above\n });\n"})}),"\n",(0,s.jsx)(n.h2,{id:"es7-async-await",children:"ES7 Async Await"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"async function example1() {\n const mysql = require('mysql2/promise');\n const conn = await mysql.createConnection({ database: test });\n const [rows, fields] = await conn.execute('select ?+? as sum', [2, 2]);\n await conn.end();\n}\n\nasync function example2() {\n const mysql = require('mysql2/promise');\n const pool = mysql.createPool({ database: test });\n // execute in parallel, next console.log in 3 seconds\n await Promise.all([\n pool.query('select sleep(2)'),\n pool.query('select sleep(3)'),\n ]);\n console.log('3 seconds after');\n await pool.end();\n}\n"})}),"\n",(0,s.jsxs)(n.h2,{id:"with-co",children:["With ",(0,s.jsx)(n.a,{href:"https://github.com/tj/co",children:"CO"})]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst co = require('co');\nco(function* () {\n const c = yield mysql.createConnectionPromise({\n user: 'root',\n namedPlaceholders: true,\n });\n const rows = yield c.query('show databases');\n console.log(rows);\n console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 }));\n yield c.end();\n});\n"})}),"\n",(0,s.jsxs)(n.p,{children:["Examples in ",(0,s.jsx)(n.a,{href:"/docs/examples/promise-co-await",children:"/examples/promise-co-await"})]})]})}function p(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},1151:(e,n,o)=>{o.d(n,{Z:()=>i,a:()=>c});var s=o(7294);const r={},t=s.createContext(r);function c(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8263],{403:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>m,frontMatter:()=>t,metadata:()=>i,toc:()=>l});var s=o(5893),r=o(1151);const t={},c="Promise Wrappers",i={id:"documentation/promise-wrapper",title:"Promise Wrappers",description:"In addition to errback interface there is thin wrapper to expose Promise-based api",source:"@site/docs/documentation/promise-wrapper.mdx",sourceDirName:"documentation",slug:"/documentation/promise-wrapper",permalink:"/node-mysql2/docs/documentation/promise-wrapper",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/documentation/promise-wrapper.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Prepared Statements",permalink:"/node-mysql2/docs/documentation/prepared-statements"},next:{title:"Using MySQL2 with TypeScript",permalink:"/node-mysql2/docs/documentation/typescript-examples"}},a={},l=[{value:"Basic Promise",id:"basic-promise",level:2},{value:"ES7 Async Await",id:"es7-async-await",level:2},{value:"With CO",id:"with-co",level:2}];function p(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"promise-wrappers",children:"Promise Wrappers"}),"\n",(0,s.jsx)(n.p,{children:"In addition to errback interface there is thin wrapper to expose Promise-based api"}),"\n",(0,s.jsx)(n.h2,{id:"basic-promise",children:"Basic Promise"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"/* eslint-env es6 */\nconst mysql = require('mysql2/promise'); // or require('mysql2').createConnectionPromise\nmysql\n .createConnection({\n /* same parameters as for non-promise createConnection */\n })\n .then((conn) => conn.query('select foo from bar'))\n .then(([rows, fields]) => console.log(rows[0].foo));\n"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const pool = require('mysql2/promise').createPool({}); // or require('mysql2').createPoolPromise({}) or require('mysql2').createPool({}).promise()\npool\n .getConnection()\n .then((conn) => {\n const res = conn.query('select foo from bar');\n conn.release();\n return res;\n })\n .then((result) => {\n console.log(result[0][0].foo);\n })\n .catch((err) => {\n console.log(err); // any of connection time or query time errors from above\n });\n"})}),"\n",(0,s.jsx)(n.h2,{id:"es7-async-await",children:"ES7 Async Await"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"async function example1() {\n const mysql = require('mysql2/promise');\n const conn = await mysql.createConnection({ database: test });\n const [rows, fields] = await conn.execute('select ?+? as sum', [2, 2]);\n await conn.end();\n}\n\nasync function example2() {\n const mysql = require('mysql2/promise');\n const pool = mysql.createPool({ database: test });\n // execute in parallel, next console.log in 3 seconds\n await Promise.all([\n pool.query('select sleep(2)'),\n pool.query('select sleep(3)'),\n ]);\n console.log('3 seconds after');\n await pool.end();\n}\n"})}),"\n",(0,s.jsxs)(n.h2,{id:"with-co",children:["With ",(0,s.jsx)(n.a,{href:"https://github.com/tj/co",children:"CO"})]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst co = require('co');\nco(function* () {\n const c = yield mysql.createConnectionPromise({\n user: 'root',\n namedPlaceholders: true,\n });\n const rows = yield c.query('show databases');\n console.log(rows);\n console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 }));\n yield c.end();\n});\n"})}),"\n",(0,s.jsxs)(n.p,{children:["Examples in ",(0,s.jsx)(n.a,{href:"/docs/examples/promise-wrapper/co-await",children:"/examples/promise-co-await"})]})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(p,{...e})}):p(e)}},1151:(e,n,o)=>{o.d(n,{Z:()=>i,a:()=>c});var s=o(7294);const r={},t=s.createContext(r);function c(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/54768732.7adc3ec4.js b/assets/js/54768732.7adc3ec4.js new file mode 100644 index 0000000000..2238e60c91 --- /dev/null +++ b/assets/js/54768732.7adc3ec4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[576],{3990:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>h,contentTitle:()=>c,default:()=>x,frontMatter:()=>u,metadata:()=>d,toc:()=>p});var t=n(5893),s=n(1151),l=n(4866),a=n(5162),o=n(6393),i=n(4379);const u={sidebar_position:2,tags:["query"]},c="UPDATE",d={id:"examples/queries/simple-queries/update",title:"UPDATE",description:"The examples below also work for the execute method.",source:"@site/docs/examples/queries/simple-queries/update.mdx",sourceDirName:"examples/queries/simple-queries",slug:"/examples/queries/simple-queries/update",permalink:"/node-mysql2/docs/examples/queries/simple-queries/update",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/simple-queries/update.mdx",tags:[{label:"query",permalink:"/node-mysql2/docs/tags/query"}],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2,tags:["query"]},sidebar:"examples",previous:{title:"SELECT",permalink:"/node-mysql2/docs/examples/queries/simple-queries/select"},next:{title:"DELETE",permalink:"/node-mysql2/docs/examples/queries/simple-queries/delete"}},h={},p=[{value:"query(sql)",id:"querysql",level:2},{value:"query(options)",id:"queryoptions",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"QueryOptions",id:"queryoptions-1",level:3}];function m(e){const r={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.h1,{id:"update",children:"UPDATE"}),"\n",(0,t.jsxs)(r.p,{children:["The examples below also work for the ",(0,t.jsx)(r.a,{href:"/docs/examples/queries/prepared-statements/update",children:(0,t.jsx)(r.code,{children:"execute"})})," method."]}),"\n",(0,t.jsx)(r.h2,{id:"querysql",children:"query(sql)"}),"\n",(0,t.jsxs)(r.blockquote,{children:["\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"query(sql: string)"})}),"\n"]}),"\n",(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"try {\n const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1';\n\n // highlight-next-line\n const [result, fields] = await connection.query(sql);\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"callback.js",children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1';\n\nconnection.query(sql, (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n});\n"})})})]}),"\n",(0,t.jsxs)(r.ul,{children:["\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"result"}),": contains a ",(0,t.jsx)(r.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,t.jsx)(r.admonition,{type:"info",children:(0,t.jsxs)(r.p,{children:["The connection used for the query (",(0,t.jsx)(r.code,{children:".query()"}),") can be obtained through the ",(0,t.jsx)(r.code,{children:"createConnection"}),", ",(0,t.jsx)(r.code,{children:"createPool"})," or ",(0,t.jsx)(r.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,t.jsx)(r.hr,{}),"\n",(0,t.jsx)(r.h2,{id:"queryoptions",children:"query(options)"}),"\n",(0,t.jsxs)(r.blockquote,{children:["\n",(0,t.jsx)(r.p,{children:(0,t.jsxs)(r.strong,{children:["query(options: ",(0,t.jsx)(r.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"try {\n const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1';\n\n // highlight-start\n const [result, fields] = await connection.query({\n sql,\n // ... other options\n });\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"callback.js",children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1';\n\nconnection.query(\n {\n sql,\n // ... other options\n },\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,t.jsxs)(r.ul,{children:["\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"result"}),": contains a ",(0,t.jsx)(r.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,t.jsx)(r.admonition,{type:"info",children:(0,t.jsxs)(r.p,{children:["The connection used for the query (",(0,t.jsx)(r.code,{children:".query()"}),") can be obtained through the ",(0,t.jsx)(r.code,{children:"createConnection"}),", ",(0,t.jsx)(r.code,{children:"createPool"})," or ",(0,t.jsx)(r.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,t.jsx)(r.hr,{}),"\n",(0,t.jsx)(r.h2,{id:"glossary",children:"Glossary"}),"\n",(0,t.jsx)(r.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,t.jsx)(o.Z,{title:"ResultSetHeader Specification",children:(0,t.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts",extractMethod:"ResultSetHeader",methodType:"interface"})}),"\n",(0,t.jsx)(r.h3,{id:"queryoptions-1",children:"QueryOptions"}),"\n",(0,t.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,t.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function x(e={}){const{wrapper:r}={...(0,s.a)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},5162:(e,r,n)=>{n.d(r,{Z:()=>a});n(7294);var t=n(512);const s={tabItem:"tabItem_Ymn6"};var l=n(5893);function a(e){let{children:r,hidden:n,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,t.Z)(s.tabItem,a),hidden:n,children:r})}},4866:(e,r,n)=>{n.d(r,{Z:()=>v});var t=n(7294),s=n(512),l=n(2466),a=n(6550),o=n(469),i=n(1980),u=n(7392),c=n(12);function d(e){return t.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,t.isValidElement)(e)&&function(e){const{props:r}=e;return!!r&&"object"==typeof r&&"value"in r}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:r,children:n}=e;return(0,t.useMemo)((()=>{const e=r??function(e){return d(e).map((e=>{let{props:{value:r,label:n,attributes:t,default:s}}=e;return{value:r,label:n,attributes:t,default:s}}))}(n);return function(e){const r=(0,u.l)(e,((e,r)=>e.value===r.value));if(r.length>0)throw new Error(`Docusaurus error: Duplicate values "${r.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[r,n])}function p(e){let{value:r,tabValues:n}=e;return n.some((e=>e.value===r))}function m(e){let{queryString:r=!1,groupId:n}=e;const s=(0,a.k6)(),l=function(e){let{queryString:r=!1,groupId:n}=e;if("string"==typeof r)return r;if(!1===r)return null;if(!0===r&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:r,groupId:n});return[(0,i._X)(l),(0,t.useCallback)((e=>{if(!l)return;const r=new URLSearchParams(s.location.search);r.set(l,e),s.replace({...s.location,search:r.toString()})}),[l,s])]}function x(e){const{defaultValue:r,queryString:n=!1,groupId:s}=e,l=h(e),[a,i]=(0,t.useState)((()=>function(e){let{defaultValue:r,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(r){if(!p({value:r,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${r}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return r}const t=n.find((e=>e.default))??n[0];if(!t)throw new Error("Unexpected error: 0 tabValues");return t.value}({defaultValue:r,tabValues:l}))),[u,d]=m({queryString:n,groupId:s}),[x,f]=function(e){let{groupId:r}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(r),[s,l]=(0,c.Nk)(n);return[s,(0,t.useCallback)((e=>{n&&l.set(e)}),[n,l])]}({groupId:s}),b=(()=>{const e=u??x;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{b&&i(b)}),[b]);return{selectedValue:a,selectValue:(0,t.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),f(e)}),[d,f,l]),tabValues:l}}var f=n(2389);const b={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=n(5893);function j(e){let{className:r,block:n,selectedValue:t,selectValue:a,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:u}=(0,l.o5)(),c=e=>{const r=e.currentTarget,n=i.indexOf(r),s=o[n].value;s!==t&&(u(r),a(s))},d=e=>{let r=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=i.indexOf(e.currentTarget)+1;r=i[n]??i[0];break}case"ArrowLeft":{const n=i.indexOf(e.currentTarget)-1;r=i[n]??i[i.length-1];break}}r?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":n},r),children:o.map((e=>{let{value:r,label:n,attributes:l}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:t===r?0:-1,"aria-selected":t===r,ref:e=>i.push(e),onKeyDown:d,onClick:c,...l,className:(0,s.Z)("tabs__item",b.tabItem,l?.className,{"tabs__item--active":t===r}),children:n??r},r)}))})}function q(e){let{lazy:r,children:n,selectedValue:s}=e;const l=(Array.isArray(n)?n:[n]).filter(Boolean);if(r){const e=l.find((e=>e.props.value===s));return e?(0,t.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:l.map(((e,r)=>(0,t.cloneElement)(e,{key:r,hidden:e.props.value!==s})))})}function y(e){const r=x(e);return(0,g.jsxs)("div",{className:(0,s.Z)("tabs-container",b.tabList),children:[(0,g.jsx)(j,{...e,...r}),(0,g.jsx)(q,{...e,...r})]})}function v(e){const r=(0,f.Z)();return(0,g.jsx)(y,{...e,children:d(e.children)},String(r))}},4379:(e,r,n)=>{n.d(r,{I:()=>i});var t=n(7294),s=n(2263),l=n(9286),a=n(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),i=e=>{let{url:r,language:n,extractMethod:i,methodType:u}=e;const[c,d]=(0,t.useState)(""),[h,p]=(0,t.useState)(!0),[m,x]=(0,t.useState)(!0),{siteConfig:f}=(0,s.Z)(),b=f.baseUrl.replace(/\/$/,""),g=/^\//.test(r)?`${b}${r}`:r;return(0,t.useEffect)((()=>{const e=new AbortController,r=e.signal;return fetch(g,{signal:r}).then((e=>e.text())).then((e=>{const r=i&&u?((e,r,n)=>{const t=e.split("\n"),s=`${n} ${r}`;let l=!1,a=0,o="";for(const i of t)if(i.includes(s)&&(l=!0),l&&(i.includes("{")&&a++,o+=i+"\n",i.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,i,u):e;d(r||e),p(!1),x(!1)})).catch((()=>{x(!0),p(!1)})),()=>{e.abort()}}),[g,i,u]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:m?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:g}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${n}`,children:c})})})}},6393:(e,r,n)=>{n.d(r,{Z:()=>l});var t=n(4673),s=n(5893);const l=e=>{let{children:r,open:n,title:l}=e;return(0,s.jsx)(t.Z,{open:n,className:"faq",summary:(0,s.jsx)("summary",{children:(0,s.jsx)("strong",{children:l})}),children:(0,s.jsx)("section",{children:r})})}}}]); \ No newline at end of file diff --git a/assets/js/54dbd6f3.7311dfcb.js b/assets/js/54dbd6f3.7311dfcb.js deleted file mode 100644 index 1b7457630b..0000000000 --- a/assets/js/54dbd6f3.7311dfcb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4917],{929:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>i,contentTitle:()=>u,default:()=>p,frontMatter:()=>o,metadata:()=>c,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),l=n(5162);const o={},u="SELECT",c={id:"examples/queries/select",title:"SELECT",description:"",source:"@site/docs/examples/queries/select.mdx",sourceDirName:"examples/queries",slug:"/examples/queries/select",permalink:"/node-mysql2/docs/examples/queries/select",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/select.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Queries",permalink:"/node-mysql2/docs/category/queries"},next:{title:"Server",permalink:"/node-mysql2/docs/examples/server"}},i={},d=[];function m(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"select",children:"SELECT"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(l.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\n// get the client\nconst mysql = require('mysql2');\n\n// create the connection to database\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// simple query\nconnection.query(\n 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45',\n (err, results, fields) => {\n console.log(results); // results contains rows returned by server\n console.log(fields); // fields contains extra meta data about results, if available\n }\n);\n\n// with placeholder\nconnection.query(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Page', 45],\n (err, results) => {\n console.log(results);\n }\n);\n"})})})})]})}function p(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function l(e){let{children:t,hidden:n,className:l}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,l),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(7294),a=n(512),s=n(2466),l=n(6550),o=n(469),u=n(1980),c=n(7392),i=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,c.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function p(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const a=(0,l.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=m(e),[l,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!p({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[c,d]=f({queryString:n,groupId:a}),[b,h]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,i.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),v=(()=>{const e=c??b;return p({value:e,tabValues:s})?e:null})();(0,o.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:l,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,s]),tabValues:s}}var h=n(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=n(5893);function x(e){let{className:t,block:n,selectedValue:r,selectValue:l,tabValues:o}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const t=e.currentTarget,n=u.indexOf(t),a=o[n].value;a!==r&&(c(t),l(a))},d=e=>{let t=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function y(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function q(e){const t=b(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,g.jsx)(x,{...e,...t}),(0,g.jsx)(y,{...e,...t})]})}function w(e){const t=(0,h.Z)();return(0,g.jsx)(q,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>o,a:()=>l});var r=n(7294);const a={},s=r.createContext(a);function l(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:l(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/54eaaaae.22d6bdf5.js b/assets/js/54eaaaae.22d6bdf5.js new file mode 100644 index 0000000000..6798dab7c5 --- /dev/null +++ b/assets/js/54eaaaae.22d6bdf5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1420],{1:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>u,contentTitle:()=>d,default:()=>g,frontMatter:()=>a,metadata:()=>h,toc:()=>p});var s=o(5893),r=o(1151),l=o(4866),t=o(5162),c=o(6393),i=o(4379);const a={sidebar_position:2,tags:["createPool","URI","SHA1","RDS","SSL","Socks"]},d="createPool",h={id:"examples/connections/create-pool",title:"createPool",description:"For queries please see the Simple Queries and Prepared Statements examples.",source:"@site/docs/examples/connections/create-pool.mdx",sourceDirName:"examples/connections",slug:"/examples/connections/create-pool",permalink:"/node-mysql2/docs/examples/connections/create-pool",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/connections/create-pool.mdx",tags:[{label:"createPool",permalink:"/node-mysql2/docs/tags/create-pool"},{label:"URI",permalink:"/node-mysql2/docs/tags/uri"},{label:"SHA1",permalink:"/node-mysql2/docs/tags/sha-1"},{label:"RDS",permalink:"/node-mysql2/docs/tags/rds"},{label:"SSL",permalink:"/node-mysql2/docs/tags/ssl"},{label:"Socks",permalink:"/node-mysql2/docs/tags/socks"}],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2,tags:["createPool","URI","SHA1","RDS","SSL","Socks"]},sidebar:"examples",previous:{title:"createConnection",permalink:"/node-mysql2/docs/examples/connections/create-connection"},next:{title:"createPoolCluster",permalink:"/node-mysql2/docs/examples/connections/createPoolCluster"}},u={},p=[{value:"createPool(connectionUri)",id:"createpoolconnectionuri",level:2},{value:"createPool(config)",id:"createpoolconfig",level:2},{value:"createPool(config) \u2014 SHA1",id:"createpoolconfig--sha1",level:2},{value:"createPool(config) \u2014 SSL",id:"createpoolconfig--ssl",level:2},{value:"createPool(config) \u2014 RDS SSL",id:"createpoolconfig--rds-ssl",level:2},{value:"Related Links",id:"related-links",level:3},{value:"createPool(config) \u2014 Socks",id:"createpoolconfig--socks",level:2},{value:"Glossary",id:"glossary",level:2},{value:"PoolOptions",id:"pooloptions",level:3}];function m(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"createpool",children:"createPool"}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["For queries please see the ",(0,s.jsx)(n.a,{href:"/docs/examples/queries/simple-queries",children:(0,s.jsx)(n.strong,{children:"Simple Queries"})})," and ",(0,s.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements",children:(0,s.jsx)(n.strong,{children:"Prepared Statements"})})," examples."]})}),"\n",(0,s.jsx)(n.h2,{id:"createpoolconnectionuri",children:"createPool(connectionUri)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"createPool(connectionUri: string)"})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const pool = mysql.createPool('mysql://root:password@localhost:3306/test');\n const connection = await pool.getConnection();\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(t.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool('mysql://root:password@localhost:3306/test');\n\npool.getConnection(function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})})]}),"\n",(0,s.jsxs)(n.admonition,{type:"warning",children:[(0,s.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"pool.releaseConnection(connection)"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"createpoolconfig",children:"createPool(config)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["createPool(config: ",(0,s.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n // port: 3306,\n // password: '',\n });\n const connection = await pool.getConnection();\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(t.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n // port: 3306,\n // password: '',\n});\n\npool.getConnection(function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})})]}),"\n",(0,s.jsxs)(n.admonition,{type:"warning",children:[(0,s.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"pool.releaseConnection(connection)"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"createpoolconfig--sha1",children:"createPool(config) \u2014 SHA1"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["createPool(config: ",(0,s.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const pool = mysql.createPool({\n // ...\n passwordSha1: Buffer.from(\n '8bb6118f8fd6935ad0876a3be34a717d32708ffd',\n 'hex'\n ),\n });\n const connection = await pool.getConnection();\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(t.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool({\n // ...\n passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'),\n});\n\npool.getConnection(function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})})]}),"\n",(0,s.jsxs)(n.admonition,{type:"warning",children:[(0,s.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"pool.releaseConnection(connection)"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"createpoolconfig--ssl",children:"createPool(config) \u2014 SSL"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["createPool(config: ",(0,s.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const pool = mysql.createPool({\n // ...\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n });\n const connection = await pool.getConnection();\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(t.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool({\n // ...\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n});\n\npool.getConnection(function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})}),(0,s.jsxs)(t.Z,{value:"certs/ca-cert.pem",children:[(0,s.jsx)(i.I,{language:"plan",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/test/fixtures/ssl/certs/ca.pem"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["See ",(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/tree/master/test/fixtures/ssl/certs",children:"ssl/certs"}),"."]}),"\n"]})]})]}),"\n",(0,s.jsxs)(n.admonition,{type:"warning",children:[(0,s.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"pool.releaseConnection(connection)"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"createpoolconfig--rds-ssl",children:"createPool(config) \u2014 RDS SSL"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["createPool(config: ",(0,s.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["You can use ",(0,s.jsx)(n.strong,{children:"Amazon RDS"})," string as value to ssl property to connect to ",(0,s.jsx)(n.strong,{children:"Amazon RDS"})," MySQL over SSL."]}),"\n",(0,s.jsxs)(n.p,{children:["In that case ",(0,s.jsx)(n.a,{href:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem",children:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem"})," CA cert is used:"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsxs)(t.Z,{value:"promise.js",default:!0,children:[(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const pool = mysql.createPool({\n // ...\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n });\n const connection = await pool.getConnection();\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})}),(0,s.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const [res] = await connection.query('SHOW `status` LIKE \"Ssl_cipher\"');\n await pool.end();\n\n console.log(res);\n} catch (err) {\n console.log(err);\n}\n"})})})]}),(0,s.jsxs)(t.Z,{value:"callback.js",children:[(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool({\n // ...\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n});\n\npool.getConnection(function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})}),(0,s.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connectionquery('SHOW `status` LIKE \"Ssl_cipher\"', function (err, res) {\n pool.end();\n\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(res);\n});\n"})})})]})]}),"\n",(0,s.jsxs)(n.admonition,{type:"warning",children:[(0,s.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"pool.releaseConnection(connection)"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,s.jsx)(n.h3,{id:"related-links",children:"Related Links"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Issues"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/issues/2130",children:"#2130 \u2014 Update TLS certs for Amazon RDS instances"})}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Pull Requests"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/pull/2119",children:"#2119 \u2014 fix: make startTls code compatible with Bun"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/pull/2131",children:"#2131 \u2014 Update Amazon RDS SSL CA cert"})}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"createpoolconfig--socks",children:"createPool(config) \u2014 Socks"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["createPool(config: ",(0,s.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(t.Z,{value:"A.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\nconst socksProxy = new SocksConnection({ port: 3306 });\n// highlight-start\nconst pool = mysql.createPool({\n stream: socksProxy,\n});\n// highlight-end\n"})})}),(0,s.jsx)(t.Z,{value:"B.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\n// highlight-start\nconst pool = mysql.createPool({\n debug: 1,\n stream: function () {\n return new SocksConnection({ port: 3306 });\n },\n});\n// highlight-end\n"})})})]}),"\n",(0,s.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"pool.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n\npool.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n\npool.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n"})})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,s.jsx)(n.h3,{id:"pooloptions",children:"PoolOptions"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"PoolOptions"})," extends all options from ",(0,s.jsx)(n.strong,{children:"ConnectionOptions"}),":"]}),"\n",(0,s.jsx)(c.Z,{title:"ConnectionOptions Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/Connection.d.ts",extractMethod:"ConnectionOptions",methodType:"interface"})}),"\n"]}),"\n",(0,s.jsx)(c.Z,{title:"PoolOptions Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/Pool.d.ts",extractMethod:"PoolOptions",methodType:"interface"})})]})}function g(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},5162:(e,n,o)=>{o.d(n,{Z:()=>t});o(7294);var s=o(512);const r={tabItem:"tabItem_Ymn6"};var l=o(5893);function t(e){let{children:n,hidden:o,className:t}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,s.Z)(r.tabItem,t),hidden:o,children:n})}},4866:(e,n,o)=>{o.d(n,{Z:()=>S});var s=o(7294),r=o(512),l=o(2466),t=o(6550),c=o(469),i=o(1980),a=o(7392),d=o(12);function h(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:n,children:o}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return h(e).map((e=>{let{props:{value:n,label:o,attributes:s,default:r}}=e;return{value:n,label:o,attributes:s,default:r}}))}(o);return function(e){const n=(0,a.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,o])}function p(e){let{value:n,tabValues:o}=e;return o.some((e=>e.value===n))}function m(e){let{queryString:n=!1,groupId:o}=e;const r=(0,t.k6)(),l=function(e){let{queryString:n=!1,groupId:o}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!o)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return o??null}({queryString:n,groupId:o});return[(0,i._X)(l),(0,s.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(r.location.search);n.set(l,e),r.replace({...r.location,search:n.toString()})}),[l,r])]}function g(e){const{defaultValue:n,queryString:o=!1,groupId:r}=e,l=u(e),[t,i]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:o}=e;if(0===o.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:o}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${o.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=o.find((e=>e.default))??o[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:l}))),[a,h]=m({queryString:o,groupId:r}),[g,x]=function(e){let{groupId:n}=e;const o=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,l]=(0,d.Nk)(o);return[r,(0,s.useCallback)((e=>{o&&l.set(e)}),[o,l])]}({groupId:r}),j=(()=>{const e=a??g;return p({value:e,tabValues:l})?e:null})();(0,c.Z)((()=>{j&&i(j)}),[j]);return{selectedValue:t,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),h(e),x(e)}),[h,x,l]),tabValues:l}}var x=o(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=o(5893);function y(e){let{className:n,block:o,selectedValue:s,selectValue:t,tabValues:c}=e;const i=[],{blockElementScrollPositionUntilNextRender:a}=(0,l.o5)(),d=e=>{const n=e.currentTarget,o=i.indexOf(n),r=c[o].value;r!==s&&(a(n),t(r))},h=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const o=i.indexOf(e.currentTarget)+1;n=i[o]??i[0];break}case"ArrowLeft":{const o=i.indexOf(e.currentTarget)-1;n=i[o]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":o},n),children:c.map((e=>{let{value:n,label:o,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>i.push(e),onKeyDown:h,onClick:d,...l,className:(0,r.Z)("tabs__item",j.tabItem,l?.className,{"tabs__item--active":s===n}),children:o??n},n)}))})}function b(e){let{lazy:n,children:o,selectedValue:r}=e;const l=(Array.isArray(o)?o:[o]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===r));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function q(e){const n=g(e);return(0,f.jsxs)("div",{className:(0,r.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(y,{...e,...n}),(0,f.jsx)(b,{...e,...n})]})}function S(e){const n=(0,x.Z)();return(0,f.jsx)(q,{...e,children:h(e.children)},String(n))}},4379:(e,n,o)=>{o.d(n,{I:()=>i});var s=o(7294),r=o(2263),l=o(9286),t=o(5893);const c=()=>(0,t.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:o,extractMethod:i,methodType:a}=e;const[d,h]=(0,s.useState)(""),[u,p]=(0,s.useState)(!0),[m,g]=(0,s.useState)(!0),{siteConfig:x}=(0,r.Z)(),j=x.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,s.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&a?((e,n,o)=>{const s=e.split("\n"),r=`${o} ${n}`;let l=!1,t=0,c="";for(const i of s)if(i.includes(r)&&(l=!0),l&&(i.includes("{")&&t++,c+=i+"\n",i.includes("}")&&(t--,0===t)))break;return c.trim()||e})(e,i,a):e;h(n||e),p(!1),g(!1)})).catch((()=>{g(!0),p(!1)})),()=>{e.abort()}}),[f,i,a]),(0,t.jsx)(t.Fragment,{children:u?(0,t.jsx)(c,{}):(0,t.jsx)(t.Fragment,{children:m?(0,t.jsxs)("div",{children:["Unable to access the requested link: ",(0,t.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,t.jsx)(l.Z,{className:`language-${o}`,children:d})})})}},6393:(e,n,o)=>{o.d(n,{Z:()=>l});var s=o(4673),r=o(5893);const l=e=>{let{children:n,open:o,title:l}=e;return(0,r.jsx)(s.Z,{open:o,className:"faq",summary:(0,r.jsx)("summary",{children:(0,r.jsx)("strong",{children:l})}),children:(0,r.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/assets/js/55960ee5.4f929515.js b/assets/js/55960ee5.4f929515.js new file mode 100644 index 0000000000..5906fec181 --- /dev/null +++ b/assets/js/55960ee5.4f929515.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4121],{8070:e=>{e.exports=JSON.parse('[{"label":"Prepared Statements","permalink":"/node-mysql2/docs/tags/prepared-statements","count":5},{"label":"execute","permalink":"/node-mysql2/docs/tags/execute","count":5},{"label":"createConnection","permalink":"/node-mysql2/docs/tags/create-connection","count":1},{"label":"URI","permalink":"/node-mysql2/docs/tags/uri","count":3},{"label":"SHA1","permalink":"/node-mysql2/docs/tags/sha-1","count":3},{"label":"RDS","permalink":"/node-mysql2/docs/tags/rds","count":3},{"label":"SSL","permalink":"/node-mysql2/docs/tags/ssl","count":3},{"label":"Socks","permalink":"/node-mysql2/docs/tags/socks","count":3},{"label":"createPool","permalink":"/node-mysql2/docs/tags/create-pool","count":1},{"label":"createPoolCluster","permalink":"/node-mysql2/docs/tags/create-pool-cluster","count":1},{"label":"Placeholders","permalink":"/node-mysql2/docs/tags/placeholders","count":4},{"label":"Parameters","permalink":"/node-mysql2/docs/tags/parameters","count":4},{"label":"query","permalink":"/node-mysql2/docs/tags/query","count":4}]')}}]); \ No newline at end of file diff --git a/assets/js/5748a325.8eecc32c.js b/assets/js/5748a325.8eecc32c.js deleted file mode 100644 index 9320beefc0..0000000000 --- a/assets/js/5748a325.8eecc32c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1647],{4444:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>f,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},u="Server",c={id:"examples/server",title:"Server",description:"",source:"@site/docs/examples/server.mdx",sourceDirName:"examples",slug:"/examples/server",permalink:"/node-mysql2/docs/examples/server",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/server.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"SELECT",permalink:"/node-mysql2/docs/examples/queries/select"},next:{title:"SSL",permalink:"/node-mysql2/docs/category/ssl"}},i={},d=[];function m(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"server",children:"Server"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst flags = require('mysql2/lib/constants/client.js');\nconst auth = require('mysql2/lib/auth_41.js');\n\nfunction authenticate(params, cb) {\n console.log(params);\n const doubleSha = auth.doubleSha1('pass123');\n const isValid = auth.verifyToken(\n params.authPluginData1,\n params.authPluginData2,\n params.authToken,\n doubleSha\n );\n if (isValid) {\n cb(null);\n } else {\n // for list of codes lib/constants/errors.js\n cb(null, { message: 'wrong password dude', code: 1045 });\n }\n}\n\nconst server = mysql.createServer();\nserver.listen(3333);\nserver.on('connection', (conn) => {\n // we can deny connection here:\n // conn.writeError({ message: 'secret', code: 123 });\n // conn.close();\n conn.serverHandshake({\n protocolVersion: 10,\n serverVersion: '5.6.10', // 'node.js rocks',\n connectionId: 1234,\n statusFlags: 2,\n characterSet: 8,\n // capabilityFlags: 0xffffff,\n // capabilityFlags: -2113931265,\n capabilityFlags: 2181036031,\n authCallback: authenticate,\n });\n\n conn.on('field_list', (table, fields) => {\n console.log('FIELD LIST:', table, fields);\n conn.writeEof();\n });\n\n conn.on('query', (query) => {\n conn.writeColumns([\n {\n catalog: 'def',\n schema: 'test',\n table: 'test_table',\n orgTable: 'test_table',\n name: 'beta',\n orgName: 'beta',\n characterSet: 33,\n columnLength: 384,\n columnType: 253,\n flags: 0,\n decimals: 0,\n },\n ]);\n conn.writeTextRow(['test \u0442\u0435\u0441\u0442 \u30c6\u30b9\u30c8 \u0583\u0578\u0580\u0571\u0561\u0580\u056f\u0578\u0582\u0574 \u09aa\u09b0\u09c0\u0995\u09cd\u09b7\u09be ki\u1ec3m tra ']);\n conn.writeTextRow(['\u10e2\u10d4\u10e1\u10e2\u10d8 \u0aaa\u0ab0\u0ac0\u0a95\u0acd\u0ab7\u0aa3 \u05de\u05d1\u05d7\u05df \u05e4\u05bc\u05e8\u05d5\u05d1\u05d9\u05e8\u05df \u0627\u062e\u062a\u0628\u0627\u0631 \u092a\u0930\u0940\u0915\u094d\u0937\u0923']);\n conn.writeEof();\n conn.close();\n });\n});\n"})})})})]})}function f(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>k});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function f(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=m(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!f({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[c,d]=p({queryString:t,groupId:a}),[b,h]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,i.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),v=(()=>{const e=c??b;return f({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!f({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,s]),tabValues:s}}var h=t(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function y(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),a=l[t].value;a!==r&&(c(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function x(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function w(e){const n=b(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,g.jsx)(y,{...e,...n}),(0,g.jsx)(x,{...e,...n})]})}function k(e){const n=(0,h.Z)();return(0,g.jsx)(w,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5814edec.a7313a34.js b/assets/js/5814edec.a7313a34.js deleted file mode 100644 index 988641b457..0000000000 --- a/assets/js/5814edec.a7313a34.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3561],{3788:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>l,default:()=>m,frontMatter:()=>u,metadata:()=>i,toc:()=>d});var a=n(5893),r=n(1151),s=n(4866),o=n(5162);const u={},l="Row Data Packet (Row as Array)",i={id:"examples/typescript/row-data/row-as-array",title:"Row Data Packet (Row as Array)",description:"",source:"@site/docs/examples/typescript/row-data/01-row-as-array.mdx",sourceDirName:"examples/typescript/row-data",slug:"/examples/typescript/row-data/row-as-array",permalink:"/node-mysql2/docs/examples/typescript/row-data/row-as-array",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/row-data/01-row-as-array.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"examples",previous:{title:"Row Data Packet",permalink:"/node-mysql2/docs/examples/typescript/row-data/row-data-packet"},next:{title:"Row Data Packet (Multi Statements)",permalink:"/node-mysql2/docs/examples/typescript/row-data/multi-statements"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,r.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h1,{id:"row-data-packet-row-as-array",children:"Row Data Packet (Row as Array)"}),"\n",(0,a.jsx)(s.Z,{children:(0,a.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n /** id */\n 0: number;\n /** name */\n 1: string;\n}\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n rowsAsArray: true,\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Getting users */\n const [users] = await conn.query<User[]>(\n 'SELECT * FROM `users` ORDER BY `name` ASC;'\n );\n\n users.forEach((user) => {\n console.log('-----------');\n console.log('id: ', user[0]);\n console.log('name:', user[1]);\n });\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * -----------\n * id: 4\n * name: Gween\n * -----------\n * id: 2\n * name: John\n * -----------\n * id: 1\n * name: Josh\n * -----------\n * id: 3\n * name: Marie\n */\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,r.a)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var a=n(512);const r={tabItem:"tabItem_Ymn6"};var s=n(5893);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,a.Z)(r.tabItem,o),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>k});var a=n(7294),r=n(512),s=n(2466),o=n(6550),u=n(469),l=n(1980),i=n(7392),c=n(12);function d(e){return a.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,a.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,a.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:a,default:r}}=e;return{value:t,label:n,attributes:a,default:r}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const r=(0,o.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,l._X)(s),(0,a.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(r.location.search);t.set(s,e),r.replace({...r.location,search:t.toString()})}),[s,r])]}function h(e){const{defaultValue:t,queryString:n=!1,groupId:r}=e,s=p(e),[o,l]=(0,a.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const a=n.find((e=>e.default))??n[0];if(!a)throw new Error("Unexpected error: 0 tabValues");return a.value}({defaultValue:t,tabValues:s}))),[i,d]=f({queryString:n,groupId:r}),[h,b]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[r,s]=(0,c.Nk)(n);return[r,(0,a.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:r}),w=(()=>{const e=i??h;return m({value:e,tabValues:s})?e:null})();(0,u.Z)((()=>{w&&l(w)}),[w]);return{selectedValue:o,selectValue:(0,a.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=n(2389);const w={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var y=n(5893);function v(e){let{className:t,block:n,selectedValue:a,selectValue:o,tabValues:u}=e;const l=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=l.indexOf(t),r=u[n].value;r!==a&&(i(t),o(r))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=l.indexOf(e.currentTarget)+1;t=l[n]??l[0];break}case"ArrowLeft":{const n=l.indexOf(e.currentTarget)-1;t=l[n]??l[l.length-1];break}}t?.focus()};return(0,y.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":n},t),children:u.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,y.jsx)("li",{role:"tab",tabIndex:a===t?0:-1,"aria-selected":a===t,ref:e=>l.push(e),onKeyDown:d,onClick:c,...s,className:(0,r.Z)("tabs__item",w.tabItem,s?.className,{"tabs__item--active":a===t}),children:n??t},t)}))})}function g(e){let{lazy:t,children:n,selectedValue:r}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===r));return e?(0,a.cloneElement)(e,{className:"margin-top--md"}):null}return(0,y.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,a.cloneElement)(e,{key:t,hidden:e.props.value!==r})))})}function x(e){const t=h(e);return(0,y.jsxs)("div",{className:(0,r.Z)("tabs-container",w.tabList),children:[(0,y.jsx)(v,{...e,...t}),(0,y.jsx)(g,{...e,...t})]})}function k(e){const t=(0,b.Z)();return(0,y.jsx)(x,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>u,a:()=>o});var a=n(7294);const r={},s=a.createContext(r);function o(e){const t=a.useContext(s);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function u(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),a.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5814edec.dcf7d68b.js b/assets/js/5814edec.dcf7d68b.js new file mode 100644 index 0000000000..457291315c --- /dev/null +++ b/assets/js/5814edec.dcf7d68b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3561],{3788:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>l,default:()=>m,frontMatter:()=>u,metadata:()=>i,toc:()=>d});var a=t(5893),r=t(1151),s=t(4866),o=t(5162);const u={},l="Row Data Packet (Row as Array)",i={id:"examples/typescript/row-data/row-as-array",title:"Row Data Packet (Row as Array)",description:"",source:"@site/docs/examples/typescript/row-data/01-row-as-array.mdx",sourceDirName:"examples/typescript/row-data",slug:"/examples/typescript/row-data/row-as-array",permalink:"/node-mysql2/docs/examples/typescript/row-data/row-as-array",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/row-data/01-row-as-array.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"examples",previous:{title:"Row Data Packet",permalink:"/node-mysql2/docs/examples/typescript/row-data/index"},next:{title:"Row Data Packet (Multi Statements)",permalink:"/node-mysql2/docs/examples/typescript/row-data/multi-statements"}},c={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,r.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.h1,{id:"row-data-packet-row-as-array",children:"Row Data Packet (Row as Array)"}),"\n",(0,a.jsx)(s.Z,{children:(0,a.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n /** id */\n 0: number;\n /** name */\n 1: string;\n}\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n rowsAsArray: true,\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Getting users */\n const [users] = await conn.query<User[]>(\n 'SELECT * FROM `users` ORDER BY `name` ASC;'\n );\n\n users.forEach((user) => {\n console.log('-----------');\n console.log('id: ', user[0]);\n console.log('name:', user[1]);\n });\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * -----------\n * id: 4\n * name: Gween\n * -----------\n * id: 2\n * name: John\n * -----------\n * id: 1\n * name: Josh\n * -----------\n * id: 3\n * name: Marie\n */\n"})})})})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var a=t(512);const r={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,a.Z)(r.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>k});var a=t(7294),r=t(512),s=t(2466),o=t(6550),u=t(469),l=t(1980),i=t(7392),c=t(12);function d(e){return a.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,a.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,a.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:a,default:r}}=e;return{value:n,label:t,attributes:a,default:r}}))}(t);return function(e){const n=(0,i.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const r=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,l._X)(s),(0,a.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(r.location.search);n.set(s,e),r.replace({...r.location,search:n.toString()})}),[s,r])]}function h(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,s=p(e),[o,l]=(0,a.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const a=t.find((e=>e.default))??t[0];if(!a)throw new Error("Unexpected error: 0 tabValues");return a.value}({defaultValue:n,tabValues:s}))),[i,d]=f({queryString:t,groupId:r}),[h,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,s]=(0,c.Nk)(t);return[r,(0,a.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:r}),w=(()=>{const e=i??h;return m({value:e,tabValues:s})?e:null})();(0,u.Z)((()=>{w&&l(w)}),[w]);return{selectedValue:o,selectValue:(0,a.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const w={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var y=t(5893);function v(e){let{className:n,block:t,selectedValue:a,selectValue:o,tabValues:u}=e;const l=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const n=e.currentTarget,t=l.indexOf(n),r=u[t].value;r!==a&&(i(n),o(r))},d=e=>{let n=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const t=l.indexOf(e.currentTarget)+1;n=l[t]??l[0];break}case"ArrowLeft":{const t=l.indexOf(e.currentTarget)-1;n=l[t]??l[l.length-1];break}}n?.focus()};return(0,y.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":t},n),children:u.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,y.jsx)("li",{role:"tab",tabIndex:a===n?0:-1,"aria-selected":a===n,ref:e=>l.push(e),onKeyDown:d,onClick:c,...s,className:(0,r.Z)("tabs__item",w.tabItem,s?.className,{"tabs__item--active":a===n}),children:t??n},n)}))})}function g(e){let{lazy:n,children:t,selectedValue:r}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===r));return e?(0,a.cloneElement)(e,{className:"margin-top--md"}):null}return(0,y.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,a.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function x(e){const n=h(e);return(0,y.jsxs)("div",{className:(0,r.Z)("tabs-container",w.tabList),children:[(0,y.jsx)(v,{...e,...n}),(0,y.jsx)(g,{...e,...n})]})}function k(e){const n=(0,b.Z)();return(0,y.jsx)(x,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>u,a:()=>o});var a=t(7294);const r={},s=a.createContext(r);function o(e){const n=a.useContext(s);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function u(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),a.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/59e52bc2.2b8c3e3c.js b/assets/js/59e52bc2.2b8c3e3c.js new file mode 100644 index 0000000000..dbcc2dc863 --- /dev/null +++ b/assets/js/59e52bc2.2b8c3e3c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[641],{8602:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>h,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var t=n(5893),s=n(1151),l=n(4866),a=n(5162),o=n(6393),i=n(4379);const c={sidebar_position:3,tags:["query"]},u="DELETE",d={id:"examples/queries/simple-queries/delete",title:"DELETE",description:"The examples below also work for the execute method.",source:"@site/docs/examples/queries/simple-queries/delete.mdx",sourceDirName:"examples/queries/simple-queries",slug:"/examples/queries/simple-queries/delete",permalink:"/node-mysql2/docs/examples/queries/simple-queries/delete",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/simple-queries/delete.mdx",tags:[{label:"query",permalink:"/node-mysql2/docs/tags/query"}],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3,tags:["query"]},sidebar:"examples",previous:{title:"UPDATE",permalink:"/node-mysql2/docs/examples/queries/simple-queries/update"},next:{title:"Prepared Statements",permalink:"/node-mysql2/docs/examples/queries/prepared-statements/"}},h={},p=[{value:"query(sql)",id:"querysql",level:2},{value:"query(options)",id:"queryoptions",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"QueryOptions",id:"queryoptions-1",level:3}];function m(e){const r={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.h1,{id:"delete",children:"DELETE"}),"\n",(0,t.jsxs)(r.p,{children:["The examples below also work for the ",(0,t.jsx)(r.a,{href:"/docs/examples/queries/prepared-statements/delete",children:(0,t.jsx)(r.code,{children:"execute"})})," method."]}),"\n",(0,t.jsx)(r.h2,{id:"querysql",children:"query(sql)"}),"\n",(0,t.jsxs)(r.blockquote,{children:["\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"query(sql: string)"})}),"\n"]}),"\n",(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"try {\n const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1';\n\n // highlight-next-line\n const [result, fields] = await connection.query(sql);\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"callback.js",children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1';\n\nconnection.query(sql, (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n});\n"})})})]}),"\n",(0,t.jsxs)(r.ul,{children:["\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"result"}),": contains a ",(0,t.jsx)(r.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,t.jsx)(r.admonition,{type:"info",children:(0,t.jsxs)(r.p,{children:["The connection used for the query (",(0,t.jsx)(r.code,{children:".query()"}),") can be obtained through the ",(0,t.jsx)(r.code,{children:"createConnection"}),", ",(0,t.jsx)(r.code,{children:"createPool"})," or ",(0,t.jsx)(r.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,t.jsx)(r.hr,{}),"\n",(0,t.jsx)(r.h2,{id:"queryoptions",children:"query(options)"}),"\n",(0,t.jsxs)(r.blockquote,{children:["\n",(0,t.jsx)(r.p,{children:(0,t.jsxs)(r.strong,{children:["query(options: ",(0,t.jsx)(r.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"try {\n const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1';\n\n // highlight-start\n const [result, fields] = await connection.query({\n sql,\n // ... other options\n });\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"callback.js",children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1';\n\nconnection.query(\n {\n sql,\n // ... other options\n },\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,t.jsxs)(r.ul,{children:["\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"result"}),": contains a ",(0,t.jsx)(r.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,t.jsx)(r.admonition,{type:"info",children:(0,t.jsxs)(r.p,{children:["The connection used for the query (",(0,t.jsx)(r.code,{children:".query()"}),") can be obtained through the ",(0,t.jsx)(r.code,{children:"createConnection"}),", ",(0,t.jsx)(r.code,{children:"createPool"})," or ",(0,t.jsx)(r.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,t.jsx)(r.hr,{}),"\n",(0,t.jsx)(r.h2,{id:"glossary",children:"Glossary"}),"\n",(0,t.jsx)(r.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,t.jsx)(o.Z,{title:"ResultSetHeader Specification",children:(0,t.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts",extractMethod:"ResultSetHeader",methodType:"interface"})}),"\n",(0,t.jsx)(r.h3,{id:"queryoptions-1",children:"QueryOptions"}),"\n",(0,t.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,t.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function x(e={}){const{wrapper:r}={...(0,s.a)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},5162:(e,r,n)=>{n.d(r,{Z:()=>a});n(7294);var t=n(512);const s={tabItem:"tabItem_Ymn6"};var l=n(5893);function a(e){let{children:r,hidden:n,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,t.Z)(s.tabItem,a),hidden:n,children:r})}},4866:(e,r,n)=>{n.d(r,{Z:()=>v});var t=n(7294),s=n(512),l=n(2466),a=n(6550),o=n(469),i=n(1980),c=n(7392),u=n(12);function d(e){return t.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,t.isValidElement)(e)&&function(e){const{props:r}=e;return!!r&&"object"==typeof r&&"value"in r}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:r,children:n}=e;return(0,t.useMemo)((()=>{const e=r??function(e){return d(e).map((e=>{let{props:{value:r,label:n,attributes:t,default:s}}=e;return{value:r,label:n,attributes:t,default:s}}))}(n);return function(e){const r=(0,c.l)(e,((e,r)=>e.value===r.value));if(r.length>0)throw new Error(`Docusaurus error: Duplicate values "${r.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[r,n])}function p(e){let{value:r,tabValues:n}=e;return n.some((e=>e.value===r))}function m(e){let{queryString:r=!1,groupId:n}=e;const s=(0,a.k6)(),l=function(e){let{queryString:r=!1,groupId:n}=e;if("string"==typeof r)return r;if(!1===r)return null;if(!0===r&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:r,groupId:n});return[(0,i._X)(l),(0,t.useCallback)((e=>{if(!l)return;const r=new URLSearchParams(s.location.search);r.set(l,e),s.replace({...s.location,search:r.toString()})}),[l,s])]}function x(e){const{defaultValue:r,queryString:n=!1,groupId:s}=e,l=h(e),[a,i]=(0,t.useState)((()=>function(e){let{defaultValue:r,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(r){if(!p({value:r,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${r}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return r}const t=n.find((e=>e.default))??n[0];if(!t)throw new Error("Unexpected error: 0 tabValues");return t.value}({defaultValue:r,tabValues:l}))),[c,d]=m({queryString:n,groupId:s}),[x,f]=function(e){let{groupId:r}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(r),[s,l]=(0,u.Nk)(n);return[s,(0,t.useCallback)((e=>{n&&l.set(e)}),[n,l])]}({groupId:s}),b=(()=>{const e=c??x;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{b&&i(b)}),[b]);return{selectedValue:a,selectValue:(0,t.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),f(e)}),[d,f,l]),tabValues:l}}var f=n(2389);const b={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=n(5893);function j(e){let{className:r,block:n,selectedValue:t,selectValue:a,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,l.o5)(),u=e=>{const r=e.currentTarget,n=i.indexOf(r),s=o[n].value;s!==t&&(c(r),a(s))},d=e=>{let r=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const n=i.indexOf(e.currentTarget)+1;r=i[n]??i[0];break}case"ArrowLeft":{const n=i.indexOf(e.currentTarget)-1;r=i[n]??i[i.length-1];break}}r?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":n},r),children:o.map((e=>{let{value:r,label:n,attributes:l}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:t===r?0:-1,"aria-selected":t===r,ref:e=>i.push(e),onKeyDown:d,onClick:u,...l,className:(0,s.Z)("tabs__item",b.tabItem,l?.className,{"tabs__item--active":t===r}),children:n??r},r)}))})}function y(e){let{lazy:r,children:n,selectedValue:s}=e;const l=(Array.isArray(n)?n:[n]).filter(Boolean);if(r){const e=l.find((e=>e.props.value===s));return e?(0,t.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:l.map(((e,r)=>(0,t.cloneElement)(e,{key:r,hidden:e.props.value!==s})))})}function q(e){const r=x(e);return(0,g.jsxs)("div",{className:(0,s.Z)("tabs-container",b.tabList),children:[(0,g.jsx)(j,{...e,...r}),(0,g.jsx)(y,{...e,...r})]})}function v(e){const r=(0,f.Z)();return(0,g.jsx)(q,{...e,children:d(e.children)},String(r))}},4379:(e,r,n)=>{n.d(r,{I:()=>i});var t=n(7294),s=n(2263),l=n(9286),a=n(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),i=e=>{let{url:r,language:n,extractMethod:i,methodType:c}=e;const[u,d]=(0,t.useState)(""),[h,p]=(0,t.useState)(!0),[m,x]=(0,t.useState)(!0),{siteConfig:f}=(0,s.Z)(),b=f.baseUrl.replace(/\/$/,""),g=/^\//.test(r)?`${b}${r}`:r;return(0,t.useEffect)((()=>{const e=new AbortController,r=e.signal;return fetch(g,{signal:r}).then((e=>e.text())).then((e=>{const r=i&&c?((e,r,n)=>{const t=e.split("\n"),s=`${n} ${r}`;let l=!1,a=0,o="";for(const i of t)if(i.includes(s)&&(l=!0),l&&(i.includes("{")&&a++,o+=i+"\n",i.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,i,c):e;d(r||e),p(!1),x(!1)})).catch((()=>{x(!0),p(!1)})),()=>{e.abort()}}),[g,i,c]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:m?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:g}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${n}`,children:u})})})}},6393:(e,r,n)=>{n.d(r,{Z:()=>l});var t=n(4673),s=n(5893);const l=e=>{let{children:r,open:n,title:l}=e;return(0,s.jsx)(t.Z,{open:n,className:"faq",summary:(0,s.jsx)("summary",{children:(0,s.jsx)("strong",{children:l})}),children:(0,s.jsx)("section",{children:r})})}}}]); \ No newline at end of file diff --git a/assets/js/75b440d9.c009f4a3.js b/assets/js/75b440d9.c009f4a3.js deleted file mode 100644 index a7034550a7..0000000000 --- a/assets/js/75b440d9.c009f4a3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9521],{3083:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>i,contentTitle:()=>u,default:()=>m,frontMatter:()=>o,metadata:()=>c,toc:()=>d});var n=r(5893),s=r(1151),a=r(4866),l=r(5162);const o={},u="Select Over SSL",c={id:"examples/ssl/select-over-ssl",title:"Select Over SSL",description:"- See examples/ssl/certs.",source:"@site/docs/examples/ssl/select-over-ssl.mdx",sourceDirName:"examples/ssl",slug:"/examples/ssl/select-over-ssl",permalink:"/node-mysql2/docs/examples/ssl/select-over-ssl",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/ssl/select-over-ssl.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"RDS SSL",permalink:"/node-mysql2/docs/examples/ssl/rds-ssl"},next:{title:"TypeScript",permalink:"/node-mysql2/docs/category/typescript"}},i={},d=[];function p(e){const t={a:"a",code:"code",h1:"h1",li:"li",pre:"pre",ul:"ul",...(0,s.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h1,{id:"select-over-ssl",children:"Select Over SSL"}),"\n",(0,n.jsx)(a.Z,{children:(0,n.jsx)(l.Z,{value:"index.js",default:!0,children:(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst fs = require('fs');\nconst mysql = require('mysql2');\n\nconst conn = mysql.createConnection({\n user: 'root',\n password: '',\n database: 'test',\n host: '127.0.0.1',\n port: '3306',\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n});\n\nconn.query('select 1+1 as test', function (err, res) {\n console.log(res);\n conn.query('select repeat(\"a\", 100) as test', function (err, res) {\n console.log(res);\n });\n});\n"})})})}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:["See ",(0,n.jsx)(t.a,{href:"https://github.com/sidorares/node-mysql2/tree/master/examples/ssl/certs",children:"examples/ssl/certs"}),"."]}),"\n"]})]})}function m(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},5162:(e,t,r)=>{r.d(t,{Z:()=>l});r(7294);var n=r(512);const s={tabItem:"tabItem_Ymn6"};var a=r(5893);function l(e){let{children:t,hidden:r,className:l}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,n.Z)(s.tabItem,l),hidden:r,children:t})}},4866:(e,t,r)=>{r.d(t,{Z:()=>w});var n=r(7294),s=r(512),a=r(2466),l=r(6550),o=r(469),u=r(1980),c=r(7392),i=r(12);function d(e){return n.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,n.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:r}=e;return(0,n.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:r,attributes:n,default:s}}=e;return{value:t,label:r,attributes:n,default:s}}))}(r);return function(e){const t=(0,c.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,r])}function m(e){let{value:t,tabValues:r}=e;return r.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:r}=e;const s=(0,l.k6)(),a=function(e){let{queryString:t=!1,groupId:r}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!r)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return r??null}({queryString:t,groupId:r});return[(0,u._X)(a),(0,n.useCallback)((e=>{if(!a)return;const t=new URLSearchParams(s.location.search);t.set(a,e),s.replace({...s.location,search:t.toString()})}),[a,s])]}function h(e){const{defaultValue:t,queryString:r=!1,groupId:s}=e,a=p(e),[l,u]=(0,n.useState)((()=>function(e){let{defaultValue:t,tabValues:r}=e;if(0===r.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:r}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${r.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const n=r.find((e=>e.default))??r[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:t,tabValues:a}))),[c,d]=f({queryString:r,groupId:s}),[h,b]=function(e){let{groupId:t}=e;const r=function(e){return e?`docusaurus.tab.${e}`:null}(t),[s,a]=(0,i.Nk)(r);return[s,(0,n.useCallback)((e=>{r&&a.set(e)}),[r,a])]}({groupId:s}),v=(()=>{const e=c??h;return m({value:e,tabValues:a})?e:null})();(0,o.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:l,selectValue:(0,n.useCallback)((e=>{if(!m({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,a]),tabValues:a}}var b=r(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=r(5893);function y(e){let{className:t,block:r,selectedValue:n,selectValue:l,tabValues:o}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,a.o5)(),i=e=>{const t=e.currentTarget,r=u.indexOf(t),s=o[r].value;s!==n&&(c(t),l(s))},d=e=>{let t=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const r=u.indexOf(e.currentTarget)+1;t=u[r]??u[0];break}case"ArrowLeft":{const r=u.indexOf(e.currentTarget)-1;t=u[r]??u[u.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":r},t),children:o.map((e=>{let{value:t,label:r,attributes:a}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:n===t?0:-1,"aria-selected":n===t,ref:e=>u.push(e),onKeyDown:d,onClick:i,...a,className:(0,s.Z)("tabs__item",v.tabItem,a?.className,{"tabs__item--active":n===t}),children:r??t},t)}))})}function g(e){let{lazy:t,children:r,selectedValue:s}=e;const a=(Array.isArray(r)?r:[r]).filter(Boolean);if(t){const e=a.find((e=>e.props.value===s));return e?(0,n.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:a.map(((e,t)=>(0,n.cloneElement)(e,{key:t,hidden:e.props.value!==s})))})}function S(e){const t=h(e);return(0,x.jsxs)("div",{className:(0,s.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(y,{...e,...t}),(0,x.jsx)(g,{...e,...t})]})}function w(e){const t=(0,b.Z)();return(0,x.jsx)(S,{...e,children:d(e.children)},String(t))}},1151:(e,t,r)=>{r.d(t,{Z:()=>o,a:()=>l});var n=r(7294);const s={},a=n.createContext(s);function l(e){const t=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:l(e.components),n.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/76dfa484.7a147334.js b/assets/js/76dfa484.7a147334.js deleted file mode 100644 index 3d902766cd..0000000000 --- a/assets/js/76dfa484.7a147334.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3433],{7345:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>i,default:()=>h,frontMatter:()=>c,metadata:()=>u,toc:()=>m});var r=s(5893),t=s(1151),o=s(4866),a=s(5162),l=s(4442);const c={slug:"/examples",title:"Introduction"},i="Examples",u={id:"examples/index",title:"Introduction",description:"Simple SELECT",source:"@site/docs/examples/00-index.mdx",sourceDirName:"examples",slug:"/examples",permalink:"/node-mysql2/docs/examples",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/00-index.mdx",tags:[],version:"current",sidebarPosition:0,frontMatter:{slug:"/examples",title:"Introduction"},sidebar:"examples",next:{title:"Binlog Watcher",permalink:"/node-mysql2/docs/examples/binlog-watcher"}},d={},m=[{value:"Simple <code>SELECT</code>",id:"simple-select",level:2},{value:"Prepared Statement and Parameters",id:"prepared-statement-and-parameters",level:2},{value:"Connecting over encrypted connection",id:"connecting-over-encrypted-connection",level:2},{value:"Simple MySQL proxy server",id:"simple-mysql-proxy-server",level:2},{value:"Examples using MySQL server API",id:"examples-using-mysql-server-api",level:2}];function p(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",hr:"hr",li:"li",p:"p",pre:"pre",ul:"ul",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.V,{title:"Examples"}),"\n",(0,r.jsx)(n.h1,{id:"examples",children:"Examples"}),"\n",(0,r.jsxs)(n.h2,{id:"simple-select",children:["Simple ",(0,r.jsx)(n.code,{children:"SELECT"})]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(a.Z,{value:"Promise",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nconst connection = await mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\nconst [rows] = await connection.query('SELECT 1+1 AS `test1`');\n// ...\n"})})}),(0,r.jsx)(a.Z,{value:"Callback",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\nconnection.query('SELECT 1+1 AS `test1`', (err, rows) => {\n // ...\n});\n"})})})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"prepared-statement-and-parameters",children:"Prepared Statement and Parameters"}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(a.Z,{value:"Promise",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nconst connection = await mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\nconst [rows] = await connection.execute('SELECT 1+? AS `test1`', [10]);\n// ...\n"})})}),(0,r.jsx)(a.Z,{value:"Callback",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\nconnection.execute('SELECT 1+? as test1', [10], (err, rows) => {\n // ...\n});\n"})})})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"connecting-over-encrypted-connection",children:"Connecting over encrypted connection"}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(a.Z,{value:"Promise",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import fs from 'fs';\nimport mysql from 'mysql2/promise';\n\nconst connection = await mysql.createConnection({\n user: 'test',\n database: 'test',\n ssl: {\n key: fs.readFileSync('./certs/client-key.pem'),\n cert: fs.readFileSync('./certs/client-cert.pem'),\n },\n});\n\nconsole.log(await connection.query('SELECT 1+1 AS `test1`'));\n"})})}),(0,r.jsx)(a.Z,{value:"Callback",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const fs = require('fs');\nconst mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n user: 'test',\n database: 'test',\n ssl: {\n key: fs.readFileSync('./certs/client-key.pem'),\n cert: fs.readFileSync('./certs/client-cert.pem'),\n },\n});\n\nconnection.query('SELECT 1+1 AS `test1`', console.log);\n"})})})]}),"\n",(0,r.jsxs)(n.p,{children:["You can use 'Amazon RDS' string as value to ssl property to connect to Amazon RDS mysql over ssl (in that case ",(0,r.jsx)(n.a,{href:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem",children:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem"})," CA cert is used)"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(a.Z,{value:"Promise",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n const connection = await mysql.createConnection({\n user: 'foo',\n password: 'bar',\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n });\n\n const [res] = await connection.query(\"SHOW `status` LIKE 'Ssl_cipher'\");\n\n console.log(res);\n connection.end();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(a.Z,{value:"Callback",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n user: 'foo',\n password: 'bar',\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n});\n\nconnection.query(\"SHOW `status` LIKE 'Ssl_cipher'\", (err, res) => {\n console.log(err, res);\n connection.end();\n});\n"})})})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"simple-mysql-proxy-server",children:"Simple MySQL proxy server"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst server = mysql.createServer();\nserver.listen(3307);\nserver.on('connection', (conn) => {\n console.log('connection');\n\n conn.serverHandshake({\n protocolVersion: 10,\n serverVersion: 'node.js rocks',\n connectionId: 1234,\n statusFlags: 2,\n characterSet: 8,\n capabilityFlags: 0xffffff,\n });\n\n conn.on('field_list', (table, fields) => {\n console.log('field list:', table, fields);\n conn.writeEof();\n });\n\n const remote = mysql.createConnection({\n user: 'root',\n database: 'dbname',\n host: 'server.example.com',\n password: 'secret',\n });\n\n conn.on('query', (sql) => {\n console.log(`proxying query: ${sql}`);\n remote.query(sql, function (err) {\n // overloaded args, either (err, result :object)\n // or (err, rows :array, columns :array)\n if (Array.isArray(arguments[1])) {\n // response to a 'select', 'show' or similar\n const rows = arguments[1],\n columns = arguments[2];\n console.log('rows', rows);\n console.log('columns', columns);\n conn.writeTextResult(rows, columns);\n } else {\n // response to an 'insert', 'update' or 'delete'\n const result = arguments[1];\n console.log('result', result);\n conn.writeOk(result);\n }\n });\n });\n\n conn.on('end', remote.end.bind(remote));\n});\n"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"examples-using-mysql-server-api",children:"Examples using MySQL server API"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://github.com/sidorares/mysql-pg-proxy",children:"MySQL-pg-proxy"})," - MySQL to Postgres proxy server."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://github.com/sidorares/mysqlite.js",children:"MySQLite.js"})," - MySQL server with JS-only (emscripten compiled) sqlite backend."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://github.com/eugeneware/sql-engine",children:"SQL-engine"})," - MySQL server with LevelDB backend."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://github.com/sidorares/mysql-osquery-proxy",children:"MySQL-osquery-proxy"})," - Connect to ",(0,r.jsx)(n.a,{href:"https://osquery.io/",children:"facebook osquery"})," using MySQL client"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://github.com/implydata/plyql",children:"PlyQL"})," - Connect to ",(0,r.jsx)(n.a,{href:"https://druid.io/",children:"Druid"})," using MySQL client"]}),"\n"]})]})}function h(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,s)=>{s.d(n,{Z:()=>a});s(7294);var r=s(512);const t={tabItem:"tabItem_Ymn6"};var o=s(5893);function a(e){let{children:n,hidden:s,className:a}=e;return(0,o.jsx)("div",{role:"tabpanel",className:(0,r.Z)(t.tabItem,a),hidden:s,children:n})}},4866:(e,n,s)=>{s.d(n,{Z:()=>q});var r=s(7294),t=s(512),o=s(2466),a=s(6550),l=s(469),c=s(1980),i=s(7392),u=s(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:s}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:s,attributes:r,default:t}}=e;return{value:n,label:s,attributes:r,default:t}}))}(s);return function(e){const n=(0,i.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,s])}function p(e){let{value:n,tabValues:s}=e;return s.some((e=>e.value===n))}function h(e){let{queryString:n=!1,groupId:s}=e;const t=(0,a.k6)(),o=function(e){let{queryString:n=!1,groupId:s}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!s)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:n,groupId:s});return[(0,c._X)(o),(0,r.useCallback)((e=>{if(!o)return;const n=new URLSearchParams(t.location.search);n.set(o,e),t.replace({...t.location,search:n.toString()})}),[o,t])]}function y(e){const{defaultValue:n,queryString:s=!1,groupId:t}=e,o=m(e),[a,c]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:s}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=s.find((e=>e.default))??s[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:o}))),[i,d]=h({queryString:s,groupId:t}),[y,x]=function(e){let{groupId:n}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(n),[t,o]=(0,u.Nk)(s);return[t,(0,r.useCallback)((e=>{s&&o.set(e)}),[s,o])]}({groupId:t}),f=(()=>{const e=i??y;return p({value:e,tabValues:o})?e:null})();(0,l.Z)((()=>{f&&c(f)}),[f]);return{selectedValue:a,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:o}))throw new Error(`Can't select invalid tab value=${e}`);c(e),d(e),x(e)}),[d,x,o]),tabValues:o}}var x=s(2389);const f={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var b=s(5893);function g(e){let{className:n,block:s,selectedValue:r,selectValue:a,tabValues:l}=e;const c=[],{blockElementScrollPositionUntilNextRender:i}=(0,o.o5)(),u=e=>{const n=e.currentTarget,s=c.indexOf(n),t=l[s].value;t!==r&&(i(n),a(t))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const s=c.indexOf(e.currentTarget)+1;n=c[s]??c[0];break}case"ArrowLeft":{const s=c.indexOf(e.currentTarget)-1;n=c[s]??c[c.length-1];break}}n?.focus()};return(0,b.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,t.Z)("tabs",{"tabs--block":s},n),children:l.map((e=>{let{value:n,label:s,attributes:o}=e;return(0,b.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>c.push(e),onKeyDown:d,onClick:u,...o,className:(0,t.Z)("tabs__item",f.tabItem,o?.className,{"tabs__item--active":r===n}),children:s??n},n)}))})}function v(e){let{lazy:n,children:s,selectedValue:t}=e;const o=(Array.isArray(s)?s:[s]).filter(Boolean);if(n){const e=o.find((e=>e.props.value===t));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,b.jsx)("div",{className:"margin-top--md",children:o.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function j(e){const n=y(e);return(0,b.jsxs)("div",{className:(0,t.Z)("tabs-container",f.tabList),children:[(0,b.jsx)(g,{...e,...n}),(0,b.jsx)(v,{...e,...n})]})}function q(e){const n=(0,x.Z)();return(0,b.jsx)(j,{...e,children:d(e.children)},String(n))}},4442:(e,n,s)=>{s.d(n,{V:()=>o});var r=s(5742),t=s(5893);const o=e=>{let{title:n}=e;return(0,t.jsx)(r.Z,{children:(0,t.jsx)("title",{children:n})})}},1151:(e,n,s)=>{s.d(n,{Z:()=>l,a:()=>a});var r=s(7294);const t={},o=r.createContext(t);function a(e){const n=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/76dfa484.abc20e14.js b/assets/js/76dfa484.abc20e14.js new file mode 100644 index 0000000000..b85b9d3d0a --- /dev/null +++ b/assets/js/76dfa484.abc20e14.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3433],{7345:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>o,default:()=>p,frontMatter:()=>l,metadata:()=>i,toc:()=>c});var r=n(5893),s=n(1151),a=(n(4866),n(5162),n(4442));const l={slug:"/examples",title:"Introduction"},o="Examples",i={id:"examples/index",title:"Introduction",description:"To explore the examples, please use the sidebar navigation on desktop or access the menu on mobile devices.",source:"@site/docs/examples/00-index.mdx",sourceDirName:"examples",slug:"/examples",permalink:"/node-mysql2/docs/examples",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/00-index.mdx",tags:[],version:"current",sidebarPosition:0,frontMatter:{slug:"/examples",title:"Introduction"},sidebar:"examples",next:{title:"createConnection",permalink:"/node-mysql2/docs/examples/connections/create-connection"}},u={},c=[{value:"Examples using MySQL server API",id:"examples-using-mysql-server-api",level:2}];function d(e){const t={a:"a",admonition:"admonition",h1:"h1",h2:"h2",li:"li",p:"p",strong:"strong",ul:"ul",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.V,{title:"Examples"}),"\n",(0,r.jsx)(t.h1,{id:"examples",children:"Examples"}),"\n",(0,r.jsx)(t.admonition,{type:"tip",children:(0,r.jsxs)(t.p,{children:["To explore the examples, please use the ",(0,r.jsx)(t.strong,{children:"sidebar navigation"})," on desktop or access the ",(0,r.jsx)(t.strong,{children:"menu"})," on mobile devices."]})}),"\n",(0,r.jsx)(t.h2,{id:"examples-using-mysql-server-api",children:"Examples using MySQL server API"}),"\n",(0,r.jsxs)(t.ul,{children:["\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.a,{href:"https://github.com/sidorares/mysql-pg-proxy",children:"MySQL-pg-proxy"})," - MySQL to Postgres proxy server."]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.a,{href:"https://github.com/sidorares/mysqlite.js",children:"MySQLite.js"})," - MySQL server with JS-only (emscripten compiled) sqlite backend."]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.a,{href:"https://github.com/eugeneware/sql-engine",children:"SQL-engine"})," - MySQL server with LevelDB backend."]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.a,{href:"https://github.com/sidorares/mysql-osquery-proxy",children:"MySQL-osquery-proxy"})," - Connect to ",(0,r.jsx)(t.a,{href:"https://osquery.io/",children:"facebook osquery"})," using MySQL client"]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.a,{href:"https://github.com/implydata/plyql",children:"PlyQL"})," - Connect to ",(0,r.jsx)(t.a,{href:"https://druid.io/",children:"Druid"})," using MySQL client"]}),"\n"]})]})}function p(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var r=n(512);const s={tabItem:"tabItem_Ymn6"};var a=n(5893);function l(e){let{children:t,hidden:n,className:l}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,r.Z)(s.tabItem,l),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(7294),s=n(512),a=n(2466),l=n(6550),o=n(469),i=n(1980),u=n(7392),c=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:s}}=e;return{value:t,label:n,attributes:r,default:s}}))}(n);return function(e){const t=(0,u.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function h(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function m(e){let{queryString:t=!1,groupId:n}=e;const s=(0,l.k6)(),a=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,i._X)(a),(0,r.useCallback)((e=>{if(!a)return;const t=new URLSearchParams(s.location.search);t.set(a,e),s.replace({...s.location,search:t.toString()})}),[a,s])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:s}=e,a=p(e),[l,i]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!h({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:a}))),[u,d]=m({queryString:n,groupId:s}),[b,f]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[s,a]=(0,c.Nk)(n);return[s,(0,r.useCallback)((e=>{n&&a.set(e)}),[n,a])]}({groupId:s}),x=(()=>{const e=u??b;return h({value:e,tabValues:a})?e:null})();(0,o.Z)((()=>{x&&i(x)}),[x]);return{selectedValue:l,selectValue:(0,r.useCallback)((e=>{if(!h({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),f(e)}),[d,f,a]),tabValues:a}}var f=n(2389);const x={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=n(5893);function g(e){let{className:t,block:n,selectedValue:r,selectValue:l,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:u}=(0,a.o5)(),c=e=>{const t=e.currentTarget,n=i.indexOf(t),s=o[n].value;s!==r&&(u(t),l(s))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=i.indexOf(e.currentTarget)+1;t=i[n]??i[0];break}case"ArrowLeft":{const n=i.indexOf(e.currentTarget)-1;t=i[n]??i[i.length-1];break}}t?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:a}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>i.push(e),onKeyDown:d,onClick:c,...a,className:(0,s.Z)("tabs__item",x.tabItem,a?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function y(e){let{lazy:t,children:n,selectedValue:s}=e;const a=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=a.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:a.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==s})))})}function j(e){const t=b(e);return(0,v.jsxs)("div",{className:(0,s.Z)("tabs-container",x.tabList),children:[(0,v.jsx)(g,{...e,...t}),(0,v.jsx)(y,{...e,...t})]})}function w(e){const t=(0,f.Z)();return(0,v.jsx)(j,{...e,children:d(e.children)},String(t))}},4442:(e,t,n)=>{n.d(t,{V:()=>a});var r=n(5742),s=n(5893);const a=e=>{let{title:t}=e;return(0,s.jsx)(r.Z,{children:(0,s.jsx)("title",{children:t})})}},1151:(e,t,n)=>{n.d(t,{Z:()=>o,a:()=>l});var r=n(7294);const s={},a=r.createContext(s);function l(e){const t=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:l(e.components),r.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/76e64282.205811b1.js b/assets/js/76e64282.205811b1.js deleted file mode 100644 index 5f2a4f69a6..0000000000 --- a/assets/js/76e64282.205811b1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9416],{743:e=>{e.exports=JSON.parse('{"title":"Procedure Call Packet","slug":"/category/procedure-call-packet","permalink":"/node-mysql2/docs/category/procedure-call-packet","navigation":{"previous":{"title":"Basic Custom Class","permalink":"/node-mysql2/docs/examples/typescript/basic-custom-class"},"next":{"title":"Procedure Call Packet","permalink":"/node-mysql2/docs/examples/typescript/procedure-call/procedure-call-packet"}}}')}}]); \ No newline at end of file diff --git a/assets/js/7ccab252.53d7e12b.js b/assets/js/7ccab252.53d7e12b.js new file mode 100644 index 0000000000..083a7a7911 --- /dev/null +++ b/assets/js/7ccab252.53d7e12b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8054],{3467:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>i,default:()=>o,frontMatter:()=>a,metadata:()=>d,toc:()=>l});var n=t(5893),r=t(1151);const a={},i="Prepared Statements",d={id:"examples/queries/prepared-statements/index",title:"Prepared Statements",description:"MySQL2 provides execute helper which will prepare and query the statement.",source:"@site/docs/examples/queries/prepared-statements/index.mdx",sourceDirName:"examples/queries/prepared-statements",slug:"/examples/queries/prepared-statements/",permalink:"/node-mysql2/docs/examples/queries/prepared-statements/",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/prepared-statements/index.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"DELETE",permalink:"/node-mysql2/docs/examples/queries/simple-queries/delete"},next:{title:"INSERT",permalink:"/node-mysql2/docs/examples/queries/prepared-statements/insert"}},c={},l=[];function p(e){const s={a:"a",admonition:"admonition",code:"code",h1:"h1",hr:"hr",input:"input",li:"li",p:"p",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.h1,{id:"prepared-statements",children:"Prepared Statements"}),"\n",(0,n.jsxs)(s.p,{children:["MySQL2 provides ",(0,n.jsx)(s.code,{children:"execute"})," helper which will prepare and query the statement.\nYou can also manually prepare / unprepare statement with ",(0,n.jsx)(s.code,{children:"prepare"})," / ",(0,n.jsx)(s.code,{children:"unprepare"})," methods."]}),"\n",(0,n.jsxs)(s.p,{children:["See detailed documentaion in ",(0,n.jsx)(s.a,{href:"/docs/documentation/prepared-statements",children:"Prepared Statements"}),"."]}),"\n",(0,n.jsx)(s.admonition,{type:"tip",children:(0,n.jsxs)(s.p,{children:["If you execute same statement again, it will be picked form a ",(0,n.jsx)(s.strong,{children:"LRU cache"})," which will save query preparation time and give better performance."]})}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.p,{children:"Usage examples:"}),"\n",(0,n.jsxs)(s.ul,{className:"contains-task-list",children:["\n",(0,n.jsxs)(s.li,{className:"task-list-item",children:[(0,n.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,n.jsx)(s.a,{href:"/docs/examples/queries/prepared-statements/insert",children:(0,n.jsx)(s.strong,{children:"INSERT"})})]}),"\n",(0,n.jsxs)(s.li,{className:"task-list-item",children:[(0,n.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,n.jsx)(s.a,{href:"/docs/examples/queries/prepared-statements/select",children:(0,n.jsx)(s.strong,{children:"SELECT"})})]}),"\n",(0,n.jsxs)(s.li,{className:"task-list-item",children:[(0,n.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,n.jsx)(s.a,{href:"/docs/examples/queries/prepared-statements/update",children:(0,n.jsx)(s.strong,{children:"UPDATE"})})]}),"\n",(0,n.jsxs)(s.li,{className:"task-list-item",children:[(0,n.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,n.jsx)(s.a,{href:"/docs/examples/queries/prepared-statements/delete",children:(0,n.jsx)(s.strong,{children:"DELETE"})})]}),"\n"]})]})}function o(e={}){const{wrapper:s}={...(0,r.a)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},1151:(e,s,t)=>{t.d(s,{Z:()=>d,a:()=>i});var n=t(7294);const r={},a=n.createContext(r);function i(e){const s=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),n.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/7fbd6b3a.b2a4ea36.js b/assets/js/7fbd6b3a.b2a4ea36.js new file mode 100644 index 0000000000..964d33c3b0 --- /dev/null +++ b/assets/js/7fbd6b3a.b2a4ea36.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9964],{8937:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>m,frontMatter:()=>i,metadata:()=>d,toc:()=>p});var r=s(5893),t=s(1151),l=s(4866),a=s(5162),o=s(6393),c=s(4379);const i={sidebar_position:1,tags:["Prepared Statements","Placeholders","Parameters","execute"]},u="SELECT",d={id:"examples/queries/prepared-statements/select",title:"SELECT",description:"execute(sql, values)",source:"@site/docs/examples/queries/prepared-statements/select.mdx",sourceDirName:"examples/queries/prepared-statements",slug:"/examples/queries/prepared-statements/select",permalink:"/node-mysql2/docs/examples/queries/prepared-statements/select",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/prepared-statements/select.mdx",tags:[{label:"Prepared Statements",permalink:"/node-mysql2/docs/tags/prepared-statements"},{label:"Placeholders",permalink:"/node-mysql2/docs/tags/placeholders"},{label:"Parameters",permalink:"/node-mysql2/docs/tags/parameters"},{label:"execute",permalink:"/node-mysql2/docs/tags/execute"}],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,tags:["Prepared Statements","Placeholders","Parameters","execute"]},sidebar:"examples",previous:{title:"INSERT",permalink:"/node-mysql2/docs/examples/queries/prepared-statements/insert"},next:{title:"UPDATE",permalink:"/node-mysql2/docs/examples/queries/prepared-statements/update"}},h={},p=[{value:"execute(sql, values)",id:"executesql-values",level:2},{value:"execute(options)",id:"executeoptions",level:2},{value:"execute(options, values)",id:"executeoptions-values",level:2},{value:"Glossary",id:"glossary",level:2},{value:"QueryOptions",id:"queryoptions",level:3}];function x(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"select",children:"SELECT"}),"\n",(0,r.jsx)(n.h2,{id:"executesql-values",children:"execute(sql, values)"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:"execute(sql: string, values: any[])"})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';\n const values = ['Page', 45];\n\n // highlight-next-line\n const [rows, fields] = await connection.execute(sql, values);\n\n console.log(rows);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(a.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';\nconst values = ['Page', 45];\n\nconnection.execute(sql, values, (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows);\n console.log(fields);\n});\n"})})})]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"rows"})," contains rows returned by server"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"fields"})," contains extra meta data about rows, if available"]}),"\n"]}),"\n",(0,r.jsx)(n.admonition,{type:"info",children:(0,r.jsxs)(n.p,{children:["The connection used for the query (",(0,r.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,r.jsx)(n.code,{children:"createConnection"}),", ",(0,r.jsx)(n.code,{children:"createPool"})," or ",(0,r.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"executeoptions",children:"execute(options)"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["execute(options: ",(0,r.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';\n const values = ['Page', 45];\n\n // highlight-start\n const [rows, fields] = await connection.execute({\n sql,\n values,\n // ... other options\n });\n // highlight-end\n\n console.log(rows);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(a.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';\nconst values = ['Page', 45];\n\nconnection.execute(\n {\n sql,\n values,\n // ... other options\n },\n (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"rows"})," contains rows returned by server"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"fields"})," contains extra meta data about rows, if available"]}),"\n"]}),"\n",(0,r.jsx)(n.admonition,{type:"info",children:(0,r.jsxs)(n.p,{children:["The connection used for the query (",(0,r.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,r.jsx)(n.code,{children:"createConnection"}),", ",(0,r.jsx)(n.code,{children:"createPool"})," or ",(0,r.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"executeoptions-values",children:"execute(options, values)"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["execute(options: ",(0,r.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),", values: any[])"]})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';\n const values = ['Page', 45];\n\n // highlight-start\n const [rows, fields] = await connection.execute(\n {\n sql,\n // ... other options\n },\n values\n );\n // highlight-end\n\n console.log(rows);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(a.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';\nconst values = ['Page', 45];\n\nconnection.execute(\n {\n sql,\n // ... other options\n },\n values,\n (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"rows"})," contains rows returned by server"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"fields"})," contains extra meta data about rows, if available"]}),"\n"]}),"\n",(0,r.jsx)(n.admonition,{type:"info",children:(0,r.jsxs)(n.p,{children:["The connection used for the query (",(0,r.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,r.jsx)(n.code,{children:"createConnection"}),", ",(0,r.jsx)(n.code,{children:"createPool"})," or ",(0,r.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,r.jsx)(n.h3,{id:"queryoptions",children:"QueryOptions"}),"\n",(0,r.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,r.jsx)(c.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function m(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(x,{...e})}):x(e)}},5162:(e,n,s)=>{s.d(n,{Z:()=>a});s(7294);var r=s(512);const t={tabItem:"tabItem_Ymn6"};var l=s(5893);function a(e){let{children:n,hidden:s,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,r.Z)(t.tabItem,a),hidden:s,children:n})}},4866:(e,n,s)=>{s.d(n,{Z:()=>q});var r=s(7294),t=s(512),l=s(2466),a=s(6550),o=s(469),c=s(1980),i=s(7392),u=s(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:s}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:s,attributes:r,default:t}}=e;return{value:n,label:s,attributes:r,default:t}}))}(s);return function(e){const n=(0,i.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,s])}function p(e){let{value:n,tabValues:s}=e;return s.some((e=>e.value===n))}function x(e){let{queryString:n=!1,groupId:s}=e;const t=(0,a.k6)(),l=function(e){let{queryString:n=!1,groupId:s}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!s)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:n,groupId:s});return[(0,c._X)(l),(0,r.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(t.location.search);n.set(l,e),t.replace({...t.location,search:n.toString()})}),[l,t])]}function m(e){const{defaultValue:n,queryString:s=!1,groupId:t}=e,l=h(e),[a,c]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:s}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=s.find((e=>e.default))??s[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:l}))),[i,d]=x({queryString:s,groupId:t}),[m,g]=function(e){let{groupId:n}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(n),[t,l]=(0,u.Nk)(s);return[t,(0,r.useCallback)((e=>{s&&l.set(e)}),[s,l])]}({groupId:t}),j=(()=>{const e=i??m;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{j&&c(j)}),[j]);return{selectedValue:a,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);c(e),d(e),g(e)}),[d,g,l]),tabValues:l}}var g=s(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=s(5893);function b(e){let{className:n,block:s,selectedValue:r,selectValue:a,tabValues:o}=e;const c=[],{blockElementScrollPositionUntilNextRender:i}=(0,l.o5)(),u=e=>{const n=e.currentTarget,s=c.indexOf(n),t=o[s].value;t!==r&&(i(n),a(t))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const s=c.indexOf(e.currentTarget)+1;n=c[s]??c[0];break}case"ArrowLeft":{const s=c.indexOf(e.currentTarget)-1;n=c[s]??c[c.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,t.Z)("tabs",{"tabs--block":s},n),children:o.map((e=>{let{value:n,label:s,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>c.push(e),onKeyDown:d,onClick:u,...l,className:(0,t.Z)("tabs__item",j.tabItem,l?.className,{"tabs__item--active":r===n}),children:s??n},n)}))})}function v(e){let{lazy:n,children:s,selectedValue:t}=e;const l=(Array.isArray(s)?s:[s]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===t));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function y(e){const n=m(e);return(0,f.jsxs)("div",{className:(0,t.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(b,{...e,...n}),(0,f.jsx)(v,{...e,...n})]})}function q(e){const n=(0,g.Z)();return(0,f.jsx)(y,{...e,children:d(e.children)},String(n))}},4379:(e,n,s)=>{s.d(n,{I:()=>c});var r=s(7294),t=s(2263),l=s(9286),a=s(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),c=e=>{let{url:n,language:s,extractMethod:c,methodType:i}=e;const[u,d]=(0,r.useState)(""),[h,p]=(0,r.useState)(!0),[x,m]=(0,r.useState)(!0),{siteConfig:g}=(0,t.Z)(),j=g.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,r.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=c&&i?((e,n,s)=>{const r=e.split("\n"),t=`${s} ${n}`;let l=!1,a=0,o="";for(const c of r)if(c.includes(t)&&(l=!0),l&&(c.includes("{")&&a++,o+=c+"\n",c.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,c,i):e;d(n||e),p(!1),m(!1)})).catch((()=>{m(!0),p(!1)})),()=>{e.abort()}}),[f,c,i]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:x?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${s}`,children:u})})})}},6393:(e,n,s)=>{s.d(n,{Z:()=>l});var r=s(4673),t=s(5893);const l=e=>{let{children:n,open:s,title:l}=e;return(0,t.jsx)(r.Z,{open:s,className:"faq",summary:(0,t.jsx)("summary",{children:(0,t.jsx)("strong",{children:l})}),children:(0,t.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/assets/js/8b8ccc10.1c3b82e9.js b/assets/js/8b8ccc10.1c3b82e9.js new file mode 100644 index 0000000000..e6c661f578 --- /dev/null +++ b/assets/js/8b8ccc10.1c3b82e9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8534],{3961:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>m,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var s=t(5893),r=t(1151),l=t(4866),a=t(5162),o=t(6393),i=t(4379);const c={sidebar_position:3,tags:["Prepared Statements","Placeholders","Parameters","execute"]},u="DELETE",d={id:"examples/queries/prepared-statements/delete",title:"DELETE",description:"execute(sql, values)",source:"@site/docs/examples/queries/prepared-statements/delete.mdx",sourceDirName:"examples/queries/prepared-statements",slug:"/examples/queries/prepared-statements/delete",permalink:"/node-mysql2/docs/examples/queries/prepared-statements/delete",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/prepared-statements/delete.mdx",tags:[{label:"Prepared Statements",permalink:"/node-mysql2/docs/tags/prepared-statements"},{label:"Placeholders",permalink:"/node-mysql2/docs/tags/placeholders"},{label:"Parameters",permalink:"/node-mysql2/docs/tags/parameters"},{label:"execute",permalink:"/node-mysql2/docs/tags/execute"}],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3,tags:["Prepared Statements","Placeholders","Parameters","execute"]},sidebar:"examples",previous:{title:"UPDATE",permalink:"/node-mysql2/docs/examples/queries/prepared-statements/update"},next:{title:"Binlog Watcher",permalink:"/node-mysql2/docs/examples/binlog-watcher"}},h={},p=[{value:"execute(sql, values)",id:"executesql-values",level:2},{value:"execute(options)",id:"executeoptions",level:2},{value:"execute(options, values)",id:"executeoptions-values",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"QueryOptions",id:"queryoptions",level:3}];function x(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"delete",children:"DELETE"}),"\n",(0,s.jsx)(n.h2,{id:"executesql-values",children:"execute(sql, values)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"execute(sql: string, values: any[])"})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';\n const values = ['Page'];\n\n // highlight-next-line\n const [result, fields] = await connection.execute(sql, values);\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';\nconst values = ['Page'];\n\nconnection.execute(sql, values, (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n});\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"executeoptions",children:"execute(options)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["execute(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';\n const values = ['Page'];\n\n // highlight-start\n const [result, fields] = await connection.execute({\n sql,\n values,\n // ... other options\n });\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';\nconst values = ['Page'];\n\nconnection.execute(\n {\n sql,\n values,\n // ... other options\n },\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"executeoptions-values",children:"execute(options, values)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["execute(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),", values: any[])"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';\n const values = ['Page'];\n\n // highlight-start\n const [result, fields] = await connection.execute(\n {\n sql,\n // ... other options\n },\n values\n );\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';\nconst values = ['Page'];\n\nconnection.execute(\n {\n sql,\n // ... other options\n },\n values,\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,s.jsx)(n.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,s.jsx)(o.Z,{title:"ResultSetHeader Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts",extractMethod:"ResultSetHeader",methodType:"interface"})}),"\n",(0,s.jsx)(n.h3,{id:"queryoptions",children:"QueryOptions"}),"\n",(0,s.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(x,{...e})}):x(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>a});t(7294);var s=t(512);const r={tabItem:"tabItem_Ymn6"};var l=t(5893);function a(e){let{children:n,hidden:t,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,s.Z)(r.tabItem,a),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>q});var s=t(7294),r=t(512),l=t(2466),a=t(6550),o=t(469),i=t(1980),c=t(7392),u=t(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:t}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:s,default:r}}=e;return{value:n,label:t,attributes:s,default:r}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function x(e){let{queryString:n=!1,groupId:t}=e;const r=(0,a.k6)(),l=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,i._X)(l),(0,s.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(r.location.search);n.set(l,e),r.replace({...r.location,search:n.toString()})}),[l,r])]}function m(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,l=h(e),[a,i]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=t.find((e=>e.default))??t[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:l}))),[c,d]=x({queryString:t,groupId:r}),[m,g]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,l]=(0,u.Nk)(t);return[r,(0,s.useCallback)((e=>{t&&l.set(e)}),[t,l])]}({groupId:r}),j=(()=>{const e=c??m;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{j&&i(j)}),[j]);return{selectedValue:a,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),g(e)}),[d,g,l]),tabValues:l}}var g=t(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=t(5893);function b(e){let{className:n,block:t,selectedValue:s,selectValue:a,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,l.o5)(),u=e=>{const n=e.currentTarget,t=i.indexOf(n),r=o[t].value;r!==s&&(c(n),a(r))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const t=i.indexOf(e.currentTarget)+1;n=i[t]??i[0];break}case"ArrowLeft":{const t=i.indexOf(e.currentTarget)-1;n=i[t]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":t},n),children:o.map((e=>{let{value:n,label:t,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>i.push(e),onKeyDown:d,onClick:u,...l,className:(0,r.Z)("tabs__item",j.tabItem,l?.className,{"tabs__item--active":s===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:r}=e;const l=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===r));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function y(e){const n=m(e);return(0,f.jsxs)("div",{className:(0,r.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(b,{...e,...n}),(0,f.jsx)(v,{...e,...n})]})}function q(e){const n=(0,g.Z)();return(0,f.jsx)(y,{...e,children:d(e.children)},String(n))}},4379:(e,n,t)=>{t.d(n,{I:()=>i});var s=t(7294),r=t(2263),l=t(9286),a=t(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:t,extractMethod:i,methodType:c}=e;const[u,d]=(0,s.useState)(""),[h,p]=(0,s.useState)(!0),[x,m]=(0,s.useState)(!0),{siteConfig:g}=(0,r.Z)(),j=g.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,s.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&c?((e,n,t)=>{const s=e.split("\n"),r=`${t} ${n}`;let l=!1,a=0,o="";for(const i of s)if(i.includes(r)&&(l=!0),l&&(i.includes("{")&&a++,o+=i+"\n",i.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,i,c):e;d(n||e),p(!1),m(!1)})).catch((()=>{m(!0),p(!1)})),()=>{e.abort()}}),[f,i,c]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:x?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${t}`,children:u})})})}},6393:(e,n,t)=>{t.d(n,{Z:()=>l});var s=t(4673),r=t(5893);const l=e=>{let{children:n,open:t,title:l}=e;return(0,r.jsx)(s.Z,{open:t,className:"faq",summary:(0,r.jsx)("summary",{children:(0,r.jsx)("strong",{children:l})}),children:(0,r.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/assets/js/8bed1f9d.ac034290.js b/assets/js/8bed1f9d.ac034290.js deleted file mode 100644 index 128190085e..0000000000 --- a/assets/js/8bed1f9d.ac034290.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7805],{964:e=>{e.exports=JSON.parse('{"title":"TypeScript","slug":"/category/typescript","permalink":"/node-mysql2/docs/category/typescript","navigation":{"previous":{"title":"Select Over SSL","permalink":"/node-mysql2/docs/examples/ssl/select-over-ssl"},"next":{"title":"Basic Custom Class","permalink":"/node-mysql2/docs/examples/typescript/basic-custom-class"}}}')}}]); \ No newline at end of file diff --git a/assets/js/8e56b1fa.bbf9e2fc.js b/assets/js/8e56b1fa.bbf9e2fc.js new file mode 100644 index 0000000000..4ecc766288 --- /dev/null +++ b/assets/js/8e56b1fa.bbf9e2fc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9308],{2485:e=>{e.exports=JSON.parse('{"label":"query","permalink":"/node-mysql2/docs/tags/query","allTagsPath":"/node-mysql2/docs/tags","count":4,"items":[{"id":"examples/queries/simple-queries/delete","title":"DELETE","description":"The examples below also work for the execute method.","permalink":"/node-mysql2/docs/examples/queries/simple-queries/delete"},{"id":"examples/queries/simple-queries/insert","title":"INSERT","description":"The examples below also work for the execute method.","permalink":"/node-mysql2/docs/examples/queries/simple-queries/insert"},{"id":"examples/queries/simple-queries/select","title":"SELECT","description":"The examples below also work for the execute method.","permalink":"/node-mysql2/docs/examples/queries/simple-queries/select"},{"id":"examples/queries/simple-queries/update","title":"UPDATE","description":"The examples below also work for the execute method.","permalink":"/node-mysql2/docs/examples/queries/simple-queries/update"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/assets/js/8fcb4d7f.775cd8a1.js b/assets/js/8fcb4d7f.775cd8a1.js new file mode 100644 index 0000000000..55097f9e4b --- /dev/null +++ b/assets/js/8fcb4d7f.775cd8a1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[81],{3050:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>m,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var s=r(5893),t=r(1151),l=r(4866),o=r(5162),a=r(6393),i=r(4379);const c={sidebar_position:1,tags:["query"]},u="SELECT",d={id:"examples/queries/simple-queries/select",title:"SELECT",description:"The examples below also work for the execute method.",source:"@site/docs/examples/queries/simple-queries/select.mdx",sourceDirName:"examples/queries/simple-queries",slug:"/examples/queries/simple-queries/select",permalink:"/node-mysql2/docs/examples/queries/simple-queries/select",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/simple-queries/select.mdx",tags:[{label:"query",permalink:"/node-mysql2/docs/tags/query"}],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,tags:["query"]},sidebar:"examples",previous:{title:"INSERT",permalink:"/node-mysql2/docs/examples/queries/simple-queries/insert"},next:{title:"UPDATE",permalink:"/node-mysql2/docs/examples/queries/simple-queries/update"}},h={},p=[{value:"query(sql)",id:"querysql",level:2},{value:"query(options)",id:"queryoptions",level:2},{value:"query(options) \u2014 Row as Array",id:"queryoptions--row-as-array",level:2},{value:"Glossary",id:"glossary",level:2},{value:"QueryOptions",id:"queryoptions-1",level:3}];function x(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"select",children:"SELECT"}),"\n",(0,s.jsxs)(n.p,{children:["The examples below also work for the ",(0,s.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements/select",children:(0,s.jsx)(n.code,{children:"execute"})})," method."]}),"\n",(0,s.jsx)(n.h2,{id:"querysql",children:"query(sql)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"query(sql: string)"})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(o.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45';\n\n // highlight-next-line\n const [rows, fields] = await connection.query(sql);\n\n console.log(rows);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(o.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45';\n\nconnection.query(sql, (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows);\n console.log(fields);\n});\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"rows"})," contains rows returned by server"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about rows, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:".query()"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"queryoptions",children:"query(options)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["query(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(o.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45';\n\n // highlight-start\n const [rows, fields] = await connection.query({\n sql,\n // ... other options\n });\n // highlight-end\n\n console.log(rows);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(o.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45';\n\nconnection.query(\n {\n sql,\n // ... other options\n },\n (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"rows"})," contains rows returned by server"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about rows, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:".query()"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"queryoptions--row-as-array",children:"query(options) \u2014 Row as Array"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["query(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(o.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45';\n\n // highlight-start\n const [rows, fields] = await connection.query({\n sql,\n rowsAsArray: true,\n // ... other options\n });\n // highlight-end\n\n console.log(rows);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(o.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45';\n\nconnection.query(\n {\n sql,\n rowsAsArray: true,\n // ... other options\n },\n (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"rows"})," contains rows returned by server as array"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about rows, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:".query()"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,s.jsx)(n.h3,{id:"queryoptions-1",children:"QueryOptions"}),"\n",(0,s.jsx)(a.Z,{title:"QueryOptions Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function m(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(x,{...e})}):x(e)}},5162:(e,n,r)=>{r.d(n,{Z:()=>o});r(7294);var s=r(512);const t={tabItem:"tabItem_Ymn6"};var l=r(5893);function o(e){let{children:n,hidden:r,className:o}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,s.Z)(t.tabItem,o),hidden:r,children:n})}},4866:(e,n,r)=>{r.d(n,{Z:()=>v});var s=r(7294),t=r(512),l=r(2466),o=r(6550),a=r(469),i=r(1980),c=r(7392),u=r(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:r}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:r,attributes:s,default:t}}=e;return{value:n,label:r,attributes:s,default:t}}))}(r);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,r])}function p(e){let{value:n,tabValues:r}=e;return r.some((e=>e.value===n))}function x(e){let{queryString:n=!1,groupId:r}=e;const t=(0,o.k6)(),l=function(e){let{queryString:n=!1,groupId:r}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!r)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return r??null}({queryString:n,groupId:r});return[(0,i._X)(l),(0,s.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(t.location.search);n.set(l,e),t.replace({...t.location,search:n.toString()})}),[l,t])]}function m(e){const{defaultValue:n,queryString:r=!1,groupId:t}=e,l=h(e),[o,i]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:r}=e;if(0===r.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:r}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${r.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=r.find((e=>e.default))??r[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:l}))),[c,d]=x({queryString:r,groupId:t}),[m,g]=function(e){let{groupId:n}=e;const r=function(e){return e?`docusaurus.tab.${e}`:null}(n),[t,l]=(0,u.Nk)(r);return[t,(0,s.useCallback)((e=>{r&&l.set(e)}),[r,l])]}({groupId:t}),j=(()=>{const e=c??m;return p({value:e,tabValues:l})?e:null})();(0,a.Z)((()=>{j&&i(j)}),[j]);return{selectedValue:o,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),g(e)}),[d,g,l]),tabValues:l}}var g=r(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=r(5893);function b(e){let{className:n,block:r,selectedValue:s,selectValue:o,tabValues:a}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,l.o5)(),u=e=>{const n=e.currentTarget,r=i.indexOf(n),t=a[r].value;t!==s&&(c(n),o(t))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const r=i.indexOf(e.currentTarget)+1;n=i[r]??i[0];break}case"ArrowLeft":{const r=i.indexOf(e.currentTarget)-1;n=i[r]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,t.Z)("tabs",{"tabs--block":r},n),children:a.map((e=>{let{value:n,label:r,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>i.push(e),onKeyDown:d,onClick:u,...l,className:(0,t.Z)("tabs__item",j.tabItem,l?.className,{"tabs__item--active":s===n}),children:r??n},n)}))})}function y(e){let{lazy:n,children:r,selectedValue:t}=e;const l=(Array.isArray(r)?r:[r]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===t));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function q(e){const n=m(e);return(0,f.jsxs)("div",{className:(0,t.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(b,{...e,...n}),(0,f.jsx)(y,{...e,...n})]})}function v(e){const n=(0,g.Z)();return(0,f.jsx)(q,{...e,children:d(e.children)},String(n))}},4379:(e,n,r)=>{r.d(n,{I:()=>i});var s=r(7294),t=r(2263),l=r(9286),o=r(5893);const a=()=>(0,o.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:r,extractMethod:i,methodType:c}=e;const[u,d]=(0,s.useState)(""),[h,p]=(0,s.useState)(!0),[x,m]=(0,s.useState)(!0),{siteConfig:g}=(0,t.Z)(),j=g.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,s.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&c?((e,n,r)=>{const s=e.split("\n"),t=`${r} ${n}`;let l=!1,o=0,a="";for(const i of s)if(i.includes(t)&&(l=!0),l&&(i.includes("{")&&o++,a+=i+"\n",i.includes("}")&&(o--,0===o)))break;return a.trim()||e})(e,i,c):e;d(n||e),p(!1),m(!1)})).catch((()=>{m(!0),p(!1)})),()=>{e.abort()}}),[f,i,c]),(0,o.jsx)(o.Fragment,{children:h?(0,o.jsx)(a,{}):(0,o.jsx)(o.Fragment,{children:x?(0,o.jsxs)("div",{children:["Unable to access the requested link: ",(0,o.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,o.jsx)(l.Z,{className:`language-${r}`,children:u})})})}},6393:(e,n,r)=>{r.d(n,{Z:()=>l});var s=r(4673),t=r(5893);const l=e=>{let{children:n,open:r,title:l}=e;return(0,t.jsx)(s.Z,{open:r,className:"faq",summary:(0,t.jsx)("summary",{children:(0,t.jsx)("strong",{children:l})}),children:(0,t.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/assets/js/935f2afb.2459718c.js b/assets/js/935f2afb.2459718c.js new file mode 100644 index 0000000000..cd4512d06b --- /dev/null +++ b/assets/js/935f2afb.2459718c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[53],{1109:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"docs":[{"type":"link","label":"Quickstart","href":"/node-mysql2/docs/","docId":"index","unlisted":false},{"type":"link","label":"History and Why MySQL2","href":"/node-mysql2/docs/history-and-why-mysq2","docId":"history-and-why-mysq2","unlisted":false},{"type":"link","label":"Stability Badges","href":"/node-mysql2/docs/stability-badges","docId":"stability-badges","unlisted":false},{"type":"category","label":"Documentation","items":[{"type":"link","label":"Introduction","href":"/node-mysql2/docs/documentation","docId":"documentation/index","unlisted":false},{"type":"link","label":"Authentication Switch Request","href":"/node-mysql2/docs/documentation/authentication-switch","docId":"documentation/authentication-switch","unlisted":false},{"type":"link","label":"Extra Features","href":"/node-mysql2/docs/documentation/extras","docId":"documentation/extras","unlisted":false},{"type":"link","label":"MySQL Server API","href":"/node-mysql2/docs/documentation/mysql-server","docId":"documentation/mysql-server","unlisted":false},{"type":"link","label":"Prepared Statements","href":"/node-mysql2/docs/documentation/prepared-statements","docId":"documentation/prepared-statements","unlisted":false},{"type":"link","label":"Promise Wrappers","href":"/node-mysql2/docs/documentation/promise-wrapper","docId":"documentation/promise-wrapper","unlisted":false},{"type":"link","label":"Using MySQL2 with TypeScript","href":"/node-mysql2/docs/documentation/typescript-examples","docId":"documentation/typescript-examples","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"link","label":"API and Configuration","href":"/node-mysql2/docs/api-and-configurations","docId":"api-and-configurations","unlisted":false},{"type":"link","label":"Acknowledgements","href":"/node-mysql2/docs/acknowledgements","docId":"acknowledgements","unlisted":false},{"type":"category","label":"Contributing","items":[{"type":"link","label":"MySQL2","href":"/node-mysql2/docs/contributing","docId":"contributing/index","unlisted":false},{"type":"link","label":"Documentation Site","href":"/node-mysql2/docs/contributing/website","docId":"contributing/website","unlisted":false}],"collapsed":true,"collapsible":true}],"examples":[{"type":"link","label":"Introduction","href":"/node-mysql2/docs/examples","docId":"examples/index","unlisted":false},{"type":"category","label":"Connections","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"createConnection","href":"/node-mysql2/docs/examples/connections/create-connection","docId":"examples/connections/create-connection","unlisted":false},{"type":"link","label":"createPool","href":"/node-mysql2/docs/examples/connections/create-pool","docId":"examples/connections/create-pool","unlisted":false},{"type":"link","label":"createPoolCluster","href":"/node-mysql2/docs/examples/connections/createPoolCluster","docId":"examples/connections/createPoolCluster","unlisted":false}]},{"type":"category","label":"Queries","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Simple Queries","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"INSERT","href":"/node-mysql2/docs/examples/queries/simple-queries/insert","docId":"examples/queries/simple-queries/insert","unlisted":false},{"type":"link","label":"SELECT","href":"/node-mysql2/docs/examples/queries/simple-queries/select","docId":"examples/queries/simple-queries/select","unlisted":false},{"type":"link","label":"UPDATE","href":"/node-mysql2/docs/examples/queries/simple-queries/update","docId":"examples/queries/simple-queries/update","unlisted":false},{"type":"link","label":"DELETE","href":"/node-mysql2/docs/examples/queries/simple-queries/delete","docId":"examples/queries/simple-queries/delete","unlisted":false}],"href":"/node-mysql2/docs/examples/queries/simple-queries/"},{"type":"category","label":"Prepared Statements","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"INSERT","href":"/node-mysql2/docs/examples/queries/prepared-statements/insert","docId":"examples/queries/prepared-statements/insert","unlisted":false},{"type":"link","label":"SELECT","href":"/node-mysql2/docs/examples/queries/prepared-statements/select","docId":"examples/queries/prepared-statements/select","unlisted":false},{"type":"link","label":"UPDATE","href":"/node-mysql2/docs/examples/queries/prepared-statements/update","docId":"examples/queries/prepared-statements/update","unlisted":false},{"type":"link","label":"DELETE","href":"/node-mysql2/docs/examples/queries/prepared-statements/delete","docId":"examples/queries/prepared-statements/delete","unlisted":false}],"href":"/node-mysql2/docs/examples/queries/prepared-statements/"}]},{"type":"link","label":"Binlog Watcher","href":"/node-mysql2/docs/examples/binlog-watcher","docId":"examples/binlog-watcher","unlisted":false},{"type":"category","label":"Promise Wrapper","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"await \u2014 co","href":"/node-mysql2/docs/examples/promise-wrapper/co-await","docId":"examples/promise-wrapper/co-await","unlisted":false}]},{"type":"category","label":"Tests","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"MySQL Proxy","href":"/node-mysql2/docs/examples/tests/mysql-proxy","docId":"examples/tests/mysql-proxy","unlisted":false},{"type":"link","label":"Pool","href":"/node-mysql2/docs/examples/tests/pool","docId":"examples/tests/pool","unlisted":false},{"type":"link","label":"Server","href":"/node-mysql2/docs/examples/tests/server","docId":"examples/tests/server","unlisted":false}]},{"type":"category","label":"TypeScript","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Basic Custom Class","href":"/node-mysql2/docs/examples/typescript/basic-custom-class","docId":"examples/typescript/basic-custom-class","unlisted":false},{"type":"category","label":"Procedure Call","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Procedure Call Packet","href":"/node-mysql2/docs/examples/typescript/procedure-call/index","docId":"examples/typescript/procedure-call/index","unlisted":false},{"type":"link","label":"Procedure Call Packet (Row as Array)","href":"/node-mysql2/docs/examples/typescript/procedure-call/row-as-array","docId":"examples/typescript/procedure-call/row-as-array","unlisted":false}]},{"type":"category","label":"Row Data","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Row Data Packet","href":"/node-mysql2/docs/examples/typescript/row-data/index","docId":"examples/typescript/row-data/index","unlisted":false},{"type":"link","label":"Row Data Packet (Row as Array)","href":"/node-mysql2/docs/examples/typescript/row-data/row-as-array","docId":"examples/typescript/row-data/row-as-array","unlisted":false},{"type":"link","label":"Row Data Packet (Multi Statements)","href":"/node-mysql2/docs/examples/typescript/row-data/multi-statements","docId":"examples/typescript/row-data/multi-statements","unlisted":false},{"type":"link","label":"Row Data Packet (Multi Statements and Row as Array)","href":"/node-mysql2/docs/examples/typescript/row-data/row-as-array-multi-statements","docId":"examples/typescript/row-data/row-as-array-multi-statements","unlisted":false}]}]}],"faq":[{"type":"link","label":"Introduction","href":"/node-mysql2/docs/faq","docId":"faq/index","unlisted":false},{"type":"link","label":"How to handle errors?","href":"/node-mysql2/docs/faq/how-to-handle-errors","docId":"faq/how-to-handle-errors","unlisted":false}]},"docs":{"acknowledgements":{"id":"acknowledgements","title":"Acknowledgements","description":"[mysql-native]//github.com/sidorares/nodejs-mysql-native","sidebar":"docs"},"api-and-configurations":{"id":"api-and-configurations","title":"API and Configuration","description":"[node-mysql]//github.com/mysqljs/mysql","sidebar":"docs"},"contributing/index":{"id":"contributing/index","title":"MySQL2","description":"Want to improve something in MySQL2?","sidebar":"docs"},"contributing/website":{"id":"contributing/website","title":"Documentation Site","description":"This website is built using Docusaurus 3, a modern static website generator.","sidebar":"docs"},"documentation/authentication-switch":{"id":"documentation/authentication-switch","title":"Authentication Switch Request","description":"During the connection phase the server may ask the client to switch to a different auth method.","sidebar":"docs"},"documentation/extras":{"id":"documentation/extras","title":"Extra Features","description":"Named placeholders","sidebar":"docs"},"documentation/index":{"id":"documentation/index","title":"Introduction","description":"[node-mysql]//github.com/mysqljs/mysql","sidebar":"docs"},"documentation/mysql-server":{"id":"documentation/mysql-server","title":"MySQL Server API","description":"Server","sidebar":"docs"},"documentation/prepared-statements":{"id":"documentation/prepared-statements","title":"Prepared Statements","description":"Automatic creation, cached and re-used by connection","sidebar":"docs"},"documentation/promise-wrapper":{"id":"documentation/promise-wrapper","title":"Promise Wrappers","description":"In addition to errback interface there is thin wrapper to expose Promise-based api","sidebar":"docs"},"documentation/typescript-examples":{"id":"documentation/typescript-examples","title":"Using MySQL2 with TypeScript","description":"Installation","sidebar":"docs"},"examples/binlog-watcher":{"id":"examples/binlog-watcher","title":"Binlog Watcher","description":"","sidebar":"examples"},"examples/connections/create-connection":{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","sidebar":"examples"},"examples/connections/create-pool":{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","sidebar":"examples"},"examples/connections/createPoolCluster":{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","sidebar":"examples"},"examples/index":{"id":"examples/index","title":"Introduction","description":"To explore the examples, please use the sidebar navigation on desktop or access the menu on mobile devices.","sidebar":"examples"},"examples/promise-wrapper/co-await":{"id":"examples/promise-wrapper/co-await","title":"await \u2014 co","description":"","sidebar":"examples"},"examples/queries/prepared-statements/delete":{"id":"examples/queries/prepared-statements/delete","title":"DELETE","description":"execute(sql, values)","sidebar":"examples"},"examples/queries/prepared-statements/index":{"id":"examples/queries/prepared-statements/index","title":"Prepared Statements","description":"MySQL2 provides execute helper which will prepare and query the statement.","sidebar":"examples"},"examples/queries/prepared-statements/insert":{"id":"examples/queries/prepared-statements/insert","title":"INSERT","description":"execute(sql, values)","sidebar":"examples"},"examples/queries/prepared-statements/select":{"id":"examples/queries/prepared-statements/select","title":"SELECT","description":"execute(sql, values)","sidebar":"examples"},"examples/queries/prepared-statements/update":{"id":"examples/queries/prepared-statements/update","title":"UPDATE","description":"execute(sql, values)","sidebar":"examples"},"examples/queries/simple-queries/delete":{"id":"examples/queries/simple-queries/delete","title":"DELETE","description":"The examples below also work for the execute method.","sidebar":"examples"},"examples/queries/simple-queries/index":{"id":"examples/queries/simple-queries/index","title":"Simple Queries","description":"For Prepared Statements or Placeholders / Parameters examples, please see here.","sidebar":"examples"},"examples/queries/simple-queries/insert":{"id":"examples/queries/simple-queries/insert","title":"INSERT","description":"The examples below also work for the execute method.","sidebar":"examples"},"examples/queries/simple-queries/select":{"id":"examples/queries/simple-queries/select","title":"SELECT","description":"The examples below also work for the execute method.","sidebar":"examples"},"examples/queries/simple-queries/update":{"id":"examples/queries/simple-queries/update","title":"UPDATE","description":"The examples below also work for the execute method.","sidebar":"examples"},"examples/tests/mysql-proxy":{"id":"examples/tests/mysql-proxy","title":"MySQL Proxy","description":"","sidebar":"examples"},"examples/tests/pool":{"id":"examples/tests/pool","title":"Pool","description":"","sidebar":"examples"},"examples/tests/server":{"id":"examples/tests/server","title":"Server","description":"","sidebar":"examples"},"examples/typescript/basic-custom-class":{"id":"examples/typescript/basic-custom-class","title":"Basic Custom Class","description":"","sidebar":"examples"},"examples/typescript/procedure-call/index":{"id":"examples/typescript/procedure-call/index","title":"Procedure Call Packet","description":"","sidebar":"examples"},"examples/typescript/procedure-call/row-as-array":{"id":"examples/typescript/procedure-call/row-as-array","title":"Procedure Call Packet (Row as Array)","description":"","sidebar":"examples"},"examples/typescript/row-data/index":{"id":"examples/typescript/row-data/index","title":"Row Data Packet","description":"","sidebar":"examples"},"examples/typescript/row-data/multi-statements":{"id":"examples/typescript/row-data/multi-statements","title":"Row Data Packet (Multi Statements)","description":"","sidebar":"examples"},"examples/typescript/row-data/row-as-array":{"id":"examples/typescript/row-data/row-as-array","title":"Row Data Packet (Row as Array)","description":"","sidebar":"examples"},"examples/typescript/row-data/row-as-array-multi-statements":{"id":"examples/typescript/row-data/row-as-array-multi-statements","title":"Row Data Packet (Multi Statements and Row as Array)","description":"","sidebar":"examples"},"faq/how-to-handle-errors":{"id":"faq/how-to-handle-errors","title":"How to handle errors?","description":"This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as createConnection, createPool, createPoolCluster, execute and query.","sidebar":"faq"},"faq/index":{"id":"faq/index","title":"Introduction","description":"This section provides answers to commonly asked questions about MySQL2.","sidebar":"faq"},"history-and-why-mysq2":{"id":"history-and-why-mysq2","title":"History and Why MySQL2","description":"[node-mysql]//github.com/mysqljs/mysql","sidebar":"docs"},"index":{"id":"index","title":"Quickstart","description":"MySQL client for Node.js with focus on performance","sidebar":"docs"},"stability-badges":{"id":"stability-badges","title":"Stability Badges","description":"The Stability Badges are indications of a section\'s stability.","sidebar":"docs"}}}')}}]); \ No newline at end of file diff --git a/assets/js/935f2afb.77b99342.js b/assets/js/935f2afb.77b99342.js deleted file mode 100644 index 8969a50a87..0000000000 --- a/assets/js/935f2afb.77b99342.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[53],{1109:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"docs":[{"type":"link","label":"Quickstart","href":"/node-mysql2/docs/","docId":"index","unlisted":false},{"type":"link","label":"History and Why MySQL2","href":"/node-mysql2/docs/history-and-why-mysq2","docId":"history-and-why-mysq2","unlisted":false},{"type":"link","label":"Stability Badges","href":"/node-mysql2/docs/stability-badges","docId":"stability-badges","unlisted":false},{"type":"category","label":"Documentation","items":[{"type":"link","label":"Introduction","href":"/node-mysql2/docs/documentation","docId":"documentation/index","unlisted":false},{"type":"link","label":"Authentication Switch Request","href":"/node-mysql2/docs/documentation/authentication-switch","docId":"documentation/authentication-switch","unlisted":false},{"type":"link","label":"Extra Features","href":"/node-mysql2/docs/documentation/extras","docId":"documentation/extras","unlisted":false},{"type":"link","label":"MySQL Server API","href":"/node-mysql2/docs/documentation/mysql-server","docId":"documentation/mysql-server","unlisted":false},{"type":"link","label":"Prepared Statements","href":"/node-mysql2/docs/documentation/prepared-statements","docId":"documentation/prepared-statements","unlisted":false},{"type":"link","label":"Promise Wrappers","href":"/node-mysql2/docs/documentation/promise-wrapper","docId":"documentation/promise-wrapper","unlisted":false},{"type":"link","label":"Using MySQL2 with TypeScript","href":"/node-mysql2/docs/documentation/typescript-examples","docId":"documentation/typescript-examples","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"link","label":"API and Configuration","href":"/node-mysql2/docs/api-and-configurations","docId":"api-and-configurations","unlisted":false},{"type":"link","label":"Acknowledgements","href":"/node-mysql2/docs/acknowledgements","docId":"acknowledgements","unlisted":false},{"type":"category","label":"Contributing","items":[{"type":"link","label":"MySQL2","href":"/node-mysql2/docs/contributing","docId":"contributing/index","unlisted":false},{"type":"link","label":"Documentation Site","href":"/node-mysql2/docs/contributing/website","docId":"contributing/website","unlisted":false}],"collapsed":true,"collapsible":true}],"examples":[{"type":"link","label":"Introduction","href":"/node-mysql2/docs/examples","docId":"examples/index","unlisted":false},{"type":"link","label":"Binlog Watcher","href":"/node-mysql2/docs/examples/binlog-watcher","docId":"examples/binlog-watcher","unlisted":false},{"type":"link","label":"Connect Over Socks","href":"/node-mysql2/docs/examples/connect-over-socks","docId":"examples/connect-over-socks","unlisted":false},{"type":"link","label":"Execute","href":"/node-mysql2/docs/examples/execute","docId":"examples/execute","unlisted":false},{"type":"link","label":"MySQL Proxy","href":"/node-mysql2/docs/examples/mysqlproxy","docId":"examples/mysqlproxy","unlisted":false},{"type":"link","label":"Pass SHA","href":"/node-mysql2/docs/examples/pass-sha","docId":"examples/pass-sha","unlisted":false},{"type":"link","label":"Pool Test","href":"/node-mysql2/docs/examples/pool-test","docId":"examples/pool-test","unlisted":false},{"type":"link","label":"Prepared Statements","href":"/node-mysql2/docs/examples/prepare","docId":"examples/prepare","unlisted":false},{"type":"link","label":"Promise CO Await","href":"/node-mysql2/docs/examples/promise-co-await","docId":"examples/promise-co-await","unlisted":false},{"type":"category","label":"Queries","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"SELECT","href":"/node-mysql2/docs/examples/queries/select","docId":"examples/queries/select","unlisted":false}],"href":"/node-mysql2/docs/category/queries"},{"type":"link","label":"Server","href":"/node-mysql2/docs/examples/server","docId":"examples/server","unlisted":false},{"type":"category","label":"SSL","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"RDS SSL","href":"/node-mysql2/docs/examples/ssl/rds-ssl","docId":"examples/ssl/rds-ssl","unlisted":false},{"type":"link","label":"Select Over SSL","href":"/node-mysql2/docs/examples/ssl/select-over-ssl","docId":"examples/ssl/select-over-ssl","unlisted":false}],"href":"/node-mysql2/docs/category/ssl"},{"type":"category","label":"TypeScript","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Basic Custom Class","href":"/node-mysql2/docs/examples/typescript/basic-custom-class","docId":"examples/typescript/basic-custom-class","unlisted":false},{"type":"category","label":"Procedure Call Packet","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Procedure Call Packet","href":"/node-mysql2/docs/examples/typescript/procedure-call/procedure-call-packet","docId":"examples/typescript/procedure-call/procedure-call-packet","unlisted":false},{"type":"link","label":"Procedure Call Packet (Row as Array)","href":"/node-mysql2/docs/examples/typescript/procedure-call/row-as-array","docId":"examples/typescript/procedure-call/row-as-array","unlisted":false}],"href":"/node-mysql2/docs/category/procedure-call-packet"},{"type":"category","label":"Row Data Packet","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Row Data Packet","href":"/node-mysql2/docs/examples/typescript/row-data/row-data-packet","docId":"examples/typescript/row-data/row-data-packet","unlisted":false},{"type":"link","label":"Row Data Packet (Row as Array)","href":"/node-mysql2/docs/examples/typescript/row-data/row-as-array","docId":"examples/typescript/row-data/row-as-array","unlisted":false},{"type":"link","label":"Row Data Packet (Multi Statements)","href":"/node-mysql2/docs/examples/typescript/row-data/multi-statements","docId":"examples/typescript/row-data/multi-statements","unlisted":false},{"type":"link","label":"Row Data Packet (Multi Statements and Row as Array)","href":"/node-mysql2/docs/examples/typescript/row-data/row-as-array-multi-statements","docId":"examples/typescript/row-data/row-as-array-multi-statements","unlisted":false}],"href":"/node-mysql2/docs/category/row-data-packet"}],"href":"/node-mysql2/docs/category/typescript"}],"faq":[{"type":"link","label":"Introduction","href":"/node-mysql2/docs/faq","docId":"faq/index","unlisted":false},{"type":"link","label":"How to handle errors?","href":"/node-mysql2/docs/faq/how-to-handle-errors","docId":"faq/how-to-handle-errors","unlisted":false}]},"docs":{"acknowledgements":{"id":"acknowledgements","title":"Acknowledgements","description":"[mysql-native]//github.com/sidorares/nodejs-mysql-native","sidebar":"docs"},"api-and-configurations":{"id":"api-and-configurations","title":"API and Configuration","description":"[node-mysql]//github.com/mysqljs/mysql","sidebar":"docs"},"contributing/index":{"id":"contributing/index","title":"MySQL2","description":"Want to improve something in MySQL2?","sidebar":"docs"},"contributing/website":{"id":"contributing/website","title":"Documentation Site","description":"This website is built using Docusaurus 3, a modern static website generator.","sidebar":"docs"},"documentation/authentication-switch":{"id":"documentation/authentication-switch","title":"Authentication Switch Request","description":"During the connection phase the server may ask the client to switch to a different auth method.","sidebar":"docs"},"documentation/extras":{"id":"documentation/extras","title":"Extra Features","description":"Named placeholders","sidebar":"docs"},"documentation/index":{"id":"documentation/index","title":"Introduction","description":"[node-mysql]//github.com/mysqljs/mysql","sidebar":"docs"},"documentation/mysql-server":{"id":"documentation/mysql-server","title":"MySQL Server API","description":"Server","sidebar":"docs"},"documentation/prepared-statements":{"id":"documentation/prepared-statements","title":"Prepared Statements","description":"Automatic creation, cached and re-used by connection","sidebar":"docs"},"documentation/promise-wrapper":{"id":"documentation/promise-wrapper","title":"Promise Wrappers","description":"In addition to errback interface there is thin wrapper to expose Promise-based api","sidebar":"docs"},"documentation/typescript-examples":{"id":"documentation/typescript-examples","title":"Using MySQL2 with TypeScript","description":"Installation","sidebar":"docs"},"examples/binlog-watcher":{"id":"examples/binlog-watcher","title":"Binlog Watcher","description":"","sidebar":"examples"},"examples/connect-over-socks":{"id":"examples/connect-over-socks","title":"Connect Over Socks","description":"","sidebar":"examples"},"examples/execute":{"id":"examples/execute","title":"Execute","description":"","sidebar":"examples"},"examples/index":{"id":"examples/index","title":"Introduction","description":"Simple SELECT","sidebar":"examples"},"examples/mysqlproxy":{"id":"examples/mysqlproxy","title":"MySQL Proxy","description":"","sidebar":"examples"},"examples/pass-sha":{"id":"examples/pass-sha","title":"Pass SHA","description":"","sidebar":"examples"},"examples/pool-test":{"id":"examples/pool-test","title":"Pool Test","description":"","sidebar":"examples"},"examples/prepare":{"id":"examples/prepare","title":"Prepared Statements","description":"","sidebar":"examples"},"examples/promise-co-await":{"id":"examples/promise-co-await","title":"Promise CO Await","description":"","sidebar":"examples"},"examples/queries/select":{"id":"examples/queries/select","title":"SELECT","description":"","sidebar":"examples"},"examples/server":{"id":"examples/server","title":"Server","description":"","sidebar":"examples"},"examples/ssl/rds-ssl":{"id":"examples/ssl/rds-ssl","title":"RDS SSL","description":"","sidebar":"examples"},"examples/ssl/select-over-ssl":{"id":"examples/ssl/select-over-ssl","title":"Select Over SSL","description":"- See examples/ssl/certs.","sidebar":"examples"},"examples/typescript/basic-custom-class":{"id":"examples/typescript/basic-custom-class","title":"Basic Custom Class","description":"","sidebar":"examples"},"examples/typescript/procedure-call/procedure-call-packet":{"id":"examples/typescript/procedure-call/procedure-call-packet","title":"Procedure Call Packet","description":"","sidebar":"examples"},"examples/typescript/procedure-call/row-as-array":{"id":"examples/typescript/procedure-call/row-as-array","title":"Procedure Call Packet (Row as Array)","description":"","sidebar":"examples"},"examples/typescript/row-data/multi-statements":{"id":"examples/typescript/row-data/multi-statements","title":"Row Data Packet (Multi Statements)","description":"","sidebar":"examples"},"examples/typescript/row-data/row-as-array":{"id":"examples/typescript/row-data/row-as-array","title":"Row Data Packet (Row as Array)","description":"","sidebar":"examples"},"examples/typescript/row-data/row-as-array-multi-statements":{"id":"examples/typescript/row-data/row-as-array-multi-statements","title":"Row Data Packet (Multi Statements and Row as Array)","description":"","sidebar":"examples"},"examples/typescript/row-data/row-data-packet":{"id":"examples/typescript/row-data/row-data-packet","title":"Row Data Packet","description":"","sidebar":"examples"},"faq/how-to-handle-errors":{"id":"faq/how-to-handle-errors","title":"How to handle errors?","description":"This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as createConnection, createPool, createPoolCluster, execute and query.","sidebar":"faq"},"faq/index":{"id":"faq/index","title":"Introduction","description":"This section provides answers to commonly asked questions about MySQL2.","sidebar":"faq"},"history-and-why-mysq2":{"id":"history-and-why-mysq2","title":"History and Why MySQL2","description":"[node-mysql]//github.com/mysqljs/mysql","sidebar":"docs"},"index":{"id":"index","title":"Quickstart","description":"MySQL client for Node.js with focus on performance","sidebar":"docs"},"stability-badges":{"id":"stability-badges","title":"Stability Badges","description":"The Stability Badges are indications of a section\'s stability.","sidebar":"docs"}}}')}}]); \ No newline at end of file diff --git a/assets/js/93f3cbcf.1eaa7106.js b/assets/js/93f3cbcf.1eaa7106.js deleted file mode 100644 index d57ab6497f..0000000000 --- a/assets/js/93f3cbcf.1eaa7106.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1883],{4972:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>p,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),s=t(1151),a=t(4866),o=t(5162);const l={},u="MySQL Proxy",c={id:"examples/mysqlproxy",title:"MySQL Proxy",description:"",source:"@site/docs/examples/mysqlproxy.mdx",sourceDirName:"examples",slug:"/examples/mysqlproxy",permalink:"/node-mysql2/docs/examples/mysqlproxy",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/mysqlproxy.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Execute",permalink:"/node-mysql2/docs/examples/execute"},next:{title:"Pass SHA",permalink:"/node-mysql2/docs/examples/pass-sha"}},i={},d=[];function m(e){const n={code:"code",h1:"h1",pre:"pre",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"mysql-proxy",children:"MySQL Proxy"}),"\n",(0,r.jsx)(a.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst ClientFlags = require('mysql2/lib/constants/client.js');\n\nconst server = mysql.createServer();\nserver.listen(3307);\n\nserver.on('connection', (conn) => {\n console.log('connection');\n\n conn.serverHandshake({\n protocolVersion: 10,\n serverVersion: 'node.js rocks',\n connectionId: 1234,\n statusFlags: 2,\n characterSet: 8,\n capabilityFlags: 0xffffff ^ ClientFlags.COMPRESS,\n });\n\n conn.on('field_list', (table, fields) => {\n console.log('field list:', table, fields);\n conn.writeEof();\n });\n\n const remote = mysql.createConnection({\n user: 'root',\n database: 'dbname',\n host: 'server.example.com',\n password: 'secret',\n });\n\n conn.on('query', (sql) => {\n console.log(`proxying query: ${sql}`);\n remote.query(sql, function (err) {\n // overloaded args, either (err, result :object)\n // or (err, rows :array, columns :array)\n if (Array.isArray(arguments[1])) {\n // response to a 'select', 'show' or similar\n const rows = arguments[1],\n columns = arguments[2];\n console.log('rows', rows);\n console.log('columns', columns);\n conn.writeTextResult(rows, columns);\n } else {\n // response to an 'insert', 'update' or 'delete'\n const result = arguments[1];\n console.log('result', result);\n conn.writeOk(result);\n }\n });\n });\n\n conn.on('end', remote.end.bind(remote));\n});\n"})})})})]})}function p(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const s={tabItem:"tabItem_Ymn6"};var a=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,r.Z)(s.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>q});var r=t(7294),s=t(512),a=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:s}}=e;return{value:n,label:t,attributes:r,default:s}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const s=(0,o.k6)(),a=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(a),(0,r.useCallback)((e=>{if(!a)return;const n=new URLSearchParams(s.location.search);n.set(a,e),s.replace({...s.location,search:n.toString()})}),[a,s])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:s}=e,a=m(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:a}))),[c,d]=f({queryString:t,groupId:s}),[b,h]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[s,a]=(0,i.Nk)(t);return[s,(0,r.useCallback)((e=>{t&&a.set(e)}),[t,a])]}({groupId:s}),y=(()=>{const e=c??b;return p({value:e,tabValues:a})?e:null})();(0,l.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,a]),tabValues:a}}var h=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=t(5893);function x(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,a.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),s=l[t].value;s!==r&&(c(n),o(s))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:a}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...a,className:(0,s.Z)("tabs__item",y.tabItem,a?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function g(e){let{lazy:n,children:t,selectedValue:s}=e;const a=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=a.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:a.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==s})))})}function w(e){const n=b(e);return(0,v.jsxs)("div",{className:(0,s.Z)("tabs-container",y.tabList),children:[(0,v.jsx)(x,{...e,...n}),(0,v.jsx)(g,{...e,...n})]})}function q(e){const n=(0,h.Z)();return(0,v.jsx)(w,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const s={},a=r.createContext(s);function o(e){const n=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),r.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/a55c4658.d2d37fb7.js b/assets/js/a55c4658.d2d37fb7.js new file mode 100644 index 0000000000..a83463adb3 --- /dev/null +++ b/assets/js/a55c4658.d2d37fb7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[452],{9547:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var s=r(5893),t=r(1151),l=r(4866),a=r(5162),o=r(6393),i=r(4379);const c={sidebar_position:0,tags:["query"]},u="INSERT",d={id:"examples/queries/simple-queries/insert",title:"INSERT",description:"The examples below also work for the execute method.",source:"@site/docs/examples/queries/simple-queries/insert.mdx",sourceDirName:"examples/queries/simple-queries",slug:"/examples/queries/simple-queries/insert",permalink:"/node-mysql2/docs/examples/queries/simple-queries/insert",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/simple-queries/insert.mdx",tags:[{label:"query",permalink:"/node-mysql2/docs/tags/query"}],version:"current",sidebarPosition:0,frontMatter:{sidebar_position:0,tags:["query"]},sidebar:"examples",previous:{title:"Simple Queries",permalink:"/node-mysql2/docs/examples/queries/simple-queries/"},next:{title:"SELECT",permalink:"/node-mysql2/docs/examples/queries/simple-queries/select"}},h={},p=[{value:"query(sql)",id:"querysql",level:2},{value:"query(options)",id:"queryoptions",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"QueryOptions",id:"queryoptions-1",level:3}];function m(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"insert",children:"INSERT"}),"\n",(0,s.jsxs)(n.p,{children:["The examples below also work for the ",(0,s.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements/insert",children:(0,s.jsx)(n.code,{children:"execute"})})," method."]}),"\n",(0,s.jsx)(n.h2,{id:"querysql",children:"query(sql)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"query(sql: string)"})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:'try {\n const sql =\n \'INSERT INTO `users`(`name`, `age`) VALUES ("Josh", 19), ("Page", 45)\';\n\n // highlight-next-line\n const [result, fields] = await connection.query(sql);\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n'})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:'const sql =\n \'INSERT INTO `users`(`name`, `age`) VALUES ("Josh", 19), ("Page", 45)\';\n\nconnection.query(sql, (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n});\n'})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:".query()"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"queryoptions",children:"query(options)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["query(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:'try {\n const sql =\n \'INSERT INTO `users`(`name`, `age`) VALUES ("Josh", 19), ("Page", 45)\';\n\n // highlight-start\n const [result, fields] = await connection.query({\n sql,\n // ... other options\n });\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n'})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:'const sql =\n \'INSERT INTO `users`(`name`, `age`) VALUES ("Josh", 19), ("Page", 45)\';\n\nconnection.query(\n {\n sql,\n // ... other options\n },\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n'})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:".query()"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,s.jsx)(n.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,s.jsx)(o.Z,{title:"ResultSetHeader Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts",extractMethod:"ResultSetHeader",methodType:"interface"})}),"\n",(0,s.jsx)(n.h3,{id:"queryoptions-1",children:"QueryOptions"}),"\n",(0,s.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function x(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},5162:(e,n,r)=>{r.d(n,{Z:()=>a});r(7294);var s=r(512);const t={tabItem:"tabItem_Ymn6"};var l=r(5893);function a(e){let{children:n,hidden:r,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,s.Z)(t.tabItem,a),hidden:r,children:n})}},4866:(e,n,r)=>{r.d(n,{Z:()=>v});var s=r(7294),t=r(512),l=r(2466),a=r(6550),o=r(469),i=r(1980),c=r(7392),u=r(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:r}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:r,attributes:s,default:t}}=e;return{value:n,label:r,attributes:s,default:t}}))}(r);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,r])}function p(e){let{value:n,tabValues:r}=e;return r.some((e=>e.value===n))}function m(e){let{queryString:n=!1,groupId:r}=e;const t=(0,a.k6)(),l=function(e){let{queryString:n=!1,groupId:r}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!r)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return r??null}({queryString:n,groupId:r});return[(0,i._X)(l),(0,s.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(t.location.search);n.set(l,e),t.replace({...t.location,search:n.toString()})}),[l,t])]}function x(e){const{defaultValue:n,queryString:r=!1,groupId:t}=e,l=h(e),[a,i]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:r}=e;if(0===r.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:r}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${r.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=r.find((e=>e.default))??r[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:l}))),[c,d]=m({queryString:r,groupId:t}),[x,f]=function(e){let{groupId:n}=e;const r=function(e){return e?`docusaurus.tab.${e}`:null}(n),[t,l]=(0,u.Nk)(r);return[t,(0,s.useCallback)((e=>{r&&l.set(e)}),[r,l])]}({groupId:t}),b=(()=>{const e=c??x;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{b&&i(b)}),[b]);return{selectedValue:a,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),f(e)}),[d,f,l]),tabValues:l}}var f=r(2389);const b={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=r(5893);function j(e){let{className:n,block:r,selectedValue:s,selectValue:a,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,l.o5)(),u=e=>{const n=e.currentTarget,r=i.indexOf(n),t=o[r].value;t!==s&&(c(n),a(t))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const r=i.indexOf(e.currentTarget)+1;n=i[r]??i[0];break}case"ArrowLeft":{const r=i.indexOf(e.currentTarget)-1;n=i[r]??i[i.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,t.Z)("tabs",{"tabs--block":r},n),children:o.map((e=>{let{value:n,label:r,attributes:l}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>i.push(e),onKeyDown:d,onClick:u,...l,className:(0,t.Z)("tabs__item",b.tabItem,l?.className,{"tabs__item--active":s===n}),children:r??n},n)}))})}function q(e){let{lazy:n,children:r,selectedValue:t}=e;const l=(Array.isArray(r)?r:[r]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===t));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function y(e){const n=x(e);return(0,g.jsxs)("div",{className:(0,t.Z)("tabs-container",b.tabList),children:[(0,g.jsx)(j,{...e,...n}),(0,g.jsx)(q,{...e,...n})]})}function v(e){const n=(0,f.Z)();return(0,g.jsx)(y,{...e,children:d(e.children)},String(n))}},4379:(e,n,r)=>{r.d(n,{I:()=>i});var s=r(7294),t=r(2263),l=r(9286),a=r(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:r,extractMethod:i,methodType:c}=e;const[u,d]=(0,s.useState)(""),[h,p]=(0,s.useState)(!0),[m,x]=(0,s.useState)(!0),{siteConfig:f}=(0,t.Z)(),b=f.baseUrl.replace(/\/$/,""),g=/^\//.test(n)?`${b}${n}`:n;return(0,s.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(g,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&c?((e,n,r)=>{const s=e.split("\n"),t=`${r} ${n}`;let l=!1,a=0,o="";for(const i of s)if(i.includes(t)&&(l=!0),l&&(i.includes("{")&&a++,o+=i+"\n",i.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,i,c):e;d(n||e),p(!1),x(!1)})).catch((()=>{x(!0),p(!1)})),()=>{e.abort()}}),[g,i,c]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:m?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:g}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${r}`,children:u})})})}},6393:(e,n,r)=>{r.d(n,{Z:()=>l});var s=r(4673),t=r(5893);const l=e=>{let{children:n,open:r,title:l}=e;return(0,t.jsx)(s.Z,{open:r,className:"faq",summary:(0,t.jsx)("summary",{children:(0,t.jsx)("strong",{children:l})}),children:(0,t.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/assets/js/a94703ab.10844fc8.js b/assets/js/a94703ab.265346fe.js similarity index 99% rename from assets/js/a94703ab.10844fc8.js rename to assets/js/a94703ab.265346fe.js index 8c71625a78..1b13e4354a 100644 --- a/assets/js/a94703ab.10844fc8.js +++ b/assets/js/a94703ab.265346fe.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4368],{2674:(e,t,n)=>{n.r(t),n.d(t,{default:()=>be});var a=n(7294),o=n(512),i=n(1944),s=n(5281),l=n(3438),r=n(1116),c=n(5999),d=n(2466),u=n(5936);const m={backToTopButton:"backToTopButton_sjWU",backToTopButtonShow:"backToTopButtonShow_xfvO"};var b=n(5893);function h(){const{shown:e,scrollToTop:t}=function(e){let{threshold:t}=e;const[n,o]=(0,a.useState)(!1),i=(0,a.useRef)(!1),{startScroll:s,cancelScroll:l}=(0,d.Ct)();return(0,d.RF)(((e,n)=>{let{scrollY:a}=e;const s=n?.scrollY;s&&(i.current?i.current=!1:a>=s?(l(),o(!1)):a<t?o(!1):a+window.innerHeight<document.documentElement.scrollHeight&&o(!0))})),(0,u.S)((e=>{e.location.hash&&(i.current=!0,o(!1))})),{shown:n,scrollToTop:()=>s(0)}}({threshold:300});return(0,b.jsx)("button",{"aria-label":(0,c.I)({id:"theme.BackToTopButton.buttonAriaLabel",message:"Scroll back to top",description:"The ARIA label for the back to top button"}),className:(0,o.Z)("clean-btn",s.k.common.backToTopButton,m.backToTopButton,e&&m.backToTopButtonShow),type:"button",onClick:t})}var p=n(1442),x=n(6550),f=n(7524),j=n(6668),k=n(1327);function _(e){return(0,b.jsx)("svg",{width:"20",height:"20","aria-hidden":"true",...e,children:(0,b.jsxs)("g",{fill:"#7a7a7a",children:[(0,b.jsx)("path",{d:"M9.992 10.023c0 .2-.062.399-.172.547l-4.996 7.492a.982.982 0 01-.828.454H1c-.55 0-1-.453-1-1 0-.2.059-.403.168-.551l4.629-6.942L.168 3.078A.939.939 0 010 2.528c0-.548.45-.997 1-.997h2.996c.352 0 .649.18.828.45L9.82 9.472c.11.148.172.347.172.55zm0 0"}),(0,b.jsx)("path",{d:"M19.98 10.023c0 .2-.058.399-.168.547l-4.996 7.492a.987.987 0 01-.828.454h-3c-.547 0-.996-.453-.996-1 0-.2.059-.403.168-.551l4.625-6.942-4.625-6.945a.939.939 0 01-.168-.55 1 1 0 01.996-.997h3c.348 0 .649.18.828.45l4.996 7.492c.11.148.168.347.168.55zm0 0"})]})})}const v={collapseSidebarButton:"collapseSidebarButton_PEFL",collapseSidebarButtonIcon:"collapseSidebarButtonIcon_kv0_"};function g(e){let{onClick:t}=e;return(0,b.jsx)("button",{type:"button",title:(0,c.I)({id:"theme.docs.sidebar.collapseButtonTitle",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),"aria-label":(0,c.I)({id:"theme.docs.sidebar.collapseButtonAriaLabel",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),className:(0,o.Z)("button button--secondary button--outline",v.collapseSidebarButton),onClick:t,children:(0,b.jsx)(_,{className:v.collapseSidebarButtonIcon})})}var C=n(9689),S=n(902);const I=Symbol("EmptyContext"),N=a.createContext(I);function T(e){let{children:t}=e;const[n,o]=(0,a.useState)(null),i=(0,a.useMemo)((()=>({expandedItem:n,setExpandedItem:o})),[n]);return(0,b.jsx)(N.Provider,{value:i,children:t})}var B=n(6043),Z=n(8596),A=n(9960),L=n(2389);function y(e){let{collapsed:t,categoryLabel:n,onClick:a}=e;return(0,b.jsx)("button",{"aria-label":t?(0,c.I)({id:"theme.DocSidebarItem.expandCategoryAriaLabel",message:"Expand sidebar category '{label}'",description:"The ARIA label to expand the sidebar category"},{label:n}):(0,c.I)({id:"theme.DocSidebarItem.collapseCategoryAriaLabel",message:"Collapse sidebar category '{label}'",description:"The ARIA label to collapse the sidebar category"},{label:n}),type:"button",className:"clean-btn menu__caret",onClick:a})}function w(e){let{item:t,onItemClick:n,activePath:i,level:r,index:c,...d}=e;const{items:u,label:m,collapsible:h,className:p,href:x}=t,{docs:{sidebar:{autoCollapseCategories:f}}}=(0,j.L)(),k=function(e){const t=(0,L.Z)();return(0,a.useMemo)((()=>e.href&&!e.linkUnlisted?e.href:!t&&e.collapsible?(0,l.LM)(e):void 0),[e,t])}(t),_=(0,l._F)(t,i),v=(0,Z.Mg)(x,i),{collapsed:g,setCollapsed:C}=(0,B.u)({initialState:()=>!!h&&(!_&&t.collapsed)}),{expandedItem:T,setExpandedItem:w}=function(){const e=(0,a.useContext)(N);if(e===I)throw new S.i6("DocSidebarItemsExpandedStateProvider");return e}(),E=function(e){void 0===e&&(e=!g),w(e?null:c),C(e)};return function(e){let{isActive:t,collapsed:n,updateCollapsed:o}=e;const i=(0,S.D9)(t);(0,a.useEffect)((()=>{t&&!i&&n&&o(!1)}),[t,i,n,o])}({isActive:_,collapsed:g,updateCollapsed:E}),(0,a.useEffect)((()=>{h&&null!=T&&T!==c&&f&&C(!0)}),[h,T,c,C,f]),(0,b.jsxs)("li",{className:(0,o.Z)(s.k.docs.docSidebarItemCategory,s.k.docs.docSidebarItemCategoryLevel(r),"menu__list-item",{"menu__list-item--collapsed":g},p),children:[(0,b.jsxs)("div",{className:(0,o.Z)("menu__list-item-collapsible",{"menu__list-item-collapsible--active":v}),children:[(0,b.jsx)(A.Z,{className:(0,o.Z)("menu__link",{"menu__link--sublist":h,"menu__link--sublist-caret":!x&&h,"menu__link--active":_}),onClick:h?e=>{n?.(t),x?E(!1):(e.preventDefault(),E())}:()=>{n?.(t)},"aria-current":v?"page":void 0,"aria-expanded":h?!g:void 0,href:h?k??"#":k,...d,children:m}),x&&h&&(0,b.jsx)(y,{collapsed:g,categoryLabel:m,onClick:e=>{e.preventDefault(),E()}})]}),(0,b.jsx)(B.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:g,children:(0,b.jsx)(V,{items:u,tabIndex:g?-1:0,onItemClick:n,activePath:i,level:r+1})})]})}var E=n(3919),H=n(9471);const M={menuExternalLink:"menuExternalLink_NmtK"};function R(e){let{item:t,onItemClick:n,activePath:a,level:i,index:r,...c}=e;const{href:d,label:u,className:m,autoAddBaseUrl:h}=t,p=(0,l._F)(t,a),x=(0,E.Z)(d);return(0,b.jsx)("li",{className:(0,o.Z)(s.k.docs.docSidebarItemLink,s.k.docs.docSidebarItemLinkLevel(i),"menu__list-item",m),children:(0,b.jsxs)(A.Z,{className:(0,o.Z)("menu__link",!x&&M.menuExternalLink,{"menu__link--active":p}),autoAddBaseUrl:h,"aria-current":p?"page":void 0,to:d,...x&&{onClick:n?()=>n(t):void 0},...c,children:[u,!x&&(0,b.jsx)(H.Z,{})]})},u)}const W={menuHtmlItem:"menuHtmlItem_M9Kj"};function F(e){let{item:t,level:n,index:a}=e;const{value:i,defaultStyle:l,className:r}=t;return(0,b.jsx)("li",{className:(0,o.Z)(s.k.docs.docSidebarItemLink,s.k.docs.docSidebarItemLinkLevel(n),l&&[W.menuHtmlItem,"menu__list-item"],r),dangerouslySetInnerHTML:{__html:i}},a)}function P(e){let{item:t,...n}=e;switch(t.type){case"category":return(0,b.jsx)(w,{item:t,...n});case"html":return(0,b.jsx)(F,{item:t,...n});default:return(0,b.jsx)(R,{item:t,...n})}}function D(e){let{items:t,...n}=e;const a=(0,l.f)(t,n.activePath);return(0,b.jsx)(T,{children:a.map(((e,t)=>(0,b.jsx)(P,{item:e,index:t,...n},t)))})}const V=(0,a.memo)(D),U={menu:"menu_SIkG",menuWithAnnouncementBar:"menuWithAnnouncementBar_GW3s"};function K(e){let{path:t,sidebar:n,className:i}=e;const l=function(){const{isActive:e}=(0,C.nT)(),[t,n]=(0,a.useState)(e);return(0,d.RF)((t=>{let{scrollY:a}=t;e&&n(0===a)}),[e]),e&&t}();return(0,b.jsx)("nav",{"aria-label":(0,c.I)({id:"theme.docs.sidebar.navAriaLabel",message:"Docs sidebar",description:"The ARIA label for the sidebar navigation"}),className:(0,o.Z)("menu thin-scrollbar",U.menu,l&&U.menuWithAnnouncementBar,i),children:(0,b.jsx)("ul",{className:(0,o.Z)(s.k.docs.docSidebarMenu,"menu__list"),children:(0,b.jsx)(V,{items:n,activePath:t,level:1})})})}const Y="sidebar_njMd",z="sidebarWithHideableNavbar_wUlq",G="sidebarHidden_VK0M",O="sidebarLogo_isFc";function q(e){let{path:t,sidebar:n,onCollapse:a,isHidden:i}=e;const{navbar:{hideOnScroll:s},docs:{sidebar:{hideable:l}}}=(0,j.L)();return(0,b.jsxs)("div",{className:(0,o.Z)(Y,s&&z,i&&G),children:[s&&(0,b.jsx)(k.Z,{tabIndex:-1,className:O}),(0,b.jsx)(K,{path:t,sidebar:n}),l&&(0,b.jsx)(g,{onClick:a})]})}const J=a.memo(q);var Q=n(3102),X=n(3163);const $=e=>{let{sidebar:t,path:n}=e;const a=(0,X.e)();return(0,b.jsx)("ul",{className:(0,o.Z)(s.k.docs.docSidebarMenu,"menu__list"),children:(0,b.jsx)(V,{items:t,activePath:n,onItemClick:e=>{"category"===e.type&&e.href&&a.toggle(),"link"===e.type&&a.toggle()},level:1})})};function ee(e){return(0,b.jsx)(Q.Zo,{component:$,props:e})}const te=a.memo(ee);function ne(e){const t=(0,f.i)(),n="desktop"===t||"ssr"===t,a="mobile"===t;return(0,b.jsxs)(b.Fragment,{children:[n&&(0,b.jsx)(J,{...e}),a&&(0,b.jsx)(te,{...e})]})}const ae={expandButton:"expandButton_TmdG",expandButtonIcon:"expandButtonIcon_i1dp"};function oe(e){let{toggleSidebar:t}=e;return(0,b.jsx)("div",{className:ae.expandButton,title:(0,c.I)({id:"theme.docs.sidebar.expandButtonTitle",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),"aria-label":(0,c.I)({id:"theme.docs.sidebar.expandButtonAriaLabel",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),tabIndex:0,role:"button",onKeyDown:t,onClick:t,children:(0,b.jsx)(_,{className:ae.expandButtonIcon})})}const ie={docSidebarContainer:"docSidebarContainer_YfHR",docSidebarContainerHidden:"docSidebarContainerHidden_DPk8",sidebarViewport:"sidebarViewport_aRkj"};function se(e){let{children:t}=e;const n=(0,r.V)();return(0,b.jsx)(a.Fragment,{children:t},n?.name??"noSidebar")}function le(e){let{sidebar:t,hiddenSidebarContainer:n,setHiddenSidebarContainer:i}=e;const{pathname:l}=(0,x.TH)(),[r,c]=(0,a.useState)(!1),d=(0,a.useCallback)((()=>{r&&c(!1),!r&&(0,p.n)()&&c(!0),i((e=>!e))}),[i,r]);return(0,b.jsx)("aside",{className:(0,o.Z)(s.k.docs.docSidebarContainer,ie.docSidebarContainer,n&&ie.docSidebarContainerHidden),onTransitionEnd:e=>{e.currentTarget.classList.contains(ie.docSidebarContainer)&&n&&c(!0)},children:(0,b.jsx)(se,{children:(0,b.jsxs)("div",{className:(0,o.Z)(ie.sidebarViewport,r&&ie.sidebarViewportHidden),children:[(0,b.jsx)(ne,{sidebar:t,path:l,onCollapse:d,isHidden:r}),r&&(0,b.jsx)(oe,{toggleSidebar:d})]})})})}const re={docMainContainer:"docMainContainer_TBSr",docMainContainerEnhanced:"docMainContainerEnhanced_lQrH",docItemWrapperEnhanced:"docItemWrapperEnhanced_JWYK"};function ce(e){let{hiddenSidebarContainer:t,children:n}=e;const a=(0,r.V)();return(0,b.jsx)("main",{className:(0,o.Z)(re.docMainContainer,(t||!a)&&re.docMainContainerEnhanced),children:(0,b.jsx)("div",{className:(0,o.Z)("container padding-top--md padding-bottom--lg",re.docItemWrapper,t&&re.docItemWrapperEnhanced),children:n})})}const de={docRoot:"docRoot_UBD9",docsWrapper:"docsWrapper_hBAB"};function ue(e){let{children:t}=e;const n=(0,r.V)(),[o,i]=(0,a.useState)(!1);return(0,b.jsxs)("div",{className:de.docsWrapper,children:[(0,b.jsx)(h,{}),(0,b.jsxs)("div",{className:de.docRoot,children:[n&&(0,b.jsx)(le,{sidebar:n.items,hiddenSidebarContainer:o,setHiddenSidebarContainer:i}),(0,b.jsx)(ce,{hiddenSidebarContainer:o,children:t})]})]})}var me=n(5658);function be(e){const t=(0,l.SN)(e);if(!t)return(0,b.jsx)(me.Z,{});const{docElement:n,sidebarName:a,sidebarItems:c}=t;return(0,b.jsx)(i.FG,{className:(0,o.Z)(s.k.page.docsDocPage),children:(0,b.jsx)(r.b,{name:a,items:c,children:(0,b.jsx)(ue,{children:n})})})}},5658:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var a=n(512),o=n(5999),i=n(2503),s=n(5893);function l(e){let{className:t}=e;return(0,s.jsx)("main",{className:(0,a.Z)("container margin-vert--xl",t),children:(0,s.jsx)("div",{className:"row",children:(0,s.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,s.jsx)(i.Z,{as:"h1",className:"hero__title",children:(0,s.jsx)(o.Z,{id:"theme.NotFound.title",description:"The title of the 404 page",children:"Page Not Found"})}),(0,s.jsx)("p",{children:(0,s.jsx)(o.Z,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page",children:"We could not find what you were looking for."})}),(0,s.jsx)("p",{children:(0,s.jsx)(o.Z,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page",children:"Please contact the owner of the site that linked you to the original URL and let them know their link is broken."})})]})})})}}}]); \ No newline at end of file +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4368],{2674:(e,t,n)=>{n.r(t),n.d(t,{default:()=>be});var a=n(7294),o=n(512),i=n(1944),s=n(5281),l=n(3438),r=n(1116),c=n(5999),d=n(2466),u=n(5936);const m={backToTopButton:"backToTopButton_sjWU",backToTopButtonShow:"backToTopButtonShow_xfvO"};var b=n(5893);function h(){const{shown:e,scrollToTop:t}=function(e){let{threshold:t}=e;const[n,o]=(0,a.useState)(!1),i=(0,a.useRef)(!1),{startScroll:s,cancelScroll:l}=(0,d.Ct)();return(0,d.RF)(((e,n)=>{let{scrollY:a}=e;const s=n?.scrollY;s&&(i.current?i.current=!1:a>=s?(l(),o(!1)):a<t?o(!1):a+window.innerHeight<document.documentElement.scrollHeight&&o(!0))})),(0,u.S)((e=>{e.location.hash&&(i.current=!0,o(!1))})),{shown:n,scrollToTop:()=>s(0)}}({threshold:300});return(0,b.jsx)("button",{"aria-label":(0,c.I)({id:"theme.BackToTopButton.buttonAriaLabel",message:"Scroll back to top",description:"The ARIA label for the back to top button"}),className:(0,o.Z)("clean-btn",s.k.common.backToTopButton,m.backToTopButton,e&&m.backToTopButtonShow),type:"button",onClick:t})}var p=n(1442),x=n(6550),f=n(7524),j=n(6668),k=n(1327);function _(e){return(0,b.jsx)("svg",{width:"20",height:"20","aria-hidden":"true",...e,children:(0,b.jsxs)("g",{fill:"#7a7a7a",children:[(0,b.jsx)("path",{d:"M9.992 10.023c0 .2-.062.399-.172.547l-4.996 7.492a.982.982 0 01-.828.454H1c-.55 0-1-.453-1-1 0-.2.059-.403.168-.551l4.629-6.942L.168 3.078A.939.939 0 010 2.528c0-.548.45-.997 1-.997h2.996c.352 0 .649.18.828.45L9.82 9.472c.11.148.172.347.172.55zm0 0"}),(0,b.jsx)("path",{d:"M19.98 10.023c0 .2-.058.399-.168.547l-4.996 7.492a.987.987 0 01-.828.454h-3c-.547 0-.996-.453-.996-1 0-.2.059-.403.168-.551l4.625-6.942-4.625-6.945a.939.939 0 01-.168-.55 1 1 0 01.996-.997h3c.348 0 .649.18.828.45l4.996 7.492c.11.148.168.347.168.55zm0 0"})]})})}const v={collapseSidebarButton:"collapseSidebarButton_PEFL",collapseSidebarButtonIcon:"collapseSidebarButtonIcon_kv0_"};function g(e){let{onClick:t}=e;return(0,b.jsx)("button",{type:"button",title:(0,c.I)({id:"theme.docs.sidebar.collapseButtonTitle",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),"aria-label":(0,c.I)({id:"theme.docs.sidebar.collapseButtonAriaLabel",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),className:(0,o.Z)("button button--secondary button--outline",v.collapseSidebarButton),onClick:t,children:(0,b.jsx)(_,{className:v.collapseSidebarButtonIcon})})}var C=n(9689),S=n(902);const I=Symbol("EmptyContext"),N=a.createContext(I);function T(e){let{children:t}=e;const[n,o]=(0,a.useState)(null),i=(0,a.useMemo)((()=>({expandedItem:n,setExpandedItem:o})),[n]);return(0,b.jsx)(N.Provider,{value:i,children:t})}var B=n(6043),Z=n(8596),A=n(3692),L=n(2389);function y(e){let{collapsed:t,categoryLabel:n,onClick:a}=e;return(0,b.jsx)("button",{"aria-label":t?(0,c.I)({id:"theme.DocSidebarItem.expandCategoryAriaLabel",message:"Expand sidebar category '{label}'",description:"The ARIA label to expand the sidebar category"},{label:n}):(0,c.I)({id:"theme.DocSidebarItem.collapseCategoryAriaLabel",message:"Collapse sidebar category '{label}'",description:"The ARIA label to collapse the sidebar category"},{label:n}),type:"button",className:"clean-btn menu__caret",onClick:a})}function w(e){let{item:t,onItemClick:n,activePath:i,level:r,index:c,...d}=e;const{items:u,label:m,collapsible:h,className:p,href:x}=t,{docs:{sidebar:{autoCollapseCategories:f}}}=(0,j.L)(),k=function(e){const t=(0,L.Z)();return(0,a.useMemo)((()=>e.href&&!e.linkUnlisted?e.href:!t&&e.collapsible?(0,l.LM)(e):void 0),[e,t])}(t),_=(0,l._F)(t,i),v=(0,Z.Mg)(x,i),{collapsed:g,setCollapsed:C}=(0,B.u)({initialState:()=>!!h&&(!_&&t.collapsed)}),{expandedItem:T,setExpandedItem:w}=function(){const e=(0,a.useContext)(N);if(e===I)throw new S.i6("DocSidebarItemsExpandedStateProvider");return e}(),E=function(e){void 0===e&&(e=!g),w(e?null:c),C(e)};return function(e){let{isActive:t,collapsed:n,updateCollapsed:o}=e;const i=(0,S.D9)(t);(0,a.useEffect)((()=>{t&&!i&&n&&o(!1)}),[t,i,n,o])}({isActive:_,collapsed:g,updateCollapsed:E}),(0,a.useEffect)((()=>{h&&null!=T&&T!==c&&f&&C(!0)}),[h,T,c,C,f]),(0,b.jsxs)("li",{className:(0,o.Z)(s.k.docs.docSidebarItemCategory,s.k.docs.docSidebarItemCategoryLevel(r),"menu__list-item",{"menu__list-item--collapsed":g},p),children:[(0,b.jsxs)("div",{className:(0,o.Z)("menu__list-item-collapsible",{"menu__list-item-collapsible--active":v}),children:[(0,b.jsx)(A.Z,{className:(0,o.Z)("menu__link",{"menu__link--sublist":h,"menu__link--sublist-caret":!x&&h,"menu__link--active":_}),onClick:h?e=>{n?.(t),x?E(!1):(e.preventDefault(),E())}:()=>{n?.(t)},"aria-current":v?"page":void 0,"aria-expanded":h?!g:void 0,href:h?k??"#":k,...d,children:m}),x&&h&&(0,b.jsx)(y,{collapsed:g,categoryLabel:m,onClick:e=>{e.preventDefault(),E()}})]}),(0,b.jsx)(B.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:g,children:(0,b.jsx)(V,{items:u,tabIndex:g?-1:0,onItemClick:n,activePath:i,level:r+1})})]})}var E=n(3919),H=n(9471);const M={menuExternalLink:"menuExternalLink_NmtK"};function R(e){let{item:t,onItemClick:n,activePath:a,level:i,index:r,...c}=e;const{href:d,label:u,className:m,autoAddBaseUrl:h}=t,p=(0,l._F)(t,a),x=(0,E.Z)(d);return(0,b.jsx)("li",{className:(0,o.Z)(s.k.docs.docSidebarItemLink,s.k.docs.docSidebarItemLinkLevel(i),"menu__list-item",m),children:(0,b.jsxs)(A.Z,{className:(0,o.Z)("menu__link",!x&&M.menuExternalLink,{"menu__link--active":p}),autoAddBaseUrl:h,"aria-current":p?"page":void 0,to:d,...x&&{onClick:n?()=>n(t):void 0},...c,children:[u,!x&&(0,b.jsx)(H.Z,{})]})},u)}const W={menuHtmlItem:"menuHtmlItem_M9Kj"};function F(e){let{item:t,level:n,index:a}=e;const{value:i,defaultStyle:l,className:r}=t;return(0,b.jsx)("li",{className:(0,o.Z)(s.k.docs.docSidebarItemLink,s.k.docs.docSidebarItemLinkLevel(n),l&&[W.menuHtmlItem,"menu__list-item"],r),dangerouslySetInnerHTML:{__html:i}},a)}function P(e){let{item:t,...n}=e;switch(t.type){case"category":return(0,b.jsx)(w,{item:t,...n});case"html":return(0,b.jsx)(F,{item:t,...n});default:return(0,b.jsx)(R,{item:t,...n})}}function D(e){let{items:t,...n}=e;const a=(0,l.f)(t,n.activePath);return(0,b.jsx)(T,{children:a.map(((e,t)=>(0,b.jsx)(P,{item:e,index:t,...n},t)))})}const V=(0,a.memo)(D),U={menu:"menu_SIkG",menuWithAnnouncementBar:"menuWithAnnouncementBar_GW3s"};function K(e){let{path:t,sidebar:n,className:i}=e;const l=function(){const{isActive:e}=(0,C.nT)(),[t,n]=(0,a.useState)(e);return(0,d.RF)((t=>{let{scrollY:a}=t;e&&n(0===a)}),[e]),e&&t}();return(0,b.jsx)("nav",{"aria-label":(0,c.I)({id:"theme.docs.sidebar.navAriaLabel",message:"Docs sidebar",description:"The ARIA label for the sidebar navigation"}),className:(0,o.Z)("menu thin-scrollbar",U.menu,l&&U.menuWithAnnouncementBar,i),children:(0,b.jsx)("ul",{className:(0,o.Z)(s.k.docs.docSidebarMenu,"menu__list"),children:(0,b.jsx)(V,{items:n,activePath:t,level:1})})})}const Y="sidebar_njMd",z="sidebarWithHideableNavbar_wUlq",G="sidebarHidden_VK0M",O="sidebarLogo_isFc";function q(e){let{path:t,sidebar:n,onCollapse:a,isHidden:i}=e;const{navbar:{hideOnScroll:s},docs:{sidebar:{hideable:l}}}=(0,j.L)();return(0,b.jsxs)("div",{className:(0,o.Z)(Y,s&&z,i&&G),children:[s&&(0,b.jsx)(k.Z,{tabIndex:-1,className:O}),(0,b.jsx)(K,{path:t,sidebar:n}),l&&(0,b.jsx)(g,{onClick:a})]})}const J=a.memo(q);var Q=n(3102),X=n(3163);const $=e=>{let{sidebar:t,path:n}=e;const a=(0,X.e)();return(0,b.jsx)("ul",{className:(0,o.Z)(s.k.docs.docSidebarMenu,"menu__list"),children:(0,b.jsx)(V,{items:t,activePath:n,onItemClick:e=>{"category"===e.type&&e.href&&a.toggle(),"link"===e.type&&a.toggle()},level:1})})};function ee(e){return(0,b.jsx)(Q.Zo,{component:$,props:e})}const te=a.memo(ee);function ne(e){const t=(0,f.i)(),n="desktop"===t||"ssr"===t,a="mobile"===t;return(0,b.jsxs)(b.Fragment,{children:[n&&(0,b.jsx)(J,{...e}),a&&(0,b.jsx)(te,{...e})]})}const ae={expandButton:"expandButton_TmdG",expandButtonIcon:"expandButtonIcon_i1dp"};function oe(e){let{toggleSidebar:t}=e;return(0,b.jsx)("div",{className:ae.expandButton,title:(0,c.I)({id:"theme.docs.sidebar.expandButtonTitle",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),"aria-label":(0,c.I)({id:"theme.docs.sidebar.expandButtonAriaLabel",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),tabIndex:0,role:"button",onKeyDown:t,onClick:t,children:(0,b.jsx)(_,{className:ae.expandButtonIcon})})}const ie={docSidebarContainer:"docSidebarContainer_YfHR",docSidebarContainerHidden:"docSidebarContainerHidden_DPk8",sidebarViewport:"sidebarViewport_aRkj"};function se(e){let{children:t}=e;const n=(0,r.V)();return(0,b.jsx)(a.Fragment,{children:t},n?.name??"noSidebar")}function le(e){let{sidebar:t,hiddenSidebarContainer:n,setHiddenSidebarContainer:i}=e;const{pathname:l}=(0,x.TH)(),[r,c]=(0,a.useState)(!1),d=(0,a.useCallback)((()=>{r&&c(!1),!r&&(0,p.n)()&&c(!0),i((e=>!e))}),[i,r]);return(0,b.jsx)("aside",{className:(0,o.Z)(s.k.docs.docSidebarContainer,ie.docSidebarContainer,n&&ie.docSidebarContainerHidden),onTransitionEnd:e=>{e.currentTarget.classList.contains(ie.docSidebarContainer)&&n&&c(!0)},children:(0,b.jsx)(se,{children:(0,b.jsxs)("div",{className:(0,o.Z)(ie.sidebarViewport,r&&ie.sidebarViewportHidden),children:[(0,b.jsx)(ne,{sidebar:t,path:l,onCollapse:d,isHidden:r}),r&&(0,b.jsx)(oe,{toggleSidebar:d})]})})})}const re={docMainContainer:"docMainContainer_TBSr",docMainContainerEnhanced:"docMainContainerEnhanced_lQrH",docItemWrapperEnhanced:"docItemWrapperEnhanced_JWYK"};function ce(e){let{hiddenSidebarContainer:t,children:n}=e;const a=(0,r.V)();return(0,b.jsx)("main",{className:(0,o.Z)(re.docMainContainer,(t||!a)&&re.docMainContainerEnhanced),children:(0,b.jsx)("div",{className:(0,o.Z)("container padding-top--md padding-bottom--lg",re.docItemWrapper,t&&re.docItemWrapperEnhanced),children:n})})}const de={docRoot:"docRoot_UBD9",docsWrapper:"docsWrapper_hBAB"};function ue(e){let{children:t}=e;const n=(0,r.V)(),[o,i]=(0,a.useState)(!1);return(0,b.jsxs)("div",{className:de.docsWrapper,children:[(0,b.jsx)(h,{}),(0,b.jsxs)("div",{className:de.docRoot,children:[n&&(0,b.jsx)(le,{sidebar:n.items,hiddenSidebarContainer:o,setHiddenSidebarContainer:i}),(0,b.jsx)(ce,{hiddenSidebarContainer:o,children:t})]})]})}var me=n(5658);function be(e){const t=(0,l.SN)(e);if(!t)return(0,b.jsx)(me.Z,{});const{docElement:n,sidebarName:a,sidebarItems:c}=t;return(0,b.jsx)(i.FG,{className:(0,o.Z)(s.k.page.docsDocPage),children:(0,b.jsx)(r.b,{name:a,items:c,children:(0,b.jsx)(ue,{children:n})})})}},5658:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var a=n(512),o=n(5999),i=n(2503),s=n(5893);function l(e){let{className:t}=e;return(0,s.jsx)("main",{className:(0,a.Z)("container margin-vert--xl",t),children:(0,s.jsx)("div",{className:"row",children:(0,s.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,s.jsx)(i.Z,{as:"h1",className:"hero__title",children:(0,s.jsx)(o.Z,{id:"theme.NotFound.title",description:"The title of the 404 page",children:"Page Not Found"})}),(0,s.jsx)("p",{children:(0,s.jsx)(o.Z,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page",children:"We could not find what you were looking for."})}),(0,s.jsx)("p",{children:(0,s.jsx)(o.Z,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page",children:"Please contact the owner of the site that linked you to the original URL and let them know their link is broken."})})]})})})}}}]); \ No newline at end of file diff --git a/assets/js/ad7b17cf.9952a969.js b/assets/js/ad7b17cf.9952a969.js new file mode 100644 index 0000000000..f1a4f43c54 --- /dev/null +++ b/assets/js/ad7b17cf.9952a969.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2030],{923:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>u,contentTitle:()=>c,default:()=>m,frontMatter:()=>l,metadata:()=>i,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},c="await \u2014 co",i={id:"examples/promise-wrapper/co-await",title:"await \u2014 co",description:"",source:"@site/docs/examples/promise-wrapper/co-await.mdx",sourceDirName:"examples/promise-wrapper",slug:"/examples/promise-wrapper/co-await",permalink:"/node-mysql2/docs/examples/promise-wrapper/co-await",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/promise-wrapper/co-await.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Binlog Watcher",permalink:"/node-mysql2/docs/examples/binlog-watcher"},next:{title:"MySQL Proxy",permalink:"/node-mysql2/docs/examples/tests/mysql-proxy"}},u={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"await--co",children:"await \u2014 co"}),"\n",(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(o.Z,{value:"await.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2/promise');\n\nasync function test() {\n const c = await mysql.createConnection({\n port: 3306,\n user: 'testuser',\n namedPlaceholders: true,\n password: 'testpassword',\n });\n console.log('connected!');\n const [rows, fields] = await c.query('show databases');\n console.log(rows);\n\n try {\n const [rows, fields] = await c.query('some invalid sql here');\n } catch (e) {\n console.log('caught exception!', e);\n }\n\n console.log(await c.execute('select sleep(0.5)'));\n console.log('after first sleep');\n console.log(await c.execute('select sleep(0.5)'));\n console.log('after second sleep');\n let start = +new Date();\n console.log(\n await Promise.all([\n c.execute('select sleep(2.5)'),\n c.execute('select sleep(2.5)'),\n ])\n );\n console.log(\n 'after 2+3 parallel sleep which is in fact not parallel because commands are queued per connection'\n );\n let end = +new Date();\n console.log(end - start);\n await c.end();\n\n const p = mysql.createPool({\n port: 3306,\n user: 'testuser',\n namedPlaceholders: true,\n password: 'testpassword',\n });\n console.log(await p.execute('select sleep(0.5)'));\n console.log('after first pool sleep');\n start = +new Date();\n console.log(\n await Promise.all([\n p.execute('select sleep(2.5)'),\n p.execute('select sleep(2.5)'),\n ])\n );\n console.log('after 2+3 parallel pool sleep');\n end = +new Date();\n console.log(end - start);\n await p.end();\n}\n\ntest()\n .then(() => {\n console.log('done');\n })\n .catch((err) => {\n console.log('error!', err);\n throw err;\n });\n"})})}),(0,r.jsx)(o.Z,{value:"co.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2/promise');\nconst co = require('co');\n\nco(function* () {\n const c = yield mysql.createConnection({\n port: 3306,\n user: 'root',\n namedPlaceholders: true,\n });\n const rows = yield c.query('show databases');\n console.log(rows);\n console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 }));\n yield c.end();\n})\n .then(function () {\n console.log('done');\n })\n .catch(function (err) {\n console.log(err);\n throw err;\n });\n"})})}),(0,r.jsx)(o.Z,{value:".babelrc",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{\n "plugins": ["transform-async-to-generator"]\n}\n'})})}),(0,r.jsx)(o.Z,{value:"package.json",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{\n "name": "promise-co-await",\n "version": "1.0.0",\n "description": "",\n "main": "await.js",\n "scripts": {\n "test": "echo \\"Error: no test specified\\" && exit 1"\n },\n "author": "",\n "license": "ISC",\n "dependencies": {\n "babel-cli": "^6.9.0"\n }\n}\n'})})})]})]})}function m(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>j});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),c=t(1980),i=t(7392),u=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,i.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function h(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,c._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function f(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=p(e),[o,c]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[i,d]=h({queryString:t,groupId:a}),[f,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,u.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),w=(()=>{const e=i??f;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{w&&c(w)}),[w]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);c(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const w={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function x(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const c=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),u=e=>{const n=e.currentTarget,t=c.indexOf(n),a=l[t].value;a!==r&&(i(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const t=c.indexOf(e.currentTarget)+1;n=c[t]??c[0];break}case"ArrowLeft":{const t=c.indexOf(e.currentTarget)-1;n=c[t]??c[c.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>c.push(e),onKeyDown:d,onClick:u,...s,className:(0,a.Z)("tabs__item",w.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function y(e){const n=f(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",w.tabList),children:[(0,g.jsx)(x,{...e,...n}),(0,g.jsx)(v,{...e,...n})]})}function j(e){const n=(0,b.Z)();return(0,g.jsx)(y,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/b07748b5.e822c15e.js b/assets/js/b07748b5.e822c15e.js new file mode 100644 index 0000000000..d157a941fd --- /dev/null +++ b/assets/js/b07748b5.e822c15e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4403],{214:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>h,contentTitle:()=>d,default:()=>m,frontMatter:()=>a,metadata:()=>u,toc:()=>p});var r=s(5893),o=s(1151),l=s(4866),t=s(5162),c=s(6393),i=s(4379);const a={sidebar_position:3,tags:["createPoolCluster","URI","SHA1","RDS","SSL","Socks"]},d="createPoolCluster",u={id:"examples/connections/createPoolCluster",title:"createPoolCluster",description:"For queries please see the Simple Queries and Prepared Statements examples.",source:"@site/docs/examples/connections/createPoolCluster.mdx",sourceDirName:"examples/connections",slug:"/examples/connections/createPoolCluster",permalink:"/node-mysql2/docs/examples/connections/createPoolCluster",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/connections/createPoolCluster.mdx",tags:[{label:"createPoolCluster",permalink:"/node-mysql2/docs/tags/create-pool-cluster"},{label:"URI",permalink:"/node-mysql2/docs/tags/uri"},{label:"SHA1",permalink:"/node-mysql2/docs/tags/sha-1"},{label:"RDS",permalink:"/node-mysql2/docs/tags/rds"},{label:"SSL",permalink:"/node-mysql2/docs/tags/ssl"},{label:"Socks",permalink:"/node-mysql2/docs/tags/socks"}],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3,tags:["createPoolCluster","URI","SHA1","RDS","SSL","Socks"]},sidebar:"examples",previous:{title:"createPool",permalink:"/node-mysql2/docs/examples/connections/create-pool"},next:{title:"Simple Queries",permalink:"/node-mysql2/docs/examples/queries/simple-queries/"}},h={},p=[{value:"add(group, connectionUri)",id:"addgroup-connectionuri",level:2},{value:"add(group, config)",id:"addgroup-config",level:2},{value:"add(group, config) \u2014 SHA1",id:"addgroup-config--sha1",level:2},{value:"add(group, config) \u2014 SSL",id:"addgroup-config--ssl",level:2},{value:"add(group, config) \u2014 RDS SSL",id:"addgroup-config--rds-ssl",level:2},{value:"Related Links",id:"related-links",level:3},{value:"add(group, config) \u2014 Socks",id:"addgroup-config--socks",level:2},{value:"Glossary",id:"glossary",level:2},{value:"PoolOptions",id:"pooloptions",level:3}];function g(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,o.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"createpoolcluster",children:"createPoolCluster"}),"\n",(0,r.jsx)(n.admonition,{type:"info",children:(0,r.jsxs)(n.p,{children:["For queries please see the ",(0,r.jsx)(n.a,{href:"/docs/examples/queries/simple-queries",children:(0,r.jsx)(n.strong,{children:"Simple Queries"})})," and ",(0,r.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements",children:(0,r.jsx)(n.strong,{children:"Prepared Statements"})})," examples."]})}),"\n",(0,r.jsx)(n.h2,{id:"addgroup-connectionuri",children:"add(group, connectionUri)"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:"add(group: string, connectionUri: string)"})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const poolCluster = mysql.createPoolCluster();\n\n poolCluster.add('clusterA', 'mysql://root:password@localhost:3306/test');\n // poolCluster.add('clusterB', '...');\n\n const connection = await poolCluster.getConnection('clusterA');\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(t.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', 'mysql://root:password@localhost:3306/test');\n// poolCluster.add('clusterB', '...');\n\npoolCluster.getConnection('clusterA', function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})})]}),"\n",(0,r.jsxs)(n.admonition,{type:"warning",children:[(0,r.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"addgroup-config",children:"add(group, config)"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["add(group: string, config: ",(0,r.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const poolCluster = mysql.createPoolCluster();\n\n poolCluster.add('clusterA', {\n host: 'localhost',\n user: 'root',\n database: 'test',\n // port: 3306,\n // password: '',\n });\n // poolCluster.add('clusterB', '...');\n\n const connection = await poolCluster.getConnection('clusterA');\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(t.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', {\n host: 'localhost',\n user: 'root',\n database: 'test',\n // port: 3306,\n // password: '',\n});\n// poolCluster.add('clusterB', '...');\n\npoolCluster.getConnection('clusterA', function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})})]}),"\n",(0,r.jsxs)(n.admonition,{type:"warning",children:[(0,r.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"addgroup-config--sha1",children:"add(group, config) \u2014 SHA1"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["add(group: string, config: ",(0,r.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const poolCluster = mysql.createPoolCluster();\n\n poolCluster.add('clusterA', {\n // ...\n passwordSha1: Buffer.from(\n '8bb6118f8fd6935ad0876a3be34a717d32708ffd',\n 'hex'\n ),\n });\n // poolCluster.add('clusterB', '...');\n\n const connection = await poolCluster.getConnection('clusterA');\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(t.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', {\n // ...\n passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'),\n});\n// poolCluster.add('clusterB', '...');\n\npoolCluster.getConnection('clusterA', function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})})]}),"\n",(0,r.jsxs)(n.admonition,{type:"warning",children:[(0,r.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"addgroup-config--ssl",children:"add(group, config) \u2014 SSL"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["add(group: string, config: ",(0,r.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const poolCluster = mysql.createPoolCluster();\n\n poolCluster.add('clusterA', {\n // ...\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n });\n // poolCluster.add('clusterB', '...');\n\n const connection = await poolCluster.getConnection('clusterA');\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(t.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', {\n // ...\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n});\n// poolCluster.add('clusterB', '...');\n\npoolCluster.getConnection('clusterA', function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})}),(0,r.jsxs)(t.Z,{value:"certs/ca-cert.pem",children:[(0,r.jsx)(i.I,{language:"plan",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/test/fixtures/ssl/certs/ca.pem"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["See ",(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/tree/master/test/fixtures/ssl/certs",children:"ssl/certs"}),"."]}),"\n"]})]})]}),"\n",(0,r.jsxs)(n.admonition,{type:"warning",children:[(0,r.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"addgroup-config--rds-ssl",children:"add(group, config) \u2014 RDS SSL"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["add(group: string, config: ",(0,r.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["You can use ",(0,r.jsx)(n.strong,{children:"Amazon RDS"})," string as value to ssl property to connect to ",(0,r.jsx)(n.strong,{children:"Amazon RDS"})," MySQL over SSL."]}),"\n",(0,r.jsxs)(n.p,{children:["In that case ",(0,r.jsx)(n.a,{href:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem",children:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem"})," CA cert is used:"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsxs)(t.Z,{value:"promise.js",default:!0,children:[(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const poolCluster = mysql.createPoolCluster();\n\n poolCluster.add('clusterA', {\n // ...\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n });\n // poolCluster.add('clusterB', '...');\n\n const connection = await poolCluster.getConnection('clusterA');\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})}),(0,r.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"try {\n const [res] = await connection.query('SHOW `status` LIKE \"Ssl_cipher\"');\n await poolCluster.end();\n\n console.log(res);\n} catch (err) {\n console.log(err);\n}\n"})})})]}),(0,r.jsxs)(t.Z,{value:"callback.js",children:[(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', {\n // ...\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n});\n// poolCluster.add('clusterB', '...');\n\npoolCluster.getConnection('clusterA', function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})}),(0,r.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"connectionquery('SHOW `status` LIKE \"Ssl_cipher\"', function (err, res) {\n poolCluster.end();\n\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(res);\n});\n"})})})]})]}),"\n",(0,r.jsxs)(n.admonition,{type:"warning",children:[(0,r.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,r.jsx)(n.h3,{id:"related-links",children:"Related Links"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Issues"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/issues/2130",children:"#2130 \u2014 Update TLS certs for Amazon RDS instances"})}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Pull Requests"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/pull/2119",children:"#2119 \u2014 fix: make startTls code compatible with Bun"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/pull/2131",children:"#2131 \u2014 Update Amazon RDS SSL CA cert"})}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"addgroup-config--socks",children:"add(group, config) \u2014 Socks"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["add(group: string, config: ",(0,r.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(t.Z,{value:"A.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\nconst socksProxy = new SocksConnection({ port: 3306 });\n// highlight-start\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', {\n stream: socksProxy,\n});\n// poolCluster.add('clusterB', '...');\n\nconst poolNamespace = poolCluster.of('clusterA');\n// highlight-end\n"})})}),(0,r.jsx)(t.Z,{value:"B.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\n// highlight-start\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', {\n debug: 1,\n stream: function () {\n return new SocksConnection({ port: 3306 });\n },\n});\n// poolCluster.add('clusterB', '...');\n\nconst poolNamespace = poolCluster.of('clusterA');\n// highlight-end\n"})})})]}),"\n",(0,r.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"poolNamespace.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n\npoolNamespace.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n\npoolNamespace.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n"})})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,r.jsx)(n.h3,{id:"pooloptions",children:"PoolOptions"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"PoolOptions"})," extends all options from ",(0,r.jsx)(n.strong,{children:"ConnectionOptions"}),":"]}),"\n",(0,r.jsx)(c.Z,{title:"ConnectionOptions Specification",children:(0,r.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/Connection.d.ts",extractMethod:"ConnectionOptions",methodType:"interface"})}),"\n"]}),"\n",(0,r.jsx)(c.Z,{title:"PoolOptions Specification",children:(0,r.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/Pool.d.ts",extractMethod:"PoolOptions",methodType:"interface"})})]})}function m(e={}){const{wrapper:n}={...(0,o.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(g,{...e})}):g(e)}},5162:(e,n,s)=>{s.d(n,{Z:()=>t});s(7294);var r=s(512);const o={tabItem:"tabItem_Ymn6"};var l=s(5893);function t(e){let{children:n,hidden:s,className:t}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,r.Z)(o.tabItem,t),hidden:s,children:n})}},4866:(e,n,s)=>{s.d(n,{Z:()=>C});var r=s(7294),o=s(512),l=s(2466),t=s(6550),c=s(469),i=s(1980),a=s(7392),d=s(12);function u(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:s}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return u(e).map((e=>{let{props:{value:n,label:s,attributes:r,default:o}}=e;return{value:n,label:s,attributes:r,default:o}}))}(s);return function(e){const n=(0,a.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,s])}function p(e){let{value:n,tabValues:s}=e;return s.some((e=>e.value===n))}function g(e){let{queryString:n=!1,groupId:s}=e;const o=(0,t.k6)(),l=function(e){let{queryString:n=!1,groupId:s}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!s)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:n,groupId:s});return[(0,i._X)(l),(0,r.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(o.location.search);n.set(l,e),o.replace({...o.location,search:n.toString()})}),[l,o])]}function m(e){const{defaultValue:n,queryString:s=!1,groupId:o}=e,l=h(e),[t,i]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:s}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=s.find((e=>e.default))??s[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:l}))),[a,u]=g({queryString:s,groupId:o}),[m,x]=function(e){let{groupId:n}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(n),[o,l]=(0,d.Nk)(s);return[o,(0,r.useCallback)((e=>{s&&l.set(e)}),[s,l])]}({groupId:o}),j=(()=>{const e=a??m;return p({value:e,tabValues:l})?e:null})();(0,c.Z)((()=>{j&&i(j)}),[j]);return{selectedValue:t,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),u(e),x(e)}),[u,x,l]),tabValues:l}}var x=s(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=s(5893);function y(e){let{className:n,block:s,selectedValue:r,selectValue:t,tabValues:c}=e;const i=[],{blockElementScrollPositionUntilNextRender:a}=(0,l.o5)(),d=e=>{const n=e.currentTarget,s=i.indexOf(n),o=c[s].value;o!==r&&(a(n),t(o))},u=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const s=i.indexOf(e.currentTarget)+1;n=i[s]??i[0];break}case"ArrowLeft":{const s=i.indexOf(e.currentTarget)-1;n=i[s]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,o.Z)("tabs",{"tabs--block":s},n),children:c.map((e=>{let{value:n,label:s,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>i.push(e),onKeyDown:u,onClick:d,...l,className:(0,o.Z)("tabs__item",j.tabItem,l?.className,{"tabs__item--active":r===n}),children:s??n},n)}))})}function b(e){let{lazy:n,children:s,selectedValue:o}=e;const l=(Array.isArray(s)?s:[s]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===o));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==o})))})}function q(e){const n=m(e);return(0,f.jsxs)("div",{className:(0,o.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(y,{...e,...n}),(0,f.jsx)(b,{...e,...n})]})}function C(e){const n=(0,x.Z)();return(0,f.jsx)(q,{...e,children:u(e.children)},String(n))}},4379:(e,n,s)=>{s.d(n,{I:()=>i});var r=s(7294),o=s(2263),l=s(9286),t=s(5893);const c=()=>(0,t.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:s,extractMethod:i,methodType:a}=e;const[d,u]=(0,r.useState)(""),[h,p]=(0,r.useState)(!0),[g,m]=(0,r.useState)(!0),{siteConfig:x}=(0,o.Z)(),j=x.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,r.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&a?((e,n,s)=>{const r=e.split("\n"),o=`${s} ${n}`;let l=!1,t=0,c="";for(const i of r)if(i.includes(o)&&(l=!0),l&&(i.includes("{")&&t++,c+=i+"\n",i.includes("}")&&(t--,0===t)))break;return c.trim()||e})(e,i,a):e;u(n||e),p(!1),m(!1)})).catch((()=>{m(!0),p(!1)})),()=>{e.abort()}}),[f,i,a]),(0,t.jsx)(t.Fragment,{children:h?(0,t.jsx)(c,{}):(0,t.jsx)(t.Fragment,{children:g?(0,t.jsxs)("div",{children:["Unable to access the requested link: ",(0,t.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,t.jsx)(l.Z,{className:`language-${s}`,children:d})})})}},6393:(e,n,s)=>{s.d(n,{Z:()=>l});var r=s(4673),o=s(5893);const l=e=>{let{children:n,open:s,title:l}=e;return(0,o.jsx)(r.Z,{open:s,className:"faq",summary:(0,o.jsx)("summary",{children:(0,o.jsx)("strong",{children:l})}),children:(0,o.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/assets/js/b80d201b.074f18ce.js b/assets/js/b80d201b.074f18ce.js new file mode 100644 index 0000000000..eb83841abc --- /dev/null +++ b/assets/js/b80d201b.074f18ce.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6061],{1384:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>m,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var s=t(5893),r=t(1151),l=t(4866),a=t(5162),o=t(6393),i=t(4379);const c={sidebar_position:2,tags:["Prepared Statements","Placeholders","Parameters","execute"]},u="UPDATE",d={id:"examples/queries/prepared-statements/update",title:"UPDATE",description:"execute(sql, values)",source:"@site/docs/examples/queries/prepared-statements/update.mdx",sourceDirName:"examples/queries/prepared-statements",slug:"/examples/queries/prepared-statements/update",permalink:"/node-mysql2/docs/examples/queries/prepared-statements/update",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/prepared-statements/update.mdx",tags:[{label:"Prepared Statements",permalink:"/node-mysql2/docs/tags/prepared-statements"},{label:"Placeholders",permalink:"/node-mysql2/docs/tags/placeholders"},{label:"Parameters",permalink:"/node-mysql2/docs/tags/parameters"},{label:"execute",permalink:"/node-mysql2/docs/tags/execute"}],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2,tags:["Prepared Statements","Placeholders","Parameters","execute"]},sidebar:"examples",previous:{title:"SELECT",permalink:"/node-mysql2/docs/examples/queries/prepared-statements/select"},next:{title:"DELETE",permalink:"/node-mysql2/docs/examples/queries/prepared-statements/delete"}},h={},p=[{value:"execute(sql, values)",id:"executesql-values",level:2},{value:"execute(options)",id:"executeoptions",level:2},{value:"execute(options, values)",id:"executeoptions-values",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"QueryOptions",id:"queryoptions",level:3}];function x(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"update",children:"UPDATE"}),"\n",(0,s.jsx)(n.h2,{id:"executesql-values",children:"execute(sql, values)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"execute(sql: string, values: any[])"})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';\n const values = [20, 'Josh'];\n\n // highlight-next-line\n const [result, fields] = await connection.execute(sql, values);\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';\nconst values = [20, 'Josh'];\n\nconnection.execute(sql, values, (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n});\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"executeoptions",children:"execute(options)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["execute(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';\n const values = [20, 'Josh'];\n\n // highlight-start\n const [result, fields] = await connection.execute({\n sql,\n values,\n // ... other options\n });\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';\nconst values = [20, 'Josh'];\n\nconnection.execute(\n {\n sql,\n values,\n // ... other options\n },\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"executeoptions-values",children:"execute(options, values)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["execute(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),", values: any[])"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';\n const values = [20, 'Josh'];\n\n // highlight-start\n const [result, fields] = await connection.execute(\n {\n sql,\n // ... other options\n },\n values\n );\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';\nconst values = [20, 'Josh'];\n\nconnection.execute(\n {\n sql,\n // ... other options\n },\n values,\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,s.jsx)(n.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,s.jsx)(o.Z,{title:"ResultSetHeader Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts",extractMethod:"ResultSetHeader",methodType:"interface"})}),"\n",(0,s.jsx)(n.h3,{id:"queryoptions",children:"QueryOptions"}),"\n",(0,s.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(x,{...e})}):x(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>a});t(7294);var s=t(512);const r={tabItem:"tabItem_Ymn6"};var l=t(5893);function a(e){let{children:n,hidden:t,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,s.Z)(r.tabItem,a),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>q});var s=t(7294),r=t(512),l=t(2466),a=t(6550),o=t(469),i=t(1980),c=t(7392),u=t(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:t}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:s,default:r}}=e;return{value:n,label:t,attributes:s,default:r}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function x(e){let{queryString:n=!1,groupId:t}=e;const r=(0,a.k6)(),l=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,i._X)(l),(0,s.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(r.location.search);n.set(l,e),r.replace({...r.location,search:n.toString()})}),[l,r])]}function m(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,l=h(e),[a,i]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=t.find((e=>e.default))??t[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:l}))),[c,d]=x({queryString:t,groupId:r}),[m,j]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,l]=(0,u.Nk)(t);return[r,(0,s.useCallback)((e=>{t&&l.set(e)}),[t,l])]}({groupId:r}),g=(()=>{const e=c??m;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{g&&i(g)}),[g]);return{selectedValue:a,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),j(e)}),[d,j,l]),tabValues:l}}var j=t(2389);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=t(5893);function b(e){let{className:n,block:t,selectedValue:s,selectValue:a,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,l.o5)(),u=e=>{const n=e.currentTarget,t=i.indexOf(n),r=o[t].value;r!==s&&(c(n),a(r))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const t=i.indexOf(e.currentTarget)+1;n=i[t]??i[0];break}case"ArrowLeft":{const t=i.indexOf(e.currentTarget)-1;n=i[t]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":t},n),children:o.map((e=>{let{value:n,label:t,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>i.push(e),onKeyDown:d,onClick:u,...l,className:(0,r.Z)("tabs__item",g.tabItem,l?.className,{"tabs__item--active":s===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:r}=e;const l=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===r));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function y(e){const n=m(e);return(0,f.jsxs)("div",{className:(0,r.Z)("tabs-container",g.tabList),children:[(0,f.jsx)(b,{...e,...n}),(0,f.jsx)(v,{...e,...n})]})}function q(e){const n=(0,j.Z)();return(0,f.jsx)(y,{...e,children:d(e.children)},String(n))}},4379:(e,n,t)=>{t.d(n,{I:()=>i});var s=t(7294),r=t(2263),l=t(9286),a=t(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:t,extractMethod:i,methodType:c}=e;const[u,d]=(0,s.useState)(""),[h,p]=(0,s.useState)(!0),[x,m]=(0,s.useState)(!0),{siteConfig:j}=(0,r.Z)(),g=j.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${g}${n}`:n;return(0,s.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&c?((e,n,t)=>{const s=e.split("\n"),r=`${t} ${n}`;let l=!1,a=0,o="";for(const i of s)if(i.includes(r)&&(l=!0),l&&(i.includes("{")&&a++,o+=i+"\n",i.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,i,c):e;d(n||e),p(!1),m(!1)})).catch((()=>{m(!0),p(!1)})),()=>{e.abort()}}),[f,i,c]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:x?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${t}`,children:u})})})}},6393:(e,n,t)=>{t.d(n,{Z:()=>l});var s=t(4673),r=t(5893);const l=e=>{let{children:n,open:t,title:l}=e;return(0,r.jsx)(s.Z,{open:t,className:"faq",summary:(0,r.jsx)("summary",{children:(0,r.jsx)("strong",{children:l})}),children:(0,r.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/assets/js/b825a63d.cf070d2a.js b/assets/js/b825a63d.cf070d2a.js new file mode 100644 index 0000000000..9cdc7e1d17 --- /dev/null +++ b/assets/js/b825a63d.cf070d2a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7435],{2104:e=>{e.exports=JSON.parse('{"label":"SHA1","permalink":"/node-mysql2/docs/tags/sha-1","allTagsPath":"/node-mysql2/docs/tags","count":3,"items":[{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/docs/examples/connections/create-connection"},{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/docs/examples/connections/create-pool"},{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/docs/examples/connections/createPoolCluster"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/assets/js/bc31cbdb.2ff9047a.js b/assets/js/bc31cbdb.2ff9047a.js deleted file mode 100644 index 8633f3411e..0000000000 --- a/assets/js/bc31cbdb.2ff9047a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1437],{861:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>f,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},u="Procedure Call Packet (Row as Array)",c={id:"examples/typescript/procedure-call/row-as-array",title:"Procedure Call Packet (Row as Array)",description:"",source:"@site/docs/examples/typescript/procedure-call/01-row-as-array.mdx",sourceDirName:"examples/typescript/procedure-call",slug:"/examples/typescript/procedure-call/row-as-array",permalink:"/node-mysql2/docs/examples/typescript/procedure-call/row-as-array",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/procedure-call/01-row-as-array.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"examples",previous:{title:"Procedure Call Packet",permalink:"/node-mysql2/docs/examples/typescript/procedure-call/procedure-call-packet"},next:{title:"Row Data Packet",permalink:"/node-mysql2/docs/category/row-data-packet"}},i={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"procedure-call-packet-row-as-array",children:"Procedure Call Packet (Row as Array)"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ProcedureCallPacket,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n /** id */\n 0: number;\n /** name */\n 1: string;\n}\n\nconst isResultSetHeader = (data: unknown): data is ResultSetHeader => {\n if (!data || typeof data !== 'object') return false;\n\n const keys = [\n 'fieldCount',\n 'affectedRows',\n 'insertId',\n 'info',\n 'serverStatus',\n 'warningStatus',\n 'changedRows',\n ];\n\n return keys.every((key) => key in data);\n};\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n rowsAsArray: true,\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Deleting the `getUsers` procedure, if it exists */\n await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');\n\n /** Creating a procedure to get the users */\n await conn.query<ResultSetHeader>(`\n CREATE PROCEDURE getUsers()\n BEGIN\n SELECT * FROM users ORDER BY name ASC;\n END\n `);\n\n /** Getting users */\n // highlight-start\n const [procedureResult] =\n await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');\n\n procedureResult.forEach((users) => {\n /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */\n if (isResultSetHeader(users)) {\n console.log('----------------');\n console.log('Affected Rows:', users.affectedRows);\n } else {\n users.forEach((user) => {\n console.log('----------------');\n console.log('id: ', user[0]);\n console.log('name:', user[1]);\n });\n }\n });\n // highlight-end\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * ----------------\n * id: 4\n * name: Gween\n * ----------------\n * id: 2\n * name: John\n * ----------------\n * id: 1\n * name: Josh\n * ----------------\n * id: 3\n * name: Marie\n * ----------------\n * Affected Rows: 0\n */\n"})})})})]})}function f(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>x});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function f(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function m(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function h(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!f({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[c,d]=m({queryString:t,groupId:a}),[h,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,i.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),y=(()=>{const e=c??h;return f({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!f({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function w(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),a=l[t].value;a!==r&&(c(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",y.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function R(e){const n=h(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",y.tabList),children:[(0,g.jsx)(w,{...e,...n}),(0,g.jsx)(v,{...e,...n})]})}function x(e){const n=(0,b.Z)();return(0,g.jsx)(R,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/bc31cbdb.ea3bd4c2.js b/assets/js/bc31cbdb.ea3bd4c2.js new file mode 100644 index 0000000000..44927591f0 --- /dev/null +++ b/assets/js/bc31cbdb.ea3bd4c2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1437],{861:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},u="Procedure Call Packet (Row as Array)",c={id:"examples/typescript/procedure-call/row-as-array",title:"Procedure Call Packet (Row as Array)",description:"",source:"@site/docs/examples/typescript/procedure-call/01-row-as-array.mdx",sourceDirName:"examples/typescript/procedure-call",slug:"/examples/typescript/procedure-call/row-as-array",permalink:"/node-mysql2/docs/examples/typescript/procedure-call/row-as-array",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/procedure-call/01-row-as-array.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"examples",previous:{title:"Procedure Call Packet",permalink:"/node-mysql2/docs/examples/typescript/procedure-call/index"},next:{title:"Row Data Packet",permalink:"/node-mysql2/docs/examples/typescript/row-data/index"}},i={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"procedure-call-packet-row-as-array",children:"Procedure Call Packet (Row as Array)"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ProcedureCallPacket,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n /** id */\n 0: number;\n /** name */\n 1: string;\n}\n\nconst isResultSetHeader = (data: unknown): data is ResultSetHeader => {\n if (!data || typeof data !== 'object') return false;\n\n const keys = [\n 'fieldCount',\n 'affectedRows',\n 'insertId',\n 'info',\n 'serverStatus',\n 'warningStatus',\n 'changedRows',\n ];\n\n return keys.every((key) => key in data);\n};\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n rowsAsArray: true,\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Deleting the `getUsers` procedure, if it exists */\n await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');\n\n /** Creating a procedure to get the users */\n await conn.query<ResultSetHeader>(`\n CREATE PROCEDURE getUsers()\n BEGIN\n SELECT * FROM users ORDER BY name ASC;\n END\n `);\n\n /** Getting users */\n // highlight-start\n const [procedureResult] =\n await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');\n\n procedureResult.forEach((users) => {\n /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */\n if (isResultSetHeader(users)) {\n console.log('----------------');\n console.log('Affected Rows:', users.affectedRows);\n } else {\n users.forEach((user) => {\n console.log('----------------');\n console.log('id: ', user[0]);\n console.log('name:', user[1]);\n });\n }\n });\n // highlight-end\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * ----------------\n * id: 4\n * name: Gween\n * ----------------\n * id: 2\n * name: John\n * ----------------\n * id: 1\n * name: Josh\n * ----------------\n * id: 3\n * name: Marie\n * ----------------\n * Affected Rows: 0\n */\n"})})})})]})}function m(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>R});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function h(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[c,d]=f({queryString:t,groupId:a}),[h,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,i.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),y=(()=>{const e=c??h;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function w(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),a=l[t].value;a!==r&&(c(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",y.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function x(e){const n=h(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",y.tabList),children:[(0,g.jsx)(w,{...e,...n}),(0,g.jsx)(v,{...e,...n})]})}function R(e){const n=(0,b.Z)();return(0,g.jsx)(x,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/c2813336.514f73c4.js b/assets/js/c2813336.514f73c4.js new file mode 100644 index 0000000000..3a321a596f --- /dev/null +++ b/assets/js/c2813336.514f73c4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2456],{3720:e=>{e.exports=JSON.parse('{"label":"execute","permalink":"/node-mysql2/docs/tags/execute","allTagsPath":"/node-mysql2/docs/tags","count":5,"items":[{"id":"examples/queries/prepared-statements/delete","title":"DELETE","description":"execute(sql, values)","permalink":"/node-mysql2/docs/examples/queries/prepared-statements/delete"},{"id":"examples/queries/prepared-statements/insert","title":"INSERT","description":"execute(sql, values)","permalink":"/node-mysql2/docs/examples/queries/prepared-statements/insert"},{"id":"documentation/prepared-statements","title":"Prepared Statements","description":"Automatic creation, cached and re-used by connection","permalink":"/node-mysql2/docs/documentation/prepared-statements"},{"id":"examples/queries/prepared-statements/select","title":"SELECT","description":"execute(sql, values)","permalink":"/node-mysql2/docs/examples/queries/prepared-statements/select"},{"id":"examples/queries/prepared-statements/update","title":"UPDATE","description":"execute(sql, values)","permalink":"/node-mysql2/docs/examples/queries/prepared-statements/update"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/assets/js/cdbda324.f6ae4ef5.js b/assets/js/cdbda324.fbef41bf.js similarity index 99% rename from assets/js/cdbda324.f6ae4ef5.js rename to assets/js/cdbda324.fbef41bf.js index 4df1e05f70..65b1abd1de 100644 --- a/assets/js/cdbda324.f6ae4ef5.js +++ b/assets/js/cdbda324.fbef41bf.js @@ -1,2 +1,2 @@ -/*! For license information please see cdbda324.f6ae4ef5.js.LICENSE.txt */ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4116],{1851:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>h,contentTitle:()=>i,default:()=>g,frontMatter:()=>c,metadata:()=>a,toc:()=>d});var s=r(5893),t=r(1151),o=r(6393),l=r(3901);const c={},i="How to handle errors?",a={id:"faq/how-to-handle-errors",title:"How to handle errors?",description:"This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as createConnection, createPool, createPoolCluster, execute and query.",source:"@site/docs/faq/how-to-handle-errors.mdx",sourceDirName:"faq",slug:"/faq/how-to-handle-errors",permalink:"/node-mysql2/docs/faq/how-to-handle-errors",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/faq/how-to-handle-errors.mdx",tags:[],version:"current",frontMatter:{},sidebar:"faq",previous:{title:"Introduction",permalink:"/node-mysql2/docs/faq"}},h={},d=[{value:"Using callbacks",id:"using-callbacks",level:2},{value:"Using promises",id:"using-promises",level:2},{value:"Related Links",id:"related-links",level:2}];function u(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"how-to-handle-errors",children:"How to handle errors?"}),"\n",(0,s.jsxs)(n.p,{children:["This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"}),", ",(0,s.jsx)(n.code,{children:"createPoolCluster"}),", ",(0,s.jsx)(n.code,{children:"execute"})," and ",(0,s.jsx)(n.code,{children:"query"}),"."]}),"\n",(0,s.jsx)(n.h2,{id:"using-callbacks",children:"Using callbacks"}),"\n",(0,s.jsxs)(o.Z,{title:"createConnection",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested and confirmed as the correct answer."}),(0,s.jsx)(n.p,{children:"Handling connection errors by adding an error event listener:"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconnection = mysql.createConnection({\n host: '',\n user: '',\n database: '',\n});\n\n// highlight-start\nconnection.addListener('error', (err) => {\n if (err instanceof Error) {\n console.log(`createConnection error:`, err);\n }\n});\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPool",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool({\n host: '',\n user: '',\n database: '',\n});\n\npool.getConnection((err, connection) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('pool.getConnection error:', err);\n return;\n }\n // highlight-end\n});\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPoolCluster",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('NodeI', {\n host: '',\n user: '',\n database: '',\n});\n\npoolCluster.getConnection('NodeI', (err, connection) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('poolCluster.getConnection error:', err);\n return;\n }\n // highlight-end\n});\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"execute",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"execute"})," errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connection.execute('SELEC 1 + 1', (err, rows) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('execute error:', err);\n return;\n }\n // highlight-end\n\n console.log(rows);\n});\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsxs)(o.Z,{title:"query",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"query"})," errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connection.query('SELEC 1 + 1', (err, rows) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('query error:', err);\n return;\n }\n // highlight-end\n\n console.log(rows);\n});\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsx)(n.h2,{id:"using-promises",children:"Using promises"}),"\n",(0,s.jsxs)(o.Z,{title:"createConnection",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested and confirmed as the correct answer."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n const connection = await mysql.createConnection({\n host: '',\n user: '',\n database: '',\n });\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log(err);\n }\n}\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPool",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nconst pool = mysql.createPool({\n host: '',\n user: '',\n database: '',\n});\n\ntry {\n const connection = await pool.getConnection();\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log(err);\n }\n}\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPoolCluster",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('NodeI', {\n host: '',\n user: '',\n database: '',\n});\n\ntry {\n await poolCluster.getConnection('NodeI');\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log('createConnection error:', err);\n }\n}\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"execute",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"execute"})," errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const [rows] = await connection.execute('SELEC 1 + 1');\n console.log(rows);\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log('execute error:', err);\n }\n}\n// highlight-end\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsxs)(o.Z,{title:"query",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"query"})," errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const [rows] = await connection.query('SELEC 1 + 1');\n console.log(rows);\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log('query error:', err);\n }\n}\n// highlight-end\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"related-links",children:"Related Links"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Discussions","\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/discussions/1998",children:"#1998"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/discussions/2282",children:"#2282"})}),"\n"]}),"\n"]}),"\n"]})]})}function g(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},4673:(e,n,r)=>{r.d(n,{Z:()=>x});var s=r(7294),t=r(512),o=r(2389),l=r(6043);const c={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var i=r(5893);function a(e){return!!e&&("SUMMARY"===e.tagName||a(e.parentElement))}function h(e,n){return!!e&&(e===n||h(e.parentElement,n))}function d(e){let{summary:n,children:r,...d}=e;const u=(0,o.Z)(),g=(0,s.useRef)(null),{collapsed:x,setCollapsed:j}=(0,l.u)({initialState:!d.open}),[p,m]=(0,s.useState)(d.open),y=s.isValidElement(n)?n:(0,i.jsx)("summary",{children:n??"Details"});return(0,i.jsxs)("details",{...d,ref:g,open:p,"data-collapsed":x,className:(0,t.Z)(c.details,u&&c.isBrowser,d.className),onMouseDown:e=>{a(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const n=e.target;a(n)&&h(n,g.current)&&(e.preventDefault(),x?(j(!1),m(!0)):j(!0))},children:[y,(0,i.jsx)(l.z,{lazy:!1,collapsed:x,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{j(e),m(!e)},children:(0,i.jsx)("div",{className:c.collapsibleContent,children:r})})]})}const u={details:"details_b_Ee"},g="alert alert--info";function x(e){let{...n}=e;return(0,i.jsx)(d,{...n,className:(0,t.Z)(g,u.details,n.className)})}},6393:(e,n,r)=>{r.d(n,{Z:()=>o});var s=r(4673),t=r(5893);const o=e=>{let{children:n,open:r,title:o}=e;return(0,t.jsx)(s.Z,{open:r,className:"faq",summary:(0,t.jsx)("summary",{children:(0,t.jsx)("strong",{children:o})}),children:(0,t.jsx)("section",{children:n})})}},3901:(e,n,r)=>{r.d(n,{X:()=>u});var s=r(9960),t=r(4297);const o=(0,t.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),l=(0,t.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),c=(0,t.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),i=(0,t.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),a=(0,t.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),h=(0,t.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var d=r(5893);const u=e=>{let{level:n,message:r}=e;const t={0:{title:"Deprecated",icon:(0,d.jsx)(o,{})},1:{title:"Experimental",icon:(0,d.jsx)(l,{})},1.1:{title:"Early Development",icon:(0,d.jsx)(c,{})},1.2:{title:"Release Candidate",icon:(0,d.jsx)(i,{})},2:{title:"Stable",icon:(0,d.jsx)(a,{})},3:{title:"Legacy",icon:(0,d.jsx)(h,{})}};return(0,d.jsxs)("section",{className:"stability","data-level":n,children:[(0,d.jsx)(s.Z,{to:"/docs/stability-badges",children:(0,d.jsxs)("header",{children:[(0,d.jsx)("strong",{children:n}),(0,d.jsx)("span",{children:t[n].title}),t[n].icon]})}),r?(0,d.jsx)("p",{children:r}):null]})}},4297:(e,n,r)=>{r.d(n,{Z:()=>o});var s=r(7294),t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const o=(e,n)=>{const r=(0,s.forwardRef)((({color:r="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:c,className:i="",children:a,...h},d)=>{return(0,s.createElement)("svg",{ref:d,...t,width:o,height:o,stroke:r,strokeWidth:c?24*Number(l)/Number(o):l,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,i].join(" "),...h},[...n.map((([e,n])=>(0,s.createElement)(e,n))),...Array.isArray(a)?a:[a]]);var u}));return r.displayName=`${e}`,r}},1151:(e,n,r)=>{r.d(n,{Z:()=>c,a:()=>l});var s=r(7294);const t={},o=s.createContext(t);function l(e){const n=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),s.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file +/*! For license information please see cdbda324.fbef41bf.js.LICENSE.txt */ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4116],{1851:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>h,contentTitle:()=>i,default:()=>g,frontMatter:()=>c,metadata:()=>a,toc:()=>d});var s=r(5893),t=r(1151),o=r(6393),l=r(3901);const c={},i="How to handle errors?",a={id:"faq/how-to-handle-errors",title:"How to handle errors?",description:"This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as createConnection, createPool, createPoolCluster, execute and query.",source:"@site/docs/faq/how-to-handle-errors.mdx",sourceDirName:"faq",slug:"/faq/how-to-handle-errors",permalink:"/node-mysql2/docs/faq/how-to-handle-errors",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/faq/how-to-handle-errors.mdx",tags:[],version:"current",frontMatter:{},sidebar:"faq",previous:{title:"Introduction",permalink:"/node-mysql2/docs/faq"}},h={},d=[{value:"Using callbacks",id:"using-callbacks",level:2},{value:"Using promises",id:"using-promises",level:2},{value:"Related Links",id:"related-links",level:2}];function u(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"how-to-handle-errors",children:"How to handle errors?"}),"\n",(0,s.jsxs)(n.p,{children:["This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"}),", ",(0,s.jsx)(n.code,{children:"createPoolCluster"}),", ",(0,s.jsx)(n.code,{children:"execute"})," and ",(0,s.jsx)(n.code,{children:"query"}),"."]}),"\n",(0,s.jsx)(n.h2,{id:"using-callbacks",children:"Using callbacks"}),"\n",(0,s.jsxs)(o.Z,{title:"createConnection",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested and confirmed as the correct answer."}),(0,s.jsx)(n.p,{children:"Handling connection errors by adding an error event listener:"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconnection = mysql.createConnection({\n host: '',\n user: '',\n database: '',\n});\n\n// highlight-start\nconnection.addListener('error', (err) => {\n if (err instanceof Error) {\n console.log(`createConnection error:`, err);\n }\n});\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPool",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool({\n host: '',\n user: '',\n database: '',\n});\n\npool.getConnection((err, connection) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('pool.getConnection error:', err);\n return;\n }\n // highlight-end\n});\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPoolCluster",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('NodeI', {\n host: '',\n user: '',\n database: '',\n});\n\npoolCluster.getConnection('NodeI', (err, connection) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('poolCluster.getConnection error:', err);\n return;\n }\n // highlight-end\n});\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"execute",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"execute"})," errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connection.execute('SELEC 1 + 1', (err, rows) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('execute error:', err);\n return;\n }\n // highlight-end\n\n console.log(rows);\n});\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsxs)(o.Z,{title:"query",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"query"})," errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connection.query('SELEC 1 + 1', (err, rows) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('query error:', err);\n return;\n }\n // highlight-end\n\n console.log(rows);\n});\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsx)(n.h2,{id:"using-promises",children:"Using promises"}),"\n",(0,s.jsxs)(o.Z,{title:"createConnection",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested and confirmed as the correct answer."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n const connection = await mysql.createConnection({\n host: '',\n user: '',\n database: '',\n });\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log(err);\n }\n}\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPool",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nconst pool = mysql.createPool({\n host: '',\n user: '',\n database: '',\n});\n\ntry {\n const connection = await pool.getConnection();\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log(err);\n }\n}\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPoolCluster",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('NodeI', {\n host: '',\n user: '',\n database: '',\n});\n\ntry {\n await poolCluster.getConnection('NodeI');\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log('createConnection error:', err);\n }\n}\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"execute",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"execute"})," errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const [rows] = await connection.execute('SELEC 1 + 1');\n console.log(rows);\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log('execute error:', err);\n }\n}\n// highlight-end\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsxs)(o.Z,{title:"query",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"query"})," errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const [rows] = await connection.query('SELEC 1 + 1');\n console.log(rows);\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log('query error:', err);\n }\n}\n// highlight-end\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"related-links",children:"Related Links"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Discussions","\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/discussions/1998",children:"#1998"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/discussions/2282",children:"#2282"})}),"\n"]}),"\n"]}),"\n"]})]})}function g(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},4673:(e,n,r)=>{r.d(n,{Z:()=>x});var s=r(7294),t=r(512),o=r(2389),l=r(6043);const c={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var i=r(5893);function a(e){return!!e&&("SUMMARY"===e.tagName||a(e.parentElement))}function h(e,n){return!!e&&(e===n||h(e.parentElement,n))}function d(e){let{summary:n,children:r,...d}=e;const u=(0,o.Z)(),g=(0,s.useRef)(null),{collapsed:x,setCollapsed:j}=(0,l.u)({initialState:!d.open}),[p,m]=(0,s.useState)(d.open),y=s.isValidElement(n)?n:(0,i.jsx)("summary",{children:n??"Details"});return(0,i.jsxs)("details",{...d,ref:g,open:p,"data-collapsed":x,className:(0,t.Z)(c.details,u&&c.isBrowser,d.className),onMouseDown:e=>{a(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const n=e.target;a(n)&&h(n,g.current)&&(e.preventDefault(),x?(j(!1),m(!0)):j(!0))},children:[y,(0,i.jsx)(l.z,{lazy:!1,collapsed:x,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{j(e),m(!e)},children:(0,i.jsx)("div",{className:c.collapsibleContent,children:r})})]})}const u={details:"details_b_Ee"},g="alert alert--info";function x(e){let{...n}=e;return(0,i.jsx)(d,{...n,className:(0,t.Z)(g,u.details,n.className)})}},6393:(e,n,r)=>{r.d(n,{Z:()=>o});var s=r(4673),t=r(5893);const o=e=>{let{children:n,open:r,title:o}=e;return(0,t.jsx)(s.Z,{open:r,className:"faq",summary:(0,t.jsx)("summary",{children:(0,t.jsx)("strong",{children:o})}),children:(0,t.jsx)("section",{children:n})})}},3901:(e,n,r)=>{r.d(n,{X:()=>u});var s=r(3692),t=r(4297);const o=(0,t.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),l=(0,t.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),c=(0,t.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),i=(0,t.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),a=(0,t.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),h=(0,t.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var d=r(5893);const u=e=>{let{level:n,message:r}=e;const t={0:{title:"Deprecated",icon:(0,d.jsx)(o,{})},1:{title:"Experimental",icon:(0,d.jsx)(l,{})},1.1:{title:"Early Development",icon:(0,d.jsx)(c,{})},1.2:{title:"Release Candidate",icon:(0,d.jsx)(i,{})},2:{title:"Stable",icon:(0,d.jsx)(a,{})},3:{title:"Legacy",icon:(0,d.jsx)(h,{})}};return(0,d.jsxs)("section",{className:"stability","data-level":n,children:[(0,d.jsx)(s.Z,{to:"/docs/stability-badges",children:(0,d.jsxs)("header",{children:[(0,d.jsx)("strong",{children:n}),(0,d.jsx)("span",{children:t[n].title}),t[n].icon]})}),r?(0,d.jsx)("p",{children:r}):null]})}},4297:(e,n,r)=>{r.d(n,{Z:()=>o});var s=r(7294),t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const o=(e,n)=>{const r=(0,s.forwardRef)((({color:r="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:c,className:i="",children:a,...h},d)=>{return(0,s.createElement)("svg",{ref:d,...t,width:o,height:o,stroke:r,strokeWidth:c?24*Number(l)/Number(o):l,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,i].join(" "),...h},[...n.map((([e,n])=>(0,s.createElement)(e,n))),...Array.isArray(a)?a:[a]]);var u}));return r.displayName=`${e}`,r}},1151:(e,n,r)=>{r.d(n,{Z:()=>c,a:()=>l});var s=r(7294);const t={},o=s.createContext(t);function l(e){const n=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),s.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/cdbda324.f6ae4ef5.js.LICENSE.txt b/assets/js/cdbda324.fbef41bf.js.LICENSE.txt similarity index 76% rename from assets/js/cdbda324.f6ae4ef5.js.LICENSE.txt rename to assets/js/cdbda324.fbef41bf.js.LICENSE.txt index 4b1ddb7671..3d48b22d31 100644 --- a/assets/js/cdbda324.f6ae4ef5.js.LICENSE.txt +++ b/assets/js/cdbda324.fbef41bf.js.LICENSE.txt @@ -1,5 +1,5 @@ /** - * @license lucide-react v0.303.0 - ISC + * @license lucide-react v0.306.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. diff --git a/assets/js/cffacdf0.7e0341de.js b/assets/js/cffacdf0.7e0341de.js new file mode 100644 index 0000000000..528cff44b6 --- /dev/null +++ b/assets/js/cffacdf0.7e0341de.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8406],{5721:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>p,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},u="Server",c={id:"examples/tests/server",title:"Server",description:"",source:"@site/docs/examples/tests/server.mdx",sourceDirName:"examples/tests",slug:"/examples/tests/server",permalink:"/node-mysql2/docs/examples/tests/server",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/tests/server.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Pool",permalink:"/node-mysql2/docs/examples/tests/pool"},next:{title:"Basic Custom Class",permalink:"/node-mysql2/docs/examples/typescript/basic-custom-class"}},i={},d=[];function m(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"server",children:"Server"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst flags = require('mysql2/lib/constants/client.js');\nconst auth = require('mysql2/lib/auth_41.js');\n\nfunction authenticate(params, cb) {\n console.log(params);\n const doubleSha = auth.doubleSha1('pass123');\n const isValid = auth.verifyToken(\n params.authPluginData1,\n params.authPluginData2,\n params.authToken,\n doubleSha\n );\n if (isValid) {\n cb(null);\n } else {\n // for list of codes lib/constants/errors.js\n cb(null, { message: 'wrong password dude', code: 1045 });\n }\n}\n\nconst server = mysql.createServer();\nserver.listen(3333);\nserver.on('connection', (conn) => {\n // we can deny connection here:\n // conn.writeError({ message: 'secret', code: 123 });\n // conn.close();\n conn.serverHandshake({\n protocolVersion: 10,\n serverVersion: '5.6.10', // 'node.js rocks',\n connectionId: 1234,\n statusFlags: 2,\n characterSet: 8,\n // capabilityFlags: 0xffffff,\n // capabilityFlags: -2113931265,\n capabilityFlags: 2181036031,\n authCallback: authenticate,\n });\n\n conn.on('field_list', (table, fields) => {\n console.log('FIELD LIST:', table, fields);\n conn.writeEof();\n });\n\n conn.on('query', (query) => {\n conn.writeColumns([\n {\n catalog: 'def',\n schema: 'test',\n table: 'test_table',\n orgTable: 'test_table',\n name: 'beta',\n orgName: 'beta',\n characterSet: 33,\n columnLength: 384,\n columnType: 253,\n flags: 0,\n decimals: 0,\n },\n ]);\n conn.writeTextRow(['test \u0442\u0435\u0441\u0442 \u30c6\u30b9\u30c8 \u0583\u0578\u0580\u0571\u0561\u0580\u056f\u0578\u0582\u0574 \u09aa\u09b0\u09c0\u0995\u09cd\u09b7\u09be ki\u1ec3m tra ']);\n conn.writeTextRow(['\u10e2\u10d4\u10e1\u10e2\u10d8 \u0aaa\u0ab0\u0ac0\u0a95\u0acd\u0ab7\u0aa3 \u05de\u05d1\u05d7\u05df \u05e4\u05bc\u05e8\u05d5\u05d1\u05d9\u05e8\u05df \u0627\u062e\u062a\u0628\u0627\u0631 \u092a\u0930\u0940\u0915\u094d\u0937\u0923']);\n conn.writeEof();\n conn.close();\n });\n});\n"})})})})]})}function p(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>k});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=m(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[c,d]=f({queryString:t,groupId:a}),[b,h]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,i.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),v=(()=>{const e=c??b;return p({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,s]),tabValues:s}}var h=t(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function y(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),a=l[t].value;a!==r&&(c(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function x(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function w(e){const n=b(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,g.jsx)(y,{...e,...n}),(0,g.jsx)(x,{...e,...n})]})}function k(e){const n=(0,h.Z)();return(0,g.jsx)(w,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d2002d6f.1faf2ede.js b/assets/js/d2002d6f.1faf2ede.js deleted file mode 100644 index fbf8796059..0000000000 --- a/assets/js/d2002d6f.1faf2ede.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7184],{1185:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>o,metadata:()=>i,toc:()=>d});var n=r(5893),a=r(1151),s=r(4866),l=r(5162);const o={},u="Pass SHA",i={id:"examples/pass-sha",title:"Pass SHA",description:"",source:"@site/docs/examples/pass-sha.mdx",sourceDirName:"examples",slug:"/examples/pass-sha",permalink:"/node-mysql2/docs/examples/pass-sha",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/pass-sha.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"MySQL Proxy",permalink:"/node-mysql2/docs/examples/mysqlproxy"},next:{title:"Pool Test",permalink:"/node-mysql2/docs/examples/pool-test"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h1,{id:"pass-sha",children:"Pass SHA"}),"\n",(0,n.jsx)(s.Z,{children:(0,n.jsx)(l.Z,{value:"index.js",default:!0,children:(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2').createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'),\n});\n\nmysql.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [1, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n }\n);\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},5162:(e,t,r)=>{r.d(t,{Z:()=>l});r(7294);var n=r(512);const a={tabItem:"tabItem_Ymn6"};var s=r(5893);function l(e){let{children:t,hidden:r,className:l}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,n.Z)(a.tabItem,l),hidden:r,children:t})}},4866:(e,t,r)=>{r.d(t,{Z:()=>q});var n=r(7294),a=r(512),s=r(2466),l=r(6550),o=r(469),u=r(1980),i=r(7392),c=r(12);function d(e){return n.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,n.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:r}=e;return(0,n.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:r,attributes:n,default:a}}=e;return{value:t,label:r,attributes:n,default:a}}))}(r);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,r])}function m(e){let{value:t,tabValues:r}=e;return r.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:r}=e;const a=(0,l.k6)(),s=function(e){let{queryString:t=!1,groupId:r}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!r)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return r??null}({queryString:t,groupId:r});return[(0,u._X)(s),(0,n.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function h(e){const{defaultValue:t,queryString:r=!1,groupId:a}=e,s=p(e),[l,u]=(0,n.useState)((()=>function(e){let{defaultValue:t,tabValues:r}=e;if(0===r.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:r}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${r.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const n=r.find((e=>e.default))??r[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:t,tabValues:s}))),[i,d]=f({queryString:r,groupId:a}),[h,b]=function(e){let{groupId:t}=e;const r=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,c.Nk)(r);return[a,(0,n.useCallback)((e=>{r&&s.set(e)}),[r,s])]}({groupId:a}),v=(()=>{const e=i??h;return m({value:e,tabValues:s})?e:null})();(0,o.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:l,selectValue:(0,n.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=r(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=r(5893);function y(e){let{className:t,block:r,selectedValue:n,selectValue:l,tabValues:o}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,r=u.indexOf(t),a=o[r].value;a!==n&&(i(t),l(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const r=u.indexOf(e.currentTarget)+1;t=u[r]??u[0];break}case"ArrowLeft":{const r=u.indexOf(e.currentTarget)-1;t=u[r]??u[u.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":r},t),children:o.map((e=>{let{value:t,label:r,attributes:s}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:n===t?0:-1,"aria-selected":n===t,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":n===t}),children:r??t},t)}))})}function g(e){let{lazy:t,children:r,selectedValue:a}=e;const s=(Array.isArray(r)?r:[r]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,n.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,n.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function w(e){const t=h(e);return(0,x.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(y,{...e,...t}),(0,x.jsx)(g,{...e,...t})]})}function q(e){const t=(0,b.Z)();return(0,x.jsx)(w,{...e,children:d(e.children)},String(t))}},1151:(e,t,r)=>{r.d(t,{Z:()=>o,a:()=>l});var n=r(7294);const a={},s=n.createContext(a);function l(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:l(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d2b048c9.7ea067b0.js b/assets/js/d2b048c9.7ea067b0.js new file mode 100644 index 0000000000..cf860710f8 --- /dev/null +++ b/assets/js/d2b048c9.7ea067b0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2002],{8099:e=>{e.exports=JSON.parse('{"label":"Socks","permalink":"/node-mysql2/docs/tags/socks","allTagsPath":"/node-mysql2/docs/tags","count":3,"items":[{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/docs/examples/connections/create-connection"},{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/docs/examples/connections/create-pool"},{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/docs/examples/connections/createPoolCluster"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/assets/js/db044f71.686751b7.js b/assets/js/db044f71.a1084822.js similarity index 98% rename from assets/js/db044f71.686751b7.js rename to assets/js/db044f71.a1084822.js index a51b2c189e..0439a549a2 100644 --- a/assets/js/db044f71.686751b7.js +++ b/assets/js/db044f71.a1084822.js @@ -1,2 +1,2 @@ -/*! For license information please see db044f71.686751b7.js.LICENSE.txt */ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6159],{8009:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>u,frontMatter:()=>r,metadata:()=>l,toc:()=>d});var a=s(5893),i=s(1151),n=s(3901);const r={},o="Stability Badges",l={id:"stability-badges",title:"Stability Badges",description:"The Stability Badges are indications of a section's stability.",source:"@site/docs/stability-badges.mdx",sourceDirName:".",slug:"/stability-badges",permalink:"/node-mysql2/docs/stability-badges",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/stability-badges.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"History and Why MySQL2",permalink:"/node-mysql2/docs/history-and-why-mysq2"},next:{title:"Introduction",permalink:"/node-mysql2/docs/documentation"}},c={},d=[];function h(e){const t={blockquote:"blockquote",h1:"h1",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...(0,i.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h1,{id:"stability-badges",children:"Stability Badges"}),"\n",(0,a.jsxs)(t.p,{children:["The ",(0,a.jsx)(t.strong,{children:"Stability Badges"})," are indications of a section's stability."]}),"\n",(0,a.jsx)(t.p,{children:"The stability indices are as follows:"}),"\n",(0,a.jsx)(n.X,{level:0,message:"The feature might generate warnings and does not assure backward compatibility."}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsxs)(t.p,{children:[(0,a.jsx)(t.strong,{children:"Experimental"}),": These features are not bound by semantic versioning. They may undergo non-backward compatible changes or be removed in future releases. Their use in production is discouraged."]}),"\n",(0,a.jsxs)(t.blockquote,{children:["\n",(0,a.jsx)(t.p,{children:"Use caution with Experimental features, especially in libraries. Users might not expect changes from these unstable features. To reduce surprises, consider using a command-line flag for Experimental features."}),"\n"]}),"\n",(0,a.jsx)(t.p,{children:"Experimental features are classified into stages:"}),"\n",(0,a.jsx)(n.X,{level:1,message:"Experimental features at this stage are currently in development and prone to considerable changes."}),"\n",(0,a.jsx)(n.X,{level:1.1,message:"Experimental features at this stage are approaching minimum viability."}),"\n",(0,a.jsx)(n.X,{level:1.2,message:"Experimental features are close to reaching stability. Major changes are not expected, but they could still occur based on user feedback. Testing and feedback are important to ascertain the readiness of these features for stable classification."}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(n.X,{level:2,message:"Compatibility with the MySQL ecosystem is a high priority."}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(n.X,{level:3,message:"This feature, while not likely to be removed and still subject to semantic versioning, is not under active maintenance and other options are available."}),"\n",(0,a.jsxs)(t.ul,{children:["\n",(0,a.jsx)(t.li,{children:"Features are classified as legacy instead of deprecated when they cause no harm and have widespread use in the MySQL ecosystem. It's unlikely that bugs in legacy features will be addressed."}),"\n"]})]})}function u(e={}){const{wrapper:t}={...(0,i.a)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(h,{...e})}):h(e)}},3901:(e,t,s)=>{s.d(t,{X:()=>u});var a=s(9960),i=s(4297);const n=(0,i.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),r=(0,i.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),o=(0,i.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),l=(0,i.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),c=(0,i.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),d=(0,i.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var h=s(5893);const u=e=>{let{level:t,message:s}=e;const i={0:{title:"Deprecated",icon:(0,h.jsx)(n,{})},1:{title:"Experimental",icon:(0,h.jsx)(r,{})},1.1:{title:"Early Development",icon:(0,h.jsx)(o,{})},1.2:{title:"Release Candidate",icon:(0,h.jsx)(l,{})},2:{title:"Stable",icon:(0,h.jsx)(c,{})},3:{title:"Legacy",icon:(0,h.jsx)(d,{})}};return(0,h.jsxs)("section",{className:"stability","data-level":t,children:[(0,h.jsx)(a.Z,{to:"/docs/stability-badges",children:(0,h.jsxs)("header",{children:[(0,h.jsx)("strong",{children:t}),(0,h.jsx)("span",{children:i[t].title}),i[t].icon]})}),s?(0,h.jsx)("p",{children:s}):null]})}},4297:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(7294),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const n=(e,t)=>{const s=(0,a.forwardRef)((({color:s="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:l="",children:c,...d},h)=>{return(0,a.createElement)("svg",{ref:h,...i,width:n,height:n,stroke:s,strokeWidth:o?24*Number(r)/Number(n):r,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,l].join(" "),...d},[...t.map((([e,t])=>(0,a.createElement)(e,t))),...Array.isArray(c)?c:[c]]);var u}));return s.displayName=`${e}`,s}},1151:(e,t,s)=>{s.d(t,{Z:()=>o,a:()=>r});var a=s(7294);const i={},n=a.createContext(i);function r(e){const t=a.useContext(n);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),a.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file +/*! For license information please see db044f71.a1084822.js.LICENSE.txt */ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6159],{8009:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>u,frontMatter:()=>r,metadata:()=>l,toc:()=>d});var a=s(5893),i=s(1151),n=s(3901);const r={},o="Stability Badges",l={id:"stability-badges",title:"Stability Badges",description:"The Stability Badges are indications of a section's stability.",source:"@site/docs/stability-badges.mdx",sourceDirName:".",slug:"/stability-badges",permalink:"/node-mysql2/docs/stability-badges",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/stability-badges.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"History and Why MySQL2",permalink:"/node-mysql2/docs/history-and-why-mysq2"},next:{title:"Introduction",permalink:"/node-mysql2/docs/documentation"}},c={},d=[];function h(e){const t={blockquote:"blockquote",h1:"h1",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...(0,i.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h1,{id:"stability-badges",children:"Stability Badges"}),"\n",(0,a.jsxs)(t.p,{children:["The ",(0,a.jsx)(t.strong,{children:"Stability Badges"})," are indications of a section's stability."]}),"\n",(0,a.jsx)(t.p,{children:"The stability indices are as follows:"}),"\n",(0,a.jsx)(n.X,{level:0,message:"The feature might generate warnings and does not assure backward compatibility."}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsxs)(t.p,{children:[(0,a.jsx)(t.strong,{children:"Experimental"}),": These features are not bound by semantic versioning. They may undergo non-backward compatible changes or be removed in future releases. Their use in production is discouraged."]}),"\n",(0,a.jsxs)(t.blockquote,{children:["\n",(0,a.jsx)(t.p,{children:"Use caution with Experimental features, especially in libraries. Users might not expect changes from these unstable features. To reduce surprises, consider using a command-line flag for Experimental features."}),"\n"]}),"\n",(0,a.jsx)(t.p,{children:"Experimental features are classified into stages:"}),"\n",(0,a.jsx)(n.X,{level:1,message:"Experimental features at this stage are currently in development and prone to considerable changes."}),"\n",(0,a.jsx)(n.X,{level:1.1,message:"Experimental features at this stage are approaching minimum viability."}),"\n",(0,a.jsx)(n.X,{level:1.2,message:"Experimental features are close to reaching stability. Major changes are not expected, but they could still occur based on user feedback. Testing and feedback are important to ascertain the readiness of these features for stable classification."}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(n.X,{level:2,message:"Compatibility with the MySQL ecosystem is a high priority."}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(n.X,{level:3,message:"This feature, while not likely to be removed and still subject to semantic versioning, is not under active maintenance and other options are available."}),"\n",(0,a.jsxs)(t.ul,{children:["\n",(0,a.jsx)(t.li,{children:"Features are classified as legacy instead of deprecated when they cause no harm and have widespread use in the MySQL ecosystem. It's unlikely that bugs in legacy features will be addressed."}),"\n"]})]})}function u(e={}){const{wrapper:t}={...(0,i.a)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(h,{...e})}):h(e)}},3901:(e,t,s)=>{s.d(t,{X:()=>u});var a=s(3692),i=s(4297);const n=(0,i.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),r=(0,i.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),o=(0,i.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),l=(0,i.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),c=(0,i.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),d=(0,i.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var h=s(5893);const u=e=>{let{level:t,message:s}=e;const i={0:{title:"Deprecated",icon:(0,h.jsx)(n,{})},1:{title:"Experimental",icon:(0,h.jsx)(r,{})},1.1:{title:"Early Development",icon:(0,h.jsx)(o,{})},1.2:{title:"Release Candidate",icon:(0,h.jsx)(l,{})},2:{title:"Stable",icon:(0,h.jsx)(c,{})},3:{title:"Legacy",icon:(0,h.jsx)(d,{})}};return(0,h.jsxs)("section",{className:"stability","data-level":t,children:[(0,h.jsx)(a.Z,{to:"/docs/stability-badges",children:(0,h.jsxs)("header",{children:[(0,h.jsx)("strong",{children:t}),(0,h.jsx)("span",{children:i[t].title}),i[t].icon]})}),s?(0,h.jsx)("p",{children:s}):null]})}},4297:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(7294),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const n=(e,t)=>{const s=(0,a.forwardRef)((({color:s="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:l="",children:c,...d},h)=>{return(0,a.createElement)("svg",{ref:h,...i,width:n,height:n,stroke:s,strokeWidth:o?24*Number(r)/Number(n):r,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,l].join(" "),...d},[...t.map((([e,t])=>(0,a.createElement)(e,t))),...Array.isArray(c)?c:[c]]);var u}));return s.displayName=`${e}`,s}},1151:(e,t,s)=>{s.d(t,{Z:()=>o,a:()=>r});var a=s(7294);const i={},n=a.createContext(i);function r(e){const t=a.useContext(n);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),a.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/db044f71.686751b7.js.LICENSE.txt b/assets/js/db044f71.a1084822.js.LICENSE.txt similarity index 76% rename from assets/js/db044f71.686751b7.js.LICENSE.txt rename to assets/js/db044f71.a1084822.js.LICENSE.txt index 4b1ddb7671..3d48b22d31 100644 --- a/assets/js/db044f71.686751b7.js.LICENSE.txt +++ b/assets/js/db044f71.a1084822.js.LICENSE.txt @@ -1,5 +1,5 @@ /** - * @license lucide-react v0.303.0 - ISC + * @license lucide-react v0.306.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. diff --git a/assets/js/dcf552eb.cecb8fe0.js b/assets/js/dcf552eb.cecb8fe0.js deleted file mode 100644 index 4bfdbbb26a..0000000000 --- a/assets/js/dcf552eb.cecb8fe0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4338],{6259:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>i,contentTitle:()=>u,default:()=>m,frontMatter:()=>o,metadata:()=>c,toc:()=>d});var r=n(5893),s=n(1151),a=n(4866),l=n(5162);const o={},u="RDS SSL",c={id:"examples/ssl/rds-ssl",title:"RDS SSL",description:"",source:"@site/docs/examples/ssl/rds-ssl.mdx",sourceDirName:"examples/ssl",slug:"/examples/ssl/rds-ssl",permalink:"/node-mysql2/docs/examples/ssl/rds-ssl",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/ssl/rds-ssl.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"SSL",permalink:"/node-mysql2/docs/category/ssl"},next:{title:"Select Over SSL",permalink:"/node-mysql2/docs/examples/ssl/select-over-ssl"}},i={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"rds-ssl",children:"RDS SSL"}),"\n",(0,r.jsx)(a.Z,{children:(0,r.jsx)(l.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\n\nconst conn = mysql.createConnection({\n user: process.env.USER,\n password: process.env.PASSWORD,\n database: process.env.DB,\n host: process.env.HOST,\n port: 3306,\n ssl: 'Amazon RDS',\n});\n\nconn.query(\"show status like 'Ssl_cipher'\", function (err, res) {\n console.log(err, res);\n conn.end();\n});\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var r=n(512);const s={tabItem:"tabItem_Ymn6"};var a=n(5893);function l(e){let{children:t,hidden:n,className:l}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,r.Z)(s.tabItem,l),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(7294),s=n(512),a=n(2466),l=n(6550),o=n(469),u=n(1980),c=n(7392),i=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:s}}=e;return{value:t,label:n,attributes:r,default:s}}))}(n);return function(e){const t=(0,c.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const s=(0,l.k6)(),a=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(a),(0,r.useCallback)((e=>{if(!a)return;const t=new URLSearchParams(s.location.search);t.set(a,e),s.replace({...s.location,search:t.toString()})}),[a,s])]}function h(e){const{defaultValue:t,queryString:n=!1,groupId:s}=e,a=p(e),[l,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:a}))),[c,d]=f({queryString:n,groupId:s}),[h,b]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[s,a]=(0,i.Nk)(n);return[s,(0,r.useCallback)((e=>{n&&a.set(e)}),[n,a])]}({groupId:s}),v=(()=>{const e=c??h;return m({value:e,tabValues:a})?e:null})();(0,o.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:l,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,a]),tabValues:a}}var b=n(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=n(5893);function g(e){let{className:t,block:n,selectedValue:r,selectValue:l,tabValues:o}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,a.o5)(),i=e=>{const t=e.currentTarget,n=u.indexOf(t),s=o[n].value;s!==r&&(c(t),l(s))},d=e=>{let t=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:a}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:i,...a,className:(0,s.Z)("tabs__item",v.tabItem,a?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function y(e){let{lazy:t,children:n,selectedValue:s}=e;const a=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=a.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:a.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==s})))})}function S(e){const t=h(e);return(0,x.jsxs)("div",{className:(0,s.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(g,{...e,...t}),(0,x.jsx)(y,{...e,...t})]})}function w(e){const t=(0,b.Z)();return(0,x.jsx)(S,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>o,a:()=>l});var r=n(7294);const s={},a=r.createContext(s);function l(e){const t=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:l(e.components),r.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/df04d3c8.1dfc1fb6.js b/assets/js/df04d3c8.1dfc1fb6.js new file mode 100644 index 0000000000..48c14c9d30 --- /dev/null +++ b/assets/js/df04d3c8.1dfc1fb6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9140],{107:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},u="Procedure Call Packet",c={id:"examples/typescript/procedure-call/index",title:"Procedure Call Packet",description:"",source:"@site/docs/examples/typescript/procedure-call/00-index.mdx",sourceDirName:"examples/typescript/procedure-call",slug:"/examples/typescript/procedure-call/index",permalink:"/node-mysql2/docs/examples/typescript/procedure-call/index",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/procedure-call/00-index.mdx",tags:[],version:"current",sidebarPosition:0,frontMatter:{},sidebar:"examples",previous:{title:"Basic Custom Class",permalink:"/node-mysql2/docs/examples/typescript/basic-custom-class"},next:{title:"Procedure Call Packet (Row as Array)",permalink:"/node-mysql2/docs/examples/typescript/procedure-call/row-as-array"}},i={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"procedure-call-packet",children:"Procedure Call Packet"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ProcedureCallPacket,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n id: number;\n name: string;\n}\n\nconst isResultSetHeader = (data: unknown): data is ResultSetHeader => {\n if (!data || typeof data !== 'object') return false;\n\n const keys = [\n 'fieldCount',\n 'affectedRows',\n 'insertId',\n 'info',\n 'serverStatus',\n 'warningStatus',\n 'changedRows',\n ];\n\n return keys.every((key) => key in data);\n};\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Deleting the `getUsers` procedure, if it exists */\n await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');\n\n /** Creating a procedure to get the users */\n await conn.query<ResultSetHeader>(`\n CREATE PROCEDURE getUsers()\n BEGIN\n SELECT * FROM users ORDER BY name ASC;\n END\n `);\n\n /** Getting users */\n // highlight-start\n const [procedureResult] =\n await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');\n\n procedureResult.forEach((users) => {\n /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */\n if (isResultSetHeader(users)) {\n console.log('----------------');\n console.log('Affected Rows:', users.affectedRows);\n } else {\n users.forEach((user) => {\n console.log('----------------');\n console.log('id: ', user.id);\n console.log('name:', user.name);\n });\n }\n });\n // highlight-end\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * ----------------\n * id: 4\n * name: Gween\n * ----------------\n * id: 2\n * name: John\n * ----------------\n * id: 1\n * name: Josh\n * ----------------\n * id: 3\n * name: Marie\n * ----------------\n * Affected Rows: 0\n */\n"})})})})]})}function m(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>R});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function h(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[c,d]=f({queryString:t,groupId:a}),[h,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,i.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),y=(()=>{const e=c??h;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function w(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),a=l[t].value;a!==r&&(c(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",y.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function x(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function v(e){const n=h(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",y.tabList),children:[(0,g.jsx)(w,{...e,...n}),(0,g.jsx)(x,{...e,...n})]})}function R(e){const n=(0,b.Z)();return(0,g.jsx)(v,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/df203c0f.56844b1b.js b/assets/js/df203c0f.56844b1b.js new file mode 100644 index 0000000000..319894edee --- /dev/null +++ b/assets/js/df203c0f.56844b1b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9924],{9047:(e,n,t)=>{t.d(n,{Z:()=>M});var i=t(7294),s=t(5893);function o(e){const{mdxAdmonitionTitle:n,rest:t}=function(e){const n=i.Children.toArray(e),t=n.find((e=>i.isValidElement(e)&&"mdxAdmonitionTitle"===e.type)),o=n.filter((e=>e!==t)),l=t?.props.children;return{mdxAdmonitionTitle:l,rest:o.length>0?(0,s.jsx)(s.Fragment,{children:o}):null}}(e.children),o=e.title??n;return{...e,...o&&{title:o},children:t}}var l=t(512),a=t(5999),r=t(5281);const c={admonition:"admonition_xJq3",admonitionHeading:"admonitionHeading_Gvgb",admonitionIcon:"admonitionIcon_Rf37",admonitionContent:"admonitionContent_BuS1"};function d(e){let{type:n,className:t,children:i}=e;return(0,s.jsx)("div",{className:(0,l.Z)(r.k.common.admonition,r.k.common.admonitionType(n),c.admonition,t),children:i})}function u(e){let{icon:n,title:t}=e;return(0,s.jsxs)("div",{className:c.admonitionHeading,children:[(0,s.jsx)("span",{className:c.admonitionIcon,children:n}),t]})}function h(e){let{children:n}=e;return n?(0,s.jsx)("div",{className:c.admonitionContent,children:n}):null}function m(e){const{type:n,icon:t,title:i,children:o,className:l}=e;return(0,s.jsxs)(d,{type:n,className:l,children:[(0,s.jsx)(u,{title:i,icon:t}),(0,s.jsx)(h,{children:o})]})}function g(e){return(0,s.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,s.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"})})}const x={icon:(0,s.jsx)(g,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function f(e){return(0,s.jsx)(m,{...x,...e,className:(0,l.Z)("alert alert--secondary",e.className),children:e.children})}function j(e){return(0,s.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,s.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"})})}const p={icon:(0,s.jsx)(j,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function v(e){return(0,s.jsx)(m,{...p,...e,className:(0,l.Z)("alert alert--success",e.className),children:e.children})}function N(e){return(0,s.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,s.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"})})}const Z={icon:(0,s.jsx)(N,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function w(e){return(0,s.jsx)(m,{...Z,...e,className:(0,l.Z)("alert alert--info",e.className),children:e.children})}function T(e){return(0,s.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,s.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"})})}const b={icon:(0,s.jsx)(T,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function y(e){return(0,s.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,s.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"})})}const z={icon:(0,s.jsx)(y,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const C={icon:(0,s.jsx)(T,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const k={...{note:f,tip:v,info:w,warning:function(e){return(0,s.jsx)(m,{...b,...e,className:(0,l.Z)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,s.jsx)(m,{...z,...e,className:(0,l.Z)("alert alert--danger",e.className),children:e.children})}},...{secondary:e=>(0,s.jsx)(f,{title:"secondary",...e}),important:e=>(0,s.jsx)(w,{title:"important",...e}),success:e=>(0,s.jsx)(v,{title:"success",...e}),caution:function(e){return(0,s.jsx)(m,{...C,...e,className:(0,l.Z)("alert alert--warning",e.className),children:e.children})}}};function M(e){const n=o(e),t=(i=n.type,k[i]||(console.warn(`No admonition component found for admonition type "${i}". Using Info as fallback.`),k.info));var i;return(0,s.jsx)(t,{...n})}},491:(e,n,t)=>{t.r(n),t.d(n,{default:()=>j});t(7294);var i=t(512),s=t(3692),o=t(8824),l=t(1944),a=t(5281),r=t(5999),c=t(197),d=t(2212),u=t(2503),h=t(5893);function m(e){const n=function(){const{selectMessage:e}=(0,o.c)();return n=>e(n,(0,r.I)({id:"theme.docs.tagDocListPageTitle.nDocsTagged",description:'Pluralized label for "{count} docs tagged". 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 doc tagged|{count} docs tagged"},{count:n}))}();return(0,r.I)({id:"theme.docs.tagDocListPageTitle",description:"The title of the page for a docs tag",message:'{nDocsTagged} with "{tagName}"'},{nDocsTagged:n(e.tag.count),tagName:e.tag.label})}function g(e){let{doc:n}=e;return(0,h.jsxs)("article",{className:"margin-vert--lg",children:[(0,h.jsx)(s.Z,{to:n.permalink,children:(0,h.jsx)(u.Z,{as:"h2",children:n.title})}),n.description&&(0,h.jsx)("p",{children:n.description})]})}function x(e){let{title:n}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(l.d,{title:n}),(0,h.jsx)(c.Z,{tag:"doc_tag_doc_list"})]})}function f(e){let{tag:n,title:t}=e;return(0,h.jsx)(l.FG,{className:(0,i.Z)(a.k.page.docsTagDocListPage),children:(0,h.jsx)("div",{className:"container margin-vert--lg",children:(0,h.jsx)("div",{className:"row",children:(0,h.jsxs)("main",{className:"col col--8 col--offset-2",children:[n.unlisted&&(0,h.jsx)(d.Z,{}),(0,h.jsxs)("header",{className:"margin-bottom--xl",children:[(0,h.jsx)(u.Z,{as:"h1",children:t}),(0,h.jsx)(s.Z,{href:n.allTagsPath,children:(0,h.jsx)(r.Z,{id:"theme.tags.tagsPageLink",description:"The label of the link targeting the tag list page",children:"View All Tags"})})]}),(0,h.jsx)("section",{className:"margin-vert--lg",children:n.items.map((e=>(0,h.jsx)(g,{doc:e},e.id)))})]})})})})}function j(e){const n=m(e);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(x,{...e,title:n}),(0,h.jsx)(f,{...e,title:n})]})}},2212:(e,n,t)=>{t.d(n,{Z:()=>m});t(7294);var i=t(512),s=t(5999),o=t(5742),l=t(5893);function a(){return(0,l.jsx)(s.Z,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function r(){return(0,l.jsx)(s.Z,{id:"theme.unlistedContent.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 c(){return(0,l.jsx)(o.Z,{children:(0,l.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}var d=t(5281),u=t(9047);function h(e){let{className:n}=e;return(0,l.jsx)(u.Z,{type:"caution",title:(0,l.jsx)(a,{}),className:(0,i.Z)(n,d.k.common.unlistedBanner),children:(0,l.jsx)(r,{})})}function m(e){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c,{}),(0,l.jsx)(h,{...e})]})}},8824:(e,n,t)=>{t.d(n,{c:()=>c});var i=t(7294),s=t(2263);const o=["zero","one","two","few","many","other"];function l(e){return o.filter((n=>e.includes(n)))}const a={locale:"en",pluralForms:l(["one","other"]),select:e=>1===e?"one":"other"};function r(){const{i18n:{currentLocale:e}}=(0,s.Z)();return(0,i.useMemo)((()=>{try{return function(e){const n=new Intl.PluralRules(e);return{locale:e,pluralForms:l(n.resolvedOptions().pluralCategories),select:e=>n.select(e)}}(e)}catch(n){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${n.message}\n`),a}}),[e])}function c(){const e=r();return{selectMessage:(n,t)=>function(e,n,t){const i=e.split("|");if(1===i.length)return i[0];i.length>t.pluralForms.length&&console.error(`For locale=${t.locale}, a maximum of ${t.pluralForms.length} plural forms are expected (${t.pluralForms.join(",")}), but the message contains ${i.length}: ${e}`);const s=t.select(n),o=t.pluralForms.indexOf(s);return i[Math.min(o,i.length-1)]}(t,n,e)}}}}]); \ No newline at end of file diff --git a/assets/js/e19cd79a.d82572fa.js b/assets/js/e19cd79a.d82572fa.js new file mode 100644 index 0000000000..b4363af77e --- /dev/null +++ b/assets/js/e19cd79a.d82572fa.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1429],{2998:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>m,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var t=s(5893),r=s(1151),l=s(4866),a=s(5162),o=s(6393),i=s(4379);const c={sidebar_position:0,tags:["Prepared Statements","Placeholders","Parameters","execute"]},u="INSERT",d={id:"examples/queries/prepared-statements/insert",title:"INSERT",description:"execute(sql, values)",source:"@site/docs/examples/queries/prepared-statements/insert.mdx",sourceDirName:"examples/queries/prepared-statements",slug:"/examples/queries/prepared-statements/insert",permalink:"/node-mysql2/docs/examples/queries/prepared-statements/insert",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/prepared-statements/insert.mdx",tags:[{label:"Prepared Statements",permalink:"/node-mysql2/docs/tags/prepared-statements"},{label:"Placeholders",permalink:"/node-mysql2/docs/tags/placeholders"},{label:"Parameters",permalink:"/node-mysql2/docs/tags/parameters"},{label:"execute",permalink:"/node-mysql2/docs/tags/execute"}],version:"current",sidebarPosition:0,frontMatter:{sidebar_position:0,tags:["Prepared Statements","Placeholders","Parameters","execute"]},sidebar:"examples",previous:{title:"Prepared Statements",permalink:"/node-mysql2/docs/examples/queries/prepared-statements/"},next:{title:"SELECT",permalink:"/node-mysql2/docs/examples/queries/prepared-statements/select"}},h={},p=[{value:"execute(sql, values)",id:"executesql-values",level:2},{value:"execute(options)",id:"executeoptions",level:2},{value:"execute(options, values)",id:"executeoptions-values",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"QueryOptions",id:"queryoptions",level:3}];function x(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"insert",children:"INSERT"}),"\n",(0,t.jsx)(n.h2,{id:"executesql-values",children:"execute(sql, values)"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"execute(sql: string, values: any[])"})}),"\n"]}),"\n",(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';\n const values = ['Josh', 19, 'Page', 45];\n\n // highlight-next-line\n const [result, fields] = await connection.execute(sql, values);\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"callback.js",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';\nconst values = ['Josh', 19, 'Page', 45];\n\nconnection.execute(sql, values, (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n});\n"})})})]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"result"}),": contains a ",(0,t.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:["The connection used for the query (",(0,t.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,t.jsx)(n.code,{children:"createConnection"}),", ",(0,t.jsx)(n.code,{children:"createPool"})," or ",(0,t.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"executeoptions",children:"execute(options)"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsxs)(n.strong,{children:["execute(options: ",(0,t.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';\n const values = ['Josh', 19, 'Page', 45];\n\n // highlight-start\n const [result, fields] = await connection.execute({\n sql,\n values,\n // ... other options\n });\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"callback.js",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';\nconst values = ['Josh', 19, 'Page', 45];\n\nconnection.execute(\n {\n sql,\n values,\n // ... other options\n },\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"result"}),": contains a ",(0,t.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:["The connection used for the query (",(0,t.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,t.jsx)(n.code,{children:"createConnection"}),", ",(0,t.jsx)(n.code,{children:"createPool"})," or ",(0,t.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"executeoptions-values",children:"execute(options, values)"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsxs)(n.strong,{children:["execute(options: ",(0,t.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),", values: any[])"]})}),"\n"]}),"\n",(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';\n const values = ['Josh', 19, 'Page', 45];\n\n // highlight-start\n const [result, fields] = await connection.execute(\n {\n sql,\n // ... other options\n },\n values\n );\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"callback.js",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';\nconst values = ['Josh', 19, 'Page', 45];\n\nconnection.execute(\n {\n sql,\n // ... other options\n },\n values,\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"result"}),": contains a ",(0,t.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:["The connection used for the query (",(0,t.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,t.jsx)(n.code,{children:"createConnection"}),", ",(0,t.jsx)(n.code,{children:"createPool"})," or ",(0,t.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,t.jsx)(n.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,t.jsx)(o.Z,{title:"ResultSetHeader Specification",children:(0,t.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts",extractMethod:"ResultSetHeader",methodType:"interface"})}),"\n",(0,t.jsx)(n.h3,{id:"queryoptions",children:"QueryOptions"}),"\n",(0,t.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,t.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(x,{...e})}):x(e)}},5162:(e,n,s)=>{s.d(n,{Z:()=>a});s(7294);var t=s(512);const r={tabItem:"tabItem_Ymn6"};var l=s(5893);function a(e){let{children:n,hidden:s,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,t.Z)(r.tabItem,a),hidden:s,children:n})}},4866:(e,n,s)=>{s.d(n,{Z:()=>q});var t=s(7294),r=s(512),l=s(2466),a=s(6550),o=s(469),i=s(1980),c=s(7392),u=s(12);function d(e){return t.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,t.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:s}=e;return(0,t.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:s,attributes:t,default:r}}=e;return{value:n,label:s,attributes:t,default:r}}))}(s);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,s])}function p(e){let{value:n,tabValues:s}=e;return s.some((e=>e.value===n))}function x(e){let{queryString:n=!1,groupId:s}=e;const r=(0,a.k6)(),l=function(e){let{queryString:n=!1,groupId:s}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!s)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:n,groupId:s});return[(0,i._X)(l),(0,t.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(r.location.search);n.set(l,e),r.replace({...r.location,search:n.toString()})}),[l,r])]}function m(e){const{defaultValue:n,queryString:s=!1,groupId:r}=e,l=h(e),[a,i]=(0,t.useState)((()=>function(e){let{defaultValue:n,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:s}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const t=s.find((e=>e.default))??s[0];if(!t)throw new Error("Unexpected error: 0 tabValues");return t.value}({defaultValue:n,tabValues:l}))),[c,d]=x({queryString:s,groupId:r}),[m,g]=function(e){let{groupId:n}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,l]=(0,u.Nk)(s);return[r,(0,t.useCallback)((e=>{s&&l.set(e)}),[s,l])]}({groupId:r}),j=(()=>{const e=c??m;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{j&&i(j)}),[j]);return{selectedValue:a,selectValue:(0,t.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),g(e)}),[d,g,l]),tabValues:l}}var g=s(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=s(5893);function b(e){let{className:n,block:s,selectedValue:t,selectValue:a,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,l.o5)(),u=e=>{const n=e.currentTarget,s=i.indexOf(n),r=o[s].value;r!==t&&(c(n),a(r))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const s=i.indexOf(e.currentTarget)+1;n=i[s]??i[0];break}case"ArrowLeft":{const s=i.indexOf(e.currentTarget)-1;n=i[s]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":s},n),children:o.map((e=>{let{value:n,label:s,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:t===n?0:-1,"aria-selected":t===n,ref:e=>i.push(e),onKeyDown:d,onClick:u,...l,className:(0,r.Z)("tabs__item",j.tabItem,l?.className,{"tabs__item--active":t===n}),children:s??n},n)}))})}function v(e){let{lazy:n,children:s,selectedValue:r}=e;const l=(Array.isArray(s)?s:[s]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===r));return e?(0,t.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,t.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function y(e){const n=m(e);return(0,f.jsxs)("div",{className:(0,r.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(b,{...e,...n}),(0,f.jsx)(v,{...e,...n})]})}function q(e){const n=(0,g.Z)();return(0,f.jsx)(y,{...e,children:d(e.children)},String(n))}},4379:(e,n,s)=>{s.d(n,{I:()=>i});var t=s(7294),r=s(2263),l=s(9286),a=s(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:s,extractMethod:i,methodType:c}=e;const[u,d]=(0,t.useState)(""),[h,p]=(0,t.useState)(!0),[x,m]=(0,t.useState)(!0),{siteConfig:g}=(0,r.Z)(),j=g.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,t.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&c?((e,n,s)=>{const t=e.split("\n"),r=`${s} ${n}`;let l=!1,a=0,o="";for(const i of t)if(i.includes(r)&&(l=!0),l&&(i.includes("{")&&a++,o+=i+"\n",i.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,i,c):e;d(n||e),p(!1),m(!1)})).catch((()=>{m(!0),p(!1)})),()=>{e.abort()}}),[f,i,c]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:x?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${s}`,children:u})})})}},6393:(e,n,s)=>{s.d(n,{Z:()=>l});var t=s(4673),r=s(5893);const l=e=>{let{children:n,open:s,title:l}=e;return(0,r.jsx)(t.Z,{open:s,className:"faq",summary:(0,r.jsx)("summary",{children:(0,r.jsx)("strong",{children:l})}),children:(0,r.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/assets/js/e1e203e4.db93059a.js b/assets/js/e1e203e4.db93059a.js deleted file mode 100644 index 7de5b3f858..0000000000 --- a/assets/js/e1e203e4.db93059a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9800],{920:e=>{e.exports=JSON.parse('{"title":"Queries","slug":"/category/queries","permalink":"/node-mysql2/docs/category/queries","navigation":{"previous":{"title":"Promise CO Await","permalink":"/node-mysql2/docs/examples/promise-co-await"},"next":{"title":"SELECT","permalink":"/node-mysql2/docs/examples/queries/select"}}}')}}]); \ No newline at end of file diff --git a/assets/js/e3a2ad82.0cc0bf20.js b/assets/js/e3a2ad82.0cc0bf20.js deleted file mode 100644 index 51e43060a2..0000000000 --- a/assets/js/e3a2ad82.0cc0bf20.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5775],{2017:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},u="Procedure Call Packet",c={id:"examples/typescript/procedure-call/procedure-call-packet",title:"Procedure Call Packet",description:"",source:"@site/docs/examples/typescript/procedure-call/00-procedure-call-packet.mdx",sourceDirName:"examples/typescript/procedure-call",slug:"/examples/typescript/procedure-call/procedure-call-packet",permalink:"/node-mysql2/docs/examples/typescript/procedure-call/procedure-call-packet",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/procedure-call/00-procedure-call-packet.mdx",tags:[],version:"current",sidebarPosition:0,frontMatter:{},sidebar:"examples",previous:{title:"Procedure Call Packet",permalink:"/node-mysql2/docs/category/procedure-call-packet"},next:{title:"Procedure Call Packet (Row as Array)",permalink:"/node-mysql2/docs/examples/typescript/procedure-call/row-as-array"}},i={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"procedure-call-packet",children:"Procedure Call Packet"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ProcedureCallPacket,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n id: number;\n name: string;\n}\n\nconst isResultSetHeader = (data: unknown): data is ResultSetHeader => {\n if (!data || typeof data !== 'object') return false;\n\n const keys = [\n 'fieldCount',\n 'affectedRows',\n 'insertId',\n 'info',\n 'serverStatus',\n 'warningStatus',\n 'changedRows',\n ];\n\n return keys.every((key) => key in data);\n};\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Deleting the `getUsers` procedure, if it exists */\n await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');\n\n /** Creating a procedure to get the users */\n await conn.query<ResultSetHeader>(`\n CREATE PROCEDURE getUsers()\n BEGIN\n SELECT * FROM users ORDER BY name ASC;\n END\n `);\n\n /** Getting users */\n // highlight-start\n const [procedureResult] =\n await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');\n\n procedureResult.forEach((users) => {\n /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */\n if (isResultSetHeader(users)) {\n console.log('----------------');\n console.log('Affected Rows:', users.affectedRows);\n } else {\n users.forEach((user) => {\n console.log('----------------');\n console.log('id: ', user.id);\n console.log('name:', user.name);\n });\n }\n });\n // highlight-end\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * ----------------\n * id: 4\n * name: Gween\n * ----------------\n * id: 2\n * name: John\n * ----------------\n * id: 1\n * name: Josh\n * ----------------\n * id: 3\n * name: Marie\n * ----------------\n * Affected Rows: 0\n */\n"})})})})]})}function m(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>k});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function h(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[c,d]=f({queryString:t,groupId:a}),[h,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,i.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),y=(()=>{const e=c??h;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function w(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),a=l[t].value;a!==r&&(c(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",y.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function x(e){const n=h(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",y.tabList),children:[(0,g.jsx)(w,{...e,...n}),(0,g.jsx)(v,{...e,...n})]})}function k(e){const n=(0,b.Z)();return(0,g.jsx)(x,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/e9842ab8.a45b8d23.js b/assets/js/e9842ab8.a45b8d23.js deleted file mode 100644 index c47afe06fa..0000000000 --- a/assets/js/e9842ab8.a45b8d23.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8218],{492:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>o,metadata:()=>i,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),l=n(5162);const o={},u="Prepared Statements",i={id:"examples/prepare",title:"Prepared Statements",description:"",source:"@site/docs/examples/prepare.mdx",sourceDirName:"examples",slug:"/examples/prepare",permalink:"/node-mysql2/docs/examples/prepare",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/prepare.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Pool Test",permalink:"/node-mysql2/docs/examples/pool-test"},next:{title:"Promise CO Await",permalink:"/node-mysql2/docs/examples/promise-co-await"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"prepared-statements",children:"Prepared Statements"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(l.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\n// get the client\nconst mysql = require('mysql2');\n\n// create the connection to database\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// execute will internally call prepare and query\nconnection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Rick C-137', 53],\n (err, results, fields) => {\n console.log(results); // results contains rows returned by server\n console.log(fields); // fields contains extra meta data about results, if available\n\n // If you execute same statement again, it will be picked form a LRU cache\n // which will save query preparation time and give better performance\n }\n);\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function l(e){let{children:t,hidden:n,className:l}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,l),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>k});var r=n(7294),a=n(512),s=n(2466),l=n(6550),o=n(469),u=n(1980),i=n(7392),c=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const a=(0,l.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=p(e),[l,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[i,d]=f({queryString:n,groupId:a}),[b,h]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,c.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),v=(()=>{const e=i??b;return m({value:e,tabValues:s})?e:null})();(0,o.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:l,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,s]),tabValues:s}}var h=n(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=n(5893);function g(e){let{className:t,block:n,selectedValue:r,selectValue:l,tabValues:o}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=u.indexOf(t),a=o[n].value;a!==r&&(i(t),l(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function y(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function w(e){const t=b(e);return(0,x.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(g,{...e,...t}),(0,x.jsx)(y,{...e,...t})]})}function k(e){const t=(0,h.Z)();return(0,x.jsx)(w,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>o,a:()=>l});var r=n(7294);const a={},s=r.createContext(a);function l(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:l(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f11325fe.0f31a6f3.js b/assets/js/f11325fe.0f31a6f3.js new file mode 100644 index 0000000000..a2b420f88c --- /dev/null +++ b/assets/js/f11325fe.0f31a6f3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9961],{1400:e=>{e.exports=JSON.parse('{"label":"createPool","permalink":"/node-mysql2/docs/tags/create-pool","allTagsPath":"/node-mysql2/docs/tags","count":1,"items":[{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/docs/examples/connections/create-pool"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/assets/js/f1dc11e5.e9c930e2.js b/assets/js/f1dc11e5.e9c930e2.js new file mode 100644 index 0000000000..541f6230a4 --- /dev/null +++ b/assets/js/f1dc11e5.e9c930e2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[505],{6220:e=>{e.exports=JSON.parse('{"label":"createConnection","permalink":"/node-mysql2/docs/tags/create-connection","allTagsPath":"/node-mysql2/docs/tags","count":1,"items":[{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/docs/examples/connections/create-connection"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/assets/js/f43af5ae.24f14169.js b/assets/js/f43af5ae.24f14169.js deleted file mode 100644 index e165e878c1..0000000000 --- a/assets/js/f43af5ae.24f14169.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5909],{104:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>u,default:()=>p,frontMatter:()=>i,metadata:()=>l,toc:()=>d});var s=t(5893),r=t(1151),a=t(4866),o=t(5162);const i={},u="Basic Custom Class",l={id:"examples/typescript/basic-custom-class",title:"Basic Custom Class",description:"",source:"@site/docs/examples/typescript/basic-custom-class.mdx",sourceDirName:"examples/typescript",slug:"/examples/typescript/basic-custom-class",permalink:"/node-mysql2/docs/examples/typescript/basic-custom-class",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/basic-custom-class.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"TypeScript",permalink:"/node-mysql2/docs/category/typescript"},next:{title:"Procedure Call Packet",permalink:"/node-mysql2/docs/category/procedure-call-packet"}},c={},d=[];function m(e){const n={code:"code",h1:"h1",pre:"pre",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"basic-custom-class",children:"Basic Custom Class"}),"\n",(0,s.jsxs)(a.Z,{children:[(0,s.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n */\n\nimport { PoolOptions } from 'mysql2/promise';\nimport { MySQL } from './db.js';\n\ninterface User extends RowDataPacket {\n id: number;\n name: string;\n}\n\nconst access: PoolOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n};\n\n(async () => {\n const mysql = new MySQL(access);\n\n /** Deleting the `users` table, if it exists */\n await mysql.queryResult('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await mysql.queryResult(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await mysql.executeResult(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Getting users */\n const [users] = await mysql.queryRows(\n 'SELECT * FROM `users` ORDER BY `name` ASC;'\n );\n\n users.forEach((user: User) => {\n console.log('-----------');\n console.log('id: ', user.id);\n console.log('name:', user.name);\n });\n\n await mysql.connection.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * -----------\n * id: 4\n * name: Gween\n * -----------\n * id: 2\n * name: John\n * -----------\n * id: 1\n * name: Josh\n * -----------\n * id: 3\n * name: Marie\n */\n"})})}),(0,s.jsx)(o.Z,{value:"db.ts",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n */\n\nimport {\n createPool,\n PoolOptions,\n Pool,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\nexport class MySQL {\n private conn: Pool;\n private credentials: PoolOptions;\n\n constructor(credentials: PoolOptions) {\n this.credentials = credentials;\n this.conn = createPool(this.credentials);\n }\n\n /** A random method to simulate a step before to get the class methods */\n private ensureConnection() {\n if (!this?.conn) this.conn = createPool(this.credentials);\n }\n\n /** For `SELECT` and `SHOW` */\n get queryRows() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<RowDataPacket[]>;\n }\n\n /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */\n get queryRowsAsArray() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<RowDataPacket[][]>;\n }\n\n /** For `INSERT`, `UPDATE`, etc. */\n get queryResult() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<ResultSetHeader>;\n }\n\n /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */\n get queryResults() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<ResultSetHeader[]>;\n }\n\n /** For `SELECT` and `SHOW` */\n get executeRows() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<RowDataPacket[]>;\n }\n\n /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */\n get executeRowsAsArray() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<RowDataPacket[][]>;\n }\n\n /** For `INSERT`, `UPDATE`, etc. */\n get executeResult() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<ResultSetHeader>;\n }\n\n /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */\n get executeResults() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<ResultSetHeader[]>;\n }\n\n /** Expose the Pool Connection */\n get connection() {\n return this.conn;\n }\n}\n"})})})]})]})}function p(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var s=t(512);const r={tabItem:"tabItem_Ymn6"};var a=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,s.Z)(r.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>E});var s=t(7294),r=t(512),a=t(2466),o=t(6550),i=t(469),u=t(1980),l=t(7392),c=t(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:t}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:s,default:r}}=e;return{value:n,label:t,attributes:s,default:r}}))}(t);return function(e){const n=(0,l.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function h(e){let{queryString:n=!1,groupId:t}=e;const r=(0,o.k6)(),a=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(a),(0,s.useCallback)((e=>{if(!a)return;const n=new URLSearchParams(r.location.search);n.set(a,e),r.replace({...r.location,search:n.toString()})}),[a,r])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,a=m(e),[o,u]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=t.find((e=>e.default))??t[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:a}))),[l,d]=h({queryString:t,groupId:r}),[b,f]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,a]=(0,c.Nk)(t);return[r,(0,s.useCallback)((e=>{t&&a.set(e)}),[t,a])]}({groupId:r}),y=(()=>{const e=l??b;return p({value:e,tabValues:a})?e:null})();(0,i.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:o,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),f(e)}),[d,f,a]),tabValues:a}}var f=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function x(e){let{className:n,block:t,selectedValue:s,selectValue:o,tabValues:i}=e;const u=[],{blockElementScrollPositionUntilNextRender:l}=(0,a.o5)(),c=e=>{const n=e.currentTarget,t=u.indexOf(n),r=i[t].value;r!==s&&(l(n),o(r))},d=e=>{let n=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":t},n),children:i.map((e=>{let{value:n,label:t,attributes:a}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>u.push(e),onKeyDown:d,onClick:c,...a,className:(0,r.Z)("tabs__item",y.tabItem,a?.className,{"tabs__item--active":s===n}),children:t??n},n)}))})}function w(e){let{lazy:n,children:t,selectedValue:r}=e;const a=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=a.find((e=>e.props.value===r));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:a.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function v(e){const n=b(e);return(0,g.jsxs)("div",{className:(0,r.Z)("tabs-container",y.tabList),children:[(0,g.jsx)(x,{...e,...n}),(0,g.jsx)(w,{...e,...n})]})}function E(e){const n=(0,f.Z)();return(0,g.jsx)(v,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>i,a:()=>o});var s=t(7294);const r={},a=s.createContext(r);function o(e){const n=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),s.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f43af5ae.b162e030.js b/assets/js/f43af5ae.b162e030.js new file mode 100644 index 0000000000..5d8326db7c --- /dev/null +++ b/assets/js/f43af5ae.b162e030.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5909],{104:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>l,default:()=>p,frontMatter:()=>i,metadata:()=>u,toc:()=>d});var s=t(5893),r=t(1151),a=t(4866),o=t(5162);const i={},l="Basic Custom Class",u={id:"examples/typescript/basic-custom-class",title:"Basic Custom Class",description:"",source:"@site/docs/examples/typescript/basic-custom-class.mdx",sourceDirName:"examples/typescript",slug:"/examples/typescript/basic-custom-class",permalink:"/node-mysql2/docs/examples/typescript/basic-custom-class",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/basic-custom-class.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Server",permalink:"/node-mysql2/docs/examples/tests/server"},next:{title:"Procedure Call Packet",permalink:"/node-mysql2/docs/examples/typescript/procedure-call/index"}},c={},d=[];function m(e){const n={code:"code",h1:"h1",pre:"pre",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"basic-custom-class",children:"Basic Custom Class"}),"\n",(0,s.jsxs)(a.Z,{children:[(0,s.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n */\n\nimport { PoolOptions } from 'mysql2/promise';\nimport { MySQL } from './db.js';\n\ninterface User extends RowDataPacket {\n id: number;\n name: string;\n}\n\nconst access: PoolOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n};\n\n(async () => {\n const mysql = new MySQL(access);\n\n /** Deleting the `users` table, if it exists */\n await mysql.queryResult('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await mysql.queryResult(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await mysql.executeResult(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Getting users */\n const [users] = await mysql.queryRows(\n 'SELECT * FROM `users` ORDER BY `name` ASC;'\n );\n\n users.forEach((user: User) => {\n console.log('-----------');\n console.log('id: ', user.id);\n console.log('name:', user.name);\n });\n\n await mysql.connection.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * -----------\n * id: 4\n * name: Gween\n * -----------\n * id: 2\n * name: John\n * -----------\n * id: 1\n * name: Josh\n * -----------\n * id: 3\n * name: Marie\n */\n"})})}),(0,s.jsx)(o.Z,{value:"db.ts",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n */\n\nimport {\n createPool,\n PoolOptions,\n Pool,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\nexport class MySQL {\n private conn: Pool;\n private credentials: PoolOptions;\n\n constructor(credentials: PoolOptions) {\n this.credentials = credentials;\n this.conn = createPool(this.credentials);\n }\n\n /** A random method to simulate a step before to get the class methods */\n private ensureConnection() {\n if (!this?.conn) this.conn = createPool(this.credentials);\n }\n\n /** For `SELECT` and `SHOW` */\n get queryRows() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<RowDataPacket[]>;\n }\n\n /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */\n get queryRowsAsArray() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<RowDataPacket[][]>;\n }\n\n /** For `INSERT`, `UPDATE`, etc. */\n get queryResult() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<ResultSetHeader>;\n }\n\n /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */\n get queryResults() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<ResultSetHeader[]>;\n }\n\n /** For `SELECT` and `SHOW` */\n get executeRows() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<RowDataPacket[]>;\n }\n\n /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */\n get executeRowsAsArray() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<RowDataPacket[][]>;\n }\n\n /** For `INSERT`, `UPDATE`, etc. */\n get executeResult() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<ResultSetHeader>;\n }\n\n /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */\n get executeResults() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<ResultSetHeader[]>;\n }\n\n /** Expose the Pool Connection */\n get connection() {\n return this.conn;\n }\n}\n"})})})]})]})}function p(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var s=t(512);const r={tabItem:"tabItem_Ymn6"};var a=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,s.Z)(r.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>E});var s=t(7294),r=t(512),a=t(2466),o=t(6550),i=t(469),l=t(1980),u=t(7392),c=t(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:t}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:s,default:r}}=e;return{value:n,label:t,attributes:s,default:r}}))}(t);return function(e){const n=(0,u.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function h(e){let{queryString:n=!1,groupId:t}=e;const r=(0,o.k6)(),a=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,l._X)(a),(0,s.useCallback)((e=>{if(!a)return;const n=new URLSearchParams(r.location.search);n.set(a,e),r.replace({...r.location,search:n.toString()})}),[a,r])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,a=m(e),[o,l]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=t.find((e=>e.default))??t[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:a}))),[u,d]=h({queryString:t,groupId:r}),[b,f]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,a]=(0,c.Nk)(t);return[r,(0,s.useCallback)((e=>{t&&a.set(e)}),[t,a])]}({groupId:r}),y=(()=>{const e=u??b;return p({value:e,tabValues:a})?e:null})();(0,i.Z)((()=>{y&&l(y)}),[y]);return{selectedValue:o,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),f(e)}),[d,f,a]),tabValues:a}}var f=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function x(e){let{className:n,block:t,selectedValue:s,selectValue:o,tabValues:i}=e;const l=[],{blockElementScrollPositionUntilNextRender:u}=(0,a.o5)(),c=e=>{const n=e.currentTarget,t=l.indexOf(n),r=i[t].value;r!==s&&(u(n),o(r))},d=e=>{let n=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const t=l.indexOf(e.currentTarget)+1;n=l[t]??l[0];break}case"ArrowLeft":{const t=l.indexOf(e.currentTarget)-1;n=l[t]??l[l.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":t},n),children:i.map((e=>{let{value:n,label:t,attributes:a}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>l.push(e),onKeyDown:d,onClick:c,...a,className:(0,r.Z)("tabs__item",y.tabItem,a?.className,{"tabs__item--active":s===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:r}=e;const a=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=a.find((e=>e.props.value===r));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:a.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function w(e){const n=b(e);return(0,g.jsxs)("div",{className:(0,r.Z)("tabs-container",y.tabList),children:[(0,g.jsx)(x,{...e,...n}),(0,g.jsx)(v,{...e,...n})]})}function E(e){const n=(0,f.Z)();return(0,g.jsx)(w,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>i,a:()=>o});var s=t(7294);const r={},a=s.createContext(r);function o(e){const n=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),s.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f4597ecd.a48e25c9.js b/assets/js/f4597ecd.a48e25c9.js new file mode 100644 index 0000000000..2b7c3b1778 --- /dev/null +++ b/assets/js/f4597ecd.a48e25c9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3326],{6664:e=>{e.exports=JSON.parse('{"label":"Prepared Statements","permalink":"/node-mysql2/docs/tags/prepared-statements","allTagsPath":"/node-mysql2/docs/tags","count":5,"items":[{"id":"examples/queries/prepared-statements/delete","title":"DELETE","description":"execute(sql, values)","permalink":"/node-mysql2/docs/examples/queries/prepared-statements/delete"},{"id":"examples/queries/prepared-statements/insert","title":"INSERT","description":"execute(sql, values)","permalink":"/node-mysql2/docs/examples/queries/prepared-statements/insert"},{"id":"documentation/prepared-statements","title":"Prepared Statements","description":"Automatic creation, cached and re-used by connection","permalink":"/node-mysql2/docs/documentation/prepared-statements"},{"id":"examples/queries/prepared-statements/select","title":"SELECT","description":"execute(sql, values)","permalink":"/node-mysql2/docs/examples/queries/prepared-statements/select"},{"id":"examples/queries/prepared-statements/update","title":"UPDATE","description":"execute(sql, values)","permalink":"/node-mysql2/docs/examples/queries/prepared-statements/update"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/assets/js/f54f1246.349c72d8.js b/assets/js/f54f1246.349c72d8.js deleted file mode 100644 index ab74206a3b..0000000000 --- a/assets/js/f54f1246.349c72d8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[630],{4990:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>o,default:()=>u,frontMatter:()=>c,metadata:()=>a,toc:()=>d});var s=t(5893),r=t(1151);const c={},o="Prepared Statements",a={id:"documentation/prepared-statements",title:"Prepared Statements",description:"Automatic creation, cached and re-used by connection",source:"@site/docs/documentation/prepared-statements.mdx",sourceDirName:"documentation",slug:"/documentation/prepared-statements",permalink:"/node-mysql2/docs/documentation/prepared-statements",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/documentation/prepared-statements.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"MySQL Server API",permalink:"/node-mysql2/docs/documentation/mysql-server"},next:{title:"Promise Wrappers",permalink:"/node-mysql2/docs/documentation/promise-wrapper"}},i={},d=[{value:"Automatic creation, cached and re-used by connection",id:"automatic-creation-cached-and-re-used-by-connection",level:2},{value:"Manual prepare / execute",id:"manual-prepare--execute",level:2}];function l(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",ul:"ul",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"prepared-statements",children:"Prepared Statements"}),"\n",(0,s.jsx)(n.h2,{id:"automatic-creation-cached-and-re-used-by-connection",children:"Automatic creation, cached and re-used by connection"}),"\n",(0,s.jsxs)(n.p,{children:["Similar to ",(0,s.jsx)(n.code,{children:"connection.query()"}),"."]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connection.execute('select 1 + ? + ? as result', [5, 6], (err, rows) => {\n // rows: [ { result: 12 } ]\n // internally 'select 1 + ? + ? as result' is prepared first. On subsequent calls cached statement is re-used\n});\n\n// close cached statement for 'select 1 + ? + ? as result'. noop if not in cache\nconnection.unprepare('select 1 + ? + ? as result');\n"})}),"\n",(0,s.jsxs)(n.p,{children:["Note that ",(0,s.jsx)(n.code,{children:"connection.execute()"})," will cache the prepared statement for better performance, remove the cache with ",(0,s.jsx)(n.code,{children:"connection.unprepare()"})," when you're done."]}),"\n",(0,s.jsx)(n.h2,{id:"manual-prepare--execute",children:"Manual prepare / execute"}),"\n",(0,s.jsxs)(n.p,{children:["Manually prepared statements doesn't comes with LRU cache and SHOULD be closed using ",(0,s.jsx)(n.code,{children:"statement.close()"})," instead of ",(0,s.jsx)(n.code,{children:"connection.unprepare()"}),"."]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connection.prepare('select ? + ? as tests', (err, statement) => {\n // statement.parameters - array of column definitions, length === number of params, here 2\n // statement.columns - array of result column definitions. Can be empty if result schema is dynamic / not known\n // statement.id\n // statement.query\n\n statement.execute([1, 2], (err, rows, columns) => {\n // -> [ { tests: 3 } ]\n });\n\n // don't use connection.unprepare(), it won't work!\n // note that there is no callback here. There is no statement close ack at protocol level.\n statement.close();\n});\n"})}),"\n",(0,s.jsxs)(n.p,{children:["Note that you should not use statement after connection reset (",(0,s.jsx)(n.code,{children:"changeUser()"})," or disconnect). Statement scope is connection, you need to prepare statement for each new connection in order to use it."]}),"\n",(0,s.jsx)(n.h1,{id:"configuration",children:"Configuration"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"maxPreparedStatements"})," : We keep the cached statements in a ",(0,s.jsx)(n.a,{href:"https://github.com/isaacs/node-lru-cache",children:"lru-cache"}),". Default size is ",(0,s.jsx)(n.code,{children:"16000"})," but you can use this option to override it. Any statements that are dropped from cache will be ",(0,s.jsx)(n.code,{children:"closed"}),"."]}),"\n",(0,s.jsx)(n.h1,{id:"serialization-of-bind-parameters",children:"Serialization of bind parameters"}),"\n",(0,s.jsxs)(n.p,{children:["The bind parameter values passed to ",(0,s.jsx)(n.code,{children:"execute"})," are serialized JS -> MySQL as:"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"null"})," -> ",(0,s.jsx)(n.code,{children:"NULL"})]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"number"})," -> ",(0,s.jsx)(n.code,{children:"DOUBLE"})]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"boolean"})," -> ",(0,s.jsx)(n.code,{children:"TINY"})," (0 for false, 1 for true)"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"object"})," -> depending on prototype:","\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"Date"})," -> ",(0,s.jsx)(n.code,{children:"DATETIME"})]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"JSON"})," like object - ",(0,s.jsx)(n.code,{children:"JSON"})]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"Buffer"})," -> ",(0,s.jsx)(n.code,{children:"VAR_STRING"})]}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["Other -> ",(0,s.jsx)(n.code,{children:"VAR_STRING"})]}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["Passing in ",(0,s.jsx)(n.code,{children:"undefined"})," or a ",(0,s.jsx)(n.code,{children:"function"})," will result in an error."]})]})}function u(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},1151:(e,n,t)=>{t.d(n,{Z:()=>a,a:()=>o});var s=t(7294);const r={},c=s.createContext(r);function o(e){const n=s.useContext(c);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),s.createElement(c.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f54f1246.3d0942fa.js b/assets/js/f54f1246.3d0942fa.js new file mode 100644 index 0000000000..b879a23819 --- /dev/null +++ b/assets/js/f54f1246.3d0942fa.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[630],{4990:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>a,default:()=>p,frontMatter:()=>c,metadata:()=>o,toc:()=>l});var r=t(5893),s=t(1151);const c={tags:["Prepared Statements","execute"]},a="Prepared Statements",o={id:"documentation/prepared-statements",title:"Prepared Statements",description:"Automatic creation, cached and re-used by connection",source:"@site/docs/documentation/prepared-statements.mdx",sourceDirName:"documentation",slug:"/documentation/prepared-statements",permalink:"/node-mysql2/docs/documentation/prepared-statements",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/documentation/prepared-statements.mdx",tags:[{label:"Prepared Statements",permalink:"/node-mysql2/docs/tags/prepared-statements"},{label:"execute",permalink:"/node-mysql2/docs/tags/execute"}],version:"current",frontMatter:{tags:["Prepared Statements","execute"]},sidebar:"docs",previous:{title:"MySQL Server API",permalink:"/node-mysql2/docs/documentation/mysql-server"},next:{title:"Promise Wrappers",permalink:"/node-mysql2/docs/documentation/promise-wrapper"}},i={},l=[{value:"Automatic creation, cached and re-used by connection",id:"automatic-creation-cached-and-re-used-by-connection",level:2},{value:"Manual prepare / execute",id:"manual-prepare--execute",level:2},{value:"Configuration",id:"configuration",level:2},{value:"Serialization of bind parameters",id:"serialization-of-bind-parameters",level:2},{value:"Prepared Statements Helper",id:"prepared-statements-helper",level:2},{value:"Examples",id:"examples",level:2}];function d(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",ul:"ul",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"prepared-statements",children:"Prepared Statements"}),"\n",(0,r.jsx)(n.h2,{id:"automatic-creation-cached-and-re-used-by-connection",children:"Automatic creation, cached and re-used by connection"}),"\n",(0,r.jsxs)(n.p,{children:["Similar to ",(0,r.jsx)(n.code,{children:"connection.query()"}),"."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"connection.execute('select 1 + ? + ? as result', [5, 6], (err, rows) => {\n // rows: [ { result: 12 } ]\n // internally 'select 1 + ? + ? as result' is prepared first. On subsequent calls cached statement is re-used\n});\n\n// close cached statement for 'select 1 + ? + ? as result'. noop if not in cache\nconnection.unprepare('select 1 + ? + ? as result');\n"})}),"\n",(0,r.jsxs)(n.p,{children:["Note that ",(0,r.jsx)(n.code,{children:"connection.execute()"})," will cache the prepared statement for better performance, remove the cache with ",(0,r.jsx)(n.code,{children:"connection.unprepare()"})," when you're done."]}),"\n",(0,r.jsx)(n.h2,{id:"manual-prepare--execute",children:"Manual prepare / execute"}),"\n",(0,r.jsxs)(n.p,{children:["Manually prepared statements doesn't comes with LRU cache and SHOULD be closed using ",(0,r.jsx)(n.code,{children:"statement.close()"})," instead of ",(0,r.jsx)(n.code,{children:"connection.unprepare()"}),"."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"connection.prepare('select ? + ? as tests', (err, statement) => {\n // statement.parameters - array of column definitions, length === number of params, here 2\n // statement.columns - array of result column definitions. Can be empty if result schema is dynamic / not known\n // statement.id\n // statement.query\n\n statement.execute([1, 2], (err, rows, columns) => {\n // -> [ { tests: 3 } ]\n });\n\n // don't use connection.unprepare(), it won't work!\n // note that there is no callback here. There is no statement close ack at protocol level.\n statement.close();\n});\n"})}),"\n",(0,r.jsxs)(n.p,{children:["Note that you should not use statement after connection reset (",(0,r.jsx)(n.code,{children:"changeUser()"})," or disconnect). Statement scope is connection, you need to prepare statement for each new connection in order to use it."]}),"\n",(0,r.jsx)(n.h2,{id:"configuration",children:"Configuration"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"maxPreparedStatements"})," : We keep the cached statements in a ",(0,r.jsx)(n.a,{href:"https://github.com/isaacs/node-lru-cache",children:"lru-cache"}),". Default size is ",(0,r.jsx)(n.code,{children:"16000"})," but you can use this option to override it. Any statements that are dropped from cache will be ",(0,r.jsx)(n.code,{children:"closed"}),"."]}),"\n",(0,r.jsx)(n.h2,{id:"serialization-of-bind-parameters",children:"Serialization of bind parameters"}),"\n",(0,r.jsxs)(n.p,{children:["The bind parameter values passed to ",(0,r.jsx)(n.code,{children:"execute"})," are serialized JS -> MySQL as:"]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"null"})," -> ",(0,r.jsx)(n.code,{children:"NULL"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"number"})," -> ",(0,r.jsx)(n.code,{children:"DOUBLE"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"boolean"})," -> ",(0,r.jsx)(n.code,{children:"TINY"})," (0 for false, 1 for true)"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"object"})," -> depending on prototype:","\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"Date"})," -> ",(0,r.jsx)(n.code,{children:"DATETIME"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"JSON"})," like object - ",(0,r.jsx)(n.code,{children:"JSON"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"Buffer"})," -> ",(0,r.jsx)(n.code,{children:"VAR_STRING"})]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["Other -> ",(0,r.jsx)(n.code,{children:"VAR_STRING"})]}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["Passing in ",(0,r.jsx)(n.code,{children:"undefined"})," or a ",(0,r.jsx)(n.code,{children:"function"})," will result in an error."]}),"\n",(0,r.jsx)(n.h2,{id:"prepared-statements-helper",children:"Prepared Statements Helper"}),"\n",(0,r.jsxs)(n.p,{children:["MySQL2 provides ",(0,r.jsx)(n.code,{children:"execute"})," helper which will prepare and query the statement. You can also manually prepare / unprepare statement with ",(0,r.jsx)(n.code,{children:"prepare"})," / ",(0,r.jsx)(n.code,{children:"unprepare"})," methods."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"connection.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [1, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n connection.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [3, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n connection.unprepare('select ?+1 as qqq, ? as rrr, ? as yyy');\n connection.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [3, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n }\n );\n }\n );\n }\n);\n"})}),"\n",(0,r.jsx)(n.h2,{id:"examples",children:"Examples"}),"\n",(0,r.jsxs)(n.p,{children:["For Prepared Statements examples, please see ",(0,r.jsx)(n.a,{href:"http://localhost:3000/node-mysql2/docs/examples/queries/prepared-statements",children:"here"}),"."]})]})}function p(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},1151:(e,n,t)=>{t.d(n,{Z:()=>o,a:()=>a});var r=t(7294);const s={},c=r.createContext(s);function a(e){const n=r.useContext(c);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),r.createElement(c.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f76f5ab7.8bdadfff.js b/assets/js/f76f5ab7.8bdadfff.js new file mode 100644 index 0000000000..3385ff7236 --- /dev/null +++ b/assets/js/f76f5ab7.8bdadfff.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3776],{7153:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>i,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),o=n(5162);const l={},u="Pool",i={id:"examples/tests/pool",title:"Pool",description:"",source:"@site/docs/examples/tests/pool.mdx",sourceDirName:"examples/tests",slug:"/examples/tests/pool",permalink:"/node-mysql2/docs/examples/tests/pool",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/tests/pool.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"MySQL Proxy",permalink:"/node-mysql2/docs/examples/tests/mysql-proxy"},next:{title:"Server",permalink:"/node-mysql2/docs/examples/tests/server"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"pool",children:"Pool"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst pool = require('mysql2').createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n password: 'root',\n});\n\nsetInterval(() => {\n for (let i = 0; i < 5; ++i) {\n pool.query((err, rows, fields) => {\n console.log(rows, fields);\n // Connection is automatically released once query resolves\n });\n }\n}, 1000);\n\nsetInterval(() => {\n for (let i = 0; i < 5; ++i) {\n pool.getConnection((err, db) => {\n db.query('select sleep(0.5) as qqq', (err, rows, fields) => {\n console.log(rows, fields);\n db.release();\n });\n });\n }\n}, 1000);\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>q});var r=n(7294),a=n(512),s=n(2466),o=n(6550),l=n(469),u=n(1980),i=n(7392),c=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const a=(0,o.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[i,d]=f({queryString:n,groupId:a}),[b,h]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,c.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),v=(()=>{const e=i??b;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,s]),tabValues:s}}var h=n(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=n(5893);function y(e){let{className:t,block:n,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=u.indexOf(t),a=l[n].value;a!==r&&(i(t),o(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:l.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function g(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function w(e){const t=b(e);return(0,x.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(y,{...e,...t}),(0,x.jsx)(g,{...e,...t})]})}function q(e){const t=(0,h.Z)();return(0,x.jsx)(w,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>o});var r=n(7294);const a={},s=r.createContext(a);function o(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f8d74a12.650ad441.js b/assets/js/f8d74a12.650ad441.js new file mode 100644 index 0000000000..c8dd76897c --- /dev/null +++ b/assets/js/f8d74a12.650ad441.js @@ -0,0 +1,2 @@ +/*! For license information please see f8d74a12.650ad441.js.LICENSE.txt */ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5807],{7330:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>x,contentTitle:()=>d,default:()=>p,frontMatter:()=>a,metadata:()=>h,toc:()=>m});var t=s(5893),i=s(1151),r=s(6393),l=s(8609),o=s(3901),c=s(4379);const a={title:"Documentation Site"},d="Website Contributing Guidelines",h={id:"contributing/website",title:"Documentation Site",description:"This website is built using Docusaurus 3, a modern static website generator.",source:"@site/docs/contributing/website.mdx",sourceDirName:"contributing",slug:"/contributing/website",permalink:"/node-mysql2/docs/contributing/website",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/contributing/website.mdx",tags:[],version:"current",frontMatter:{title:"Documentation Site"},sidebar:"docs",previous:{title:"MySQL2",permalink:"/node-mysql2/docs/contributing"}},x={},m=[{value:"Environment",id:"environment",level:2},{value:"Development",id:"development",level:2},{value:"Extras Components",id:"extras-components",level:2},{value:"History",id:"history",level:3},{value:"Stability",id:"stability",level:3},{value:"FAQ",id:"faq",level:3},{value:"ExternalCodeEmbed",id:"externalcodeembed",level:3},{value:"Running Tests",id:"running-tests",level:2}];function u(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"website-contributing-guidelines",children:"Website Contributing Guidelines"}),"\n",(0,t.jsxs)(n.p,{children:["This website is built using ",(0,t.jsx)(n.a,{href:"https://docusaurus.io/",children:"Docusaurus 3"}),", a modern static website generator."]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"environment",children:"Environment"}),"\n",(0,t.jsx)(n.p,{children:"You will need these tools installed on your system:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"https://nodejs.org/",children:"Node.js (18.x or higher)"})}),"\n"]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"development",children:"Development"}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:["Fork the ",(0,t.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2",children:"MySQL2"})," repository."]}),"\n",(0,t.jsxs)(n.li,{children:["Download your forked repository locally. The website's workspace is the \"",(0,t.jsx)(n.em,{children:"website"}),'" directory in ',(0,t.jsx)(n.strong,{children:"node-mysql2"})," root."]}),"\n",(0,t.jsxs)(n.li,{children:["Create a new branch from ",(0,t.jsx)(n.code,{children:"master"})," (optional)."]}),"\n",(0,t.jsxs)(n.li,{children:["Run ",(0,t.jsx)(n.code,{children:"cd website"})," to enter the website workspace."]}),"\n",(0,t.jsxs)(n.li,{children:["Run ",(0,t.jsx)(n.code,{children:"npm ci"})," to install the dependecies from ",(0,t.jsx)(n.em,{children:"package-lock.json"}),"."]}),"\n",(0,t.jsxs)(n.li,{children:["Run ",(0,t.jsx)(n.code,{children:"npm start"})," to starting the local development."]}),"\n"]}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:"It will start a local development server and opens up a browser window. Most changes are reflected live without having to restart the server."}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.strong,{children:"Docusaurus"})," complete documentation, please ",(0,t.jsx)(n.a,{href:"https://docusaurus.io/docs",children:"see here"}),"."]}),"\n",(0,t.jsx)(r.Z,{title:"CLI example",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/sidorares/node-mysql2.git\ngit checkout -b website # optional\ncd /path-to/node-mysql2/website\nnpm ci\nnpm start\n"})})}),"\n",(0,t.jsxs)(n.p,{children:["Documentation is auto-generated from ",(0,t.jsx)(n.strong,{children:"MDX"})," files placed in these directories:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.em,{children:"./docs/documentation"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.em,{children:"./docs/examples"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.em,{children:"./docs/faq"})}),"\n"]}),"\n",(0,t.jsxs)(n.admonition,{title:"Caution",type:"danger",children:[(0,t.jsxs)(n.p,{children:["Note that the website has its own ",(0,t.jsx)(n.em,{children:"package.json"}),"."]}),(0,t.jsxs)(n.p,{children:["Please, do not install dependencies for the website in ",(0,t.jsx)(n.strong,{children:"node-mysql2"})," root."]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"extras-components",children:"Extras Components"}),"\n",(0,t.jsx)(n.p,{children:"Every extra component is thoroughly documented with complete typings descriptions."}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://docusaurus.io/docs/markdown-features",children:(0,t.jsx)(n.strong,{children:"Docusaurus Markdown Features:"})})," The MDX compiler transforms Markdown files to React components, and allows you to use JSX in your Markdown content. This enables you to easily interleave React components within your content, and create delightful learning experiences."]}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"history",children:"History"}),"\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"History"})," component displays version changes in a table format, listing version numbers alongside their changes."]}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { History } from '@site/src/components/History';\n\n<History\n records={[\n {\n version: '1.0.0',\n changes: ['Some change message.'],\n },\n ]}\n/>\n"})}),"\n","\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["You can also utilize React components in the ",(0,t.jsx)(n.code,{children:"changes"})," option."]})}),"\n",(0,t.jsx)(r.Z,{title:"Example",children:(0,t.jsx)(l.A,{records:[{version:"1.0.0",changes:["Some change message."]}]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"stability",children:"Stability"}),"\n",(0,t.jsxs)(n.p,{children:["See the ",(0,t.jsx)(n.a,{href:"/docs/stability-badges",children:"Stability Badges"})," for more detais."]}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { Stability } from '@site/src/components/Stability';\n\n<Stability level={2} />\n<Stability level={2} message='Some message' />\n"})}),"\n","\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["You can also utilize React components in the ",(0,t.jsx)(n.code,{children:"message"})," option."]})}),"\n",(0,t.jsxs)(n.p,{children:["Available levels: ",(0,t.jsx)(n.code,{children:"0"}),", ",(0,t.jsx)(n.code,{children:"1"}),", ",(0,t.jsx)(n.code,{children:"1.1"}),", ",(0,t.jsx)(n.code,{children:"1.2"}),", ",(0,t.jsx)(n.code,{children:"2"})," and ",(0,t.jsx)(n.code,{children:"3"}),"."]}),"\n",(0,t.jsxs)(r.Z,{title:"Example",children:[(0,t.jsx)(o.X,{level:2}),(0,t.jsx)(o.X,{level:2,message:"Some message."})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"faq",children:"FAQ"}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { FAQ } from '@site/src/components/FAQ';\n\n<FAQ title='Title'>\n\n > Some markdown (**MDX**) content.\n\n</FAQ>\n"})}),"\n","\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["The ",(0,t.jsx)(n.strong,{children:"FAQ"})," component can be utilized in any section or page."]}),"\n",(0,t.jsxs)(n.li,{children:["Code blocks are compatible and can be used within the ",(0,t.jsx)(n.strong,{children:"FAQ"})," component."]}),"\n"]})}),"\n",(0,t.jsx)(r.Z,{title:"Example",children:(0,t.jsx)(r.Z,{title:"Title",children:(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["Some markdown (",(0,t.jsx)(n.strong,{children:"MDX"}),") content."]}),"\n"]})})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"externalcodeembed",children:"ExternalCodeEmbed"}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { ExternalCodeEmbed } from '@site/src/components/ExternalCodeEmbed';\n\n<ExternalCodeEmbed\n url='https://github.com/sidorares/node-mysql2/blob/75b05f0765c9edd0c0be8f18d85be05618770cca/.prettierrc'\n language='json'\n/>\n\n<ExternalCodeEmbed\n url='https://raw.githubusercontent.com/sidorares/node-mysql2/master/tools/parse-row.js'\n language='js'\n extractMethod='parseC'\n methodType='function'\n/>\n"})}),"\n","\n",(0,t.jsxs)(r.Z,{title:"Example",children:[(0,t.jsx)(c.I,{url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/.prettierrc",language:"json"}),(0,t.jsx)(c.I,{url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/tools/parse-row.js",language:"js",extractMethod:"parseC",methodType:"function"})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"running-tests",children:"Running Tests"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run test\n"})}),"\n",(0,t.jsxs)(r.Z,{title:"Check Prettier and ESLint rules for compliance",children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run lintcheck\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]}),"\n",(0,t.jsxs)(r.Z,{title:"Check for typings errors",children:[(0,t.jsx)(o.X,{level:1,message:(0,t.jsxs)(t.Fragment,{children:["Checks for ",(0,t.jsx)(n.strong,{children:"MDX"})," components are missing."]})}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run typecheck\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]}),"\n",(0,t.jsxs)(r.Z,{title:"Clear and build the website",children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run clear\nnpm run build\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]}),"\n",(0,t.jsxs)(r.Z,{title:"Fix issues from Prettier and ESLint rules",open:!0,children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run lint\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"To prevent lint issues, it is recommended to execute this command before creating your commit."}),"\n",(0,t.jsxs)(n.li,{children:["Not included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]})]})}function p(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}},4379:(e,n,s)=>{s.d(n,{I:()=>c});var t=s(7294),i=s(2263),r=s(9286),l=s(5893);const o=()=>(0,l.jsx)("span",{className:"loader"}),c=e=>{let{url:n,language:s,extractMethod:c,methodType:a}=e;const[d,h]=(0,t.useState)(""),[x,m]=(0,t.useState)(!0),[u,p]=(0,t.useState)(!0),{siteConfig:j}=(0,i.Z)(),g=j.baseUrl.replace(/\/$/,""),b=/^\//.test(n)?`${g}${n}`:n;return(0,t.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(b,{signal:n}).then((e=>e.text())).then((e=>{const n=c&&a?((e,n,s)=>{const t=e.split("\n"),i=`${s} ${n}`;let r=!1,l=0,o="";for(const c of t)if(c.includes(i)&&(r=!0),r&&(c.includes("{")&&l++,o+=c+"\n",c.includes("}")&&(l--,0===l)))break;return o.trim()||e})(e,c,a):e;h(n||e),m(!1),p(!1)})).catch((()=>{p(!0),m(!1)})),()=>{e.abort()}}),[b,c,a]),(0,l.jsx)(l.Fragment,{children:x?(0,l.jsx)(o,{}):(0,l.jsx)(l.Fragment,{children:u?(0,l.jsxs)("div",{children:["Unable to access the requested link: ",(0,l.jsx)("code",{children:b}),". Please verify the link or try again later."]}):(0,l.jsx)(r.Z,{className:`language-${s}`,children:d})})})}},6393:(e,n,s)=>{s.d(n,{Z:()=>r});var t=s(4673),i=s(5893);const r=e=>{let{children:n,open:s,title:r}=e;return(0,i.jsx)(t.Z,{open:s,className:"faq",summary:(0,i.jsx)("summary",{children:(0,i.jsx)("strong",{children:r})}),children:(0,i.jsx)("section",{children:n})})}},8609:(e,n,s)=>{s.d(n,{A:()=>l});var t=s(4673);const i=(0,s(4297).Z)("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]);var r=s(5893);const l=e=>{let{records:n,open:s}=e;return(0,r.jsx)(t.Z,{open:s,summary:(0,r.jsxs)("summary",{children:[(0,r.jsx)(i,{})," History"]}),className:"history",children:(0,r.jsxs)("table",{children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Version"}),(0,r.jsx)("th",{children:"Changes"})]})}),(0,r.jsx)("tbody",{children:n.map(((e,n)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsxs)("strong",{children:["v",e.version.replace(/[^0-9.]/g,"")]})}),(0,r.jsx)("td",{children:(0,r.jsx)("div",{className:"changes",children:e.changes.map(((e,n)=>(0,r.jsx)("section",{children:e},`change:${n}`)))})})]},`record:${n}`)))})]})})}},3901:(e,n,s)=>{s.d(n,{X:()=>x});var t=s(3692),i=s(4297);const r=(0,i.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),l=(0,i.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),o=(0,i.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),c=(0,i.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),a=(0,i.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),d=(0,i.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var h=s(5893);const x=e=>{let{level:n,message:s}=e;const i={0:{title:"Deprecated",icon:(0,h.jsx)(r,{})},1:{title:"Experimental",icon:(0,h.jsx)(l,{})},1.1:{title:"Early Development",icon:(0,h.jsx)(o,{})},1.2:{title:"Release Candidate",icon:(0,h.jsx)(c,{})},2:{title:"Stable",icon:(0,h.jsx)(a,{})},3:{title:"Legacy",icon:(0,h.jsx)(d,{})}};return(0,h.jsxs)("section",{className:"stability","data-level":n,children:[(0,h.jsx)(t.Z,{to:"/docs/stability-badges",children:(0,h.jsxs)("header",{children:[(0,h.jsx)("strong",{children:n}),(0,h.jsx)("span",{children:i[n].title}),i[n].icon]})}),s?(0,h.jsx)("p",{children:s}):null]})}},4297:(e,n,s)=>{s.d(n,{Z:()=>r});var t=s(7294),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const r=(e,n)=>{const s=(0,t.forwardRef)((({color:s="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:c="",children:a,...d},h)=>{return(0,t.createElement)("svg",{ref:h,...i,width:r,height:r,stroke:s,strokeWidth:o?24*Number(l)/Number(r):l,className:["lucide",`lucide-${x=e,x.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,c].join(" "),...d},[...n.map((([e,n])=>(0,t.createElement)(e,n))),...Array.isArray(a)?a:[a]]);var x}));return s.displayName=`${e}`,s}}}]); \ No newline at end of file diff --git a/assets/js/f8d74a12.e26699de.js.LICENSE.txt b/assets/js/f8d74a12.650ad441.js.LICENSE.txt similarity index 76% rename from assets/js/f8d74a12.e26699de.js.LICENSE.txt rename to assets/js/f8d74a12.650ad441.js.LICENSE.txt index 4b1ddb7671..3d48b22d31 100644 --- a/assets/js/f8d74a12.e26699de.js.LICENSE.txt +++ b/assets/js/f8d74a12.650ad441.js.LICENSE.txt @@ -1,5 +1,5 @@ /** - * @license lucide-react v0.303.0 - ISC + * @license lucide-react v0.306.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. diff --git a/assets/js/f8d74a12.e26699de.js b/assets/js/f8d74a12.e26699de.js deleted file mode 100644 index f5b80c28b0..0000000000 --- a/assets/js/f8d74a12.e26699de.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see f8d74a12.e26699de.js.LICENSE.txt */ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5807],{7330:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>h,contentTitle:()=>a,default:()=>p,frontMatter:()=>c,metadata:()=>d,toc:()=>u});var t=s(5893),i=s(1151),r=s(6393),l=s(8609),o=s(3901);const c={title:"Documentation Site"},a="Website Contributing Guidelines",d={id:"contributing/website",title:"Documentation Site",description:"This website is built using Docusaurus 3, a modern static website generator.",source:"@site/docs/contributing/website.mdx",sourceDirName:"contributing",slug:"/contributing/website",permalink:"/node-mysql2/docs/contributing/website",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/contributing/website.mdx",tags:[],version:"current",frontMatter:{title:"Documentation Site"},sidebar:"docs",previous:{title:"MySQL2",permalink:"/node-mysql2/docs/contributing"}},h={},u=[{value:"Environment",id:"environment",level:2},{value:"Development",id:"development",level:2},{value:"Extras Components",id:"extras-components",level:2},{value:"History",id:"history",level:3},{value:"Stability",id:"stability",level:3},{value:"FAQ",id:"faq",level:3},{value:"Running Tests",id:"running-tests",level:2}];function x(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"website-contributing-guidelines",children:"Website Contributing Guidelines"}),"\n",(0,t.jsxs)(n.p,{children:["This website is built using ",(0,t.jsx)(n.a,{href:"https://docusaurus.io/",children:"Docusaurus 3"}),", a modern static website generator."]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"environment",children:"Environment"}),"\n",(0,t.jsx)(n.p,{children:"You will need these tools installed on your system:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"https://nodejs.org/",children:"Node.js (18.x or higher)"})}),"\n"]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"development",children:"Development"}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:["Fork the ",(0,t.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2",children:"MySQL2"})," repository."]}),"\n",(0,t.jsxs)(n.li,{children:["Download your forked repository locally. The website's workspace is the \"",(0,t.jsx)(n.em,{children:"website"}),'" directory in ',(0,t.jsx)(n.strong,{children:"node-mysql2"})," root."]}),"\n",(0,t.jsxs)(n.li,{children:["Create a new branch from ",(0,t.jsx)(n.code,{children:"master"})," (optional)."]}),"\n",(0,t.jsxs)(n.li,{children:["Run ",(0,t.jsx)(n.code,{children:"cd website"})," to enter the website workspace."]}),"\n",(0,t.jsxs)(n.li,{children:["Run ",(0,t.jsx)(n.code,{children:"npm ci"})," to install the dependecies from ",(0,t.jsx)(n.em,{children:"package-lock.json"}),"."]}),"\n",(0,t.jsxs)(n.li,{children:["Run ",(0,t.jsx)(n.code,{children:"npm start"})," to starting the local development."]}),"\n"]}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:"It will start a local development server and opens up a browser window. Most changes are reflected live without having to restart the server."}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.strong,{children:"Docusaurus"})," complete documentation, please ",(0,t.jsx)(n.a,{href:"https://docusaurus.io/docs",children:"see here"}),"."]}),"\n",(0,t.jsx)(r.Z,{title:"CLI example",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/sidorares/node-mysql2.git\ngit checkout -b website # optional\ncd /path-to/node-mysql2/website\nnpm ci\nnpm start\n"})})}),"\n",(0,t.jsxs)(n.p,{children:["Documentation is auto-generated from ",(0,t.jsx)(n.strong,{children:"MDX"})," files placed in these directories:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.em,{children:"./docs/documentation"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.em,{children:"./docs/examples"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.em,{children:"./docs/faq"})}),"\n"]}),"\n",(0,t.jsxs)(n.admonition,{title:"Caution",type:"danger",children:[(0,t.jsxs)(n.p,{children:["Note that the website has its own ",(0,t.jsx)(n.em,{children:"package.json"}),"."]}),(0,t.jsxs)(n.p,{children:["Please, do not install dependencies for the website in ",(0,t.jsx)(n.strong,{children:"node-mysql2"})," root."]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"extras-components",children:"Extras Components"}),"\n",(0,t.jsx)(n.p,{children:"Every extra component is thoroughly documented with complete typings descriptions."}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://docusaurus.io/docs/markdown-features",children:(0,t.jsx)(n.strong,{children:"Docusaurus Markdown Features:"})})," The MDX compiler transforms Markdown files to React components, and allows you to use JSX in your Markdown content. This enables you to easily interleave React components within your content, and create delightful learning experiences."]}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"history",children:"History"}),"\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"History"})," component displays version changes in a table format, listing version numbers alongside their changes."]}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { History } from '@site/src/components/History';\n\n<History\n records={[\n {\n version: '1.0.0',\n changes: ['Some change message.'],\n },\n ]}\n/>\n"})}),"\n","\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["You can also utilize React components in the ",(0,t.jsx)(n.code,{children:"changes"})," option."]})}),"\n",(0,t.jsx)(r.Z,{title:"Example",children:(0,t.jsx)(l.A,{records:[{version:"1.0.0",changes:["Some change message."]}]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"stability",children:"Stability"}),"\n",(0,t.jsxs)(n.p,{children:["See the ",(0,t.jsx)(n.a,{href:"/docs/stability-badges",children:"Stability Badges"})," for more detais."]}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { Stability } from '@site/src/components/Stability';\n\n<Stability level={2} />\n<Stability level={2} message='Some message' />\n"})}),"\n","\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["You can also utilize React components in the ",(0,t.jsx)(n.code,{children:"message"})," option."]})}),"\n",(0,t.jsxs)(n.p,{children:["Available levels: ",(0,t.jsx)(n.code,{children:"0"}),", ",(0,t.jsx)(n.code,{children:"1"}),", ",(0,t.jsx)(n.code,{children:"1.1"}),", ",(0,t.jsx)(n.code,{children:"1.2"}),", ",(0,t.jsx)(n.code,{children:"2"})," and ",(0,t.jsx)(n.code,{children:"3"}),"."]}),"\n",(0,t.jsxs)(r.Z,{title:"Example",children:[(0,t.jsx)(o.X,{level:2}),(0,t.jsx)(o.X,{level:2,message:"Some message."})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"faq",children:"FAQ"}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { FAQ } from '@site/src/components/FAQ';\n\n<FAQ title='Title'>\n\n > Some markdown (**MDX**) content.\n\n</FAQ>\n"})}),"\n","\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["The ",(0,t.jsx)(n.strong,{children:"FAQ"})," component can be utilized in any section or page."]}),"\n",(0,t.jsxs)(n.li,{children:["Code blocks are compatible and can be used within the ",(0,t.jsx)(n.strong,{children:"FAQ"})," component."]}),"\n"]})}),"\n",(0,t.jsx)(r.Z,{title:"Example",children:(0,t.jsx)(r.Z,{title:"Title",children:(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["Some markdown (",(0,t.jsx)(n.strong,{children:"MDX"}),") content."]}),"\n"]})})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"running-tests",children:"Running Tests"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run test\n"})}),"\n",(0,t.jsxs)(r.Z,{title:"Check Prettier and ESLint rules for compliance",children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run lintcheck\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]}),"\n",(0,t.jsxs)(r.Z,{title:"Check for typings errors",children:[(0,t.jsx)(o.X,{level:1,message:(0,t.jsxs)(t.Fragment,{children:["Checks for ",(0,t.jsx)(n.strong,{children:"MDX"})," components are missing."]})}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run typecheck\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]}),"\n",(0,t.jsxs)(r.Z,{title:"Clear and build the website",children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run clear\nnpm run build\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]}),"\n",(0,t.jsxs)(r.Z,{title:"Fix issues from Prettier and ESLint rules",open:!0,children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run lint\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"To prevent lint issues, it is recommended to execute this command before creating your commit."}),"\n",(0,t.jsxs)(n.li,{children:["Not included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]})]})}function p(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(x,{...e})}):x(e)}},4673:(e,n,s)=>{s.d(n,{Z:()=>p});var t=s(7294),i=s(512),r=s(2389),l=s(6043);const o={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var c=s(5893);function a(e){return!!e&&("SUMMARY"===e.tagName||a(e.parentElement))}function d(e,n){return!!e&&(e===n||d(e.parentElement,n))}function h(e){let{summary:n,children:s,...h}=e;const u=(0,r.Z)(),x=(0,t.useRef)(null),{collapsed:p,setCollapsed:m}=(0,l.u)({initialState:!h.open}),[j,g]=(0,t.useState)(h.open),y=t.isValidElement(n)?n:(0,c.jsx)("summary",{children:n??"Details"});return(0,c.jsxs)("details",{...h,ref:x,open:j,"data-collapsed":p,className:(0,i.Z)(o.details,u&&o.isBrowser,h.className),onMouseDown:e=>{a(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const n=e.target;a(n)&&d(n,x.current)&&(e.preventDefault(),p?(m(!1),g(!0)):m(!0))},children:[y,(0,c.jsx)(l.z,{lazy:!1,collapsed:p,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{m(e),g(!e)},children:(0,c.jsx)("div",{className:o.collapsibleContent,children:s})})]})}const u={details:"details_b_Ee"},x="alert alert--info";function p(e){let{...n}=e;return(0,c.jsx)(h,{...n,className:(0,i.Z)(x,u.details,n.className)})}},6393:(e,n,s)=>{s.d(n,{Z:()=>r});var t=s(4673),i=s(5893);const r=e=>{let{children:n,open:s,title:r}=e;return(0,i.jsx)(t.Z,{open:s,className:"faq",summary:(0,i.jsx)("summary",{children:(0,i.jsx)("strong",{children:r})}),children:(0,i.jsx)("section",{children:n})})}},8609:(e,n,s)=>{s.d(n,{A:()=>l});var t=s(4673);const i=(0,s(4297).Z)("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]);var r=s(5893);const l=e=>{let{records:n,open:s}=e;return(0,r.jsx)(t.Z,{open:s,summary:(0,r.jsxs)("summary",{children:[(0,r.jsx)(i,{})," History"]}),className:"history",children:(0,r.jsxs)("table",{children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Version"}),(0,r.jsx)("th",{children:"Changes"})]})}),(0,r.jsx)("tbody",{children:n.map(((e,n)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsxs)("strong",{children:["v",e.version.replace(/[^0-9.]/g,"")]})}),(0,r.jsx)("td",{children:(0,r.jsx)("div",{className:"changes",children:e.changes.map(((e,n)=>(0,r.jsx)("section",{children:e},`change:${n}`)))})})]},`record:${n}`)))})]})})}},3901:(e,n,s)=>{s.d(n,{X:()=>u});var t=s(9960),i=s(4297);const r=(0,i.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),l=(0,i.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),o=(0,i.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),c=(0,i.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),a=(0,i.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),d=(0,i.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var h=s(5893);const u=e=>{let{level:n,message:s}=e;const i={0:{title:"Deprecated",icon:(0,h.jsx)(r,{})},1:{title:"Experimental",icon:(0,h.jsx)(l,{})},1.1:{title:"Early Development",icon:(0,h.jsx)(o,{})},1.2:{title:"Release Candidate",icon:(0,h.jsx)(c,{})},2:{title:"Stable",icon:(0,h.jsx)(a,{})},3:{title:"Legacy",icon:(0,h.jsx)(d,{})}};return(0,h.jsxs)("section",{className:"stability","data-level":n,children:[(0,h.jsx)(t.Z,{to:"/docs/stability-badges",children:(0,h.jsxs)("header",{children:[(0,h.jsx)("strong",{children:n}),(0,h.jsx)("span",{children:i[n].title}),i[n].icon]})}),s?(0,h.jsx)("p",{children:s}):null]})}},4297:(e,n,s)=>{s.d(n,{Z:()=>r});var t=s(7294),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const r=(e,n)=>{const s=(0,t.forwardRef)((({color:s="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:c="",children:a,...d},h)=>{return(0,t.createElement)("svg",{ref:h,...i,width:r,height:r,stroke:s,strokeWidth:o?24*Number(l)/Number(r):l,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,c].join(" "),...d},[...n.map((([e,n])=>(0,t.createElement)(e,n))),...Array.isArray(a)?a:[a]]);var u}));return s.displayName=`${e}`,s}},1151:(e,n,s)=>{s.d(n,{Z:()=>o,a:()=>l});var t=s(7294);const i={},r=t.createContext(i);function l(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:l(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/main.8aa13938.js b/assets/js/main.8aa13938.js new file mode 100644 index 0000000000..566615b682 --- /dev/null +++ b/assets/js/main.8aa13938.js @@ -0,0 +1,2 @@ +/*! For license information please see main.8aa13938.js.LICENSE.txt */ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[179],{1728:(e,t,n)=>{"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}n.d(t,{Z:()=>a});const a=function(){for(var e,t,n=0,a="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}},723:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});n(7294);var r=n(8356),a=n.n(r),o=n(6887);const s={"0e27d5d9":[()=>Promise.all([n.e(532),n.e(5072)]).then(n.bind(n,9247)),"@site/docs/examples/typescript/row-data/00-index.mdx",9247],"0fd3066c":[()=>n.e(7272).then(n.t.bind(n,5299,19)),"~docs/default/tag-node-mysql-2-docs-tags-parameters-83d.json",5299],"11a54026":[()=>n.e(5775).then(n.t.bind(n,8857,19)),"~docs/default/tag-node-mysql-2-docs-tags-create-pool-cluster-11c.json",8857],"11e11f3b":[()=>Promise.all([n.e(532),n.e(5020),n.e(8625)]).then(n.bind(n,3463)),"@site/docs/examples/connections/create-connection.mdx",3463],"13833ed5":[()=>Promise.all([n.e(532),n.e(2496)]).then(n.bind(n,2215)),"@site/docs/examples/typescript/row-data/02-multi-statements.mdx",2215],"1568425c":[()=>n.e(9458).then(n.bind(n,904)),"@site/docs/examples/queries/simple-queries/index.mdx",904],17896441:[()=>Promise.all([n.e(532),n.e(5020),n.e(7918)]).then(n.bind(n,4758)),"@theme/DocItem",4758],"1a4e3797":[()=>Promise.all([n.e(532),n.e(7920)]).then(n.bind(n,1473)),"@theme/SearchPage",1473],"1cee01a7":[()=>Promise.all([n.e(532),n.e(384)]).then(n.bind(n,5235)),"@site/docs/examples/typescript/row-data/03-row-as-array-multi-statements.mdx",5235],"1df93b7f":[()=>n.e(3237).then(n.bind(n,9754)),"@site/src/pages/index.tsx",9754],"20afe101":[()=>n.e(1411).then(n.t.bind(n,3156,19)),"~docs/default/tag-node-mysql-2-docs-tags-uri-9af.json",3156],22161331:[()=>Promise.all([n.e(532),n.e(556)]).then(n.bind(n,7165)),"@site/docs/examples/tests/mysql-proxy.mdx",7165],"2a05ee09":[()=>n.e(2714).then(n.t.bind(n,398,19)),"~docs/default/tag-node-mysql-2-docs-tags-ssl-dac.json",398],"2bc14e22":[()=>Promise.all([n.e(532),n.e(2839)]).then(n.bind(n,4760)),"@site/docs/documentation/typescript-examples.mdx",4760],"3226d26d":[()=>n.e(4243).then(n.t.bind(n,7991,19)),"~docs/default/tag-node-mysql-2-docs-tags-placeholders-722.json",7991],"32f1b34f":[()=>n.e(2995).then(n.bind(n,92)),"@site/docs/api-and-configurations.mdx",92],"3720c009":[()=>Promise.all([n.e(532),n.e(3751)]).then(n.bind(n,9861)),"@theme/DocTagsListPage",9861],"3945bec1":[()=>n.e(8882).then(n.bind(n,1889)),"@site/docs/documentation/authentication-switch.mdx",1889],"3be0564c":[()=>Promise.all([n.e(532),n.e(9594)]).then(n.bind(n,3034)),"@site/docs/examples/binlog-watcher.mdx",3034],"4e6d26eb":[()=>n.e(979).then(n.bind(n,2522)),"@site/docs/acknowledgements.mdx",2522],"4e92b6b6":[()=>n.e(3586).then(n.bind(n,3769)),"@site/docs/faq/00-index.mdx",3769],"4edc808e":[()=>Promise.all([n.e(532),n.e(4173)]).then(n.bind(n,7559)),"@site/docs/index.mdx",7559],"508f32b9":[()=>n.e(8453).then(n.t.bind(n,6193,19)),"~docs/default/tag-node-mysql-2-docs-tags-rds-02f.json",6193],"546b1c5f":[()=>n.e(8263).then(n.bind(n,403)),"@site/docs/documentation/promise-wrapper.mdx",403],54768732:[()=>Promise.all([n.e(532),n.e(5020),n.e(576)]).then(n.bind(n,3990)),"@site/docs/examples/queries/simple-queries/update.mdx",3990],"54eaaaae":[()=>Promise.all([n.e(532),n.e(5020),n.e(1420)]).then(n.bind(n,1)),"@site/docs/examples/connections/create-pool.mdx",1],"55960ee5":[()=>n.e(4121).then(n.t.bind(n,8070,19)),"~docs/default/tags-list-current-prop-15a.json",8070],57495183:[()=>n.e(5003).then(n.bind(n,4304)),"@site/docs/documentation/mysql-server.mdx",4304],"5814edec":[()=>Promise.all([n.e(532),n.e(3561)]).then(n.bind(n,3788)),"@site/docs/examples/typescript/row-data/01-row-as-array.mdx",3788],"5834a125":[()=>n.e(8722).then(n.bind(n,90)),"@site/docs/history-and-why-mysq2.mdx",90],"59e52bc2":[()=>Promise.all([n.e(532),n.e(5020),n.e(641)]).then(n.bind(n,8602)),"@site/docs/examples/queries/simple-queries/delete.mdx",8602],"5e95c892":[()=>n.e(9661).then(n.bind(n,1892)),"@theme/DocsRoot",1892],"5e9f5e1a":[()=>Promise.resolve().then(n.bind(n,6809)),"@generated/docusaurus.config",6809],"76dfa484":[()=>Promise.all([n.e(532),n.e(3433)]).then(n.bind(n,7345)),"@site/docs/examples/00-index.mdx",7345],"7ccab252":[()=>n.e(8054).then(n.bind(n,3467)),"@site/docs/examples/queries/prepared-statements/index.mdx",3467],"7fbd6b3a":[()=>Promise.all([n.e(532),n.e(5020),n.e(9964)]).then(n.bind(n,8937)),"@site/docs/examples/queries/prepared-statements/select.mdx",8937],"822ff0a2":[()=>n.e(1611).then(n.bind(n,6054)),"@site/docs/contributing/00-index.mdx",6054],"8b8ccc10":[()=>Promise.all([n.e(532),n.e(5020),n.e(8534)]).then(n.bind(n,3961)),"@site/docs/examples/queries/prepared-statements/delete.mdx",3961],"8e56b1fa":[()=>n.e(9308).then(n.t.bind(n,2485,19)),"~docs/default/tag-node-mysql-2-docs-tags-query-cf6.json",2485],"8fcb4d7f":[()=>Promise.all([n.e(532),n.e(5020),n.e(81)]).then(n.bind(n,3050)),"@site/docs/examples/queries/simple-queries/select.mdx",3050],"935f2afb":[()=>n.e(53).then(n.t.bind(n,1109,19)),"~docs/default/version-current-metadata-prop-751.json",1109],"9e767aa9":[()=>n.e(8806).then(n.bind(n,7372)),"@site/docs/documentation/00-index.mdx",7372],a55c4658:[()=>Promise.all([n.e(532),n.e(5020),n.e(452)]).then(n.bind(n,9547)),"@site/docs/examples/queries/simple-queries/insert.mdx",9547],a7bd4aaa:[()=>n.e(8518).then(n.bind(n,8564)),"@theme/DocVersionRoot",8564],a94703ab:[()=>Promise.all([n.e(532),n.e(4368)]).then(n.bind(n,2674)),"@theme/DocRoot",2674],ac5f2e4a:[()=>n.e(9380).then(n.t.bind(n,2776,19)),"/home/runner/work/node-mysql2/node-mysql2/website/.docusaurus/@easyops-cn/docusaurus-search-local/default/plugin-route-context-module-100.json",2776],ad7b17cf:[()=>Promise.all([n.e(532),n.e(2030)]).then(n.bind(n,923)),"@site/docs/examples/promise-wrapper/co-await.mdx",923],b07748b5:[()=>Promise.all([n.e(532),n.e(5020),n.e(4403)]).then(n.bind(n,214)),"@site/docs/examples/connections/createPoolCluster.mdx",214],b80d201b:[()=>Promise.all([n.e(532),n.e(5020),n.e(6061)]).then(n.bind(n,1384)),"@site/docs/examples/queries/prepared-statements/update.mdx",1384],b825a63d:[()=>n.e(7435).then(n.t.bind(n,2104,19)),"~docs/default/tag-node-mysql-2-docs-tags-sha-1-aff.json",2104],bc31cbdb:[()=>Promise.all([n.e(532),n.e(1437)]).then(n.bind(n,861)),"@site/docs/examples/typescript/procedure-call/01-row-as-array.mdx",861],c2813336:[()=>n.e(2456).then(n.t.bind(n,3720,19)),"~docs/default/tag-node-mysql-2-docs-tags-execute-1bd.json",3720],c84c75a7:[()=>n.e(1233).then(n.t.bind(n,9822,19)),"/home/runner/work/node-mysql2/node-mysql2/website/.docusaurus/docusaurus-plugin-content-docs/default/plugin-route-context-module-100.json",9822],cdbda324:[()=>Promise.all([n.e(532),n.e(4116)]).then(n.bind(n,1851)),"@site/docs/faq/how-to-handle-errors.mdx",1851],cffacdf0:[()=>Promise.all([n.e(532),n.e(8406)]).then(n.bind(n,5721)),"@site/docs/examples/tests/server.mdx",5721],d2b048c9:[()=>n.e(2002).then(n.t.bind(n,8099,19)),"~docs/default/tag-node-mysql-2-docs-tags-socks-47e.json",8099],db044f71:[()=>n.e(6159).then(n.bind(n,8009)),"@site/docs/stability-badges.mdx",8009],df04d3c8:[()=>Promise.all([n.e(532),n.e(9140)]).then(n.bind(n,107)),"@site/docs/examples/typescript/procedure-call/00-index.mdx",107],df203c0f:[()=>Promise.all([n.e(532),n.e(9924)]).then(n.bind(n,491)),"@theme/DocTagDocListPage",491],e19cd79a:[()=>Promise.all([n.e(532),n.e(5020),n.e(1429)]).then(n.bind(n,2998)),"@site/docs/examples/queries/prepared-statements/insert.mdx",2998],ed06a4b6:[()=>n.e(2991).then(n.bind(n,1639)),"@site/docs/documentation/extras.mdx",1639],f11325fe:[()=>n.e(9961).then(n.t.bind(n,1400,19)),"~docs/default/tag-node-mysql-2-docs-tags-create-pool-175.json",1400],f1dc11e5:[()=>n.e(505).then(n.t.bind(n,6220,19)),"~docs/default/tag-node-mysql-2-docs-tags-create-connection-ca7.json",6220],f43af5ae:[()=>Promise.all([n.e(532),n.e(5909)]).then(n.bind(n,104)),"@site/docs/examples/typescript/basic-custom-class.mdx",104],f4597ecd:[()=>n.e(3326).then(n.t.bind(n,6664,19)),"~docs/default/tag-node-mysql-2-docs-tags-prepared-statements-442.json",6664],f54f1246:[()=>n.e(630).then(n.bind(n,4990)),"@site/docs/documentation/prepared-statements.mdx",4990],f76f5ab7:[()=>Promise.all([n.e(532),n.e(3776)]).then(n.bind(n,7153)),"@site/docs/examples/tests/pool.mdx",7153],f8d74a12:[()=>Promise.all([n.e(532),n.e(5020),n.e(5807)]).then(n.bind(n,7330)),"@site/docs/contributing/website.mdx",7330],fb880757:[()=>n.e(1465).then(n.t.bind(n,5745,19)),"/home/runner/work/node-mysql2/node-mysql2/website/.docusaurus/docusaurus-plugin-content-pages/default/plugin-route-context-module-100.json",5745]};var i=n(5893);function l(e){let{error:t,retry:n,pastDelay:r}=e;return t?(0,i.jsxs)("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"},children:[(0,i.jsx)("p",{children:String(t)}),(0,i.jsx)("div",{children:(0,i.jsx)("button",{type:"button",onClick:n,children:"Retry"})})]}):r?(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:(0,i.jsx)("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb",children:(0,i.jsxs)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2",children:[(0,i.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,i.jsx)("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,i.jsx)("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,i.jsx)("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,i.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,i.jsx)("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,i.jsx)("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,i.jsx)("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,i.jsx)("circle",{cx:"22",cy:"22",r:"8",children:(0,i.jsx)("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})})]})})}):null}var c=n(9670),u=n(226);function d(e,t){if("*"===e)return a()({loading:l,loader:()=>n.e(1772).then(n.bind(n,1772)),modules:["@theme/NotFound"],webpack:()=>[1772],render(e,t){const n=e.default;return(0,i.jsx)(u.z,{value:{plugin:{name:"native",id:"default"}},children:(0,i.jsx)(n,{...t})})}});const r=o[`${e}-${t}`],d={},p=[],f=[],m=(0,c.Z)(r);return Object.entries(m).forEach((e=>{let[t,n]=e;const r=s[n];r&&(d[t]=r[0],p.push(r[1]),f.push(r[2]))})),a().Map({loading:l,loader:d,modules:p,webpack:()=>f,render(t,n){const a=JSON.parse(JSON.stringify(r));Object.entries(t).forEach((t=>{let[n,r]=t;const o=r.default;if(!o)throw new Error(`The page component at ${e} doesn't have a default export. This makes it impossible to render anything. Consider default-exporting a React component.`);"object"!=typeof o&&"function"!=typeof o||Object.keys(r).filter((e=>"default"!==e)).forEach((e=>{o[e]=r[e]}));let s=a;const i=n.split(".");i.slice(0,-1).forEach((e=>{s=s[e]})),s[i[i.length-1]]=o}));const o=a.__comp;delete a.__comp;const s=a.__context;return delete a.__context,(0,i.jsx)(u.z,{value:s,children:(0,i.jsx)(o,{...a,...n})})}})}const p=[{path:"/node-mysql2/search",component:d("/node-mysql2/search","ace"),exact:!0},{path:"/node-mysql2/docs",component:d("/node-mysql2/docs","af3"),routes:[{path:"/node-mysql2/docs",component:d("/node-mysql2/docs","9d7"),routes:[{path:"/node-mysql2/docs/tags",component:d("/node-mysql2/docs/tags","b0b"),exact:!0},{path:"/node-mysql2/docs/tags/create-connection",component:d("/node-mysql2/docs/tags/create-connection","d9f"),exact:!0},{path:"/node-mysql2/docs/tags/create-pool",component:d("/node-mysql2/docs/tags/create-pool","3ee"),exact:!0},{path:"/node-mysql2/docs/tags/create-pool-cluster",component:d("/node-mysql2/docs/tags/create-pool-cluster","e8a"),exact:!0},{path:"/node-mysql2/docs/tags/execute",component:d("/node-mysql2/docs/tags/execute","2e5"),exact:!0},{path:"/node-mysql2/docs/tags/parameters",component:d("/node-mysql2/docs/tags/parameters","cbb"),exact:!0},{path:"/node-mysql2/docs/tags/placeholders",component:d("/node-mysql2/docs/tags/placeholders","df2"),exact:!0},{path:"/node-mysql2/docs/tags/prepared-statements",component:d("/node-mysql2/docs/tags/prepared-statements","94f"),exact:!0},{path:"/node-mysql2/docs/tags/query",component:d("/node-mysql2/docs/tags/query","10e"),exact:!0},{path:"/node-mysql2/docs/tags/rds",component:d("/node-mysql2/docs/tags/rds","a27"),exact:!0},{path:"/node-mysql2/docs/tags/sha-1",component:d("/node-mysql2/docs/tags/sha-1","44a"),exact:!0},{path:"/node-mysql2/docs/tags/socks",component:d("/node-mysql2/docs/tags/socks","911"),exact:!0},{path:"/node-mysql2/docs/tags/ssl",component:d("/node-mysql2/docs/tags/ssl","ae4"),exact:!0},{path:"/node-mysql2/docs/tags/uri",component:d("/node-mysql2/docs/tags/uri","610"),exact:!0},{path:"/node-mysql2/docs",component:d("/node-mysql2/docs","e50"),routes:[{path:"/node-mysql2/docs",component:d("/node-mysql2/docs","1eb"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/acknowledgements",component:d("/node-mysql2/docs/acknowledgements","102"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/api-and-configurations",component:d("/node-mysql2/docs/api-and-configurations","e4c"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/contributing",component:d("/node-mysql2/docs/contributing","246"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/contributing/website",component:d("/node-mysql2/docs/contributing/website","6fb"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/documentation",component:d("/node-mysql2/docs/documentation","8ee"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/documentation/authentication-switch",component:d("/node-mysql2/docs/documentation/authentication-switch","3d5"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/documentation/extras",component:d("/node-mysql2/docs/documentation/extras","a10"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/documentation/mysql-server",component:d("/node-mysql2/docs/documentation/mysql-server","c6e"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/documentation/prepared-statements",component:d("/node-mysql2/docs/documentation/prepared-statements","7be"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/documentation/promise-wrapper",component:d("/node-mysql2/docs/documentation/promise-wrapper","c14"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/documentation/typescript-examples",component:d("/node-mysql2/docs/documentation/typescript-examples","e5a"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/examples",component:d("/node-mysql2/docs/examples","252"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/binlog-watcher",component:d("/node-mysql2/docs/examples/binlog-watcher","847"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/connections/create-connection",component:d("/node-mysql2/docs/examples/connections/create-connection","b47"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/connections/create-pool",component:d("/node-mysql2/docs/examples/connections/create-pool","3a8"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/connections/createPoolCluster",component:d("/node-mysql2/docs/examples/connections/createPoolCluster","983"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/promise-wrapper/co-await",component:d("/node-mysql2/docs/examples/promise-wrapper/co-await","979"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/queries/prepared-statements",component:d("/node-mysql2/docs/examples/queries/prepared-statements","01d"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/queries/prepared-statements/delete",component:d("/node-mysql2/docs/examples/queries/prepared-statements/delete","e2e"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/queries/prepared-statements/insert",component:d("/node-mysql2/docs/examples/queries/prepared-statements/insert","7ce"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/queries/prepared-statements/select",component:d("/node-mysql2/docs/examples/queries/prepared-statements/select","ece"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/queries/prepared-statements/update",component:d("/node-mysql2/docs/examples/queries/prepared-statements/update","5e9"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/queries/simple-queries",component:d("/node-mysql2/docs/examples/queries/simple-queries","0c3"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/queries/simple-queries/delete",component:d("/node-mysql2/docs/examples/queries/simple-queries/delete","ae5"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/queries/simple-queries/insert",component:d("/node-mysql2/docs/examples/queries/simple-queries/insert","a0d"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/queries/simple-queries/select",component:d("/node-mysql2/docs/examples/queries/simple-queries/select","2fa"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/queries/simple-queries/update",component:d("/node-mysql2/docs/examples/queries/simple-queries/update","bba"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/tests/mysql-proxy",component:d("/node-mysql2/docs/examples/tests/mysql-proxy","16b"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/tests/pool",component:d("/node-mysql2/docs/examples/tests/pool","3de"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/tests/server",component:d("/node-mysql2/docs/examples/tests/server","5c6"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/typescript/basic-custom-class",component:d("/node-mysql2/docs/examples/typescript/basic-custom-class","909"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/typescript/procedure-call/index",component:d("/node-mysql2/docs/examples/typescript/procedure-call/index","a85"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/typescript/procedure-call/row-as-array",component:d("/node-mysql2/docs/examples/typescript/procedure-call/row-as-array","793"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/typescript/row-data/index",component:d("/node-mysql2/docs/examples/typescript/row-data/index","827"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/typescript/row-data/multi-statements",component:d("/node-mysql2/docs/examples/typescript/row-data/multi-statements","773"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/typescript/row-data/row-as-array",component:d("/node-mysql2/docs/examples/typescript/row-data/row-as-array","b0c"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/typescript/row-data/row-as-array-multi-statements",component:d("/node-mysql2/docs/examples/typescript/row-data/row-as-array-multi-statements","e36"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/faq",component:d("/node-mysql2/docs/faq","622"),exact:!0,sidebar:"faq"},{path:"/node-mysql2/docs/faq/how-to-handle-errors",component:d("/node-mysql2/docs/faq/how-to-handle-errors","3ee"),exact:!0,sidebar:"faq"},{path:"/node-mysql2/docs/history-and-why-mysq2",component:d("/node-mysql2/docs/history-and-why-mysq2","bac"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/stability-badges",component:d("/node-mysql2/docs/stability-badges","48c"),exact:!0,sidebar:"docs"}]}]}]},{path:"/node-mysql2/",component:d("/node-mysql2/","951"),exact:!0},{path:"*",component:d("*")}]},8934:(e,t,n)=>{"use strict";n.d(t,{_:()=>o,t:()=>s});var r=n(7294),a=n(5893);const o=r.createContext(!1);function s(e){let{children:t}=e;const[n,s]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{s(!0)}),[]),(0,a.jsx)(o.Provider,{value:n,children:t})}},7221:(e,t,n)=>{"use strict";var r=n(7294),a=n(745),o=n(3727),s=n(405),i=n(412);const l=[n(2497),n(3310),n(8320),n(3395)];var c=n(723),u=n(6550),d=n(8790),p=n(5893);function f(e){let{children:t}=e;return(0,p.jsx)(p.Fragment,{children:t})}var m=n(5742),h=n(2263),g=n(4996),y=n(6668),b=n(1944),v=n(4711),x=n(9727),w=n(3320),k=n(8780),S=n(197);function E(){const{i18n:{currentLocale:e,defaultLocale:t,localeConfigs:n}}=(0,h.Z)(),r=(0,v.l)(),a=n[e].htmlLang,o=e=>e.replace("-","_");return(0,p.jsxs)(m.Z,{children:[Object.entries(n).map((e=>{let[t,{htmlLang:n}]=e;return(0,p.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:n},t)})),(0,p.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:"x-default"}),(0,p.jsx)("meta",{property:"og:locale",content:o(a)}),Object.values(n).filter((e=>a!==e.htmlLang)).map((e=>(0,p.jsx)("meta",{property:"og:locale:alternate",content:o(e.htmlLang)},`meta-og-${e.htmlLang}`)))]})}function _(e){let{permalink:t}=e;const{siteConfig:{url:n}}=(0,h.Z)(),r=function(){const{siteConfig:{url:e,baseUrl:t,trailingSlash:n}}=(0,h.Z)(),{pathname:r}=(0,u.TH)();return e+(0,k.applyTrailingSlash)((0,g.Z)(r),{trailingSlash:n,baseUrl:t})}(),a=t?`${n}${t}`:r;return(0,p.jsxs)(m.Z,{children:[(0,p.jsx)("meta",{property:"og:url",content:a}),(0,p.jsx)("link",{rel:"canonical",href:a})]})}function C(){const{i18n:{currentLocale:e}}=(0,h.Z)(),{metadata:t,image:n}=(0,y.L)();return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(m.Z,{children:[(0,p.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,p.jsx)("body",{className:x.h})]}),n&&(0,p.jsx)(b.d,{image:n}),(0,p.jsx)(_,{}),(0,p.jsx)(E,{}),(0,p.jsx)(S.Z,{tag:w.HX,locale:e}),(0,p.jsx)(m.Z,{children:t.map(((e,t)=>(0,p.jsx)("meta",{...e},t)))})]})}const T=new Map;function L(e){if(T.has(e.pathname))return{...e,pathname:T.get(e.pathname)};if((0,d.f)(c.Z,e.pathname).some((e=>{let{route:t}=e;return!0===t.exact})))return T.set(e.pathname,e.pathname),e;const t=e.pathname.trim().replace(/(?:\/index)?\.html$/,"")||"/";return T.set(e.pathname,t),{...e,pathname:t}}var P=n(8934),N=n(8940),A=n(469);function O(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const a=l.map((t=>{const r=t.default?.[e]??t[e];return r?.(...n)}));return()=>a.forEach((e=>e?.()))}const j=function(e){let{children:t,location:n,previousLocation:r}=e;return(0,A.Z)((()=>{r!==n&&(!function(e){let{location:t,previousLocation:n}=e;if(!n)return;const r=t.pathname===n.pathname,a=t.hash===n.hash,o=t.search===n.search;if(r&&a&&!o)return;const{hash:s}=t;if(s){const e=decodeURIComponent(s.substring(1)),t=document.getElementById(e);t?.scrollIntoView()}else window.scrollTo(0,0)}({location:n,previousLocation:r}),O("onRouteDidUpdate",{previousLocation:r,location:n}))}),[r,n]),t};function R(e){const t=Array.from(new Set([e,decodeURI(e)])).map((e=>(0,d.f)(c.Z,e))).flat();return Promise.all(t.map((e=>e.route.component.preload?.())))}class I extends r.Component{previousLocation;routeUpdateCleanupCb;constructor(e){super(e),this.previousLocation=null,this.routeUpdateCleanupCb=i.Z.canUseDOM?O("onRouteUpdate",{previousLocation:null,location:this.props.location}):()=>{},this.state={nextRouteHasLoaded:!0}}shouldComponentUpdate(e,t){if(e.location===this.props.location)return t.nextRouteHasLoaded;const n=e.location;return this.previousLocation=this.props.location,this.setState({nextRouteHasLoaded:!1}),this.routeUpdateCleanupCb=O("onRouteUpdate",{previousLocation:this.previousLocation,location:n}),R(n.pathname).then((()=>{this.routeUpdateCleanupCb(),this.setState({nextRouteHasLoaded:!0})})).catch((e=>{console.warn(e),window.location.reload()})),!1}render(){const{children:e,location:t}=this.props;return(0,p.jsx)(j,{previousLocation:this.previousLocation,location:t,children:(0,p.jsx)(u.AW,{location:t,render:()=>e})})}}const F=I,D="__docusaurus-base-url-issue-banner-container",M="__docusaurus-base-url-issue-banner",q="__docusaurus-base-url-issue-banner-suggestion-container";function B(e){return`\ndocument.addEventListener('DOMContentLoaded', function maybeInsertBanner() {\n var shouldInsert = typeof window['docusaurus'] === 'undefined';\n shouldInsert && insertBanner();\n});\n\nfunction insertBanner() {\n var bannerContainer = document.createElement('div');\n bannerContainer.id = '${D}';\n var bannerHtml = ${JSON.stringify(function(e){return`\n<div id="${M}" style="border: thick solid red; background-color: rgb(255, 230, 179); margin: 20px; padding: 20px; font-size: 20px;">\n <p style="font-weight: bold; font-size: 30px;">Your Docusaurus site did not load properly.</p>\n <p>A very common reason is a wrong site <a href="https://docusaurus.io/docs/docusaurus.config.js/#baseUrl" style="font-weight: bold;">baseUrl configuration</a>.</p>\n <p>Current configured baseUrl = <span style="font-weight: bold; color: red;">${e}</span> ${"/"===e?" (default value)":""}</p>\n <p>We suggest trying baseUrl = <span id="${q}" style="font-weight: bold; color: green;"></span></p>\n</div>\n`}(e)).replace(/</g,"\\<")};\n bannerContainer.innerHTML = bannerHtml;\n document.body.prepend(bannerContainer);\n var suggestionContainer = document.getElementById('${q}');\n var actualHomePagePath = window.location.pathname;\n var suggestedBaseUrl = actualHomePagePath.substr(-1) === '/'\n ? actualHomePagePath\n : actualHomePagePath + '/';\n suggestionContainer.innerHTML = suggestedBaseUrl;\n}\n`}function z(){const{siteConfig:{baseUrl:e}}=(0,h.Z)();return(0,p.jsx)(p.Fragment,{children:!i.Z.canUseDOM&&(0,p.jsx)(m.Z,{children:(0,p.jsx)("script",{children:B(e)})})})}function $(){const{siteConfig:{baseUrl:e,baseUrlIssueBanner:t}}=(0,h.Z)(),{pathname:n}=(0,u.TH)();return t&&n===e?(0,p.jsx)(z,{}):null}function U(){const{siteConfig:{favicon:e,title:t,noIndex:n},i18n:{currentLocale:r,localeConfigs:a}}=(0,h.Z)(),o=(0,g.Z)(e),{htmlLang:s,direction:i}=a[r];return(0,p.jsxs)(m.Z,{children:[(0,p.jsx)("html",{lang:s,dir:i}),(0,p.jsx)("title",{children:t}),(0,p.jsx)("meta",{property:"og:title",content:t}),(0,p.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),n&&(0,p.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),e&&(0,p.jsx)("link",{rel:"icon",href:o})]})}var H=n(4763),Q=n(2389);function Z(){const e=(0,Q.Z)();return(0,p.jsx)(m.Z,{children:(0,p.jsx)("html",{"data-has-hydrated":e})})}function V(){const e=(0,d.H)(c.Z),t=(0,u.TH)();return(0,p.jsx)(H.Z,{children:(0,p.jsx)(N.M,{children:(0,p.jsxs)(P.t,{children:[(0,p.jsxs)(f,{children:[(0,p.jsx)(U,{}),(0,p.jsx)(C,{}),(0,p.jsx)($,{}),(0,p.jsx)(F,{location:L(t),children:e})]}),(0,p.jsx)(Z,{})]})})})}var W=n(6887);const G=function(e){try{return document.createElement("link").relList.supports(e)}catch{return!1}}("prefetch")?function(e){return new Promise(((t,n)=>{if("undefined"==typeof document)return void n();const r=document.createElement("link");r.setAttribute("rel","prefetch"),r.setAttribute("href",e),r.onload=()=>t(),r.onerror=()=>n();const a=document.getElementsByTagName("head")[0]??document.getElementsByName("script")[0]?.parentNode;a?.appendChild(r)}))}:function(e){return new Promise(((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.withCredentials=!0,r.onload=()=>{200===r.status?t():n()},r.send(null)}))};var Y=n(9670);const K=new Set,X=new Set,J=()=>navigator.connection?.effectiveType.includes("2g")||navigator.connection?.saveData,ee={prefetch(e){if(!(e=>!J()&&!X.has(e)&&!K.has(e))(e))return!1;K.add(e);const t=(0,d.f)(c.Z,e).flatMap((e=>{return t=e.route.path,Object.entries(W).filter((e=>{let[n]=e;return n.replace(/-[^-]+$/,"")===t})).flatMap((e=>{let[,t]=e;return Object.values((0,Y.Z)(t))}));var t}));return Promise.all(t.map((e=>{const t=n.gca(e);return t&&!t.includes("undefined")?G(t).catch((()=>{})):Promise.resolve()})))},preload:e=>!!(e=>!J()&&!X.has(e))(e)&&(X.add(e),R(e))},te=Object.freeze(ee),ne=Boolean(!0);if(i.Z.canUseDOM){window.docusaurus=te;const e=document.getElementById("__docusaurus"),t=(0,p.jsx)(s.B6,{children:(0,p.jsx)(o.VK,{children:(0,p.jsx)(V,{})})}),n=(e,t)=>{console.error("Docusaurus React Root onRecoverableError:",e,t)},i=()=>{if(ne)r.startTransition((()=>{a.hydrateRoot(e,t,{onRecoverableError:n})}));else{const o=a.createRoot(e,{onRecoverableError:n});r.startTransition((()=>{o.render(t)}))}};R(window.location.pathname).then(i)}},8940:(e,t,n)=>{"use strict";n.d(t,{_:()=>d,M:()=>p});var r=n(7294),a=n(6809);const o=JSON.parse('{"navbar-locale-plugin":{"default":{}},"docusaurus-plugin-content-docs":{"default":{"path":"/node-mysql2/docs","versions":[{"name":"current","label":"Next","isLast":true,"path":"/node-mysql2/docs","mainDocId":"index","docs":[{"id":"acknowledgements","path":"/node-mysql2/docs/acknowledgements","sidebar":"docs"},{"id":"api-and-configurations","path":"/node-mysql2/docs/api-and-configurations","sidebar":"docs"},{"id":"contributing/index","path":"/node-mysql2/docs/contributing","sidebar":"docs"},{"id":"contributing/website","path":"/node-mysql2/docs/contributing/website","sidebar":"docs"},{"id":"documentation/authentication-switch","path":"/node-mysql2/docs/documentation/authentication-switch","sidebar":"docs"},{"id":"documentation/extras","path":"/node-mysql2/docs/documentation/extras","sidebar":"docs"},{"id":"documentation/index","path":"/node-mysql2/docs/documentation","sidebar":"docs"},{"id":"documentation/mysql-server","path":"/node-mysql2/docs/documentation/mysql-server","sidebar":"docs"},{"id":"documentation/prepared-statements","path":"/node-mysql2/docs/documentation/prepared-statements","sidebar":"docs"},{"id":"documentation/promise-wrapper","path":"/node-mysql2/docs/documentation/promise-wrapper","sidebar":"docs"},{"id":"documentation/typescript-examples","path":"/node-mysql2/docs/documentation/typescript-examples","sidebar":"docs"},{"id":"examples/binlog-watcher","path":"/node-mysql2/docs/examples/binlog-watcher","sidebar":"examples"},{"id":"examples/connections/create-connection","path":"/node-mysql2/docs/examples/connections/create-connection","sidebar":"examples"},{"id":"examples/connections/create-pool","path":"/node-mysql2/docs/examples/connections/create-pool","sidebar":"examples"},{"id":"examples/connections/createPoolCluster","path":"/node-mysql2/docs/examples/connections/createPoolCluster","sidebar":"examples"},{"id":"examples/index","path":"/node-mysql2/docs/examples","sidebar":"examples"},{"id":"examples/promise-wrapper/co-await","path":"/node-mysql2/docs/examples/promise-wrapper/co-await","sidebar":"examples"},{"id":"examples/queries/prepared-statements/delete","path":"/node-mysql2/docs/examples/queries/prepared-statements/delete","sidebar":"examples"},{"id":"examples/queries/prepared-statements/index","path":"/node-mysql2/docs/examples/queries/prepared-statements/","sidebar":"examples"},{"id":"examples/queries/prepared-statements/insert","path":"/node-mysql2/docs/examples/queries/prepared-statements/insert","sidebar":"examples"},{"id":"examples/queries/prepared-statements/select","path":"/node-mysql2/docs/examples/queries/prepared-statements/select","sidebar":"examples"},{"id":"examples/queries/prepared-statements/update","path":"/node-mysql2/docs/examples/queries/prepared-statements/update","sidebar":"examples"},{"id":"examples/queries/simple-queries/delete","path":"/node-mysql2/docs/examples/queries/simple-queries/delete","sidebar":"examples"},{"id":"examples/queries/simple-queries/index","path":"/node-mysql2/docs/examples/queries/simple-queries/","sidebar":"examples"},{"id":"examples/queries/simple-queries/insert","path":"/node-mysql2/docs/examples/queries/simple-queries/insert","sidebar":"examples"},{"id":"examples/queries/simple-queries/select","path":"/node-mysql2/docs/examples/queries/simple-queries/select","sidebar":"examples"},{"id":"examples/queries/simple-queries/update","path":"/node-mysql2/docs/examples/queries/simple-queries/update","sidebar":"examples"},{"id":"examples/tests/mysql-proxy","path":"/node-mysql2/docs/examples/tests/mysql-proxy","sidebar":"examples"},{"id":"examples/tests/pool","path":"/node-mysql2/docs/examples/tests/pool","sidebar":"examples"},{"id":"examples/tests/server","path":"/node-mysql2/docs/examples/tests/server","sidebar":"examples"},{"id":"examples/typescript/basic-custom-class","path":"/node-mysql2/docs/examples/typescript/basic-custom-class","sidebar":"examples"},{"id":"examples/typescript/procedure-call/index","path":"/node-mysql2/docs/examples/typescript/procedure-call/index","sidebar":"examples"},{"id":"examples/typescript/procedure-call/row-as-array","path":"/node-mysql2/docs/examples/typescript/procedure-call/row-as-array","sidebar":"examples"},{"id":"examples/typescript/row-data/index","path":"/node-mysql2/docs/examples/typescript/row-data/index","sidebar":"examples"},{"id":"examples/typescript/row-data/multi-statements","path":"/node-mysql2/docs/examples/typescript/row-data/multi-statements","sidebar":"examples"},{"id":"examples/typescript/row-data/row-as-array","path":"/node-mysql2/docs/examples/typescript/row-data/row-as-array","sidebar":"examples"},{"id":"examples/typescript/row-data/row-as-array-multi-statements","path":"/node-mysql2/docs/examples/typescript/row-data/row-as-array-multi-statements","sidebar":"examples"},{"id":"faq/how-to-handle-errors","path":"/node-mysql2/docs/faq/how-to-handle-errors","sidebar":"faq"},{"id":"faq/index","path":"/node-mysql2/docs/faq","sidebar":"faq"},{"id":"history-and-why-mysq2","path":"/node-mysql2/docs/history-and-why-mysq2","sidebar":"docs"},{"id":"index","path":"/node-mysql2/docs/","sidebar":"docs"},{"id":"stability-badges","path":"/node-mysql2/docs/stability-badges","sidebar":"docs"}],"draftIds":[],"sidebars":{"docs":{"link":{"path":"/node-mysql2/docs/","label":"index"}},"examples":{"link":{"path":"/node-mysql2/docs/examples","label":"examples/index"}},"faq":{"link":{"path":"/node-mysql2/docs/faq","label":"faq/index"}}}}],"breadcrumbs":true}}}'),s=JSON.parse('{"defaultLocale":"en","locales":["en","zh-CN","pt-BR"],"path":"i18n","currentLocale":"en","localeConfigs":{"en":{"label":"\ud83c\uddfa\ud83c\uddf8 English","direction":"ltr","htmlLang":"en","calendar":"gregory","path":"en"},"zh-CN":{"label":"\ud83c\udde8\ud83c\uddf3 \u7b80\u4f53\u4e2d\u6587","direction":"ltr","htmlLang":"zh-CN","calendar":"gregory","path":"zh-CN"},"pt-BR":{"label":"\ud83c\udde7\ud83c\uddf7 Portugu\xeas (Brasil)","direction":"ltr","htmlLang":"pt-BR","calendar":"gregory","path":"pt-BR"}}}');var i=n(7529);const l=JSON.parse('{"docusaurusVersion":"3.1.0","siteVersion":"0.0.0","pluginVersions":{"docusaurus-plugin-content-docs":{"type":"package","name":"@docusaurus/plugin-content-docs","version":"3.1.0"},"docusaurus-plugin-content-pages":{"type":"package","name":"@docusaurus/plugin-content-pages","version":"3.1.0"},"docusaurus-plugin-sitemap":{"type":"package","name":"@docusaurus/plugin-sitemap","version":"3.1.0"},"docusaurus-theme-classic":{"type":"package","name":"@docusaurus/theme-classic","version":"3.1.0"},"docusaurus-plugin-sass":{"type":"package","name":"docusaurus-plugin-sass","version":"0.2.5"},"@easyops-cn/docusaurus-search-local":{"type":"package","name":"@easyops-cn/docusaurus-search-local","version":"0.40.1"},"navbar-locale-plugin":{"type":"local"}}}');var c=n(5893);const u={siteConfig:a.default,siteMetadata:l,globalData:o,i18n:s,codeTranslations:i},d=r.createContext(u);function p(e){let{children:t}=e;return(0,c.jsx)(d.Provider,{value:u,children:t})}},4763:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(7294),a=n(412),o=n(5742),s=n(8780),i=n(8862),l=n(5893);function c(e){let{error:t,tryAgain:n}=e;return(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",minHeight:"100vh",width:"100%",maxWidth:"80ch",fontSize:"20px",margin:"0 auto",padding:"1rem"},children:[(0,l.jsx)("h1",{style:{fontSize:"3rem"},children:"This page crashed"}),(0,l.jsx)("button",{type:"button",onClick:n,style:{margin:"1rem 0",fontSize:"2rem",cursor:"pointer",borderRadius:20,padding:"1rem"},children:"Try again"}),(0,l.jsx)(u,{error:t})]})}function u(e){let{error:t}=e;const n=(0,s.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,l.jsx)("p",{style:{whiteSpace:"pre-wrap"},children:n})}function d(e){let{error:t,tryAgain:n}=e;return(0,l.jsxs)(f,{fallback:()=>(0,l.jsx)(c,{error:t,tryAgain:n}),children:[(0,l.jsx)(o.Z,{children:(0,l.jsx)("title",{children:"Page Error"})}),(0,l.jsx)(i.Z,{children:(0,l.jsx)(c,{error:t,tryAgain:n})})]})}const p=e=>(0,l.jsx)(d,{...e});class f extends r.Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){a.Z.canUseDOM&&this.setState({error:e})}render(){const{children:e}=this.props,{error:t}=this.state;if(t){const e={error:t,tryAgain:()=>this.setState({error:null})};return(this.props.fallback??p)(e)}return e??null}}},412:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r="undefined"!=typeof window&&"document"in window&&"createElement"in window.document,a={canUseDOM:r,canUseEventListeners:r&&("addEventListener"in window||"attachEvent"in window),canUseIntersectionObserver:r&&"IntersectionObserver"in window,canUseViewport:r&&"screen"in window}},5742:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(7294);var r=n(405),a=n(5893);function o(e){return(0,a.jsx)(r.ql,{...e})}},3692:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(7294),a=n(3727),o=n(8780),s=n(2263),i=n(3919),l=n(412),c=n(8138),u=n(4996),d=n(5893);function p(e,t){let{isNavLink:n,to:p,href:f,activeClassName:m,isActive:h,"data-noBrokenLinkCheck":g,autoAddBaseUrl:y=!0,...b}=e;const{siteConfig:{trailingSlash:v,baseUrl:x}}=(0,s.Z)(),{withBaseUrl:w}=(0,u.C)(),k=(0,c.Z)(),S=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(()=>S.current));const E=p||f;const _=(0,i.Z)(E),C=E?.replace("pathname://","");let T=void 0!==C?(L=C,y&&(e=>e.startsWith("/"))(L)?w(L):L):void 0;var L;T&&_&&(T=(0,o.applyTrailingSlash)(T,{trailingSlash:v,baseUrl:x}));const P=(0,r.useRef)(!1),N=n?a.OL:a.rU,A=l.Z.canUseIntersectionObserver,O=(0,r.useRef)(),j=()=>{P.current||null==T||(window.docusaurus.preload(T),P.current=!0)};(0,r.useEffect)((()=>(!A&&_&&null!=T&&window.docusaurus.prefetch(T),()=>{A&&O.current&&O.current.disconnect()})),[O,T,A,_]);const R=T?.startsWith("#")??!1,I=!T||!_||R;return I||g||k.collectLink(T),I?(0,d.jsx)("a",{ref:S,href:T,...E&&!_&&{target:"_blank",rel:"noopener noreferrer"},...b}):(0,d.jsx)(N,{...b,onMouseEnter:j,onTouchStart:j,innerRef:e=>{S.current=e,A&&e&&_&&(O.current=new window.IntersectionObserver((t=>{t.forEach((t=>{e===t.target&&(t.isIntersecting||t.intersectionRatio>0)&&(O.current.unobserve(e),O.current.disconnect(),null!=T&&window.docusaurus.prefetch(T))}))})),O.current.observe(e))},to:T,...n&&{isActive:h,activeClassName:m}})}const f=r.forwardRef(p)},5999:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,I:()=>l});var r=n(7294),a=n(5893);function o(e,t){const n=e.split(/(\{\w+\})/).map(((e,n)=>{if(n%2==1){const n=t?.[e.slice(1,-1)];if(void 0!==n)return n}return e}));return n.some((e=>(0,r.isValidElement)(e)))?n.map(((e,t)=>(0,r.isValidElement)(e)?r.cloneElement(e,{key:t}):e)).filter((e=>""!==e)):n.join("")}var s=n(7529);function i(e){let{id:t,message:n}=e;if(void 0===t&&void 0===n)throw new Error("Docusaurus translation declarations must have at least a translation id or a default translation message");return s[t??n]??n??t}function l(e,t){let{message:n,id:r}=e;return o(i({message:n,id:r}),t)}function c(e){let{children:t,id:n,values:r}=e;if(t&&"string"!=typeof t)throw console.warn("Illegal <Translate> children",t),new Error("The Docusaurus <Translate> component only accept simple string values");const s=i({message:t,id:n});return(0,a.jsx)(a.Fragment,{children:o(s,r)})}},9935:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});const r="default"},3919:(e,t,n)=>{"use strict";function r(e){return/^(?:\w*:|\/\/)/.test(e)}function a(e){return void 0!==e&&!r(e)}n.d(t,{Z:()=>a,b:()=>r})},4996:(e,t,n)=>{"use strict";n.d(t,{C:()=>s,Z:()=>i});var r=n(7294),a=n(2263),o=n(3919);function s(){const{siteConfig:{baseUrl:e,url:t}}=(0,a.Z)(),n=(0,r.useCallback)(((n,r)=>function(e,t,n,r){let{forcePrependBaseUrl:a=!1,absolute:s=!1}=void 0===r?{}:r;if(!n||n.startsWith("#")||(0,o.b)(n))return n;if(a)return t+n.replace(/^\//,"");if(n===t.replace(/\/$/,""))return t;const i=n.startsWith(t)?n:t+n.replace(/^\//,"");return s?e+i:i}(t,e,n,r)),[t,e]);return{withBaseUrl:n}}function i(e,t){void 0===t&&(t={});const{withBaseUrl:n}=s();return n(e,t)}},8138:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7294);n(5893);const a=r.createContext({collectAnchor:()=>{},collectLink:()=>{}}),o=()=>(0,r.useContext)(a);function s(){return o()}},2263:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(8940);function o(){return(0,r.useContext)(a._)}},2389:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(8934);function o(){return(0,r.useContext)(a._)}},469:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7294);const a=n(412).Z.canUseDOM?r.useLayoutEffect:r.useEffect},9670:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r=e=>"object"==typeof e&&!!e&&Object.keys(e).length>0;function a(e){const t={};return function e(n,a){Object.entries(n).forEach((n=>{let[o,s]=n;const i=a?`${a}.${o}`:o;r(s)?e(s,i):t[i]=s}))}(e),t}},226:(e,t,n)=>{"use strict";n.d(t,{_:()=>o,z:()=>s});var r=n(7294),a=n(5893);const o=r.createContext(null);function s(e){let{children:t,value:n}=e;const s=r.useContext(o),i=(0,r.useMemo)((()=>function(e){let{parent:t,value:n}=e;if(!t){if(!n)throw new Error("Unexpected: no Docusaurus route context found");if(!("plugin"in n))throw new Error("Unexpected: Docusaurus topmost route context has no `plugin` attribute");return n}const r={...t.data,...n?.data};return{plugin:t.plugin,data:r}}({parent:s,value:n})),[s,n]);return(0,a.jsx)(o.Provider,{value:i,children:t})}},143:(e,t,n)=>{"use strict";n.d(t,{Iw:()=>h,gA:()=>p,_r:()=>u,Jo:()=>g,zh:()=>d,yW:()=>m,gB:()=>f});var r=n(6550),a=n(2263),o=n(9935);function s(e,t){void 0===t&&(t={});const n=function(){const{globalData:e}=(0,a.Z)();return e}()[e];if(!n&&t.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin.`);return n}const i=e=>e.versions.find((e=>e.isLast));function l(e,t){const n=function(e,t){const n=i(e);return[...e.versions.filter((e=>e!==n)),n].find((e=>!!(0,r.LX)(t,{path:e.path,exact:!1,strict:!1})))}(e,t),a=n?.docs.find((e=>!!(0,r.LX)(t,{path:e.path,exact:!0,strict:!1})));return{activeVersion:n,activeDoc:a,alternateDocVersions:a?function(t){const n={};return e.versions.forEach((e=>{e.docs.forEach((r=>{r.id===t&&(n[e.name]=r)}))})),n}(a.id):{}}}const c={},u=()=>s("docusaurus-plugin-content-docs")??c,d=e=>function(e,t,n){void 0===t&&(t=o.m),void 0===n&&(n={});const r=s(e),a=r?.[t];if(!a&&n.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin with id "${t}".`);return a}("docusaurus-plugin-content-docs",e,{failfast:!0});function p(e){void 0===e&&(e={});const t=u(),{pathname:n}=(0,r.TH)();return function(e,t,n){void 0===n&&(n={});const a=Object.entries(e).sort(((e,t)=>t[1].path.localeCompare(e[1].path))).find((e=>{let[,n]=e;return!!(0,r.LX)(t,{path:n.path,exact:!1,strict:!1})})),o=a?{pluginId:a[0],pluginData:a[1]}:void 0;if(!o&&n.failfast)throw new Error(`Can't find active docs plugin for "${t}" pathname, while it was expected to be found. Maybe you tried to use a docs feature that can only be used on a docs-related page? Existing docs plugin paths are: ${Object.values(e).map((e=>e.path)).join(", ")}`);return o}(t,n,e)}function f(e){return d(e).versions}function m(e){const t=d(e);return i(t)}function h(e){const t=d(e),{pathname:n}=(0,r.TH)();return l(t,n)}function g(e){const t=d(e),{pathname:n}=(0,r.TH)();return function(e,t){const n=i(e);return{latestDocSuggestion:l(e,t).alternateDocVersions[n.name],latestVersionSuggestion:n}}(t,n)}},8320:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4865),a=n.n(r);a().configure({showSpinner:!1});const o={onRouteUpdate(e){let{location:t,previousLocation:n}=e;if(n&&t.pathname!==n.pathname){const e=window.setTimeout((()=>{a().start()}),200);return()=>window.clearTimeout(e)}},onRouteDidUpdate(){a().done()}}},3310:(e,t,n)=>{"use strict";n.r(t);var r=n(2573),a=n(6809);!function(e){const{themeConfig:{prism:t}}=a.default,{additionalLanguages:r}=t;globalThis.Prism=e,r.forEach((e=>{"php"===e&&n(6854),n(5897)(`./prism-${e}`)})),delete globalThis.Prism}(r.p1)},2503:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(7294);var r=n(512),a=n(5999),o=n(6668),s=n(3692),i=n(8138);const l={anchorWithStickyNavbar:"anchorWithStickyNavbar_LWe7",anchorWithHideOnScrollNavbar:"anchorWithHideOnScrollNavbar_WYt5"};var c=n(5893);function u(e){let{as:t,id:n,...u}=e;const d=(0,i.Z)(),{navbar:{hideOnScroll:p}}=(0,o.L)();if("h1"===t||!n)return(0,c.jsx)(t,{...u,id:void 0});d.collectAnchor(n);const f=(0,a.I)({id:"theme.common.headingLinkTitle",message:"Direct link to {heading}",description:"Title for link to heading"},{heading:"string"==typeof u.children?u.children:n});return(0,c.jsxs)(t,{...u,className:(0,r.Z)("anchor",p?l.anchorWithHideOnScrollNavbar:l.anchorWithStickyNavbar,u.className),id:n,children:[u.children,(0,c.jsx)(s.Z,{className:"hash-link",to:`#${n}`,"aria-label":f,title:f,children:"\u200b"})]})}},9471:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(7294);const r={iconExternalLink:"iconExternalLink_nPIU"};var a=n(5893);function o(e){let{width:t=13.5,height:n=13.5}=e;return(0,a.jsx)("svg",{width:t,height:n,"aria-hidden":"true",viewBox:"0 0 24 24",className:r.iconExternalLink,children:(0,a.jsx)("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"})})}},8862:(e,t,n)=>{"use strict";n.d(t,{Z:()=>It});var r=n(7294),a=n(512),o=n(4763),s=n(1944),i=n(6550),l=n(5999),c=n(5936),u=n(5893);const d="__docusaurus_skipToContent_fallback";function p(e){e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")}function f(){const e=(0,r.useRef)(null),{action:t}=(0,i.k6)(),n=(0,r.useCallback)((e=>{e.preventDefault();const t=document.querySelector("main:first-of-type")??document.getElementById(d);t&&p(t)}),[]);return(0,c.S)((n=>{let{location:r}=n;e.current&&!r.hash&&"PUSH"===t&&p(e.current)})),{containerRef:e,onClick:n}}const m=(0,l.I)({id:"theme.common.skipToMainContent",description:"The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",message:"Skip to main content"});function h(e){const t=e.children??m,{containerRef:n,onClick:r}=f();return(0,u.jsx)("div",{ref:n,role:"region","aria-label":m,children:(0,u.jsx)("a",{...e,href:`#${d}`,onClick:r,children:t})})}var g=n(5281),y=n(9727);const b={skipToContent:"skipToContent_fXgn"};function v(){return(0,u.jsx)(h,{className:b.skipToContent})}var x=n(6668),w=n(9689);function k(e){let{width:t=21,height:n=21,color:r="currentColor",strokeWidth:a=1.2,className:o,...s}=e;return(0,u.jsx)("svg",{viewBox:"0 0 15 15",width:t,height:n,...s,children:(0,u.jsx)("g",{stroke:r,strokeWidth:a,children:(0,u.jsx)("path",{d:"M.75.75l13.5 13.5M14.25.75L.75 14.25"})})})}const S={closeButton:"closeButton_CVFx"};function E(e){return(0,u.jsx)("button",{type:"button","aria-label":(0,l.I)({id:"theme.AnnouncementBar.closeButtonAriaLabel",message:"Close",description:"The ARIA label for close button of announcement bar"}),...e,className:(0,a.Z)("clean-btn close",S.closeButton,e.className),children:(0,u.jsx)(k,{width:14,height:14,strokeWidth:3.1})})}const _={content:"content_knG7"};function C(e){const{announcementBar:t}=(0,x.L)(),{content:n}=t;return(0,u.jsx)("div",{...e,className:(0,a.Z)(_.content,e.className),dangerouslySetInnerHTML:{__html:n}})}const T={announcementBar:"announcementBar_mb4j",announcementBarPlaceholder:"announcementBarPlaceholder_vyr4",announcementBarClose:"announcementBarClose_gvF7",announcementBarContent:"announcementBarContent_xLdY"};function L(){const{announcementBar:e}=(0,x.L)(),{isActive:t,close:n}=(0,w.nT)();if(!t)return null;const{backgroundColor:r,textColor:a,isCloseable:o}=e;return(0,u.jsxs)("div",{className:T.announcementBar,style:{backgroundColor:r,color:a},role:"banner",children:[o&&(0,u.jsx)("div",{className:T.announcementBarPlaceholder}),(0,u.jsx)(C,{className:T.announcementBarContent}),o&&(0,u.jsx)(E,{onClick:n,className:T.announcementBarClose})]})}var P=n(3163),N=n(2466);var A=n(902),O=n(3102);const j=r.createContext(null);function R(e){let{children:t}=e;const n=function(){const e=(0,P.e)(),t=(0,O.HY)(),[n,a]=(0,r.useState)(!1),o=null!==t.component,s=(0,A.D9)(o);return(0,r.useEffect)((()=>{o&&!s&&a(!0)}),[o,s]),(0,r.useEffect)((()=>{o?e.shown||a(!0):a(!1)}),[e.shown,o]),(0,r.useMemo)((()=>[n,a]),[n])}();return(0,u.jsx)(j.Provider,{value:n,children:t})}function I(e){if(e.component){const t=e.component;return(0,u.jsx)(t,{...e.props})}}function F(){const e=(0,r.useContext)(j);if(!e)throw new A.i6("NavbarSecondaryMenuDisplayProvider");const[t,n]=e,a=(0,r.useCallback)((()=>n(!1)),[n]),o=(0,O.HY)();return(0,r.useMemo)((()=>({shown:t,hide:a,content:I(o)})),[a,o,t])}function D(e){let{header:t,primaryMenu:n,secondaryMenu:r}=e;const{shown:o}=F();return(0,u.jsxs)("div",{className:"navbar-sidebar",children:[t,(0,u.jsxs)("div",{className:(0,a.Z)("navbar-sidebar__items",{"navbar-sidebar__items--show-secondary":o}),children:[(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:n}),(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:r})]})]})}var M=n(2949),q=n(2389);function B(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"})})}function z(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"})})}const $={toggle:"toggle_vylO",toggleButton:"toggleButton_gllP",darkToggleIcon:"darkToggleIcon_wfgR",lightToggleIcon:"lightToggleIcon_pyhR",toggleButtonDisabled:"toggleButtonDisabled_aARS"};function U(e){let{className:t,buttonClassName:n,value:r,onChange:o}=e;const s=(0,q.Z)(),i=(0,l.I)({message:"Switch between dark and light mode (currently {mode})",id:"theme.colorToggle.ariaLabel",description:"The ARIA label for the navbar color mode toggle"},{mode:"dark"===r?(0,l.I)({message:"dark mode",id:"theme.colorToggle.ariaLabel.mode.dark",description:"The name for the dark color mode"}):(0,l.I)({message:"light mode",id:"theme.colorToggle.ariaLabel.mode.light",description:"The name for the light color mode"})});return(0,u.jsx)("div",{className:(0,a.Z)($.toggle,t),children:(0,u.jsxs)("button",{className:(0,a.Z)("clean-btn",$.toggleButton,!s&&$.toggleButtonDisabled,n),type:"button",onClick:()=>o("dark"===r?"light":"dark"),disabled:!s,title:i,"aria-label":i,"aria-live":"polite",children:[(0,u.jsx)(B,{className:(0,a.Z)($.toggleIcon,$.lightToggleIcon)}),(0,u.jsx)(z,{className:(0,a.Z)($.toggleIcon,$.darkToggleIcon)})]})})}const H=r.memo(U),Q={darkNavbarColorModeToggle:"darkNavbarColorModeToggle_X3D1"};function Z(e){let{className:t}=e;const n=(0,x.L)().navbar.style,r=(0,x.L)().colorMode.disableSwitch,{colorMode:a,setColorMode:o}=(0,M.I)();return r?null:(0,u.jsx)(H,{className:t,buttonClassName:"dark"===n?Q.darkNavbarColorModeToggle:void 0,value:a,onChange:o})}var V=n(1327);function W(){return(0,u.jsx)(V.Z,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:"navbar__title text--truncate"})}function G(){const e=(0,P.e)();return(0,u.jsx)("button",{type:"button","aria-label":(0,l.I)({id:"theme.docs.sidebar.closeSidebarButtonAriaLabel",message:"Close navigation bar",description:"The ARIA label for close button of mobile sidebar"}),className:"clean-btn navbar-sidebar__close",onClick:()=>e.toggle(),children:(0,u.jsx)(k,{color:"var(--ifm-color-emphasis-600)"})})}function Y(){return(0,u.jsxs)("div",{className:"navbar-sidebar__brand",children:[(0,u.jsx)(W,{}),(0,u.jsx)(Z,{className:"margin-right--md"}),(0,u.jsx)(G,{})]})}var K=n(3692),X=n(4996),J=n(3919);function ee(e,t){return void 0!==e&&void 0!==t&&new RegExp(e,"gi").test(t)}var te=n(9471);function ne(e){let{activeBasePath:t,activeBaseRegex:n,to:r,href:a,label:o,html:s,isDropdownLink:i,prependBaseUrlToHref:l,...c}=e;const d=(0,X.Z)(r),p=(0,X.Z)(t),f=(0,X.Z)(a,{forcePrependBaseUrl:!0}),m=o&&a&&!(0,J.Z)(a),h=s?{dangerouslySetInnerHTML:{__html:s}}:{children:(0,u.jsxs)(u.Fragment,{children:[o,m&&(0,u.jsx)(te.Z,{...i&&{width:12,height:12}})]})};return a?(0,u.jsx)(K.Z,{href:l?f:a,...c,...h}):(0,u.jsx)(K.Z,{to:d,isNavLink:!0,...(t||n)&&{isActive:(e,t)=>n?ee(n,t.pathname):t.pathname.startsWith(p)},...c,...h})}function re(e){let{className:t,isDropdownItem:n=!1,...r}=e;const o=(0,u.jsx)(ne,{className:(0,a.Z)(n?"dropdown__link":"navbar__item navbar__link",t),isDropdownLink:n,...r});return n?(0,u.jsx)("li",{children:o}):o}function ae(e){let{className:t,isDropdownItem:n,...r}=e;return(0,u.jsx)("li",{className:"menu__list-item",children:(0,u.jsx)(ne,{className:(0,a.Z)("menu__link",t),...r})})}function oe(e){let{mobile:t=!1,position:n,...r}=e;const a=t?ae:re;return(0,u.jsx)(a,{...r,activeClassName:r.activeClassName??(t?"menu__link--active":"navbar__link--active")})}var se=n(6043),ie=n(8596),le=n(2263);const ce={dropdownNavbarItemMobile:"dropdownNavbarItemMobile_S0Fm"};function ue(e,t){return e.some((e=>function(e,t){return!!(0,ie.Mg)(e.to,t)||!!ee(e.activeBaseRegex,t)||!(!e.activeBasePath||!t.startsWith(e.activeBasePath))}(e,t)))}function de(e){let{items:t,position:n,className:o,onClick:s,...i}=e;const l=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=e=>{l.current&&!l.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("focusin",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("focusin",e)}}),[l]),(0,u.jsxs)("div",{ref:l,className:(0,a.Z)("navbar__item","dropdown","dropdown--hoverable",{"dropdown--right":"right"===n,"dropdown--show":c}),children:[(0,u.jsx)(ne,{"aria-haspopup":"true","aria-expanded":c,role:"button",href:i.to?void 0:"#",className:(0,a.Z)("navbar__link",o),...i,onClick:i.to?void 0:e=>e.preventDefault(),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),d(!c))},children:i.children??i.label}),(0,u.jsx)("ul",{className:"dropdown__menu",children:t.map(((e,t)=>(0,r.createElement)(Ve,{isDropdownItem:!0,activeClassName:"dropdown__link--active",...e,key:t})))})]})}function pe(e){let{items:t,className:n,position:o,onClick:s,...l}=e;const c=function(){const{siteConfig:{baseUrl:e}}=(0,le.Z)(),{pathname:t}=(0,i.TH)();return t.replace(e,"/")}(),d=ue(t,c),{collapsed:p,toggleCollapsed:f,setCollapsed:m}=(0,se.u)({initialState:()=>!d});return(0,r.useEffect)((()=>{d&&m(!d)}),[c,d,m]),(0,u.jsxs)("li",{className:(0,a.Z)("menu__list-item",{"menu__list-item--collapsed":p}),children:[(0,u.jsx)(ne,{role:"button",className:(0,a.Z)(ce.dropdownNavbarItemMobile,"menu__link menu__link--sublist menu__link--sublist-caret",n),...l,onClick:e=>{e.preventDefault(),f()},children:l.children??l.label}),(0,u.jsx)(se.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:p,children:t.map(((e,t)=>(0,r.createElement)(Ve,{mobile:!0,isDropdownItem:!0,onClick:s,activeClassName:"menu__link--active",...e,key:t})))})]})}function fe(e){let{mobile:t=!1,...n}=e;const r=t?pe:de;return(0,u.jsx)(r,{...n})}var me=n(4711);function he(e){let{width:t=20,height:n=20,...r}=e;return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:t,height:n,"aria-hidden":!0,...r,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"})})}const ge="iconLanguage_nlXk";var ye=n(8087),be=n(1728),ve=n(373),xe=n(143),we=n(22),ke=n(8202),Se=n(3926),Ee=n(1073),_e=n(2539),Ce=n(726);const Te='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M17 6v12c0 .52-.2 1-1 1H4c-.7 0-1-.33-1-1V2c0-.55.42-1 1-1h8l5 5zM14 8h-3.13c-.51 0-.87-.34-.87-.87V4" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linejoin="round"></path></svg>',Le='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M13 13h4-4V8H7v5h6v4-4H7V8H3h4V3v5h6V3v5h4-4v5zm-6 0v4-4H3h4z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path></svg>',Pe='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M17 5H3h14zm0 5H3h14zm0 5H3h14z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linejoin="round"></path></svg>',Ne='<svg width="20" height="20" viewBox="0 0 20 20"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M18 3v4c0 2-2 4-4 4H2"></path><path d="M8 17l-6-6 6-6"></path></g></svg>',Ae='<svg width="40" height="40" viewBox="0 0 20 20" fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 4.8c2 3 1.7 7-1 9.7h0l4.3 4.3-4.3-4.3a7.8 7.8 0 01-9.8 1m-2.2-2.2A7.8 7.8 0 0113.2 2.4M2 18L18 2"></path></svg>',Oe='<svg viewBox="0 0 24 54"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6v42M20 27H8.3"></path></g></svg>',je='<svg viewBox="0 0 24 54"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6v21M20 27H8.3"></path></g></svg>',Re={searchBar:"searchBar_RVTs",dropdownMenu:"dropdownMenu_qbY6",searchBarLeft:"searchBarLeft_MXDe",suggestion:"suggestion_fB_2",cursor:"cursor_eG29",hitTree:"hitTree_kk6K",hitIcon:"hitIcon_a7Zy",hitPath:"hitPath_ieM4",noResultsIcon:"noResultsIcon_EBY5",hitFooter:"hitFooter_E9YW",hitWrapper:"hitWrapper_sAK8",hitTitle:"hitTitle_vyVt",hitAction:"hitAction_NqkB",hideAction:"hideAction_vcyE",noResults:"noResults_l6Q3",searchBarContainer:"searchBarContainer_NW3z",searchBarLoadingRing:"searchBarLoadingRing_YnHq",searchClearButton:"searchClearButton_qk4g",searchIndexLoading:"searchIndexLoading_EJ1f",searchHintContainer:"searchHintContainer_Pkmr",searchHint:"searchHint_iIMx",focused:"focused_OWtg",input:"input_FOTf",hint:"hint_URu1",suggestions:"suggestions_X8XU",dataset:"dataset_QiCy",empty:"empty_eITn"};function Ie(e){let{document:t,type:n,page:r,metadata:a,tokens:o,isInterOfTree:s,isLastOfTree:i}=e;const l=0===n,c=1===n,u=[];s?u.push(Oe):i&&u.push(je);const d=u.map((e=>`<span class="${Re.hitTree}">${e}</span>`)),p=`<span class="${Re.hitIcon}">${l?Te:c?Le:Pe}</span>`,f=[`<span class="${Re.hitTitle}">${(0,Ce.o)(t.t,(0,Ee.m)(a,"t"),o)}</span>`];if(!s&&!i&&ye.H6){const e=r?(r.b??[]).concat(r.t).concat(t.s&&t.s!==r.t?t.s:[]):t.b;f.push(`<span class="${Re.hitPath}">${(0,Se.e)(e??[])}</span>`)}else l||f.push(`<span class="${Re.hitPath}">${(0,_e.C)(r.t||(t.u.startsWith("/docs/api-reference/")?"API Reference":""),o)}</span>`);const m=`<span class="${Re.hitAction}">${Ne}</span>`;return[...d,p,`<span class="${Re.hitWrapper}">`,...f,"</span>",m].join("")}function Fe(){return`<span class="${Re.noResults}"><span class="${Re.noResultsIcon}">${Ae}</span><span>${(0,l.I)({id:"theme.SearchBar.noResultsText",message:"No results"})}</span></span>`}var De=n(311),Me=n(51);async function qe(){const e=await Promise.all([n.e(8443),n.e(5525)]).then(n.t.bind(n,8443,23)),t=e.default;return t.noConflict?t.noConflict():e.noConflict&&e.noConflict(),t}const Be="_highlight";const ze=function(e){let{handleSearchBarToggle:t}=e;const n=(0,q.Z)(),{siteConfig:{baseUrl:a},i18n:{currentLocale:o}}=(0,le.Z)(),s=(0,xe.gA)();let c=a;try{const{preferredVersion:e}=(0,ve.J)(s?.pluginId??ye.gQ);e&&!e.isLast&&(c=e.path+"/")}catch(D){if(ye.l9&&!(D instanceof A.i6))throw D}const d=(0,i.k6)(),p=(0,i.TH)(),f=(0,r.useRef)(null),m=(0,r.useRef)(new Map),h=(0,r.useRef)(!1),[g,y]=(0,r.useState)(!1),[b,v]=(0,r.useState)(!1),[x,w]=(0,r.useState)(""),k=(0,r.useRef)(null),S=(0,r.useRef)(""),[E,_]=(0,r.useState)("");(0,r.useEffect)((()=>{if(!Array.isArray(ye.Kc))return;let e="";if(p.pathname.startsWith(c)){const t=p.pathname.substring(c.length);let n;for(const e of ye.Kc){const r="string"==typeof e?e:e.path;if(t===r||t.startsWith(`${r}/`)){n=r;break}}n&&(e=n)}S.current!==e&&(m.current.delete(e),S.current=e),_(e)}),[p.pathname,c]);const C=!!ye.hG&&Array.isArray(ye.Kc)&&""===E,T=(0,r.useCallback)((async()=>{if(C||m.current.get(E))return;m.current.set(E,"loading"),k.current?.autocomplete.destroy(),y(!0);const[{wrappedIndexes:e,zhDictionary:t},n]=await Promise.all([(0,we.w)(c,E),qe()]);if(k.current=n(f.current,{hint:!1,autoselect:!0,openOnFocus:!0,cssClasses:{root:(0,be.Z)(Re.searchBar,{[Re.searchBarLeft]:"left"===ye.pu}),noPrefix:!0,dropdownMenu:Re.dropdownMenu,input:Re.input,hint:Re.hint,suggestions:Re.suggestions,suggestion:Re.suggestion,cursor:Re.cursor,dataset:Re.dataset,empty:Re.empty}},[{source:(0,ke.v)(e,t,ye.qo),templates:{suggestion:Ie,empty:Fe,footer:e=>{let{query:t,isEmpty:n}=e;if(n&&(!E||!ye.pQ))return;const r=(e=>{let{query:t,isEmpty:n}=e;const r=document.createElement("a"),s=new URLSearchParams;let i;if(s.set("q",t),E){const e=E&&Array.isArray(ye.Kc)?ye.Kc.find((e=>"string"==typeof e?e===E:e.path===E)):E,t=e?(0,Me._)(e,o).label:E;i=ye.pQ&&n?(0,l.I)({id:"theme.SearchBar.seeAllOutsideContext",message:"See results outside {context}"},{context:t}):(0,l.I)({id:"theme.SearchBar.searchInContext",message:"See all results in {context}"},{context:t})}else i=(0,l.I)({id:"theme.SearchBar.seeAll",message:"See all results"});if(!E||!Array.isArray(ye.Kc)||ye.pQ&&n||s.set("ctx",E),c!==a){if(!c.startsWith(a))throw new Error(`Version url '${c}' does not start with base url '${a}', this is a bug of \`@easyops-cn/docusaurus-search-local\`, please report it.`);s.set("version",c.substring(a.length))}const u=`${a}search?${s.toString()}`;return r.href=u,r.textContent=i,r.addEventListener("click",(e=>{e.ctrlKey||e.metaKey||(e.preventDefault(),k.current?.autocomplete.close(),d.push(u))})),r})({query:t,isEmpty:n}),s=document.createElement("div");return s.className=Re.hitFooter,s.appendChild(r),s}}}]).on("autocomplete:selected",(function(e,t){let{document:{u:n,h:r},tokens:a}=t;f.current?.blur();let o=n;if(ye.vc&&a.length>0){const e=new URLSearchParams;for(const t of a)e.append(Be,t);o+=`?${e.toString()}`}r&&(o+=r),d.push(o)})).on("autocomplete:closed",(()=>{f.current?.blur()})),m.current.set(E,"done"),y(!1),h.current){const e=f.current;e.value&&k.current?.autocomplete.open(),e.focus()}}),[C,E,c,a,d]);(0,r.useEffect)((()=>{if(!ye.vc)return;const e=n?new URLSearchParams(p.search).getAll(Be):[];setTimeout((()=>{const t=document.querySelector("article");if(!t)return;const n=new ye.vc(t);n.unmark(),0!==e.length&&n.mark(e),w(e.join(" ")),k.current?.autocomplete.setVal(e.join(" "))}))}),[n,p.search,p.pathname]);const[L,P]=(0,r.useState)(!1),N=(0,r.useCallback)((()=>{h.current=!0,T(),P(!0),t?.(!0)}),[t,T]),O=(0,r.useCallback)((()=>{P(!1),t?.(!1)}),[t]),j=(0,r.useCallback)((()=>{T()}),[T]),R=(0,r.useCallback)((e=>{w(e.target.value),e.target.value&&v(!0)}),[]),I=!!n&&/mac/i.test(navigator.userAgentData?.platform??navigator.platform);(0,r.useEffect)((()=>{if(!ye.AY)return;const e=e=>{!(I?e.metaKey:e.ctrlKey)||"k"!==e.key&&"K"!==e.key||(e.preventDefault(),f.current?.focus(),N())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[I,N]);const F=(0,r.useCallback)((()=>{const e=new URLSearchParams(p.search);e.delete(Be);const t=e.toString(),n=p.pathname+(""!=t?`?${t}`:"")+p.hash;n!=p.pathname+p.search+p.hash&&d.push(n),w(""),k.current?.autocomplete.setVal("")}),[p.pathname,p.search,p.hash,d]);return(0,u.jsxs)("div",{className:(0,be.Z)("navbar__search",Re.searchBarContainer,{[Re.searchIndexLoading]:g&&b,[Re.focused]:L}),hidden:C,children:[(0,u.jsx)("input",{placeholder:(0,l.I)({id:"theme.SearchBar.label",message:"Search",description:"The ARIA label and placeholder for search button"}),"aria-label":"Search",className:"navbar__search-input",onMouseEnter:j,onFocus:N,onBlur:O,onChange:R,ref:f,value:x}),(0,u.jsx)(De.Z,{className:Re.searchBarLoadingRing}),ye.AY&&ye.t_&&(""!==x?(0,u.jsx)("button",{className:Re.searchClearButton,onClick:F,children:"\u2715"}):n&&(0,u.jsxs)("div",{className:Re.searchHintContainer,children:[(0,u.jsx)("kbd",{className:Re.searchHint,children:I?"\u2318":"ctrl"}),(0,u.jsx)("kbd",{className:Re.searchHint,children:"K"})]}))]})},$e={navbarSearchContainer:"navbarSearchContainer_Bca1"};function Ue(e){let{children:t,className:n}=e;return(0,u.jsx)("div",{className:(0,a.Z)(n,$e.navbarSearchContainer),children:t})}var He=n(3438);const Qe=e=>e.docs.find((t=>t.id===e.mainDocId));const Ze={default:oe,localeDropdown:function(e){let{mobile:t,dropdownItemsBefore:n,dropdownItemsAfter:r,queryString:a="",...o}=e;const{i18n:{currentLocale:s,locales:c,localeConfigs:d}}=(0,le.Z)(),p=(0,me.l)(),{search:f,hash:m}=(0,i.TH)(),h=[...n,...c.map((e=>{const n=`${`pathname://${p.createUrl({locale:e,fullyQualified:!1})}`}${f}${m}${a}`;return{label:d[e].label,lang:d[e].htmlLang,to:n,target:"_self",autoAddBaseUrl:!1,className:e===s?t?"menu__link--active":"dropdown__link--active":""}})),...r],g=t?(0,l.I)({message:"Languages",id:"theme.navbar.mobileLanguageDropdown.label",description:"The label for the mobile language switcher dropdown"}):d[s].label;return(0,u.jsx)(fe,{...o,mobile:t,label:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(he,{className:ge}),g]}),items:h})},search:function(e){let{mobile:t,className:n}=e;return t?null:(0,u.jsx)(Ue,{className:n,children:(0,u.jsx)(ze,{})})},dropdown:fe,html:function(e){let{value:t,className:n,mobile:r=!1,isDropdownItem:o=!1}=e;const s=o?"li":"div";return(0,u.jsx)(s,{className:(0,a.Z)({navbar__item:!r&&!o,"menu__list-item":r},n),dangerouslySetInnerHTML:{__html:t}})},doc:function(e){let{docId:t,label:n,docsPluginId:r,...a}=e;const{activeDoc:o}=(0,xe.Iw)(r),s=(0,He.vY)(t,r),i=o?.path===s?.path;return null===s||s.unlisted&&!i?null:(0,u.jsx)(oe,{exact:!0,...a,isActive:()=>i||!!o?.sidebar&&o.sidebar===s.sidebar,label:n??s.id,to:s.path})},docSidebar:function(e){let{sidebarId:t,label:n,docsPluginId:r,...a}=e;const{activeDoc:o}=(0,xe.Iw)(r),s=(0,He.oz)(t,r).link;if(!s)throw new Error(`DocSidebarNavbarItem: Sidebar with ID "${t}" doesn't have anything to be linked to.`);return(0,u.jsx)(oe,{exact:!0,...a,isActive:()=>o?.sidebar===t,label:n??s.label,to:s.path})},docsVersion:function(e){let{label:t,to:n,docsPluginId:r,...a}=e;const o=(0,He.lO)(r)[0],s=t??o.label,i=n??(e=>e.docs.find((t=>t.id===e.mainDocId)))(o).path;return(0,u.jsx)(oe,{...a,label:s,to:i})},docsVersionDropdown:function(e){let{mobile:t,docsPluginId:n,dropdownActiveClassDisabled:r,dropdownItemsBefore:a,dropdownItemsAfter:o,...s}=e;const{search:c,hash:d}=(0,i.TH)(),p=(0,xe.Iw)(n),f=(0,xe.gB)(n),{savePreferredVersionName:m}=(0,ve.J)(n),h=[...a,...f.map((e=>{const t=p.alternateDocVersions[e.name]??Qe(e);return{label:e.label,to:`${t.path}${c}${d}`,isActive:()=>e===p.activeVersion,onClick:()=>m(e.name)}})),...o],g=(0,He.lO)(n)[0],y=t&&h.length>1?(0,l.I)({id:"theme.navbar.mobileVersionsDropdown.label",message:"Versions",description:"The label for the navbar versions dropdown on mobile view"}):g.label,b=t&&h.length>1?void 0:Qe(g).path;return h.length<=1?(0,u.jsx)(oe,{...s,mobile:t,label:y,to:b,isActive:r?()=>!1:void 0}):(0,u.jsx)(fe,{...s,mobile:t,label:y,to:b,items:h,isActive:r?()=>!1:void 0})}};function Ve(e){let{type:t,...n}=e;const r=function(e,t){return e&&"default"!==e?e:"items"in t?"dropdown":"default"}(t,n),a=Ze[r];if(!a)throw new Error(`No NavbarItem component found for type "${t}".`);return(0,u.jsx)(a,{...n})}function We(){const e=(0,P.e)(),t=(0,x.L)().navbar.items;return(0,u.jsx)("ul",{className:"menu__list",children:t.map(((t,n)=>(0,r.createElement)(Ve,{mobile:!0,...t,onClick:()=>e.toggle(),key:n})))})}function Ge(e){return(0,u.jsx)("button",{...e,type:"button",className:"clean-btn navbar-sidebar__back",children:(0,u.jsx)(l.Z,{id:"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel",description:"The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)",children:"\u2190 Back to main menu"})})}function Ye(){const e=0===(0,x.L)().navbar.items.length,t=F();return(0,u.jsxs)(u.Fragment,{children:[!e&&(0,u.jsx)(Ge,{onClick:()=>t.hide()}),t.content]})}function Ke(){const e=(0,P.e)();var t;return void 0===(t=e.shown)&&(t=!0),(0,r.useEffect)((()=>(document.body.style.overflow=t?"hidden":"visible",()=>{document.body.style.overflow="visible"})),[t]),e.shouldRender?(0,u.jsx)(D,{header:(0,u.jsx)(Y,{}),primaryMenu:(0,u.jsx)(We,{}),secondaryMenu:(0,u.jsx)(Ye,{})}):null}const Xe={navbarHideable:"navbarHideable_m1mJ",navbarHidden:"navbarHidden_jGov"};function Je(e){return(0,u.jsx)("div",{role:"presentation",...e,className:(0,a.Z)("navbar-sidebar__backdrop",e.className)})}function et(e){let{children:t}=e;const{navbar:{hideOnScroll:n,style:o}}=(0,x.L)(),s=(0,P.e)(),{navbarRef:i,isNavbarVisible:d}=function(e){const[t,n]=(0,r.useState)(e),a=(0,r.useRef)(!1),o=(0,r.useRef)(0),s=(0,r.useCallback)((e=>{null!==e&&(o.current=e.getBoundingClientRect().height)}),[]);return(0,N.RF)(((t,r)=>{let{scrollY:s}=t;if(!e)return;if(s<o.current)return void n(!0);if(a.current)return void(a.current=!1);const i=r?.scrollY,l=document.documentElement.scrollHeight-o.current,c=window.innerHeight;i&&s>=i?n(!1):s+c<l&&n(!0)})),(0,c.S)((t=>{if(!e)return;const r=t.location.hash;if(r?document.getElementById(r.substring(1)):void 0)return a.current=!0,void n(!1);n(!0)})),{navbarRef:s,isNavbarVisible:t}}(n);return(0,u.jsxs)("nav",{ref:i,"aria-label":(0,l.I)({id:"theme.NavBar.navAriaLabel",message:"Main",description:"The ARIA label for the main navigation"}),className:(0,a.Z)("navbar","navbar--fixed-top",n&&[Xe.navbarHideable,!d&&Xe.navbarHidden],{"navbar--dark":"dark"===o,"navbar--primary":"primary"===o,"navbar-sidebar--show":s.shown}),children:[t,(0,u.jsx)(Je,{onClick:s.toggle}),(0,u.jsx)(Ke,{})]})}var tt=n(8780);const nt={errorBoundaryError:"errorBoundaryError_a6uf",errorBoundaryFallback:"errorBoundaryFallback_VBag"};function rt(e){return(0,u.jsx)("button",{type:"button",...e,children:(0,u.jsx)(l.Z,{id:"theme.ErrorPageContent.tryAgain",description:"The label of the button to try again rendering when the React error boundary captures an error",children:"Try again"})})}function at(e){let{error:t}=e;const n=(0,tt.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,u.jsx)("p",{className:nt.errorBoundaryError,children:n})}class ot extends r.Component{componentDidCatch(e,t){throw this.props.onError(e,t)}render(){return this.props.children}}const st="right";function it(e){let{width:t=30,height:n=30,className:r,...a}=e;return(0,u.jsx)("svg",{className:r,width:t,height:n,viewBox:"0 0 30 30","aria-hidden":"true",...a,children:(0,u.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"})})}function lt(){const{toggle:e,shown:t}=(0,P.e)();return(0,u.jsx)("button",{onClick:e,"aria-label":(0,l.I)({id:"theme.docs.sidebar.toggleSidebarButtonAriaLabel",message:"Toggle navigation bar",description:"The ARIA label for hamburger menu button of mobile navigation"}),"aria-expanded":t,className:"navbar__toggle clean-btn",type:"button",children:(0,u.jsx)(it,{})})}const ct={colorModeToggle:"colorModeToggle_DEke"};function ut(e){let{items:t}=e;return(0,u.jsx)(u.Fragment,{children:t.map(((e,t)=>(0,u.jsx)(ot,{onError:t=>new Error(`A theme navbar item failed to render.\nPlease double-check the following navbar item (themeConfig.navbar.items) of your Docusaurus config:\n${JSON.stringify(e,null,2)}`,{cause:t}),children:(0,u.jsx)(Ve,{...e})},t)))})}function dt(e){let{left:t,right:n}=e;return(0,u.jsxs)("div",{className:"navbar__inner",children:[(0,u.jsx)("div",{className:"navbar__items",children:t}),(0,u.jsx)("div",{className:"navbar__items navbar__items--right",children:n})]})}function pt(){const e=(0,P.e)(),t=(0,x.L)().navbar.items,[n,r]=function(e){function t(e){return"left"===(e.position??st)}return[e.filter(t),e.filter((e=>!t(e)))]}(t),a=t.find((e=>"search"===e.type));return(0,u.jsx)(dt,{left:(0,u.jsxs)(u.Fragment,{children:[!e.disabled&&(0,u.jsx)(lt,{}),(0,u.jsx)(W,{}),(0,u.jsx)(ut,{items:n})]}),right:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ut,{items:r}),(0,u.jsx)(Z,{className:ct.colorModeToggle}),!a&&(0,u.jsx)(Ue,{children:(0,u.jsx)(ze,{})})]})})}function ft(){return(0,u.jsx)(et,{children:(0,u.jsx)(pt,{})})}function mt(e){let{item:t}=e;const{to:n,href:r,label:a,prependBaseUrlToHref:o,...s}=t,i=(0,X.Z)(n),l=(0,X.Z)(r,{forcePrependBaseUrl:!0});return(0,u.jsxs)(K.Z,{className:"footer__link-item",...r?{href:o?l:r}:{to:i},...s,children:[a,r&&!(0,J.Z)(r)&&(0,u.jsx)(te.Z,{})]})}function ht(e){let{item:t}=e;return t.html?(0,u.jsx)("li",{className:"footer__item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)("li",{className:"footer__item",children:(0,u.jsx)(mt,{item:t})},t.href??t.to)}function gt(e){let{column:t}=e;return(0,u.jsxs)("div",{className:"col footer__col",children:[(0,u.jsx)("div",{className:"footer__title",children:t.title}),(0,u.jsx)("ul",{className:"footer__items clean-list",children:t.items.map(((e,t)=>(0,u.jsx)(ht,{item:e},t)))})]})}function yt(e){let{columns:t}=e;return(0,u.jsx)("div",{className:"row footer__links",children:t.map(((e,t)=>(0,u.jsx)(gt,{column:e},t)))})}function bt(){return(0,u.jsx)("span",{className:"footer__link-separator",children:"\xb7"})}function vt(e){let{item:t}=e;return t.html?(0,u.jsx)("span",{className:"footer__link-item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)(mt,{item:t})}function xt(e){let{links:t}=e;return(0,u.jsx)("div",{className:"footer__links text--center",children:(0,u.jsx)("div",{className:"footer__links",children:t.map(((e,n)=>(0,u.jsxs)(r.Fragment,{children:[(0,u.jsx)(vt,{item:e}),t.length!==n+1&&(0,u.jsx)(bt,{})]},n)))})})}function wt(e){let{links:t}=e;return function(e){return"title"in e[0]}(t)?(0,u.jsx)(yt,{columns:t}):(0,u.jsx)(xt,{links:t})}var kt=n(9965);const St={footerLogoLink:"footerLogoLink_BH7S"};function Et(e){let{logo:t}=e;const{withBaseUrl:n}=(0,X.C)(),r={light:n(t.src),dark:n(t.srcDark??t.src)};return(0,u.jsx)(kt.Z,{className:(0,a.Z)("footer__logo",t.className),alt:t.alt,sources:r,width:t.width,height:t.height,style:t.style})}function _t(e){let{logo:t}=e;return t.href?(0,u.jsx)(K.Z,{href:t.href,className:St.footerLogoLink,target:t.target,children:(0,u.jsx)(Et,{logo:t})}):(0,u.jsx)(Et,{logo:t})}function Ct(e){let{copyright:t}=e;return(0,u.jsx)("div",{className:"footer__copyright",dangerouslySetInnerHTML:{__html:t}})}function Tt(e){let{style:t,links:n,logo:r,copyright:o}=e;return(0,u.jsx)("footer",{className:(0,a.Z)("footer",{"footer--dark":"dark"===t}),children:(0,u.jsxs)("div",{className:"container container-fluid",children:[n,(r||o)&&(0,u.jsxs)("div",{className:"footer__bottom text--center",children:[r&&(0,u.jsx)("div",{className:"margin-bottom--sm",children:r}),o]})]})})}function Lt(){const{footer:e}=(0,x.L)();if(!e)return null;const{copyright:t,links:n,logo:r,style:a}=e;return(0,u.jsx)(Tt,{style:a,links:n&&n.length>0&&(0,u.jsx)(wt,{links:n}),logo:r&&(0,u.jsx)(_t,{logo:r}),copyright:t&&(0,u.jsx)(Ct,{copyright:t})})}const Pt=r.memo(Lt),Nt=(0,A.Qc)([M.S,w.pl,N.OC,ve.L5,s.VC,function(e){let{children:t}=e;return(0,u.jsx)(O.n2,{children:(0,u.jsx)(P.M,{children:(0,u.jsx)(R,{children:t})})})}]);function At(e){let{children:t}=e;return(0,u.jsx)(Nt,{children:t})}var Ot=n(2503);function jt(e){let{error:t,tryAgain:n}=e;return(0,u.jsx)("main",{className:"container margin-vert--xl",children:(0,u.jsx)("div",{className:"row",children:(0,u.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,u.jsx)(Ot.Z,{as:"h1",className:"hero__title",children:(0,u.jsx)(l.Z,{id:"theme.ErrorPageContent.title",description:"The title of the fallback page when the page crashed",children:"This page crashed."})}),(0,u.jsx)("div",{className:"margin-vert--lg",children:(0,u.jsx)(rt,{onClick:n,className:"button button--primary shadow--lw"})}),(0,u.jsx)("hr",{}),(0,u.jsx)("div",{className:"margin-vert--md",children:(0,u.jsx)(at,{error:t})})]})})})}const Rt={mainWrapper:"mainWrapper_z2l0"};function It(e){const{children:t,noFooter:n,wrapperClassName:r,title:i,description:l}=e;return(0,y.t)(),(0,u.jsxs)(At,{children:[(0,u.jsx)(s.d,{title:i,description:l}),(0,u.jsx)(v,{}),(0,u.jsx)(L,{}),(0,u.jsx)(ft,{}),(0,u.jsx)("div",{id:d,className:(0,a.Z)(g.k.wrapper.main,Rt.mainWrapper,r),children:(0,u.jsx)(o.Z,{fallback:e=>(0,u.jsx)(jt,{...e}),children:t})}),!n&&(0,u.jsx)(Pt,{})]})}},1327:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(7294);var r=n(3692),a=n(4996),o=n(2263),s=n(6668),i=n(9965),l=n(5893);function c(e){let{logo:t,alt:n,imageClassName:r}=e;const o={light:(0,a.Z)(t.src),dark:(0,a.Z)(t.srcDark||t.src)},s=(0,l.jsx)(i.Z,{className:t.className,sources:o,height:t.height,width:t.width,alt:n,style:t.style});return r?(0,l.jsx)("div",{className:r,children:s}):s}function u(e){const{siteConfig:{title:t}}=(0,o.Z)(),{navbar:{title:n,logo:i}}=(0,s.L)(),{imageClassName:u,titleClassName:d,...p}=e,f=(0,a.Z)(i?.href||"/"),m=n?"":t,h=i?.alt??m;return(0,l.jsxs)(r.Z,{to:f,...p,...i?.target&&{target:i.target},children:[i&&(0,l.jsx)(c,{logo:i,alt:h,imageClassName:u}),null!=n&&(0,l.jsx)("b",{className:d,children:n})]})}},197:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(7294);var r=n(5742),a=n(5893);function o(e){let{locale:t,version:n,tag:o}=e;const s=t;return(0,a.jsxs)(r.Z,{children:[t&&(0,a.jsx)("meta",{name:"docusaurus_locale",content:t}),n&&(0,a.jsx)("meta",{name:"docusaurus_version",content:n}),o&&(0,a.jsx)("meta",{name:"docusaurus_tag",content:o}),s&&(0,a.jsx)("meta",{name:"docsearch:language",content:s}),n&&(0,a.jsx)("meta",{name:"docsearch:version",content:n}),o&&(0,a.jsx)("meta",{name:"docsearch:docusaurus_tag",content:o})]})}},9965:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(7294),a=n(512),o=n(2389),s=n(2949);const i={themedComponent:"themedComponent_mlkZ","themedComponent--light":"themedComponent--light_NVdE","themedComponent--dark":"themedComponent--dark_xIcU"};var l=n(5893);function c(e){let{className:t,children:n}=e;const c=(0,o.Z)(),{colorMode:u}=(0,s.I)();return(0,l.jsx)(l.Fragment,{children:(c?"dark"===u?["dark"]:["light"]:["light","dark"]).map((e=>{const o=n({theme:e,className:(0,a.Z)(t,i.themedComponent,i[`themedComponent--${e}`])});return(0,l.jsx)(r.Fragment,{children:o},e)}))})}function u(e){const{sources:t,className:n,alt:r,...a}=e;return(0,l.jsx)(c,{className:n,children:e=>{let{theme:n,className:o}=e;return(0,l.jsx)("img",{src:t[n],alt:r,className:o,...a})}})}},6043:(e,t,n)=>{"use strict";n.d(t,{u:()=>c,z:()=>y});var r=n(7294),a=n(412),o=n(469),s=n(1442),i=n(5893);const l="ease-in-out";function c(e){let{initialState:t}=e;const[n,a]=(0,r.useState)(t??!1),o=(0,r.useCallback)((()=>{a((e=>!e))}),[]);return{collapsed:n,setCollapsed:a,toggleCollapsed:o}}const u={display:"none",overflow:"hidden",height:"0px"},d={display:"block",overflow:"visible",height:"auto"};function p(e,t){const n=t?u:d;e.style.display=n.display,e.style.overflow=n.overflow,e.style.height=n.height}function f(e){let{collapsibleRef:t,collapsed:n,animation:a}=e;const o=(0,r.useRef)(!1);(0,r.useEffect)((()=>{const e=t.current;function r(){const t=e.scrollHeight,n=a?.duration??function(e){if((0,s.n)())return 1;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}(t);return{transition:`height ${n}ms ${a?.easing??l}`,height:`${t}px`}}function i(){const t=r();e.style.transition=t.transition,e.style.height=t.height}if(!o.current)return p(e,n),void(o.current=!0);return e.style.willChange="height",function(){const t=requestAnimationFrame((()=>{n?(i(),requestAnimationFrame((()=>{e.style.height=u.height,e.style.overflow=u.overflow}))):(e.style.display="block",requestAnimationFrame((()=>{i()})))}));return()=>cancelAnimationFrame(t)}()}),[t,n,a])}function m(e){if(!a.Z.canUseDOM)return e?u:d}function h(e){let{as:t="div",collapsed:n,children:a,animation:o,onCollapseTransitionEnd:s,className:l,disableSSRStyle:c}=e;const u=(0,r.useRef)(null);return f({collapsibleRef:u,collapsed:n,animation:o}),(0,i.jsx)(t,{ref:u,style:c?void 0:m(n),onTransitionEnd:e=>{"height"===e.propertyName&&(p(u.current,n),s?.(n))},className:l,children:a})}function g(e){let{collapsed:t,...n}=e;const[a,s]=(0,r.useState)(!t),[l,c]=(0,r.useState)(t);return(0,o.Z)((()=>{t||s(!0)}),[t]),(0,o.Z)((()=>{a&&c(t)}),[a,t]),a?(0,i.jsx)(h,{...n,collapsed:l}):null}function y(e){let{lazy:t,...n}=e;const r=t?g:h;return(0,i.jsx)(r,{...n})}},9689:(e,t,n)=>{"use strict";n.d(t,{nT:()=>h,pl:()=>m});var r=n(7294),a=n(2389),o=n(12),s=n(902),i=n(6668),l=n(5893);const c=(0,o.WA)("docusaurus.announcement.dismiss"),u=(0,o.WA)("docusaurus.announcement.id"),d=()=>"true"===c.get(),p=e=>c.set(String(e)),f=r.createContext(null);function m(e){let{children:t}=e;const n=function(){const{announcementBar:e}=(0,i.L)(),t=(0,a.Z)(),[n,o]=(0,r.useState)((()=>!!t&&d()));(0,r.useEffect)((()=>{o(d())}),[]);const s=(0,r.useCallback)((()=>{p(!0),o(!0)}),[]);return(0,r.useEffect)((()=>{if(!e)return;const{id:t}=e;let n=u.get();"annoucement-bar"===n&&(n="announcement-bar");const r=t!==n;u.set(t),r&&p(!1),!r&&d()||o(!1)}),[e]),(0,r.useMemo)((()=>({isActive:!!e&&!n,close:s})),[e,n,s])}();return(0,l.jsx)(f.Provider,{value:n,children:t})}function h(){const e=(0,r.useContext)(f);if(!e)throw new s.i6("AnnouncementBarProvider");return e}},2949:(e,t,n)=>{"use strict";n.d(t,{I:()=>y,S:()=>g});var r=n(7294),a=n(412),o=n(902),s=n(12),i=n(6668),l=n(5893);const c=r.createContext(void 0),u="theme",d=(0,s.WA)(u),p={light:"light",dark:"dark"},f=e=>e===p.dark?p.dark:p.light,m=e=>a.Z.canUseDOM?f(document.documentElement.getAttribute("data-theme")):f(e),h=e=>{d.set(f(e))};function g(e){let{children:t}=e;const n=function(){const{colorMode:{defaultMode:e,disableSwitch:t,respectPrefersColorScheme:n}}=(0,i.L)(),[a,o]=(0,r.useState)(m(e));(0,r.useEffect)((()=>{t&&d.del()}),[t]);const s=(0,r.useCallback)((function(t,r){void 0===r&&(r={});const{persist:a=!0}=r;t?(o(t),a&&h(t)):(o(n?window.matchMedia("(prefers-color-scheme: dark)").matches?p.dark:p.light:e),d.del())}),[n,e]);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-theme",f(a))}),[a]),(0,r.useEffect)((()=>{if(t)return;const e=e=>{if(e.key!==u)return;const t=d.get();null!==t&&s(f(t))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[t,s]);const l=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{if(t&&!n)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>{window.matchMedia("print").matches||l.current?l.current=window.matchMedia("print").matches:s(null)};return e.addListener(r),()=>e.removeListener(r)}),[s,t,n]),(0,r.useMemo)((()=>({colorMode:a,setColorMode:s,get isDarkTheme(){return a===p.dark},setLightTheme(){s(p.light)},setDarkTheme(){s(p.dark)}})),[a,s])}();return(0,l.jsx)(c.Provider,{value:n,children:t})}function y(){const e=(0,r.useContext)(c);if(null==e)throw new o.i6("ColorModeProvider","Please see https://docusaurus.io/docs/api/themes/configuration#use-color-mode.");return e}},373:(e,t,n)=>{"use strict";n.d(t,{J:()=>v,L5:()=>y});var r=n(7294),a=n(143),o=n(9935),s=n(6668),i=n(3438),l=n(902),c=n(12),u=n(5893);const d=e=>`docs-preferred-version-${e}`,p={save:(e,t,n)=>{(0,c.WA)(d(e),{persistence:t}).set(n)},read:(e,t)=>(0,c.WA)(d(e),{persistence:t}).get(),clear:(e,t)=>{(0,c.WA)(d(e),{persistence:t}).del()}},f=e=>Object.fromEntries(e.map((e=>[e,{preferredVersionName:null}])));const m=r.createContext(null);function h(){const e=(0,a._r)(),t=(0,s.L)().docs.versionPersistence,n=(0,r.useMemo)((()=>Object.keys(e)),[e]),[o,i]=(0,r.useState)((()=>f(n)));(0,r.useEffect)((()=>{i(function(e){let{pluginIds:t,versionPersistence:n,allDocsData:r}=e;function a(e){const t=p.read(e,n);return r[e].versions.some((e=>e.name===t))?{preferredVersionName:t}:(p.clear(e,n),{preferredVersionName:null})}return Object.fromEntries(t.map((e=>[e,a(e)])))}({allDocsData:e,versionPersistence:t,pluginIds:n}))}),[e,t,n]);return[o,(0,r.useMemo)((()=>({savePreferredVersion:function(e,n){p.save(e,t,n),i((t=>({...t,[e]:{preferredVersionName:n}})))}})),[t])]}function g(e){let{children:t}=e;const n=h();return(0,u.jsx)(m.Provider,{value:n,children:t})}function y(e){let{children:t}=e;return i.cE?(0,u.jsx)(g,{children:t}):(0,u.jsx)(u.Fragment,{children:t})}function b(){const e=(0,r.useContext)(m);if(!e)throw new l.i6("DocsPreferredVersionContextProvider");return e}function v(e){void 0===e&&(e=o.m);const t=(0,a.zh)(e),[n,s]=b(),{preferredVersionName:i}=n[e];return{preferredVersion:t.versions.find((e=>e.name===i))??null,savePreferredVersionName:(0,r.useCallback)((t=>{s.savePreferredVersion(e,t)}),[s,e])}}},1116:(e,t,n)=>{"use strict";n.d(t,{V:()=>c,b:()=>l});var r=n(7294),a=n(902),o=n(5893);const s=Symbol("EmptyContext"),i=r.createContext(s);function l(e){let{children:t,name:n,items:a}=e;const s=(0,r.useMemo)((()=>n&&a?{name:n,items:a}:null),[n,a]);return(0,o.jsx)(i.Provider,{value:s,children:t})}function c(){const e=(0,r.useContext)(i);if(e===s)throw new a.i6("DocsSidebarProvider");return e}},4477:(e,t,n)=>{"use strict";n.d(t,{E:()=>l,q:()=>i});var r=n(7294),a=n(902),o=n(5893);const s=r.createContext(null);function i(e){let{children:t,version:n}=e;return(0,o.jsx)(s.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(s);if(null===e)throw new a.i6("DocsVersionProvider");return e}},3163:(e,t,n)=>{"use strict";n.d(t,{M:()=>p,e:()=>f});var r=n(7294),a=n(3102),o=n(7524),s=n(1980),i=n(6668),l=n(902),c=n(5893);const u=r.createContext(void 0);function d(){const e=function(){const e=(0,a.HY)(),{items:t}=(0,i.L)().navbar;return 0===t.length&&!e.component}(),t=(0,o.i)(),n=!e&&"mobile"===t,[l,c]=(0,r.useState)(!1);(0,s.Rb)((()=>{if(l)return c(!1),!1}));const u=(0,r.useCallback)((()=>{c((e=>!e))}),[]);return(0,r.useEffect)((()=>{"desktop"===t&&c(!1)}),[t]),(0,r.useMemo)((()=>({disabled:e,shouldRender:n,toggle:u,shown:l})),[e,n,u,l])}function p(e){let{children:t}=e;const n=d();return(0,c.jsx)(u.Provider,{value:n,children:t})}function f(){const e=r.useContext(u);if(void 0===e)throw new l.i6("NavbarMobileSidebarProvider");return e}},3102:(e,t,n)=>{"use strict";n.d(t,{HY:()=>l,Zo:()=>c,n2:()=>i});var r=n(7294),a=n(902),o=n(5893);const s=r.createContext(null);function i(e){let{children:t}=e;const n=(0,r.useState)({component:null,props:null});return(0,o.jsx)(s.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(s);if(!e)throw new a.i6("NavbarSecondaryMenuContentProvider");return e[0]}function c(e){let{component:t,props:n}=e;const o=(0,r.useContext)(s);if(!o)throw new a.i6("NavbarSecondaryMenuContentProvider");const[,i]=o,l=(0,a.Ql)(n);return(0,r.useEffect)((()=>{i({component:t,props:l})}),[i,t,l]),(0,r.useEffect)((()=>()=>i({component:null,props:null})),[i]),null}},9727:(e,t,n)=>{"use strict";n.d(t,{h:()=>a,t:()=>o});var r=n(7294);const a="navigation-with-keyboard";function o(){(0,r.useEffect)((()=>{function e(e){"keydown"===e.type&&"Tab"===e.key&&document.body.classList.add(a),"mousedown"===e.type&&document.body.classList.remove(a)}return document.addEventListener("keydown",e),document.addEventListener("mousedown",e),()=>{document.body.classList.remove(a),document.removeEventListener("keydown",e),document.removeEventListener("mousedown",e)}}),[])}},7524:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(7294),a=n(412);const o={desktop:"desktop",mobile:"mobile",ssr:"ssr"},s=996;function i(e){let{desktopBreakpoint:t=s}=void 0===e?{}:e;const[n,i]=(0,r.useState)((()=>"ssr"));return(0,r.useEffect)((()=>{function e(){i(function(e){if(!a.Z.canUseDOM)throw new Error("getWindowSize() should only be called after React hydration");return window.innerWidth>e?o.desktop:o.mobile}(t))}return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[t]),n}},5281:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});const r={page:{blogListPage:"blog-list-page",blogPostPage:"blog-post-page",blogTagsListPage:"blog-tags-list-page",blogTagPostListPage:"blog-tags-post-list-page",docsDocPage:"docs-doc-page",docsTagsListPage:"docs-tags-list-page",docsTagDocListPage:"docs-tags-doc-list-page",mdxPage:"mdx-page"},wrapper:{main:"main-wrapper",blogPages:"blog-wrapper",docsPages:"docs-wrapper",mdxPages:"mdx-wrapper"},common:{editThisPage:"theme-edit-this-page",lastUpdated:"theme-last-updated",backToTopButton:"theme-back-to-top-button",codeBlock:"theme-code-block",admonition:"theme-admonition",unlistedBanner:"theme-unlisted-banner",admonitionType:e=>`theme-admonition-${e}`},layout:{},docs:{docVersionBanner:"theme-doc-version-banner",docVersionBadge:"theme-doc-version-badge",docBreadcrumbs:"theme-doc-breadcrumbs",docMarkdown:"theme-doc-markdown",docTocMobile:"theme-doc-toc-mobile",docTocDesktop:"theme-doc-toc-desktop",docFooter:"theme-doc-footer",docFooterTagsRow:"theme-doc-footer-tags-row",docFooterEditMetaRow:"theme-doc-footer-edit-meta-row",docSidebarContainer:"theme-doc-sidebar-container",docSidebarMenu:"theme-doc-sidebar-menu",docSidebarItemCategory:"theme-doc-sidebar-item-category",docSidebarItemLink:"theme-doc-sidebar-item-link",docSidebarItemCategoryLevel:e=>`theme-doc-sidebar-item-category-level-${e}`,docSidebarItemLinkLevel:e=>`theme-doc-sidebar-item-link-level-${e}`},blog:{}}},1442:(e,t,n)=>{"use strict";function r(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}n.d(t,{n:()=>r})},3438:(e,t,n)=>{"use strict";n.d(t,{LM:()=>f,SN:()=>E,_F:()=>g,cE:()=>p,f:()=>b,lO:()=>w,oz:()=>k,s1:()=>x,vY:()=>S});var r=n(7294),a=n(6550),o=n(8790),s=n(143),i=n(373),l=n(4477),c=n(1116),u=n(7392),d=n(8596);const p=!!s._r;function f(e){return"link"!==e.type||e.unlisted?"category"===e.type?function(e){if(e.href&&!e.linkUnlisted)return e.href;for(const t of e.items){const e=f(t);if(e)return e}}(e):void 0:e.href}const m=(e,t)=>void 0!==e&&(0,d.Mg)(e,t),h=(e,t)=>e.some((e=>g(e,t)));function g(e,t){return"link"===e.type?m(e.href,t):"category"===e.type&&(m(e.href,t)||h(e.items,t))}function y(e,t){switch(e.type){case"category":return g(e,t)||e.items.some((e=>y(e,t)));case"link":return!e.unlisted||g(e,t);default:return!0}}function b(e,t){return(0,r.useMemo)((()=>e.filter((e=>y(e,t)))),[e,t])}function v(e){let{sidebarItems:t,pathname:n,onlyCategories:r=!1}=e;const a=[];return function e(t){for(const o of t)if("category"===o.type&&((0,d.Mg)(o.href,n)||e(o.items))||"link"===o.type&&(0,d.Mg)(o.href,n)){return r&&"category"!==o.type||a.unshift(o),!0}return!1}(t),a}function x(){const e=(0,c.V)(),{pathname:t}=(0,a.TH)(),n=(0,s.gA)()?.pluginData.breadcrumbs;return!1!==n&&e?v({sidebarItems:e.items,pathname:t}):null}function w(e){const{activeVersion:t}=(0,s.Iw)(e),{preferredVersion:n}=(0,i.J)(e),a=(0,s.yW)(e);return(0,r.useMemo)((()=>(0,u.j)([t,n,a].filter(Boolean))),[t,n,a])}function k(e,t){const n=w(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.sidebars?Object.entries(e.sidebars):[])),r=t.find((t=>t[0]===e));if(!r)throw new Error(`Can't find any sidebar with id "${e}" in version${n.length>1?"s":""} ${n.map((e=>e.name)).join(", ")}".\nAvailable sidebar ids are:\n- ${t.map((e=>e[0])).join("\n- ")}`);return r[1]}),[e,n])}function S(e,t){const n=w(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.docs)),r=t.find((t=>t.id===e));if(!r){if(n.flatMap((e=>e.draftIds)).includes(e))return null;throw new Error(`Couldn't find any doc with id "${e}" in version${n.length>1?"s":""} "${n.map((e=>e.name)).join(", ")}".\nAvailable doc ids are:\n- ${(0,u.j)(t.map((e=>e.id))).join("\n- ")}`)}return r}),[e,n])}function E(e){let{route:t}=e;const n=(0,a.TH)(),r=(0,l.E)(),s=t.routes,i=s.find((e=>(0,a.LX)(n.pathname,e)));if(!i)return null;const c=i.sidebar,u=c?r.docsSidebars[c]:void 0;return{docElement:(0,o.H)(s),sidebarName:c,sidebarItems:u}}},1980:(e,t,n)=>{"use strict";n.d(t,{Rb:()=>s,_X:()=>i});var r=n(7294),a=n(6550),o=n(902);function s(e){!function(e){const t=(0,a.k6)(),n=(0,o.zX)(e);(0,r.useEffect)((()=>t.block(((e,t)=>n(e,t)))),[t,n])}(((t,n)=>{if("POP"===n)return e(t,n)}))}function i(e){return function(e){const t=(0,a.k6)();return(0,r.useSyncExternalStore)(t.listen,(()=>e(t)),(()=>e(t)))}((t=>null===e?null:new URLSearchParams(t.location.search).get(e)))}},7392:(e,t,n)=>{"use strict";function r(e,t){return void 0===t&&(t=(e,t)=>e===t),e.filter(((n,r)=>e.findIndex((e=>t(e,n)))!==r))}function a(e){return Array.from(new Set(e))}n.d(t,{j:()=>a,l:()=>r})},1944:(e,t,n)=>{"use strict";n.d(t,{FG:()=>f,d:()=>d,VC:()=>m});var r=n(7294),a=n(512),o=n(5742),s=n(226);function i(){const e=r.useContext(s._);if(!e)throw new Error("Unexpected: no Docusaurus route context found");return e}var l=n(4996),c=n(2263);var u=n(5893);function d(e){let{title:t,description:n,keywords:r,image:a,children:s}=e;const i=function(e){const{siteConfig:t}=(0,c.Z)(),{title:n,titleDelimiter:r}=t;return e?.trim().length?`${e.trim()} ${r} ${n}`:n}(t),{withBaseUrl:d}=(0,l.C)(),p=a?d(a,{absolute:!0}):void 0;return(0,u.jsxs)(o.Z,{children:[t&&(0,u.jsx)("title",{children:i}),t&&(0,u.jsx)("meta",{property:"og:title",content:i}),n&&(0,u.jsx)("meta",{name:"description",content:n}),n&&(0,u.jsx)("meta",{property:"og:description",content:n}),r&&(0,u.jsx)("meta",{name:"keywords",content:Array.isArray(r)?r.join(","):r}),p&&(0,u.jsx)("meta",{property:"og:image",content:p}),p&&(0,u.jsx)("meta",{name:"twitter:image",content:p}),s]})}const p=r.createContext(void 0);function f(e){let{className:t,children:n}=e;const s=r.useContext(p),i=(0,a.Z)(s,t);return(0,u.jsxs)(p.Provider,{value:i,children:[(0,u.jsx)(o.Z,{children:(0,u.jsx)("html",{className:i})}),n]})}function m(e){let{children:t}=e;const n=i(),r=`plugin-${n.plugin.name.replace(/docusaurus-(?:plugin|theme)-(?:content-)?/gi,"")}`;const o=`plugin-id-${n.plugin.id}`;return(0,u.jsx)(f,{className:(0,a.Z)(r,o),children:t})}},902:(e,t,n)=>{"use strict";n.d(t,{D9:()=>i,Qc:()=>u,Ql:()=>c,i6:()=>l,zX:()=>s});var r=n(7294),a=n(469),o=n(5893);function s(e){const t=(0,r.useRef)(e);return(0,a.Z)((()=>{t.current=e}),[e]),(0,r.useCallback)((function(){return t.current(...arguments)}),[])}function i(e){const t=(0,r.useRef)();return(0,a.Z)((()=>{t.current=e})),t.current}class l extends Error{constructor(e,t){super(),this.name="ReactContextError",this.message=`Hook ${this.stack?.split("\n")[1]?.match(/at (?:\w+\.)?(?<name>\w+)/)?.groups.name??""} is called outside the <${e}>. ${t??""}`}}function c(e){const t=Object.entries(e);return t.sort(((e,t)=>e[0].localeCompare(t[0]))),(0,r.useMemo)((()=>e),t.flat())}function u(e){return t=>{let{children:n}=t;return(0,o.jsx)(o.Fragment,{children:e.reduceRight(((e,t)=>(0,o.jsx)(t,{children:e})),n)})}}},8596:(e,t,n)=>{"use strict";n.d(t,{Mg:()=>s,Ns:()=>i});var r=n(7294),a=n(723),o=n(2263);function s(e,t){const n=e=>(!e||e.endsWith("/")?e:`${e}/`)?.toLowerCase();return n(e)===n(t)}function i(){const{baseUrl:e}=(0,o.Z)().siteConfig;return(0,r.useMemo)((()=>function(e){let{baseUrl:t,routes:n}=e;function r(e){return e.path===t&&!0===e.exact}function a(e){return e.path===t&&!e.exact}return function e(t){if(0===t.length)return;return t.find(r)||e(t.filter(a).flatMap((e=>e.routes??[])))}(n)}({routes:a.Z,baseUrl:e})),[e])}},2466:(e,t,n)=>{"use strict";n.d(t,{Ct:()=>h,OC:()=>u,RF:()=>f,o5:()=>m});var r=n(7294),a=n(412),o=n(2389),s=n(469),i=n(902),l=n(5893);const c=r.createContext(void 0);function u(e){let{children:t}=e;const n=function(){const e=(0,r.useRef)(!0);return(0,r.useMemo)((()=>({scrollEventsEnabledRef:e,enableScrollEvents:()=>{e.current=!0},disableScrollEvents:()=>{e.current=!1}})),[])}();return(0,l.jsx)(c.Provider,{value:n,children:t})}function d(){const e=(0,r.useContext)(c);if(null==e)throw new i.i6("ScrollControllerProvider");return e}const p=()=>a.Z.canUseDOM?{scrollX:window.pageXOffset,scrollY:window.pageYOffset}:null;function f(e,t){void 0===t&&(t=[]);const{scrollEventsEnabledRef:n}=d(),a=(0,r.useRef)(p()),o=(0,i.zX)(e);(0,r.useEffect)((()=>{const e=()=>{if(!n.current)return;const e=p();o(e,a.current),a.current=e},t={passive:!0};return e(),window.addEventListener("scroll",e,t),()=>window.removeEventListener("scroll",e,t)}),[o,n,...t])}function m(){const e=d(),t=function(){const e=(0,r.useRef)({elem:null,top:0}),t=(0,r.useCallback)((t=>{e.current={elem:t,top:t.getBoundingClientRect().top}}),[]),n=(0,r.useCallback)((()=>{const{current:{elem:t,top:n}}=e;if(!t)return{restored:!1};const r=t.getBoundingClientRect().top-n;return r&&window.scrollBy({left:0,top:r}),e.current={elem:null,top:0},{restored:0!==r}}),[]);return(0,r.useMemo)((()=>({save:t,restore:n})),[n,t])}(),n=(0,r.useRef)(void 0),a=(0,r.useCallback)((r=>{t.save(r),e.disableScrollEvents(),n.current=()=>{const{restored:r}=t.restore();if(n.current=void 0,r){const t=()=>{e.enableScrollEvents(),window.removeEventListener("scroll",t)};window.addEventListener("scroll",t)}else e.enableScrollEvents()}}),[e,t]);return(0,s.Z)((()=>{queueMicrotask((()=>n.current?.()))})),{blockElementScrollPositionUntilNextRender:a}}function h(){const e=(0,r.useRef)(null),t=(0,o.Z)()&&"smooth"===getComputedStyle(document.documentElement).scrollBehavior;return{startScroll:n=>{e.current=t?function(e){return window.scrollTo({top:e,behavior:"smooth"}),()=>{}}(n):function(e){let t=null;const n=document.documentElement.scrollTop>e;return function r(){const a=document.documentElement.scrollTop;(n&&a>e||!n&&a<e)&&(t=requestAnimationFrame(r),window.scrollTo(0,Math.floor(.85*(a-e))+e))}(),()=>t&&cancelAnimationFrame(t)}(n)},cancelScroll:()=>e.current?.()}}},3320:(e,t,n)=>{"use strict";n.d(t,{HX:()=>r,os:()=>a});n(2263);const r="default";function a(e,t){return`docs-${e}-${t}`}},12:(e,t,n)=>{"use strict";n.d(t,{Nk:()=>u,WA:()=>c});var r=n(7294);const a="localStorage";function o(e){let{key:t,oldValue:n,newValue:r,storage:a}=e;if(n===r)return;const o=document.createEvent("StorageEvent");o.initStorageEvent("storage",!1,!1,t,n,r,window.location.href,a),window.dispatchEvent(o)}function s(e){if(void 0===e&&(e=a),"undefined"==typeof window)throw new Error("Browser storage is not available on Node.js/Docusaurus SSR process.");if("none"===e)return null;try{return window[e]}catch(n){return t=n,i||(console.warn("Docusaurus browser storage is not available.\nPossible reasons: running Docusaurus in an iframe, in an incognito browser session, or using too strict browser privacy settings.",t),i=!0),null}var t}let i=!1;const l={get:()=>null,set:()=>{},del:()=>{},listen:()=>()=>{}};function c(e,t){if("undefined"==typeof window)return function(e){function t(){throw new Error(`Illegal storage API usage for storage key "${e}".\nDocusaurus storage APIs are not supposed to be called on the server-rendering process.\nPlease only call storage APIs in effects and event handlers.`)}return{get:t,set:t,del:t,listen:t}}(e);const n=s(t?.persistence);return null===n?l:{get:()=>{try{return n.getItem(e)}catch(t){return console.error(`Docusaurus storage error, can't get key=${e}`,t),null}},set:t=>{try{const r=n.getItem(e);n.setItem(e,t),o({key:e,oldValue:r,newValue:t,storage:n})}catch(r){console.error(`Docusaurus storage error, can't set ${e}=${t}`,r)}},del:()=>{try{const t=n.getItem(e);n.removeItem(e),o({key:e,oldValue:t,newValue:null,storage:n})}catch(t){console.error(`Docusaurus storage error, can't delete key=${e}`,t)}},listen:t=>{try{const r=r=>{r.storageArea===n&&r.key===e&&t(r)};return window.addEventListener("storage",r),()=>window.removeEventListener("storage",r)}catch(r){return console.error(`Docusaurus storage error, can't listen for changes of key=${e}`,r),()=>{}}}}}function u(e,t){const n=(0,r.useRef)((()=>null===e?l:c(e,t))).current(),a=(0,r.useCallback)((e=>"undefined"==typeof window?()=>{}:n.listen(e)),[n]);return[(0,r.useSyncExternalStore)(a,(()=>"undefined"==typeof window?null:n.get()),(()=>null)),n]}},4711:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});var r=n(2263),a=n(6550),o=n(8780);function s(){const{siteConfig:{baseUrl:e,url:t,trailingSlash:n},i18n:{defaultLocale:s,currentLocale:i}}=(0,r.Z)(),{pathname:l}=(0,a.TH)(),c=(0,o.applyTrailingSlash)(l,{trailingSlash:n,baseUrl:e}),u=i===s?e:e.replace(`/${i}/`,"/"),d=c.replace(e,"");return{createUrl:function(e){let{locale:n,fullyQualified:r}=e;return`${r?t:""}${function(e){return e===s?`${u}`:`${u}${e}/`}(n)}${d}`}}}},5936:(e,t,n)=>{"use strict";n.d(t,{S:()=>s});var r=n(7294),a=n(6550),o=n(902);function s(e){const t=(0,a.TH)(),n=(0,o.D9)(t),s=(0,o.zX)(e);(0,r.useEffect)((()=>{n&&t!==n&&s({location:t,previousLocation:n})}),[s,t,n])}},6668:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(2263);function a(){return(0,r.Z)().siteConfig.themeConfig}},8802:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const{trailingSlash:n,baseUrl:r}=t;if(e.startsWith("#"))return e;if(void 0===n)return e;const[a]=e.split(/[#?]/),o="/"===a||a===r?a:(s=a,n?function(e){return e.endsWith("/")?e:`${e}/`}(s):function(e){return e.endsWith("/")?e.slice(0,-1):e}(s));var s;return e.replace(a,o)}},4143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=void 0,t.getErrorCausalChain=function e(t){return t.cause?[t,...e(t.cause)]:[t]}},8780:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=t.applyTrailingSlash=t.blogPostContainerID=void 0,t.blogPostContainerID="__blog-post-container";var a=n(8802);Object.defineProperty(t,"applyTrailingSlash",{enumerable:!0,get:function(){return r(a).default}});var o=n(4143);Object.defineProperty(t,"getErrorCausalChain",{enumerable:!0,get:function(){return o.getErrorCausalChain}})},311:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});n(7294);var r=n(1728);const a={loadingRing:"loadingRing_RJI3","loading-ring":"loading-ring_FB5o"};var o=n(5893);function s(e){let{className:t}=e;return(0,o.jsxs)("div",{className:(0,r.Z)(a.loadingRing,t),children:[(0,o.jsx)("div",{}),(0,o.jsx)("div",{}),(0,o.jsx)("div",{}),(0,o.jsx)("div",{})]})}},22:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(1336),a=n.n(r),o=n(8087);const s=new Map;function i(e,t){const n=`${e}${t}`;let r=s.get(n);return r||(r=async function(e,t){{const n=`${e}${o.J.replace("{dir}",t?`-${t.replace(/\//g,"-")}`:"")}`;if(new URL(n,location.origin).origin!==location.origin)throw new Error("Unexpected version url");const r=await(await fetch(n)).json(),s=r.map(((e,t)=>{let{documents:n,index:r}=e;return{type:t,documents:n,index:a().Index.load(r)}})),i=r.reduce(((e,t)=>{for(const n of t.index.invertedIndex)/\p{Unified_Ideograph}/u.test(n[0][0])&&e.add(n[0]);return e}),new Set);return{wrappedIndexes:s,zhDictionary:Array.from(i)}}return{wrappedIndexes:[],zhDictionary:[]}}(e,t),s.set(n,r)),r}},8202:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var r=n(1336),a=n.n(r);var o=n(8087);function s(e){return i(e).concat(i(e.filter((e=>{const t=e[e.length-1];return!t.trailing&&t.maybeTyping})),!0))}function i(e,t){return e.map((e=>({tokens:e.map((e=>e.value)),term:e.map((e=>({value:e.value,presence:a().Query.presence.REQUIRED,wildcard:(t?e.trailing||e.maybeTyping:e.trailing)?a().Query.wildcard.TRAILING:a().Query.wildcard.NONE})))})))}function l(e,t,n){return function(r,i){const l=function(e,t){if(1===t.length&&["ja","jp","th"].includes(t[0]))return a()[t[0]].tokenizer(e).map((e=>e.toString()));let n=/[^-\s]+/g;return t.includes("zh")&&(n=/\w+|\p{Unified_Ideograph}+/gu),e.toLowerCase().match(n)||[]}(r,o.dK);if(0===l.length)return void i([]);const c=function(e,t){const n=function(e,t){const n=[];return function e(r,a){if(0===r.length)return void n.push(a);const o=r[0];if(/\p{Unified_Ideograph}/u.test(o)){const n=function(e,t){const n=[];return function e(r,a){let o=0,s=!1;for(const i of t)if(r.substr(0,i.length)===i){const t={missed:a.missed,term:a.term.concat({value:i})};r.length>i.length?e(r.substr(i.length),t):n.push(t),s=!0}else for(let t=i.length-1;t>o;t-=1){const l=i.substr(0,t);if(r.substr(0,t)===l){o=t;const i={missed:a.missed,term:a.term.concat({value:l,trailing:!0})};r.length>t?e(r.substr(t),i):n.push(i),s=!0;break}}s||(r.length>0?e(r.substr(1),{missed:a.missed+1,term:a.term}):a.term.length>0&&n.push(a))}(e,{missed:0,term:[]}),n.sort(((e,t)=>{const n=e.missed>0?1:0,r=t.missed>0?1:0;return n!==r?n-r:e.term.length-t.term.length})).map((e=>e.term))}(o,t);for(const t of n){const n=a.concat(...t);e(r.slice(1),n)}}else{const t=a.concat({value:o});e(r.slice(1),t)}}(e,[]),n}(e,t);if(0===n.length)return[{tokens:e,term:e.map((e=>({value:e,presence:a().Query.presence.REQUIRED,wildcard:a().Query.wildcard.LEADING|a().Query.wildcard.TRAILING})))}];for(const a of n)a[a.length-1].maybeTyping=!0;const r=[];for(const s of o.dK)if("en"===s)o._k||r.unshift(a().stopWordFilter);else{const e=a()[s];e.stopWordFilter&&r.unshift(e.stopWordFilter)}let i;if(r.length>0){const e=e=>r.reduce(((e,t)=>e.filter((e=>t(e.value)))),e);i=[];const t=[];for(const r of n){const n=e(r);i.push(n),n.length<r.length&&n.length>0&&t.push(n)}n.push(...t)}else i=n.slice();const l=[];for(const a of i)if(a.length>2)for(let e=a.length-1;e>=0;e-=1)l.push(a.slice(0,e).concat(a.slice(e+1)));return s(n).concat(s(l))}(l,t),u=[];e:for(const{term:t,tokens:a}of c)for(const{documents:r,index:o,type:s}of e)if(u.push(...o.query((e=>{for(const n of t)e.term(n.value,{wildcard:n.wildcard,presence:n.presence})})).slice(0,n).filter((e=>!u.some((t=>t.document.i.toString()===e.ref)))).slice(0,n-u.length).map((t=>{const n=r.find((e=>e.i.toString()===t.ref));return{document:n,type:s,page:0!==s&&e[0].documents.find((e=>e.i===n.p)),metadata:t.matchData.metadata,tokens:a,score:t.score}}))),u.length>=n)break e;!function(e){e.forEach(((e,t)=>{e.index=t})),e.sort(((t,n)=>{let r=t.type>0&&t.page?e.findIndex((e=>e.document===t.page)):t.index,a=n.type>0&&n.page?e.findIndex((e=>e.document===n.page)):n.index;return-1===r&&(r=t.index),-1===a&&(a=n.index),r===a?0===t.type?-1:0===n.type?1:t.index-n.index:r-a}))}(u),function(e){e.forEach(((t,n)=>{n>0&&t.page&&e.some((e=>e.document===t.page))&&(n<e.length-1&&e[n+1].page===t.page?t.isInterOfTree=!0:t.isLastOfTree=!0)}))}(u),i(u)}}},3926:(e,t,n)=>{"use strict";function r(e){return e.join(" \u203a ")}n.d(t,{e:()=>r})},1690:(e,t,n)=>{"use strict";function r(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}n.d(t,{X:()=>r})},1073:(e,t,n)=>{"use strict";function r(e,t){const n=[];for(const r of Object.values(e))r[t]&&n.push(...r[t].position);return n.sort(((e,t)=>e[0]-t[0]||t[1]-e[1]))}n.d(t,{m:()=>r})},2539:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var r=n(1690);function a(e,t,n){const o=[];for(const s of t){const n=e.toLowerCase().indexOf(s);if(n>=0){n>0&&o.push(a(e.substr(0,n),t)),o.push(`<mark>${(0,r.X)(e.substr(n,s.length))}</mark>`);const i=n+s.length;i<e.length&&o.push(a(e.substr(i),t));break}}return 0===o.length?n?`<mark>${(0,r.X)(e)}</mark>`:(0,r.X)(e):o.join("")}},726:(e,t,n)=>{"use strict";n.d(t,{o:()=>l});var r=n(1690),a=n(2539);const o=/\w+|\p{Unified_Ideograph}/u;function s(e){const t=[];let n=0,r=e;for(;r.length>0;){const a=r.match(o);if(!a){t.push(r);break}a.index>0&&t.push(r.substring(0,a.index)),t.push(a[0]),n+=a.index+a[0].length,r=e.substring(n)}return t}var i=n(8087);function l(e,t,n,o){void 0===o&&(o=i.Hk);const{chunkIndex:l,chunks:c}=function(e,t,n){const o=[];let i=0,l=0,c=-1;for(;i<t.length;){const[u,d]=t[i];if(i+=1,!(u<l)){if(u>l){const t=s(e.substring(l,u)).map((e=>({html:(0,r.X)(e),textLength:e.length})));for(const e of t)o.push(e)}-1===c&&(c=o.length),l=u+d,o.push({html:(0,a.C)(e.substring(u,l),n,!0),textLength:d})}}if(l<e.length){const t=s(e.substring(l)).map((e=>({html:(0,r.X)(e),textLength:e.length})));for(const e of t)o.push(e)}return{chunkIndex:c,chunks:o}}(e,t,n),u=c.slice(0,l),d=c[l],p=[d.html],f=c.slice(l+1);let m=d.textLength,h=0,g=0,y=!1,b=!1;for(;m<o;)if((h<=g||0===f.length)&&u.length>0){const e=u.pop();m+e.textLength<=o?(p.unshift(e.html),h+=e.textLength,m+=e.textLength):(y=!0,u.length=0)}else{if(!(f.length>0))break;{const e=f.shift();m+e.textLength<=o?(p.push(e.html),g+=e.textLength,m+=e.textLength):(b=!0,f.length=0)}}return(y||u.length>0)&&p.unshift("\u2026"),(b||f.length>0)&&p.push("\u2026"),p.join("")}},51:(e,t,n)=>{"use strict";function r(e,t){if("string"==typeof e)return{label:e,path:e};{const{label:n,path:r}=e;return"string"==typeof n?{label:n,path:r}:Object.prototype.hasOwnProperty.call(n,t)?{label:n[t],path:r}:{label:r,path:r}}}n.d(t,{_:()=>r})},8087:(e,t,n)=>{"use strict";n.d(t,{vc:()=>o,gQ:()=>f,H6:()=>c,hG:()=>g,l9:()=>m,dK:()=>r,_k:()=>a,pu:()=>p,AY:()=>u,t_:()=>d,Kc:()=>h,J:()=>s,Hk:()=>l,qo:()=>i,pQ:()=>y});n(1336);const r=["en"],a=!1,o=null,s="search-index{dir}.json",i=8,l=50,c=!1,u=!0,d=!0,p="right",f=void 0,m=!0,h=null,g=!1,y=!1},2358:(e,t,n)=>{"use strict";n.d(t,{lX:()=>S,q_:()=>P,ob:()=>h,PP:()=>A,Ep:()=>m,Hp:()=>g});var r=n(7462);function a(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,a=e.length;r<a;n+=1,r+=1)e[n]=e[r];e.pop()}const s=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],s=t&&t.split("/")||[],i=e&&a(e),l=t&&a(t),c=i||l;if(e&&a(e)?s=r:r.length&&(s.pop(),s=s.concat(r)),!s.length)return"/";if(s.length){var u=s[s.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,p=s.length;p>=0;p--){var f=s[p];"."===f?o(s,p):".."===f?(o(s,p),d++):d&&(o(s,p),d--)}if(!c)for(;d--;d)s.unshift("..");!c||""===s[0]||s[0]&&a(s[0])||s.unshift("");var m=s.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m};function i(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=i(t),a=i(n);return r!==t||a!==n?e(r,a):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var c=n(8776);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function m(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a}function h(e,t,n,a){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return n&&(o.key=n),a?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=s(o.pathname,a.pathname)):o.pathname=a.pathname:o.pathname||(o.pathname="/"),o}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function y(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,a){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,a):a(!0):a(!1!==o)}else a(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var b=!("undefined"==typeof window||!window.document||!window.document.createElement);function v(e,t){t(window.confirm(e))}var x="popstate",w="hashchange";function k(){try{return window.history.state||{}}catch(e){return{}}}function S(e){void 0===e&&(e={}),b||(0,c.Z)(!1);var t,n=window.history,a=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),s=e,i=s.forceRefresh,l=void 0!==i&&i,d=s.getUserConfirmation,g=void 0===d?v:d,S=s.keyLength,E=void 0===S?6:S,_=e.basename?f(u(e.basename)):"";function C(e){var t=e||{},n=t.key,r=t.state,a=window.location,o=a.pathname+a.search+a.hash;return _&&(o=p(o,_)),h(o,r,n)}function T(){return Math.random().toString(36).substr(2,E)}var L=y();function P(e){(0,r.Z)(z,e),z.length=n.length,L.notifyListeners(z.location,z.action)}function N(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||j(C(e.state))}function A(){j(C(k()))}var O=!1;function j(e){if(O)O=!1,P();else{L.confirmTransitionTo(e,"POP",g,(function(t){t?P({action:"POP",location:e}):function(e){var t=z.location,n=I.indexOf(t.key);-1===n&&(n=0);var r=I.indexOf(e.key);-1===r&&(r=0);var a=n-r;a&&(O=!0,D(a))}(e)}))}}var R=C(k()),I=[R.key];function F(e){return _+m(e)}function D(e){n.go(e)}var M=0;function q(e){1===(M+=e)&&1===e?(window.addEventListener(x,N),o&&window.addEventListener(w,A)):0===M&&(window.removeEventListener(x,N),o&&window.removeEventListener(w,A))}var B=!1;var z={length:n.length,action:"POP",location:R,createHref:F,push:function(e,t){var r="PUSH",o=h(e,t,T(),z.location);L.confirmTransitionTo(o,r,g,(function(e){if(e){var t=F(o),s=o.key,i=o.state;if(a)if(n.pushState({key:s,state:i},null,t),l)window.location.href=t;else{var c=I.indexOf(z.location.key),u=I.slice(0,c+1);u.push(o.key),I=u,P({action:r,location:o})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",o=h(e,t,T(),z.location);L.confirmTransitionTo(o,r,g,(function(e){if(e){var t=F(o),s=o.key,i=o.state;if(a)if(n.replaceState({key:s,state:i},null,t),l)window.location.replace(t);else{var c=I.indexOf(z.location.key);-1!==c&&(I[c]=o.key),P({action:r,location:o})}else window.location.replace(t)}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=L.setPrompt(e);return B||(q(1),B=!0),function(){return B&&(B=!1,q(-1)),t()}},listen:function(e){var t=L.appendListener(e);return q(1),function(){q(-1),t()}}};return z}var E="hashchange",_={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function C(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function T(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function L(e){window.location.replace(C(window.location.href)+"#"+e)}function P(e){void 0===e&&(e={}),b||(0,c.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),a=n.getUserConfirmation,o=void 0===a?v:a,s=n.hashType,i=void 0===s?"slash":s,l=e.basename?f(u(e.basename)):"",d=_[i],g=d.encodePath,x=d.decodePath;function w(){var e=x(T());return l&&(e=p(e,l)),h(e)}var k=y();function S(e){(0,r.Z)(B,e),B.length=t.length,k.notifyListeners(B.location,B.action)}var P=!1,N=null;function A(){var e,t,n=T(),r=g(n);if(n!==r)L(r);else{var a=w(),s=B.location;if(!P&&(t=a,(e=s).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(N===m(a))return;N=null,function(e){if(P)P=!1,S();else{var t="POP";k.confirmTransitionTo(e,t,o,(function(n){n?S({action:t,location:e}):function(e){var t=B.location,n=I.lastIndexOf(m(t));-1===n&&(n=0);var r=I.lastIndexOf(m(e));-1===r&&(r=0);var a=n-r;a&&(P=!0,F(a))}(e)}))}}(a)}}var O=T(),j=g(O);O!==j&&L(j);var R=w(),I=[m(R)];function F(e){t.go(e)}var D=0;function M(e){1===(D+=e)&&1===e?window.addEventListener(E,A):0===D&&window.removeEventListener(E,A)}var q=!1;var B={length:t.length,action:"POP",location:R,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=C(window.location.href)),n+"#"+g(l+m(e))},push:function(e,t){var n="PUSH",r=h(e,void 0,void 0,B.location);k.confirmTransitionTo(r,n,o,(function(e){if(e){var t=m(r),a=g(l+t);if(T()!==a){N=t,function(e){window.location.hash=e}(a);var o=I.lastIndexOf(m(B.location)),s=I.slice(0,o+1);s.push(t),I=s,S({action:n,location:r})}else S()}}))},replace:function(e,t){var n="REPLACE",r=h(e,void 0,void 0,B.location);k.confirmTransitionTo(r,n,o,(function(e){if(e){var t=m(r),a=g(l+t);T()!==a&&(N=t,L(a));var o=I.indexOf(m(B.location));-1!==o&&(I[o]=t),S({action:n,location:r})}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=k.setPrompt(e);return q||(M(1),q=!0),function(){return q&&(q=!1,M(-1)),t()}},listen:function(e){var t=k.appendListener(e);return M(1),function(){M(-1),t()}}};return B}function N(e,t,n){return Math.min(Math.max(e,t),n)}function A(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,a=t.initialEntries,o=void 0===a?["/"]:a,s=t.initialIndex,i=void 0===s?0:s,l=t.keyLength,c=void 0===l?6:l,u=y();function d(e){(0,r.Z)(x,e),x.length=x.entries.length,u.notifyListeners(x.location,x.action)}function p(){return Math.random().toString(36).substr(2,c)}var f=N(i,0,o.length-1),g=o.map((function(e){return h(e,void 0,"string"==typeof e?p():e.key||p())})),b=m;function v(e){var t=N(x.index+e,0,x.entries.length-1),r=x.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var x={length:g.length,action:"POP",location:g[f],index:f,entries:g,createHref:b,push:function(e,t){var r="PUSH",a=h(e,t,p(),x.location);u.confirmTransitionTo(a,r,n,(function(e){if(e){var t=x.index+1,n=x.entries.slice(0);n.length>t?n.splice(t,n.length-t,a):n.push(a),d({action:r,location:a,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",a=h(e,t,p(),x.location);u.confirmTransitionTo(a,r,n,(function(e){e&&(x.entries[x.index]=a,d({action:r,location:a}))}))},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(e){var t=x.index+e;return t>=0&&t<x.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return x}},8679:(e,t,n)=>{"use strict";var r=n(9864),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function l(e){return r.isMemo(e)?s:i[e.$$typeof]||a}i[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var a=f(n);a&&a!==m&&e(t,a,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var i=l(t),h=l(n),g=0;g<s.length;++g){var y=s[g];if(!(o[y]||r&&r[y]||h&&h[y]||i&&i[y])){var b=p(n,y);try{c(t,y,b)}catch(v){}}}}return t}},1143:e=>{"use strict";e.exports=function(e,t,n,r,a,o,s,i){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,o,s,i],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},5826:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},1336:(e,t,n)=>{var r,a;!function(){var o,s,i,l,c,u,d,p,f,m,h,g,y,b,v,x,w,k,S,E,_,C,T,L,P,N,A,O,j,R,I=function(e){var t=new I.Builder;return t.pipeline.add(I.trimmer,I.stopWordFilter,I.stemmer),t.searchPipeline.add(I.stemmer),e.call(t,t),t.build()};I.version="2.3.9",I.utils={},I.utils.warn=(o=this,function(e){o.console&&console.warn&&console.warn(e)}),I.utils.asString=function(e){return null==e?"":e.toString()},I.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),n=Object.keys(e),r=0;r<n.length;r++){var a=n[r],o=e[a];if(Array.isArray(o))t[a]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");t[a]=o}}return t},I.FieldRef=function(e,t,n){this.docRef=e,this.fieldName=t,this._stringValue=n},I.FieldRef.joiner="/",I.FieldRef.fromString=function(e){var t=e.indexOf(I.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var n=e.slice(0,t),r=e.slice(t+1);return new I.FieldRef(r,n,e)},I.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+I.FieldRef.joiner+this.docRef),this._stringValue},I.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},I.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},I.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},I.Set.prototype.contains=function(e){return!!this.elements[e]},I.Set.prototype.intersect=function(e){var t,n,r,a=[];if(e===I.Set.complete)return this;if(e===I.Set.empty)return e;this.length<e.length?(t=this,n=e):(t=e,n=this),r=Object.keys(t.elements);for(var o=0;o<r.length;o++){var s=r[o];s in n.elements&&a.push(s)}return new I.Set(a)},I.Set.prototype.union=function(e){return e===I.Set.complete?I.Set.complete:e===I.Set.empty?this:new I.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},I.idf=function(e,t){var n=0;for(var r in e)"_index"!=r&&(n+=Object.keys(e[r]).length);var a=(t-n+.5)/(n+.5);return Math.log(1+Math.abs(a))},I.Token=function(e,t){this.str=e||"",this.metadata=t||{}},I.Token.prototype.toString=function(){return this.str},I.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},I.Token.prototype.clone=function(e){return e=e||function(e){return e},new I.Token(e(this.str,this.metadata),this.metadata)},I.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new I.Token(I.utils.asString(e).toLowerCase(),I.utils.clone(t))}));for(var n=e.toString().toLowerCase(),r=n.length,a=[],o=0,s=0;o<=r;o++){var i=o-s;if(n.charAt(o).match(I.tokenizer.separator)||o==r){if(i>0){var l=I.utils.clone(t)||{};l.position=[s,i],l.index=a.length,a.push(new I.Token(n.slice(s,o),l))}s=o+1}}return a},I.tokenizer.separator=/[\s\-]+/,I.Pipeline=function(){this._stack=[]},I.Pipeline.registeredFunctions=Object.create(null),I.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&I.utils.warn("Overwriting existing registered function: "+t),e.label=t,I.Pipeline.registeredFunctions[e.label]=e},I.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||I.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},I.Pipeline.load=function(e){var t=new I.Pipeline;return e.forEach((function(e){var n=I.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)})),t},I.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(e){I.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},I.Pipeline.prototype.after=function(e,t){I.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},I.Pipeline.prototype.before=function(e,t){I.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},I.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},I.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n<t;n++){for(var r=this._stack[n],a=[],o=0;o<e.length;o++){var s=r(e[o],o,e);if(null!=s&&""!==s)if(Array.isArray(s))for(var i=0;i<s.length;i++)a.push(s[i]);else a.push(s)}e=a}return e},I.Pipeline.prototype.runString=function(e,t){var n=new I.Token(e,t);return this.run([n]).map((function(e){return e.toString()}))},I.Pipeline.prototype.reset=function(){this._stack=[]},I.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return I.Pipeline.warnIfFunctionNotRegistered(e),e.label}))},I.Vector=function(e){this._magnitude=0,this.elements=e||[]},I.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,n=this.elements.length/2,r=n-t,a=Math.floor(r/2),o=this.elements[2*a];r>1&&(o<e&&(t=a),o>e&&(n=a),o!=e);)r=n-t,a=t+Math.floor(r/2),o=this.elements[2*a];return o==e||o>e?2*a:o<e?2*(a+1):void 0},I.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},I.Vector.prototype.upsert=function(e,t,n){this._magnitude=0;var r=this.positionForIndex(e);this.elements[r]==e?this.elements[r+1]=n(this.elements[r+1],t):this.elements.splice(r,0,e,t)},I.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,n=1;n<t;n+=2){var r=this.elements[n];e+=r*r}return this._magnitude=Math.sqrt(e)},I.Vector.prototype.dot=function(e){for(var t=0,n=this.elements,r=e.elements,a=n.length,o=r.length,s=0,i=0,l=0,c=0;l<a&&c<o;)(s=n[l])<(i=r[c])?l+=2:s>i?c+=2:s==i&&(t+=n[l+1]*r[c+1],l+=2,c+=2);return t},I.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},I.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t<this.elements.length;t+=2,n++)e[n]=this.elements[t];return e},I.Vector.prototype.toJSON=function(){return this.elements},I.stemmer=(s={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},i={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},d="^("+(c="[^aeiou][^aeiouy]*")+")?"+(u=(l="[aeiouy]")+"[aeiou]*")+c+"("+u+")?$",p="^("+c+")?"+u+c+u+c,f="^("+c+")?"+l,m=new RegExp("^("+c+")?"+u+c),h=new RegExp(p),g=new RegExp(d),y=new RegExp(f),b=/^(.+?)(ss|i)es$/,v=/^(.+?)([^s])s$/,x=/^(.+?)eed$/,w=/^(.+?)(ed|ing)$/,k=/.$/,S=/(at|bl|iz)$/,E=new RegExp("([^aeiouylsz])\\1$"),_=new RegExp("^"+c+l+"[^aeiouwxy]$"),C=/^(.+?[^aeiou])y$/,T=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,L=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,P=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,N=/^(.+?)(s|t)(ion)$/,A=/^(.+?)e$/,O=/ll$/,j=new RegExp("^"+c+l+"[^aeiouwxy]$"),R=function(e){var t,n,r,a,o,l,c;if(e.length<3)return e;if("y"==(r=e.substr(0,1))&&(e=r.toUpperCase()+e.substr(1)),o=v,(a=b).test(e)?e=e.replace(a,"$1$2"):o.test(e)&&(e=e.replace(o,"$1$2")),o=w,(a=x).test(e)){var u=a.exec(e);(a=m).test(u[1])&&(a=k,e=e.replace(a,""))}else o.test(e)&&(t=(u=o.exec(e))[1],(o=y).test(t)&&(l=E,c=_,(o=S).test(e=t)?e+="e":l.test(e)?(a=k,e=e.replace(a,"")):c.test(e)&&(e+="e")));return(a=C).test(e)&&(e=(t=(u=a.exec(e))[1])+"i"),(a=T).test(e)&&(t=(u=a.exec(e))[1],n=u[2],(a=m).test(t)&&(e=t+s[n])),(a=L).test(e)&&(t=(u=a.exec(e))[1],n=u[2],(a=m).test(t)&&(e=t+i[n])),o=N,(a=P).test(e)?(t=(u=a.exec(e))[1],(a=h).test(t)&&(e=t)):o.test(e)&&(t=(u=o.exec(e))[1]+u[2],(o=h).test(t)&&(e=t)),(a=A).test(e)&&(t=(u=a.exec(e))[1],o=g,l=j,((a=h).test(t)||o.test(t)&&!l.test(t))&&(e=t)),o=h,(a=O).test(e)&&o.test(e)&&(a=k,e=e.replace(a,"")),"y"==r&&(e=r.toLowerCase()+e.substr(1)),e},function(e){return e.update(R)}),I.Pipeline.registerFunction(I.stemmer,"stemmer"),I.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},I.stopWordFilter=I.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),I.Pipeline.registerFunction(I.stopWordFilter,"stopWordFilter"),I.trimmer=function(e){return e.update((function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")}))},I.Pipeline.registerFunction(I.trimmer,"trimmer"),I.TokenSet=function(){this.final=!1,this.edges={},this.id=I.TokenSet._nextId,I.TokenSet._nextId+=1},I.TokenSet._nextId=1,I.TokenSet.fromArray=function(e){for(var t=new I.TokenSet.Builder,n=0,r=e.length;n<r;n++)t.insert(e[n]);return t.finish(),t.root},I.TokenSet.fromClause=function(e){return"editDistance"in e?I.TokenSet.fromFuzzyString(e.term,e.editDistance):I.TokenSet.fromString(e.term)},I.TokenSet.fromFuzzyString=function(e,t){for(var n=new I.TokenSet,r=[{node:n,editsRemaining:t,str:e}];r.length;){var a=r.pop();if(a.str.length>0){var o,s=a.str.charAt(0);s in a.node.edges?o=a.node.edges[s]:(o=new I.TokenSet,a.node.edges[s]=o),1==a.str.length&&(o.final=!0),r.push({node:o,editsRemaining:a.editsRemaining,str:a.str.slice(1)})}if(0!=a.editsRemaining){if("*"in a.node.edges)var i=a.node.edges["*"];else{i=new I.TokenSet;a.node.edges["*"]=i}if(0==a.str.length&&(i.final=!0),r.push({node:i,editsRemaining:a.editsRemaining-1,str:a.str}),a.str.length>1&&r.push({node:a.node,editsRemaining:a.editsRemaining-1,str:a.str.slice(1)}),1==a.str.length&&(a.node.final=!0),a.str.length>=1){if("*"in a.node.edges)var l=a.node.edges["*"];else{l=new I.TokenSet;a.node.edges["*"]=l}1==a.str.length&&(l.final=!0),r.push({node:l,editsRemaining:a.editsRemaining-1,str:a.str.slice(1)})}if(a.str.length>1){var c,u=a.str.charAt(0),d=a.str.charAt(1);d in a.node.edges?c=a.node.edges[d]:(c=new I.TokenSet,a.node.edges[d]=c),1==a.str.length&&(c.final=!0),r.push({node:c,editsRemaining:a.editsRemaining-1,str:u+a.str.slice(2)})}}}return n},I.TokenSet.fromString=function(e){for(var t=new I.TokenSet,n=t,r=0,a=e.length;r<a;r++){var o=e[r],s=r==a-1;if("*"==o)t.edges[o]=t,t.final=s;else{var i=new I.TokenSet;i.final=s,t.edges[o]=i,t=i}}return n},I.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var n=t.pop(),r=Object.keys(n.node.edges),a=r.length;n.node.final&&(n.prefix.charAt(0),e.push(n.prefix));for(var o=0;o<a;o++){var s=r[o];t.push({prefix:n.prefix.concat(s),node:n.node.edges[s]})}}return e},I.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),n=t.length,r=0;r<n;r++){var a=t[r];e=e+a+this.edges[a].id}return e},I.TokenSet.prototype.intersect=function(e){for(var t=new I.TokenSet,n=void 0,r=[{qNode:e,output:t,node:this}];r.length;){n=r.pop();for(var a=Object.keys(n.qNode.edges),o=a.length,s=Object.keys(n.node.edges),i=s.length,l=0;l<o;l++)for(var c=a[l],u=0;u<i;u++){var d=s[u];if(d==c||"*"==c){var p=n.node.edges[d],f=n.qNode.edges[c],m=p.final&&f.final,h=void 0;d in n.output.edges?(h=n.output.edges[d]).final=h.final||m:((h=new I.TokenSet).final=m,n.output.edges[d]=h),r.push({qNode:f,output:h,node:p})}}}return t},I.TokenSet.Builder=function(){this.previousWord="",this.root=new I.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},I.TokenSet.Builder.prototype.insert=function(e){var t,n=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var r=0;r<e.length&&r<this.previousWord.length&&e[r]==this.previousWord[r];r++)n++;this.minimize(n),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(r=n;r<e.length;r++){var a=new I.TokenSet,o=e[r];t.edges[o]=a,this.uncheckedNodes.push({parent:t,char:o,child:a}),t=a}t.final=!0,this.previousWord=e},I.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},I.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var n=this.uncheckedNodes[t],r=n.child.toString();r in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[r]:(n.child._str=r,this.minimizedNodes[r]=n.child),this.uncheckedNodes.pop()}},I.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},I.Index.prototype.search=function(e){return this.query((function(t){new I.QueryParser(e,t).parse()}))},I.Index.prototype.query=function(e){for(var t=new I.Query(this.fields),n=Object.create(null),r=Object.create(null),a=Object.create(null),o=Object.create(null),s=Object.create(null),i=0;i<this.fields.length;i++)r[this.fields[i]]=new I.Vector;e.call(t,t);for(i=0;i<t.clauses.length;i++){var l=t.clauses[i],c=null,u=I.Set.empty;c=l.usePipeline?this.pipeline.runString(l.term,{fields:l.fields}):[l.term];for(var d=0;d<c.length;d++){var p=c[d];l.term=p;var f=I.TokenSet.fromClause(l),m=this.tokenSet.intersect(f).toArray();if(0===m.length&&l.presence===I.Query.presence.REQUIRED){for(var h=0;h<l.fields.length;h++){o[A=l.fields[h]]=I.Set.empty}break}for(var g=0;g<m.length;g++){var y=m[g],b=this.invertedIndex[y],v=b._index;for(h=0;h<l.fields.length;h++){var x=b[A=l.fields[h]],w=Object.keys(x),k=y+"/"+A,S=new I.Set(w);if(l.presence==I.Query.presence.REQUIRED&&(u=u.union(S),void 0===o[A]&&(o[A]=I.Set.complete)),l.presence!=I.Query.presence.PROHIBITED){if(r[A].upsert(v,l.boost,(function(e,t){return e+t})),!a[k]){for(var E=0;E<w.length;E++){var _,C=w[E],T=new I.FieldRef(C,A),L=x[C];void 0===(_=n[T])?n[T]=new I.MatchData(y,A,L):_.add(y,A,L)}a[k]=!0}}else void 0===s[A]&&(s[A]=I.Set.empty),s[A]=s[A].union(S)}}}if(l.presence===I.Query.presence.REQUIRED)for(h=0;h<l.fields.length;h++){o[A=l.fields[h]]=o[A].intersect(u)}}var P=I.Set.complete,N=I.Set.empty;for(i=0;i<this.fields.length;i++){var A;o[A=this.fields[i]]&&(P=P.intersect(o[A])),s[A]&&(N=N.union(s[A]))}var O=Object.keys(n),j=[],R=Object.create(null);if(t.isNegated()){O=Object.keys(this.fieldVectors);for(i=0;i<O.length;i++){T=O[i];var F=I.FieldRef.fromString(T);n[T]=new I.MatchData}}for(i=0;i<O.length;i++){var D=(F=I.FieldRef.fromString(O[i])).docRef;if(P.contains(D)&&!N.contains(D)){var M,q=this.fieldVectors[F],B=r[F.fieldName].similarity(q);if(void 0!==(M=R[D]))M.score+=B,M.matchData.combine(n[F]);else{var z={ref:D,score:B,matchData:n[F]};R[D]=z,j.push(z)}}}return j.sort((function(e,t){return t.score-e.score}))},I.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:I.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},I.Index.load=function(e){var t={},n={},r=e.fieldVectors,a=Object.create(null),o=e.invertedIndex,s=new I.TokenSet.Builder,i=I.Pipeline.load(e.pipeline);e.version!=I.version&&I.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+I.version+"' does not match serialized index '"+e.version+"'");for(var l=0;l<r.length;l++){var c=(d=r[l])[0],u=d[1];n[c]=new I.Vector(u)}for(l=0;l<o.length;l++){var d,p=(d=o[l])[0],f=d[1];s.insert(p),a[p]=f}return s.finish(),t.fields=e.fields,t.fieldVectors=n,t.invertedIndex=a,t.tokenSet=s.root,t.pipeline=i,new I.Index(t)},I.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=I.tokenizer,this.pipeline=new I.Pipeline,this.searchPipeline=new I.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},I.Builder.prototype.ref=function(e){this._ref=e},I.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},I.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},I.Builder.prototype.k1=function(e){this._k1=e},I.Builder.prototype.add=function(e,t){var n=e[this._ref],r=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var a=0;a<r.length;a++){var o=r[a],s=this._fields[o].extractor,i=s?s(e):e[o],l=this.tokenizer(i,{fields:[o]}),c=this.pipeline.run(l),u=new I.FieldRef(n,o),d=Object.create(null);this.fieldTermFrequencies[u]=d,this.fieldLengths[u]=0,this.fieldLengths[u]+=c.length;for(var p=0;p<c.length;p++){var f=c[p];if(null==d[f]&&(d[f]=0),d[f]+=1,null==this.invertedIndex[f]){var m=Object.create(null);m._index=this.termIndex,this.termIndex+=1;for(var h=0;h<r.length;h++)m[r[h]]=Object.create(null);this.invertedIndex[f]=m}null==this.invertedIndex[f][o][n]&&(this.invertedIndex[f][o][n]=Object.create(null));for(var g=0;g<this.metadataWhitelist.length;g++){var y=this.metadataWhitelist[g],b=f.metadata[y];null==this.invertedIndex[f][o][n][y]&&(this.invertedIndex[f][o][n][y]=[]),this.invertedIndex[f][o][n][y].push(b)}}}},I.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,n={},r={},a=0;a<t;a++){var o=I.FieldRef.fromString(e[a]),s=o.fieldName;r[s]||(r[s]=0),r[s]+=1,n[s]||(n[s]=0),n[s]+=this.fieldLengths[o]}var i=Object.keys(this._fields);for(a=0;a<i.length;a++){var l=i[a];n[l]=n[l]/r[l]}this.averageFieldLength=n},I.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),n=t.length,r=Object.create(null),a=0;a<n;a++){for(var o=I.FieldRef.fromString(t[a]),s=o.fieldName,i=this.fieldLengths[o],l=new I.Vector,c=this.fieldTermFrequencies[o],u=Object.keys(c),d=u.length,p=this._fields[s].boost||1,f=this._documents[o.docRef].boost||1,m=0;m<d;m++){var h,g,y,b=u[m],v=c[b],x=this.invertedIndex[b]._index;void 0===r[b]?(h=I.idf(this.invertedIndex[b],this.documentCount),r[b]=h):h=r[b],g=h*((this._k1+1)*v)/(this._k1*(1-this._b+this._b*(i/this.averageFieldLength[s]))+v),g*=p,g*=f,y=Math.round(1e3*g)/1e3,l.insert(x,y)}e[o]=l}this.fieldVectors=e},I.Builder.prototype.createTokenSet=function(){this.tokenSet=I.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},I.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new I.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},I.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},I.MatchData=function(e,t,n){for(var r=Object.create(null),a=Object.keys(n||{}),o=0;o<a.length;o++){var s=a[o];r[s]=n[s].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=r)},I.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),n=0;n<t.length;n++){var r=t[n],a=Object.keys(e.metadata[r]);null==this.metadata[r]&&(this.metadata[r]=Object.create(null));for(var o=0;o<a.length;o++){var s=a[o],i=Object.keys(e.metadata[r][s]);null==this.metadata[r][s]&&(this.metadata[r][s]=Object.create(null));for(var l=0;l<i.length;l++){var c=i[l];null==this.metadata[r][s][c]?this.metadata[r][s][c]=e.metadata[r][s][c]:this.metadata[r][s][c]=this.metadata[r][s][c].concat(e.metadata[r][s][c])}}}},I.MatchData.prototype.add=function(e,t,n){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=n);if(t in this.metadata[e])for(var r=Object.keys(n),a=0;a<r.length;a++){var o=r[a];o in this.metadata[e][t]?this.metadata[e][t][o]=this.metadata[e][t][o].concat(n[o]):this.metadata[e][t][o]=n[o]}else this.metadata[e][t]=n},I.Query=function(e){this.clauses=[],this.allFields=e},I.Query.wildcard=new String("*"),I.Query.wildcard.NONE=0,I.Query.wildcard.LEADING=1,I.Query.wildcard.TRAILING=2,I.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},I.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=I.Query.wildcard.NONE),e.wildcard&I.Query.wildcard.LEADING&&e.term.charAt(0)!=I.Query.wildcard&&(e.term="*"+e.term),e.wildcard&I.Query.wildcard.TRAILING&&e.term.slice(-1)!=I.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=I.Query.presence.OPTIONAL),this.clauses.push(e),this},I.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=I.Query.presence.PROHIBITED)return!1;return!0},I.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,I.utils.clone(t))}),this),this;var n=t||{};return n.term=e.toString(),this.clause(n),this},I.QueryParseError=function(e,t,n){this.name="QueryParseError",this.message=e,this.start=t,this.end=n},I.QueryParseError.prototype=new Error,I.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},I.QueryLexer.prototype.run=function(){for(var e=I.QueryLexer.lexText;e;)e=e(this)},I.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,n=this.pos,r=0;r<this.escapeCharPositions.length;r++)n=this.escapeCharPositions[r],e.push(this.str.slice(t,n)),t=n+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},I.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},I.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},I.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return I.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},I.QueryLexer.prototype.width=function(){return this.pos-this.start},I.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},I.QueryLexer.prototype.backup=function(){this.pos-=1},I.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=I.QueryLexer.EOS&&this.backup()},I.QueryLexer.prototype.more=function(){return this.pos<this.length},I.QueryLexer.EOS="EOS",I.QueryLexer.FIELD="FIELD",I.QueryLexer.TERM="TERM",I.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",I.QueryLexer.BOOST="BOOST",I.QueryLexer.PRESENCE="PRESENCE",I.QueryLexer.lexField=function(e){return e.backup(),e.emit(I.QueryLexer.FIELD),e.ignore(),I.QueryLexer.lexText},I.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(I.QueryLexer.TERM)),e.ignore(),e.more())return I.QueryLexer.lexText},I.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(I.QueryLexer.EDIT_DISTANCE),I.QueryLexer.lexText},I.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(I.QueryLexer.BOOST),I.QueryLexer.lexText},I.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(I.QueryLexer.TERM)},I.QueryLexer.termSeparator=I.tokenizer.separator,I.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==I.QueryLexer.EOS)return I.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return I.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(I.QueryLexer.TERM),I.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(I.QueryLexer.TERM),I.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(I.QueryLexer.PRESENCE),I.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(I.QueryLexer.PRESENCE),I.QueryLexer.lexText;if(t.match(I.QueryLexer.termSeparator))return I.QueryLexer.lexTerm}else e.escapeCharacter()}},I.QueryParser=function(e,t){this.lexer=new I.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},I.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=I.QueryParser.parseClause;e;)e=e(this);return this.query},I.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},I.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},I.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},I.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case I.QueryLexer.PRESENCE:return I.QueryParser.parsePresence;case I.QueryLexer.FIELD:return I.QueryParser.parseField;case I.QueryLexer.TERM:return I.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new I.QueryParseError(n,t.start,t.end)}},I.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=I.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=I.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new I.QueryParseError(n,t.start,t.end)}var r=e.peekLexeme();if(null==r){n="expecting term or field, found nothing";throw new I.QueryParseError(n,t.start,t.end)}switch(r.type){case I.QueryLexer.FIELD:return I.QueryParser.parseField;case I.QueryLexer.TERM:return I.QueryParser.parseTerm;default:n="expecting term or field, found '"+r.type+"'";throw new I.QueryParseError(n,r.start,r.end)}}},I.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),r="unrecognised field '"+t.str+"', possible fields: "+n;throw new I.QueryParseError(r,t.start,t.end)}e.currentClause.fields=[t.str];var a=e.peekLexeme();if(null==a){r="expecting term, found nothing";throw new I.QueryParseError(r,t.start,t.end)}if(a.type===I.QueryLexer.TERM)return I.QueryParser.parseTerm;r="expecting term, found '"+a.type+"'";throw new I.QueryParseError(r,a.start,a.end)}},I.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(null!=n)switch(n.type){case I.QueryLexer.TERM:return e.nextClause(),I.QueryParser.parseTerm;case I.QueryLexer.FIELD:return e.nextClause(),I.QueryParser.parseField;case I.QueryLexer.EDIT_DISTANCE:return I.QueryParser.parseEditDistance;case I.QueryLexer.BOOST:return I.QueryParser.parseBoost;case I.QueryLexer.PRESENCE:return e.nextClause(),I.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+n.type+"'";throw new I.QueryParseError(r,n.start,n.end)}else e.nextClause()}},I.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="edit distance must be numeric";throw new I.QueryParseError(r,t.start,t.end)}e.currentClause.editDistance=n;var a=e.peekLexeme();if(null!=a)switch(a.type){case I.QueryLexer.TERM:return e.nextClause(),I.QueryParser.parseTerm;case I.QueryLexer.FIELD:return e.nextClause(),I.QueryParser.parseField;case I.QueryLexer.EDIT_DISTANCE:return I.QueryParser.parseEditDistance;case I.QueryLexer.BOOST:return I.QueryParser.parseBoost;case I.QueryLexer.PRESENCE:return e.nextClause(),I.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+a.type+"'";throw new I.QueryParseError(r,a.start,a.end)}else e.nextClause()}},I.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="boost must be numeric";throw new I.QueryParseError(r,t.start,t.end)}e.currentClause.boost=n;var a=e.peekLexeme();if(null!=a)switch(a.type){case I.QueryLexer.TERM:return e.nextClause(),I.QueryParser.parseTerm;case I.QueryLexer.FIELD:return e.nextClause(),I.QueryParser.parseField;case I.QueryLexer.EDIT_DISTANCE:return I.QueryParser.parseEditDistance;case I.QueryLexer.BOOST:return I.QueryParser.parseBoost;case I.QueryLexer.PRESENCE:return e.nextClause(),I.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+a.type+"'";throw new I.QueryParseError(r,a.start,a.end)}else e.nextClause()}},void 0===(a="function"==typeof(r=function(){return I})?r.call(t,n,t,e):r)||(e.exports=a)}()},3395:(e,t,n)=>{"use strict";n.r(t)},2497:(e,t,n)=>{"use strict";n.r(t)},4865:function(e,t,n){var r,a;r=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function a(e,t,n){return e<t?t:e>n?n:e}function o(e){return 100*(-1+e)}function s(e,t,n){var a;return(a="translate3d"===r.positionUsing?{transform:"translate3d("+o(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+o(e)+"%,0)"}:{"margin-left":o(e)+"%"}).transition="all "+t+"ms "+n,a}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=a(e,r.minimum,1),n.status=1===e?null:e;var o=n.render(!t),c=o.querySelector(r.barSelector),u=r.speed,d=r.easing;return o.offsetWidth,i((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),l(c,s(e,u,d)),1===e?(l(o,{transition:"none",opacity:1}),o.offsetWidth,setTimeout((function(){l(o,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),u)}),u)):setTimeout(t,u)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*a(Math.random()*t,.1,.95)),t=a(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var a,s=t.querySelector(r.barSelector),i=e?"-100":o(n.status||0),c=document.querySelector(r.parent);return l(s,{transition:"all 0 linear",transform:"translate3d("+i+"%,0,0)"}),r.showSpinner||(a=t.querySelector(r.spinnerSelector))&&f(a),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var i=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,a=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);a--;)if((r=e[a]+o)in n)return r;return t}function a(e){return e=n(e),t[e]||(t[e]=r(e))}function o(e,t,n){t=a(t),e.style[t]=n}return function(e,t){var n,r,a=arguments;if(2==a.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&o(e,n,r);else o(e,a[1],a[2])}}();function c(e,t){return("string"==typeof e?e:p(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=p(e),r=n+t;c(n,t)||(e.className=r.substring(1))}function d(e,t){var n,r=p(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function p(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},void 0===(a="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=a)},4779:(e,t,n)=>{var r=n(5826);e.exports=f,e.exports.parse=o,e.exports.compile=function(e,t){return i(o(e,t),t)},e.exports.tokensToFunction=i,e.exports.tokensToRegExp=p;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,s=0,i="",u=t&&t.delimiter||"/";null!=(n=a.exec(e));){var d=n[0],p=n[1],f=n.index;if(i+=e.slice(s,f),s=f+d.length,p)i+=p[1];else{var m=e[s],h=n[2],g=n[3],y=n[4],b=n[5],v=n[6],x=n[7];i&&(r.push(i),i="");var w=null!=h&&null!=m&&m!==h,k="+"===v||"*"===v,S="?"===v||"*"===v,E=n[2]||u,_=y||b;r.push({name:g||o++,prefix:h||"",delimiter:E,optional:S,repeat:k,partial:w,asterisk:!!x,pattern:_?c(_):x?".*":"[^"+l(E)+"]+?"})}}return s<e.length&&(i+=e.substr(s)),i&&r.push(i),r}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function i(e,t){for(var n=new Array(e.length),a=0;a<e.length;a++)"object"==typeof e[a]&&(n[a]=new RegExp("^(?:"+e[a].pattern+")$",d(t)));return function(t,a){for(var o="",i=t||{},l=(a||{}).pretty?s:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var d,p=i[u.name];if(null==p){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(d=l(p[f]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===f?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var a=(n=n||{}).strict,o=!1!==n.end,s="",i=0;i<e.length;i++){var c=e[i];if("string"==typeof c)s+=l(c);else{var p=l(c.prefix),f="(?:"+c.pattern+")";t.push(c),c.repeat&&(f+="(?:"+p+f+")*"),s+=f=c.optional?c.partial?p+"("+f+")?":"(?:"+p+"("+f+"))?":p+"("+f+")"}}var m=l(n.delimiter||"/"),h=s.slice(-m.length)===m;return a||(s=(h?s.slice(0,-m.length):s)+"(?:"+m+"(?=$))?"),s+=o?"$":a&&h?"":"(?="+m+"|$)",u(new RegExp("^"+s,d(n)),t)}function f(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],a=0;a<e.length;a++)r.push(f(e[a],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return p(o(e,n),t,n)}(e,t,n)}},7874:()=>{!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,s=0;s<a.length;s++)o[a[s]]=e.languages.bash[a[s]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism)},4277:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},6854:()=>{!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,a,o){if(n.language===r){var s=n.tokenStack=[];n.code=n.code.replace(a,(function(e){if("function"==typeof o&&!o(e))return e;for(var a,i=s.length;-1!==n.code.indexOf(a=t(r,i));)++i;return s[i]=e,a})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,o=Object.keys(n.tokenStack);!function s(i){for(var l=0;l<i.length&&!(a>=o.length);l++){var c=i[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=o[a],d=n.tokenStack[u],p="string"==typeof c?c:c.content,f=t(r,u),m=p.indexOf(f);if(m>-1){++a;var h=p.substring(0,m),g=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),y=p.substring(m+f.length),b=[];h&&b.push.apply(b,s([h])),b.push(g),y&&b.push.apply(b,s([y])),"string"==typeof c?i.splice.apply(i,[l,1].concat(b)):c.content=b}}else c.content&&s(c.content)}return i}(n.tokens)}}}})}(Prism)},1029:()=>{!function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism)},5897:(e,t,n)=>{var r={"./prism-bash":7874,"./prism-json":4277,"./prism-tsx":1029};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=5897},2703:(e,t,n)=>{"use strict";var r=n(414);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,s){if(s!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4448:(e,t,n)=>{"use strict";var r=n(7294),a=n(3840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,i={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(i[e]=t,e=0;e<t.length;e++)s.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},m={};function h(e,t,n,r,a,o,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function v(e,t,n,r){var a=g.hasOwnProperty(t)?g[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!d.call(m,e)||!d.call(f,e)&&(p.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),T=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),O=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var j=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var F,D=Object.assign;function M(e){if(void 0===F)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var q=!1;function B(e,t){if(!e||q)return"";q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(var a=c.stack.split("\n"),o=r.stack.split("\n"),s=a.length-1,i=o.length-1;1<=s&&0<=i&&a[s]!==o[i];)i--;for(;1<=s&&0<=i;s--,i--)if(a[s]!==o[i]){if(1!==s||1!==i)do{if(s--,0>--i||a[s]!==o[i]){var l="\n"+a[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=i);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?M(e):""}function z(e){switch(e.tag){case 5:return M(e.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case _:return"Profiler";case E:return"StrictMode";case P:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case L:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case A:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return $(e(t))}catch(n){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Z(e){e._valueTracker||(e._valueTracker=function(e){var t=Q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function V(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function W(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function X(e,t){K(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&W(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function oe(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ie(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ie(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=he(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(fe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ye=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Se=null,Ee=null;function _e(e){if(e=va(e)){if("function"!=typeof ke)throw Error(o(280));var t=e.stateNode;t&&(t=wa(t),ke(e.stateNode,e.type,t))}}function Ce(e){Se?Ee?Ee.push(e):Ee=[e]:Se=e}function Te(){if(Se){var e=Se,t=Ee;if(Ee=Se=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function Le(e,t){return e(t)}function Pe(){}var Ne=!1;function Ae(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return Le(e,t,n)}finally{Ne=!1,(null!==Se||null!==Ee)&&(Pe(),Te())}}function Oe(e,t){var n=e.stateNode;if(null===n)return null;var r=wa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var je=!1;if(u)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){je=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ue){je=!1}function Ie(e,t,n,r,a,o,s,i,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Fe=!1,De=null,Me=!1,qe=null,Be={onError:function(e){Fe=!0,De=e}};function ze(e,t,n,r,a,o,s,i,l){Fe=!1,De=null,Ie.apply(Be,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if($e(e)!==e)throw Error(o(188))}function Qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var s=a.alternate;if(null===s){if(null!==(r=a.return)){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return He(a),e;if(s===r)return He(a),t;s=s.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=s;else{for(var i=!1,l=a.child;l;){if(l===n){i=!0,n=a,r=s;break}if(l===r){i=!0,r=a,n=s;break}l=l.sibling}if(!i){for(l=s.child;l;){if(l===n){i=!0,n=s,r=a;break}if(l===r){i=!0,r=s,n=a;break}l=l.sibling}if(!i)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ze(e):null}function Ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ze(e);if(null!==t)return t;e=e.sibling}return null}var Ve=a.unstable_scheduleCallback,We=a.unstable_cancelCallback,Ge=a.unstable_shouldYield,Ye=a.unstable_requestPaint,Ke=a.unstable_now,Xe=a.unstable_getCurrentPriorityLevel,Je=a.unstable_ImmediatePriority,et=a.unstable_UserBlockingPriority,tt=a.unstable_NormalPriority,nt=a.unstable_LowPriority,rt=a.unstable_IdlePriority,at=null,ot=null;var st=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(it(e)/lt|0)|0},it=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,s=268435455&n;if(0!==s){var i=s&~a;0!==i?r=dt(i):0!==(o&=s)&&(r=dt(o))}else 0!==(s=n&~a)?r=dt(s):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-st(t)),r|=e[n],t&=~a;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ht(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var vt=0;function xt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,kt,St,Et,_t,Ct=!1,Tt=[],Lt=null,Pt=null,Nt=null,At=new Map,Ot=new Map,jt=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function It(e,t){switch(e){case"focusin":case"focusout":Lt=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":At.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function Ft(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=va(t))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Dt(e){var t=ba(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ue(n)))return e.blockedOn=t,void _t(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Mt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=va(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function qt(e,t,n){Mt(e)&&n.delete(t)}function Bt(){Ct=!1,null!==Lt&&Mt(Lt)&&(Lt=null),null!==Pt&&Mt(Pt)&&(Pt=null),null!==Nt&&Mt(Nt)&&(Nt=null),At.forEach(qt),Ot.forEach(qt)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Bt)))}function $t(e){function t(t){return zt(t,e)}if(0<Tt.length){zt(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Lt&&zt(Lt,e),null!==Pt&&zt(Pt,e),null!==Nt&&zt(Nt,e),At.forEach(t),Ot.forEach(t),n=0;n<jt.length;n++)(r=jt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&null===(n=jt[0]).blockedOn;)Dt(n),null===n.blockedOn&&jt.shift()}var Ut=x.ReactCurrentBatchConfig,Ht=!0;function Qt(e,t,n,r){var a=vt,o=Ut.transition;Ut.transition=null;try{vt=1,Vt(e,t,n,r)}finally{vt=a,Ut.transition=o}}function Zt(e,t,n,r){var a=vt,o=Ut.transition;Ut.transition=null;try{vt=4,Vt(e,t,n,r)}finally{vt=a,Ut.transition=o}}function Vt(e,t,n,r){if(Ht){var a=Gt(e,t,n,r);if(null===a)Hr(e,t,r,Wt,n),It(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Lt=Ft(Lt,e,t,n,r,a),!0;case"dragenter":return Pt=Ft(Pt,e,t,n,r,a),!0;case"mouseover":return Nt=Ft(Nt,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return At.set(o,Ft(At.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,Ot.set(o,Ft(Ot.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<Rt.indexOf(e)){for(;null!==a;){var o=va(a);if(null!==o&&wt(o),null===(o=Gt(e,t,n,r))&&Hr(e,t,r,Wt,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Wt=null;function Gt(e,t,n,r){if(Wt=null,null!==(e=ba(e=we(r))))if(null===(t=$e(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Kt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,a="value"in Kt?Kt.value:Kt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===a[o-t];t++);return Jt=a.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,a,o){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(a):a[s]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=an(cn),dn=D({},cn,{view:0,detail:0}),pn=an(dn),fn=D({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_n,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(on=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=on=0,ln=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),mn=an(fn),hn=an(D({},fn,{dataTransfer:0})),gn=an(D({},dn,{relatedTarget:0})),yn=an(D({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=D({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=an(bn),xn=an(D({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function _n(){return En}var Cn=D({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_n,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=an(Cn),Ln=an(D({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=an(D({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_n})),Nn=an(D({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=D({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),On=an(An),jn=[9,13,27,32],Rn=u&&"CompositionEvent"in window,In=null;u&&"documentMode"in document&&(In=document.documentMode);var Fn=u&&"TextEvent"in window&&!In,Dn=u&&(!Rn||In&&8<In&&11>=In),Mn=String.fromCharCode(32),qn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1;var Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Qn(e,t,n,r){Ce(r),0<(t=Zr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zn=null,Vn=null;function Wn(e){Mr(e,0)}function Gn(e){if(V(xa(e)))return e}function Yn(e,t){if("change"===e)return t}var Kn=!1;if(u){var Xn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Xn=Jn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Zn&&(Zn.detachEvent("onpropertychange",nr),Vn=Zn=null)}function nr(e){if("value"===e.propertyName&&Gn(Vn)){var t=[];Qn(t,Vn,e,we(e)),Ae(Wn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Vn=n,(Zn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Vn)}function or(e,t){if("click"===e)return Gn(t)}function sr(e,t){if("input"===e||"change"===e)return Gn(t)}var ir="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(ir(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!d.call(t,a)||!ir(e[a],t[a]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=W();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=W((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=ur(n,o);var s=ur(n,r);a&&s&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,br=null,vr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==gr||gr!==W(r)||("selectionStart"in(r=gr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&lr(br,r)||(br=r,0<(r=Zr(yr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},Er={};function _r(e){if(Sr[e])return Sr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Sr[e]=n[t];return e}u&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Cr=_r("animationend"),Tr=_r("animationiteration"),Lr=_r("animationstart"),Pr=_r("transitionend"),Nr=new Map,Ar="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Or(e,t){Nr.set(e,t),l(t,[e])}for(var jr=0;jr<Ar.length;jr++){var Rr=Ar[jr];Or(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Or(Cr,"onAnimationEnd"),Or(Tr,"onAnimationIteration"),Or(Lr,"onAnimationStart"),Or("dblclick","onDoubleClick"),Or("focusin","onFocus"),Or("focusout","onBlur"),Or(Pr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Fr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,s,i,l,c){if(ze.apply(this,arguments),Fe){if(!Fe)throw Error(o(198));var u=De;Fe=!1,De=null,Me||(Me=!0,qe=u)}}(r,t,void 0,e),e.currentTarget=null}function Mr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var i=r[s],l=i.instance,c=i.currentTarget;if(i=i.listener,l!==o&&a.isPropagationStopped())break e;Dr(a,i,c),o=l}else for(s=0;s<r.length;s++){if(l=(i=r[s]).instance,c=i.currentTarget,i=i.listener,l!==o&&a.isPropagationStopped())break e;Dr(a,i,c),o=l}}}if(Me)throw e=qe,Me=!1,qe=null,e}function qr(e,t){var n=t[ha];void 0===n&&(n=t[ha]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function $r(e){if(!e[zr]){e[zr]=!0,s.forEach((function(t){"selectionchange"!==t&&(Fr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Br("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Yt(t)){case 1:var a=Qt;break;case 4:a=Zt;break;default:a=Vt}n=a.bind(null,t,n,e),a=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,a){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var i=r.stateNode.containerInfo;if(i===a||8===i.nodeType&&i.parentNode===a)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;s=s.return}for(;null!==i;){if(null===(s=ba(i)))return;if(5===(l=s.tag)||6===l){r=o=s;continue e}i=i.parentNode}}r=r.return}Ae((function(){var r=o,a=we(n),s=[];e:{var i=Nr.get(e);if(void 0!==i){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case Cr:case Tr:case Lr:l=yn;break;case Pr:l=Nn;break;case"scroll":l=pn;break;case"wheel":l=On;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Ln}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==i?i+"Capture":null:i;u=[];for(var f,m=r;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&(null!=(h=Oe(m,p))&&u.push(Qr(m,h,f)))),d)break;m=m.return}0<u.length&&(i=new l(i,c,null,n,a),s.push({event:i,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(i="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!ba(c)&&!c[ma])&&(l||i)&&(i=a.window===a?a:(i=a.ownerDocument)?i.defaultView||i.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ba(c):null)&&(c!==(d=$e(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=mn,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=Ln,h="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==l?i:xa(l),f=null==c?i:xa(c),(i=new u(h,m+"leave",l,n,a)).target=d,i.relatedTarget=f,h=null,ba(a)===r&&((u=new u(p,m+"enter",c,n,a)).target=f,u.relatedTarget=d,h=u),d=h,l&&c)e:{for(p=c,m=0,f=u=l;f;f=Vr(f))m++;for(f=0,h=p;h;h=Vr(h))f++;for(;0<m-f;)u=Vr(u),m--;for(;0<f-m;)p=Vr(p),f--;for(;m--;){if(u===p||null!==p&&u===p.alternate)break e;u=Vr(u),p=Vr(p)}u=null}else u=null;null!==l&&Wr(s,i,l,u,!1),null!==c&&null!==d&&Wr(s,d,c,u,!0)}if("select"===(l=(i=r?xa(r):window).nodeName&&i.nodeName.toLowerCase())||"input"===l&&"file"===i.type)var g=Yn;else if(Hn(i))if(Kn)g=sr;else{g=ar;var y=rr}else(l=i.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(g=or);switch(g&&(g=g(e,r))?Qn(s,g,n,a):(y&&y(e,i,r),"focusout"===e&&(y=i._wrapperState)&&y.controlled&&"number"===i.type&&ee(i,"number",i.value)),y=r?xa(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,br=null);break;case"focusout":br=yr=gr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,xr(s,n,a);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":xr(s,n,a)}var b;if(Rn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else $n?Bn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Dn&&"ko"!==n.locale&&($n||"onCompositionStart"!==v?"onCompositionEnd"===v&&$n&&(b=en()):(Xt="value"in(Kt=a)?Kt.value:Kt.textContent,$n=!0)),0<(y=Zr(r,v)).length&&(v=new xn(v,e,null,n,a),s.push({event:v,listeners:y}),b?v.data=b:null!==(b=zn(n))&&(v.data=b))),(b=Fn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(qn=!0,Mn);case"textInput":return(e=t.data)===Mn&&qn?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!Rn&&Bn(e,t)?(e=en(),Jt=Xt=Kt=null,$n=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Zr(r,"onBeforeInput")).length&&(a=new xn("onBeforeInput","beforeinput",null,n,a),s.push({event:a,listeners:r}),a.data=b))}Mr(s,t)}))}function Qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Oe(e,n))&&r.unshift(Qr(e,o,a)),null!=(o=Oe(e,t))&&r.push(Qr(e,o,a))),e=e.return}return r}function Vr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,a){for(var o=t._reactName,s=[];null!==n&&n!==r;){var i=n,l=i.alternate,c=i.stateNode;if(null!==l&&l===r)break;5===i.tag&&null!==c&&(i=c,a?null!=(l=Oe(n,o))&&s.unshift(Qr(n,l,i)):a||null!=(l=Oe(n,o))&&s.push(Qr(n,l,i))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Gr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Yr,"")}function Xr(e,t,n){if(t=Kr(t),Kr(e)!==t&&n)throw Error(o(425))}function Jr(){}var ea=null,ta=null;function na(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ra="function"==typeof setTimeout?setTimeout:void 0,aa="function"==typeof clearTimeout?clearTimeout:void 0,oa="function"==typeof Promise?Promise:void 0,sa="function"==typeof queueMicrotask?queueMicrotask:void 0!==oa?function(e){return oa.resolve(null).then(e).catch(ia)}:ra;function ia(e){setTimeout((function(){throw e}))}function la(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void $t(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);$t(t)}function ca(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ua(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var da=Math.random().toString(36).slice(2),pa="__reactFiber$"+da,fa="__reactProps$"+da,ma="__reactContainer$"+da,ha="__reactEvents$"+da,ga="__reactListeners$"+da,ya="__reactHandles$"+da;function ba(e){var t=e[pa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ma]||n[pa]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ua(e);null!==e;){if(n=e[pa])return n;e=ua(e)}return t}n=(e=n).parentNode}return null}function va(e){return!(e=e[pa]||e[ma])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wa(e){return e[fa]||null}var ka=[],Sa=-1;function Ea(e){return{current:e}}function _a(e){0>Sa||(e.current=ka[Sa],ka[Sa]=null,Sa--)}function Ca(e,t){Sa++,ka[Sa]=e.current,e.current=t}var Ta={},La=Ea(Ta),Pa=Ea(!1),Na=Ta;function Aa(e,t){var n=e.type.contextTypes;if(!n)return Ta;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Oa(e){return null!=(e=e.childContextTypes)}function ja(){_a(Pa),_a(La)}function Ra(e,t,n){if(La.current!==Ta)throw Error(o(168));Ca(La,t),Ca(Pa,n)}function Ia(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(o(108,U(e)||"Unknown",a));return D({},n,r)}function Fa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ta,Na=La.current,Ca(La,e),Ca(Pa,Pa.current),!0}function Da(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ia(e,t,Na),r.__reactInternalMemoizedMergedChildContext=e,_a(Pa),_a(La),Ca(La,e)):_a(Pa),Ca(Pa,n)}var Ma=null,qa=!1,Ba=!1;function za(e){null===Ma?Ma=[e]:Ma.push(e)}function $a(){if(!Ba&&null!==Ma){Ba=!0;var e=0,t=vt;try{var n=Ma;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ma=null,qa=!1}catch(a){throw null!==Ma&&(Ma=Ma.slice(e+1)),Ve(Je,$a),a}finally{vt=t,Ba=!1}}return null}var Ua=[],Ha=0,Qa=null,Za=0,Va=[],Wa=0,Ga=null,Ya=1,Ka="";function Xa(e,t){Ua[Ha++]=Za,Ua[Ha++]=Qa,Qa=e,Za=t}function Ja(e,t,n){Va[Wa++]=Ya,Va[Wa++]=Ka,Va[Wa++]=Ga,Ga=e;var r=Ya;e=Ka;var a=32-st(r)-1;r&=~(1<<a),n+=1;var o=32-st(t)+a;if(30<o){var s=a-a%5;o=(r&(1<<s)-1).toString(32),r>>=s,a-=s,Ya=1<<32-st(t)+a|n<<a|r,Ka=o+e}else Ya=1<<o|n<<a|r,Ka=e}function eo(e){null!==e.return&&(Xa(e,1),Ja(e,1,0))}function to(e){for(;e===Qa;)Qa=Ua[--Ha],Ua[Ha]=null,Za=Ua[--Ha],Ua[Ha]=null;for(;e===Ga;)Ga=Va[--Wa],Va[Wa]=null,Ka=Va[--Wa],Va[Wa]=null,Ya=Va[--Wa],Va[Wa]=null}var no=null,ro=null,ao=!1,oo=null;function so(e,t){var n=Oc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function io(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ca(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ga?{id:Ya,overflow:Ka}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Oc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function co(e){if(ao){var t=ro;if(t){var n=t;if(!io(e,t)){if(lo(e))throw Error(o(418));t=ca(n.nextSibling);var r=no;t&&io(e,t)?so(r,n):(e.flags=-4097&e.flags|2,ao=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,ao=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function po(e){if(e!==no)return!1;if(!ao)return uo(e),ao=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!na(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw fo(),Error(o(418));for(;t;)so(e,t),t=ca(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ca(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ca(e.stateNode.nextSibling):null;return!0}function fo(){for(var e=ro;e;)e=ca(e.nextSibling)}function mo(){ro=no=null,ao=!1}function ho(e){null===oo?oo=[e]:oo.push(e)}var go=x.ReactCurrentBatchConfig;function yo(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var bo=Ea(null),vo=null,xo=null,wo=null;function ko(){wo=xo=vo=null}function So(e){var t=bo.current;_a(bo),e._currentValue=t}function Eo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _o(e,t){vo=e,wo=xo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(xi=!0),e.firstContext=null)}function Co(e){var t=e._currentValue;if(wo!==e)if(e={context:e,memoizedValue:t,next:null},null===xo){if(null===vo)throw Error(o(308));xo=e,vo.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var To=null;function Lo(e){null===To?To=[e]:To.push(e)}function Po(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Lo(t)):(n.next=a.next,a.next=n),t.interleaved=n,No(e,r)}function No(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ao=!1;function Oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function jo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ro(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Io(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Pl)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,No(e,n)}return null===(a=r.interleaved)?(t.next=t,Lo(r)):(t.next=a.next,a.next=t),r.interleaved=t,No(e,n)}function Fo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Do(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=s:o=o.next=s,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Mo(e,t,n,r){var a=e.updateQueue;Ao=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,i=a.shared.pending;if(null!==i){a.shared.pending=null;var l=i,c=l.next;l.next=null,null===s?o=c:s.next=c,s=l;var u=e.alternate;null!==u&&((i=(u=u.updateQueue).lastBaseUpdate)!==s&&(null===i?u.firstBaseUpdate=c:i.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=a.baseState;for(s=0,u=c=l=null,i=o;;){var p=i.lane,f=i.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var m=e,h=i;switch(p=t,f=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=h.payload)?m.call(f,d,p):m))break e;d=D({},d,p);break e;case 2:Ao=!0}}null!==i.callback&&0!==i.lane&&(e.flags|=64,null===(p=a.effects)?a.effects=[i]:p.push(i))}else f={eventTime:f,lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,s|=p;if(null===(i=i.next)){if(null===(i=a.shared.pending))break;i=(p=i).next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}if(null===u&&(l=d),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=u,null!==(t=a.shared.interleaved)){a=t;do{s|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);Dl|=s,e.lanes=s,e.memoizedState=d}}function qo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(o(191,a));a.call(r)}}}var Bo=(new r.Component).refs;function zo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var $o={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),a=nc(e),o=Ro(r,a);o.payload=t,null!=n&&(o.callback=n),null!==(t=Io(e,o,a))&&(rc(t,e,a,r),Fo(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),a=nc(e),o=Ro(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Io(e,o,a))&&(rc(t,e,a,r),Fo(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),a=Ro(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Io(e,a,r))&&(rc(t,e,r,n),Fo(t,e,r))}};function Uo(e,t,n,r,a,o,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,s):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(a,o))}function Ho(e,t,n){var r=!1,a=Ta,o=t.contextType;return"object"==typeof o&&null!==o?o=Co(o):(a=Oa(t)?Na:La.current,o=(r=null!=(r=t.contextTypes))?Aa(e,a):Ta),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=$o,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Qo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&$o.enqueueReplaceState(t,t.state,null)}function Zo(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Bo,Oo(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=Co(o):(o=Oa(t)?Na:La.current,a.context=Aa(e,o)),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(zo(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&$o.enqueueReplaceState(a,a.state,null),Mo(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function Vo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var a=r,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=a.refs;t===Bo&&(t=a.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Wo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Go(e){return(0,e._init)(e._payload)}function Yo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Rc(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Mc(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===O&&Go(o)===t.type)?((r=a(t,n.props)).ref=Vo(e,t,n),r.return=e,r):((r=Ic(n.type,n.key,n.props,null,e.mode,r)).ref=Vo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=qc(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Fc(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Mc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Ic(t.type,t.key,t.props,null,e.mode,n)).ref=Vo(e,null,t),n.return=e,n;case k:return(t=qc(t,e.mode,n)).return=e,t;case O:return p(e,(0,t._init)(t._payload),n)}if(te(t)||I(t))return(t=Fc(t,e.mode,n,null)).return=e,t;Wo(e,t)}return null}function f(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===a?c(e,t,n,r):null;case k:return n.key===a?u(e,t,n,r):null;case O:return f(e,t,(a=n._init)(n._payload),r)}if(te(n)||I(n))return null!==a?null:d(e,t,n,r,null);Wo(e,n)}return null}function m(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case O:return m(e,t,n,(0,r._init)(r._payload),a)}if(te(r)||I(r))return d(t,e=e.get(n)||null,r,a,null);Wo(t,r)}return null}function h(a,o,i,l){for(var c=null,u=null,d=o,h=o=0,g=null;null!==d&&h<i.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var y=f(a,d,i[h],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(a,d),o=s(y,o,h),null===u?c=y:u.sibling=y,u=y,d=g}if(h===i.length)return n(a,d),ao&&Xa(a,h),c;if(null===d){for(;h<i.length;h++)null!==(d=p(a,i[h],l))&&(o=s(d,o,h),null===u?c=d:u.sibling=d,u=d);return ao&&Xa(a,h),c}for(d=r(a,d);h<i.length;h++)null!==(g=m(d,a,h,i[h],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?h:g.key),o=s(g,o,h),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(a,e)})),ao&&Xa(a,h),c}function g(a,i,l,c){var u=I(l);if("function"!=typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,h=i,g=i=0,y=null,b=l.next();null!==h&&!b.done;g++,b=l.next()){h.index>g?(y=h,h=null):y=h.sibling;var v=f(a,h,b.value,c);if(null===v){null===h&&(h=y);break}e&&h&&null===v.alternate&&t(a,h),i=s(v,i,g),null===d?u=v:d.sibling=v,d=v,h=y}if(b.done)return n(a,h),ao&&Xa(a,g),u;if(null===h){for(;!b.done;g++,b=l.next())null!==(b=p(a,b.value,c))&&(i=s(b,i,g),null===d?u=b:d.sibling=b,d=b);return ao&&Xa(a,g),u}for(h=r(a,h);!b.done;g++,b=l.next())null!==(b=m(h,a,g,b.value,c))&&(e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),i=s(b,i,g),null===d?u=b:d.sibling=b,d=b);return e&&h.forEach((function(e){return t(a,e)})),ao&&Xa(a,g),u}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===S&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case w:e:{for(var c=s.key,u=o;null!==u;){if(u.key===c){if((c=s.type)===S){if(7===u.tag){n(r,u.sibling),(o=a(u,s.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===O&&Go(c)===u.type){n(r,u.sibling),(o=a(u,s.props)).ref=Vo(r,u,s),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===S?((o=Fc(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=Ic(s.type,s.key,s.props,null,r.mode,l)).ref=Vo(r,o,s),l.return=r,r=l)}return i(r);case k:e:{for(u=s.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=a(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=qc(s,r.mode,l)).return=r,r=o}return i(r);case O:return e(r,o,(u=s._init)(s._payload),l)}if(te(s))return h(r,o,s,l);if(I(s))return g(r,o,s,l);Wo(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=a(o,s)).return=r,r=o):(n(r,o),(o=Mc(s,r.mode,l)).return=r,r=o),i(r)):n(r,o)}}var Ko=Yo(!0),Xo=Yo(!1),Jo={},es=Ea(Jo),ts=Ea(Jo),ns=Ea(Jo);function rs(e){if(e===Jo)throw Error(o(174));return e}function as(e,t){switch(Ca(ns,t),Ca(ts,e),Ca(es,Jo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_a(es),Ca(es,t)}function os(){_a(es),_a(ts),_a(ns)}function ss(e){rs(ns.current);var t=rs(es.current),n=le(t,e.type);t!==n&&(Ca(ts,e),Ca(es,n))}function is(e){ts.current===e&&(_a(es),_a(ts))}var ls=Ea(0);function cs(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var us=[];function ds(){for(var e=0;e<us.length;e++)us[e]._workInProgressVersionPrimary=null;us.length=0}var ps=x.ReactCurrentDispatcher,fs=x.ReactCurrentBatchConfig,ms=0,hs=null,gs=null,ys=null,bs=!1,vs=!1,xs=0,ws=0;function ks(){throw Error(o(321))}function Ss(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ir(e[n],t[n]))return!1;return!0}function Es(e,t,n,r,a,s){if(ms=s,hs=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ps.current=null===e||null===e.memoizedState?ii:li,e=n(r,a),vs){s=0;do{if(vs=!1,xs=0,25<=s)throw Error(o(301));s+=1,ys=gs=null,t.updateQueue=null,ps.current=ci,e=n(r,a)}while(vs)}if(ps.current=si,t=null!==gs&&null!==gs.next,ms=0,ys=gs=hs=null,bs=!1,t)throw Error(o(300));return e}function _s(){var e=0!==xs;return xs=0,e}function Cs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ys?hs.memoizedState=ys=e:ys=ys.next=e,ys}function Ts(){if(null===gs){var e=hs.alternate;e=null!==e?e.memoizedState:null}else e=gs.next;var t=null===ys?hs.memoizedState:ys.next;if(null!==t)ys=t,gs=e;else{if(null===e)throw Error(o(310));e={memoizedState:(gs=e).memoizedState,baseState:gs.baseState,baseQueue:gs.baseQueue,queue:gs.queue,next:null},null===ys?hs.memoizedState=ys=e:ys=ys.next=e}return ys}function Ls(e,t){return"function"==typeof t?t(e):t}function Ps(e){var t=Ts(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=gs,a=r.baseQueue,s=n.pending;if(null!==s){if(null!==a){var i=a.next;a.next=s.next,s.next=i}r.baseQueue=a=s,n.pending=null}if(null!==a){s=a.next,r=r.baseState;var l=i=null,c=null,u=s;do{var d=u.lane;if((ms&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,i=r):c=c.next=p,hs.lanes|=d,Dl|=d}u=u.next}while(null!==u&&u!==s);null===c?i=r:c.next=l,ir(r,t.memoizedState)||(xi=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{s=a.lane,hs.lanes|=s,Dl|=s,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ns(e){var t=Ts(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,s=t.memoizedState;if(null!==a){n.pending=null;var i=a=a.next;do{s=e(s,i.action),i=i.next}while(i!==a);ir(s,t.memoizedState)||(xi=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function As(){}function Os(e,t){var n=hs,r=Ts(),a=t(),s=!ir(r.memoizedState,a);if(s&&(r.memoizedState=a,xi=!0),r=r.queue,Hs(Is.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||null!==ys&&1&ys.memoizedState.tag){if(n.flags|=2048,qs(9,Rs.bind(null,n,r,a,t),void 0,null),null===Nl)throw Error(o(349));0!=(30&ms)||js(n,t,a)}return a}function js(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=hs.updateQueue)?(t={lastEffect:null,stores:null},hs.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Rs(e,t,n,r){t.value=n,t.getSnapshot=r,Fs(t)&&Ds(e)}function Is(e,t,n){return n((function(){Fs(t)&&Ds(e)}))}function Fs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ir(e,n)}catch(r){return!0}}function Ds(e){var t=No(e,1);null!==t&&rc(t,e,1,-1)}function Ms(e){var t=Cs();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ls,lastRenderedState:e},t.queue=e,e=e.dispatch=ni.bind(null,hs,e),[t.memoizedState,e]}function qs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=hs.updateQueue)?(t={lastEffect:null,stores:null},hs.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Bs(){return Ts().memoizedState}function zs(e,t,n,r){var a=Cs();hs.flags|=e,a.memoizedState=qs(1|t,n,void 0,void 0===r?null:r)}function $s(e,t,n,r){var a=Ts();r=void 0===r?null:r;var o=void 0;if(null!==gs){var s=gs.memoizedState;if(o=s.destroy,null!==r&&Ss(r,s.deps))return void(a.memoizedState=qs(t,n,o,r))}hs.flags|=e,a.memoizedState=qs(1|t,n,o,r)}function Us(e,t){return zs(8390656,8,e,t)}function Hs(e,t){return $s(2048,8,e,t)}function Qs(e,t){return $s(4,2,e,t)}function Zs(e,t){return $s(4,4,e,t)}function Vs(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ws(e,t,n){return n=null!=n?n.concat([e]):null,$s(4,4,Vs.bind(null,t,e),n)}function Gs(){}function Ys(e,t){var n=Ts();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ss(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ks(e,t){var n=Ts();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ss(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xs(e,t,n){return 0==(21&ms)?(e.baseState&&(e.baseState=!1,xi=!0),e.memoizedState=n):(ir(n,t)||(n=ht(),hs.lanes|=n,Dl|=n,e.baseState=!0),t)}function Js(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=fs.transition;fs.transition={};try{e(!1),t()}finally{vt=n,fs.transition=r}}function ei(){return Ts().memoizedState}function ti(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ri(e))ai(t,n);else if(null!==(n=Po(e,t,n,r))){rc(n,e,r,tc()),oi(n,t,r)}}function ni(e,t,n){var r=nc(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ri(e))ai(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,i=o(s,n);if(a.hasEagerState=!0,a.eagerState=i,ir(i,s)){var l=t.interleaved;return null===l?(a.next=a,Lo(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}}catch(c){}null!==(n=Po(e,t,a,r))&&(rc(n,e,r,a=tc()),oi(n,t,r))}}function ri(e){var t=e.alternate;return e===hs||null!==t&&t===hs}function ai(e,t){vs=bs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oi(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var si={readContext:Co,useCallback:ks,useContext:ks,useEffect:ks,useImperativeHandle:ks,useInsertionEffect:ks,useLayoutEffect:ks,useMemo:ks,useReducer:ks,useRef:ks,useState:ks,useDebugValue:ks,useDeferredValue:ks,useTransition:ks,useMutableSource:ks,useSyncExternalStore:ks,useId:ks,unstable_isNewReconciler:!1},ii={readContext:Co,useCallback:function(e,t){return Cs().memoizedState=[e,void 0===t?null:t],e},useContext:Co,useEffect:Us,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,zs(4194308,4,Vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zs(4194308,4,e,t)},useInsertionEffect:function(e,t){return zs(4,2,e,t)},useMemo:function(e,t){var n=Cs();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Cs();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ti.bind(null,hs,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Cs().memoizedState=e},useState:Ms,useDebugValue:Gs,useDeferredValue:function(e){return Cs().memoizedState=e},useTransition:function(){var e=Ms(!1),t=e[0];return e=Js.bind(null,e[1]),Cs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=hs,a=Cs();if(ao){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Nl)throw Error(o(349));0!=(30&ms)||js(r,t,n)}a.memoizedState=n;var s={value:n,getSnapshot:t};return a.queue=s,Us(Is.bind(null,r,s,e),[e]),r.flags|=2048,qs(9,Rs.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Cs(),t=Nl.identifierPrefix;if(ao){var n=Ka;t=":"+t+"R"+(n=(Ya&~(1<<32-st(Ya)-1)).toString(32)+n),0<(n=xs++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ws++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},li={readContext:Co,useCallback:Ys,useContext:Co,useEffect:Hs,useImperativeHandle:Ws,useInsertionEffect:Qs,useLayoutEffect:Zs,useMemo:Ks,useReducer:Ps,useRef:Bs,useState:function(){return Ps(Ls)},useDebugValue:Gs,useDeferredValue:function(e){return Xs(Ts(),gs.memoizedState,e)},useTransition:function(){return[Ps(Ls)[0],Ts().memoizedState]},useMutableSource:As,useSyncExternalStore:Os,useId:ei,unstable_isNewReconciler:!1},ci={readContext:Co,useCallback:Ys,useContext:Co,useEffect:Hs,useImperativeHandle:Ws,useInsertionEffect:Qs,useLayoutEffect:Zs,useMemo:Ks,useReducer:Ns,useRef:Bs,useState:function(){return Ns(Ls)},useDebugValue:Gs,useDeferredValue:function(e){var t=Ts();return null===gs?t.memoizedState=e:Xs(t,gs.memoizedState,e)},useTransition:function(){return[Ns(Ls)[0],Ts().memoizedState]},useMutableSource:As,useSyncExternalStore:Os,useId:ei,unstable_isNewReconciler:!1};function ui(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:a,digest:null}}function di(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function pi(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fi="function"==typeof WeakMap?WeakMap:Map;function mi(e,t,n){(n=Ro(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ql||(Ql=!0,Zl=r),pi(0,t)},n}function hi(e,t,n){(n=Ro(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){pi(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){pi(0,t),"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gi(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fi;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function yi(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bi(e,t,n,r,a){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ro(-1,1)).tag=2,Io(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var vi=x.ReactCurrentOwner,xi=!1;function wi(e,t,n,r){t.child=null===e?Xo(t,null,n,r):Ko(t,e.child,n,r)}function ki(e,t,n,r,a){n=n.render;var o=t.ref;return _o(t,a),r=Es(e,t,n,r,o,a),n=_s(),null===e||xi?(ao&&n&&eo(t),t.flags|=1,wi(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Qi(e,t,a))}function Si(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||jc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ic(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ei(e,t,o,r,a))}if(o=e.child,0==(e.lanes&a)){var s=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(s,r)&&e.ref===t.ref)return Qi(e,t,a)}return t.flags|=1,(e=Rc(o,r)).ref=t.ref,e.return=t,t.child=e}function Ei(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(xi=!1,t.pendingProps=r=o,0==(e.lanes&a))return t.lanes=e.lanes,Qi(e,t,a);0!=(131072&e.flags)&&(xi=!0)}}return Ti(e,t,n,r,a)}function _i(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ca(Rl,jl),jl|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ca(Rl,jl),jl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ca(Rl,jl),jl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ca(Rl,jl),jl|=r;return wi(e,t,a,n),t.child}function Ci(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ti(e,t,n,r,a){var o=Oa(n)?Na:La.current;return o=Aa(t,o),_o(t,a),n=Es(e,t,n,r,o,a),r=_s(),null===e||xi?(ao&&r&&eo(t),t.flags|=1,wi(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Qi(e,t,a))}function Li(e,t,n,r,a){if(Oa(n)){var o=!0;Fa(t)}else o=!1;if(_o(t,a),null===t.stateNode)Hi(e,t),Ho(t,n,r),Zo(t,n,r,a),r=!0;else if(null===e){var s=t.stateNode,i=t.memoizedProps;s.props=i;var l=s.context,c=n.contextType;"object"==typeof c&&null!==c?c=Co(c):c=Aa(t,c=Oa(n)?Na:La.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof s.getSnapshotBeforeUpdate;d||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(i!==r||l!==c)&&Qo(t,s,r,c),Ao=!1;var p=t.memoizedState;s.state=p,Mo(t,r,s,a),l=t.memoizedState,i!==r||p!==l||Pa.current||Ao?("function"==typeof u&&(zo(t,n,u,r),l=t.memoizedState),(i=Ao||Uo(t,n,i,r,p,l,c))?(d||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=i):("function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,jo(e,t),i=t.memoizedProps,c=t.type===t.elementType?i:yo(t.type,i),s.props=c,d=t.pendingProps,p=s.context,"object"==typeof(l=n.contextType)&&null!==l?l=Co(l):l=Aa(t,l=Oa(n)?Na:La.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(i!==d||p!==l)&&Qo(t,s,r,l),Ao=!1,p=t.memoizedState,s.state=p,Mo(t,r,s,a);var m=t.memoizedState;i!==d||p!==m||Pa.current||Ao?("function"==typeof f&&(zo(t,n,f,r),m=t.memoizedState),(c=Ao||Uo(t,n,c,r,p,m,l)||!1)?(u||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,m,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,m,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),s.props=r,s.state=m,s.context=l,r=c):("function"!=typeof s.componentDidUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Pi(e,t,n,r,o,a)}function Pi(e,t,n,r,a,o){Ci(e,t);var s=0!=(128&t.flags);if(!r&&!s)return a&&Da(t,n,!1),Qi(e,t,o);r=t.stateNode,vi.current=t;var i=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=Ko(t,e.child,null,o),t.child=Ko(t,null,i,o)):wi(e,t,i,o),t.memoizedState=r.state,a&&Da(t,n,!0),t.child}function Ni(e){var t=e.stateNode;t.pendingContext?Ra(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ra(0,t.context,!1),as(e,t.containerInfo)}function Ai(e,t,n,r,a){return mo(),ho(a),t.flags|=256,wi(e,t,n,r),t.child}var Oi,ji,Ri,Ii,Fi={dehydrated:null,treeContext:null,retryLane:0};function Di(e){return{baseLanes:e,cachePool:null,transitions:null}}function Mi(e,t,n){var r,a=t.pendingProps,s=ls.current,i=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&s)),r?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Ca(ls,1&s),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=a.children,e=a.fallback,i?(a=t.mode,i=t.child,l={mode:"hidden",children:l},0==(1&a)&&null!==i?(i.childLanes=0,i.pendingProps=l):i=Dc(l,a,0,null),e=Fc(e,a,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Di(n),t.memoizedState=Fi,e):qi(t,l));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,a,s,i){if(n)return 256&t.flags?(t.flags&=-257,Bi(e,t,i,r=di(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,a=t.mode,r=Dc({mode:"visible",children:r.children},a,0,null),(s=Fc(s,a,i,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,0!=(1&t.mode)&&Ko(t,e.child,null,i),t.child.memoizedState=Di(i),t.memoizedState=Fi,s);if(0==(1&t.mode))return Bi(e,t,i,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var l=r.dgst;return r=l,Bi(e,t,i,r=di(s=Error(o(419)),r,void 0))}if(l=0!=(i&e.childLanes),xi||l){if(null!==(r=Nl)){switch(i&-i){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!=(a&(r.suspendedLanes|i))?0:a)&&a!==s.retryLane&&(s.retryLane=a,No(e,a),rc(r,e,a,-1))}return gc(),Bi(e,t,i,r=di(Error(o(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Lc.bind(null,e),a._reactRetry=t,null):(e=s.treeContext,ro=ca(a.nextSibling),no=t,ao=!0,oo=null,null!==e&&(Va[Wa++]=Ya,Va[Wa++]=Ka,Va[Wa++]=Ga,Ya=e.id,Ka=e.overflow,Ga=t),t=qi(t,r.children),t.flags|=4096,t)}(e,t,l,a,r,s,n);if(i){i=a.fallback,l=t.mode,r=(s=e.child).sibling;var c={mode:"hidden",children:a.children};return 0==(1&l)&&t.child!==s?((a=t.child).childLanes=0,a.pendingProps=c,t.deletions=null):(a=Rc(s,c)).subtreeFlags=14680064&s.subtreeFlags,null!==r?i=Rc(r,i):(i=Fc(i,l,n,null)).flags|=2,i.return=t,a.return=t,a.sibling=i,t.child=a,a=i,i=t.child,l=null===(l=e.child.memoizedState)?Di(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Fi,a}return e=(i=e.child).sibling,a=Rc(i,{mode:"visible",children:a.children}),0==(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function qi(e,t){return(t=Dc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bi(e,t,n,r){return null!==r&&ho(r),Ko(t,e.child,null,n),(e=qi(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zi(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Eo(e.return,t,n)}function $i(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Ui(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(wi(e,t,r.children,n),0!=(2&(r=ls.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zi(e,n,t);else if(19===e.tag)zi(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ca(ls,r),0==(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===cs(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),$i(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===cs(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}$i(t,!0,n,null,o);break;case"together":$i(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hi(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qi(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Dl|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Rc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Rc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zi(e,t){if(!ao)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vi(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Wi(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vi(t),null;case 1:case 17:return Oa(t.type)&&ja(),Vi(t),null;case 3:return r=t.stateNode,os(),_a(Pa),_a(La),ds(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(po(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==oo&&(ic(oo),oo=null))),ji(e,t),Vi(t),null;case 5:is(t);var a=rs(ns.current);if(n=t.type,null!==e&&null!=t.stateNode)Ri(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Vi(t),null}if(e=rs(es.current),po(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[pa]=t,r[fa]=s,e=0!=(1&t.mode),n){case"dialog":qr("cancel",r),qr("close",r);break;case"iframe":case"object":case"embed":qr("load",r);break;case"video":case"audio":for(a=0;a<Ir.length;a++)qr(Ir[a],r);break;case"source":qr("error",r);break;case"img":case"image":case"link":qr("error",r),qr("load",r);break;case"details":qr("toggle",r);break;case"input":Y(r,s),qr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},qr("invalid",r);break;case"textarea":ae(r,s),qr("invalid",r)}for(var l in be(n,s),a=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?r.textContent!==c&&(!0!==s.suppressHydrationWarning&&Xr(r.textContent,c,e),a=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==s.suppressHydrationWarning&&Xr(r.textContent,c,e),a=["children",""+c]):i.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&qr("scroll",r)}switch(n){case"input":Z(r),J(r,s,!0);break;case"textarea":Z(r),se(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Jr)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ie(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[pa]=t,e[fa]=r,Oi(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(n,r),n){case"dialog":qr("cancel",e),qr("close",e),a=r;break;case"iframe":case"object":case"embed":qr("load",e),a=r;break;case"video":case"audio":for(a=0;a<Ir.length;a++)qr(Ir[a],e);a=r;break;case"source":qr("error",e),a=r;break;case"img":case"image":case"link":qr("error",e),qr("load",e),a=r;break;case"details":qr("toggle",e),a=r;break;case"input":Y(e,r),a=G(e,r),qr("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=D({},r,{value:void 0}),qr("invalid",e);break;case"textarea":ae(e,r),a=re(e,r),qr("invalid",e)}for(s in be(n,a),c=a)if(c.hasOwnProperty(s)){var u=c[s];"style"===s?ge(e,u):"dangerouslySetInnerHTML"===s?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===s?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(i.hasOwnProperty(s)?null!=u&&"onScroll"===s&&qr("scroll",e):null!=u&&v(e,s,u,l))}switch(n){case"input":Z(e),J(e,r,!1);break;case"textarea":Z(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ne(e,!!r.multiple,s,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vi(t),null;case 6:if(e&&null!=t.stateNode)Ii(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=rs(ns.current),rs(es.current),po(t)){if(r=t.stateNode,n=t.memoizedProps,r[pa]=t,(s=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Xr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!=(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[pa]=t,t.stateNode=r}return Vi(t),null;case 13:if(_a(ls),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ao&&null!==ro&&0!=(1&t.mode)&&0==(128&t.flags))fo(),mo(),t.flags|=98560,s=!1;else if(s=po(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(o(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(o(317));s[pa]=t}else mo(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vi(t),s=!1}else null!==oo&&(ic(oo),oo=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ls.current)?0===Il&&(Il=3):gc())),null!==t.updateQueue&&(t.flags|=4),Vi(t),null);case 4:return os(),ji(e,t),null===e&&$r(t.stateNode.containerInfo),Vi(t),null;case 10:return So(t.type._context),Vi(t),null;case 19:if(_a(ls),null===(s=t.memoizedState))return Vi(t),null;if(r=0!=(128&t.flags),null===(l=s.rendering))if(r)Zi(s,!1);else{if(0!==Il||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=cs(e))){for(t.flags|=128,Zi(s,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ca(ls,1&ls.current|2),t.child}e=e.sibling}null!==s.tail&&Ke()>Ul&&(t.flags|=128,r=!0,Zi(s,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=cs(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Zi(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ao)return Vi(t),null}else 2*Ke()-s.renderingStartTime>Ul&&1073741824!==n&&(t.flags|=128,r=!0,Zi(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ke(),t.sibling=null,n=ls.current,Ca(ls,r?1&n|2:1&n),t):(Vi(t),null);case 22:case 23:return pc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&jl)&&(Vi(t),6&t.subtreeFlags&&(t.flags|=8192)):Vi(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Gi(e,t){switch(to(t),t.tag){case 1:return Oa(t.type)&&ja(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return os(),_a(Pa),_a(La),ds(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return is(t),null;case 13:if(_a(ls),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));mo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _a(ls),null;case 4:return os(),null;case 10:return So(t.type._context),null;case 22:case 23:return pc(),null;default:return null}}Oi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ji=function(){},Ri=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,rs(es.current);var o,s=null;switch(n){case"input":a=G(e,a),r=G(e,r),s=[];break;case"select":a=D({},a,{value:void 0}),r=D({},r,{value:void 0}),s=[];break;case"textarea":a=re(e,a),r=re(e,r),s=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(u in be(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u){var l=a[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(i.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(s||(s=[]),s.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(i.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&qr("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},Ii=function(e,t,n,r){n!==r&&(t.flags|=4)};var Yi=!1,Ki=!1,Xi="function"==typeof WeakSet?WeakSet:Set,Ji=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){_c(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){_c(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&tl(t,n,o)}a=a.next}while(a!==r)}}function al(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function sl(e){var t=e.alternate;null!==t&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pa],delete t[fa],delete t[ha],delete t[ga],delete t[ya])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function il(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||il(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var dl=null,pl=!1;function fl(e,t,n){for(n=n.child;null!==n;)ml(e,t,n),n=n.sibling}function ml(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(at,n)}catch(i){}switch(n.tag){case 5:Ki||el(n,t);case 6:var r=dl,a=pl;dl=null,fl(e,t,n),pl=a,null!==(dl=r)&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?la(e.parentNode,n):1===e.nodeType&&la(e,n),$t(e)):la(dl,n.stateNode));break;case 4:r=dl,a=pl,dl=n.stateNode.containerInfo,pl=!0,fl(e,t,n),dl=r,pl=a;break;case 0:case 11:case 14:case 15:if(!Ki&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var o=a,s=o.destroy;o=o.tag,void 0!==s&&(0!=(2&o)||0!=(4&o))&&tl(n,t,s),a=a.next}while(a!==r)}fl(e,t,n);break;case 1:if(!Ki&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){_c(n,t,i)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ki=(r=Ki)||null!==n.memoizedState,fl(e,t,n),Ki=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xi),t.forEach((function(t){var r=Pc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var s=e,i=t,l=i;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,pl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,pl=!0;break e}l=l.return}if(null===dl)throw Error(o(160));ml(s,i,a),dl=null,pl=!1;var c=a.alternate;null!==c&&(c.return=null),a.return=null}catch(u){_c(a,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)yl(t,e),t=t.sibling}function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),bl(e),4&r){try{rl(3,e,e.return),al(3,e)}catch(g){_c(e,e.return,g)}try{rl(5,e,e.return)}catch(g){_c(e,e.return,g)}}break;case 1:gl(t,e),bl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(gl(t,e),bl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var a=e.stateNode;try{pe(a,"")}catch(g){_c(e,e.return,g)}}if(4&r&&null!=(a=e.stateNode)){var s=e.memoizedProps,i=null!==n?n.memoizedProps:s,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===s.type&&null!=s.name&&K(a,s),ve(l,i);var u=ve(l,s);for(i=0;i<c.length;i+=2){var d=c[i],p=c[i+1];"style"===d?ge(a,p):"dangerouslySetInnerHTML"===d?de(a,p):"children"===d?pe(a,p):v(a,d,p,u)}switch(l){case"input":X(a,s);break;case"textarea":oe(a,s);break;case"select":var f=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!s.multiple;var m=s.value;null!=m?ne(a,!!s.multiple,m,!1):f!==!!s.multiple&&(null!=s.defaultValue?ne(a,!!s.multiple,s.defaultValue,!0):ne(a,!!s.multiple,s.multiple?[]:"",!1))}a[fa]=s}catch(g){_c(e,e.return,g)}}break;case 6:if(gl(t,e),bl(e),4&r){if(null===e.stateNode)throw Error(o(162));a=e.stateNode,s=e.memoizedProps;try{a.nodeValue=s}catch(g){_c(e,e.return,g)}}break;case 3:if(gl(t,e),bl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{$t(t.containerInfo)}catch(g){_c(e,e.return,g)}break;case 4:default:gl(t,e),bl(e);break;case 13:gl(t,e),bl(e),8192&(a=e.child).flags&&(s=null!==a.memoizedState,a.stateNode.isHidden=s,!s||null!==a.alternate&&null!==a.alternate.memoizedState||($l=Ke())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ki=(u=Ki)||d,gl(t,e),Ki=u):gl(t,e),bl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Ji=e,d=e.child;null!==d;){for(p=Ji=d;null!==Ji;){switch(m=(f=Ji).child,f.tag){case 0:case 11:case 14:case 15:rl(4,f,f.return);break;case 1:el(f,f.return);var h=f.stateNode;if("function"==typeof h.componentWillUnmount){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(g){_c(r,n,g)}}break;case 5:el(f,f.return);break;case 22:if(null!==f.memoizedState){kl(p);continue}}null!==m?(m.return=f,Ji=m):kl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{a=p.stateNode,u?"function"==typeof(s=a.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=p.stateNode,i=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=he("display",i))}catch(g){_c(e,e.return,g)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(g){_c(e,e.return,g)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:gl(t,e),bl(e),4&r&&hl(e);case 21:}}function bl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(il(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(pe(a,""),r.flags&=-33),ul(e,ll(e),a);break;case 3:case 4:var s=r.stateNode.containerInfo;cl(e,ll(e),s);break;default:throw Error(o(161))}}catch(i){_c(e,e.return,i)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Ji=e,xl(e,t,n)}function xl(e,t,n){for(var r=0!=(1&e.mode);null!==Ji;){var a=Ji,o=a.child;if(22===a.tag&&r){var s=null!==a.memoizedState||Yi;if(!s){var i=a.alternate,l=null!==i&&null!==i.memoizedState||Ki;i=Yi;var c=Ki;if(Yi=s,(Ki=l)&&!c)for(Ji=a;null!==Ji;)l=(s=Ji).child,22===s.tag&&null!==s.memoizedState?Sl(a):null!==l?(l.return=s,Ji=l):Sl(a);for(;null!==o;)Ji=o,xl(o,t,n),o=o.sibling;Ji=a,Yi=i,Ki=c}wl(e)}else 0!=(8772&a.subtreeFlags)&&null!==o?(o.return=a,Ji=o):wl(e)}}function wl(e){for(;null!==Ji;){var t=Ji;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ki||al(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ki)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:yo(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&qo(t,s,r);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}qo(t,i,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&$t(p)}}}break;default:throw Error(o(163))}Ki||512&t.flags&&ol(t)}catch(f){_c(t,t.return,f)}}if(t===e){Ji=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ji=n;break}Ji=t.return}}function kl(e){for(;null!==Ji;){var t=Ji;if(t===e){Ji=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ji=n;break}Ji=t.return}}function Sl(e){for(;null!==Ji;){var t=Ji;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{al(4,t)}catch(l){_c(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(l){_c(t,a,l)}}var o=t.return;try{ol(t)}catch(l){_c(t,o,l)}break;case 5:var s=t.return;try{ol(t)}catch(l){_c(t,s,l)}}}catch(l){_c(t,t.return,l)}if(t===e){Ji=null;break}var i=t.sibling;if(null!==i){i.return=t.return,Ji=i;break}Ji=t.return}}var El,_l=Math.ceil,Cl=x.ReactCurrentDispatcher,Tl=x.ReactCurrentOwner,Ll=x.ReactCurrentBatchConfig,Pl=0,Nl=null,Al=null,Ol=0,jl=0,Rl=Ea(0),Il=0,Fl=null,Dl=0,Ml=0,ql=0,Bl=null,zl=null,$l=0,Ul=1/0,Hl=null,Ql=!1,Zl=null,Vl=null,Wl=!1,Gl=null,Yl=0,Kl=0,Xl=null,Jl=-1,ec=0;function tc(){return 0!=(6&Pl)?Ke():-1!==Jl?Jl:Jl=Ke()}function nc(e){return 0==(1&e.mode)?1:0!=(2&Pl)&&0!==Ol?Ol&-Ol:null!==go.transition?(0===ec&&(ec=ht()),ec):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function rc(e,t,n,r){if(50<Kl)throw Kl=0,Xl=null,Error(o(185));yt(e,n,r),0!=(2&Pl)&&e===Nl||(e===Nl&&(0==(2&Pl)&&(Ml|=n),4===Il&&lc(e,Ol)),ac(e,r),1===n&&0===Pl&&0==(1&t.mode)&&(Ul=Ke()+500,qa&&$a()))}function ac(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-st(o),i=1<<s,l=a[s];-1===l?0!=(i&n)&&0==(i&r)||(a[s]=ft(i,t)):l<=t&&(e.expiredLanes|=i),o&=~i}}(e,t);var r=pt(e,e===Nl?Ol:0);if(0===r)null!==n&&We(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&We(n),1===t)0===e.tag?function(e){qa=!0,za(e)}(cc.bind(null,e)):za(cc.bind(null,e)),sa((function(){0==(6&Pl)&&$a()})),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Nc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Jl=-1,ec=0,0!=(6&Pl))throw Error(o(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=pt(e,e===Nl?Ol:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=yc(e,r);else{t=r;var a=Pl;Pl|=2;var s=hc();for(Nl===e&&Ol===t||(Hl=null,Ul=Ke()+500,fc(e,t));;)try{vc();break}catch(l){mc(e,l)}ko(),Cl.current=s,Pl=a,null!==Al?t=0:(Nl=null,Ol=0,t=Il)}if(0!==t){if(2===t&&(0!==(a=mt(e))&&(r=a,t=sc(e,a))),1===t)throw n=Fl,fc(e,0),lc(e,r),ac(e,Ke()),n;if(6===t)lc(e,r);else{if(a=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!ir(o(),a))return!1}catch(i){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)&&(2===(t=yc(e,r))&&(0!==(s=mt(e))&&(r=s,t=sc(e,s))),1===t))throw n=Fl,fc(e,0),lc(e,r),ac(e,Ke()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:kc(e,zl,Hl);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=$l+500-Ke())){if(0!==pt(e,0))break;if(((a=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ra(kc.bind(null,e,zl,Hl),t);break}kc(e,zl,Hl);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var i=31-st(r);s=1<<i,(i=t[i])>a&&(a=i),r&=~s}if(r=a,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_l(r/1960))-r)){e.timeoutHandle=ra(kc.bind(null,e,zl,Hl),r);break}kc(e,zl,Hl);break;default:throw Error(o(329))}}}return ac(e,Ke()),e.callbackNode===n?oc.bind(null,e):null}function sc(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=yc(e,t))&&(t=zl,zl=n,null!==t&&ic(t)),e}function ic(e){null===zl?zl=e:zl.push.apply(zl,e)}function lc(e,t){for(t&=~ql,t&=~Ml,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!=(6&Pl))throw Error(o(327));Sc();var t=pt(e,0);if(0==(1&t))return ac(e,Ke()),null;var n=yc(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=sc(e,r))}if(1===n)throw n=Fl,fc(e,0),lc(e,t),ac(e,Ke()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kc(e,zl,Hl),ac(e,Ke()),null}function uc(e,t){var n=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=n)&&(Ul=Ke()+500,qa&&$a())}}function dc(e){null!==Gl&&0===Gl.tag&&0==(6&Pl)&&Sc();var t=Pl;Pl|=1;var n=Ll.transition,r=vt;try{if(Ll.transition=null,vt=1,e)return e()}finally{vt=r,Ll.transition=n,0==(6&(Pl=t))&&$a()}}function pc(){jl=Rl.current,_a(Rl)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==Al)for(n=Al.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&ja();break;case 3:os(),_a(Pa),_a(La),ds();break;case 5:is(r);break;case 4:os();break;case 13:case 19:_a(ls);break;case 10:So(r.type._context);break;case 22:case 23:pc()}n=n.return}if(Nl=e,Al=e=Rc(e.current,null),Ol=jl=t,Il=0,Fl=null,ql=Ml=Dl=0,zl=Bl=null,null!==To){for(t=0;t<To.length;t++)if(null!==(r=(n=To[t]).interleaved)){n.interleaved=null;var a=r.next,o=n.pending;if(null!==o){var s=o.next;o.next=a,r.next=s}n.pending=r}To=null}return e}function mc(e,t){for(;;){var n=Al;try{if(ko(),ps.current=si,bs){for(var r=hs.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}bs=!1}if(ms=0,ys=gs=hs=null,vs=!1,xs=0,Tl.current=null,null===n||null===n.return){Il=1,Fl=t,Al=null;break}e:{var s=e,i=n.return,l=n,c=t;if(t=Ol,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(0==(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=yi(i);if(null!==m){m.flags&=-257,bi(m,i,l,0,t),1&m.mode&&gi(s,u,t),c=u;var h=(t=m).updateQueue;if(null===h){var g=new Set;g.add(c),t.updateQueue=g}else h.add(c);break e}if(0==(1&t)){gi(s,u,t),gc();break e}c=Error(o(426))}else if(ao&&1&l.mode){var y=yi(i);if(null!==y){0==(65536&y.flags)&&(y.flags|=256),bi(y,i,l,0,t),ho(ui(c,l));break e}}s=c=ui(c,l),4!==Il&&(Il=2),null===Bl?Bl=[s]:Bl.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,Do(s,mi(0,c,t));break e;case 1:l=c;var b=s.type,v=s.stateNode;if(0==(128&s.flags)&&("function"==typeof b.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===Vl||!Vl.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t,Do(s,hi(s,l,t));break e}}s=s.return}while(null!==s)}wc(n)}catch(x){t=x,Al===n&&null!==n&&(Al=n=n.return);continue}break}}function hc(){var e=Cl.current;return Cl.current=si,null===e?si:e}function gc(){0!==Il&&3!==Il&&2!==Il||(Il=4),null===Nl||0==(268435455&Dl)&&0==(268435455&Ml)||lc(Nl,Ol)}function yc(e,t){var n=Pl;Pl|=2;var r=hc();for(Nl===e&&Ol===t||(Hl=null,fc(e,t));;)try{bc();break}catch(a){mc(e,a)}if(ko(),Pl=n,Cl.current=r,null!==Al)throw Error(o(261));return Nl=null,Ol=0,Il}function bc(){for(;null!==Al;)xc(Al)}function vc(){for(;null!==Al&&!Ge();)xc(Al)}function xc(e){var t=El(e.alternate,e,jl);e.memoizedProps=e.pendingProps,null===t?wc(e):Al=t,Tl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Wi(n,t,jl)))return void(Al=n)}else{if(null!==(n=Gi(n,t)))return n.flags&=32767,void(Al=n);if(null===e)return Il=6,void(Al=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Al=t);Al=t=e}while(null!==t);0===Il&&(Il=5)}function kc(e,t,n){var r=vt,a=Ll.transition;try{Ll.transition=null,vt=1,function(e,t,n,r){do{Sc()}while(null!==Gl);if(0!=(6&Pl))throw Error(o(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-st(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(e,s),e===Nl&&(Al=Nl=null,Ol=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Wl||(Wl=!0,Nc(tt,(function(){return Sc(),null}))),s=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||s){s=Ll.transition,Ll.transition=null;var i=vt;vt=1;var l=Pl;Pl|=4,Tl.current=null,function(e,t){if(ea=Ht,fr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(w){n=null;break e}var i=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var m;p!==n||0!==a&&3!==p.nodeType||(l=i+a),p!==s||0!==r&&3!==p.nodeType||(c=i+r),3===p.nodeType&&(i+=p.nodeValue.length),null!==(m=p.firstChild);)f=p,p=m;for(;;){if(p===e)break t;if(f===n&&++u===a&&(l=i),f===s&&++d===r&&(c=i),null!==(m=p.nextSibling))break;f=(p=f).parentNode}p=m}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ta={focusedElem:e,selectionRange:n},Ht=!1,Ji=t;null!==Ji;)if(e=(t=Ji).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Ji=e;else for(;null!==Ji;){t=Ji;try{var h=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var g=h.memoizedProps,y=h.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:yo(t.type,g),y);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(o(163))}}catch(w){_c(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Ji=e;break}Ji=t.return}h=nl,nl=!1}(e,n),yl(n,e),mr(ta),Ht=!!ea,ta=ea=null,e.current=n,vl(n,e,a),Ye(),Pl=l,vt=i,Ll.transition=s}else e.current=n;if(Wl&&(Wl=!1,Gl=e,Yl=a),s=e.pendingLanes,0===s&&(Vl=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(at,e,void 0,128==(128&e.current.flags))}catch(t){}}(n.stateNode),ac(e,Ke()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(Ql)throw Ql=!1,e=Zl,Zl=null,e;0!=(1&Yl)&&0!==e.tag&&Sc(),s=e.pendingLanes,0!=(1&s)?e===Xl?Kl++:(Kl=0,Xl=e):Kl=0,$a()}(e,t,n,r)}finally{Ll.transition=a,vt=r}return null}function Sc(){if(null!==Gl){var e=xt(Yl),t=Ll.transition,n=vt;try{if(Ll.transition=null,vt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Yl=0,0!=(6&Pl))throw Error(o(331));var a=Pl;for(Pl|=4,Ji=e.current;null!==Ji;){var s=Ji,i=s.child;if(0!=(16&Ji.flags)){var l=s.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Ji=u;null!==Ji;){var d=Ji;switch(d.tag){case 0:case 11:case 15:rl(8,d,s)}var p=d.child;if(null!==p)p.return=d,Ji=p;else for(;null!==Ji;){var f=(d=Ji).sibling,m=d.return;if(sl(d),d===u){Ji=null;break}if(null!==f){f.return=m,Ji=f;break}Ji=m}}}var h=s.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Ji=s}}if(0!=(2064&s.subtreeFlags)&&null!==i)i.return=s,Ji=i;else e:for(;null!==Ji;){if(0!=(2048&(s=Ji).flags))switch(s.tag){case 0:case 11:case 15:rl(9,s,s.return)}var b=s.sibling;if(null!==b){b.return=s.return,Ji=b;break e}Ji=s.return}}var v=e.current;for(Ji=v;null!==Ji;){var x=(i=Ji).child;if(0!=(2064&i.subtreeFlags)&&null!==x)x.return=i,Ji=x;else e:for(i=v;null!==Ji;){if(0!=(2048&(l=Ji).flags))try{switch(l.tag){case 0:case 11:case 15:al(9,l)}}catch(k){_c(l,l.return,k)}if(l===i){Ji=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Ji=w;break e}Ji=l.return}}if(Pl=a,$a(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(at,e)}catch(k){}r=!0}return r}finally{vt=n,Ll.transition=t}}return!1}function Ec(e,t,n){e=Io(e,t=mi(0,t=ui(n,t),1),1),t=tc(),null!==e&&(yt(e,1,t),ac(e,t))}function _c(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){t=Io(t,e=hi(t,e=ui(n,e),1),1),e=tc(),null!==t&&(yt(t,1,e),ac(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Nl===e&&(Ol&n)===n&&(4===Il||3===Il&&(130023424&Ol)===Ol&&500>Ke()-$l?fc(e,0):ql|=n),ac(e,t)}function Tc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=tc();null!==(e=No(e,t))&&(yt(e,t,n),ac(e,n))}function Lc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function Pc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Tc(e,n)}function Nc(e,t){return Ve(e,t)}function Ac(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oc(e,t,n,r){return new Ac(e,t,n,r)}function jc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Rc(e,t){var n=e.alternate;return null===n?((n=Oc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ic(e,t,n,r,a,s){var i=2;if(r=e,"function"==typeof e)jc(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case S:return Fc(n.children,a,s,t);case E:i=8,a|=8;break;case _:return(e=Oc(12,n,t,2|a)).elementType=_,e.lanes=s,e;case P:return(e=Oc(13,n,t,a)).elementType=P,e.lanes=s,e;case N:return(e=Oc(19,n,t,a)).elementType=N,e.lanes=s,e;case j:return Dc(n,a,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:i=10;break e;case T:i=9;break e;case L:i=11;break e;case A:i=14;break e;case O:i=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Oc(i,n,t,a)).elementType=e,t.type=r,t.lanes=s,t}function Fc(e,t,n,r){return(e=Oc(7,e,r,t)).lanes=n,e}function Dc(e,t,n,r){return(e=Oc(22,e,r,t)).elementType=j,e.lanes=n,e.stateNode={isHidden:!1},e}function Mc(e,t,n){return(e=Oc(6,e,null,t)).lanes=n,e}function qc(e,t,n){return(t=Oc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function zc(e,t,n,r,a,o,s,i,l){return e=new Bc(e,t,n,i,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Oc(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oo(o),e}function $c(e){if(!e)return Ta;e:{if($e(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Oa(n))return Ia(e,n,t)}return t}function Uc(e,t,n,r,a,o,s,i,l){return(e=zc(n,r,!0,e,0,o,0,i,l)).context=$c(null),n=e.current,(o=Ro(r=tc(),a=nc(n))).callback=null!=t?t:null,Io(n,o,a),e.current.lanes=a,yt(e,a,r),ac(e,r),e}function Hc(e,t,n,r){var a=t.current,o=tc(),s=nc(a);return n=$c(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ro(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Io(a,t,s))&&(rc(e,a,s,o),Fo(e,a,s)),s}function Qc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){Zc(e,t),(e=e.alternate)&&Zc(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Pa.current)xi=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return xi=!1,function(e,t,n){switch(t.tag){case 3:Ni(t),mo();break;case 5:ss(t);break;case 1:Oa(t.type)&&Fa(t);break;case 4:as(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Ca(bo,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ca(ls,1&ls.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Mi(e,t,n):(Ca(ls,1&ls.current),null!==(e=Qi(e,t,n))?e.sibling:null);Ca(ls,1&ls.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Ui(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ca(ls,ls.current),r)break;return null;case 22:case 23:return t.lanes=0,_i(e,t,n)}return Qi(e,t,n)}(e,t,n);xi=0!=(131072&e.flags)}else xi=!1,ao&&0!=(1048576&t.flags)&&Ja(t,Za,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hi(e,t),e=t.pendingProps;var a=Aa(t,La.current);_o(t,n),a=Es(null,t,r,e,a,n);var s=_s();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oa(r)?(s=!0,Fa(t)):s=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Oo(t),a.updater=$o,t.stateNode=a,a._reactInternals=t,Zo(t,r,e,n),t=Pi(null,t,r,!0,s,n)):(t.tag=0,ao&&s&&eo(t),wi(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hi(e,t),e=t.pendingProps,r=(a=r._init)(r._payload),t.type=r,a=t.tag=function(e){if("function"==typeof e)return jc(e)?1:0;if(null!=e){if((e=e.$$typeof)===L)return 11;if(e===A)return 14}return 2}(r),e=yo(r,e),a){case 0:t=Ti(null,t,r,e,n);break e;case 1:t=Li(null,t,r,e,n);break e;case 11:t=ki(null,t,r,e,n);break e;case 14:t=Si(null,t,r,yo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,Ti(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 1:return r=t.type,a=t.pendingProps,Li(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 3:e:{if(Ni(t),null===e)throw Error(o(387));r=t.pendingProps,a=(s=t.memoizedState).element,jo(e,t),Mo(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Ai(e,t,r,n,a=ui(Error(o(423)),t));break e}if(r!==a){t=Ai(e,t,r,n,a=ui(Error(o(424)),t));break e}for(ro=ca(t.stateNode.containerInfo.firstChild),no=t,ao=!0,oo=null,n=Xo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(mo(),r===a){t=Qi(e,t,n);break e}wi(e,t,r,n)}t=t.child}return t;case 5:return ss(t),null===e&&co(t),r=t.type,a=t.pendingProps,s=null!==e?e.memoizedProps:null,i=a.children,na(r,a)?i=null:null!==s&&na(r,s)&&(t.flags|=32),Ci(e,t),wi(e,t,i,n),t.child;case 6:return null===e&&co(t),null;case 13:return Mi(e,t,n);case 4:return as(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ko(t,null,r,n):wi(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,ki(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 7:return wi(e,t,t.pendingProps,n),t.child;case 8:case 12:return wi(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,s=t.memoizedProps,i=a.value,Ca(bo,r._currentValue),r._currentValue=i,null!==s)if(ir(s.value,i)){if(s.children===a.children&&!Pa.current){t=Qi(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){i=s.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===s.tag){(c=Ro(-1,n&-n)).tag=2;var u=s.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),Eo(s.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===s.tag)i=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(i=s.return))throw Error(o(341));i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),Eo(i,n,t),i=s.sibling}else i=s.child;if(null!==i)i.return=s;else for(i=s;null!==i;){if(i===t){i=null;break}if(null!==(s=i.sibling)){s.return=i.return,i=s;break}i=i.return}s=i}wi(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,_o(t,n),r=r(a=Co(a)),t.flags|=1,wi(e,t,r,n),t.child;case 14:return a=yo(r=t.type,t.pendingProps),Si(e,t,r,a=yo(r.type,a),n);case 15:return Ei(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:yo(r,a),Hi(e,t),t.tag=1,Oa(r)?(e=!0,Fa(t)):e=!1,_o(t,n),Ho(t,r,a),Zo(t,r,a,n),Pi(null,t,r,!0,e,n);case 19:return Ui(e,t,n);case 22:return _i(e,t,n)}throw Error(o(156,t.tag))};var Wc="function"==typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Kc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function eu(e,t,n,r,a){var o=n._reactRootContainer;if(o){var s=o;if("function"==typeof a){var i=a;a=function(){var e=Qc(s);i.call(e)}}Hc(t,s,e,a)}else s=function(e,t,n,r,a){if(a){if("function"==typeof r){var o=r;r=function(){var e=Qc(s);o.call(e)}}var s=Uc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=s,e[ma]=s.current,$r(8===e.nodeType?e.parentNode:e),dc(),s}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var i=r;r=function(){var e=Qc(l);i.call(e)}}var l=zc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[ma]=l.current,$r(8===e.nodeType?e.parentNode:e),dc((function(){Hc(t,l,n,r)})),l}(n,t,e,a,r);return Qc(s)}Yc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Hc(e,t,null,null)},Yc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Hc(null,e,null,null)})),t[ma]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jt.length&&0!==t&&t<jt[n].priority;n++);jt.splice(n,0,e),0===n&&Dt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),ac(t,Ke()),0==(6&Pl)&&(Ul=Ke()+500,$a()))}break;case 13:dc((function(){var t=No(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Vc(e,1)}},kt=function(e){if(13===e.tag){var t=No(e,134217728);if(null!==t)rc(t,e,134217728,tc());Vc(e,134217728)}},St=function(e){if(13===e.tag){var t=nc(e),n=No(e,t);if(null!==n)rc(n,e,t,tc());Vc(e,t)}},Et=function(){return vt},_t=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},ke=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=wa(r);if(!a)throw Error(o(90));V(r),X(r,a)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Le=uc,Pe=dc;var tu={usingClientEntryPoint:!1,Events:[va,xa,wa,Ce,Te,uc]},nu={findFiberByHostInstance:ba,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qe(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!au.isDisabled&&au.supportsFiber)try{at=au.inject(ru),ot=au}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Kc(e))throw Error(o(299));var n=!1,r="",a=Wc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=zc(e,1,!1,null,0,n,0,r,a),e[ma]=t.current,$r(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Qe(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(o(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Kc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,a=!1,s="",i=Wc;if(null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=Uc(t,null,e,1,null!=n?n:null,a,0,s,i),e[ma]=t.current,$r(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Yc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(o(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(o(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[ma]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},745:(e,t,n)=>{"use strict";var r=n(3935);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},3935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4448)},9590:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var i,l,c,u;if(Array.isArray(e)){if((i=e.length)!=s.length)return!1;for(l=i;0!=l--;)if(!o(e[l],s[l]))return!1;return!0}if(n&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!s.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!o(l.value[1],s.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!s.has(l.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((i=e.length)!=s.length)return!1;for(l=i;0!=l--;)if(e[l]!==s[l])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof s.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof s.toString)return e.toString()===s.toString();if((i=(c=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(l=i;0!=l--;)if(!Object.prototype.hasOwnProperty.call(s,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=i;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!o(e[c[l]],s[c[l]]))return!1;return!0}return e!=e&&s!=s}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},405:(e,t,n)=>{"use strict";n.d(t,{B6:()=>Q,ql:()=>J});var r=n(7294),a=n(5697),o=n.n(a),s=n(9590),i=n.n(s),l=n(1143),c=n.n(l),u=n(6774),d=n.n(u);function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function h(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},y={rel:["amphtml","canonical","alternate"]},b={type:["application/ld+json"]},v={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},x=Object.keys(g).map((function(e){return g[e]})),w={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},k=Object.keys(w).reduce((function(e,t){return e[w[t]]=t,e}),{}),S=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},E=function(e){var t=S(e,g.TITLE),n=S(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=S(e,"defaultTitle");return t||r||void 0},_=function(e){return S(e,"onChangeClientState")||function(){}},C=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return p({},e,t)}),{})},T=function(e,t){return t.filter((function(e){return void 0!==e[g.BASE]})).map((function(e){return e[g.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a<r.length;a+=1){var o=r[a].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},L=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var a={};n.filter((function(e){for(var n,o=Object.keys(e),s=0;s<o.length;s+=1){var i=o[s],l=i.toLowerCase();-1===t.indexOf(l)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===l&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(i)||"innerHTML"!==i&&"cssText"!==i&&"itemprop"!==i||(n=i)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),a[n]||(a[n]={}),!r[n][c]&&(a[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(a),s=0;s<o.length;s+=1){var i=o[s],l=p({},r[i],a[i]);r[i]=l}return e}),[]).reverse()},P=function(e,t){if(Array.isArray(e)&&e.length)for(var n=0;n<e.length;n+=1)if(e[n][t])return!0;return!1},N=function(e){return Array.isArray(e)?e.join(""):e},A=function(e,t){return Array.isArray(e)?e.reduce((function(e,n){return function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1}(n,t)?e.priority.push(n):e.default.push(n),e}),{priority:[],default:[]}):{default:e}},O=function(e,t){var n;return p({},e,((n={})[t]=void 0,n))},j=[g.NOSCRIPT,g.SCRIPT,g.STYLE],R=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},I=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},F=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[w[n]||n]=e[n],t}),t)},D=function(e,t){return t.map((function(t,n){var a,o=((a={key:n})["data-rh"]=!0,a);return Object.keys(t).forEach((function(e){var n=w[e]||e;"innerHTML"===n||"cssText"===n?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[n]=t[e]})),r.createElement(e,o)}))},M=function(e,t,n){switch(e){case g.TITLE:return{toComponent:function(){return n=t.titleAttributes,(a={key:e=t.title})["data-rh"]=!0,o=F(n,a),[r.createElement(g.TITLE,o,e)];var e,n,a,o},toString:function(){return function(e,t,n,r){var a=I(n),o=N(t);return a?"<"+e+' data-rh="true" '+a+">"+R(o,r)+"</"+e+">":"<"+e+' data-rh="true">'+R(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return F(t)},toString:function(){return I(t)}};default:return{toComponent:function(){return D(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var a=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var a=void 0===r[t]?t:t+'="'+R(r[t],n)+'"';return e?e+" "+a:a}),""),o=r.innerHTML||r.cssText||"",s=-1===j.indexOf(e);return t+"<"+e+' data-rh="true" '+a+(s?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}},q=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,a=e.htmlAttributes,o=e.noscriptTags,s=e.styleTags,i=e.title,l=void 0===i?"":i,c=e.titleAttributes,u=e.linkTags,d=e.metaTags,p=e.scriptTags,f={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var m=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,a=A(e.metaTags,v),o=A(t,y),s=A(n,b);return{priorityMethods:{toComponent:function(){return[].concat(D(g.META,a.priority),D(g.LINK,o.priority),D(g.SCRIPT,s.priority))},toString:function(){return M(g.META,a.priority,r)+" "+M(g.LINK,o.priority,r)+" "+M(g.SCRIPT,s.priority,r)}},metaTags:a.default,linkTags:o.default,scriptTags:s.default}}(e);f=m.priorityMethods,u=m.linkTags,d=m.metaTags,p=m.scriptTags}return{priority:f,base:M(g.BASE,t,r),bodyAttributes:M("bodyAttributes",n,r),htmlAttributes:M("htmlAttributes",a,r),link:M(g.LINK,u,r),meta:M(g.META,d,r),noscript:M(g.NOSCRIPT,o,r),script:M(g.SCRIPT,p,r),style:M(g.STYLE,s,r),title:M(g.TITLE,{title:l,titleAttributes:c},r)}},B=[],z=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?B:n.instances},add:function(e){(n.canUseDOM?B:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?B:n.instances).indexOf(e);(n.canUseDOM?B:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=q({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},$=r.createContext({}),U=o().shape({setHelmet:o().func,helmetInstances:o().shape({get:o().func,add:o().func,remove:o().func})}),H="undefined"!=typeof document,Q=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new z(r.props.context,t.canUseDOM),r}return f(t,e),t.prototype.render=function(){return r.createElement($.Provider,{value:this.helmetData.value},this.props.children)},t}(r.Component);Q.canUseDOM=H,Q.propTypes={context:o().shape({helmet:o().shape()}),children:o().node.isRequired},Q.defaultProps={context:{}},Q.displayName="HelmetProvider";var Z=function(e,t){var n,r=document.head||document.querySelector(g.HEAD),a=r.querySelectorAll(e+"[data-rh]"),o=[].slice.call(a),s=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&("innerHTML"===a?r.innerHTML=t.innerHTML:"cssText"===a?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(a,void 0===t[a]?"":t[a]));r.setAttribute("data-rh","true"),o.some((function(e,t){return n=t,r.isEqualNode(e)}))?o.splice(n,1):s.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),s.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:s}},V=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),a=r?r.split(","):[],o=[].concat(a),s=Object.keys(t),i=0;i<s.length;i+=1){var l=s[i],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===a.indexOf(l)&&a.push(l);var u=o.indexOf(l);-1!==u&&o.splice(u,1)}for(var d=o.length-1;d>=0;d-=1)n.removeAttribute(o[d]);a.length===o.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==s.join(",")&&n.setAttribute("data-rh",s.join(","))}},W=function(e,t){var n=e.baseTag,r=e.htmlAttributes,a=e.linkTags,o=e.metaTags,s=e.noscriptTags,i=e.onChangeClientState,l=e.scriptTags,c=e.styleTags,u=e.title,d=e.titleAttributes;V(g.BODY,e.bodyAttributes),V(g.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=N(e)),V(g.TITLE,t)}(u,d);var p={baseTag:Z(g.BASE,n),linkTags:Z(g.LINK,a),metaTags:Z(g.META,o),noscriptTags:Z(g.NOSCRIPT,s),scriptTags:Z(g.SCRIPT,l),styleTags:Z(g.STYLE,c)},f={},m={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(f[e]=n),r.length&&(m[e]=p[e].oldTags)})),t&&t(),i(e,f,m)},G=null,Y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).rendered=!1,t}f(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!d()(e,this.props)},n.componentDidUpdate=function(){this.emitChange()},n.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},n.emitChange=function(){var e,t,n=this.props.context,r=n.setHelmet,a=null,o=(e=n.helmetInstances.get().map((function(e){var t=p({},e.props);return delete t.context,t})),{baseTag:T(["href"],e),bodyAttributes:C("bodyAttributes",e),defer:S(e,"defer"),encode:S(e,"encodeSpecialCharacters"),htmlAttributes:C("htmlAttributes",e),linkTags:L(g.LINK,["rel","href"],e),metaTags:L(g.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:L(g.NOSCRIPT,["innerHTML"],e),onChangeClientState:_(e),scriptTags:L(g.SCRIPT,["src","innerHTML"],e),styleTags:L(g.STYLE,["cssText"],e),title:E(e),titleAttributes:C("titleAttributes",e),prioritizeSeoTags:P(e,"prioritizeSeoTags")});Q.canUseDOM?(t=o,G&&cancelAnimationFrame(G),t.defer?G=requestAnimationFrame((function(){W(t,(function(){G=null}))})):(W(t),G=null)):q&&(a=q(o)),r(a)},n.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},n.render=function(){return this.init(),null},t}(r.Component);Y.propTypes={context:U.isRequired},Y.displayName="HelmetDispatcher";var K=["children"],X=["children"],J=function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!i()(O(this.props,"helmetData"),O(e,"helmetData"))},n.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:t};case g.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return p({},r,((t={})[n.type]=[].concat(r[n.type]||[],[p({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,a=e.newProps,o=e.newChildProps,s=e.nestedChildren;switch(r.type){case g.TITLE:return p({},a,((t={})[r.type]=s,t.titleAttributes=p({},o),t));case g.BODY:return p({},a,{bodyAttributes:p({},o)});case g.HTML:return p({},a,{htmlAttributes:p({},o)});default:return p({},a,((n={})[r.type]=p({},o),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=p({},t);return Object.keys(e).forEach((function(t){var r;n=p({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return c()(x.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+x.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),c()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,a={};return r.Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,o=r.children,s=h(r,K),i=Object.keys(s).reduce((function(e,t){return e[k[t]||t]=s[t],e}),{}),l=e.type;switch("symbol"==typeof l?l=l.toString():n.warnOnInvalidChildren(e,o),l){case g.FRAGMENT:t=n.mapChildrenToProps(o,t);break;case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:a=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:a,newChildProps:i,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:i,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(a,t)},n.render=function(){var e=this.props,t=e.children,n=h(e,X),a=p({},n),o=n.helmetData;return t&&(a=this.mapChildrenToProps(t,a)),!o||o instanceof z||(o=new z(o.context,o.instances)),o?r.createElement(Y,p({},a,{context:o.value,helmetData:void 0})):r.createElement($.Consumer,null,(function(e){return r.createElement(Y,p({},a,{context:e}))}))},t}(r.Component);J.propTypes={base:o().object,bodyAttributes:o().object,children:o().oneOfType([o().arrayOf(o().node),o().node]),defaultTitle:o().string,defer:o().bool,encodeSpecialCharacters:o().bool,htmlAttributes:o().object,link:o().arrayOf(o().object),meta:o().arrayOf(o().object),noscript:o().arrayOf(o().object),onChangeClientState:o().func,script:o().arrayOf(o().object),style:o().arrayOf(o().object),title:o().string,titleAttributes:o().object,titleTemplate:o().string,prioritizeSeoTags:o().bool,helmetData:o().object},J.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},J.displayName="Helmet"},9921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,i=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case i:case s:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case h:case l:return e;default:return t}}case a:return t}}}function k(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=h,t.Portal=a,t.Profiler=i,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||w(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===i},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===i||e===s||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===v||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},9864:(e,t,n)=>{"use strict";e.exports=n(9921)},8356:(e,t,n)=>{"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}var i=n(7294),l=n(5697),c=[],u=[];function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function p(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var a=d(e[r]);a.loading?t.loading=!0:(t.loaded[r]=a.loaded,t.error=a.error),n.push(a.promise),a.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function f(e,t){return i.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function m(e,t){var d,p;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var m=s({loader:null,loading:null,delay:200,timeout:null,render:f,webpack:null,modules:null},t),h=null;function g(){return h||(h=e(m.loader)),h.promise}return c.push(g),"function"==typeof m.webpack&&u.push((function(){if((0,m.webpack)().every((function(e){return void 0!==e&&void 0!==n.m[e]})))return g()})),p=d=function(t){function n(n){var r;return o(a(a(r=t.call(this,n)||this)),"retry",(function(){r.setState({error:null,loading:!0,timedOut:!1}),h=e(m.loader),r._loadModule()})),g(),r.state={error:h.error,pastDelay:!1,timedOut:!1,loading:h.loading,loaded:h.loaded},r}r(n,t),n.preload=function(){return g()};var s=n.prototype;return s.UNSAFE_componentWillMount=function(){this._loadModule()},s.componentDidMount=function(){this._mounted=!0},s._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(m.modules)&&m.modules.forEach((function(t){e.context.loadable.report(t)})),h.loading){var t=function(t){e._mounted&&e.setState(t)};"number"==typeof m.delay&&(0===m.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){t({pastDelay:!0})}),m.delay)),"number"==typeof m.timeout&&(this._timeout=setTimeout((function(){t({timedOut:!0})}),m.timeout));var n=function(){t({error:h.error,loaded:h.loaded,loading:h.loading}),e._clearTimeouts()};h.promise.then((function(){return n(),null})).catch((function(e){return n(),null}))}},s.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},s._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},s.render=function(){return this.state.loading||this.state.error?i.createElement(m.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?m.render(this.state.loaded,this.props):null},n}(i.Component),o(d,"contextTypes",{loadable:l.shape({report:l.func.isRequired})}),p}function h(e){return m(d,e)}h.Map=function(e){if("function"!=typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return m(p,e)};var g=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.getChildContext=function(){return{loadable:{report:this.props.report}}},n.render=function(){return i.Children.only(this.props.children)},t}(i.Component);function y(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then((function(){if(e.length)return y(e)}))}o(g,"propTypes",{report:l.func.isRequired}),o(g,"childContextTypes",{loadable:l.shape({report:l.func.isRequired}).isRequired}),h.Capture=g,h.preloadAll=function(){return new Promise((function(e,t){y(c).then(e,t)}))},h.preloadReady=function(){return new Promise((function(e,t){y(u).then(e,e)}))},e.exports=h},8790:(e,t,n)=>{"use strict";n.d(t,{H:()=>i,f:()=>s});var r=n(6550),a=n(7462),o=n(7294);function s(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var a=e.path?(0,r.LX)(t,e):n.length?n[n.length-1].match:r.F0.computeRootMatch(t);return a&&(n.push({route:e,match:a}),e.routes&&s(e.routes,t,n)),a})),n}function i(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?o.createElement(r.rs,n,e.map((function(e,n){return o.createElement(r.AW,{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render((0,a.Z)({},n,{},t,{route:e})):o.createElement(e.component,(0,a.Z)({},n,t,{route:e}))}})}))):null}},3727:(e,t,n)=>{"use strict";n.d(t,{OL:()=>v,VK:()=>u,rU:()=>g});var r=n(6550),a=n(5068),o=n(7294),s=n(2358),i=n(7462),l=n(3366),c=n(8776),u=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,s.lX)(t.props),t}return(0,a.Z)(t,e),t.prototype.render=function(){return o.createElement(r.F0,{history:this.history,children:this.props.children})},t}(o.Component);o.Component;var d=function(e,t){return"function"==typeof e?e(t):e},p=function(e,t){return"string"==typeof e?(0,s.ob)(e,null,null,t):e},f=function(e){return e},m=o.forwardRef;void 0===m&&(m=f);var h=m((function(e,t){var n=e.innerRef,r=e.navigate,a=e.onClick,s=(0,l.Z)(e,["innerRef","navigate","onClick"]),c=s.target,u=(0,i.Z)({},s,{onClick:function(e){try{a&&a(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=f!==m&&t||n,o.createElement("a",u)}));var g=m((function(e,t){var n=e.component,a=void 0===n?h:n,u=e.replace,g=e.to,y=e.innerRef,b=(0,l.Z)(e,["component","replace","to","innerRef"]);return o.createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=e.history,r=p(d(g,e.location),e.location),l=r?n.createHref(r):"",h=(0,i.Z)({},b,{href:l,navigate:function(){var t=d(g,e.location),r=(0,s.Ep)(e.location)===(0,s.Ep)(p(t));(u||r?n.replace:n.push)(t)}});return f!==m?h.ref=t||y:h.innerRef=y,o.createElement(a,h)}))})),y=function(e){return e},b=o.forwardRef;void 0===b&&(b=y);var v=b((function(e,t){var n=e["aria-current"],a=void 0===n?"page":n,s=e.activeClassName,u=void 0===s?"active":s,f=e.activeStyle,m=e.className,h=e.exact,v=e.isActive,x=e.location,w=e.sensitive,k=e.strict,S=e.style,E=e.to,_=e.innerRef,C=(0,l.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=x||e.location,s=p(d(E,n),n),l=s.pathname,T=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),L=T?(0,r.LX)(n.pathname,{path:T,exact:h,sensitive:w,strict:k}):null,P=!!(v?v(L,n):L),N="function"==typeof m?m(P):m,A="function"==typeof S?S(P):S;P&&(N=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(N,u),A=(0,i.Z)({},A,f));var O=(0,i.Z)({"aria-current":P&&a||null,className:N,style:A,to:s},C);return y!==b?O.ref=t||_:O.innerRef=_,o.createElement(g,O)}))}))},6550:(e,t,n)=>{"use strict";n.d(t,{AW:()=>N,F0:()=>v,LX:()=>P,TH:()=>q,k6:()=>M,l_:()=>_,rs:()=>F,s6:()=>b});var r=n(5068),a=n(7294),o=n(5697),s=n.n(o),i=n(2358),l=n(8776),c=n(7462),u=n(4779),d=n.n(u),p=(n(9864),n(3366)),f=(n(8679),1073741823),m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};var h=a.createContext||function(e,t){var n,o,i="__create-react-context-"+function(){var e="__global_unique_id__";return m[e]=(m[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n,r,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return(t=e.call.apply(e,[this].concat(o))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}(0,r.Z)(n,e);var a=n.prototype;return a.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},a.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,a=e.value;((o=r)===(s=a)?0!==o||1/o==1/s:o!=o&&s!=s)?n=0:(n="function"==typeof t?t(r,a):f,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,s},a.render=function(){return this.props.children},n}(a.Component);l.childContextTypes=((n={})[i]=s().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.Z)(n,t);var a=n.prototype;return a.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?f:t},a.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?f:e},a.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},a.getValue=function(){return this.context[i]?this.context[i].get():e},a.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(a.Component);return c.contextTypes=((o={})[i]=s().object,o),{Provider:l,Consumer:c}},g=function(e){var t=h();return t.displayName=e,t},y=g("Router-History"),b=g("Router"),v=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return a.createElement(b.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a.createElement(y.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a.Component);a.Component;var x=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(a.Component);var w={},k=1e4,S=0;function E(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(w[e])return w[e];var t=d().compile(e);return S<k&&(w[e]=t,S++),t}(e)(t,{pretty:!0})}function _(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return a.createElement(b.Consumer,null,(function(e){e||(0,l.Z)(!1);var r=e.history,s=e.staticContext,u=o?r.push:r.replace,d=(0,i.ob)(t?"string"==typeof n?E(n,t.params):(0,c.Z)({},n,{pathname:E(n.pathname,t.params)}):n);return s?(u(d),null):a.createElement(x,{onMount:function(){u(d)},onUpdate:function(e,t){var n=(0,i.ob)(t.to);(0,i.Hp)(n,(0,c.Z)({},d,{key:n.key}))||u(d)},to:n})}))}var C={},T=1e4,L=0;function P(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,a=n.exact,o=void 0!==a&&a,s=n.strict,i=void 0!==s&&s,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=C[n]||(C[n]={});if(r[e])return r[e];var a=[],o={regexp:d()(e,a,t),keys:a};return L<T&&(r[e]=o,L++),o}(n,{end:o,strict:i,sensitive:c}),a=r.regexp,s=r.keys,l=a.exec(e);if(!l)return null;var u=l[0],p=l.slice(1),f=e===u;return o&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:s.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}var N=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a.createElement(b.Consumer,null,(function(t){t||(0,l.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?P(n.pathname,e.props):t.match,o=(0,c.Z)({},t,{location:n,match:r}),s=e.props,i=s.children,u=s.component,d=s.render;return Array.isArray(i)&&function(e){return 0===a.Children.count(e)}(i)&&(i=null),a.createElement(b.Provider,{value:o},o.match?i?"function"==typeof i?i(o):i:u?a.createElement(u,o):d?d(o):null:"function"==typeof i?i(o):null)}))},t}(a.Component);function A(e){return"/"===e.charAt(0)?e:"/"+e}function O(e,t){if(!e)return t;var n=A(e);return 0!==t.pathname.indexOf(n)?t:(0,c.Z)({},t,{pathname:t.pathname.substr(n.length)})}function j(e){return"string"==typeof e?e:(0,i.Ep)(e)}function R(e){return function(){(0,l.Z)(!1)}}function I(){}a.Component;var F=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a.createElement(b.Consumer,null,(function(t){t||(0,l.Z)(!1);var n,r,o=e.props.location||t.location;return a.Children.forEach(e.props.children,(function(e){if(null==r&&a.isValidElement(e)){n=e;var s=e.props.path||e.props.from;r=s?P(o.pathname,(0,c.Z)({},e.props,{path:s})):t.match}})),r?a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(a.Component);var D=a.useContext;function M(){return D(y)}function q(){return D(b).location}},5251:(e,t,n)=>{"use strict";var r=n(7294),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:a,type:e,key:c,ref:u,props:o,_owner:i.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},2408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var x=v.prototype=new b;x.constructor=v,h(x,y.prototype),x.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r){var a,o={},s=null,i=null;if(null!=t)for(a in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(s=""+t.key),t)k.call(t,a)&&!E.hasOwnProperty(a)&&(o[a]=t[a]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(a in l=e.defaultProps)void 0===o[a]&&(o[a]=l[a]);return{$$typeof:n,type:e,key:s,ref:i,props:o,_owner:S.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function L(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,a,o,s){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var l=!1;if(null===e)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return s=s(l=e),e=""===o?"."+L(l,0):o,w(s)?(a="",null!=e&&(a=e.replace(T,"$&/")+"/"),P(s,t,a,"",(function(e){return e}))):null!=s&&(C(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,a+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(T,"$&/")+"/")+e)),t.push(s)),1;if(l=0,o=""===o?".":o+":",w(e))for(var c=0;c<e.length;c++){var u=o+L(i=e[c],c);l+=P(i,t,a,u,s)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(i=e.next()).done;)l+=P(i=i.value,t,a,u=o+L(i,c++),s);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function N(e,t,n){if(null==e)return e;var r=[],a=0;return P(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function A(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},j={transition:null},R={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:j,ReactCurrentOwner:S};t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=a,t.Profiler=s,t.PureComponent=v,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=h({},e.props),o=e.key,s=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,i=S.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)k.call(t,c)&&!E.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}return{$$typeof:n,type:e.type,key:o,ref:s,props:a,_owner:i}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=j.transition;j.transition={};try{e()}finally{j.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return O.current.useCallback(e,t)},t.useContext=function(e){return O.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return O.current.useDeferredValue(e)},t.useEffect=function(e,t){return O.current.useEffect(e,t)},t.useId=function(){return O.current.useId()},t.useImperativeHandle=function(e,t,n){return O.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return O.current.useMemo(e,t)},t.useReducer=function(e,t,n){return O.current.useReducer(e,t,n)},t.useRef=function(e){return O.current.useRef(e)},t.useState=function(e){return O.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return O.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return O.current.useTransition()},t.version="18.2.0"},7294:(e,t,n)=>{"use strict";e.exports=n(2408)},5893:(e,t,n)=>{"use strict";e.exports=n(5251)},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,s=a>>>1;r<s;){var i=2*(r+1)-1,l=e[i],c=i+1,u=e[c];if(0>o(l,n))c<a&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[i]=n,r=i);else{if(!(c<a&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();t.unstable_now=function(){return i.now()-l}}var c=[],u=[],d=1,p=null,f=3,m=!1,h=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)a(u);else{if(!(t.startTime<=e))break;a(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(g=!1,x(e),!h)if(null!==r(c))h=!0,j(k);else{var t=r(u);null!==t&&R(w,t.startTime-e)}}function k(e,n){h=!1,g&&(g=!1,b(C),C=-1),m=!0;var o=f;try{for(x(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!P());){var s=p.callback;if("function"==typeof s){p.callback=null,f=p.priorityLevel;var i=s(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof i?p.callback=i:p===r(c)&&a(c),x(n)}else a(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&R(w,d.startTime-n),l=!1}return l}finally{p=null,f=o,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,E=!1,_=null,C=-1,T=5,L=-1;function P(){return!(t.unstable_now()-L<T)}function N(){if(null!==_){var e=t.unstable_now();L=e;var n=!0;try{n=_(!0,e)}finally{n?S():(E=!1,_=null)}}else E=!1}if("function"==typeof v)S=function(){v(N)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,O=A.port2;A.port1.onmessage=N,S=function(){O.postMessage(null)}}else S=function(){y(N,0)};function j(e){_=e,E||(E=!0,S())}function R(e,n){C=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){h||m||(h=!0,j(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,a,o){var s=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?s+o:s:o=s,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return e={id:d++,callback:a,priorityLevel:e,startTime:o,expirationTime:i=o+i,sortIndex:-1},o>s?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(b(C),C=-1):g=!0,R(w,o-s))):(e.sortIndex=i,n(c,e),h||m||(h=!0,j(k))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},3840:(e,t,n)=>{"use strict";e.exports=n(53)},6774:e=>{e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!i(c))return!1;var u=e[c],d=t[c];if(!1===(a=n?n.call(r,u,d,c):void 0)||void 0===a&&u!==d)return!1}return!0}},6809:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={title:"Quickstart",url:"https://sidorares.github.io",baseUrl:"/node-mysql2/",organizationName:"sidorares",projectName:"node-mysql2",trailingSlash:!1,favicon:"img/favicon.svg",onBrokenLinks:"throw",onBrokenMarkdownLinks:"throw",onBrokenAnchors:"throw",i18n:{defaultLocale:"en",locales:["en","zh-CN","pt-BR"],localeConfigs:{en:{label:"\ud83c\uddfa\ud83c\uddf8 English",direction:"ltr"},"zh-CN":{label:"\ud83c\udde8\ud83c\uddf3 \u7b80\u4f53\u4e2d\u6587",direction:"ltr"},"pt-BR":{label:"\ud83c\udde7\ud83c\uddf7 Portugu\xeas (Brasil)",direction:"ltr"}},path:"i18n"},presets:[["classic",{docs:{sidebarPath:"./sidebars.ts",editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/"},theme:{customCss:"./src/css/custom.scss"},blog:!1}]],themeConfig:{navbar:{items:[{to:"/docs",label:"MySQL2",position:"left",className:"navbar__brand navbar__manual--title text--truncate",activeBaseRegex:"^/$"},{to:"/docs/documentation",label:"Docs",position:"left"},{to:"/docs/examples",label:"Examples",position:"left"},{to:"/docs/faq",label:"FAQ",position:"left"},{href:"https://github.com/sidorares/node-mysql2",label:"GitHub",position:"right"},{href:"https://stackoverflow.com/questions/tagged/mysql2",label:"Stack Overflow",position:"right"},{href:"https://github.com/sponsors/sidorares",label:"Donate",position:"right"},{type:"search",position:"right"},{type:"localeDropdown",position:"right",dropdownItemsBefore:[],dropdownItemsAfter:[]}],hideOnScroll:!1},prism:{theme:{plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},darkTheme:{plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},additionalLanguages:["json","bash","tsx"],magicComments:[{className:"theme-code-block-highlighted-line",line:"highlight-next-line",block:{start:"highlight-start",end:"highlight-end"}}]},colorMode:{defaultMode:"light",disableSwitch:!1,respectPrefersColorScheme:!1},docs:{versionPersistence:"localStorage",sidebar:{hideable:!1,autoCollapseCategories:!1}},metadata:[],tableOfContents:{minHeadingLevel:2,maxHeadingLevel:3}},plugins:["docusaurus-plugin-sass","@easyops-cn/docusaurus-search-local",null],baseUrlIssueBanner:!0,onDuplicateRoutes:"warn",staticDirectories:["static"],customFields:{},themes:[],scripts:[],headTags:[],stylesheets:[],clientModules:[],tagline:"",titleDelimiter:"|",noIndex:!1,markdown:{format:"mdx",mermaid:!1,mdx1Compat:{comments:!0,admonitions:!0,headingIds:!0}}}},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},5068:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>a})},3366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}n.d(t,{Z:()=>r})},512:(e,t,n)=>{"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}n.d(t,{Z:()=>a});const a=function(){for(var e,t,n=0,a="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}},2573:(e,t,n)=>{"use strict";n.d(t,{p1:()=>T,y$:()=>ee});var r,a,o,s,i,l,c,u=n(7294),d=n(512),p=Object.create,f=Object.defineProperty,m=Object.defineProperties,h=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertyNames,b=Object.getOwnPropertySymbols,v=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,k=(e,t,n)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S=(e,t)=>{for(var n in t||(t={}))x.call(t,n)&&k(e,n,t[n]);if(b)for(var n of b(t))w.call(t,n)&&k(e,n,t[n]);return e},E=(e,t)=>m(e,g(t)),_=(e,t)=>{var n={};for(var r in e)x.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&b)for(var r of b(e))t.indexOf(r)<0&&w.call(e,r)&&(n[r]=e[r]);return n},C=(r={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var a,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var s in a={},n[o]=a,t)t.hasOwnProperty(s)&&(a[s]=e(t[s],n));return a;case"Array":return o=r.util.objId(t),n[o]?n[o]:(a=[],n[o]=a,t.forEach((function(t,r){a[r]=e(t,n)})),a);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var o=(a=a||r.languages)[e],s={};for(var i in o)if(o.hasOwnProperty(i)){if(i==t)for(var l in n)n.hasOwnProperty(l)&&(s[l]=n[l]);n.hasOwnProperty(i)||(s[i]=o[i])}var c=a[e];return a[e]=s,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=s)})),s},DFS:function e(t,n,a,o){o=o||{};var s=r.util.objId;for(var i in t)if(t.hasOwnProperty(i)){n.call(t,i,t[i],a||i);var l=t[i],c=r.util.type(l);"Object"!==c||o[s(l)]?"Array"!==c||o[s(l)]||(o[s(l)]=!0,e(l,n,i,o)):(o[s(l)]=!0,e(l,n,null,o))}}},plugins:{},highlight:function(e,t,n){var o={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",o),!o.grammar)throw new Error('The language "'+o.language+'" has no grammar.');return o.tokens=r.tokenize(o.code,o.grammar),r.hooks.run("after-tokenize",o),a.stringify(r.util.encode(o.tokens),o.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new i;return l(a,a.head,e),s(e,a,t,a.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,o=0;a=n[o++];)a(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function s(e,t,n,i,u,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var m=0;m<f.length;++m){if(d&&d.cause==p+","+m)return;var h=f[m],g=h.inside,y=!!h.lookbehind,b=!!h.greedy,v=h.alias;if(b&&!h.pattern.global){var x=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,x+"g")}for(var w=h.pattern||h,k=i.next,S=u;k!==t.tail&&!(d&&S>=d.reach);S+=k.value.length,k=k.next){var E=k.value;if(t.length>e.length)return;if(!(E instanceof a)){var _,C=1;if(b){if(!(_=o(w,S,e,y))||_.index>=e.length)break;var T=_.index,L=_.index+_[0].length,P=S;for(P+=k.value.length;T>=P;)P+=(k=k.next).value.length;if(S=P-=k.value.length,k.value instanceof a)continue;for(var N=k;N!==t.tail&&(P<L||"string"==typeof N.value);N=N.next)C++,P+=N.value.length;C--,E=e.slice(S,P),_.index-=S}else if(!(_=o(w,0,E,y)))continue;T=_.index;var A=_[0],O=E.slice(0,T),j=E.slice(T+A.length),R=S+E.length;d&&R>d.reach&&(d.reach=R);var I=k.prev;if(O&&(I=l(t,I,O),S+=O.length),c(t,I,C),k=l(t,I,new a(p,g?r.tokenize(A,g):A,v,A)),j&&l(t,k,j),C>1){var F={cause:p+","+m,reach:R};s(e,t,n,k.prev,S,F),d&&F.reach>d.reach&&(d.reach=F.reach)}}}}}}function i(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function c(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}return a.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},s=t.alias;s&&(Array.isArray(s)?Array.prototype.push.apply(o.classes,s):o.classes.push(s)),r.hooks.run("wrap",o);var i="";for(var l in o.attributes)i+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+i+">"+o.content+"</"+o.tag+">"},r}();t.exports=n,n.default=n}},function(){return a||(0,r[y(r)[0]])((a={exports:{}}).exports,a),a.exports}),T=((e,t,n)=>(n=null!=e?p(v(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of y(t))x.call(e,a)||a===n||f(e,a,{get:()=>t[a],enumerable:!(r=h(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?n:f(n,"default",{value:e,enumerable:!0}),e)))(C());T.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},T.languages.markup.tag.inside["attr-value"].inside.entity=T.languages.markup.entity,T.languages.markup.doctype.inside["internal-subset"].inside=T.languages.markup,T.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(T.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:T.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:T.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},T.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(T.languages.markup.tag,"addAttribute",{value:function(e,t){T.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:T.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),T.languages.html=T.languages.markup,T.languages.mathml=T.languages.markup,T.languages.svg=T.languages.markup,T.languages.xml=T.languages.extend("markup",{}),T.languages.ssml=T.languages.xml,T.languages.atom=T.languages.xml,T.languages.rss=T.languages.xml,o=T,s={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},l="(?:[^\\\\-]|"+(i=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")",l=RegExp(l+"-"+l),c={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},o.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:i,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":s,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:i}},"special-escape":s,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":c}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:i,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":c}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}},T.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},T.languages.javascript=T.languages.extend("clike",{"class-name":[T.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),T.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,T.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:T.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:T.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:T.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:T.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:T.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),T.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:T.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),T.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),T.languages.markup&&(T.languages.markup.tag.addInlined("script","javascript"),T.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),T.languages.js=T.languages.javascript,T.languages.actionscript=T.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),T.languages.actionscript["class-name"].alias="function",delete T.languages.actionscript.parameter,delete T.languages.actionscript["literal-property"],T.languages.markup&&T.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:T.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(T),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},a="doc-comment";if(o=e.languages[t]){var o,s=o[a];if((s=s||(o=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[a])instanceof RegExp&&(s=o[a]={pattern:s}),Array.isArray(s))for(var i=0,l=s.length;i<l;i++)s[i]instanceof RegExp&&(s[i]={pattern:s[i]}),r(s[i]);else r(s)}}))}}),t.addSupport(["java","javascript","php"],t)}(T),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(T),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(T),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(o),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(T),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,s=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var a,o=t[n];"code"!==o.type?e(o.content):(a=o.content[1],o=o.content[3],a&&o&&"code-language"===a.type&&"code-block"===o.type&&"string"==typeof a.content&&(a=a.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),a="language-"+(a=(/[a-z][\w-]*/i.exec(a)||[""])[0].toLowerCase()),o.alias?"string"==typeof o.alias?o.alias=[o.alias,a]:o.alias.push(a):o.alias=[a]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,a=t.classes.length;r<a;r++){var o=t.classes[r];if(o=/language-(.+)/.exec(o)){n=o[1];break}}var c,u=e.languages[n];u?t.content=e.highlight(t.content.replace(s,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n)):i[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(c="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),i={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(T),T.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:T.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},T.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var a=[];if(d(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var o=p(/^\($/,/^\)$/);if(-1===o)continue;for(;n<o;n++){var s=u(0);"variable"===s.type&&(f(s,"variable-input"),a.push(s.content))}n=o+1}if(d(["punctuation","property-query"])&&"{"===u(0).content&&(n++,f(u(0),"property-mutation"),0<a.length)){var i=p(/^\{$/,/^\}$/);if(-1!==i)for(var l=n;l<i;l++){var c=t[l];"variable"===c.type&&0<=a.indexOf(c.content)&&f(c,"variable-input")}}}}function u(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function p(e,r){for(var a=1,o=n;o<t.length;o++){var s=t[o],i=s.content;if("punctuation"===s.type&&"string"==typeof i)if(e.test(i))a++;else if(r.test(i)&&0==--a)return o}return-1}function f(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),T.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,a=r.inside["interpolation-punctuation"],o=r.pattern.source;function s(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function i(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function l(t,n,s){var l=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),c=0,u={},d=(l=i(l.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=c++,n="___"+s.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,s),Object.keys(u));return c=0,function t(n){for(var o=0;o<n.length;o++){if(c>=d.length)return;var s,l,p,f,m,h,g,y=n[o];"string"==typeof y||"string"==typeof y.content?(s=d[c],-1!==(g=(h="string"==typeof y?y:y.content).indexOf(s))&&(++c,l=h.substring(0,g),m=u[s],p=void 0,(f={})["interpolation-punctuation"]=a,3===(f=e.tokenize(m,f)).length&&((p=[1,1]).push.apply(p,i(f[1],e.languages.javascript,"javascript")),f.splice.apply(f,p)),p=new e.Token("interpolation",f,r.alias,m),f=h.substring(g+s.length),m=[],l&&m.push(l),m.push(p),f&&(t(h=[f]),m.push.apply(m,h)),"string"==typeof y?(n.splice.apply(n,[o,1].concat(m)),o+=m.length-1):y.content=m)):(g=y.content,Array.isArray(g)?t(g):t([g]))}}(l),new e.Token(s,l,"language-"+s,t)}e.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),t].filter(Boolean);var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in c&&function t(n){for(var r=0,a=n.length;r<a;r++){var o,s,i,c=n[r];"string"!=typeof c&&(o=c.content,Array.isArray(o)?"template-string"===c.type?(c=o[1],3===o.length&&"string"!=typeof c&&"embedded-code"===c.type&&(s=u(c),c=c.alias,c=Array.isArray(c)?c[0]:c,i=e.languages[c])&&(o[1]=l(s,i,c))):t(o):"string"!=typeof o&&t([o]))}}(t.tokens)}))}(T),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(T),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(T),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(T),T.languages.n4js=T.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),T.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),T.languages.n4jsd=T.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var a=n[r],o=e.languages.javascript[a];a=(o="RegExp"===e.util.type(o)?e.languages.javascript[a]={pattern:o}:o).inside||{};(o.inside=a)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(T),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return a})),RegExp(e,t)}function s(t){for(var n=[],r=0;r<t.length;r++){var a=t[r],o=!1;"string"!=typeof a&&("tag"===a.type&&a.content[0]&&"tag"===a.content[0].type?"</"===a.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===i(a.content[0].content[1])&&n.pop():"/>"!==a.content[a.content.length-1].content&&n.push({tagName:i(a.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof a)&&0<n.length&&0===n[n.length-1].openedBraces&&(o=i(a),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(o+=i(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(o=i(t[r-1])+o,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",o,null,o)),a.content&&"string"!=typeof a.content&&s(a.content)}}a=o(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var i=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(i).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(T),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(T),T.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},T.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=T.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(T),T.languages.c=T.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),T.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),T.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},T.languages.c.string],char:T.languages.c.char,comment:T.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:T.languages.c}}}}),T.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete T.languages.c.boolean,T.languages.objectivec=T.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete T.languages.objectivec["class-name"],T.languages.objc=T.languages.objectivec,T.languages.reason=T.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),T.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete T.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(T),T.languages.go=T.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),T.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete T.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(T),T.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},T.languages.python["string-interpolation"].inside.interpolation.inside.rest=T.languages.python,T.languages.py=T.languages.python;((e,t)=>{for(var n in t)f(e,n,{get:t[n],enumerable:!0})})({},{dracula:()=>L,duotoneDark:()=>P,duotoneLight:()=>N,github:()=>A,jettwaveDark:()=>H,jettwaveLight:()=>Q,nightOwl:()=>O,nightOwlLight:()=>j,oceanicNext:()=>F,okaidia:()=>D,oneDark:()=>Z,oneLight:()=>V,palenight:()=>M,shadesOfPurple:()=>q,synthwave84:()=>B,ultramin:()=>z,vsDark:()=>$,vsLight:()=>U});var L={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},P={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},N={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},A={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},O={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},j={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},R="#c5a5c5",I="#8dc891",F={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:R}},{types:["attr-value"],style:{color:I}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:I}},{types:["punctuation"],style:{color:I}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:R}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},D={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},M={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},q={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},B={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},z={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},$={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},U={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},H={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Q={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Z={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},V={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},W=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:a}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=S(S({},e[t]),a);e[t]=n})),e}),{});return r.root=n,r.plain=E(S({},n),{backgroundColor:void 0}),r},G=/\r\n|\r|\n/,Y=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},K=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},X=e=>{const t=[[]],n=[e],r=[0],a=[e.length];let o=0,s=0,i=[];const l=[i];for(;s>-1;){for(;(o=r[s]++)<a[s];){let e,c=t[s];const u=n[s][o];if("string"==typeof u?(c=s>0?c:["plain"],e=u):(c=K(c,u.type),u.alias&&(c=K(c,u.alias)),e=u.content),"string"!=typeof e){s++,t.push(c),n.push(e),r.push(0),a.push(e.length);continue}const d=e.split(G),p=d.length;i.push({types:c,content:d[0]});for(let t=1;t<p;t++)Y(i),l.push(i=[]),i.push({types:c,content:d[t]})}s--,t.pop(),n.pop(),r.pop(),a.pop()}return Y(i),l},J=({children:e,language:t,code:n,theme:r,prism:a})=>{const o=t.toLowerCase(),s=((e,t)=>{const[n,r]=(0,u.useState)(W(t,e)),a=(0,u.useRef)(),o=(0,u.useRef)();return(0,u.useEffect)((()=>{t===a.current&&e===o.current||(a.current=t,o.current=e,r(W(t,e)))}),[e,t]),n})(o,r),i=(e=>(0,u.useCallback)((t=>{var n=t,{className:r,style:a,line:o}=n,s=_(n,["className","style","line"]);const i=E(S({},s),{className:(0,d.Z)("token-line",r)});return"object"==typeof e&&"plain"in e&&(i.style=e.plain),"object"==typeof a&&(i.style=S(S({},i.style||{}),a)),i}),[e]))(s),l=(e=>{const t=(0,u.useCallback)((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return(0,u.useCallback)((e=>{var n=e,{token:r,className:a,style:o}=n,s=_(n,["token","className","style"]);const i=E(S({},s),{className:(0,d.Z)("token",...r.types,a),children:r.content,style:t(r)});return null!=o&&(i.style=S(S({},i.style||{}),o)),i}),[t])})(s),c=(({prism:e,code:t,grammar:n,language:r})=>{const a=(0,u.useRef)(e);return(0,u.useMemo)((()=>{if(null==n)return X([t]);const e={code:t,grammar:n,language:r,tokens:[]};return a.current.hooks.run("before-tokenize",e),e.tokens=a.current.tokenize(t,n),a.current.hooks.run("after-tokenize",e),X(e.tokens)}),[t,n,r])})({prism:a,language:o,code:n,grammar:a.languages[o]});return e({tokens:c,className:`prism-code language-${o}`,style:null!=s?s.root:{},getLineProps:i,getTokenProps:l})},ee=e=>(0,u.createElement)(J,E(S({},e),{prism:e.prism||T,theme:e.theme||$,code:e.code,language:e.language}))},8776:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=!0,a="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(a);var n="function"==typeof t?t():t,o=n?"".concat(a,": ").concat(n):a;throw new Error(o)}}},7529:e=>{"use strict";e.exports={}},6887:e=>{"use strict";e.exports=JSON.parse('{"/node-mysql2/search-ace":{"__comp":"1a4e3797","__context":{"plugin":"ac5f2e4a"}},"/node-mysql2/docs-af3":{"__comp":"5e95c892","__context":{"plugin":"c84c75a7"}},"/node-mysql2/docs-9d7":{"__comp":"a7bd4aaa","version":"935f2afb"},"/node-mysql2/docs/tags-b0b":{"__comp":"3720c009","tags":"55960ee5"},"/node-mysql2/docs/tags/create-connection-d9f":{"__comp":"df203c0f","tag":"f1dc11e5"},"/node-mysql2/docs/tags/create-pool-3ee":{"__comp":"df203c0f","tag":"f11325fe"},"/node-mysql2/docs/tags/create-pool-cluster-e8a":{"__comp":"df203c0f","tag":"11a54026"},"/node-mysql2/docs/tags/execute-2e5":{"__comp":"df203c0f","tag":"c2813336"},"/node-mysql2/docs/tags/parameters-cbb":{"__comp":"df203c0f","tag":"0fd3066c"},"/node-mysql2/docs/tags/placeholders-df2":{"__comp":"df203c0f","tag":"3226d26d"},"/node-mysql2/docs/tags/prepared-statements-94f":{"__comp":"df203c0f","tag":"f4597ecd"},"/node-mysql2/docs/tags/query-10e":{"__comp":"df203c0f","tag":"8e56b1fa"},"/node-mysql2/docs/tags/rds-a27":{"__comp":"df203c0f","tag":"508f32b9"},"/node-mysql2/docs/tags/sha-1-44a":{"__comp":"df203c0f","tag":"b825a63d"},"/node-mysql2/docs/tags/socks-911":{"__comp":"df203c0f","tag":"d2b048c9"},"/node-mysql2/docs/tags/ssl-ae4":{"__comp":"df203c0f","tag":"2a05ee09"},"/node-mysql2/docs/tags/uri-610":{"__comp":"df203c0f","tag":"20afe101"},"/node-mysql2/docs-e50":{"__comp":"a94703ab"},"/node-mysql2/docs-1eb":{"__comp":"17896441","content":"4edc808e"},"/node-mysql2/docs/acknowledgements-102":{"__comp":"17896441","content":"4e6d26eb"},"/node-mysql2/docs/api-and-configurations-e4c":{"__comp":"17896441","content":"32f1b34f"},"/node-mysql2/docs/contributing-246":{"__comp":"17896441","content":"822ff0a2"},"/node-mysql2/docs/contributing/website-6fb":{"__comp":"17896441","content":"f8d74a12"},"/node-mysql2/docs/documentation-8ee":{"__comp":"17896441","content":"9e767aa9"},"/node-mysql2/docs/documentation/authentication-switch-3d5":{"__comp":"17896441","content":"3945bec1"},"/node-mysql2/docs/documentation/extras-a10":{"__comp":"17896441","content":"ed06a4b6"},"/node-mysql2/docs/documentation/mysql-server-c6e":{"__comp":"17896441","content":"57495183"},"/node-mysql2/docs/documentation/prepared-statements-7be":{"__comp":"17896441","content":"f54f1246"},"/node-mysql2/docs/documentation/promise-wrapper-c14":{"__comp":"17896441","content":"546b1c5f"},"/node-mysql2/docs/documentation/typescript-examples-e5a":{"__comp":"17896441","content":"2bc14e22"},"/node-mysql2/docs/examples-252":{"__comp":"17896441","content":"76dfa484"},"/node-mysql2/docs/examples/binlog-watcher-847":{"__comp":"17896441","content":"3be0564c"},"/node-mysql2/docs/examples/connections/create-connection-b47":{"__comp":"17896441","content":"11e11f3b"},"/node-mysql2/docs/examples/connections/create-pool-3a8":{"__comp":"17896441","content":"54eaaaae"},"/node-mysql2/docs/examples/connections/createPoolCluster-983":{"__comp":"17896441","content":"b07748b5"},"/node-mysql2/docs/examples/promise-wrapper/co-await-979":{"__comp":"17896441","content":"ad7b17cf"},"/node-mysql2/docs/examples/queries/prepared-statements-01d":{"__comp":"17896441","content":"7ccab252"},"/node-mysql2/docs/examples/queries/prepared-statements/delete-e2e":{"__comp":"17896441","content":"8b8ccc10"},"/node-mysql2/docs/examples/queries/prepared-statements/insert-7ce":{"__comp":"17896441","content":"e19cd79a"},"/node-mysql2/docs/examples/queries/prepared-statements/select-ece":{"__comp":"17896441","content":"7fbd6b3a"},"/node-mysql2/docs/examples/queries/prepared-statements/update-5e9":{"__comp":"17896441","content":"b80d201b"},"/node-mysql2/docs/examples/queries/simple-queries-0c3":{"__comp":"17896441","content":"1568425c"},"/node-mysql2/docs/examples/queries/simple-queries/delete-ae5":{"__comp":"17896441","content":"59e52bc2"},"/node-mysql2/docs/examples/queries/simple-queries/insert-a0d":{"__comp":"17896441","content":"a55c4658"},"/node-mysql2/docs/examples/queries/simple-queries/select-2fa":{"__comp":"17896441","content":"8fcb4d7f"},"/node-mysql2/docs/examples/queries/simple-queries/update-bba":{"__comp":"17896441","content":"54768732"},"/node-mysql2/docs/examples/tests/mysql-proxy-16b":{"__comp":"17896441","content":"22161331"},"/node-mysql2/docs/examples/tests/pool-3de":{"__comp":"17896441","content":"f76f5ab7"},"/node-mysql2/docs/examples/tests/server-5c6":{"__comp":"17896441","content":"cffacdf0"},"/node-mysql2/docs/examples/typescript/basic-custom-class-909":{"__comp":"17896441","content":"f43af5ae"},"/node-mysql2/docs/examples/typescript/procedure-call/index-a85":{"__comp":"17896441","content":"df04d3c8"},"/node-mysql2/docs/examples/typescript/procedure-call/row-as-array-793":{"__comp":"17896441","content":"bc31cbdb"},"/node-mysql2/docs/examples/typescript/row-data/index-827":{"__comp":"17896441","content":"0e27d5d9"},"/node-mysql2/docs/examples/typescript/row-data/multi-statements-773":{"__comp":"17896441","content":"13833ed5"},"/node-mysql2/docs/examples/typescript/row-data/row-as-array-b0c":{"__comp":"17896441","content":"5814edec"},"/node-mysql2/docs/examples/typescript/row-data/row-as-array-multi-statements-e36":{"__comp":"17896441","content":"1cee01a7"},"/node-mysql2/docs/faq-622":{"__comp":"17896441","content":"4e92b6b6"},"/node-mysql2/docs/faq/how-to-handle-errors-3ee":{"__comp":"17896441","content":"cdbda324"},"/node-mysql2/docs/history-and-why-mysq2-bac":{"__comp":"17896441","content":"5834a125"},"/node-mysql2/docs/stability-badges-48c":{"__comp":"17896441","content":"db044f71"},"/node-mysql2/-951":{"__comp":"1df93b7f","__context":{"plugin":"fb880757"},"config":"5e9f5e1a"}}')}},e=>{e.O(0,[532],(()=>{return t=7221,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/assets/js/main.8d27fbf1.js.LICENSE.txt b/assets/js/main.8aa13938.js.LICENSE.txt similarity index 100% rename from assets/js/main.8d27fbf1.js.LICENSE.txt rename to assets/js/main.8aa13938.js.LICENSE.txt diff --git a/assets/js/main.8d27fbf1.js b/assets/js/main.8d27fbf1.js deleted file mode 100644 index 72ddbb4567..0000000000 --- a/assets/js/main.8d27fbf1.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see main.8d27fbf1.js.LICENSE.txt */ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[179],{1728:(e,t,n)=>{"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}n.d(t,{Z:()=>a});const a=function(){for(var e,t,n=0,a="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}},723:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});n(7294);var r=n(8356),a=n.n(r),o=n(6887);const i={"10c30137":[()=>Promise.all([n.e(532),n.e(8193)]).then(n.bind(n,6161)),"@site/docs/examples/connect-over-socks.mdx",6161],"13833ed5":[()=>Promise.all([n.e(532),n.e(2496)]).then(n.bind(n,2215)),"@site/docs/examples/typescript/row-data/02-multi-statements.mdx",2215],"14eb3368":[()=>Promise.all([n.e(532),n.e(9817)]).then(n.bind(n,4228)),"@theme/DocCategoryGeneratedIndexPage",4228],17896441:[()=>Promise.all([n.e(532),n.e(7918)]).then(n.bind(n,9678)),"@theme/DocItem",9678],"1a362983":[()=>n.e(138).then(n.t.bind(n,4491,19)),"~docs/default/category-node-mysql-2-docs-examples-category-row-data-packet-e12.json",4491],"1a4e3797":[()=>Promise.all([n.e(532),n.e(7920)]).then(n.bind(n,2027)),"@theme/SearchPage",2027],"1cee01a7":[()=>Promise.all([n.e(532),n.e(384)]).then(n.bind(n,5235)),"@site/docs/examples/typescript/row-data/03-row-as-array-multi-statements.mdx",5235],"1df93b7f":[()=>n.e(3237).then(n.bind(n,9754)),"@site/src/pages/index.tsx",9754],"1f08bd40":[()=>Promise.all([n.e(532),n.e(312)]).then(n.bind(n,5467)),"@site/docs/examples/typescript/row-data/00-row-data-packet.mdx",5467],"2bc14e22":[()=>Promise.all([n.e(532),n.e(2839)]).then(n.bind(n,4760)),"@site/docs/documentation/typescript-examples.mdx",4760],"32f1b34f":[()=>n.e(2995).then(n.bind(n,92)),"@site/docs/api-and-configurations.mdx",92],"3945bec1":[()=>n.e(8882).then(n.bind(n,1889)),"@site/docs/documentation/authentication-switch.mdx",1889],"3be0564c":[()=>Promise.all([n.e(532),n.e(9594)]).then(n.bind(n,3034)),"@site/docs/examples/binlog-watcher.mdx",3034],"3bea1af6":[()=>Promise.all([n.e(532),n.e(9264)]).then(n.bind(n,3006)),"@site/docs/examples/execute.mdx",3006],"43758d02":[()=>Promise.all([n.e(532),n.e(764)]).then(n.bind(n,3230)),"@site/docs/examples/pool-test.mdx",3230],"4e547710":[()=>Promise.all([n.e(532),n.e(1449)]).then(n.bind(n,9393)),"@site/docs/examples/promise-co-await.mdx",9393],"4e6d26eb":[()=>n.e(979).then(n.bind(n,2522)),"@site/docs/acknowledgements.mdx",2522],"4e92b6b6":[()=>n.e(3586).then(n.bind(n,3769)),"@site/docs/faq/00-index.mdx",3769],"4edc808e":[()=>Promise.all([n.e(532),n.e(4173)]).then(n.bind(n,7559)),"@site/docs/index.mdx",7559],"51824e23":[()=>n.e(794).then(n.t.bind(n,8799,19)),"~docs/default/category-node-mysql-2-docs-examples-category-ssl-26c.json",8799],"546b1c5f":[()=>n.e(8263).then(n.bind(n,403)),"@site/docs/documentation/promise-wrapper.mdx",403],"54dbd6f3":[()=>Promise.all([n.e(532),n.e(4917)]).then(n.bind(n,929)),"@site/docs/examples/queries/select.mdx",929],"5748a325":[()=>Promise.all([n.e(532),n.e(1647)]).then(n.bind(n,4444)),"@site/docs/examples/server.mdx",4444],57495183:[()=>n.e(5003).then(n.bind(n,4304)),"@site/docs/documentation/mysql-server.mdx",4304],"5814edec":[()=>Promise.all([n.e(532),n.e(3561)]).then(n.bind(n,3788)),"@site/docs/examples/typescript/row-data/01-row-as-array.mdx",3788],"5834a125":[()=>n.e(8722).then(n.bind(n,90)),"@site/docs/history-and-why-mysq2.mdx",90],"5e95c892":[()=>n.e(9661).then(n.bind(n,1892)),"@theme/DocsRoot",1892],"5e9f5e1a":[()=>Promise.resolve().then(n.bind(n,6809)),"@generated/docusaurus.config",6809],"75b440d9":[()=>Promise.all([n.e(532),n.e(9521)]).then(n.bind(n,3083)),"@site/docs/examples/ssl/select-over-ssl.mdx",3083],"76dfa484":[()=>Promise.all([n.e(532),n.e(3433)]).then(n.bind(n,7345)),"@site/docs/examples/00-index.mdx",7345],"76e64282":[()=>n.e(9416).then(n.t.bind(n,743,19)),"~docs/default/category-node-mysql-2-docs-examples-category-procedure-call-packet-257.json",743],"822ff0a2":[()=>n.e(1611).then(n.bind(n,6054)),"@site/docs/contributing/00-index.mdx",6054],"8bed1f9d":[()=>n.e(7805).then(n.t.bind(n,964,19)),"~docs/default/category-node-mysql-2-docs-examples-category-typescript-83e.json",964],"935f2afb":[()=>n.e(53).then(n.t.bind(n,1109,19)),"~docs/default/version-current-metadata-prop-751.json",1109],"93f3cbcf":[()=>Promise.all([n.e(532),n.e(1883)]).then(n.bind(n,4972)),"@site/docs/examples/mysqlproxy.mdx",4972],"9e767aa9":[()=>n.e(8806).then(n.bind(n,7372)),"@site/docs/documentation/00-index.mdx",7372],a7bd4aaa:[()=>n.e(8518).then(n.bind(n,8564)),"@theme/DocVersionRoot",8564],a94703ab:[()=>Promise.all([n.e(532),n.e(4368)]).then(n.bind(n,2674)),"@theme/DocRoot",2674],ac5f2e4a:[()=>n.e(9380).then(n.t.bind(n,2776,19)),"/home/runner/work/node-mysql2/node-mysql2/website/.docusaurus/@easyops-cn/docusaurus-search-local/default/plugin-route-context-module-100.json",2776],bc31cbdb:[()=>Promise.all([n.e(532),n.e(1437)]).then(n.bind(n,861)),"@site/docs/examples/typescript/procedure-call/01-row-as-array.mdx",861],c84c75a7:[()=>n.e(1233).then(n.t.bind(n,9822,19)),"/home/runner/work/node-mysql2/node-mysql2/website/.docusaurus/docusaurus-plugin-content-docs/default/plugin-route-context-module-100.json",9822],cdbda324:[()=>Promise.all([n.e(532),n.e(4116)]).then(n.bind(n,1851)),"@site/docs/faq/how-to-handle-errors.mdx",1851],d2002d6f:[()=>Promise.all([n.e(532),n.e(7184)]).then(n.bind(n,1185)),"@site/docs/examples/pass-sha.mdx",1185],db044f71:[()=>n.e(6159).then(n.bind(n,8009)),"@site/docs/stability-badges.mdx",8009],dcf552eb:[()=>Promise.all([n.e(532),n.e(4338)]).then(n.bind(n,6259)),"@site/docs/examples/ssl/rds-ssl.mdx",6259],e1e203e4:[()=>n.e(9800).then(n.t.bind(n,920,19)),"~docs/default/category-node-mysql-2-docs-examples-category-queries-b04.json",920],e3a2ad82:[()=>Promise.all([n.e(532),n.e(5775)]).then(n.bind(n,2017)),"@site/docs/examples/typescript/procedure-call/00-procedure-call-packet.mdx",2017],e9842ab8:[()=>Promise.all([n.e(532),n.e(8218)]).then(n.bind(n,492)),"@site/docs/examples/prepare.mdx",492],ed06a4b6:[()=>n.e(2991).then(n.bind(n,1639)),"@site/docs/documentation/extras.mdx",1639],f43af5ae:[()=>Promise.all([n.e(532),n.e(5909)]).then(n.bind(n,104)),"@site/docs/examples/typescript/basic-custom-class.mdx",104],f54f1246:[()=>n.e(630).then(n.bind(n,4990)),"@site/docs/documentation/prepared-statements.mdx",4990],f8d74a12:[()=>Promise.all([n.e(532),n.e(5807)]).then(n.bind(n,7330)),"@site/docs/contributing/website.mdx",7330],fb880757:[()=>n.e(1465).then(n.t.bind(n,5745,19)),"/home/runner/work/node-mysql2/node-mysql2/website/.docusaurus/docusaurus-plugin-content-pages/default/plugin-route-context-module-100.json",5745]};var s=n(5893);function l(e){let{error:t,retry:n,pastDelay:r}=e;return t?(0,s.jsxs)("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"},children:[(0,s.jsx)("p",{children:String(t)}),(0,s.jsx)("div",{children:(0,s.jsx)("button",{type:"button",onClick:n,children:"Retry"})})]}):r?(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:(0,s.jsx)("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb",children:(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2",children:[(0,s.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,s.jsx)("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,s.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,s.jsx)("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,s.jsx)("circle",{cx:"22",cy:"22",r:"8",children:(0,s.jsx)("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})})]})})}):null}var c=n(9670),u=n(226);function d(e,t){if("*"===e)return a()({loading:l,loader:()=>n.e(1772).then(n.bind(n,1772)),modules:["@theme/NotFound"],webpack:()=>[1772],render(e,t){const n=e.default;return(0,s.jsx)(u.z,{value:{plugin:{name:"native",id:"default"}},children:(0,s.jsx)(n,{...t})})}});const r=o[`${e}-${t}`],d={},p=[],f=[],h=(0,c.Z)(r);return Object.entries(h).forEach((e=>{let[t,n]=e;const r=i[n];r&&(d[t]=r[0],p.push(r[1]),f.push(r[2]))})),a().Map({loading:l,loader:d,modules:p,webpack:()=>f,render(t,n){const a=JSON.parse(JSON.stringify(r));Object.entries(t).forEach((t=>{let[n,r]=t;const o=r.default;if(!o)throw new Error(`The page component at ${e} doesn't have a default export. This makes it impossible to render anything. Consider default-exporting a React component.`);"object"!=typeof o&&"function"!=typeof o||Object.keys(r).filter((e=>"default"!==e)).forEach((e=>{o[e]=r[e]}));let i=a;const s=n.split(".");s.slice(0,-1).forEach((e=>{i=i[e]})),i[s[s.length-1]]=o}));const o=a.__comp;delete a.__comp;const i=a.__context;return delete a.__context,(0,s.jsx)(u.z,{value:i,children:(0,s.jsx)(o,{...a,...n})})}})}const p=[{path:"/node-mysql2/search",component:d("/node-mysql2/search","ace"),exact:!0},{path:"/node-mysql2/docs",component:d("/node-mysql2/docs","201"),routes:[{path:"/node-mysql2/docs",component:d("/node-mysql2/docs","47a"),routes:[{path:"/node-mysql2/docs",component:d("/node-mysql2/docs","e0d"),routes:[{path:"/node-mysql2/docs",component:d("/node-mysql2/docs","1eb"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/acknowledgements",component:d("/node-mysql2/docs/acknowledgements","102"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/api-and-configurations",component:d("/node-mysql2/docs/api-and-configurations","e4c"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/category/procedure-call-packet",component:d("/node-mysql2/docs/category/procedure-call-packet","686"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/category/queries",component:d("/node-mysql2/docs/category/queries","4f0"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/category/row-data-packet",component:d("/node-mysql2/docs/category/row-data-packet","e69"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/category/ssl",component:d("/node-mysql2/docs/category/ssl","308"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/category/typescript",component:d("/node-mysql2/docs/category/typescript","221"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/contributing",component:d("/node-mysql2/docs/contributing","246"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/contributing/website",component:d("/node-mysql2/docs/contributing/website","6fb"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/documentation",component:d("/node-mysql2/docs/documentation","8ee"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/documentation/authentication-switch",component:d("/node-mysql2/docs/documentation/authentication-switch","3d5"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/documentation/extras",component:d("/node-mysql2/docs/documentation/extras","a10"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/documentation/mysql-server",component:d("/node-mysql2/docs/documentation/mysql-server","c6e"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/documentation/prepared-statements",component:d("/node-mysql2/docs/documentation/prepared-statements","7be"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/documentation/promise-wrapper",component:d("/node-mysql2/docs/documentation/promise-wrapper","c14"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/documentation/typescript-examples",component:d("/node-mysql2/docs/documentation/typescript-examples","e5a"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/examples",component:d("/node-mysql2/docs/examples","252"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/binlog-watcher",component:d("/node-mysql2/docs/examples/binlog-watcher","847"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/connect-over-socks",component:d("/node-mysql2/docs/examples/connect-over-socks","1d2"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/execute",component:d("/node-mysql2/docs/examples/execute","56d"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/mysqlproxy",component:d("/node-mysql2/docs/examples/mysqlproxy","d78"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/pass-sha",component:d("/node-mysql2/docs/examples/pass-sha","645"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/pool-test",component:d("/node-mysql2/docs/examples/pool-test","ade"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/prepare",component:d("/node-mysql2/docs/examples/prepare","deb"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/promise-co-await",component:d("/node-mysql2/docs/examples/promise-co-await","47b"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/queries/select",component:d("/node-mysql2/docs/examples/queries/select","283"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/server",component:d("/node-mysql2/docs/examples/server","f6e"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/ssl/rds-ssl",component:d("/node-mysql2/docs/examples/ssl/rds-ssl","659"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/ssl/select-over-ssl",component:d("/node-mysql2/docs/examples/ssl/select-over-ssl","075"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/typescript/basic-custom-class",component:d("/node-mysql2/docs/examples/typescript/basic-custom-class","909"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/typescript/procedure-call/procedure-call-packet",component:d("/node-mysql2/docs/examples/typescript/procedure-call/procedure-call-packet","919"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/typescript/procedure-call/row-as-array",component:d("/node-mysql2/docs/examples/typescript/procedure-call/row-as-array","793"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/typescript/row-data/multi-statements",component:d("/node-mysql2/docs/examples/typescript/row-data/multi-statements","773"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/typescript/row-data/row-as-array",component:d("/node-mysql2/docs/examples/typescript/row-data/row-as-array","b0c"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/typescript/row-data/row-as-array-multi-statements",component:d("/node-mysql2/docs/examples/typescript/row-data/row-as-array-multi-statements","e36"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/examples/typescript/row-data/row-data-packet",component:d("/node-mysql2/docs/examples/typescript/row-data/row-data-packet","ab1"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/docs/faq",component:d("/node-mysql2/docs/faq","622"),exact:!0,sidebar:"faq"},{path:"/node-mysql2/docs/faq/how-to-handle-errors",component:d("/node-mysql2/docs/faq/how-to-handle-errors","3ee"),exact:!0,sidebar:"faq"},{path:"/node-mysql2/docs/history-and-why-mysq2",component:d("/node-mysql2/docs/history-and-why-mysq2","bac"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/docs/stability-badges",component:d("/node-mysql2/docs/stability-badges","48c"),exact:!0,sidebar:"docs"}]}]}]},{path:"/node-mysql2/",component:d("/node-mysql2/","951"),exact:!0},{path:"*",component:d("*")}]},8934:(e,t,n)=>{"use strict";n.d(t,{_:()=>o,t:()=>i});var r=n(7294),a=n(5893);const o=r.createContext(!1);function i(e){let{children:t}=e;const[n,i]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{i(!0)}),[]),(0,a.jsx)(o.Provider,{value:n,children:t})}},7221:(e,t,n)=>{"use strict";var r=n(7294),a=n(745),o=n(3727),i=n(405),s=n(412);const l=[n(2497),n(3310),n(8320),n(3395)];var c=n(723),u=n(6550),d=n(8790),p=n(5893);function f(e){let{children:t}=e;return(0,p.jsx)(p.Fragment,{children:t})}var h=n(5742),m=n(2263),g=n(4996),y=n(6668),b=n(1944),v=n(4711),x=n(9727),w=n(3320),k=n(8780),S=n(197);function E(){const{i18n:{currentLocale:e,defaultLocale:t,localeConfigs:n}}=(0,m.Z)(),r=(0,v.l)(),a=n[e].htmlLang,o=e=>e.replace("-","_");return(0,p.jsxs)(h.Z,{children:[Object.entries(n).map((e=>{let[t,{htmlLang:n}]=e;return(0,p.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:n},t)})),(0,p.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:"x-default"}),(0,p.jsx)("meta",{property:"og:locale",content:o(a)}),Object.values(n).filter((e=>a!==e.htmlLang)).map((e=>(0,p.jsx)("meta",{property:"og:locale:alternate",content:o(e.htmlLang)},`meta-og-${e.htmlLang}`)))]})}function _(e){let{permalink:t}=e;const{siteConfig:{url:n}}=(0,m.Z)(),r=function(){const{siteConfig:{url:e,baseUrl:t,trailingSlash:n}}=(0,m.Z)(),{pathname:r}=(0,u.TH)();return e+(0,k.applyTrailingSlash)((0,g.Z)(r),{trailingSlash:n,baseUrl:t})}(),a=t?`${n}${t}`:r;return(0,p.jsxs)(h.Z,{children:[(0,p.jsx)("meta",{property:"og:url",content:a}),(0,p.jsx)("link",{rel:"canonical",href:a})]})}function C(){const{i18n:{currentLocale:e}}=(0,m.Z)(),{metadata:t,image:n}=(0,y.L)();return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(h.Z,{children:[(0,p.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,p.jsx)("body",{className:x.h})]}),n&&(0,p.jsx)(b.d,{image:n}),(0,p.jsx)(_,{}),(0,p.jsx)(E,{}),(0,p.jsx)(S.Z,{tag:w.HX,locale:e}),(0,p.jsx)(h.Z,{children:t.map(((e,t)=>(0,p.jsx)("meta",{...e},t)))})]})}const T=new Map;function L(e){if(T.has(e.pathname))return{...e,pathname:T.get(e.pathname)};if((0,d.f)(c.Z,e.pathname).some((e=>{let{route:t}=e;return!0===t.exact})))return T.set(e.pathname,e.pathname),e;const t=e.pathname.trim().replace(/(?:\/index)?\.html$/,"")||"/";return T.set(e.pathname,t),{...e,pathname:t}}var N=n(8934),P=n(8940),A=n(469);function O(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const a=l.map((t=>{const r=t.default?.[e]??t[e];return r?.(...n)}));return()=>a.forEach((e=>e?.()))}const R=function(e){let{children:t,location:n,previousLocation:r}=e;return(0,A.Z)((()=>{r!==n&&(!function(e){let{location:t,previousLocation:n}=e;if(!n)return;const r=t.pathname===n.pathname,a=t.hash===n.hash,o=t.search===n.search;if(r&&a&&!o)return;const{hash:i}=t;if(i){const e=decodeURIComponent(i.substring(1)),t=document.getElementById(e);t?.scrollIntoView()}else window.scrollTo(0,0)}({location:n,previousLocation:r}),O("onRouteDidUpdate",{previousLocation:r,location:n}))}),[r,n]),t};function j(e){const t=Array.from(new Set([e,decodeURI(e)])).map((e=>(0,d.f)(c.Z,e))).flat();return Promise.all(t.map((e=>e.route.component.preload?.())))}class I extends r.Component{previousLocation;routeUpdateCleanupCb;constructor(e){super(e),this.previousLocation=null,this.routeUpdateCleanupCb=s.Z.canUseDOM?O("onRouteUpdate",{previousLocation:null,location:this.props.location}):()=>{},this.state={nextRouteHasLoaded:!0}}shouldComponentUpdate(e,t){if(e.location===this.props.location)return t.nextRouteHasLoaded;const n=e.location;return this.previousLocation=this.props.location,this.setState({nextRouteHasLoaded:!1}),this.routeUpdateCleanupCb=O("onRouteUpdate",{previousLocation:this.previousLocation,location:n}),j(n.pathname).then((()=>{this.routeUpdateCleanupCb(),this.setState({nextRouteHasLoaded:!0})})).catch((e=>{console.warn(e),window.location.reload()})),!1}render(){const{children:e,location:t}=this.props;return(0,p.jsx)(R,{previousLocation:this.previousLocation,location:t,children:(0,p.jsx)(u.AW,{location:t,render:()=>e})})}}const F=I,D="__docusaurus-base-url-issue-banner-container",M="__docusaurus-base-url-issue-banner",B="__docusaurus-base-url-issue-banner-suggestion-container";function z(e){return`\ndocument.addEventListener('DOMContentLoaded', function maybeInsertBanner() {\n var shouldInsert = typeof window['docusaurus'] === 'undefined';\n shouldInsert && insertBanner();\n});\n\nfunction insertBanner() {\n var bannerContainer = document.createElement('div');\n bannerContainer.id = '${D}';\n var bannerHtml = ${JSON.stringify(function(e){return`\n<div id="${M}" style="border: thick solid red; background-color: rgb(255, 230, 179); margin: 20px; padding: 20px; font-size: 20px;">\n <p style="font-weight: bold; font-size: 30px;">Your Docusaurus site did not load properly.</p>\n <p>A very common reason is a wrong site <a href="https://docusaurus.io/docs/docusaurus.config.js/#baseUrl" style="font-weight: bold;">baseUrl configuration</a>.</p>\n <p>Current configured baseUrl = <span style="font-weight: bold; color: red;">${e}</span> ${"/"===e?" (default value)":""}</p>\n <p>We suggest trying baseUrl = <span id="${B}" style="font-weight: bold; color: green;"></span></p>\n</div>\n`}(e)).replace(/</g,"\\<")};\n bannerContainer.innerHTML = bannerHtml;\n document.body.prepend(bannerContainer);\n var suggestionContainer = document.getElementById('${B}');\n var actualHomePagePath = window.location.pathname;\n var suggestedBaseUrl = actualHomePagePath.substr(-1) === '/'\n ? actualHomePagePath\n : actualHomePagePath + '/';\n suggestionContainer.innerHTML = suggestedBaseUrl;\n}\n`}function $(){const{siteConfig:{baseUrl:e}}=(0,m.Z)();return(0,p.jsx)(p.Fragment,{children:!s.Z.canUseDOM&&(0,p.jsx)(h.Z,{children:(0,p.jsx)("script",{children:z(e)})})})}function q(){const{siteConfig:{baseUrl:e,baseUrlIssueBanner:t}}=(0,m.Z)(),{pathname:n}=(0,u.TH)();return t&&n===e?(0,p.jsx)($,{}):null}function U(){const{siteConfig:{favicon:e,title:t,noIndex:n},i18n:{currentLocale:r,localeConfigs:a}}=(0,m.Z)(),o=(0,g.Z)(e),{htmlLang:i,direction:s}=a[r];return(0,p.jsxs)(h.Z,{children:[(0,p.jsx)("html",{lang:i,dir:s}),(0,p.jsx)("title",{children:t}),(0,p.jsx)("meta",{property:"og:title",content:t}),(0,p.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),n&&(0,p.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),e&&(0,p.jsx)("link",{rel:"icon",href:o})]})}var H=n(4763),Q=n(2389);function Z(){const e=(0,Q.Z)();return(0,p.jsx)(h.Z,{children:(0,p.jsx)("html",{"data-has-hydrated":e})})}function V(){const e=(0,d.H)(c.Z),t=(0,u.TH)();return(0,p.jsx)(H.Z,{children:(0,p.jsx)(P.M,{children:(0,p.jsxs)(N.t,{children:[(0,p.jsxs)(f,{children:[(0,p.jsx)(U,{}),(0,p.jsx)(C,{}),(0,p.jsx)(q,{}),(0,p.jsx)(F,{location:L(t),children:e})]}),(0,p.jsx)(Z,{})]})})})}var W=n(6887);const G=function(e){try{return document.createElement("link").relList.supports(e)}catch{return!1}}("prefetch")?function(e){return new Promise(((t,n)=>{if("undefined"==typeof document)return void n();const r=document.createElement("link");r.setAttribute("rel","prefetch"),r.setAttribute("href",e),r.onload=()=>t(),r.onerror=()=>n();const a=document.getElementsByTagName("head")[0]??document.getElementsByName("script")[0]?.parentNode;a?.appendChild(r)}))}:function(e){return new Promise(((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.withCredentials=!0,r.onload=()=>{200===r.status?t():n()},r.send(null)}))};var Y=n(9670);const K=new Set,X=new Set,J=()=>navigator.connection?.effectiveType.includes("2g")||navigator.connection?.saveData,ee={prefetch(e){if(!(e=>!J()&&!X.has(e)&&!K.has(e))(e))return!1;K.add(e);const t=(0,d.f)(c.Z,e).flatMap((e=>{return t=e.route.path,Object.entries(W).filter((e=>{let[n]=e;return n.replace(/-[^-]+$/,"")===t})).flatMap((e=>{let[,t]=e;return Object.values((0,Y.Z)(t))}));var t}));return Promise.all(t.map((e=>{const t=n.gca(e);return t&&!t.includes("undefined")?G(t).catch((()=>{})):Promise.resolve()})))},preload:e=>!!(e=>!J()&&!X.has(e))(e)&&(X.add(e),j(e))},te=Object.freeze(ee),ne=Boolean(!0);if(s.Z.canUseDOM){window.docusaurus=te;const e=document.getElementById("__docusaurus"),t=(0,p.jsx)(i.B6,{children:(0,p.jsx)(o.VK,{children:(0,p.jsx)(V,{})})}),n=(e,t)=>{console.error("Docusaurus React Root onRecoverableError:",e,t)},s=()=>{if(ne)r.startTransition((()=>{a.hydrateRoot(e,t,{onRecoverableError:n})}));else{const o=a.createRoot(e,{onRecoverableError:n});r.startTransition((()=>{o.render(t)}))}};j(window.location.pathname).then(s)}},8940:(e,t,n)=>{"use strict";n.d(t,{_:()=>d,M:()=>p});var r=n(7294),a=n(6809);const o=JSON.parse('{"navbar-locale-plugin":{"default":{}},"docusaurus-plugin-content-docs":{"default":{"path":"/node-mysql2/docs","versions":[{"name":"current","label":"Next","isLast":true,"path":"/node-mysql2/docs","mainDocId":"index","docs":[{"id":"acknowledgements","path":"/node-mysql2/docs/acknowledgements","sidebar":"docs"},{"id":"api-and-configurations","path":"/node-mysql2/docs/api-and-configurations","sidebar":"docs"},{"id":"contributing/index","path":"/node-mysql2/docs/contributing","sidebar":"docs"},{"id":"contributing/website","path":"/node-mysql2/docs/contributing/website","sidebar":"docs"},{"id":"documentation/authentication-switch","path":"/node-mysql2/docs/documentation/authentication-switch","sidebar":"docs"},{"id":"documentation/extras","path":"/node-mysql2/docs/documentation/extras","sidebar":"docs"},{"id":"documentation/index","path":"/node-mysql2/docs/documentation","sidebar":"docs"},{"id":"documentation/mysql-server","path":"/node-mysql2/docs/documentation/mysql-server","sidebar":"docs"},{"id":"documentation/prepared-statements","path":"/node-mysql2/docs/documentation/prepared-statements","sidebar":"docs"},{"id":"documentation/promise-wrapper","path":"/node-mysql2/docs/documentation/promise-wrapper","sidebar":"docs"},{"id":"documentation/typescript-examples","path":"/node-mysql2/docs/documentation/typescript-examples","sidebar":"docs"},{"id":"examples/binlog-watcher","path":"/node-mysql2/docs/examples/binlog-watcher","sidebar":"examples"},{"id":"examples/connect-over-socks","path":"/node-mysql2/docs/examples/connect-over-socks","sidebar":"examples"},{"id":"examples/execute","path":"/node-mysql2/docs/examples/execute","sidebar":"examples"},{"id":"examples/index","path":"/node-mysql2/docs/examples","sidebar":"examples"},{"id":"examples/mysqlproxy","path":"/node-mysql2/docs/examples/mysqlproxy","sidebar":"examples"},{"id":"examples/pass-sha","path":"/node-mysql2/docs/examples/pass-sha","sidebar":"examples"},{"id":"examples/pool-test","path":"/node-mysql2/docs/examples/pool-test","sidebar":"examples"},{"id":"examples/prepare","path":"/node-mysql2/docs/examples/prepare","sidebar":"examples"},{"id":"examples/promise-co-await","path":"/node-mysql2/docs/examples/promise-co-await","sidebar":"examples"},{"id":"examples/queries/select","path":"/node-mysql2/docs/examples/queries/select","sidebar":"examples"},{"id":"examples/server","path":"/node-mysql2/docs/examples/server","sidebar":"examples"},{"id":"examples/ssl/rds-ssl","path":"/node-mysql2/docs/examples/ssl/rds-ssl","sidebar":"examples"},{"id":"examples/ssl/select-over-ssl","path":"/node-mysql2/docs/examples/ssl/select-over-ssl","sidebar":"examples"},{"id":"examples/typescript/basic-custom-class","path":"/node-mysql2/docs/examples/typescript/basic-custom-class","sidebar":"examples"},{"id":"examples/typescript/procedure-call/procedure-call-packet","path":"/node-mysql2/docs/examples/typescript/procedure-call/procedure-call-packet","sidebar":"examples"},{"id":"examples/typescript/procedure-call/row-as-array","path":"/node-mysql2/docs/examples/typescript/procedure-call/row-as-array","sidebar":"examples"},{"id":"examples/typescript/row-data/multi-statements","path":"/node-mysql2/docs/examples/typescript/row-data/multi-statements","sidebar":"examples"},{"id":"examples/typescript/row-data/row-as-array","path":"/node-mysql2/docs/examples/typescript/row-data/row-as-array","sidebar":"examples"},{"id":"examples/typescript/row-data/row-as-array-multi-statements","path":"/node-mysql2/docs/examples/typescript/row-data/row-as-array-multi-statements","sidebar":"examples"},{"id":"examples/typescript/row-data/row-data-packet","path":"/node-mysql2/docs/examples/typescript/row-data/row-data-packet","sidebar":"examples"},{"id":"faq/how-to-handle-errors","path":"/node-mysql2/docs/faq/how-to-handle-errors","sidebar":"faq"},{"id":"faq/index","path":"/node-mysql2/docs/faq","sidebar":"faq"},{"id":"history-and-why-mysq2","path":"/node-mysql2/docs/history-and-why-mysq2","sidebar":"docs"},{"id":"index","path":"/node-mysql2/docs/","sidebar":"docs"},{"id":"stability-badges","path":"/node-mysql2/docs/stability-badges","sidebar":"docs"},{"id":"/category/queries","path":"/node-mysql2/docs/category/queries","sidebar":"examples"},{"id":"/category/ssl","path":"/node-mysql2/docs/category/ssl","sidebar":"examples"},{"id":"/category/typescript","path":"/node-mysql2/docs/category/typescript","sidebar":"examples"},{"id":"/category/procedure-call-packet","path":"/node-mysql2/docs/category/procedure-call-packet","sidebar":"examples"},{"id":"/category/row-data-packet","path":"/node-mysql2/docs/category/row-data-packet","sidebar":"examples"}],"draftIds":[],"sidebars":{"docs":{"link":{"path":"/node-mysql2/docs/","label":"index"}},"examples":{"link":{"path":"/node-mysql2/docs/examples","label":"examples/index"}},"faq":{"link":{"path":"/node-mysql2/docs/faq","label":"faq/index"}}}}],"breadcrumbs":true}}}'),i=JSON.parse('{"defaultLocale":"en","locales":["en","zh-CN","pt-BR"],"path":"i18n","currentLocale":"en","localeConfigs":{"en":{"label":"\ud83c\uddfa\ud83c\uddf8 English","direction":"ltr","htmlLang":"en","calendar":"gregory","path":"en"},"zh-CN":{"label":"\ud83c\udde8\ud83c\uddf3 \u7b80\u4f53\u4e2d\u6587","direction":"ltr","htmlLang":"zh-CN","calendar":"gregory","path":"zh-CN"},"pt-BR":{"label":"\ud83c\udde7\ud83c\uddf7 Portugu\xeas (Brasil)","direction":"ltr","htmlLang":"pt-BR","calendar":"gregory","path":"pt-BR"}}}');var s=n(7529);const l=JSON.parse('{"docusaurusVersion":"3.0.1","siteVersion":"0.0.0","pluginVersions":{"docusaurus-plugin-content-docs":{"type":"package","name":"@docusaurus/plugin-content-docs","version":"3.0.1"},"docusaurus-plugin-content-pages":{"type":"package","name":"@docusaurus/plugin-content-pages","version":"3.0.1"},"docusaurus-plugin-sitemap":{"type":"package","name":"@docusaurus/plugin-sitemap","version":"3.0.1"},"docusaurus-theme-classic":{"type":"package","name":"@docusaurus/theme-classic","version":"3.0.1"},"docusaurus-plugin-sass":{"type":"package","name":"docusaurus-plugin-sass","version":"0.2.5"},"@easyops-cn/docusaurus-search-local":{"type":"package","name":"@easyops-cn/docusaurus-search-local","version":"0.40.1"},"navbar-locale-plugin":{"type":"local"}}}');var c=n(5893);const u={siteConfig:a.default,siteMetadata:l,globalData:o,i18n:i,codeTranslations:s},d=r.createContext(u);function p(e){let{children:t}=e;return(0,c.jsx)(d.Provider,{value:u,children:t})}},4763:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(7294),a=n(412),o=n(5742),i=n(8780),s=n(8862),l=n(5893);function c(e){let{error:t,tryAgain:n}=e;return(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",minHeight:"100vh",width:"100%",maxWidth:"80ch",fontSize:"20px",margin:"0 auto",padding:"1rem"},children:[(0,l.jsx)("h1",{style:{fontSize:"3rem"},children:"This page crashed"}),(0,l.jsx)("button",{type:"button",onClick:n,style:{margin:"1rem 0",fontSize:"2rem",cursor:"pointer",borderRadius:20,padding:"1rem"},children:"Try again"}),(0,l.jsx)(u,{error:t})]})}function u(e){let{error:t}=e;const n=(0,i.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,l.jsx)("p",{style:{whiteSpace:"pre-wrap"},children:n})}function d(e){let{error:t,tryAgain:n}=e;return(0,l.jsxs)(f,{fallback:()=>(0,l.jsx)(c,{error:t,tryAgain:n}),children:[(0,l.jsx)(o.Z,{children:(0,l.jsx)("title",{children:"Page Error"})}),(0,l.jsx)(s.Z,{children:(0,l.jsx)(c,{error:t,tryAgain:n})})]})}const p=e=>(0,l.jsx)(d,{...e});class f extends r.Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){a.Z.canUseDOM&&this.setState({error:e})}render(){const{children:e}=this.props,{error:t}=this.state;if(t){const e={error:t,tryAgain:()=>this.setState({error:null})};return(this.props.fallback??p)(e)}return e??null}}},412:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r="undefined"!=typeof window&&"document"in window&&"createElement"in window.document,a={canUseDOM:r,canUseEventListeners:r&&("addEventListener"in window||"attachEvent"in window),canUseIntersectionObserver:r&&"IntersectionObserver"in window,canUseViewport:r&&"screen"in window}},5742:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(7294);var r=n(405),a=n(5893);function o(e){return(0,a.jsx)(r.ql,{...e})}},9960:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(7294),a=n(3727),o=n(8780),i=n(2263),s=n(3919),l=n(412),c=n(5893);const u=r.createContext({collectLink:()=>{}});var d=n(4996);function p(e,t){let{isNavLink:n,to:p,href:f,activeClassName:h,isActive:m,"data-noBrokenLinkCheck":g,autoAddBaseUrl:y=!0,...b}=e;const{siteConfig:{trailingSlash:v,baseUrl:x}}=(0,i.Z)(),{withBaseUrl:w}=(0,d.C)(),k=(0,r.useContext)(u),S=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(()=>S.current));const E=p||f;const _=(0,s.Z)(E),C=E?.replace("pathname://","");let T=void 0!==C?(L=C,y&&(e=>e.startsWith("/"))(L)?w(L):L):void 0;var L;T&&_&&(T=(0,o.applyTrailingSlash)(T,{trailingSlash:v,baseUrl:x}));const N=(0,r.useRef)(!1),P=n?a.OL:a.rU,A=l.Z.canUseIntersectionObserver,O=(0,r.useRef)(),R=()=>{N.current||null==T||(window.docusaurus.preload(T),N.current=!0)};(0,r.useEffect)((()=>(!A&&_&&null!=T&&window.docusaurus.prefetch(T),()=>{A&&O.current&&O.current.disconnect()})),[O,T,A,_]);const j=T?.startsWith("#")??!1,I=!T||!_||j;return I||g||k.collectLink(T),I?(0,c.jsx)("a",{ref:S,href:T,...E&&!_&&{target:"_blank",rel:"noopener noreferrer"},...b}):(0,c.jsx)(P,{...b,onMouseEnter:R,onTouchStart:R,innerRef:e=>{S.current=e,A&&e&&_&&(O.current=new window.IntersectionObserver((t=>{t.forEach((t=>{e===t.target&&(t.isIntersecting||t.intersectionRatio>0)&&(O.current.unobserve(e),O.current.disconnect(),null!=T&&window.docusaurus.prefetch(T))}))})),O.current.observe(e))},to:T,...n&&{isActive:m,activeClassName:h}})}const f=r.forwardRef(p)},5999:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,I:()=>l});var r=n(7294),a=n(5893);function o(e,t){const n=e.split(/(\{\w+\})/).map(((e,n)=>{if(n%2==1){const n=t?.[e.slice(1,-1)];if(void 0!==n)return n}return e}));return n.some((e=>(0,r.isValidElement)(e)))?n.map(((e,t)=>(0,r.isValidElement)(e)?r.cloneElement(e,{key:t}):e)).filter((e=>""!==e)):n.join("")}var i=n(7529);function s(e){let{id:t,message:n}=e;if(void 0===t&&void 0===n)throw new Error("Docusaurus translation declarations must have at least a translation id or a default translation message");return i[t??n]??n??t}function l(e,t){let{message:n,id:r}=e;return o(s({message:n,id:r}),t)}function c(e){let{children:t,id:n,values:r}=e;if(t&&"string"!=typeof t)throw console.warn("Illegal <Translate> children",t),new Error("The Docusaurus <Translate> component only accept simple string values");const i=s({message:t,id:n});return(0,a.jsx)(a.Fragment,{children:o(i,r)})}},9935:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});const r="default"},3919:(e,t,n)=>{"use strict";function r(e){return/^(?:\w*:|\/\/)/.test(e)}function a(e){return void 0!==e&&!r(e)}n.d(t,{Z:()=>a,b:()=>r})},4996:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,Z:()=>s});var r=n(7294),a=n(2263),o=n(3919);function i(){const{siteConfig:{baseUrl:e,url:t}}=(0,a.Z)(),n=(0,r.useCallback)(((n,r)=>function(e,t,n,r){let{forcePrependBaseUrl:a=!1,absolute:i=!1}=void 0===r?{}:r;if(!n||n.startsWith("#")||(0,o.b)(n))return n;if(a)return t+n.replace(/^\//,"");if(n===t.replace(/\/$/,""))return t;const s=n.startsWith(t)?n:t+n.replace(/^\//,"");return i?e+s:s}(t,e,n,r)),[t,e]);return{withBaseUrl:n}}function s(e,t){void 0===t&&(t={});const{withBaseUrl:n}=i();return n(e,t)}},2263:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(8940);function o(){return(0,r.useContext)(a._)}},2389:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(8934);function o(){return(0,r.useContext)(a._)}},469:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7294);const a=n(412).Z.canUseDOM?r.useLayoutEffect:r.useEffect},9670:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r=e=>"object"==typeof e&&!!e&&Object.keys(e).length>0;function a(e){const t={};return function e(n,a){Object.entries(n).forEach((n=>{let[o,i]=n;const s=a?`${a}.${o}`:o;r(i)?e(i,s):t[s]=i}))}(e),t}},226:(e,t,n)=>{"use strict";n.d(t,{_:()=>o,z:()=>i});var r=n(7294),a=n(5893);const o=r.createContext(null);function i(e){let{children:t,value:n}=e;const i=r.useContext(o),s=(0,r.useMemo)((()=>function(e){let{parent:t,value:n}=e;if(!t){if(!n)throw new Error("Unexpected: no Docusaurus route context found");if(!("plugin"in n))throw new Error("Unexpected: Docusaurus topmost route context has no `plugin` attribute");return n}const r={...t.data,...n?.data};return{plugin:t.plugin,data:r}}({parent:i,value:n})),[i,n]);return(0,a.jsx)(o.Provider,{value:s,children:t})}},143:(e,t,n)=>{"use strict";n.d(t,{Iw:()=>m,gA:()=>p,_r:()=>u,Jo:()=>g,zh:()=>d,yW:()=>h,gB:()=>f});var r=n(6550),a=n(2263),o=n(9935);function i(e,t){void 0===t&&(t={});const n=function(){const{globalData:e}=(0,a.Z)();return e}()[e];if(!n&&t.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin.`);return n}const s=e=>e.versions.find((e=>e.isLast));function l(e,t){const n=function(e,t){const n=s(e);return[...e.versions.filter((e=>e!==n)),n].find((e=>!!(0,r.LX)(t,{path:e.path,exact:!1,strict:!1})))}(e,t),a=n?.docs.find((e=>!!(0,r.LX)(t,{path:e.path,exact:!0,strict:!1})));return{activeVersion:n,activeDoc:a,alternateDocVersions:a?function(t){const n={};return e.versions.forEach((e=>{e.docs.forEach((r=>{r.id===t&&(n[e.name]=r)}))})),n}(a.id):{}}}const c={},u=()=>i("docusaurus-plugin-content-docs")??c,d=e=>function(e,t,n){void 0===t&&(t=o.m),void 0===n&&(n={});const r=i(e),a=r?.[t];if(!a&&n.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin with id "${t}".`);return a}("docusaurus-plugin-content-docs",e,{failfast:!0});function p(e){void 0===e&&(e={});const t=u(),{pathname:n}=(0,r.TH)();return function(e,t,n){void 0===n&&(n={});const a=Object.entries(e).sort(((e,t)=>t[1].path.localeCompare(e[1].path))).find((e=>{let[,n]=e;return!!(0,r.LX)(t,{path:n.path,exact:!1,strict:!1})})),o=a?{pluginId:a[0],pluginData:a[1]}:void 0;if(!o&&n.failfast)throw new Error(`Can't find active docs plugin for "${t}" pathname, while it was expected to be found. Maybe you tried to use a docs feature that can only be used on a docs-related page? Existing docs plugin paths are: ${Object.values(e).map((e=>e.path)).join(", ")}`);return o}(t,n,e)}function f(e){return d(e).versions}function h(e){const t=d(e);return s(t)}function m(e){const t=d(e),{pathname:n}=(0,r.TH)();return l(t,n)}function g(e){const t=d(e),{pathname:n}=(0,r.TH)();return function(e,t){const n=s(e);return{latestDocSuggestion:l(e,t).alternateDocVersions[n.name],latestVersionSuggestion:n}}(t,n)}},8320:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4865),a=n.n(r);a().configure({showSpinner:!1});const o={onRouteUpdate(e){let{location:t,previousLocation:n}=e;if(n&&t.pathname!==n.pathname){const e=window.setTimeout((()=>{a().start()}),200);return()=>window.clearTimeout(e)}},onRouteDidUpdate(){a().done()}}},3310:(e,t,n)=>{"use strict";n.r(t);var r=n(2573),a=n(6809);!function(e){const{themeConfig:{prism:t}}=a.default,{additionalLanguages:r}=t;globalThis.Prism=e,r.forEach((e=>{"php"===e&&n(6854),n(5897)(`./prism-${e}`)})),delete globalThis.Prism}(r.p1)},2503:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});n(7294);var r=n(512),a=n(5999),o=n(6668),i=n(9960);const s={anchorWithStickyNavbar:"anchorWithStickyNavbar_LWe7",anchorWithHideOnScrollNavbar:"anchorWithHideOnScrollNavbar_WYt5"};var l=n(5893);function c(e){let{as:t,id:n,...c}=e;const{navbar:{hideOnScroll:u}}=(0,o.L)();if("h1"===t||!n)return(0,l.jsx)(t,{...c,id:void 0});const d=(0,a.I)({id:"theme.common.headingLinkTitle",message:"Direct link to {heading}",description:"Title for link to heading"},{heading:"string"==typeof c.children?c.children:n});return(0,l.jsxs)(t,{...c,className:(0,r.Z)("anchor",u?s.anchorWithHideOnScrollNavbar:s.anchorWithStickyNavbar,c.className),id:n,children:[c.children,(0,l.jsx)(i.Z,{className:"hash-link",to:`#${n}`,"aria-label":d,title:d,children:"\u200b"})]})}},9471:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(7294);const r={iconExternalLink:"iconExternalLink_nPIU"};var a=n(5893);function o(e){let{width:t=13.5,height:n=13.5}=e;return(0,a.jsx)("svg",{width:t,height:n,"aria-hidden":"true",viewBox:"0 0 24 24",className:r.iconExternalLink,children:(0,a.jsx)("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"})})}},8862:(e,t,n)=>{"use strict";n.d(t,{Z:()=>It});var r=n(7294),a=n(512),o=n(4763),i=n(1944),s=n(6550),l=n(5999),c=n(5936),u=n(5893);const d="__docusaurus_skipToContent_fallback";function p(e){e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")}function f(){const e=(0,r.useRef)(null),{action:t}=(0,s.k6)(),n=(0,r.useCallback)((e=>{e.preventDefault();const t=document.querySelector("main:first-of-type")??document.getElementById(d);t&&p(t)}),[]);return(0,c.S)((n=>{let{location:r}=n;e.current&&!r.hash&&"PUSH"===t&&p(e.current)})),{containerRef:e,onClick:n}}const h=(0,l.I)({id:"theme.common.skipToMainContent",description:"The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",message:"Skip to main content"});function m(e){const t=e.children??h,{containerRef:n,onClick:r}=f();return(0,u.jsx)("div",{ref:n,role:"region","aria-label":h,children:(0,u.jsx)("a",{...e,href:`#${d}`,onClick:r,children:t})})}var g=n(5281),y=n(9727);const b={skipToContent:"skipToContent_fXgn"};function v(){return(0,u.jsx)(m,{className:b.skipToContent})}var x=n(6668),w=n(9689);function k(e){let{width:t=21,height:n=21,color:r="currentColor",strokeWidth:a=1.2,className:o,...i}=e;return(0,u.jsx)("svg",{viewBox:"0 0 15 15",width:t,height:n,...i,children:(0,u.jsx)("g",{stroke:r,strokeWidth:a,children:(0,u.jsx)("path",{d:"M.75.75l13.5 13.5M14.25.75L.75 14.25"})})})}const S={closeButton:"closeButton_CVFx"};function E(e){return(0,u.jsx)("button",{type:"button","aria-label":(0,l.I)({id:"theme.AnnouncementBar.closeButtonAriaLabel",message:"Close",description:"The ARIA label for close button of announcement bar"}),...e,className:(0,a.Z)("clean-btn close",S.closeButton,e.className),children:(0,u.jsx)(k,{width:14,height:14,strokeWidth:3.1})})}const _={content:"content_knG7"};function C(e){const{announcementBar:t}=(0,x.L)(),{content:n}=t;return(0,u.jsx)("div",{...e,className:(0,a.Z)(_.content,e.className),dangerouslySetInnerHTML:{__html:n}})}const T={announcementBar:"announcementBar_mb4j",announcementBarPlaceholder:"announcementBarPlaceholder_vyr4",announcementBarClose:"announcementBarClose_gvF7",announcementBarContent:"announcementBarContent_xLdY"};function L(){const{announcementBar:e}=(0,x.L)(),{isActive:t,close:n}=(0,w.nT)();if(!t)return null;const{backgroundColor:r,textColor:a,isCloseable:o}=e;return(0,u.jsxs)("div",{className:T.announcementBar,style:{backgroundColor:r,color:a},role:"banner",children:[o&&(0,u.jsx)("div",{className:T.announcementBarPlaceholder}),(0,u.jsx)(C,{className:T.announcementBarContent}),o&&(0,u.jsx)(E,{onClick:n,className:T.announcementBarClose})]})}var N=n(3163),P=n(2466);var A=n(902),O=n(3102);const R=r.createContext(null);function j(e){let{children:t}=e;const n=function(){const e=(0,N.e)(),t=(0,O.HY)(),[n,a]=(0,r.useState)(!1),o=null!==t.component,i=(0,A.D9)(o);return(0,r.useEffect)((()=>{o&&!i&&a(!0)}),[o,i]),(0,r.useEffect)((()=>{o?e.shown||a(!0):a(!1)}),[e.shown,o]),(0,r.useMemo)((()=>[n,a]),[n])}();return(0,u.jsx)(R.Provider,{value:n,children:t})}function I(e){if(e.component){const t=e.component;return(0,u.jsx)(t,{...e.props})}}function F(){const e=(0,r.useContext)(R);if(!e)throw new A.i6("NavbarSecondaryMenuDisplayProvider");const[t,n]=e,a=(0,r.useCallback)((()=>n(!1)),[n]),o=(0,O.HY)();return(0,r.useMemo)((()=>({shown:t,hide:a,content:I(o)})),[a,o,t])}function D(e){let{header:t,primaryMenu:n,secondaryMenu:r}=e;const{shown:o}=F();return(0,u.jsxs)("div",{className:"navbar-sidebar",children:[t,(0,u.jsxs)("div",{className:(0,a.Z)("navbar-sidebar__items",{"navbar-sidebar__items--show-secondary":o}),children:[(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:n}),(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:r})]})]})}var M=n(2949),B=n(2389);function z(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"})})}function $(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"})})}const q={toggle:"toggle_vylO",toggleButton:"toggleButton_gllP",darkToggleIcon:"darkToggleIcon_wfgR",lightToggleIcon:"lightToggleIcon_pyhR",toggleButtonDisabled:"toggleButtonDisabled_aARS"};function U(e){let{className:t,buttonClassName:n,value:r,onChange:o}=e;const i=(0,B.Z)(),s=(0,l.I)({message:"Switch between dark and light mode (currently {mode})",id:"theme.colorToggle.ariaLabel",description:"The ARIA label for the navbar color mode toggle"},{mode:"dark"===r?(0,l.I)({message:"dark mode",id:"theme.colorToggle.ariaLabel.mode.dark",description:"The name for the dark color mode"}):(0,l.I)({message:"light mode",id:"theme.colorToggle.ariaLabel.mode.light",description:"The name for the light color mode"})});return(0,u.jsx)("div",{className:(0,a.Z)(q.toggle,t),children:(0,u.jsxs)("button",{className:(0,a.Z)("clean-btn",q.toggleButton,!i&&q.toggleButtonDisabled,n),type:"button",onClick:()=>o("dark"===r?"light":"dark"),disabled:!i,title:s,"aria-label":s,"aria-live":"polite",children:[(0,u.jsx)(z,{className:(0,a.Z)(q.toggleIcon,q.lightToggleIcon)}),(0,u.jsx)($,{className:(0,a.Z)(q.toggleIcon,q.darkToggleIcon)})]})})}const H=r.memo(U),Q={darkNavbarColorModeToggle:"darkNavbarColorModeToggle_X3D1"};function Z(e){let{className:t}=e;const n=(0,x.L)().navbar.style,r=(0,x.L)().colorMode.disableSwitch,{colorMode:a,setColorMode:o}=(0,M.I)();return r?null:(0,u.jsx)(H,{className:t,buttonClassName:"dark"===n?Q.darkNavbarColorModeToggle:void 0,value:a,onChange:o})}var V=n(1327);function W(){return(0,u.jsx)(V.Z,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:"navbar__title text--truncate"})}function G(){const e=(0,N.e)();return(0,u.jsx)("button",{type:"button","aria-label":(0,l.I)({id:"theme.docs.sidebar.closeSidebarButtonAriaLabel",message:"Close navigation bar",description:"The ARIA label for close button of mobile sidebar"}),className:"clean-btn navbar-sidebar__close",onClick:()=>e.toggle(),children:(0,u.jsx)(k,{color:"var(--ifm-color-emphasis-600)"})})}function Y(){return(0,u.jsxs)("div",{className:"navbar-sidebar__brand",children:[(0,u.jsx)(W,{}),(0,u.jsx)(Z,{className:"margin-right--md"}),(0,u.jsx)(G,{})]})}var K=n(9960),X=n(4996),J=n(3919);function ee(e,t){return void 0!==e&&void 0!==t&&new RegExp(e,"gi").test(t)}var te=n(9471);function ne(e){let{activeBasePath:t,activeBaseRegex:n,to:r,href:a,label:o,html:i,isDropdownLink:s,prependBaseUrlToHref:l,...c}=e;const d=(0,X.Z)(r),p=(0,X.Z)(t),f=(0,X.Z)(a,{forcePrependBaseUrl:!0}),h=o&&a&&!(0,J.Z)(a),m=i?{dangerouslySetInnerHTML:{__html:i}}:{children:(0,u.jsxs)(u.Fragment,{children:[o,h&&(0,u.jsx)(te.Z,{...s&&{width:12,height:12}})]})};return a?(0,u.jsx)(K.Z,{href:l?f:a,...c,...m}):(0,u.jsx)(K.Z,{to:d,isNavLink:!0,...(t||n)&&{isActive:(e,t)=>n?ee(n,t.pathname):t.pathname.startsWith(p)},...c,...m})}function re(e){let{className:t,isDropdownItem:n=!1,...r}=e;const o=(0,u.jsx)(ne,{className:(0,a.Z)(n?"dropdown__link":"navbar__item navbar__link",t),isDropdownLink:n,...r});return n?(0,u.jsx)("li",{children:o}):o}function ae(e){let{className:t,isDropdownItem:n,...r}=e;return(0,u.jsx)("li",{className:"menu__list-item",children:(0,u.jsx)(ne,{className:(0,a.Z)("menu__link",t),...r})})}function oe(e){let{mobile:t=!1,position:n,...r}=e;const a=t?ae:re;return(0,u.jsx)(a,{...r,activeClassName:r.activeClassName??(t?"menu__link--active":"navbar__link--active")})}var ie=n(6043),se=n(8596),le=n(2263);const ce={dropdownNavbarItemMobile:"dropdownNavbarItemMobile_S0Fm"};function ue(e,t){return e.some((e=>function(e,t){return!!(0,se.Mg)(e.to,t)||!!ee(e.activeBaseRegex,t)||!(!e.activeBasePath||!t.startsWith(e.activeBasePath))}(e,t)))}function de(e){let{items:t,position:n,className:o,onClick:i,...s}=e;const l=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=e=>{l.current&&!l.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("focusin",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("focusin",e)}}),[l]),(0,u.jsxs)("div",{ref:l,className:(0,a.Z)("navbar__item","dropdown","dropdown--hoverable",{"dropdown--right":"right"===n,"dropdown--show":c}),children:[(0,u.jsx)(ne,{"aria-haspopup":"true","aria-expanded":c,role:"button",href:s.to?void 0:"#",className:(0,a.Z)("navbar__link",o),...s,onClick:s.to?void 0:e=>e.preventDefault(),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),d(!c))},children:s.children??s.label}),(0,u.jsx)("ul",{className:"dropdown__menu",children:t.map(((e,t)=>(0,r.createElement)(Ve,{isDropdownItem:!0,activeClassName:"dropdown__link--active",...e,key:t})))})]})}function pe(e){let{items:t,className:n,position:o,onClick:i,...l}=e;const c=function(){const{siteConfig:{baseUrl:e}}=(0,le.Z)(),{pathname:t}=(0,s.TH)();return t.replace(e,"/")}(),d=ue(t,c),{collapsed:p,toggleCollapsed:f,setCollapsed:h}=(0,ie.u)({initialState:()=>!d});return(0,r.useEffect)((()=>{d&&h(!d)}),[c,d,h]),(0,u.jsxs)("li",{className:(0,a.Z)("menu__list-item",{"menu__list-item--collapsed":p}),children:[(0,u.jsx)(ne,{role:"button",className:(0,a.Z)(ce.dropdownNavbarItemMobile,"menu__link menu__link--sublist menu__link--sublist-caret",n),...l,onClick:e=>{e.preventDefault(),f()},children:l.children??l.label}),(0,u.jsx)(ie.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:p,children:t.map(((e,t)=>(0,r.createElement)(Ve,{mobile:!0,isDropdownItem:!0,onClick:i,activeClassName:"menu__link--active",...e,key:t})))})]})}function fe(e){let{mobile:t=!1,...n}=e;const r=t?pe:de;return(0,u.jsx)(r,{...n})}var he=n(4711);function me(e){let{width:t=20,height:n=20,...r}=e;return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:t,height:n,"aria-hidden":!0,...r,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"})})}const ge="iconLanguage_nlXk";var ye=n(8087),be=n(1728),ve=n(373),xe=n(143),we=n(22),ke=n(8202),Se=n(3926),Ee=n(1073),_e=n(2539),Ce=n(726);const Te='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M17 6v12c0 .52-.2 1-1 1H4c-.7 0-1-.33-1-1V2c0-.55.42-1 1-1h8l5 5zM14 8h-3.13c-.51 0-.87-.34-.87-.87V4" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linejoin="round"></path></svg>',Le='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M13 13h4-4V8H7v5h6v4-4H7V8H3h4V3v5h6V3v5h4-4v5zm-6 0v4-4H3h4z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path></svg>',Ne='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M17 5H3h14zm0 5H3h14zm0 5H3h14z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linejoin="round"></path></svg>',Pe='<svg width="20" height="20" viewBox="0 0 20 20"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M18 3v4c0 2-2 4-4 4H2"></path><path d="M8 17l-6-6 6-6"></path></g></svg>',Ae='<svg width="40" height="40" viewBox="0 0 20 20" fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 4.8c2 3 1.7 7-1 9.7h0l4.3 4.3-4.3-4.3a7.8 7.8 0 01-9.8 1m-2.2-2.2A7.8 7.8 0 0113.2 2.4M2 18L18 2"></path></svg>',Oe='<svg viewBox="0 0 24 54"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6v42M20 27H8.3"></path></g></svg>',Re='<svg viewBox="0 0 24 54"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6v21M20 27H8.3"></path></g></svg>',je={searchBar:"searchBar_RVTs",dropdownMenu:"dropdownMenu_qbY6",searchBarLeft:"searchBarLeft_MXDe",suggestion:"suggestion_fB_2",cursor:"cursor_eG29",hitTree:"hitTree_kk6K",hitIcon:"hitIcon_a7Zy",hitPath:"hitPath_ieM4",noResultsIcon:"noResultsIcon_EBY5",hitFooter:"hitFooter_E9YW",hitWrapper:"hitWrapper_sAK8",hitTitle:"hitTitle_vyVt",hitAction:"hitAction_NqkB",hideAction:"hideAction_vcyE",noResults:"noResults_l6Q3",searchBarContainer:"searchBarContainer_NW3z",searchBarLoadingRing:"searchBarLoadingRing_YnHq",searchClearButton:"searchClearButton_qk4g",searchIndexLoading:"searchIndexLoading_EJ1f",searchHintContainer:"searchHintContainer_Pkmr",searchHint:"searchHint_iIMx",focused:"focused_OWtg",input:"input_FOTf",hint:"hint_URu1",suggestions:"suggestions_X8XU",dataset:"dataset_QiCy",empty:"empty_eITn"};function Ie(e){let{document:t,type:n,page:r,metadata:a,tokens:o,isInterOfTree:i,isLastOfTree:s}=e;const l=0===n,c=1===n,u=[];i?u.push(Oe):s&&u.push(Re);const d=u.map((e=>`<span class="${je.hitTree}">${e}</span>`)),p=`<span class="${je.hitIcon}">${l?Te:c?Le:Ne}</span>`,f=[`<span class="${je.hitTitle}">${(0,Ce.o)(t.t,(0,Ee.m)(a,"t"),o)}</span>`];if(!i&&!s&&ye.H6){const e=r?(r.b??[]).concat(r.t).concat(t.s&&t.s!==r.t?t.s:[]):t.b;f.push(`<span class="${je.hitPath}">${(0,Se.e)(e??[])}</span>`)}else l||f.push(`<span class="${je.hitPath}">${(0,_e.C)(r.t||(t.u.startsWith("/docs/api-reference/")?"API Reference":""),o)}</span>`);const h=`<span class="${je.hitAction}">${Pe}</span>`;return[...d,p,`<span class="${je.hitWrapper}">`,...f,"</span>",h].join("")}function Fe(){return`<span class="${je.noResults}"><span class="${je.noResultsIcon}">${Ae}</span><span>${(0,l.I)({id:"theme.SearchBar.noResultsText",message:"No results"})}</span></span>`}var De=n(311),Me=n(51);async function Be(){const e=await Promise.all([n.e(8443),n.e(5525)]).then(n.t.bind(n,8443,23)),t=e.default;return t.noConflict?t.noConflict():e.noConflict&&e.noConflict(),t}const ze="_highlight";const $e=function(e){let{handleSearchBarToggle:t}=e;const n=(0,B.Z)(),{siteConfig:{baseUrl:a},i18n:{currentLocale:o}}=(0,le.Z)(),i=(0,xe.gA)();let c=a;try{const{preferredVersion:e}=(0,ve.J)(i?.pluginId??ye.gQ);e&&!e.isLast&&(c=e.path+"/")}catch(D){if(ye.l9&&!(D instanceof A.i6))throw D}const d=(0,s.k6)(),p=(0,s.TH)(),f=(0,r.useRef)(null),h=(0,r.useRef)(new Map),m=(0,r.useRef)(!1),[g,y]=(0,r.useState)(!1),[b,v]=(0,r.useState)(!1),[x,w]=(0,r.useState)(""),k=(0,r.useRef)(null),S=(0,r.useRef)(""),[E,_]=(0,r.useState)("");(0,r.useEffect)((()=>{if(!Array.isArray(ye.Kc))return;let e="";if(p.pathname.startsWith(c)){const t=p.pathname.substring(c.length);let n;for(const e of ye.Kc){const r="string"==typeof e?e:e.path;if(t===r||t.startsWith(`${r}/`)){n=r;break}}n&&(e=n)}S.current!==e&&(h.current.delete(e),S.current=e),_(e)}),[p.pathname,c]);const C=!!ye.hG&&Array.isArray(ye.Kc)&&""===E,T=(0,r.useCallback)((async()=>{if(C||h.current.get(E))return;h.current.set(E,"loading"),k.current?.autocomplete.destroy(),y(!0);const[{wrappedIndexes:e,zhDictionary:t},n]=await Promise.all([(0,we.w)(c,E),Be()]);if(k.current=n(f.current,{hint:!1,autoselect:!0,openOnFocus:!0,cssClasses:{root:(0,be.Z)(je.searchBar,{[je.searchBarLeft]:"left"===ye.pu}),noPrefix:!0,dropdownMenu:je.dropdownMenu,input:je.input,hint:je.hint,suggestions:je.suggestions,suggestion:je.suggestion,cursor:je.cursor,dataset:je.dataset,empty:je.empty}},[{source:(0,ke.v)(e,t,ye.qo),templates:{suggestion:Ie,empty:Fe,footer:e=>{let{query:t,isEmpty:n}=e;if(n&&(!E||!ye.pQ))return;const r=(e=>{let{query:t,isEmpty:n}=e;const r=document.createElement("a"),i=new URLSearchParams;let s;if(i.set("q",t),E){const e=E&&Array.isArray(ye.Kc)?ye.Kc.find((e=>"string"==typeof e?e===E:e.path===E)):E,t=e?(0,Me._)(e,o).label:E;s=ye.pQ&&n?(0,l.I)({id:"theme.SearchBar.seeAllOutsideContext",message:"See results outside {context}"},{context:t}):(0,l.I)({id:"theme.SearchBar.searchInContext",message:"See all results in {context}"},{context:t})}else s=(0,l.I)({id:"theme.SearchBar.seeAll",message:"See all results"});if(!E||!Array.isArray(ye.Kc)||ye.pQ&&n||i.set("ctx",E),c!==a){if(!c.startsWith(a))throw new Error(`Version url '${c}' does not start with base url '${a}', this is a bug of \`@easyops-cn/docusaurus-search-local\`, please report it.`);i.set("version",c.substring(a.length))}const u=`${a}search?${i.toString()}`;return r.href=u,r.textContent=s,r.addEventListener("click",(e=>{e.ctrlKey||e.metaKey||(e.preventDefault(),k.current?.autocomplete.close(),d.push(u))})),r})({query:t,isEmpty:n}),i=document.createElement("div");return i.className=je.hitFooter,i.appendChild(r),i}}}]).on("autocomplete:selected",(function(e,t){let{document:{u:n,h:r},tokens:a}=t;f.current?.blur();let o=n;if(ye.vc&&a.length>0){const e=new URLSearchParams;for(const t of a)e.append(ze,t);o+=`?${e.toString()}`}r&&(o+=r),d.push(o)})).on("autocomplete:closed",(()=>{f.current?.blur()})),h.current.set(E,"done"),y(!1),m.current){const e=f.current;e.value&&k.current?.autocomplete.open(),e.focus()}}),[C,E,c,a,d]);(0,r.useEffect)((()=>{if(!ye.vc)return;const e=n?new URLSearchParams(p.search).getAll(ze):[];setTimeout((()=>{const t=document.querySelector("article");if(!t)return;const n=new ye.vc(t);n.unmark(),0!==e.length&&n.mark(e),w(e.join(" ")),k.current?.autocomplete.setVal(e.join(" "))}))}),[n,p.search,p.pathname]);const[L,N]=(0,r.useState)(!1),P=(0,r.useCallback)((()=>{m.current=!0,T(),N(!0),t?.(!0)}),[t,T]),O=(0,r.useCallback)((()=>{N(!1),t?.(!1)}),[t]),R=(0,r.useCallback)((()=>{T()}),[T]),j=(0,r.useCallback)((e=>{w(e.target.value),e.target.value&&v(!0)}),[]),I=!!n&&/mac/i.test(navigator.userAgentData?.platform??navigator.platform);(0,r.useEffect)((()=>{if(!ye.AY)return;const e=e=>{!(I?e.metaKey:e.ctrlKey)||"k"!==e.key&&"K"!==e.key||(e.preventDefault(),f.current?.focus(),P())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[I,P]);const F=(0,r.useCallback)((()=>{const e=new URLSearchParams(p.search);e.delete(ze);const t=e.toString(),n=p.pathname+(""!=t?`?${t}`:"")+p.hash;n!=p.pathname+p.search+p.hash&&d.push(n),w(""),k.current?.autocomplete.setVal("")}),[p.pathname,p.search,p.hash,d]);return(0,u.jsxs)("div",{className:(0,be.Z)("navbar__search",je.searchBarContainer,{[je.searchIndexLoading]:g&&b,[je.focused]:L}),hidden:C,children:[(0,u.jsx)("input",{placeholder:(0,l.I)({id:"theme.SearchBar.label",message:"Search",description:"The ARIA label and placeholder for search button"}),"aria-label":"Search",className:"navbar__search-input",onMouseEnter:R,onFocus:P,onBlur:O,onChange:j,ref:f,value:x}),(0,u.jsx)(De.Z,{className:je.searchBarLoadingRing}),ye.AY&&ye.t_&&(""!==x?(0,u.jsx)("button",{className:je.searchClearButton,onClick:F,children:"\u2715"}):n&&(0,u.jsxs)("div",{className:je.searchHintContainer,children:[(0,u.jsx)("kbd",{className:je.searchHint,children:I?"\u2318":"ctrl"}),(0,u.jsx)("kbd",{className:je.searchHint,children:"K"})]}))]})},qe={navbarSearchContainer:"navbarSearchContainer_Bca1"};function Ue(e){let{children:t,className:n}=e;return(0,u.jsx)("div",{className:(0,a.Z)(n,qe.navbarSearchContainer),children:t})}var He=n(3438);const Qe=e=>e.docs.find((t=>t.id===e.mainDocId));const Ze={default:oe,localeDropdown:function(e){let{mobile:t,dropdownItemsBefore:n,dropdownItemsAfter:r,queryString:a="",...o}=e;const{i18n:{currentLocale:i,locales:c,localeConfigs:d}}=(0,le.Z)(),p=(0,he.l)(),{search:f,hash:h}=(0,s.TH)(),m=[...n,...c.map((e=>{const n=`${`pathname://${p.createUrl({locale:e,fullyQualified:!1})}`}${f}${h}${a}`;return{label:d[e].label,lang:d[e].htmlLang,to:n,target:"_self",autoAddBaseUrl:!1,className:e===i?t?"menu__link--active":"dropdown__link--active":""}})),...r],g=t?(0,l.I)({message:"Languages",id:"theme.navbar.mobileLanguageDropdown.label",description:"The label for the mobile language switcher dropdown"}):d[i].label;return(0,u.jsx)(fe,{...o,mobile:t,label:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(me,{className:ge}),g]}),items:m})},search:function(e){let{mobile:t,className:n}=e;return t?null:(0,u.jsx)(Ue,{className:n,children:(0,u.jsx)($e,{})})},dropdown:fe,html:function(e){let{value:t,className:n,mobile:r=!1,isDropdownItem:o=!1}=e;const i=o?"li":"div";return(0,u.jsx)(i,{className:(0,a.Z)({navbar__item:!r&&!o,"menu__list-item":r},n),dangerouslySetInnerHTML:{__html:t}})},doc:function(e){let{docId:t,label:n,docsPluginId:r,...a}=e;const{activeDoc:o}=(0,xe.Iw)(r),i=(0,He.vY)(t,r),s=o?.path===i?.path;return null===i||i.unlisted&&!s?null:(0,u.jsx)(oe,{exact:!0,...a,isActive:()=>s||!!o?.sidebar&&o.sidebar===i.sidebar,label:n??i.id,to:i.path})},docSidebar:function(e){let{sidebarId:t,label:n,docsPluginId:r,...a}=e;const{activeDoc:o}=(0,xe.Iw)(r),i=(0,He.oz)(t,r).link;if(!i)throw new Error(`DocSidebarNavbarItem: Sidebar with ID "${t}" doesn't have anything to be linked to.`);return(0,u.jsx)(oe,{exact:!0,...a,isActive:()=>o?.sidebar===t,label:n??i.label,to:i.path})},docsVersion:function(e){let{label:t,to:n,docsPluginId:r,...a}=e;const o=(0,He.lO)(r)[0],i=t??o.label,s=n??(e=>e.docs.find((t=>t.id===e.mainDocId)))(o).path;return(0,u.jsx)(oe,{...a,label:i,to:s})},docsVersionDropdown:function(e){let{mobile:t,docsPluginId:n,dropdownActiveClassDisabled:r,dropdownItemsBefore:a,dropdownItemsAfter:o,...i}=e;const{search:c,hash:d}=(0,s.TH)(),p=(0,xe.Iw)(n),f=(0,xe.gB)(n),{savePreferredVersionName:h}=(0,ve.J)(n),m=[...a,...f.map((e=>{const t=p.alternateDocVersions[e.name]??Qe(e);return{label:e.label,to:`${t.path}${c}${d}`,isActive:()=>e===p.activeVersion,onClick:()=>h(e.name)}})),...o],g=(0,He.lO)(n)[0],y=t&&m.length>1?(0,l.I)({id:"theme.navbar.mobileVersionsDropdown.label",message:"Versions",description:"The label for the navbar versions dropdown on mobile view"}):g.label,b=t&&m.length>1?void 0:Qe(g).path;return m.length<=1?(0,u.jsx)(oe,{...i,mobile:t,label:y,to:b,isActive:r?()=>!1:void 0}):(0,u.jsx)(fe,{...i,mobile:t,label:y,to:b,items:m,isActive:r?()=>!1:void 0})}};function Ve(e){let{type:t,...n}=e;const r=function(e,t){return e&&"default"!==e?e:"items"in t?"dropdown":"default"}(t,n),a=Ze[r];if(!a)throw new Error(`No NavbarItem component found for type "${t}".`);return(0,u.jsx)(a,{...n})}function We(){const e=(0,N.e)(),t=(0,x.L)().navbar.items;return(0,u.jsx)("ul",{className:"menu__list",children:t.map(((t,n)=>(0,r.createElement)(Ve,{mobile:!0,...t,onClick:()=>e.toggle(),key:n})))})}function Ge(e){return(0,u.jsx)("button",{...e,type:"button",className:"clean-btn navbar-sidebar__back",children:(0,u.jsx)(l.Z,{id:"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel",description:"The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)",children:"\u2190 Back to main menu"})})}function Ye(){const e=0===(0,x.L)().navbar.items.length,t=F();return(0,u.jsxs)(u.Fragment,{children:[!e&&(0,u.jsx)(Ge,{onClick:()=>t.hide()}),t.content]})}function Ke(){const e=(0,N.e)();var t;return void 0===(t=e.shown)&&(t=!0),(0,r.useEffect)((()=>(document.body.style.overflow=t?"hidden":"visible",()=>{document.body.style.overflow="visible"})),[t]),e.shouldRender?(0,u.jsx)(D,{header:(0,u.jsx)(Y,{}),primaryMenu:(0,u.jsx)(We,{}),secondaryMenu:(0,u.jsx)(Ye,{})}):null}const Xe={navbarHideable:"navbarHideable_m1mJ",navbarHidden:"navbarHidden_jGov"};function Je(e){return(0,u.jsx)("div",{role:"presentation",...e,className:(0,a.Z)("navbar-sidebar__backdrop",e.className)})}function et(e){let{children:t}=e;const{navbar:{hideOnScroll:n,style:o}}=(0,x.L)(),i=(0,N.e)(),{navbarRef:s,isNavbarVisible:d}=function(e){const[t,n]=(0,r.useState)(e),a=(0,r.useRef)(!1),o=(0,r.useRef)(0),i=(0,r.useCallback)((e=>{null!==e&&(o.current=e.getBoundingClientRect().height)}),[]);return(0,P.RF)(((t,r)=>{let{scrollY:i}=t;if(!e)return;if(i<o.current)return void n(!0);if(a.current)return void(a.current=!1);const s=r?.scrollY,l=document.documentElement.scrollHeight-o.current,c=window.innerHeight;s&&i>=s?n(!1):i+c<l&&n(!0)})),(0,c.S)((t=>{if(!e)return;const r=t.location.hash;if(r?document.getElementById(r.substring(1)):void 0)return a.current=!0,void n(!1);n(!0)})),{navbarRef:i,isNavbarVisible:t}}(n);return(0,u.jsxs)("nav",{ref:s,"aria-label":(0,l.I)({id:"theme.NavBar.navAriaLabel",message:"Main",description:"The ARIA label for the main navigation"}),className:(0,a.Z)("navbar","navbar--fixed-top",n&&[Xe.navbarHideable,!d&&Xe.navbarHidden],{"navbar--dark":"dark"===o,"navbar--primary":"primary"===o,"navbar-sidebar--show":i.shown}),children:[t,(0,u.jsx)(Je,{onClick:i.toggle}),(0,u.jsx)(Ke,{})]})}var tt=n(8780);const nt={errorBoundaryError:"errorBoundaryError_a6uf",errorBoundaryFallback:"errorBoundaryFallback_VBag"};function rt(e){return(0,u.jsx)("button",{type:"button",...e,children:(0,u.jsx)(l.Z,{id:"theme.ErrorPageContent.tryAgain",description:"The label of the button to try again rendering when the React error boundary captures an error",children:"Try again"})})}function at(e){let{error:t}=e;const n=(0,tt.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,u.jsx)("p",{className:nt.errorBoundaryError,children:n})}class ot extends r.Component{componentDidCatch(e,t){throw this.props.onError(e,t)}render(){return this.props.children}}const it="right";function st(e){let{width:t=30,height:n=30,className:r,...a}=e;return(0,u.jsx)("svg",{className:r,width:t,height:n,viewBox:"0 0 30 30","aria-hidden":"true",...a,children:(0,u.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"})})}function lt(){const{toggle:e,shown:t}=(0,N.e)();return(0,u.jsx)("button",{onClick:e,"aria-label":(0,l.I)({id:"theme.docs.sidebar.toggleSidebarButtonAriaLabel",message:"Toggle navigation bar",description:"The ARIA label for hamburger menu button of mobile navigation"}),"aria-expanded":t,className:"navbar__toggle clean-btn",type:"button",children:(0,u.jsx)(st,{})})}const ct={colorModeToggle:"colorModeToggle_DEke"};function ut(e){let{items:t}=e;return(0,u.jsx)(u.Fragment,{children:t.map(((e,t)=>(0,u.jsx)(ot,{onError:t=>new Error(`A theme navbar item failed to render.\nPlease double-check the following navbar item (themeConfig.navbar.items) of your Docusaurus config:\n${JSON.stringify(e,null,2)}`,{cause:t}),children:(0,u.jsx)(Ve,{...e})},t)))})}function dt(e){let{left:t,right:n}=e;return(0,u.jsxs)("div",{className:"navbar__inner",children:[(0,u.jsx)("div",{className:"navbar__items",children:t}),(0,u.jsx)("div",{className:"navbar__items navbar__items--right",children:n})]})}function pt(){const e=(0,N.e)(),t=(0,x.L)().navbar.items,[n,r]=function(e){function t(e){return"left"===(e.position??it)}return[e.filter(t),e.filter((e=>!t(e)))]}(t),a=t.find((e=>"search"===e.type));return(0,u.jsx)(dt,{left:(0,u.jsxs)(u.Fragment,{children:[!e.disabled&&(0,u.jsx)(lt,{}),(0,u.jsx)(W,{}),(0,u.jsx)(ut,{items:n})]}),right:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ut,{items:r}),(0,u.jsx)(Z,{className:ct.colorModeToggle}),!a&&(0,u.jsx)(Ue,{children:(0,u.jsx)($e,{})})]})})}function ft(){return(0,u.jsx)(et,{children:(0,u.jsx)(pt,{})})}function ht(e){let{item:t}=e;const{to:n,href:r,label:a,prependBaseUrlToHref:o,...i}=t,s=(0,X.Z)(n),l=(0,X.Z)(r,{forcePrependBaseUrl:!0});return(0,u.jsxs)(K.Z,{className:"footer__link-item",...r?{href:o?l:r}:{to:s},...i,children:[a,r&&!(0,J.Z)(r)&&(0,u.jsx)(te.Z,{})]})}function mt(e){let{item:t}=e;return t.html?(0,u.jsx)("li",{className:"footer__item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)("li",{className:"footer__item",children:(0,u.jsx)(ht,{item:t})},t.href??t.to)}function gt(e){let{column:t}=e;return(0,u.jsxs)("div",{className:"col footer__col",children:[(0,u.jsx)("div",{className:"footer__title",children:t.title}),(0,u.jsx)("ul",{className:"footer__items clean-list",children:t.items.map(((e,t)=>(0,u.jsx)(mt,{item:e},t)))})]})}function yt(e){let{columns:t}=e;return(0,u.jsx)("div",{className:"row footer__links",children:t.map(((e,t)=>(0,u.jsx)(gt,{column:e},t)))})}function bt(){return(0,u.jsx)("span",{className:"footer__link-separator",children:"\xb7"})}function vt(e){let{item:t}=e;return t.html?(0,u.jsx)("span",{className:"footer__link-item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)(ht,{item:t})}function xt(e){let{links:t}=e;return(0,u.jsx)("div",{className:"footer__links text--center",children:(0,u.jsx)("div",{className:"footer__links",children:t.map(((e,n)=>(0,u.jsxs)(r.Fragment,{children:[(0,u.jsx)(vt,{item:e}),t.length!==n+1&&(0,u.jsx)(bt,{})]},n)))})})}function wt(e){let{links:t}=e;return function(e){return"title"in e[0]}(t)?(0,u.jsx)(yt,{columns:t}):(0,u.jsx)(xt,{links:t})}var kt=n(9965);const St={footerLogoLink:"footerLogoLink_BH7S"};function Et(e){let{logo:t}=e;const{withBaseUrl:n}=(0,X.C)(),r={light:n(t.src),dark:n(t.srcDark??t.src)};return(0,u.jsx)(kt.Z,{className:(0,a.Z)("footer__logo",t.className),alt:t.alt,sources:r,width:t.width,height:t.height,style:t.style})}function _t(e){let{logo:t}=e;return t.href?(0,u.jsx)(K.Z,{href:t.href,className:St.footerLogoLink,target:t.target,children:(0,u.jsx)(Et,{logo:t})}):(0,u.jsx)(Et,{logo:t})}function Ct(e){let{copyright:t}=e;return(0,u.jsx)("div",{className:"footer__copyright",dangerouslySetInnerHTML:{__html:t}})}function Tt(e){let{style:t,links:n,logo:r,copyright:o}=e;return(0,u.jsx)("footer",{className:(0,a.Z)("footer",{"footer--dark":"dark"===t}),children:(0,u.jsxs)("div",{className:"container container-fluid",children:[n,(r||o)&&(0,u.jsxs)("div",{className:"footer__bottom text--center",children:[r&&(0,u.jsx)("div",{className:"margin-bottom--sm",children:r}),o]})]})})}function Lt(){const{footer:e}=(0,x.L)();if(!e)return null;const{copyright:t,links:n,logo:r,style:a}=e;return(0,u.jsx)(Tt,{style:a,links:n&&n.length>0&&(0,u.jsx)(wt,{links:n}),logo:r&&(0,u.jsx)(_t,{logo:r}),copyright:t&&(0,u.jsx)(Ct,{copyright:t})})}const Nt=r.memo(Lt),Pt=(0,A.Qc)([M.S,w.pl,P.OC,ve.L5,i.VC,function(e){let{children:t}=e;return(0,u.jsx)(O.n2,{children:(0,u.jsx)(N.M,{children:(0,u.jsx)(j,{children:t})})})}]);function At(e){let{children:t}=e;return(0,u.jsx)(Pt,{children:t})}var Ot=n(2503);function Rt(e){let{error:t,tryAgain:n}=e;return(0,u.jsx)("main",{className:"container margin-vert--xl",children:(0,u.jsx)("div",{className:"row",children:(0,u.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,u.jsx)(Ot.Z,{as:"h1",className:"hero__title",children:(0,u.jsx)(l.Z,{id:"theme.ErrorPageContent.title",description:"The title of the fallback page when the page crashed",children:"This page crashed."})}),(0,u.jsx)("div",{className:"margin-vert--lg",children:(0,u.jsx)(rt,{onClick:n,className:"button button--primary shadow--lw"})}),(0,u.jsx)("hr",{}),(0,u.jsx)("div",{className:"margin-vert--md",children:(0,u.jsx)(at,{error:t})})]})})})}const jt={mainWrapper:"mainWrapper_z2l0"};function It(e){const{children:t,noFooter:n,wrapperClassName:r,title:s,description:l}=e;return(0,y.t)(),(0,u.jsxs)(At,{children:[(0,u.jsx)(i.d,{title:s,description:l}),(0,u.jsx)(v,{}),(0,u.jsx)(L,{}),(0,u.jsx)(ft,{}),(0,u.jsx)("div",{id:d,className:(0,a.Z)(g.k.wrapper.main,jt.mainWrapper,r),children:(0,u.jsx)(o.Z,{fallback:e=>(0,u.jsx)(Rt,{...e}),children:t})}),!n&&(0,u.jsx)(Nt,{})]})}},1327:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(7294);var r=n(9960),a=n(4996),o=n(2263),i=n(6668),s=n(9965),l=n(5893);function c(e){let{logo:t,alt:n,imageClassName:r}=e;const o={light:(0,a.Z)(t.src),dark:(0,a.Z)(t.srcDark||t.src)},i=(0,l.jsx)(s.Z,{className:t.className,sources:o,height:t.height,width:t.width,alt:n,style:t.style});return r?(0,l.jsx)("div",{className:r,children:i}):i}function u(e){const{siteConfig:{title:t}}=(0,o.Z)(),{navbar:{title:n,logo:s}}=(0,i.L)(),{imageClassName:u,titleClassName:d,...p}=e,f=(0,a.Z)(s?.href||"/"),h=n?"":t,m=s?.alt??h;return(0,l.jsxs)(r.Z,{to:f,...p,...s?.target&&{target:s.target},children:[s&&(0,l.jsx)(c,{logo:s,alt:m,imageClassName:u}),null!=n&&(0,l.jsx)("b",{className:d,children:n})]})}},197:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(7294);var r=n(5742),a=n(5893);function o(e){let{locale:t,version:n,tag:o}=e;const i=t;return(0,a.jsxs)(r.Z,{children:[t&&(0,a.jsx)("meta",{name:"docusaurus_locale",content:t}),n&&(0,a.jsx)("meta",{name:"docusaurus_version",content:n}),o&&(0,a.jsx)("meta",{name:"docusaurus_tag",content:o}),i&&(0,a.jsx)("meta",{name:"docsearch:language",content:i}),n&&(0,a.jsx)("meta",{name:"docsearch:version",content:n}),o&&(0,a.jsx)("meta",{name:"docsearch:docusaurus_tag",content:o})]})}},9965:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(7294),a=n(512),o=n(2389),i=n(2949);const s={themedComponent:"themedComponent_mlkZ","themedComponent--light":"themedComponent--light_NVdE","themedComponent--dark":"themedComponent--dark_xIcU"};var l=n(5893);function c(e){let{className:t,children:n}=e;const c=(0,o.Z)(),{colorMode:u}=(0,i.I)();return(0,l.jsx)(l.Fragment,{children:(c?"dark"===u?["dark"]:["light"]:["light","dark"]).map((e=>{const o=n({theme:e,className:(0,a.Z)(t,s.themedComponent,s[`themedComponent--${e}`])});return(0,l.jsx)(r.Fragment,{children:o},e)}))})}function u(e){const{sources:t,className:n,alt:r,...a}=e;return(0,l.jsx)(c,{className:n,children:e=>{let{theme:n,className:o}=e;return(0,l.jsx)("img",{src:t[n],alt:r,className:o,...a})}})}},6043:(e,t,n)=>{"use strict";n.d(t,{u:()=>c,z:()=>y});var r=n(7294),a=n(412),o=n(469),i=n(1442),s=n(5893);const l="ease-in-out";function c(e){let{initialState:t}=e;const[n,a]=(0,r.useState)(t??!1),o=(0,r.useCallback)((()=>{a((e=>!e))}),[]);return{collapsed:n,setCollapsed:a,toggleCollapsed:o}}const u={display:"none",overflow:"hidden",height:"0px"},d={display:"block",overflow:"visible",height:"auto"};function p(e,t){const n=t?u:d;e.style.display=n.display,e.style.overflow=n.overflow,e.style.height=n.height}function f(e){let{collapsibleRef:t,collapsed:n,animation:a}=e;const o=(0,r.useRef)(!1);(0,r.useEffect)((()=>{const e=t.current;function r(){const t=e.scrollHeight,n=a?.duration??function(e){if((0,i.n)())return 1;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}(t);return{transition:`height ${n}ms ${a?.easing??l}`,height:`${t}px`}}function s(){const t=r();e.style.transition=t.transition,e.style.height=t.height}if(!o.current)return p(e,n),void(o.current=!0);return e.style.willChange="height",function(){const t=requestAnimationFrame((()=>{n?(s(),requestAnimationFrame((()=>{e.style.height=u.height,e.style.overflow=u.overflow}))):(e.style.display="block",requestAnimationFrame((()=>{s()})))}));return()=>cancelAnimationFrame(t)}()}),[t,n,a])}function h(e){if(!a.Z.canUseDOM)return e?u:d}function m(e){let{as:t="div",collapsed:n,children:a,animation:o,onCollapseTransitionEnd:i,className:l,disableSSRStyle:c}=e;const u=(0,r.useRef)(null);return f({collapsibleRef:u,collapsed:n,animation:o}),(0,s.jsx)(t,{ref:u,style:c?void 0:h(n),onTransitionEnd:e=>{"height"===e.propertyName&&(p(u.current,n),i?.(n))},className:l,children:a})}function g(e){let{collapsed:t,...n}=e;const[a,i]=(0,r.useState)(!t),[l,c]=(0,r.useState)(t);return(0,o.Z)((()=>{t||i(!0)}),[t]),(0,o.Z)((()=>{a&&c(t)}),[a,t]),a?(0,s.jsx)(m,{...n,collapsed:l}):null}function y(e){let{lazy:t,...n}=e;const r=t?g:m;return(0,s.jsx)(r,{...n})}},9689:(e,t,n)=>{"use strict";n.d(t,{nT:()=>m,pl:()=>h});var r=n(7294),a=n(2389),o=n(12),i=n(902),s=n(6668),l=n(5893);const c=(0,o.WA)("docusaurus.announcement.dismiss"),u=(0,o.WA)("docusaurus.announcement.id"),d=()=>"true"===c.get(),p=e=>c.set(String(e)),f=r.createContext(null);function h(e){let{children:t}=e;const n=function(){const{announcementBar:e}=(0,s.L)(),t=(0,a.Z)(),[n,o]=(0,r.useState)((()=>!!t&&d()));(0,r.useEffect)((()=>{o(d())}),[]);const i=(0,r.useCallback)((()=>{p(!0),o(!0)}),[]);return(0,r.useEffect)((()=>{if(!e)return;const{id:t}=e;let n=u.get();"annoucement-bar"===n&&(n="announcement-bar");const r=t!==n;u.set(t),r&&p(!1),!r&&d()||o(!1)}),[e]),(0,r.useMemo)((()=>({isActive:!!e&&!n,close:i})),[e,n,i])}();return(0,l.jsx)(f.Provider,{value:n,children:t})}function m(){const e=(0,r.useContext)(f);if(!e)throw new i.i6("AnnouncementBarProvider");return e}},2949:(e,t,n)=>{"use strict";n.d(t,{I:()=>y,S:()=>g});var r=n(7294),a=n(412),o=n(902),i=n(12),s=n(6668),l=n(5893);const c=r.createContext(void 0),u="theme",d=(0,i.WA)(u),p={light:"light",dark:"dark"},f=e=>e===p.dark?p.dark:p.light,h=e=>a.Z.canUseDOM?f(document.documentElement.getAttribute("data-theme")):f(e),m=e=>{d.set(f(e))};function g(e){let{children:t}=e;const n=function(){const{colorMode:{defaultMode:e,disableSwitch:t,respectPrefersColorScheme:n}}=(0,s.L)(),[a,o]=(0,r.useState)(h(e));(0,r.useEffect)((()=>{t&&d.del()}),[t]);const i=(0,r.useCallback)((function(t,r){void 0===r&&(r={});const{persist:a=!0}=r;t?(o(t),a&&m(t)):(o(n?window.matchMedia("(prefers-color-scheme: dark)").matches?p.dark:p.light:e),d.del())}),[n,e]);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-theme",f(a))}),[a]),(0,r.useEffect)((()=>{if(t)return;const e=e=>{if(e.key!==u)return;const t=d.get();null!==t&&i(f(t))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[t,i]);const l=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{if(t&&!n)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>{window.matchMedia("print").matches||l.current?l.current=window.matchMedia("print").matches:i(null)};return e.addListener(r),()=>e.removeListener(r)}),[i,t,n]),(0,r.useMemo)((()=>({colorMode:a,setColorMode:i,get isDarkTheme(){return a===p.dark},setLightTheme(){i(p.light)},setDarkTheme(){i(p.dark)}})),[a,i])}();return(0,l.jsx)(c.Provider,{value:n,children:t})}function y(){const e=(0,r.useContext)(c);if(null==e)throw new o.i6("ColorModeProvider","Please see https://docusaurus.io/docs/api/themes/configuration#use-color-mode.");return e}},373:(e,t,n)=>{"use strict";n.d(t,{J:()=>v,L5:()=>y});var r=n(7294),a=n(143),o=n(9935),i=n(6668),s=n(3438),l=n(902),c=n(12),u=n(5893);const d=e=>`docs-preferred-version-${e}`,p={save:(e,t,n)=>{(0,c.WA)(d(e),{persistence:t}).set(n)},read:(e,t)=>(0,c.WA)(d(e),{persistence:t}).get(),clear:(e,t)=>{(0,c.WA)(d(e),{persistence:t}).del()}},f=e=>Object.fromEntries(e.map((e=>[e,{preferredVersionName:null}])));const h=r.createContext(null);function m(){const e=(0,a._r)(),t=(0,i.L)().docs.versionPersistence,n=(0,r.useMemo)((()=>Object.keys(e)),[e]),[o,s]=(0,r.useState)((()=>f(n)));(0,r.useEffect)((()=>{s(function(e){let{pluginIds:t,versionPersistence:n,allDocsData:r}=e;function a(e){const t=p.read(e,n);return r[e].versions.some((e=>e.name===t))?{preferredVersionName:t}:(p.clear(e,n),{preferredVersionName:null})}return Object.fromEntries(t.map((e=>[e,a(e)])))}({allDocsData:e,versionPersistence:t,pluginIds:n}))}),[e,t,n]);return[o,(0,r.useMemo)((()=>({savePreferredVersion:function(e,n){p.save(e,t,n),s((t=>({...t,[e]:{preferredVersionName:n}})))}})),[t])]}function g(e){let{children:t}=e;const n=m();return(0,u.jsx)(h.Provider,{value:n,children:t})}function y(e){let{children:t}=e;return s.cE?(0,u.jsx)(g,{children:t}):(0,u.jsx)(u.Fragment,{children:t})}function b(){const e=(0,r.useContext)(h);if(!e)throw new l.i6("DocsPreferredVersionContextProvider");return e}function v(e){void 0===e&&(e=o.m);const t=(0,a.zh)(e),[n,i]=b(),{preferredVersionName:s}=n[e];return{preferredVersion:t.versions.find((e=>e.name===s))??null,savePreferredVersionName:(0,r.useCallback)((t=>{i.savePreferredVersion(e,t)}),[i,e])}}},1116:(e,t,n)=>{"use strict";n.d(t,{V:()=>c,b:()=>l});var r=n(7294),a=n(902),o=n(5893);const i=Symbol("EmptyContext"),s=r.createContext(i);function l(e){let{children:t,name:n,items:a}=e;const i=(0,r.useMemo)((()=>n&&a?{name:n,items:a}:null),[n,a]);return(0,o.jsx)(s.Provider,{value:i,children:t})}function c(){const e=(0,r.useContext)(s);if(e===i)throw new a.i6("DocsSidebarProvider");return e}},4477:(e,t,n)=>{"use strict";n.d(t,{E:()=>l,q:()=>s});var r=n(7294),a=n(902),o=n(5893);const i=r.createContext(null);function s(e){let{children:t,version:n}=e;return(0,o.jsx)(i.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(i);if(null===e)throw new a.i6("DocsVersionProvider");return e}},3163:(e,t,n)=>{"use strict";n.d(t,{M:()=>p,e:()=>f});var r=n(7294),a=n(3102),o=n(7524),i=n(1980),s=n(6668),l=n(902),c=n(5893);const u=r.createContext(void 0);function d(){const e=function(){const e=(0,a.HY)(),{items:t}=(0,s.L)().navbar;return 0===t.length&&!e.component}(),t=(0,o.i)(),n=!e&&"mobile"===t,[l,c]=(0,r.useState)(!1);(0,i.Rb)((()=>{if(l)return c(!1),!1}));const u=(0,r.useCallback)((()=>{c((e=>!e))}),[]);return(0,r.useEffect)((()=>{"desktop"===t&&c(!1)}),[t]),(0,r.useMemo)((()=>({disabled:e,shouldRender:n,toggle:u,shown:l})),[e,n,u,l])}function p(e){let{children:t}=e;const n=d();return(0,c.jsx)(u.Provider,{value:n,children:t})}function f(){const e=r.useContext(u);if(void 0===e)throw new l.i6("NavbarMobileSidebarProvider");return e}},3102:(e,t,n)=>{"use strict";n.d(t,{HY:()=>l,Zo:()=>c,n2:()=>s});var r=n(7294),a=n(902),o=n(5893);const i=r.createContext(null);function s(e){let{children:t}=e;const n=(0,r.useState)({component:null,props:null});return(0,o.jsx)(i.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(i);if(!e)throw new a.i6("NavbarSecondaryMenuContentProvider");return e[0]}function c(e){let{component:t,props:n}=e;const o=(0,r.useContext)(i);if(!o)throw new a.i6("NavbarSecondaryMenuContentProvider");const[,s]=o,l=(0,a.Ql)(n);return(0,r.useEffect)((()=>{s({component:t,props:l})}),[s,t,l]),(0,r.useEffect)((()=>()=>s({component:null,props:null})),[s]),null}},9727:(e,t,n)=>{"use strict";n.d(t,{h:()=>a,t:()=>o});var r=n(7294);const a="navigation-with-keyboard";function o(){(0,r.useEffect)((()=>{function e(e){"keydown"===e.type&&"Tab"===e.key&&document.body.classList.add(a),"mousedown"===e.type&&document.body.classList.remove(a)}return document.addEventListener("keydown",e),document.addEventListener("mousedown",e),()=>{document.body.classList.remove(a),document.removeEventListener("keydown",e),document.removeEventListener("mousedown",e)}}),[])}},7524:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r=n(7294),a=n(412);const o={desktop:"desktop",mobile:"mobile",ssr:"ssr"},i=996;function s(){const[e,t]=(0,r.useState)((()=>"ssr"));return(0,r.useEffect)((()=>{function e(){t(function(){if(!a.Z.canUseDOM)throw new Error("getWindowSize() should only be called after React hydration");return window.innerWidth>i?o.desktop:o.mobile}())}return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),e}},5281:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});const r={page:{blogListPage:"blog-list-page",blogPostPage:"blog-post-page",blogTagsListPage:"blog-tags-list-page",blogTagPostListPage:"blog-tags-post-list-page",docsDocPage:"docs-doc-page",docsTagsListPage:"docs-tags-list-page",docsTagDocListPage:"docs-tags-doc-list-page",mdxPage:"mdx-page"},wrapper:{main:"main-wrapper",blogPages:"blog-wrapper",docsPages:"docs-wrapper",mdxPages:"mdx-wrapper"},common:{editThisPage:"theme-edit-this-page",lastUpdated:"theme-last-updated",backToTopButton:"theme-back-to-top-button",codeBlock:"theme-code-block",admonition:"theme-admonition",unlistedBanner:"theme-unlisted-banner",admonitionType:e=>`theme-admonition-${e}`},layout:{},docs:{docVersionBanner:"theme-doc-version-banner",docVersionBadge:"theme-doc-version-badge",docBreadcrumbs:"theme-doc-breadcrumbs",docMarkdown:"theme-doc-markdown",docTocMobile:"theme-doc-toc-mobile",docTocDesktop:"theme-doc-toc-desktop",docFooter:"theme-doc-footer",docFooterTagsRow:"theme-doc-footer-tags-row",docFooterEditMetaRow:"theme-doc-footer-edit-meta-row",docSidebarContainer:"theme-doc-sidebar-container",docSidebarMenu:"theme-doc-sidebar-menu",docSidebarItemCategory:"theme-doc-sidebar-item-category",docSidebarItemLink:"theme-doc-sidebar-item-link",docSidebarItemCategoryLevel:e=>`theme-doc-sidebar-item-category-level-${e}`,docSidebarItemLinkLevel:e=>`theme-doc-sidebar-item-link-level-${e}`},blog:{}}},1442:(e,t,n)=>{"use strict";function r(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}n.d(t,{n:()=>r})},3438:(e,t,n)=>{"use strict";n.d(t,{LM:()=>h,MN:()=>T,SN:()=>C,_F:()=>b,cE:()=>p,f:()=>x,jA:()=>m,lO:()=>S,oz:()=>E,s1:()=>k,vY:()=>_,xz:()=>f});var r=n(7294),a=n(6550),o=n(8790),i=n(143),s=n(373),l=n(4477),c=n(1116),u=n(7392),d=n(8596);const p=!!i._r;function f(e){const t=(0,l.E)();if(!e)return;const n=t.docs[e];if(!n)throw new Error(`no version doc found by id=${e}`);return n}function h(e){return"link"!==e.type||e.unlisted?"category"===e.type?function(e){if(e.href&&!e.linkUnlisted)return e.href;for(const t of e.items){const e=h(t);if(e)return e}}(e):void 0:e.href}function m(){const{pathname:e}=(0,a.TH)(),t=(0,c.V)();if(!t)throw new Error("Unexpected: cant find current sidebar in context");const n=w({sidebarItems:t.items,pathname:e,onlyCategories:!0}).slice(-1)[0];if(!n)throw new Error(`${e} is not associated with a category. useCurrentSidebarCategory() should only be used on category index pages.`);return n}const g=(e,t)=>void 0!==e&&(0,d.Mg)(e,t),y=(e,t)=>e.some((e=>b(e,t)));function b(e,t){return"link"===e.type?g(e.href,t):"category"===e.type&&(g(e.href,t)||y(e.items,t))}function v(e,t){switch(e.type){case"category":return b(e,t)||e.items.some((e=>v(e,t)));case"link":return!e.unlisted||b(e,t);default:return!0}}function x(e,t){return(0,r.useMemo)((()=>e.filter((e=>v(e,t)))),[e,t])}function w(e){let{sidebarItems:t,pathname:n,onlyCategories:r=!1}=e;const a=[];return function e(t){for(const o of t)if("category"===o.type&&((0,d.Mg)(o.href,n)||e(o.items))||"link"===o.type&&(0,d.Mg)(o.href,n)){return r&&"category"!==o.type||a.unshift(o),!0}return!1}(t),a}function k(){const e=(0,c.V)(),{pathname:t}=(0,a.TH)(),n=(0,i.gA)()?.pluginData.breadcrumbs;return!1!==n&&e?w({sidebarItems:e.items,pathname:t}):null}function S(e){const{activeVersion:t}=(0,i.Iw)(e),{preferredVersion:n}=(0,s.J)(e),a=(0,i.yW)(e);return(0,r.useMemo)((()=>(0,u.j)([t,n,a].filter(Boolean))),[t,n,a])}function E(e,t){const n=S(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.sidebars?Object.entries(e.sidebars):[])),r=t.find((t=>t[0]===e));if(!r)throw new Error(`Can't find any sidebar with id "${e}" in version${n.length>1?"s":""} ${n.map((e=>e.name)).join(", ")}".\nAvailable sidebar ids are:\n- ${t.map((e=>e[0])).join("\n- ")}`);return r[1]}),[e,n])}function _(e,t){const n=S(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.docs)),r=t.find((t=>t.id===e));if(!r){if(n.flatMap((e=>e.draftIds)).includes(e))return null;throw new Error(`Couldn't find any doc with id "${e}" in version${n.length>1?"s":""} "${n.map((e=>e.name)).join(", ")}".\nAvailable doc ids are:\n- ${(0,u.j)(t.map((e=>e.id))).join("\n- ")}`)}return r}),[e,n])}function C(e){let{route:t}=e;const n=(0,a.TH)(),r=(0,l.E)(),i=t.routes,s=i.find((e=>(0,a.LX)(n.pathname,e)));if(!s)return null;const c=s.sidebar,u=c?r.docsSidebars[c]:void 0;return{docElement:(0,o.H)(i),sidebarName:c,sidebarItems:u}}function T(e){return e.filter((e=>!("category"===e.type||"link"===e.type)||!!h(e)))}},1980:(e,t,n)=>{"use strict";n.d(t,{Rb:()=>i,_X:()=>s});var r=n(7294),a=n(6550),o=n(902);function i(e){!function(e){const t=(0,a.k6)(),n=(0,o.zX)(e);(0,r.useEffect)((()=>t.block(((e,t)=>n(e,t)))),[t,n])}(((t,n)=>{if("POP"===n)return e(t,n)}))}function s(e){return function(e){const t=(0,a.k6)();return(0,r.useSyncExternalStore)(t.listen,(()=>e(t)),(()=>e(t)))}((t=>null===e?null:new URLSearchParams(t.location.search).get(e)))}},7392:(e,t,n)=>{"use strict";function r(e,t){return void 0===t&&(t=(e,t)=>e===t),e.filter(((n,r)=>e.findIndex((e=>t(e,n)))!==r))}function a(e){return Array.from(new Set(e))}n.d(t,{j:()=>a,l:()=>r})},1944:(e,t,n)=>{"use strict";n.d(t,{FG:()=>f,d:()=>d,VC:()=>h});var r=n(7294),a=n(512),o=n(5742),i=n(226);function s(){const e=r.useContext(i._);if(!e)throw new Error("Unexpected: no Docusaurus route context found");return e}var l=n(4996),c=n(2263);var u=n(5893);function d(e){let{title:t,description:n,keywords:r,image:a,children:i}=e;const s=function(e){const{siteConfig:t}=(0,c.Z)(),{title:n,titleDelimiter:r}=t;return e?.trim().length?`${e.trim()} ${r} ${n}`:n}(t),{withBaseUrl:d}=(0,l.C)(),p=a?d(a,{absolute:!0}):void 0;return(0,u.jsxs)(o.Z,{children:[t&&(0,u.jsx)("title",{children:s}),t&&(0,u.jsx)("meta",{property:"og:title",content:s}),n&&(0,u.jsx)("meta",{name:"description",content:n}),n&&(0,u.jsx)("meta",{property:"og:description",content:n}),r&&(0,u.jsx)("meta",{name:"keywords",content:Array.isArray(r)?r.join(","):r}),p&&(0,u.jsx)("meta",{property:"og:image",content:p}),p&&(0,u.jsx)("meta",{name:"twitter:image",content:p}),i]})}const p=r.createContext(void 0);function f(e){let{className:t,children:n}=e;const i=r.useContext(p),s=(0,a.Z)(i,t);return(0,u.jsxs)(p.Provider,{value:s,children:[(0,u.jsx)(o.Z,{children:(0,u.jsx)("html",{className:s})}),n]})}function h(e){let{children:t}=e;const n=s(),r=`plugin-${n.plugin.name.replace(/docusaurus-(?:plugin|theme)-(?:content-)?/gi,"")}`;const o=`plugin-id-${n.plugin.id}`;return(0,u.jsx)(f,{className:(0,a.Z)(r,o),children:t})}},902:(e,t,n)=>{"use strict";n.d(t,{D9:()=>s,Qc:()=>u,Ql:()=>c,i6:()=>l,zX:()=>i});var r=n(7294),a=n(469),o=n(5893);function i(e){const t=(0,r.useRef)(e);return(0,a.Z)((()=>{t.current=e}),[e]),(0,r.useCallback)((function(){return t.current(...arguments)}),[])}function s(e){const t=(0,r.useRef)();return(0,a.Z)((()=>{t.current=e})),t.current}class l extends Error{constructor(e,t){super(),this.name="ReactContextError",this.message=`Hook ${this.stack?.split("\n")[1]?.match(/at (?:\w+\.)?(?<name>\w+)/)?.groups.name??""} is called outside the <${e}>. ${t??""}`}}function c(e){const t=Object.entries(e);return t.sort(((e,t)=>e[0].localeCompare(t[0]))),(0,r.useMemo)((()=>e),t.flat())}function u(e){return t=>{let{children:n}=t;return(0,o.jsx)(o.Fragment,{children:e.reduceRight(((e,t)=>(0,o.jsx)(t,{children:e})),n)})}}},8596:(e,t,n)=>{"use strict";n.d(t,{Mg:()=>i,Ns:()=>s});var r=n(7294),a=n(723),o=n(2263);function i(e,t){const n=e=>(!e||e.endsWith("/")?e:`${e}/`)?.toLowerCase();return n(e)===n(t)}function s(){const{baseUrl:e}=(0,o.Z)().siteConfig;return(0,r.useMemo)((()=>function(e){let{baseUrl:t,routes:n}=e;function r(e){return e.path===t&&!0===e.exact}function a(e){return e.path===t&&!e.exact}return function e(t){if(0===t.length)return;return t.find(r)||e(t.filter(a).flatMap((e=>e.routes??[])))}(n)}({routes:a.Z,baseUrl:e})),[e])}},2466:(e,t,n)=>{"use strict";n.d(t,{Ct:()=>m,OC:()=>u,RF:()=>f,o5:()=>h});var r=n(7294),a=n(412),o=n(2389),i=n(469),s=n(902),l=n(5893);const c=r.createContext(void 0);function u(e){let{children:t}=e;const n=function(){const e=(0,r.useRef)(!0);return(0,r.useMemo)((()=>({scrollEventsEnabledRef:e,enableScrollEvents:()=>{e.current=!0},disableScrollEvents:()=>{e.current=!1}})),[])}();return(0,l.jsx)(c.Provider,{value:n,children:t})}function d(){const e=(0,r.useContext)(c);if(null==e)throw new s.i6("ScrollControllerProvider");return e}const p=()=>a.Z.canUseDOM?{scrollX:window.pageXOffset,scrollY:window.pageYOffset}:null;function f(e,t){void 0===t&&(t=[]);const{scrollEventsEnabledRef:n}=d(),a=(0,r.useRef)(p()),o=(0,s.zX)(e);(0,r.useEffect)((()=>{const e=()=>{if(!n.current)return;const e=p();o(e,a.current),a.current=e},t={passive:!0};return e(),window.addEventListener("scroll",e,t),()=>window.removeEventListener("scroll",e,t)}),[o,n,...t])}function h(){const e=d(),t=function(){const e=(0,r.useRef)({elem:null,top:0}),t=(0,r.useCallback)((t=>{e.current={elem:t,top:t.getBoundingClientRect().top}}),[]),n=(0,r.useCallback)((()=>{const{current:{elem:t,top:n}}=e;if(!t)return{restored:!1};const r=t.getBoundingClientRect().top-n;return r&&window.scrollBy({left:0,top:r}),e.current={elem:null,top:0},{restored:0!==r}}),[]);return(0,r.useMemo)((()=>({save:t,restore:n})),[n,t])}(),n=(0,r.useRef)(void 0),a=(0,r.useCallback)((r=>{t.save(r),e.disableScrollEvents(),n.current=()=>{const{restored:r}=t.restore();if(n.current=void 0,r){const t=()=>{e.enableScrollEvents(),window.removeEventListener("scroll",t)};window.addEventListener("scroll",t)}else e.enableScrollEvents()}}),[e,t]);return(0,i.Z)((()=>{queueMicrotask((()=>n.current?.()))})),{blockElementScrollPositionUntilNextRender:a}}function m(){const e=(0,r.useRef)(null),t=(0,o.Z)()&&"smooth"===getComputedStyle(document.documentElement).scrollBehavior;return{startScroll:n=>{e.current=t?function(e){return window.scrollTo({top:e,behavior:"smooth"}),()=>{}}(n):function(e){let t=null;const n=document.documentElement.scrollTop>e;return function r(){const a=document.documentElement.scrollTop;(n&&a>e||!n&&a<e)&&(t=requestAnimationFrame(r),window.scrollTo(0,Math.floor(.85*(a-e))+e))}(),()=>t&&cancelAnimationFrame(t)}(n)},cancelScroll:()=>e.current?.()}}},3320:(e,t,n)=>{"use strict";n.d(t,{HX:()=>r,os:()=>a});n(2263);const r="default";function a(e,t){return`docs-${e}-${t}`}},12:(e,t,n)=>{"use strict";n.d(t,{Nk:()=>u,WA:()=>c});var r=n(7294);const a="localStorage";function o(e){let{key:t,oldValue:n,newValue:r,storage:a}=e;if(n===r)return;const o=document.createEvent("StorageEvent");o.initStorageEvent("storage",!1,!1,t,n,r,window.location.href,a),window.dispatchEvent(o)}function i(e){if(void 0===e&&(e=a),"undefined"==typeof window)throw new Error("Browser storage is not available on Node.js/Docusaurus SSR process.");if("none"===e)return null;try{return window[e]}catch(n){return t=n,s||(console.warn("Docusaurus browser storage is not available.\nPossible reasons: running Docusaurus in an iframe, in an incognito browser session, or using too strict browser privacy settings.",t),s=!0),null}var t}let s=!1;const l={get:()=>null,set:()=>{},del:()=>{},listen:()=>()=>{}};function c(e,t){if("undefined"==typeof window)return function(e){function t(){throw new Error(`Illegal storage API usage for storage key "${e}".\nDocusaurus storage APIs are not supposed to be called on the server-rendering process.\nPlease only call storage APIs in effects and event handlers.`)}return{get:t,set:t,del:t,listen:t}}(e);const n=i(t?.persistence);return null===n?l:{get:()=>{try{return n.getItem(e)}catch(t){return console.error(`Docusaurus storage error, can't get key=${e}`,t),null}},set:t=>{try{const r=n.getItem(e);n.setItem(e,t),o({key:e,oldValue:r,newValue:t,storage:n})}catch(r){console.error(`Docusaurus storage error, can't set ${e}=${t}`,r)}},del:()=>{try{const t=n.getItem(e);n.removeItem(e),o({key:e,oldValue:t,newValue:null,storage:n})}catch(t){console.error(`Docusaurus storage error, can't delete key=${e}`,t)}},listen:t=>{try{const r=r=>{r.storageArea===n&&r.key===e&&t(r)};return window.addEventListener("storage",r),()=>window.removeEventListener("storage",r)}catch(r){return console.error(`Docusaurus storage error, can't listen for changes of key=${e}`,r),()=>{}}}}}function u(e,t){const n=(0,r.useRef)((()=>null===e?l:c(e,t))).current(),a=(0,r.useCallback)((e=>"undefined"==typeof window?()=>{}:n.listen(e)),[n]);return[(0,r.useSyncExternalStore)(a,(()=>"undefined"==typeof window?null:n.get()),(()=>null)),n]}},4711:(e,t,n)=>{"use strict";n.d(t,{l:()=>i});var r=n(2263),a=n(6550),o=n(8780);function i(){const{siteConfig:{baseUrl:e,url:t,trailingSlash:n},i18n:{defaultLocale:i,currentLocale:s}}=(0,r.Z)(),{pathname:l}=(0,a.TH)(),c=(0,o.applyTrailingSlash)(l,{trailingSlash:n,baseUrl:e}),u=s===i?e:e.replace(`/${s}/`,"/"),d=c.replace(e,"");return{createUrl:function(e){let{locale:n,fullyQualified:r}=e;return`${r?t:""}${function(e){return e===i?`${u}`:`${u}${e}/`}(n)}${d}`}}}},5936:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(7294),a=n(6550),o=n(902);function i(e){const t=(0,a.TH)(),n=(0,o.D9)(t),i=(0,o.zX)(e);(0,r.useEffect)((()=>{n&&t!==n&&i({location:t,previousLocation:n})}),[i,t,n])}},6668:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(2263);function a(){return(0,r.Z)().siteConfig.themeConfig}},8802:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const{trailingSlash:n,baseUrl:r}=t;if(e.startsWith("#"))return e;if(void 0===n)return e;const[a]=e.split(/[#?]/),o="/"===a||a===r?a:(i=a,n?function(e){return e.endsWith("/")?e:`${e}/`}(i):function(e){return e.endsWith("/")?e.slice(0,-1):e}(i));var i;return e.replace(a,o)}},4143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=void 0,t.getErrorCausalChain=function e(t){return t.cause?[t,...e(t.cause)]:[t]}},8780:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=t.applyTrailingSlash=t.blogPostContainerID=void 0,t.blogPostContainerID="__blog-post-container";var a=n(8802);Object.defineProperty(t,"applyTrailingSlash",{enumerable:!0,get:function(){return r(a).default}});var o=n(4143);Object.defineProperty(t,"getErrorCausalChain",{enumerable:!0,get:function(){return o.getErrorCausalChain}})},311:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});n(7294);var r=n(1728);const a={loadingRing:"loadingRing_RJI3","loading-ring":"loading-ring_FB5o"};var o=n(5893);function i(e){let{className:t}=e;return(0,o.jsxs)("div",{className:(0,r.Z)(a.loadingRing,t),children:[(0,o.jsx)("div",{}),(0,o.jsx)("div",{}),(0,o.jsx)("div",{}),(0,o.jsx)("div",{})]})}},22:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});var r=n(1336),a=n.n(r),o=n(8087);const i=new Map;function s(e,t){const n=`${e}${t}`;let r=i.get(n);return r||(r=async function(e,t){{const n=`${e}${o.J.replace("{dir}",t?`-${t.replace(/\//g,"-")}`:"")}`;if(new URL(n,location.origin).origin!==location.origin)throw new Error("Unexpected version url");const r=await(await fetch(n)).json(),i=r.map(((e,t)=>{let{documents:n,index:r}=e;return{type:t,documents:n,index:a().Index.load(r)}})),s=r.reduce(((e,t)=>{for(const n of t.index.invertedIndex)/\p{Unified_Ideograph}/u.test(n[0][0])&&e.add(n[0]);return e}),new Set);return{wrappedIndexes:i,zhDictionary:Array.from(s)}}return{wrappedIndexes:[],zhDictionary:[]}}(e,t),i.set(n,r)),r}},8202:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var r=n(1336),a=n.n(r);var o=n(8087);function i(e){return s(e).concat(s(e.filter((e=>{const t=e[e.length-1];return!t.trailing&&t.maybeTyping})),!0))}function s(e,t){return e.map((e=>({tokens:e.map((e=>e.value)),term:e.map((e=>({value:e.value,presence:a().Query.presence.REQUIRED,wildcard:(t?e.trailing||e.maybeTyping:e.trailing)?a().Query.wildcard.TRAILING:a().Query.wildcard.NONE})))})))}function l(e,t,n){return function(r,s){const l=function(e,t){if(1===t.length&&["ja","jp","th"].includes(t[0]))return a()[t[0]].tokenizer(e).map((e=>e.toString()));let n=/[^-\s]+/g;return t.includes("zh")&&(n=/\w+|\p{Unified_Ideograph}+/gu),e.toLowerCase().match(n)||[]}(r,o.dK);if(0===l.length)return void s([]);const c=function(e,t){const n=function(e,t){const n=[];return function e(r,a){if(0===r.length)return void n.push(a);const o=r[0];if(/\p{Unified_Ideograph}/u.test(o)){const n=function(e,t){const n=[];return function e(r,a){let o=0,i=!1;for(const s of t)if(r.substr(0,s.length)===s){const t={missed:a.missed,term:a.term.concat({value:s})};r.length>s.length?e(r.substr(s.length),t):n.push(t),i=!0}else for(let t=s.length-1;t>o;t-=1){const l=s.substr(0,t);if(r.substr(0,t)===l){o=t;const s={missed:a.missed,term:a.term.concat({value:l,trailing:!0})};r.length>t?e(r.substr(t),s):n.push(s),i=!0;break}}i||(r.length>0?e(r.substr(1),{missed:a.missed+1,term:a.term}):a.term.length>0&&n.push(a))}(e,{missed:0,term:[]}),n.sort(((e,t)=>{const n=e.missed>0?1:0,r=t.missed>0?1:0;return n!==r?n-r:e.term.length-t.term.length})).map((e=>e.term))}(o,t);for(const t of n){const n=a.concat(...t);e(r.slice(1),n)}}else{const t=a.concat({value:o});e(r.slice(1),t)}}(e,[]),n}(e,t);if(0===n.length)return[{tokens:e,term:e.map((e=>({value:e,presence:a().Query.presence.REQUIRED,wildcard:a().Query.wildcard.LEADING|a().Query.wildcard.TRAILING})))}];for(const a of n)a[a.length-1].maybeTyping=!0;const r=[];for(const i of o.dK)if("en"===i)o._k||r.unshift(a().stopWordFilter);else{const e=a()[i];e.stopWordFilter&&r.unshift(e.stopWordFilter)}let s;if(r.length>0){const e=e=>r.reduce(((e,t)=>e.filter((e=>t(e.value)))),e);s=[];const t=[];for(const r of n){const n=e(r);s.push(n),n.length<r.length&&n.length>0&&t.push(n)}n.push(...t)}else s=n.slice();const l=[];for(const a of s)if(a.length>2)for(let e=a.length-1;e>=0;e-=1)l.push(a.slice(0,e).concat(a.slice(e+1)));return i(n).concat(i(l))}(l,t),u=[];e:for(const{term:t,tokens:a}of c)for(const{documents:r,index:o,type:i}of e)if(u.push(...o.query((e=>{for(const n of t)e.term(n.value,{wildcard:n.wildcard,presence:n.presence})})).slice(0,n).filter((e=>!u.some((t=>t.document.i.toString()===e.ref)))).slice(0,n-u.length).map((t=>{const n=r.find((e=>e.i.toString()===t.ref));return{document:n,type:i,page:0!==i&&e[0].documents.find((e=>e.i===n.p)),metadata:t.matchData.metadata,tokens:a,score:t.score}}))),u.length>=n)break e;!function(e){e.forEach(((e,t)=>{e.index=t})),e.sort(((t,n)=>{let r=t.type>0&&t.page?e.findIndex((e=>e.document===t.page)):t.index,a=n.type>0&&n.page?e.findIndex((e=>e.document===n.page)):n.index;return-1===r&&(r=t.index),-1===a&&(a=n.index),r===a?0===t.type?-1:0===n.type?1:t.index-n.index:r-a}))}(u),function(e){e.forEach(((t,n)=>{n>0&&t.page&&e.some((e=>e.document===t.page))&&(n<e.length-1&&e[n+1].page===t.page?t.isInterOfTree=!0:t.isLastOfTree=!0)}))}(u),s(u)}}},3926:(e,t,n)=>{"use strict";function r(e){return e.join(" \u203a ")}n.d(t,{e:()=>r})},1690:(e,t,n)=>{"use strict";function r(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}n.d(t,{X:()=>r})},1073:(e,t,n)=>{"use strict";function r(e,t){const n=[];for(const r of Object.values(e))r[t]&&n.push(...r[t].position);return n.sort(((e,t)=>e[0]-t[0]||t[1]-e[1]))}n.d(t,{m:()=>r})},2539:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var r=n(1690);function a(e,t,n){const o=[];for(const i of t){const n=e.toLowerCase().indexOf(i);if(n>=0){n>0&&o.push(a(e.substr(0,n),t)),o.push(`<mark>${(0,r.X)(e.substr(n,i.length))}</mark>`);const s=n+i.length;s<e.length&&o.push(a(e.substr(s),t));break}}return 0===o.length?n?`<mark>${(0,r.X)(e)}</mark>`:(0,r.X)(e):o.join("")}},726:(e,t,n)=>{"use strict";n.d(t,{o:()=>l});var r=n(1690),a=n(2539);const o=/\w+|\p{Unified_Ideograph}/u;function i(e){const t=[];let n=0,r=e;for(;r.length>0;){const a=r.match(o);if(!a){t.push(r);break}a.index>0&&t.push(r.substring(0,a.index)),t.push(a[0]),n+=a.index+a[0].length,r=e.substring(n)}return t}var s=n(8087);function l(e,t,n,o){void 0===o&&(o=s.Hk);const{chunkIndex:l,chunks:c}=function(e,t,n){const o=[];let s=0,l=0,c=-1;for(;s<t.length;){const[u,d]=t[s];if(s+=1,!(u<l)){if(u>l){const t=i(e.substring(l,u)).map((e=>({html:(0,r.X)(e),textLength:e.length})));for(const e of t)o.push(e)}-1===c&&(c=o.length),l=u+d,o.push({html:(0,a.C)(e.substring(u,l),n,!0),textLength:d})}}if(l<e.length){const t=i(e.substring(l)).map((e=>({html:(0,r.X)(e),textLength:e.length})));for(const e of t)o.push(e)}return{chunkIndex:c,chunks:o}}(e,t,n),u=c.slice(0,l),d=c[l],p=[d.html],f=c.slice(l+1);let h=d.textLength,m=0,g=0,y=!1,b=!1;for(;h<o;)if((m<=g||0===f.length)&&u.length>0){const e=u.pop();h+e.textLength<=o?(p.unshift(e.html),m+=e.textLength,h+=e.textLength):(y=!0,u.length=0)}else{if(!(f.length>0))break;{const e=f.shift();h+e.textLength<=o?(p.push(e.html),g+=e.textLength,h+=e.textLength):(b=!0,f.length=0)}}return(y||u.length>0)&&p.unshift("\u2026"),(b||f.length>0)&&p.push("\u2026"),p.join("")}},51:(e,t,n)=>{"use strict";function r(e,t){if("string"==typeof e)return{label:e,path:e};{const{label:n,path:r}=e;return"string"==typeof n?{label:n,path:r}:Object.prototype.hasOwnProperty.call(n,t)?{label:n[t],path:r}:{label:r,path:r}}}n.d(t,{_:()=>r})},8087:(e,t,n)=>{"use strict";n.d(t,{vc:()=>o,gQ:()=>f,H6:()=>c,hG:()=>g,l9:()=>h,dK:()=>r,_k:()=>a,pu:()=>p,AY:()=>u,t_:()=>d,Kc:()=>m,J:()=>i,Hk:()=>l,qo:()=>s,pQ:()=>y});n(1336);const r=["en"],a=!1,o=null,i="search-index{dir}.json",s=8,l=50,c=!1,u=!0,d=!0,p="right",f=void 0,h=!0,m=null,g=!1,y=!1},2358:(e,t,n)=>{"use strict";n.d(t,{lX:()=>S,q_:()=>N,ob:()=>m,PP:()=>A,Ep:()=>h,Hp:()=>g});var r=n(7462);function a(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,a=e.length;r<a;n+=1,r+=1)e[n]=e[r];e.pop()}const i=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],s=e&&a(e),l=t&&a(t),c=s||l;if(e&&a(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var u=i[i.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,p=i.length;p>=0;p--){var f=i[p];"."===f?o(i,p):".."===f?(o(i,p),d++):d&&(o(i,p),d--)}if(!c)for(;d--;d)i.unshift("..");!c||""===i[0]||i[0]&&a(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=s(t),a=s(n);return r!==t||a!==n?e(r,a):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var c=n(8776);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a}function m(e,t,n,a){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),a?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=i(o.pathname,a.pathname)):o.pathname=a.pathname:o.pathname||(o.pathname="/"),o}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function y(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,a){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,a):a(!0):a(!1!==o)}else a(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var b=!("undefined"==typeof window||!window.document||!window.document.createElement);function v(e,t){t(window.confirm(e))}var x="popstate",w="hashchange";function k(){try{return window.history.state||{}}catch(e){return{}}}function S(e){void 0===e&&(e={}),b||(0,c.Z)(!1);var t,n=window.history,a=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,s=i.forceRefresh,l=void 0!==s&&s,d=i.getUserConfirmation,g=void 0===d?v:d,S=i.keyLength,E=void 0===S?6:S,_=e.basename?f(u(e.basename)):"";function C(e){var t=e||{},n=t.key,r=t.state,a=window.location,o=a.pathname+a.search+a.hash;return _&&(o=p(o,_)),m(o,r,n)}function T(){return Math.random().toString(36).substr(2,E)}var L=y();function N(e){(0,r.Z)($,e),$.length=n.length,L.notifyListeners($.location,$.action)}function P(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||R(C(e.state))}function A(){R(C(k()))}var O=!1;function R(e){if(O)O=!1,N();else{L.confirmTransitionTo(e,"POP",g,(function(t){t?N({action:"POP",location:e}):function(e){var t=$.location,n=I.indexOf(t.key);-1===n&&(n=0);var r=I.indexOf(e.key);-1===r&&(r=0);var a=n-r;a&&(O=!0,D(a))}(e)}))}}var j=C(k()),I=[j.key];function F(e){return _+h(e)}function D(e){n.go(e)}var M=0;function B(e){1===(M+=e)&&1===e?(window.addEventListener(x,P),o&&window.addEventListener(w,A)):0===M&&(window.removeEventListener(x,P),o&&window.removeEventListener(w,A))}var z=!1;var $={length:n.length,action:"POP",location:j,createHref:F,push:function(e,t){var r="PUSH",o=m(e,t,T(),$.location);L.confirmTransitionTo(o,r,g,(function(e){if(e){var t=F(o),i=o.key,s=o.state;if(a)if(n.pushState({key:i,state:s},null,t),l)window.location.href=t;else{var c=I.indexOf($.location.key),u=I.slice(0,c+1);u.push(o.key),I=u,N({action:r,location:o})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",o=m(e,t,T(),$.location);L.confirmTransitionTo(o,r,g,(function(e){if(e){var t=F(o),i=o.key,s=o.state;if(a)if(n.replaceState({key:i,state:s},null,t),l)window.location.replace(t);else{var c=I.indexOf($.location.key);-1!==c&&(I[c]=o.key),N({action:r,location:o})}else window.location.replace(t)}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=L.setPrompt(e);return z||(B(1),z=!0),function(){return z&&(z=!1,B(-1)),t()}},listen:function(e){var t=L.appendListener(e);return B(1),function(){B(-1),t()}}};return $}var E="hashchange",_={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function C(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function T(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function L(e){window.location.replace(C(window.location.href)+"#"+e)}function N(e){void 0===e&&(e={}),b||(0,c.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),a=n.getUserConfirmation,o=void 0===a?v:a,i=n.hashType,s=void 0===i?"slash":i,l=e.basename?f(u(e.basename)):"",d=_[s],g=d.encodePath,x=d.decodePath;function w(){var e=x(T());return l&&(e=p(e,l)),m(e)}var k=y();function S(e){(0,r.Z)(z,e),z.length=t.length,k.notifyListeners(z.location,z.action)}var N=!1,P=null;function A(){var e,t,n=T(),r=g(n);if(n!==r)L(r);else{var a=w(),i=z.location;if(!N&&(t=a,(e=i).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(P===h(a))return;P=null,function(e){if(N)N=!1,S();else{var t="POP";k.confirmTransitionTo(e,t,o,(function(n){n?S({action:t,location:e}):function(e){var t=z.location,n=I.lastIndexOf(h(t));-1===n&&(n=0);var r=I.lastIndexOf(h(e));-1===r&&(r=0);var a=n-r;a&&(N=!0,F(a))}(e)}))}}(a)}}var O=T(),R=g(O);O!==R&&L(R);var j=w(),I=[h(j)];function F(e){t.go(e)}var D=0;function M(e){1===(D+=e)&&1===e?window.addEventListener(E,A):0===D&&window.removeEventListener(E,A)}var B=!1;var z={length:t.length,action:"POP",location:j,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=C(window.location.href)),n+"#"+g(l+h(e))},push:function(e,t){var n="PUSH",r=m(e,void 0,void 0,z.location);k.confirmTransitionTo(r,n,o,(function(e){if(e){var t=h(r),a=g(l+t);if(T()!==a){P=t,function(e){window.location.hash=e}(a);var o=I.lastIndexOf(h(z.location)),i=I.slice(0,o+1);i.push(t),I=i,S({action:n,location:r})}else S()}}))},replace:function(e,t){var n="REPLACE",r=m(e,void 0,void 0,z.location);k.confirmTransitionTo(r,n,o,(function(e){if(e){var t=h(r),a=g(l+t);T()!==a&&(P=t,L(a));var o=I.indexOf(h(z.location));-1!==o&&(I[o]=t),S({action:n,location:r})}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=k.setPrompt(e);return B||(M(1),B=!0),function(){return B&&(B=!1,M(-1)),t()}},listen:function(e){var t=k.appendListener(e);return M(1),function(){M(-1),t()}}};return z}function P(e,t,n){return Math.min(Math.max(e,t),n)}function A(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,a=t.initialEntries,o=void 0===a?["/"]:a,i=t.initialIndex,s=void 0===i?0:i,l=t.keyLength,c=void 0===l?6:l,u=y();function d(e){(0,r.Z)(x,e),x.length=x.entries.length,u.notifyListeners(x.location,x.action)}function p(){return Math.random().toString(36).substr(2,c)}var f=P(s,0,o.length-1),g=o.map((function(e){return m(e,void 0,"string"==typeof e?p():e.key||p())})),b=h;function v(e){var t=P(x.index+e,0,x.entries.length-1),r=x.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var x={length:g.length,action:"POP",location:g[f],index:f,entries:g,createHref:b,push:function(e,t){var r="PUSH",a=m(e,t,p(),x.location);u.confirmTransitionTo(a,r,n,(function(e){if(e){var t=x.index+1,n=x.entries.slice(0);n.length>t?n.splice(t,n.length-t,a):n.push(a),d({action:r,location:a,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",a=m(e,t,p(),x.location);u.confirmTransitionTo(a,r,n,(function(e){e&&(x.entries[x.index]=a,d({action:r,location:a}))}))},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(e){var t=x.index+e;return t>=0&&t<x.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return x}},8679:(e,t,n)=>{"use strict";var r=n(9864),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var a=f(n);a&&a!==h&&e(t,a,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<i.length;++g){var y=i[g];if(!(o[y]||r&&r[y]||m&&m[y]||s&&s[y])){var b=p(n,y);try{c(t,y,b)}catch(v){}}}}return t}},1143:e=>{"use strict";e.exports=function(e,t,n,r,a,o,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,o,i,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},5826:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},1336:(e,t,n)=>{var r,a;!function(){var o,i,s,l,c,u,d,p,f,h,m,g,y,b,v,x,w,k,S,E,_,C,T,L,N,P,A,O,R,j,I=function(e){var t=new I.Builder;return t.pipeline.add(I.trimmer,I.stopWordFilter,I.stemmer),t.searchPipeline.add(I.stemmer),e.call(t,t),t.build()};I.version="2.3.9",I.utils={},I.utils.warn=(o=this,function(e){o.console&&console.warn&&console.warn(e)}),I.utils.asString=function(e){return null==e?"":e.toString()},I.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),n=Object.keys(e),r=0;r<n.length;r++){var a=n[r],o=e[a];if(Array.isArray(o))t[a]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");t[a]=o}}return t},I.FieldRef=function(e,t,n){this.docRef=e,this.fieldName=t,this._stringValue=n},I.FieldRef.joiner="/",I.FieldRef.fromString=function(e){var t=e.indexOf(I.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var n=e.slice(0,t),r=e.slice(t+1);return new I.FieldRef(r,n,e)},I.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+I.FieldRef.joiner+this.docRef),this._stringValue},I.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},I.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},I.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},I.Set.prototype.contains=function(e){return!!this.elements[e]},I.Set.prototype.intersect=function(e){var t,n,r,a=[];if(e===I.Set.complete)return this;if(e===I.Set.empty)return e;this.length<e.length?(t=this,n=e):(t=e,n=this),r=Object.keys(t.elements);for(var o=0;o<r.length;o++){var i=r[o];i in n.elements&&a.push(i)}return new I.Set(a)},I.Set.prototype.union=function(e){return e===I.Set.complete?I.Set.complete:e===I.Set.empty?this:new I.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},I.idf=function(e,t){var n=0;for(var r in e)"_index"!=r&&(n+=Object.keys(e[r]).length);var a=(t-n+.5)/(n+.5);return Math.log(1+Math.abs(a))},I.Token=function(e,t){this.str=e||"",this.metadata=t||{}},I.Token.prototype.toString=function(){return this.str},I.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},I.Token.prototype.clone=function(e){return e=e||function(e){return e},new I.Token(e(this.str,this.metadata),this.metadata)},I.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new I.Token(I.utils.asString(e).toLowerCase(),I.utils.clone(t))}));for(var n=e.toString().toLowerCase(),r=n.length,a=[],o=0,i=0;o<=r;o++){var s=o-i;if(n.charAt(o).match(I.tokenizer.separator)||o==r){if(s>0){var l=I.utils.clone(t)||{};l.position=[i,s],l.index=a.length,a.push(new I.Token(n.slice(i,o),l))}i=o+1}}return a},I.tokenizer.separator=/[\s\-]+/,I.Pipeline=function(){this._stack=[]},I.Pipeline.registeredFunctions=Object.create(null),I.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&I.utils.warn("Overwriting existing registered function: "+t),e.label=t,I.Pipeline.registeredFunctions[e.label]=e},I.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||I.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},I.Pipeline.load=function(e){var t=new I.Pipeline;return e.forEach((function(e){var n=I.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)})),t},I.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(e){I.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},I.Pipeline.prototype.after=function(e,t){I.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},I.Pipeline.prototype.before=function(e,t){I.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},I.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},I.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n<t;n++){for(var r=this._stack[n],a=[],o=0;o<e.length;o++){var i=r(e[o],o,e);if(null!=i&&""!==i)if(Array.isArray(i))for(var s=0;s<i.length;s++)a.push(i[s]);else a.push(i)}e=a}return e},I.Pipeline.prototype.runString=function(e,t){var n=new I.Token(e,t);return this.run([n]).map((function(e){return e.toString()}))},I.Pipeline.prototype.reset=function(){this._stack=[]},I.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return I.Pipeline.warnIfFunctionNotRegistered(e),e.label}))},I.Vector=function(e){this._magnitude=0,this.elements=e||[]},I.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,n=this.elements.length/2,r=n-t,a=Math.floor(r/2),o=this.elements[2*a];r>1&&(o<e&&(t=a),o>e&&(n=a),o!=e);)r=n-t,a=t+Math.floor(r/2),o=this.elements[2*a];return o==e||o>e?2*a:o<e?2*(a+1):void 0},I.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},I.Vector.prototype.upsert=function(e,t,n){this._magnitude=0;var r=this.positionForIndex(e);this.elements[r]==e?this.elements[r+1]=n(this.elements[r+1],t):this.elements.splice(r,0,e,t)},I.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,n=1;n<t;n+=2){var r=this.elements[n];e+=r*r}return this._magnitude=Math.sqrt(e)},I.Vector.prototype.dot=function(e){for(var t=0,n=this.elements,r=e.elements,a=n.length,o=r.length,i=0,s=0,l=0,c=0;l<a&&c<o;)(i=n[l])<(s=r[c])?l+=2:i>s?c+=2:i==s&&(t+=n[l+1]*r[c+1],l+=2,c+=2);return t},I.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},I.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t<this.elements.length;t+=2,n++)e[n]=this.elements[t];return e},I.Vector.prototype.toJSON=function(){return this.elements},I.stemmer=(i={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},s={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},d="^("+(c="[^aeiou][^aeiouy]*")+")?"+(u=(l="[aeiouy]")+"[aeiou]*")+c+"("+u+")?$",p="^("+c+")?"+u+c+u+c,f="^("+c+")?"+l,h=new RegExp("^("+c+")?"+u+c),m=new RegExp(p),g=new RegExp(d),y=new RegExp(f),b=/^(.+?)(ss|i)es$/,v=/^(.+?)([^s])s$/,x=/^(.+?)eed$/,w=/^(.+?)(ed|ing)$/,k=/.$/,S=/(at|bl|iz)$/,E=new RegExp("([^aeiouylsz])\\1$"),_=new RegExp("^"+c+l+"[^aeiouwxy]$"),C=/^(.+?[^aeiou])y$/,T=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,L=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,N=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,P=/^(.+?)(s|t)(ion)$/,A=/^(.+?)e$/,O=/ll$/,R=new RegExp("^"+c+l+"[^aeiouwxy]$"),j=function(e){var t,n,r,a,o,l,c;if(e.length<3)return e;if("y"==(r=e.substr(0,1))&&(e=r.toUpperCase()+e.substr(1)),o=v,(a=b).test(e)?e=e.replace(a,"$1$2"):o.test(e)&&(e=e.replace(o,"$1$2")),o=w,(a=x).test(e)){var u=a.exec(e);(a=h).test(u[1])&&(a=k,e=e.replace(a,""))}else o.test(e)&&(t=(u=o.exec(e))[1],(o=y).test(t)&&(l=E,c=_,(o=S).test(e=t)?e+="e":l.test(e)?(a=k,e=e.replace(a,"")):c.test(e)&&(e+="e")));return(a=C).test(e)&&(e=(t=(u=a.exec(e))[1])+"i"),(a=T).test(e)&&(t=(u=a.exec(e))[1],n=u[2],(a=h).test(t)&&(e=t+i[n])),(a=L).test(e)&&(t=(u=a.exec(e))[1],n=u[2],(a=h).test(t)&&(e=t+s[n])),o=P,(a=N).test(e)?(t=(u=a.exec(e))[1],(a=m).test(t)&&(e=t)):o.test(e)&&(t=(u=o.exec(e))[1]+u[2],(o=m).test(t)&&(e=t)),(a=A).test(e)&&(t=(u=a.exec(e))[1],o=g,l=R,((a=m).test(t)||o.test(t)&&!l.test(t))&&(e=t)),o=m,(a=O).test(e)&&o.test(e)&&(a=k,e=e.replace(a,"")),"y"==r&&(e=r.toLowerCase()+e.substr(1)),e},function(e){return e.update(j)}),I.Pipeline.registerFunction(I.stemmer,"stemmer"),I.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},I.stopWordFilter=I.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),I.Pipeline.registerFunction(I.stopWordFilter,"stopWordFilter"),I.trimmer=function(e){return e.update((function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")}))},I.Pipeline.registerFunction(I.trimmer,"trimmer"),I.TokenSet=function(){this.final=!1,this.edges={},this.id=I.TokenSet._nextId,I.TokenSet._nextId+=1},I.TokenSet._nextId=1,I.TokenSet.fromArray=function(e){for(var t=new I.TokenSet.Builder,n=0,r=e.length;n<r;n++)t.insert(e[n]);return t.finish(),t.root},I.TokenSet.fromClause=function(e){return"editDistance"in e?I.TokenSet.fromFuzzyString(e.term,e.editDistance):I.TokenSet.fromString(e.term)},I.TokenSet.fromFuzzyString=function(e,t){for(var n=new I.TokenSet,r=[{node:n,editsRemaining:t,str:e}];r.length;){var a=r.pop();if(a.str.length>0){var o,i=a.str.charAt(0);i in a.node.edges?o=a.node.edges[i]:(o=new I.TokenSet,a.node.edges[i]=o),1==a.str.length&&(o.final=!0),r.push({node:o,editsRemaining:a.editsRemaining,str:a.str.slice(1)})}if(0!=a.editsRemaining){if("*"in a.node.edges)var s=a.node.edges["*"];else{s=new I.TokenSet;a.node.edges["*"]=s}if(0==a.str.length&&(s.final=!0),r.push({node:s,editsRemaining:a.editsRemaining-1,str:a.str}),a.str.length>1&&r.push({node:a.node,editsRemaining:a.editsRemaining-1,str:a.str.slice(1)}),1==a.str.length&&(a.node.final=!0),a.str.length>=1){if("*"in a.node.edges)var l=a.node.edges["*"];else{l=new I.TokenSet;a.node.edges["*"]=l}1==a.str.length&&(l.final=!0),r.push({node:l,editsRemaining:a.editsRemaining-1,str:a.str.slice(1)})}if(a.str.length>1){var c,u=a.str.charAt(0),d=a.str.charAt(1);d in a.node.edges?c=a.node.edges[d]:(c=new I.TokenSet,a.node.edges[d]=c),1==a.str.length&&(c.final=!0),r.push({node:c,editsRemaining:a.editsRemaining-1,str:u+a.str.slice(2)})}}}return n},I.TokenSet.fromString=function(e){for(var t=new I.TokenSet,n=t,r=0,a=e.length;r<a;r++){var o=e[r],i=r==a-1;if("*"==o)t.edges[o]=t,t.final=i;else{var s=new I.TokenSet;s.final=i,t.edges[o]=s,t=s}}return n},I.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var n=t.pop(),r=Object.keys(n.node.edges),a=r.length;n.node.final&&(n.prefix.charAt(0),e.push(n.prefix));for(var o=0;o<a;o++){var i=r[o];t.push({prefix:n.prefix.concat(i),node:n.node.edges[i]})}}return e},I.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),n=t.length,r=0;r<n;r++){var a=t[r];e=e+a+this.edges[a].id}return e},I.TokenSet.prototype.intersect=function(e){for(var t=new I.TokenSet,n=void 0,r=[{qNode:e,output:t,node:this}];r.length;){n=r.pop();for(var a=Object.keys(n.qNode.edges),o=a.length,i=Object.keys(n.node.edges),s=i.length,l=0;l<o;l++)for(var c=a[l],u=0;u<s;u++){var d=i[u];if(d==c||"*"==c){var p=n.node.edges[d],f=n.qNode.edges[c],h=p.final&&f.final,m=void 0;d in n.output.edges?(m=n.output.edges[d]).final=m.final||h:((m=new I.TokenSet).final=h,n.output.edges[d]=m),r.push({qNode:f,output:m,node:p})}}}return t},I.TokenSet.Builder=function(){this.previousWord="",this.root=new I.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},I.TokenSet.Builder.prototype.insert=function(e){var t,n=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var r=0;r<e.length&&r<this.previousWord.length&&e[r]==this.previousWord[r];r++)n++;this.minimize(n),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(r=n;r<e.length;r++){var a=new I.TokenSet,o=e[r];t.edges[o]=a,this.uncheckedNodes.push({parent:t,char:o,child:a}),t=a}t.final=!0,this.previousWord=e},I.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},I.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var n=this.uncheckedNodes[t],r=n.child.toString();r in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[r]:(n.child._str=r,this.minimizedNodes[r]=n.child),this.uncheckedNodes.pop()}},I.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},I.Index.prototype.search=function(e){return this.query((function(t){new I.QueryParser(e,t).parse()}))},I.Index.prototype.query=function(e){for(var t=new I.Query(this.fields),n=Object.create(null),r=Object.create(null),a=Object.create(null),o=Object.create(null),i=Object.create(null),s=0;s<this.fields.length;s++)r[this.fields[s]]=new I.Vector;e.call(t,t);for(s=0;s<t.clauses.length;s++){var l=t.clauses[s],c=null,u=I.Set.empty;c=l.usePipeline?this.pipeline.runString(l.term,{fields:l.fields}):[l.term];for(var d=0;d<c.length;d++){var p=c[d];l.term=p;var f=I.TokenSet.fromClause(l),h=this.tokenSet.intersect(f).toArray();if(0===h.length&&l.presence===I.Query.presence.REQUIRED){for(var m=0;m<l.fields.length;m++){o[A=l.fields[m]]=I.Set.empty}break}for(var g=0;g<h.length;g++){var y=h[g],b=this.invertedIndex[y],v=b._index;for(m=0;m<l.fields.length;m++){var x=b[A=l.fields[m]],w=Object.keys(x),k=y+"/"+A,S=new I.Set(w);if(l.presence==I.Query.presence.REQUIRED&&(u=u.union(S),void 0===o[A]&&(o[A]=I.Set.complete)),l.presence!=I.Query.presence.PROHIBITED){if(r[A].upsert(v,l.boost,(function(e,t){return e+t})),!a[k]){for(var E=0;E<w.length;E++){var _,C=w[E],T=new I.FieldRef(C,A),L=x[C];void 0===(_=n[T])?n[T]=new I.MatchData(y,A,L):_.add(y,A,L)}a[k]=!0}}else void 0===i[A]&&(i[A]=I.Set.empty),i[A]=i[A].union(S)}}}if(l.presence===I.Query.presence.REQUIRED)for(m=0;m<l.fields.length;m++){o[A=l.fields[m]]=o[A].intersect(u)}}var N=I.Set.complete,P=I.Set.empty;for(s=0;s<this.fields.length;s++){var A;o[A=this.fields[s]]&&(N=N.intersect(o[A])),i[A]&&(P=P.union(i[A]))}var O=Object.keys(n),R=[],j=Object.create(null);if(t.isNegated()){O=Object.keys(this.fieldVectors);for(s=0;s<O.length;s++){T=O[s];var F=I.FieldRef.fromString(T);n[T]=new I.MatchData}}for(s=0;s<O.length;s++){var D=(F=I.FieldRef.fromString(O[s])).docRef;if(N.contains(D)&&!P.contains(D)){var M,B=this.fieldVectors[F],z=r[F.fieldName].similarity(B);if(void 0!==(M=j[D]))M.score+=z,M.matchData.combine(n[F]);else{var $={ref:D,score:z,matchData:n[F]};j[D]=$,R.push($)}}}return R.sort((function(e,t){return t.score-e.score}))},I.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:I.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},I.Index.load=function(e){var t={},n={},r=e.fieldVectors,a=Object.create(null),o=e.invertedIndex,i=new I.TokenSet.Builder,s=I.Pipeline.load(e.pipeline);e.version!=I.version&&I.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+I.version+"' does not match serialized index '"+e.version+"'");for(var l=0;l<r.length;l++){var c=(d=r[l])[0],u=d[1];n[c]=new I.Vector(u)}for(l=0;l<o.length;l++){var d,p=(d=o[l])[0],f=d[1];i.insert(p),a[p]=f}return i.finish(),t.fields=e.fields,t.fieldVectors=n,t.invertedIndex=a,t.tokenSet=i.root,t.pipeline=s,new I.Index(t)},I.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=I.tokenizer,this.pipeline=new I.Pipeline,this.searchPipeline=new I.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},I.Builder.prototype.ref=function(e){this._ref=e},I.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},I.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},I.Builder.prototype.k1=function(e){this._k1=e},I.Builder.prototype.add=function(e,t){var n=e[this._ref],r=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var a=0;a<r.length;a++){var o=r[a],i=this._fields[o].extractor,s=i?i(e):e[o],l=this.tokenizer(s,{fields:[o]}),c=this.pipeline.run(l),u=new I.FieldRef(n,o),d=Object.create(null);this.fieldTermFrequencies[u]=d,this.fieldLengths[u]=0,this.fieldLengths[u]+=c.length;for(var p=0;p<c.length;p++){var f=c[p];if(null==d[f]&&(d[f]=0),d[f]+=1,null==this.invertedIndex[f]){var h=Object.create(null);h._index=this.termIndex,this.termIndex+=1;for(var m=0;m<r.length;m++)h[r[m]]=Object.create(null);this.invertedIndex[f]=h}null==this.invertedIndex[f][o][n]&&(this.invertedIndex[f][o][n]=Object.create(null));for(var g=0;g<this.metadataWhitelist.length;g++){var y=this.metadataWhitelist[g],b=f.metadata[y];null==this.invertedIndex[f][o][n][y]&&(this.invertedIndex[f][o][n][y]=[]),this.invertedIndex[f][o][n][y].push(b)}}}},I.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,n={},r={},a=0;a<t;a++){var o=I.FieldRef.fromString(e[a]),i=o.fieldName;r[i]||(r[i]=0),r[i]+=1,n[i]||(n[i]=0),n[i]+=this.fieldLengths[o]}var s=Object.keys(this._fields);for(a=0;a<s.length;a++){var l=s[a];n[l]=n[l]/r[l]}this.averageFieldLength=n},I.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),n=t.length,r=Object.create(null),a=0;a<n;a++){for(var o=I.FieldRef.fromString(t[a]),i=o.fieldName,s=this.fieldLengths[o],l=new I.Vector,c=this.fieldTermFrequencies[o],u=Object.keys(c),d=u.length,p=this._fields[i].boost||1,f=this._documents[o.docRef].boost||1,h=0;h<d;h++){var m,g,y,b=u[h],v=c[b],x=this.invertedIndex[b]._index;void 0===r[b]?(m=I.idf(this.invertedIndex[b],this.documentCount),r[b]=m):m=r[b],g=m*((this._k1+1)*v)/(this._k1*(1-this._b+this._b*(s/this.averageFieldLength[i]))+v),g*=p,g*=f,y=Math.round(1e3*g)/1e3,l.insert(x,y)}e[o]=l}this.fieldVectors=e},I.Builder.prototype.createTokenSet=function(){this.tokenSet=I.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},I.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new I.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},I.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},I.MatchData=function(e,t,n){for(var r=Object.create(null),a=Object.keys(n||{}),o=0;o<a.length;o++){var i=a[o];r[i]=n[i].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=r)},I.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),n=0;n<t.length;n++){var r=t[n],a=Object.keys(e.metadata[r]);null==this.metadata[r]&&(this.metadata[r]=Object.create(null));for(var o=0;o<a.length;o++){var i=a[o],s=Object.keys(e.metadata[r][i]);null==this.metadata[r][i]&&(this.metadata[r][i]=Object.create(null));for(var l=0;l<s.length;l++){var c=s[l];null==this.metadata[r][i][c]?this.metadata[r][i][c]=e.metadata[r][i][c]:this.metadata[r][i][c]=this.metadata[r][i][c].concat(e.metadata[r][i][c])}}}},I.MatchData.prototype.add=function(e,t,n){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=n);if(t in this.metadata[e])for(var r=Object.keys(n),a=0;a<r.length;a++){var o=r[a];o in this.metadata[e][t]?this.metadata[e][t][o]=this.metadata[e][t][o].concat(n[o]):this.metadata[e][t][o]=n[o]}else this.metadata[e][t]=n},I.Query=function(e){this.clauses=[],this.allFields=e},I.Query.wildcard=new String("*"),I.Query.wildcard.NONE=0,I.Query.wildcard.LEADING=1,I.Query.wildcard.TRAILING=2,I.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},I.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=I.Query.wildcard.NONE),e.wildcard&I.Query.wildcard.LEADING&&e.term.charAt(0)!=I.Query.wildcard&&(e.term="*"+e.term),e.wildcard&I.Query.wildcard.TRAILING&&e.term.slice(-1)!=I.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=I.Query.presence.OPTIONAL),this.clauses.push(e),this},I.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=I.Query.presence.PROHIBITED)return!1;return!0},I.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,I.utils.clone(t))}),this),this;var n=t||{};return n.term=e.toString(),this.clause(n),this},I.QueryParseError=function(e,t,n){this.name="QueryParseError",this.message=e,this.start=t,this.end=n},I.QueryParseError.prototype=new Error,I.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},I.QueryLexer.prototype.run=function(){for(var e=I.QueryLexer.lexText;e;)e=e(this)},I.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,n=this.pos,r=0;r<this.escapeCharPositions.length;r++)n=this.escapeCharPositions[r],e.push(this.str.slice(t,n)),t=n+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},I.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},I.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},I.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return I.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},I.QueryLexer.prototype.width=function(){return this.pos-this.start},I.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},I.QueryLexer.prototype.backup=function(){this.pos-=1},I.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=I.QueryLexer.EOS&&this.backup()},I.QueryLexer.prototype.more=function(){return this.pos<this.length},I.QueryLexer.EOS="EOS",I.QueryLexer.FIELD="FIELD",I.QueryLexer.TERM="TERM",I.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",I.QueryLexer.BOOST="BOOST",I.QueryLexer.PRESENCE="PRESENCE",I.QueryLexer.lexField=function(e){return e.backup(),e.emit(I.QueryLexer.FIELD),e.ignore(),I.QueryLexer.lexText},I.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(I.QueryLexer.TERM)),e.ignore(),e.more())return I.QueryLexer.lexText},I.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(I.QueryLexer.EDIT_DISTANCE),I.QueryLexer.lexText},I.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(I.QueryLexer.BOOST),I.QueryLexer.lexText},I.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(I.QueryLexer.TERM)},I.QueryLexer.termSeparator=I.tokenizer.separator,I.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==I.QueryLexer.EOS)return I.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return I.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(I.QueryLexer.TERM),I.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(I.QueryLexer.TERM),I.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(I.QueryLexer.PRESENCE),I.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(I.QueryLexer.PRESENCE),I.QueryLexer.lexText;if(t.match(I.QueryLexer.termSeparator))return I.QueryLexer.lexTerm}else e.escapeCharacter()}},I.QueryParser=function(e,t){this.lexer=new I.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},I.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=I.QueryParser.parseClause;e;)e=e(this);return this.query},I.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},I.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},I.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},I.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case I.QueryLexer.PRESENCE:return I.QueryParser.parsePresence;case I.QueryLexer.FIELD:return I.QueryParser.parseField;case I.QueryLexer.TERM:return I.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new I.QueryParseError(n,t.start,t.end)}},I.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=I.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=I.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new I.QueryParseError(n,t.start,t.end)}var r=e.peekLexeme();if(null==r){n="expecting term or field, found nothing";throw new I.QueryParseError(n,t.start,t.end)}switch(r.type){case I.QueryLexer.FIELD:return I.QueryParser.parseField;case I.QueryLexer.TERM:return I.QueryParser.parseTerm;default:n="expecting term or field, found '"+r.type+"'";throw new I.QueryParseError(n,r.start,r.end)}}},I.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),r="unrecognised field '"+t.str+"', possible fields: "+n;throw new I.QueryParseError(r,t.start,t.end)}e.currentClause.fields=[t.str];var a=e.peekLexeme();if(null==a){r="expecting term, found nothing";throw new I.QueryParseError(r,t.start,t.end)}if(a.type===I.QueryLexer.TERM)return I.QueryParser.parseTerm;r="expecting term, found '"+a.type+"'";throw new I.QueryParseError(r,a.start,a.end)}},I.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(null!=n)switch(n.type){case I.QueryLexer.TERM:return e.nextClause(),I.QueryParser.parseTerm;case I.QueryLexer.FIELD:return e.nextClause(),I.QueryParser.parseField;case I.QueryLexer.EDIT_DISTANCE:return I.QueryParser.parseEditDistance;case I.QueryLexer.BOOST:return I.QueryParser.parseBoost;case I.QueryLexer.PRESENCE:return e.nextClause(),I.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+n.type+"'";throw new I.QueryParseError(r,n.start,n.end)}else e.nextClause()}},I.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="edit distance must be numeric";throw new I.QueryParseError(r,t.start,t.end)}e.currentClause.editDistance=n;var a=e.peekLexeme();if(null!=a)switch(a.type){case I.QueryLexer.TERM:return e.nextClause(),I.QueryParser.parseTerm;case I.QueryLexer.FIELD:return e.nextClause(),I.QueryParser.parseField;case I.QueryLexer.EDIT_DISTANCE:return I.QueryParser.parseEditDistance;case I.QueryLexer.BOOST:return I.QueryParser.parseBoost;case I.QueryLexer.PRESENCE:return e.nextClause(),I.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+a.type+"'";throw new I.QueryParseError(r,a.start,a.end)}else e.nextClause()}},I.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="boost must be numeric";throw new I.QueryParseError(r,t.start,t.end)}e.currentClause.boost=n;var a=e.peekLexeme();if(null!=a)switch(a.type){case I.QueryLexer.TERM:return e.nextClause(),I.QueryParser.parseTerm;case I.QueryLexer.FIELD:return e.nextClause(),I.QueryParser.parseField;case I.QueryLexer.EDIT_DISTANCE:return I.QueryParser.parseEditDistance;case I.QueryLexer.BOOST:return I.QueryParser.parseBoost;case I.QueryLexer.PRESENCE:return e.nextClause(),I.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+a.type+"'";throw new I.QueryParseError(r,a.start,a.end)}else e.nextClause()}},void 0===(a="function"==typeof(r=function(){return I})?r.call(t,n,t,e):r)||(e.exports=a)}()},3395:(e,t,n)=>{"use strict";n.r(t)},2497:(e,t,n)=>{"use strict";n.r(t)},4865:function(e,t,n){var r,a;r=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function a(e,t,n){return e<t?t:e>n?n:e}function o(e){return 100*(-1+e)}function i(e,t,n){var a;return(a="translate3d"===r.positionUsing?{transform:"translate3d("+o(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+o(e)+"%,0)"}:{"margin-left":o(e)+"%"}).transition="all "+t+"ms "+n,a}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=a(e,r.minimum,1),n.status=1===e?null:e;var o=n.render(!t),c=o.querySelector(r.barSelector),u=r.speed,d=r.easing;return o.offsetWidth,s((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),l(c,i(e,u,d)),1===e?(l(o,{transition:"none",opacity:1}),o.offsetWidth,setTimeout((function(){l(o,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),u)}),u)):setTimeout(t,u)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*a(Math.random()*t,.1,.95)),t=a(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var a,i=t.querySelector(r.barSelector),s=e?"-100":o(n.status||0),c=document.querySelector(r.parent);return l(i,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),r.showSpinner||(a=t.querySelector(r.spinnerSelector))&&f(a),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var s=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,a=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);a--;)if((r=e[a]+o)in n)return r;return t}function a(e){return e=n(e),t[e]||(t[e]=r(e))}function o(e,t,n){t=a(t),e.style[t]=n}return function(e,t){var n,r,a=arguments;if(2==a.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&o(e,n,r);else o(e,a[1],a[2])}}();function c(e,t){return("string"==typeof e?e:p(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=p(e),r=n+t;c(n,t)||(e.className=r.substring(1))}function d(e,t){var n,r=p(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function p(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},void 0===(a="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=a)},4779:(e,t,n)=>{var r=n(5826);e.exports=f,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=p;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,i=0,s="",u=t&&t.delimiter||"/";null!=(n=a.exec(e));){var d=n[0],p=n[1],f=n.index;if(s+=e.slice(i,f),i=f+d.length,p)s+=p[1];else{var h=e[i],m=n[2],g=n[3],y=n[4],b=n[5],v=n[6],x=n[7];s&&(r.push(s),s="");var w=null!=m&&null!=h&&h!==m,k="+"===v||"*"===v,S="?"===v||"*"===v,E=n[2]||u,_=y||b;r.push({name:g||o++,prefix:m||"",delimiter:E,optional:S,repeat:k,partial:w,asterisk:!!x,pattern:_?c(_):x?".*":"[^"+l(E)+"]+?"})}}return i<e.length&&(s+=e.substr(i)),s&&r.push(s),r}function i(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),a=0;a<e.length;a++)"object"==typeof e[a]&&(n[a]=new RegExp("^(?:"+e[a].pattern+")$",d(t)));return function(t,a){for(var o="",s=t||{},l=(a||{}).pretty?i:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var d,p=s[u.name];if(null==p){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(d=l(p[f]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===f?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var a=(n=n||{}).strict,o=!1!==n.end,i="",s=0;s<e.length;s++){var c=e[s];if("string"==typeof c)i+=l(c);else{var p=l(c.prefix),f="(?:"+c.pattern+")";t.push(c),c.repeat&&(f+="(?:"+p+f+")*"),i+=f=c.optional?c.partial?p+"("+f+")?":"(?:"+p+"("+f+"))?":p+"("+f+")"}}var h=l(n.delimiter||"/"),m=i.slice(-h.length)===h;return a||(i=(m?i.slice(0,-h.length):i)+"(?:"+h+"(?=$))?"),i+=o?"$":a&&m?"":"(?="+h+"|$)",u(new RegExp("^"+i,d(n)),t)}function f(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],a=0;a<e.length;a++)r.push(f(e[a],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return p(o(e,n),t,n)}(e,t,n)}},7874:()=>{!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,i=0;i<a.length;i++)o[a[i]]=e.languages.bash[a[i]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism)},4277:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},6854:()=>{!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,a,o){if(n.language===r){var i=n.tokenStack=[];n.code=n.code.replace(a,(function(e){if("function"==typeof o&&!o(e))return e;for(var a,s=i.length;-1!==n.code.indexOf(a=t(r,s));)++s;return i[s]=e,a})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,o=Object.keys(n.tokenStack);!function i(s){for(var l=0;l<s.length&&!(a>=o.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=o[a],d=n.tokenStack[u],p="string"==typeof c?c:c.content,f=t(r,u),h=p.indexOf(f);if(h>-1){++a;var m=p.substring(0,h),g=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),y=p.substring(h+f.length),b=[];m&&b.push.apply(b,i([m])),b.push(g),y&&b.push.apply(b,i([y])),"string"==typeof c?s.splice.apply(s,[l,1].concat(b)):c.content=b}}else c.content&&i(c.content)}return s}(n.tokens)}}}})}(Prism)},1029:()=>{!function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism)},5897:(e,t,n)=>{var r={"./prism-bash":7874,"./prism-json":4277,"./prism-tsx":1029};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=5897},2703:(e,t,n)=>{"use strict";var r=n(414);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4448:(e,t,n)=>{"use strict";var r=n(7294),a=n(3840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},h={};function m(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function v(e,t,n,r){var a=g.hasOwnProperty(t)?g[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!d.call(h,e)||!d.call(f,e)&&(p.test(e)?h[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),T=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),O=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var j=Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=j&&e[j]||e["@@iterator"])?e:null}var F,D=Object.assign;function M(e){if(void 0===F)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var B=!1;function z(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(var a=c.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,s=o.length-1;1<=i&&0<=s&&a[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(a[i]!==o[s]){if(1!==i||1!==s)do{if(i--,0>--s||a[i]!==o[s]){var l="\n"+a[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?M(e):""}function $(e){switch(e.tag){case 5:return M(e.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case _:return"Profiler";case E:return"StrictMode";case N:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case L:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case A:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Z(e){e._valueTracker||(e._valueTracker=function(e){var t=Q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function V(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function W(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function X(e,t){K(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&W(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function oe(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(fe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ye=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Se=null,Ee=null;function _e(e){if(e=va(e)){if("function"!=typeof ke)throw Error(o(280));var t=e.stateNode;t&&(t=wa(t),ke(e.stateNode,e.type,t))}}function Ce(e){Se?Ee?Ee.push(e):Ee=[e]:Se=e}function Te(){if(Se){var e=Se,t=Ee;if(Ee=Se=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function Le(e,t){return e(t)}function Ne(){}var Pe=!1;function Ae(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Le(e,t,n)}finally{Pe=!1,(null!==Se||null!==Ee)&&(Ne(),Te())}}function Oe(e,t){var n=e.stateNode;if(null===n)return null;var r=wa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Re=!1;if(u)try{var je={};Object.defineProperty(je,"passive",{get:function(){Re=!0}}),window.addEventListener("test",je,je),window.removeEventListener("test",je,je)}catch(ue){Re=!1}function Ie(e,t,n,r,a,o,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Fe=!1,De=null,Me=!1,Be=null,ze={onError:function(e){Fe=!0,De=e}};function $e(e,t,n,r,a,o,i,s,l){Fe=!1,De=null,Ie.apply(ze,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(qe(e)!==e)throw Error(o(188))}function Qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return He(a),e;if(i===r)return He(a),t;i=i.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=i;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ze(e):null}function Ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ze(e);if(null!==t)return t;e=e.sibling}return null}var Ve=a.unstable_scheduleCallback,We=a.unstable_cancelCallback,Ge=a.unstable_shouldYield,Ye=a.unstable_requestPaint,Ke=a.unstable_now,Xe=a.unstable_getCurrentPriorityLevel,Je=a.unstable_ImmediatePriority,et=a.unstable_UserBlockingPriority,tt=a.unstable_NormalPriority,nt=a.unstable_LowPriority,rt=a.unstable_IdlePriority,at=null,ot=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=268435455&n;if(0!==i){var s=i&~a;0!==s?r=dt(s):0!==(o&=i)&&(r=dt(o))}else 0!==(i=n&~a)?r=dt(i):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-it(t)),r|=e[n],t&=~a;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var vt=0;function xt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,kt,St,Et,_t,Ct=!1,Tt=[],Lt=null,Nt=null,Pt=null,At=new Map,Ot=new Map,Rt=[],jt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function It(e,t){switch(e){case"focusin":case"focusout":Lt=null;break;case"dragenter":case"dragleave":Nt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":At.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function Ft(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=va(t))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Dt(e){var t=ba(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ue(n)))return e.blockedOn=t,void _t(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Mt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=va(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Bt(e,t,n){Mt(e)&&n.delete(t)}function zt(){Ct=!1,null!==Lt&&Mt(Lt)&&(Lt=null),null!==Nt&&Mt(Nt)&&(Nt=null),null!==Pt&&Mt(Pt)&&(Pt=null),At.forEach(Bt),Ot.forEach(Bt)}function $t(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,zt)))}function qt(e){function t(t){return $t(t,e)}if(0<Tt.length){$t(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Lt&&$t(Lt,e),null!==Nt&&$t(Nt,e),null!==Pt&&$t(Pt,e),At.forEach(t),Ot.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Dt(n),null===n.blockedOn&&Rt.shift()}var Ut=x.ReactCurrentBatchConfig,Ht=!0;function Qt(e,t,n,r){var a=vt,o=Ut.transition;Ut.transition=null;try{vt=1,Vt(e,t,n,r)}finally{vt=a,Ut.transition=o}}function Zt(e,t,n,r){var a=vt,o=Ut.transition;Ut.transition=null;try{vt=4,Vt(e,t,n,r)}finally{vt=a,Ut.transition=o}}function Vt(e,t,n,r){if(Ht){var a=Gt(e,t,n,r);if(null===a)Hr(e,t,r,Wt,n),It(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Lt=Ft(Lt,e,t,n,r,a),!0;case"dragenter":return Nt=Ft(Nt,e,t,n,r,a),!0;case"mouseover":return Pt=Ft(Pt,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return At.set(o,Ft(At.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,Ot.set(o,Ft(Ot.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<jt.indexOf(e)){for(;null!==a;){var o=va(a);if(null!==o&&wt(o),null===(o=Gt(e,t,n,r))&&Hr(e,t,r,Wt,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Wt=null;function Gt(e,t,n,r){if(Wt=null,null!==(e=ba(e=we(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Kt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,a="value"in Kt?Kt.value:Kt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return Jt=a.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=an(cn),dn=D({},cn,{view:0,detail:0}),pn=an(dn),fn=D({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_n,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(on=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=on=0,ln=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=an(fn),mn=an(D({},fn,{dataTransfer:0})),gn=an(D({},dn,{relatedTarget:0})),yn=an(D({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=D({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=an(bn),xn=an(D({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function _n(){return En}var Cn=D({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_n,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=an(Cn),Ln=an(D({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=an(D({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_n})),Pn=an(D({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=D({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),On=an(An),Rn=[9,13,27,32],jn=u&&"CompositionEvent"in window,In=null;u&&"documentMode"in document&&(In=document.documentMode);var Fn=u&&"TextEvent"in window&&!In,Dn=u&&(!jn||In&&8<In&&11>=In),Mn=String.fromCharCode(32),Bn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Qn(e,t,n,r){Ce(r),0<(t=Zr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zn=null,Vn=null;function Wn(e){Mr(e,0)}function Gn(e){if(V(xa(e)))return e}function Yn(e,t){if("change"===e)return t}var Kn=!1;if(u){var Xn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Xn=Jn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Zn&&(Zn.detachEvent("onpropertychange",nr),Vn=Zn=null)}function nr(e){if("value"===e.propertyName&&Gn(Vn)){var t=[];Qn(t,Vn,e,we(e)),Ae(Wn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Vn=n,(Zn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Vn)}function or(e,t){if("click"===e)return Gn(t)}function ir(e,t){if("input"===e||"change"===e)return Gn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!d.call(t,a)||!sr(e[a],t[a]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=W();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=W((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=ur(n,o);var i=ur(n,r);a&&i&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,br=null,vr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==gr||gr!==W(r)||("selectionStart"in(r=gr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&lr(br,r)||(br=r,0<(r=Zr(yr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},Er={};function _r(e){if(Sr[e])return Sr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Sr[e]=n[t];return e}u&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Cr=_r("animationend"),Tr=_r("animationiteration"),Lr=_r("animationstart"),Nr=_r("transitionend"),Pr=new Map,Ar="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Or(e,t){Pr.set(e,t),l(t,[e])}for(var Rr=0;Rr<Ar.length;Rr++){var jr=Ar[Rr];Or(jr.toLowerCase(),"on"+(jr[0].toUpperCase()+jr.slice(1)))}Or(Cr,"onAnimationEnd"),Or(Tr,"onAnimationIteration"),Or(Lr,"onAnimationStart"),Or("dblclick","onDoubleClick"),Or("focusin","onFocus"),Or("focusout","onBlur"),Or(Nr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Fr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,i,s,l,c){if($e.apply(this,arguments),Fe){if(!Fe)throw Error(o(198));var u=De;Fe=!1,De=null,Me||(Me=!0,Be=u)}}(r,t,void 0,e),e.currentTarget=null}function Mr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&a.isPropagationStopped())break e;Dr(a,s,c),o=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,c=s.currentTarget,s=s.listener,l!==o&&a.isPropagationStopped())break e;Dr(a,s,c),o=l}}}if(Me)throw e=Be,Me=!1,Be=null,e}function Br(e,t){var n=t[ma];void 0===n&&(n=t[ma]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[$r]){e[$r]=!0,i.forEach((function(t){"selectionchange"!==t&&(Fr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,zr("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Yt(t)){case 1:var a=Qt;break;case 4:a=Zt;break;default:a=Vt}n=a.bind(null,t,n,e),a=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,a){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;i=i.return}for(;null!==s;){if(null===(i=ba(s)))return;if(5===(l=i.tag)||6===l){r=o=i;continue e}s=s.parentNode}}r=r.return}Ae((function(){var r=o,a=we(n),i=[];e:{var s=Pr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nn;break;case Cr:case Tr:case Lr:l=yn;break;case Nr:l=Pn;break;case"scroll":l=pn;break;case"wheel":l=On;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Ln}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Oe(h,p))&&u.push(Qr(h,m,f)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,a),i.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!ba(c)&&!c[ha])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ba(c):null)&&(c!==(d=qe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Ln,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:xa(l),f=null==c?s:xa(c),(s=new u(m,h+"leave",l,n,a)).target=d,s.relatedTarget=f,m=null,ba(a)===r&&((u=new u(p,h+"enter",c,n,a)).target=f,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,h=0,f=u=l;f;f=Vr(f))h++;for(f=0,m=p;m;m=Vr(m))f++;for(;0<h-f;)u=Vr(u),h--;for(;0<f-h;)p=Vr(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=Vr(u),p=Vr(p)}u=null}else u=null;null!==l&&Wr(i,s,l,u,!1),null!==c&&null!==d&&Wr(i,d,c,u,!0)}if("select"===(l=(s=r?xa(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Yn;else if(Hn(s))if(Kn)g=ir;else{g=ar;var y=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Qn(i,g,n,a):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ee(s,"number",s.value)),y=r?xa(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,br=null);break;case"focusout":br=yr=gr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,xr(i,n,a);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(i,n,a)}var b;if(jn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else qn?zn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Dn&&"ko"!==n.locale&&(qn||"onCompositionStart"!==v?"onCompositionEnd"===v&&qn&&(b=en()):(Xt="value"in(Kt=a)?Kt.value:Kt.textContent,qn=!0)),0<(y=Zr(r,v)).length&&(v=new xn(v,e,null,n,a),i.push({event:v,listeners:y}),b?v.data=b:null!==(b=$n(n))&&(v.data=b))),(b=Fn?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(Bn=!0,Mn);case"textInput":return(e=t.data)===Mn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!jn&&zn(e,t)?(e=en(),Jt=Xt=Kt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Zr(r,"onBeforeInput")).length&&(a=new xn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=b))}Mr(i,t)}))}function Qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Oe(e,n))&&r.unshift(Qr(e,o,a)),null!=(o=Oe(e,t))&&r.push(Qr(e,o,a))),e=e.return}return r}function Vr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,a?null!=(l=Oe(n,o))&&i.unshift(Qr(n,l,s)):a||null!=(l=Oe(n,o))&&i.push(Qr(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Gr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Yr,"")}function Xr(e,t,n){if(t=Kr(t),Kr(e)!==t&&n)throw Error(o(425))}function Jr(){}var ea=null,ta=null;function na(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ra="function"==typeof setTimeout?setTimeout:void 0,aa="function"==typeof clearTimeout?clearTimeout:void 0,oa="function"==typeof Promise?Promise:void 0,ia="function"==typeof queueMicrotask?queueMicrotask:void 0!==oa?function(e){return oa.resolve(null).then(e).catch(sa)}:ra;function sa(e){setTimeout((function(){throw e}))}function la(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);qt(t)}function ca(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ua(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var da=Math.random().toString(36).slice(2),pa="__reactFiber$"+da,fa="__reactProps$"+da,ha="__reactContainer$"+da,ma="__reactEvents$"+da,ga="__reactListeners$"+da,ya="__reactHandles$"+da;function ba(e){var t=e[pa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ha]||n[pa]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ua(e);null!==e;){if(n=e[pa])return n;e=ua(e)}return t}n=(e=n).parentNode}return null}function va(e){return!(e=e[pa]||e[ha])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wa(e){return e[fa]||null}var ka=[],Sa=-1;function Ea(e){return{current:e}}function _a(e){0>Sa||(e.current=ka[Sa],ka[Sa]=null,Sa--)}function Ca(e,t){Sa++,ka[Sa]=e.current,e.current=t}var Ta={},La=Ea(Ta),Na=Ea(!1),Pa=Ta;function Aa(e,t){var n=e.type.contextTypes;if(!n)return Ta;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Oa(e){return null!=(e=e.childContextTypes)}function Ra(){_a(Na),_a(La)}function ja(e,t,n){if(La.current!==Ta)throw Error(o(168));Ca(La,t),Ca(Na,n)}function Ia(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(o(108,U(e)||"Unknown",a));return D({},n,r)}function Fa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ta,Pa=La.current,Ca(La,e),Ca(Na,Na.current),!0}function Da(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ia(e,t,Pa),r.__reactInternalMemoizedMergedChildContext=e,_a(Na),_a(La),Ca(La,e)):_a(Na),Ca(Na,n)}var Ma=null,Ba=!1,za=!1;function $a(e){null===Ma?Ma=[e]:Ma.push(e)}function qa(){if(!za&&null!==Ma){za=!0;var e=0,t=vt;try{var n=Ma;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ma=null,Ba=!1}catch(a){throw null!==Ma&&(Ma=Ma.slice(e+1)),Ve(Je,qa),a}finally{vt=t,za=!1}}return null}var Ua=[],Ha=0,Qa=null,Za=0,Va=[],Wa=0,Ga=null,Ya=1,Ka="";function Xa(e,t){Ua[Ha++]=Za,Ua[Ha++]=Qa,Qa=e,Za=t}function Ja(e,t,n){Va[Wa++]=Ya,Va[Wa++]=Ka,Va[Wa++]=Ga,Ga=e;var r=Ya;e=Ka;var a=32-it(r)-1;r&=~(1<<a),n+=1;var o=32-it(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Ya=1<<32-it(t)+a|n<<a|r,Ka=o+e}else Ya=1<<o|n<<a|r,Ka=e}function eo(e){null!==e.return&&(Xa(e,1),Ja(e,1,0))}function to(e){for(;e===Qa;)Qa=Ua[--Ha],Ua[Ha]=null,Za=Ua[--Ha],Ua[Ha]=null;for(;e===Ga;)Ga=Va[--Wa],Va[Wa]=null,Ka=Va[--Wa],Va[Wa]=null,Ya=Va[--Wa],Va[Wa]=null}var no=null,ro=null,ao=!1,oo=null;function io(e,t){var n=Oc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ca(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ga?{id:Ya,overflow:Ka}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Oc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function co(e){if(ao){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ca(n.nextSibling);var r=no;t&&so(e,t)?io(r,n):(e.flags=-4097&e.flags|2,ao=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,ao=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function po(e){if(e!==no)return!1;if(!ao)return uo(e),ao=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!na(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw fo(),Error(o(418));for(;t;)io(e,t),t=ca(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ca(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ca(e.stateNode.nextSibling):null;return!0}function fo(){for(var e=ro;e;)e=ca(e.nextSibling)}function ho(){ro=no=null,ao=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=x.ReactCurrentBatchConfig;function yo(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var bo=Ea(null),vo=null,xo=null,wo=null;function ko(){wo=xo=vo=null}function So(e){var t=bo.current;_a(bo),e._currentValue=t}function Eo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _o(e,t){vo=e,wo=xo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(xs=!0),e.firstContext=null)}function Co(e){var t=e._currentValue;if(wo!==e)if(e={context:e,memoizedValue:t,next:null},null===xo){if(null===vo)throw Error(o(308));xo=e,vo.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var To=null;function Lo(e){null===To?To=[e]:To.push(e)}function No(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Lo(t)):(n.next=a.next,a.next=n),t.interleaved=n,Po(e,r)}function Po(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ao=!1;function Oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ro(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function jo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Io(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Nl)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Po(e,n)}return null===(a=r.interleaved)?(t.next=t,Lo(r)):(t.next=a.next,a.next=t),r.interleaved=t,Po(e,n)}function Fo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Do(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Mo(e,t,n,r){var a=e.updateQueue;Ao=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?o=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=a.baseState;for(i=0,u=c=l=null,s=o;;){var p=s.lane,f=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=D({},d,p);break e;case 2:Ao=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=a.effects)?a.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,i|=p;if(null===(s=s.next)){if(null===(s=a.shared.pending))break;s=(p=s).next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}if(null===u&&(l=d),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=u,null!==(t=a.shared.interleaved)){a=t;do{i|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);Dl|=i,e.lanes=i,e.memoizedState=d}}function Bo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(o(191,a));a.call(r)}}}var zo=(new r.Component).refs;function $o(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var qo={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),a=nc(e),o=jo(r,a);o.payload=t,null!=n&&(o.callback=n),null!==(t=Io(e,o,a))&&(rc(t,e,a,r),Fo(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),a=nc(e),o=jo(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Io(e,o,a))&&(rc(t,e,a,r),Fo(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),a=jo(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Io(e,a,r))&&(rc(t,e,r,n),Fo(t,e,r))}};function Uo(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(a,o))}function Ho(e,t,n){var r=!1,a=Ta,o=t.contextType;return"object"==typeof o&&null!==o?o=Co(o):(a=Oa(t)?Pa:La.current,o=(r=null!=(r=t.contextTypes))?Aa(e,a):Ta),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=qo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Qo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&qo.enqueueReplaceState(t,t.state,null)}function Zo(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=zo,Oo(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=Co(o):(o=Oa(t)?Pa:La.current,a.context=Aa(e,o)),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&($o(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&qo.enqueueReplaceState(a,a.state,null),Mo(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function Vo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var a=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=a.refs;t===zo&&(t=a.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Wo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Go(e){return(0,e._init)(e._payload)}function Yo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=jc(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Mc(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===O&&Go(o)===t.type)?((r=a(t,n.props)).ref=Vo(e,t,n),r.return=e,r):((r=Ic(n.type,n.key,n.props,null,e.mode,r)).ref=Vo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Bc(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Fc(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Mc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Ic(t.type,t.key,t.props,null,e.mode,n)).ref=Vo(e,null,t),n.return=e,n;case k:return(t=Bc(t,e.mode,n)).return=e,t;case O:return p(e,(0,t._init)(t._payload),n)}if(te(t)||I(t))return(t=Fc(t,e.mode,n,null)).return=e,t;Wo(e,t)}return null}function f(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===a?c(e,t,n,r):null;case k:return n.key===a?u(e,t,n,r):null;case O:return f(e,t,(a=n._init)(n._payload),r)}if(te(n)||I(n))return null!==a?null:d(e,t,n,r,null);Wo(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case O:return h(e,t,n,(0,r._init)(r._payload),a)}if(te(r)||I(r))return d(t,e=e.get(n)||null,r,a,null);Wo(t,r)}return null}function m(a,o,s,l){for(var c=null,u=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=f(a,d,s[m],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(a,d),o=i(y,o,m),null===u?c=y:u.sibling=y,u=y,d=g}if(m===s.length)return n(a,d),ao&&Xa(a,m),c;if(null===d){for(;m<s.length;m++)null!==(d=p(a,s[m],l))&&(o=i(d,o,m),null===u?c=d:u.sibling=d,u=d);return ao&&Xa(a,m),c}for(d=r(a,d);m<s.length;m++)null!==(g=h(d,a,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=i(g,o,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(a,e)})),ao&&Xa(a,m),c}function g(a,s,l,c){var u=I(l);if("function"!=typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,m=s,g=s=0,y=null,b=l.next();null!==m&&!b.done;g++,b=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var v=f(a,m,b.value,c);if(null===v){null===m&&(m=y);break}e&&m&&null===v.alternate&&t(a,m),s=i(v,s,g),null===d?u=v:d.sibling=v,d=v,m=y}if(b.done)return n(a,m),ao&&Xa(a,g),u;if(null===m){for(;!b.done;g++,b=l.next())null!==(b=p(a,b.value,c))&&(s=i(b,s,g),null===d?u=b:d.sibling=b,d=b);return ao&&Xa(a,g),u}for(m=r(a,m);!b.done;g++,b=l.next())null!==(b=h(m,a,g,b.value,c))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),s=i(b,s,g),null===d?u=b:d.sibling=b,d=b);return e&&m.forEach((function(e){return t(a,e)})),ao&&Xa(a,g),u}return function e(r,o,i,l){if("object"==typeof i&&null!==i&&i.type===S&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case w:e:{for(var c=i.key,u=o;null!==u;){if(u.key===c){if((c=i.type)===S){if(7===u.tag){n(r,u.sibling),(o=a(u,i.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===O&&Go(c)===u.type){n(r,u.sibling),(o=a(u,i.props)).ref=Vo(r,u,i),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}i.type===S?((o=Fc(i.props.children,r.mode,l,i.key)).return=r,r=o):((l=Ic(i.type,i.key,i.props,null,r.mode,l)).ref=Vo(r,o,i),l.return=r,r=l)}return s(r);case k:e:{for(u=i.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(r,o.sibling),(o=a(o,i.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Bc(i,r.mode,l)).return=r,r=o}return s(r);case O:return e(r,o,(u=i._init)(i._payload),l)}if(te(i))return m(r,o,i,l);if(I(i))return g(r,o,i,l);Wo(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==o&&6===o.tag?(n(r,o.sibling),(o=a(o,i)).return=r,r=o):(n(r,o),(o=Mc(i,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var Ko=Yo(!0),Xo=Yo(!1),Jo={},ei=Ea(Jo),ti=Ea(Jo),ni=Ea(Jo);function ri(e){if(e===Jo)throw Error(o(174));return e}function ai(e,t){switch(Ca(ni,t),Ca(ti,e),Ca(ei,Jo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_a(ei),Ca(ei,t)}function oi(){_a(ei),_a(ti),_a(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=le(t,e.type);t!==n&&(Ca(ti,e),Ca(ei,n))}function si(e){ti.current===e&&(_a(ei),_a(ti))}var li=Ea(0);function ci(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function di(){for(var e=0;e<ui.length;e++)ui[e]._workInProgressVersionPrimary=null;ui.length=0}var pi=x.ReactCurrentDispatcher,fi=x.ReactCurrentBatchConfig,hi=0,mi=null,gi=null,yi=null,bi=!1,vi=!1,xi=0,wi=0;function ki(){throw Error(o(321))}function Si(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Ei(e,t,n,r,a,i){if(hi=i,mi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pi.current=null===e||null===e.memoizedState?ss:ls,e=n(r,a),vi){i=0;do{if(vi=!1,xi=0,25<=i)throw Error(o(301));i+=1,yi=gi=null,t.updateQueue=null,pi.current=cs,e=n(r,a)}while(vi)}if(pi.current=is,t=null!==gi&&null!==gi.next,hi=0,yi=gi=mi=null,bi=!1,t)throw Error(o(300));return e}function _i(){var e=0!==xi;return xi=0,e}function Ci(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===yi?mi.memoizedState=yi=e:yi=yi.next=e,yi}function Ti(){if(null===gi){var e=mi.alternate;e=null!==e?e.memoizedState:null}else e=gi.next;var t=null===yi?mi.memoizedState:yi.next;if(null!==t)yi=t,gi=e;else{if(null===e)throw Error(o(310));e={memoizedState:(gi=e).memoizedState,baseState:gi.baseState,baseQueue:gi.baseQueue,queue:gi.queue,next:null},null===yi?mi.memoizedState=yi=e:yi=yi.next=e}return yi}function Li(e,t){return"function"==typeof t?t(e):t}function Ni(e){var t=Ti(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=gi,a=r.baseQueue,i=n.pending;if(null!==i){if(null!==a){var s=a.next;a.next=i.next,i.next=s}r.baseQueue=a=i,n.pending=null}if(null!==a){i=a.next,r=r.baseState;var l=s=null,c=null,u=i;do{var d=u.lane;if((hi&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=r):c=c.next=p,mi.lanes|=d,Dl|=d}u=u.next}while(null!==u&&u!==i);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(xs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{i=a.lane,mi.lanes|=i,Dl|=i,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Pi(e){var t=Ti(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{i=e(i,s.action),s=s.next}while(s!==a);sr(i,t.memoizedState)||(xs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ai(){}function Oi(e,t){var n=mi,r=Ti(),a=t(),i=!sr(r.memoizedState,a);if(i&&(r.memoizedState=a,xs=!0),r=r.queue,Hi(Ii.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==yi&&1&yi.memoizedState.tag){if(n.flags|=2048,Bi(9,ji.bind(null,n,r,a,t),void 0,null),null===Pl)throw Error(o(349));0!=(30&hi)||Ri(n,t,a)}return a}function Ri(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ji(e,t,n,r){t.value=n,t.getSnapshot=r,Fi(t)&&Di(e)}function Ii(e,t,n){return n((function(){Fi(t)&&Di(e)}))}function Fi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Di(e){var t=Po(e,1);null!==t&&rc(t,e,1,-1)}function Mi(e){var t=Ci();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Li,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,mi,e),[t.memoizedState,e]}function Bi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function zi(){return Ti().memoizedState}function $i(e,t,n,r){var a=Ci();mi.flags|=e,a.memoizedState=Bi(1|t,n,void 0,void 0===r?null:r)}function qi(e,t,n,r){var a=Ti();r=void 0===r?null:r;var o=void 0;if(null!==gi){var i=gi.memoizedState;if(o=i.destroy,null!==r&&Si(r,i.deps))return void(a.memoizedState=Bi(t,n,o,r))}mi.flags|=e,a.memoizedState=Bi(1|t,n,o,r)}function Ui(e,t){return $i(8390656,8,e,t)}function Hi(e,t){return qi(2048,8,e,t)}function Qi(e,t){return qi(4,2,e,t)}function Zi(e,t){return qi(4,4,e,t)}function Vi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Wi(e,t,n){return n=null!=n?n.concat([e]):null,qi(4,4,Vi.bind(null,t,e),n)}function Gi(){}function Yi(e,t){var n=Ti();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ki(e,t){var n=Ti();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xi(e,t,n){return 0==(21&hi)?(e.baseState&&(e.baseState=!1,xs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),mi.lanes|=n,Dl|=n,e.baseState=!0),t)}function Ji(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=fi.transition;fi.transition={};try{e(!1),t()}finally{vt=n,fi.transition=r}}function es(){return Ti().memoizedState}function ts(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))as(t,n);else if(null!==(n=No(e,t,n,r))){rc(n,e,r,tc()),os(n,t,r)}}function ns(e,t,n){var r=nc(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))as(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=o(i,n);if(a.hasEagerState=!0,a.eagerState=s,sr(s,i)){var l=t.interleaved;return null===l?(a.next=a,Lo(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}}catch(c){}null!==(n=No(e,t,a,r))&&(rc(n,e,r,a=tc()),os(n,t,r))}}function rs(e){var t=e.alternate;return e===mi||null!==t&&t===mi}function as(e,t){vi=bi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var is={readContext:Co,useCallback:ki,useContext:ki,useEffect:ki,useImperativeHandle:ki,useInsertionEffect:ki,useLayoutEffect:ki,useMemo:ki,useReducer:ki,useRef:ki,useState:ki,useDebugValue:ki,useDeferredValue:ki,useTransition:ki,useMutableSource:ki,useSyncExternalStore:ki,useId:ki,unstable_isNewReconciler:!1},ss={readContext:Co,useCallback:function(e,t){return Ci().memoizedState=[e,void 0===t?null:t],e},useContext:Co,useEffect:Ui,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,$i(4194308,4,Vi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $i(4194308,4,e,t)},useInsertionEffect:function(e,t){return $i(4,2,e,t)},useMemo:function(e,t){var n=Ci();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ci();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,mi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ci().memoizedState=e},useState:Mi,useDebugValue:Gi,useDeferredValue:function(e){return Ci().memoizedState=e},useTransition:function(){var e=Mi(!1),t=e[0];return e=Ji.bind(null,e[1]),Ci().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mi,a=Ci();if(ao){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Pl)throw Error(o(349));0!=(30&hi)||Ri(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Ui(Ii.bind(null,r,i,e),[e]),r.flags|=2048,Bi(9,ji.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ci(),t=Pl.identifierPrefix;if(ao){var n=Ka;t=":"+t+"R"+(n=(Ya&~(1<<32-it(Ya)-1)).toString(32)+n),0<(n=xi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:Co,useCallback:Yi,useContext:Co,useEffect:Hi,useImperativeHandle:Wi,useInsertionEffect:Qi,useLayoutEffect:Zi,useMemo:Ki,useReducer:Ni,useRef:zi,useState:function(){return Ni(Li)},useDebugValue:Gi,useDeferredValue:function(e){return Xi(Ti(),gi.memoizedState,e)},useTransition:function(){return[Ni(Li)[0],Ti().memoizedState]},useMutableSource:Ai,useSyncExternalStore:Oi,useId:es,unstable_isNewReconciler:!1},cs={readContext:Co,useCallback:Yi,useContext:Co,useEffect:Hi,useImperativeHandle:Wi,useInsertionEffect:Qi,useLayoutEffect:Zi,useMemo:Ki,useReducer:Pi,useRef:zi,useState:function(){return Pi(Li)},useDebugValue:Gi,useDeferredValue:function(e){var t=Ti();return null===gi?t.memoizedState=e:Xi(t,gi.memoizedState,e)},useTransition:function(){return[Pi(Li)[0],Ti().memoizedState]},useMutableSource:Ai,useSyncExternalStore:Oi,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:a,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ps(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=jo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ql||(Ql=!0,Zl=r),ps(0,t)},n}function ms(e,t,n){(n=jo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){ps(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){ps(0,t),"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function ys(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bs(e,t,n,r,a){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=jo(-1,1)).tag=2,Io(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var vs=x.ReactCurrentOwner,xs=!1;function ws(e,t,n,r){t.child=null===e?Xo(t,null,n,r):Ko(t,e.child,n,r)}function ks(e,t,n,r,a){n=n.render;var o=t.ref;return _o(t,a),r=Ei(e,t,n,r,o,a),n=_i(),null===e||xs?(ao&&n&&eo(t),t.flags|=1,ws(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Qs(e,t,a))}function Ss(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||Rc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ic(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Es(e,t,o,r,a))}if(o=e.child,0==(e.lanes&a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)return Qs(e,t,a)}return t.flags|=1,(e=jc(o,r)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(xs=!1,t.pendingProps=r=o,0==(e.lanes&a))return t.lanes=e.lanes,Qs(e,t,a);0!=(131072&e.flags)&&(xs=!0)}}return Ts(e,t,n,r,a)}function _s(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ca(jl,Rl),Rl|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ca(jl,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ca(jl,Rl),Rl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ca(jl,Rl),Rl|=r;return ws(e,t,a,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,r,a){var o=Oa(n)?Pa:La.current;return o=Aa(t,o),_o(t,a),n=Ei(e,t,n,r,o,a),r=_i(),null===e||xs?(ao&&r&&eo(t),t.flags|=1,ws(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Qs(e,t,a))}function Ls(e,t,n,r,a){if(Oa(n)){var o=!0;Fa(t)}else o=!1;if(_o(t,a),null===t.stateNode)Hs(e,t),Ho(t,n,r),Zo(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=n.contextType;"object"==typeof c&&null!==c?c=Co(c):c=Aa(t,c=Oa(n)?Pa:La.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||l!==c)&&Qo(t,i,r,c),Ao=!1;var p=t.memoizedState;i.state=p,Mo(t,r,i,a),l=t.memoizedState,s!==r||p!==l||Na.current||Ao?("function"==typeof u&&($o(t,n,u,r),l=t.memoizedState),(s=Ao||Uo(t,n,s,r,p,l,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ro(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:yo(t.type,s),i.props=c,d=t.pendingProps,p=i.context,"object"==typeof(l=n.contextType)&&null!==l?l=Co(l):l=Aa(t,l=Oa(n)?Pa:La.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||p!==l)&&Qo(t,i,r,l),Ao=!1,p=t.memoizedState,i.state=p,Mo(t,r,i,a);var h=t.memoizedState;s!==d||p!==h||Na.current||Ao?("function"==typeof f&&($o(t,n,f,r),h=t.memoizedState),(c=Ao||Uo(t,n,c,r,p,h,l)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=l,r=c):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ns(e,t,n,r,o,a)}function Ns(e,t,n,r,a,o){Cs(e,t);var i=0!=(128&t.flags);if(!r&&!i)return a&&Da(t,n,!1),Qs(e,t,o);r=t.stateNode,vs.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ko(t,e.child,null,o),t.child=Ko(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,a&&Da(t,n,!0),t.child}function Ps(e){var t=e.stateNode;t.pendingContext?ja(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ja(0,t.context,!1),ai(e,t.containerInfo)}function As(e,t,n,r,a){return ho(),mo(a),t.flags|=256,ws(e,t,n,r),t.child}var Os,Rs,js,Is,Fs={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ms(e,t,n){var r,a=t.pendingProps,i=li.current,s=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Ca(li,1&i),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=a.children,e=a.fallback,s?(a=t.mode,s=t.child,l={mode:"hidden",children:l},0==(1&a)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Dc(l,a,0,null),e=Fc(e,a,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ds(n),t.memoizedState=Fs,e):Bs(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,a,i,s){if(n)return 256&t.flags?(t.flags&=-257,zs(e,t,s,r=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,a=t.mode,r=Dc({mode:"visible",children:r.children},a,0,null),(i=Fc(i,a,s,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&Ko(t,e.child,null,s),t.child.memoizedState=Ds(s),t.memoizedState=Fs,i);if(0==(1&t.mode))return zs(e,t,s,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var l=r.dgst;return r=l,zs(e,t,s,r=ds(i=Error(o(419)),r,void 0))}if(l=0!=(s&e.childLanes),xs||l){if(null!==(r=Pl)){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!=(a&(r.suspendedLanes|s))?0:a)&&a!==i.retryLane&&(i.retryLane=a,Po(e,a),rc(r,e,a,-1))}return gc(),zs(e,t,s,r=ds(Error(o(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Lc.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,ro=ca(a.nextSibling),no=t,ao=!0,oo=null,null!==e&&(Va[Wa++]=Ya,Va[Wa++]=Ka,Va[Wa++]=Ga,Ya=e.id,Ka=e.overflow,Ga=t),t=Bs(t,r.children),t.flags|=4096,t)}(e,t,l,a,r,i,n);if(s){s=a.fallback,l=t.mode,r=(i=e.child).sibling;var c={mode:"hidden",children:a.children};return 0==(1&l)&&t.child!==i?((a=t.child).childLanes=0,a.pendingProps=c,t.deletions=null):(a=jc(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==r?s=jc(r,s):(s=Fc(s,l,n,null)).flags|=2,s.return=t,a.return=t,a.sibling=s,t.child=a,a=s,s=t.child,l=null===(l=e.child.memoizedState)?Ds(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Fs,a}return e=(s=e.child).sibling,a=jc(s,{mode:"visible",children:a.children}),0==(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function Bs(e,t){return(t=Dc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zs(e,t,n,r){return null!==r&&mo(r),Ko(t,e.child,null,n),(e=Bs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function $s(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Eo(e.return,t,n)}function qs(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Us(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),0!=(2&(r=li.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$s(e,n,t);else if(19===e.tag)$s(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ca(li,r),0==(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===ci(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),qs(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===ci(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}qs(t,!0,n,null,o);break;case"together":qs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hs(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Dl|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=jc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=jc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zs(e,t){if(!ao)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ws(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:case 17:return Oa(t.type)&&Ra(),Vs(t),null;case 3:return r=t.stateNode,oi(),_a(Na),_a(La),di(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(po(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==oo&&(sc(oo),oo=null))),Rs(e,t),Vs(t),null;case 5:si(t);var a=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)js(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Vs(t),null}if(e=ri(ei.current),po(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[pa]=t,r[fa]=i,e=0!=(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(a=0;a<Ir.length;a++)Br(Ir[a],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":Y(r,i),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Br("invalid",r);break;case"textarea":ae(r,i),Br("invalid",r)}for(var l in be(n,i),a=null,i)if(i.hasOwnProperty(l)){var c=i[l];"children"===l?"string"==typeof c?r.textContent!==c&&(!0!==i.suppressHydrationWarning&&Xr(r.textContent,c,e),a=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Xr(r.textContent,c,e),a=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Br("scroll",r)}switch(n){case"input":Z(r),J(r,i,!0);break;case"textarea":Z(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Jr)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[pa]=t,e[fa]=r,Os(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(n,r),n){case"dialog":Br("cancel",e),Br("close",e),a=r;break;case"iframe":case"object":case"embed":Br("load",e),a=r;break;case"video":case"audio":for(a=0;a<Ir.length;a++)Br(Ir[a],e);a=r;break;case"source":Br("error",e),a=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),a=r;break;case"details":Br("toggle",e),a=r;break;case"input":Y(e,r),a=G(e,r),Br("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=D({},r,{value:void 0}),Br("invalid",e);break;case"textarea":ae(e,r),a=re(e,r),Br("invalid",e)}for(i in be(n,a),c=a)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?ge(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===i?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=u&&"onScroll"===i&&Br("scroll",e):null!=u&&v(e,i,u,l))}switch(n){case"input":Z(e),J(e,r,!1);break;case"textarea":Z(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vs(t),null;case 6:if(e&&null!=t.stateNode)Is(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=ri(ni.current),ri(ei.current),po(t)){if(r=t.stateNode,n=t.memoizedProps,r[pa]=t,(i=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Xr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[pa]=t,t.stateNode=r}return Vs(t),null;case 13:if(_a(li),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ao&&null!==ro&&0!=(1&t.mode)&&0==(128&t.flags))fo(),ho(),t.flags|=98560,i=!1;else if(i=po(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(o(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(o(317));i[pa]=t}else ho(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vs(t),i=!1}else null!==oo&&(sc(oo),oo=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&li.current)?0===Il&&(Il=3):gc())),null!==t.updateQueue&&(t.flags|=4),Vs(t),null);case 4:return oi(),Rs(e,t),null===e&&qr(t.stateNode.containerInfo),Vs(t),null;case 10:return So(t.type._context),Vs(t),null;case 19:if(_a(li),null===(i=t.memoizedState))return Vs(t),null;if(r=0!=(128&t.flags),null===(l=i.rendering))if(r)Zs(i,!1);else{if(0!==Il||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ci(e))){for(t.flags|=128,Zs(i,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ca(li,1&li.current|2),t.child}e=e.sibling}null!==i.tail&&Ke()>Ul&&(t.flags|=128,r=!0,Zs(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ci(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Zs(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!ao)return Vs(t),null}else 2*Ke()-i.renderingStartTime>Ul&&1073741824!==n&&(t.flags|=128,r=!0,Zs(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=i.last)?n.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ke(),t.sibling=null,n=li.current,Ca(li,r?1&n|2:1&n),t):(Vs(t),null);case 22:case 23:return pc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Rl)&&(Vs(t),6&t.subtreeFlags&&(t.flags|=8192)):Vs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Gs(e,t){switch(to(t),t.tag){case 1:return Oa(t.type)&&Ra(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oi(),_a(Na),_a(La),di(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return si(t),null;case 13:if(_a(li),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _a(li),null;case 4:return oi(),null;case 10:return So(t.type._context),null;case 22:case 23:return pc(),null;default:return null}}Os=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rs=function(){},js=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,ri(ei.current);var o,i=null;switch(n){case"input":a=G(e,a),r=G(e,r),i=[];break;case"select":a=D({},a,{value:void 0}),r=D({},r,{value:void 0}),i=[];break;case"textarea":a=re(e,a),r=re(e,r),i=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(u in be(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u){var l=a[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(i||(i=[]),i.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(i=i||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(i=i||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Br("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Is=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Ks=!1,Xs="function"==typeof WeakSet?WeakSet:Set,Js=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){_c(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){_c(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&tl(t,n,o)}a=a.next}while(a!==r)}}function al(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pa],delete t[fa],delete t[ma],delete t[ga],delete t[ya])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var dl=null,pl=!1;function fl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(at,n)}catch(s){}switch(n.tag){case 5:Ks||el(n,t);case 6:var r=dl,a=pl;dl=null,fl(e,t,n),pl=a,null!==(dl=r)&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?la(e.parentNode,n):1===e.nodeType&&la(e,n),qt(e)):la(dl,n.stateNode));break;case 4:r=dl,a=pl,dl=n.stateNode.containerInfo,pl=!0,fl(e,t,n),dl=r,pl=a;break;case 0:case 11:case 14:case 15:if(!Ks&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,void 0!==i&&(0!=(2&o)||0!=(4&o))&&tl(n,t,i),a=a.next}while(a!==r)}fl(e,t,n);break;case 1:if(!Ks&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){_c(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ks=(r=Ks)||null!==n.memoizedState,fl(e,t,n),Ks=r):fl(e,t,n);break;default:fl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach((function(t){var r=Nc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,pl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,pl=!0;break e}l=l.return}if(null===dl)throw Error(o(160));hl(i,s,a),dl=null,pl=!1;var c=a.alternate;null!==c&&(c.return=null),a.return=null}catch(u){_c(a,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)yl(t,e),t=t.sibling}function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),bl(e),4&r){try{rl(3,e,e.return),al(3,e)}catch(g){_c(e,e.return,g)}try{rl(5,e,e.return)}catch(g){_c(e,e.return,g)}}break;case 1:gl(t,e),bl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(gl(t,e),bl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var a=e.stateNode;try{pe(a,"")}catch(g){_c(e,e.return,g)}}if(4&r&&null!=(a=e.stateNode)){var i=e.memoizedProps,s=null!==n?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===i.type&&null!=i.name&&K(a,i),ve(l,s);var u=ve(l,i);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?ge(a,p):"dangerouslySetInnerHTML"===d?de(a,p):"children"===d?pe(a,p):v(a,d,p,u)}switch(l){case"input":X(a,i);break;case"textarea":oe(a,i);break;case"select":var f=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?ne(a,!!i.multiple,h,!1):f!==!!i.multiple&&(null!=i.defaultValue?ne(a,!!i.multiple,i.defaultValue,!0):ne(a,!!i.multiple,i.multiple?[]:"",!1))}a[fa]=i}catch(g){_c(e,e.return,g)}}break;case 6:if(gl(t,e),bl(e),4&r){if(null===e.stateNode)throw Error(o(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(g){_c(e,e.return,g)}}break;case 3:if(gl(t,e),bl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(g){_c(e,e.return,g)}break;case 4:default:gl(t,e),bl(e);break;case 13:gl(t,e),bl(e),8192&(a=e.child).flags&&(i=null!==a.memoizedState,a.stateNode.isHidden=i,!i||null!==a.alternate&&null!==a.alternate.memoizedState||(ql=Ke())),4&r&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ks=(u=Ks)||d,gl(t,e),Ks=u):gl(t,e),bl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Js=e,d=e.child;null!==d;){for(p=Js=d;null!==Js;){switch(h=(f=Js).child,f.tag){case 0:case 11:case 14:case 15:rl(4,f,f.return);break;case 1:el(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){_c(r,n,g)}}break;case 5:el(f,f.return);break;case 22:if(null!==f.memoizedState){kl(p);continue}}null!==h?(h.return=f,Js=h):kl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{a=p.stateNode,u?"function"==typeof(i=a.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=p.stateNode,s=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){_c(e,e.return,g)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(g){_c(e,e.return,g)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:gl(t,e),bl(e),4&r&&ml(e);case 21:}}function bl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(pe(a,""),r.flags&=-33),ul(e,ll(e),a);break;case 3:case 4:var i=r.stateNode.containerInfo;cl(e,ll(e),i);break;default:throw Error(o(161))}}catch(s){_c(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Js=e,xl(e,t,n)}function xl(e,t,n){for(var r=0!=(1&e.mode);null!==Js;){var a=Js,o=a.child;if(22===a.tag&&r){var i=null!==a.memoizedState||Ys;if(!i){var s=a.alternate,l=null!==s&&null!==s.memoizedState||Ks;s=Ys;var c=Ks;if(Ys=i,(Ks=l)&&!c)for(Js=a;null!==Js;)l=(i=Js).child,22===i.tag&&null!==i.memoizedState?Sl(a):null!==l?(l.return=i,Js=l):Sl(a);for(;null!==o;)Js=o,xl(o,t,n),o=o.sibling;Js=a,Ys=s,Ks=c}wl(e)}else 0!=(8772&a.subtreeFlags)&&null!==o?(o.return=a,Js=o):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ks||al(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ks)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:yo(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Bo(t,i,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Bo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&qt(p)}}}break;default:throw Error(o(163))}Ks||512&t.flags&&ol(t)}catch(f){_c(t,t.return,f)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function kl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{al(4,t)}catch(l){_c(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(l){_c(t,a,l)}}var o=t.return;try{ol(t)}catch(l){_c(t,o,l)}break;case 5:var i=t.return;try{ol(t)}catch(l){_c(t,i,l)}}}catch(l){_c(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var El,_l=Math.ceil,Cl=x.ReactCurrentDispatcher,Tl=x.ReactCurrentOwner,Ll=x.ReactCurrentBatchConfig,Nl=0,Pl=null,Al=null,Ol=0,Rl=0,jl=Ea(0),Il=0,Fl=null,Dl=0,Ml=0,Bl=0,zl=null,$l=null,ql=0,Ul=1/0,Hl=null,Ql=!1,Zl=null,Vl=null,Wl=!1,Gl=null,Yl=0,Kl=0,Xl=null,Jl=-1,ec=0;function tc(){return 0!=(6&Nl)?Ke():-1!==Jl?Jl:Jl=Ke()}function nc(e){return 0==(1&e.mode)?1:0!=(2&Nl)&&0!==Ol?Ol&-Ol:null!==go.transition?(0===ec&&(ec=mt()),ec):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function rc(e,t,n,r){if(50<Kl)throw Kl=0,Xl=null,Error(o(185));yt(e,n,r),0!=(2&Nl)&&e===Pl||(e===Pl&&(0==(2&Nl)&&(Ml|=n),4===Il&&lc(e,Ol)),ac(e,r),1===n&&0===Nl&&0==(1&t.mode)&&(Ul=Ke()+500,Ba&&qa()))}function ac(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-it(o),s=1<<i,l=a[i];-1===l?0!=(s&n)&&0==(s&r)||(a[i]=ft(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=pt(e,e===Pl?Ol:0);if(0===r)null!==n&&We(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&We(n),1===t)0===e.tag?function(e){Ba=!0,$a(e)}(cc.bind(null,e)):$a(cc.bind(null,e)),ia((function(){0==(6&Nl)&&qa()})),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Pc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Jl=-1,ec=0,0!=(6&Nl))throw Error(o(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=pt(e,e===Pl?Ol:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=yc(e,r);else{t=r;var a=Nl;Nl|=2;var i=mc();for(Pl===e&&Ol===t||(Hl=null,Ul=Ke()+500,fc(e,t));;)try{vc();break}catch(l){hc(e,l)}ko(),Cl.current=i,Nl=a,null!==Al?t=0:(Pl=null,Ol=0,t=Il)}if(0!==t){if(2===t&&(0!==(a=ht(e))&&(r=a,t=ic(e,a))),1===t)throw n=Fl,fc(e,0),lc(e,r),ac(e,Ke()),n;if(6===t)lc(e,r);else{if(a=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!sr(o(),a))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)&&(2===(t=yc(e,r))&&(0!==(i=ht(e))&&(r=i,t=ic(e,i))),1===t))throw n=Fl,fc(e,0),lc(e,r),ac(e,Ke()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:kc(e,$l,Hl);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=ql+500-Ke())){if(0!==pt(e,0))break;if(((a=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ra(kc.bind(null,e,$l,Hl),t);break}kc(e,$l,Hl);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var s=31-it(r);i=1<<s,(s=t[s])>a&&(a=s),r&=~i}if(r=a,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_l(r/1960))-r)){e.timeoutHandle=ra(kc.bind(null,e,$l,Hl),r);break}kc(e,$l,Hl);break;default:throw Error(o(329))}}}return ac(e,Ke()),e.callbackNode===n?oc.bind(null,e):null}function ic(e,t){var n=zl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=yc(e,t))&&(t=$l,$l=n,null!==t&&sc(t)),e}function sc(e){null===$l?$l=e:$l.push.apply($l,e)}function lc(e,t){for(t&=~Bl,t&=~Ml,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!=(6&Nl))throw Error(o(327));Sc();var t=pt(e,0);if(0==(1&t))return ac(e,Ke()),null;var n=yc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=Fl,fc(e,0),lc(e,t),ac(e,Ke()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kc(e,$l,Hl),ac(e,Ke()),null}function uc(e,t){var n=Nl;Nl|=1;try{return e(t)}finally{0===(Nl=n)&&(Ul=Ke()+500,Ba&&qa())}}function dc(e){null!==Gl&&0===Gl.tag&&0==(6&Nl)&&Sc();var t=Nl;Nl|=1;var n=Ll.transition,r=vt;try{if(Ll.transition=null,vt=1,e)return e()}finally{vt=r,Ll.transition=n,0==(6&(Nl=t))&&qa()}}function pc(){Rl=jl.current,_a(jl)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==Al)for(n=Al.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ra();break;case 3:oi(),_a(Na),_a(La),di();break;case 5:si(r);break;case 4:oi();break;case 13:case 19:_a(li);break;case 10:So(r.type._context);break;case 22:case 23:pc()}n=n.return}if(Pl=e,Al=e=jc(e.current,null),Ol=Rl=t,Il=0,Fl=null,Bl=Ml=Dl=0,$l=zl=null,null!==To){for(t=0;t<To.length;t++)if(null!==(r=(n=To[t]).interleaved)){n.interleaved=null;var a=r.next,o=n.pending;if(null!==o){var i=o.next;o.next=a,r.next=i}n.pending=r}To=null}return e}function hc(e,t){for(;;){var n=Al;try{if(ko(),pi.current=is,bi){for(var r=mi.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}bi=!1}if(hi=0,yi=gi=mi=null,vi=!1,xi=0,Tl.current=null,null===n||null===n.return){Il=1,Fl=t,Al=null;break}e:{var i=e,s=n.return,l=n,c=t;if(t=Ol,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(0==(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=ys(s);if(null!==h){h.flags&=-257,bs(h,s,l,0,t),1&h.mode&&gs(i,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0==(1&t)){gs(i,u,t),gc();break e}c=Error(o(426))}else if(ao&&1&l.mode){var y=ys(s);if(null!==y){0==(65536&y.flags)&&(y.flags|=256),bs(y,s,l,0,t),mo(us(c,l));break e}}i=c=us(c,l),4!==Il&&(Il=2),null===zl?zl=[i]:zl.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Do(i,hs(0,c,t));break e;case 1:l=c;var b=i.type,v=i.stateNode;if(0==(128&i.flags)&&("function"==typeof b.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===Vl||!Vl.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t,Do(i,ms(i,l,t));break e}}i=i.return}while(null!==i)}wc(n)}catch(x){t=x,Al===n&&null!==n&&(Al=n=n.return);continue}break}}function mc(){var e=Cl.current;return Cl.current=is,null===e?is:e}function gc(){0!==Il&&3!==Il&&2!==Il||(Il=4),null===Pl||0==(268435455&Dl)&&0==(268435455&Ml)||lc(Pl,Ol)}function yc(e,t){var n=Nl;Nl|=2;var r=mc();for(Pl===e&&Ol===t||(Hl=null,fc(e,t));;)try{bc();break}catch(a){hc(e,a)}if(ko(),Nl=n,Cl.current=r,null!==Al)throw Error(o(261));return Pl=null,Ol=0,Il}function bc(){for(;null!==Al;)xc(Al)}function vc(){for(;null!==Al&&!Ge();)xc(Al)}function xc(e){var t=El(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?wc(e):Al=t,Tl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ws(n,t,Rl)))return void(Al=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Al=n);if(null===e)return Il=6,void(Al=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Al=t);Al=t=e}while(null!==t);0===Il&&(Il=5)}function kc(e,t,n){var r=vt,a=Ll.transition;try{Ll.transition=null,vt=1,function(e,t,n,r){do{Sc()}while(null!==Gl);if(0!=(6&Nl))throw Error(o(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-it(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(e,i),e===Pl&&(Al=Pl=null,Ol=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Wl||(Wl=!0,Pc(tt,(function(){return Sc(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Ll.transition,Ll.transition=null;var s=vt;vt=1;var l=Nl;Nl|=4,Tl.current=null,function(e,t){if(ea=Ht,fr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(w){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==n||0!==a&&3!==p.nodeType||(l=s+a),p!==i||0!==r&&3!==p.nodeType||(c=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===n&&++u===a&&(l=s),f===i&&++d===r&&(c=s),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ta={focusedElem:e,selectionRange:n},Ht=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,y=m.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:yo(t.type,g),y);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(o(163))}}catch(w){_c(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=nl,nl=!1}(e,n),yl(n,e),hr(ta),Ht=!!ea,ta=ea=null,e.current=n,vl(n,e,a),Ye(),Nl=l,vt=s,Ll.transition=i}else e.current=n;if(Wl&&(Wl=!1,Gl=e,Yl=a),i=e.pendingLanes,0===i&&(Vl=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(at,e,void 0,128==(128&e.current.flags))}catch(t){}}(n.stateNode),ac(e,Ke()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(Ql)throw Ql=!1,e=Zl,Zl=null,e;0!=(1&Yl)&&0!==e.tag&&Sc(),i=e.pendingLanes,0!=(1&i)?e===Xl?Kl++:(Kl=0,Xl=e):Kl=0,qa()}(e,t,n,r)}finally{Ll.transition=a,vt=r}return null}function Sc(){if(null!==Gl){var e=xt(Yl),t=Ll.transition,n=vt;try{if(Ll.transition=null,vt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Yl=0,0!=(6&Nl))throw Error(o(331));var a=Nl;for(Nl|=4,Js=e.current;null!==Js;){var i=Js,s=i.child;if(0!=(16&Js.flags)){var l=i.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:rl(8,d,i)}var p=d.child;if(null!==p)p.return=d,Js=p;else for(;null!==Js;){var f=(d=Js).sibling,h=d.return;if(il(d),d===u){Js=null;break}if(null!==f){f.return=h,Js=f;break}Js=h}}}var m=i.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Js=i}}if(0!=(2064&i.subtreeFlags)&&null!==s)s.return=i,Js=s;else e:for(;null!==Js;){if(0!=(2048&(i=Js).flags))switch(i.tag){case 0:case 11:case 15:rl(9,i,i.return)}var b=i.sibling;if(null!==b){b.return=i.return,Js=b;break e}Js=i.return}}var v=e.current;for(Js=v;null!==Js;){var x=(s=Js).child;if(0!=(2064&s.subtreeFlags)&&null!==x)x.return=s,Js=x;else e:for(s=v;null!==Js;){if(0!=(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:al(9,l)}}catch(k){_c(l,l.return,k)}if(l===s){Js=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Js=w;break e}Js=l.return}}if(Nl=a,qa(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(at,e)}catch(k){}r=!0}return r}finally{vt=n,Ll.transition=t}}return!1}function Ec(e,t,n){e=Io(e,t=hs(0,t=us(n,t),1),1),t=tc(),null!==e&&(yt(e,1,t),ac(e,t))}function _c(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){t=Io(t,e=ms(t,e=us(n,e),1),1),e=tc(),null!==t&&(yt(t,1,e),ac(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Pl===e&&(Ol&n)===n&&(4===Il||3===Il&&(130023424&Ol)===Ol&&500>Ke()-ql?fc(e,0):Bl|=n),ac(e,t)}function Tc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=tc();null!==(e=Po(e,t))&&(yt(e,t,n),ac(e,n))}function Lc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function Nc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Tc(e,n)}function Pc(e,t){return Ve(e,t)}function Ac(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oc(e,t,n,r){return new Ac(e,t,n,r)}function Rc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function jc(e,t){var n=e.alternate;return null===n?((n=Oc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ic(e,t,n,r,a,i){var s=2;if(r=e,"function"==typeof e)Rc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Fc(n.children,a,i,t);case E:s=8,a|=8;break;case _:return(e=Oc(12,n,t,2|a)).elementType=_,e.lanes=i,e;case N:return(e=Oc(13,n,t,a)).elementType=N,e.lanes=i,e;case P:return(e=Oc(19,n,t,a)).elementType=P,e.lanes=i,e;case R:return Dc(n,a,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case T:s=9;break e;case L:s=11;break e;case A:s=14;break e;case O:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Oc(s,n,t,a)).elementType=e,t.type=r,t.lanes=i,t}function Fc(e,t,n,r){return(e=Oc(7,e,r,t)).lanes=n,e}function Dc(e,t,n,r){return(e=Oc(22,e,r,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function Mc(e,t,n){return(e=Oc(6,e,null,t)).lanes=n,e}function Bc(e,t,n){return(t=Oc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zc(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function $c(e,t,n,r,a,o,i,s,l){return e=new zc(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Oc(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oo(o),e}function qc(e){if(!e)return Ta;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Oa(n))return Ia(e,n,t)}return t}function Uc(e,t,n,r,a,o,i,s,l){return(e=$c(n,r,!0,e,0,o,0,s,l)).context=qc(null),n=e.current,(o=jo(r=tc(),a=nc(n))).callback=null!=t?t:null,Io(n,o,a),e.current.lanes=a,yt(e,a,r),ac(e,r),e}function Hc(e,t,n,r){var a=t.current,o=tc(),i=nc(a);return n=qc(n),null===t.context?t.context=n:t.pendingContext=n,(t=jo(o,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Io(a,t,i))&&(rc(e,a,i,o),Fo(e,a,i)),i}function Qc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){Zc(e,t),(e=e.alternate)&&Zc(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Na.current)xs=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return xs=!1,function(e,t,n){switch(t.tag){case 3:Ps(t),ho();break;case 5:ii(t);break;case 1:Oa(t.type)&&Fa(t);break;case 4:ai(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Ca(bo,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ca(li,1&li.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Ms(e,t,n):(Ca(li,1&li.current),null!==(e=Qs(e,t,n))?e.sibling:null);Ca(li,1&li.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Us(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ca(li,li.current),r)break;return null;case 22:case 23:return t.lanes=0,_s(e,t,n)}return Qs(e,t,n)}(e,t,n);xs=0!=(131072&e.flags)}else xs=!1,ao&&0!=(1048576&t.flags)&&Ja(t,Za,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hs(e,t),e=t.pendingProps;var a=Aa(t,La.current);_o(t,n),a=Ei(null,t,r,e,a,n);var i=_i();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oa(r)?(i=!0,Fa(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Oo(t),a.updater=qo,t.stateNode=a,a._reactInternals=t,Zo(t,r,e,n),t=Ns(null,t,r,!0,i,n)):(t.tag=0,ao&&i&&eo(t),ws(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,r=(a=r._init)(r._payload),t.type=r,a=t.tag=function(e){if("function"==typeof e)return Rc(e)?1:0;if(null!=e){if((e=e.$$typeof)===L)return 11;if(e===A)return 14}return 2}(r),e=yo(r,e),a){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=Ls(null,t,r,e,n);break e;case 11:t=ks(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,yo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,Ts(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 1:return r=t.type,a=t.pendingProps,Ls(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 3:e:{if(Ps(t),null===e)throw Error(o(387));r=t.pendingProps,a=(i=t.memoizedState).element,Ro(e,t),Mo(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=As(e,t,r,n,a=us(Error(o(423)),t));break e}if(r!==a){t=As(e,t,r,n,a=us(Error(o(424)),t));break e}for(ro=ca(t.stateNode.containerInfo.firstChild),no=t,ao=!0,oo=null,n=Xo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ho(),r===a){t=Qs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return ii(t),null===e&&co(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,s=a.children,na(r,a)?s=null:null!==i&&na(r,i)&&(t.flags|=32),Cs(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&co(t),null;case 13:return Ms(e,t,n);case 4:return ai(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ko(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,ks(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,s=a.value,Ca(bo,r._currentValue),r._currentValue=s,null!==i)if(sr(i.value,s)){if(i.children===a.children&&!Na.current){t=Qs(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){s=i.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===i.tag){(c=jo(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),Eo(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Eo(s,n,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}ws(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,_o(t,n),r=r(a=Co(a)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return a=yo(r=t.type,t.pendingProps),Ss(e,t,r,a=yo(r.type,a),n);case 15:return Es(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:yo(r,a),Hs(e,t),t.tag=1,Oa(r)?(e=!0,Fa(t)):e=!1,_o(t,n),Ho(t,r,a),Zo(t,r,a,n),Ns(null,t,r,!0,e,n);case 19:return Us(e,t,n);case 22:return _s(e,t,n)}throw Error(o(156,t.tag))};var Wc="function"==typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Kc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function eu(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o;if("function"==typeof a){var s=a;a=function(){var e=Qc(i);s.call(e)}}Hc(t,i,e,a)}else i=function(e,t,n,r,a){if(a){if("function"==typeof r){var o=r;r=function(){var e=Qc(i);o.call(e)}}var i=Uc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=i,e[ha]=i.current,qr(8===e.nodeType?e.parentNode:e),dc(),i}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var s=r;r=function(){var e=Qc(l);s.call(e)}}var l=$c(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[ha]=l.current,qr(8===e.nodeType?e.parentNode:e),dc((function(){Hc(t,l,n,r)})),l}(n,t,e,a,r);return Qc(i)}Yc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Hc(e,t,null,null)},Yc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Hc(null,e,null,null)})),t[ha]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&Dt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),ac(t,Ke()),0==(6&Nl)&&(Ul=Ke()+500,qa()))}break;case 13:dc((function(){var t=Po(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Vc(e,1)}},kt=function(e){if(13===e.tag){var t=Po(e,134217728);if(null!==t)rc(t,e,134217728,tc());Vc(e,134217728)}},St=function(e){if(13===e.tag){var t=nc(e),n=Po(e,t);if(null!==n)rc(n,e,t,tc());Vc(e,t)}},Et=function(){return vt},_t=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},ke=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=wa(r);if(!a)throw Error(o(90));V(r),X(r,a)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Le=uc,Ne=dc;var tu={usingClientEntryPoint:!1,Events:[va,xa,wa,Ce,Te,uc]},nu={findFiberByHostInstance:ba,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qe(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!au.isDisabled&&au.supportsFiber)try{at=au.inject(ru),ot=au}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Kc(e))throw Error(o(299));var n=!1,r="",a=Wc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=$c(e,1,!1,null,0,n,0,r,a),e[ha]=t.current,qr(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Qe(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(o(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Kc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,a=!1,i="",s=Wc;if(null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Uc(t,null,e,1,null!=n?n:null,a,0,i,s),e[ha]=t.current,qr(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Yc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(o(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(o(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[ha]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},745:(e,t,n)=>{"use strict";var r=n(3935);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},3935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4448)},9590:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=i.length)return!1;for(l=s;0!=l--;)if(!o(e[l],i[l]))return!1;return!0}if(n&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!o(l.value[1],i.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((s=e.length)!=i.length)return!1;for(l=s;0!=l--;)if(e[l]!==i[l])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof i.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof i.toString)return e.toString()===i.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(i,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!o(e[c[l]],i[c[l]]))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},405:(e,t,n)=>{"use strict";n.d(t,{B6:()=>Q,ql:()=>J});var r=n(7294),a=n(5697),o=n.n(a),i=n(9590),s=n.n(i),l=n(1143),c=n.n(l),u=n(6774),d=n.n(u);function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},y={rel:["amphtml","canonical","alternate"]},b={type:["application/ld+json"]},v={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},x=Object.keys(g).map((function(e){return g[e]})),w={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},k=Object.keys(w).reduce((function(e,t){return e[w[t]]=t,e}),{}),S=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},E=function(e){var t=S(e,g.TITLE),n=S(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=S(e,"defaultTitle");return t||r||void 0},_=function(e){return S(e,"onChangeClientState")||function(){}},C=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return p({},e,t)}),{})},T=function(e,t){return t.filter((function(e){return void 0!==e[g.BASE]})).map((function(e){return e[g.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a<r.length;a+=1){var o=r[a].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},L=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var a={};n.filter((function(e){for(var n,o=Object.keys(e),i=0;i<o.length;i+=1){var s=o[i],l=s.toLowerCase();-1===t.indexOf(l)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===l&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),a[n]||(a[n]={}),!r[n][c]&&(a[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(a),i=0;i<o.length;i+=1){var s=o[i],l=p({},r[s],a[s]);r[s]=l}return e}),[]).reverse()},N=function(e,t){if(Array.isArray(e)&&e.length)for(var n=0;n<e.length;n+=1)if(e[n][t])return!0;return!1},P=function(e){return Array.isArray(e)?e.join(""):e},A=function(e,t){return Array.isArray(e)?e.reduce((function(e,n){return function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1}(n,t)?e.priority.push(n):e.default.push(n),e}),{priority:[],default:[]}):{default:e}},O=function(e,t){var n;return p({},e,((n={})[t]=void 0,n))},R=[g.NOSCRIPT,g.SCRIPT,g.STYLE],j=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},I=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},F=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[w[n]||n]=e[n],t}),t)},D=function(e,t){return t.map((function(t,n){var a,o=((a={key:n})["data-rh"]=!0,a);return Object.keys(t).forEach((function(e){var n=w[e]||e;"innerHTML"===n||"cssText"===n?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[n]=t[e]})),r.createElement(e,o)}))},M=function(e,t,n){switch(e){case g.TITLE:return{toComponent:function(){return n=t.titleAttributes,(a={key:e=t.title})["data-rh"]=!0,o=F(n,a),[r.createElement(g.TITLE,o,e)];var e,n,a,o},toString:function(){return function(e,t,n,r){var a=I(n),o=P(t);return a?"<"+e+' data-rh="true" '+a+">"+j(o,r)+"</"+e+">":"<"+e+' data-rh="true">'+j(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return F(t)},toString:function(){return I(t)}};default:return{toComponent:function(){return D(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var a=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var a=void 0===r[t]?t:t+'="'+j(r[t],n)+'"';return e?e+" "+a:a}),""),o=r.innerHTML||r.cssText||"",i=-1===R.indexOf(e);return t+"<"+e+' data-rh="true" '+a+(i?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}},B=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,a=e.htmlAttributes,o=e.noscriptTags,i=e.styleTags,s=e.title,l=void 0===s?"":s,c=e.titleAttributes,u=e.linkTags,d=e.metaTags,p=e.scriptTags,f={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var h=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,a=A(e.metaTags,v),o=A(t,y),i=A(n,b);return{priorityMethods:{toComponent:function(){return[].concat(D(g.META,a.priority),D(g.LINK,o.priority),D(g.SCRIPT,i.priority))},toString:function(){return M(g.META,a.priority,r)+" "+M(g.LINK,o.priority,r)+" "+M(g.SCRIPT,i.priority,r)}},metaTags:a.default,linkTags:o.default,scriptTags:i.default}}(e);f=h.priorityMethods,u=h.linkTags,d=h.metaTags,p=h.scriptTags}return{priority:f,base:M(g.BASE,t,r),bodyAttributes:M("bodyAttributes",n,r),htmlAttributes:M("htmlAttributes",a,r),link:M(g.LINK,u,r),meta:M(g.META,d,r),noscript:M(g.NOSCRIPT,o,r),script:M(g.SCRIPT,p,r),style:M(g.STYLE,i,r),title:M(g.TITLE,{title:l,titleAttributes:c},r)}},z=[],$=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?z:n.instances},add:function(e){(n.canUseDOM?z:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?z:n.instances).indexOf(e);(n.canUseDOM?z:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=B({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},q=r.createContext({}),U=o().shape({setHelmet:o().func,helmetInstances:o().shape({get:o().func,add:o().func,remove:o().func})}),H="undefined"!=typeof document,Q=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new $(r.props.context,t.canUseDOM),r}return f(t,e),t.prototype.render=function(){return r.createElement(q.Provider,{value:this.helmetData.value},this.props.children)},t}(r.Component);Q.canUseDOM=H,Q.propTypes={context:o().shape({helmet:o().shape()}),children:o().node.isRequired},Q.defaultProps={context:{}},Q.displayName="HelmetProvider";var Z=function(e,t){var n,r=document.head||document.querySelector(g.HEAD),a=r.querySelectorAll(e+"[data-rh]"),o=[].slice.call(a),i=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&("innerHTML"===a?r.innerHTML=t.innerHTML:"cssText"===a?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(a,void 0===t[a]?"":t[a]));r.setAttribute("data-rh","true"),o.some((function(e,t){return n=t,r.isEqualNode(e)}))?o.splice(n,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:i}},V=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),a=r?r.split(","):[],o=[].concat(a),i=Object.keys(t),s=0;s<i.length;s+=1){var l=i[s],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===a.indexOf(l)&&a.push(l);var u=o.indexOf(l);-1!==u&&o.splice(u,1)}for(var d=o.length-1;d>=0;d-=1)n.removeAttribute(o[d]);a.length===o.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==i.join(",")&&n.setAttribute("data-rh",i.join(","))}},W=function(e,t){var n=e.baseTag,r=e.htmlAttributes,a=e.linkTags,o=e.metaTags,i=e.noscriptTags,s=e.onChangeClientState,l=e.scriptTags,c=e.styleTags,u=e.title,d=e.titleAttributes;V(g.BODY,e.bodyAttributes),V(g.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=P(e)),V(g.TITLE,t)}(u,d);var p={baseTag:Z(g.BASE,n),linkTags:Z(g.LINK,a),metaTags:Z(g.META,o),noscriptTags:Z(g.NOSCRIPT,i),scriptTags:Z(g.SCRIPT,l),styleTags:Z(g.STYLE,c)},f={},h={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(f[e]=n),r.length&&(h[e]=p[e].oldTags)})),t&&t(),s(e,f,h)},G=null,Y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).rendered=!1,t}f(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!d()(e,this.props)},n.componentDidUpdate=function(){this.emitChange()},n.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},n.emitChange=function(){var e,t,n=this.props.context,r=n.setHelmet,a=null,o=(e=n.helmetInstances.get().map((function(e){var t=p({},e.props);return delete t.context,t})),{baseTag:T(["href"],e),bodyAttributes:C("bodyAttributes",e),defer:S(e,"defer"),encode:S(e,"encodeSpecialCharacters"),htmlAttributes:C("htmlAttributes",e),linkTags:L(g.LINK,["rel","href"],e),metaTags:L(g.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:L(g.NOSCRIPT,["innerHTML"],e),onChangeClientState:_(e),scriptTags:L(g.SCRIPT,["src","innerHTML"],e),styleTags:L(g.STYLE,["cssText"],e),title:E(e),titleAttributes:C("titleAttributes",e),prioritizeSeoTags:N(e,"prioritizeSeoTags")});Q.canUseDOM?(t=o,G&&cancelAnimationFrame(G),t.defer?G=requestAnimationFrame((function(){W(t,(function(){G=null}))})):(W(t),G=null)):B&&(a=B(o)),r(a)},n.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},n.render=function(){return this.init(),null},t}(r.Component);Y.propTypes={context:U.isRequired},Y.displayName="HelmetDispatcher";var K=["children"],X=["children"],J=function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!s()(O(this.props,"helmetData"),O(e,"helmetData"))},n.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:t};case g.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return p({},r,((t={})[n.type]=[].concat(r[n.type]||[],[p({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,a=e.newProps,o=e.newChildProps,i=e.nestedChildren;switch(r.type){case g.TITLE:return p({},a,((t={})[r.type]=i,t.titleAttributes=p({},o),t));case g.BODY:return p({},a,{bodyAttributes:p({},o)});case g.HTML:return p({},a,{htmlAttributes:p({},o)});default:return p({},a,((n={})[r.type]=p({},o),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=p({},t);return Object.keys(e).forEach((function(t){var r;n=p({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return c()(x.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+x.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),c()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,a={};return r.Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,o=r.children,i=m(r,K),s=Object.keys(i).reduce((function(e,t){return e[k[t]||t]=i[t],e}),{}),l=e.type;switch("symbol"==typeof l?l=l.toString():n.warnOnInvalidChildren(e,o),l){case g.FRAGMENT:t=n.mapChildrenToProps(o,t);break;case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:a=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:a,newChildProps:s,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(a,t)},n.render=function(){var e=this.props,t=e.children,n=m(e,X),a=p({},n),o=n.helmetData;return t&&(a=this.mapChildrenToProps(t,a)),!o||o instanceof $||(o=new $(o.context,o.instances)),o?r.createElement(Y,p({},a,{context:o.value,helmetData:void 0})):r.createElement(q.Consumer,null,(function(e){return r.createElement(Y,p({},a,{context:e}))}))},t}(r.Component);J.propTypes={base:o().object,bodyAttributes:o().object,children:o().oneOfType([o().arrayOf(o().node),o().node]),defaultTitle:o().string,defer:o().bool,encodeSpecialCharacters:o().bool,htmlAttributes:o().object,link:o().arrayOf(o().object),meta:o().arrayOf(o().object),noscript:o().arrayOf(o().object),onChangeClientState:o().func,script:o().arrayOf(o().object),style:o().arrayOf(o().object),title:o().string,titleAttributes:o().object,titleTemplate:o().string,prioritizeSeoTags:o().bool,helmetData:o().object},J.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},J.displayName="Helmet"},9921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case a:return t}}}function k(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=a,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||w(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===i||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===v||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},9864:(e,t,n)=>{"use strict";e.exports=n(9921)},8356:(e,t,n)=>{"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var s=n(7294),l=n(5697),c=[],u=[];function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function p(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var a=d(e[r]);a.loading?t.loading=!0:(t.loaded[r]=a.loaded,t.error=a.error),n.push(a.promise),a.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function f(e,t){return s.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function h(e,t){var d,p;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var h=i({loader:null,loading:null,delay:200,timeout:null,render:f,webpack:null,modules:null},t),m=null;function g(){return m||(m=e(h.loader)),m.promise}return c.push(g),"function"==typeof h.webpack&&u.push((function(){if((0,h.webpack)().every((function(e){return void 0!==e&&void 0!==n.m[e]})))return g()})),p=d=function(t){function n(n){var r;return o(a(a(r=t.call(this,n)||this)),"retry",(function(){r.setState({error:null,loading:!0,timedOut:!1}),m=e(h.loader),r._loadModule()})),g(),r.state={error:m.error,pastDelay:!1,timedOut:!1,loading:m.loading,loaded:m.loaded},r}r(n,t),n.preload=function(){return g()};var i=n.prototype;return i.UNSAFE_componentWillMount=function(){this._loadModule()},i.componentDidMount=function(){this._mounted=!0},i._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(h.modules)&&h.modules.forEach((function(t){e.context.loadable.report(t)})),m.loading){var t=function(t){e._mounted&&e.setState(t)};"number"==typeof h.delay&&(0===h.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){t({pastDelay:!0})}),h.delay)),"number"==typeof h.timeout&&(this._timeout=setTimeout((function(){t({timedOut:!0})}),h.timeout));var n=function(){t({error:m.error,loaded:m.loaded,loading:m.loading}),e._clearTimeouts()};m.promise.then((function(){return n(),null})).catch((function(e){return n(),null}))}},i.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},i._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},i.render=function(){return this.state.loading||this.state.error?s.createElement(h.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?h.render(this.state.loaded,this.props):null},n}(s.Component),o(d,"contextTypes",{loadable:l.shape({report:l.func.isRequired})}),p}function m(e){return h(d,e)}m.Map=function(e){if("function"!=typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return h(p,e)};var g=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.getChildContext=function(){return{loadable:{report:this.props.report}}},n.render=function(){return s.Children.only(this.props.children)},t}(s.Component);function y(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then((function(){if(e.length)return y(e)}))}o(g,"propTypes",{report:l.func.isRequired}),o(g,"childContextTypes",{loadable:l.shape({report:l.func.isRequired}).isRequired}),m.Capture=g,m.preloadAll=function(){return new Promise((function(e,t){y(c).then(e,t)}))},m.preloadReady=function(){return new Promise((function(e,t){y(u).then(e,e)}))},e.exports=m},8790:(e,t,n)=>{"use strict";n.d(t,{H:()=>s,f:()=>i});var r=n(6550),a=n(7462),o=n(7294);function i(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var a=e.path?(0,r.LX)(t,e):n.length?n[n.length-1].match:r.F0.computeRootMatch(t);return a&&(n.push({route:e,match:a}),e.routes&&i(e.routes,t,n)),a})),n}function s(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?o.createElement(r.rs,n,e.map((function(e,n){return o.createElement(r.AW,{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render((0,a.Z)({},n,{},t,{route:e})):o.createElement(e.component,(0,a.Z)({},n,t,{route:e}))}})}))):null}},3727:(e,t,n)=>{"use strict";n.d(t,{OL:()=>v,VK:()=>u,rU:()=>g});var r=n(6550),a=n(5068),o=n(7294),i=n(2358),s=n(7462),l=n(3366),c=n(8776),u=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,i.lX)(t.props),t}return(0,a.Z)(t,e),t.prototype.render=function(){return o.createElement(r.F0,{history:this.history,children:this.props.children})},t}(o.Component);o.Component;var d=function(e,t){return"function"==typeof e?e(t):e},p=function(e,t){return"string"==typeof e?(0,i.ob)(e,null,null,t):e},f=function(e){return e},h=o.forwardRef;void 0===h&&(h=f);var m=h((function(e,t){var n=e.innerRef,r=e.navigate,a=e.onClick,i=(0,l.Z)(e,["innerRef","navigate","onClick"]),c=i.target,u=(0,s.Z)({},i,{onClick:function(e){try{a&&a(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=f!==h&&t||n,o.createElement("a",u)}));var g=h((function(e,t){var n=e.component,a=void 0===n?m:n,u=e.replace,g=e.to,y=e.innerRef,b=(0,l.Z)(e,["component","replace","to","innerRef"]);return o.createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=e.history,r=p(d(g,e.location),e.location),l=r?n.createHref(r):"",m=(0,s.Z)({},b,{href:l,navigate:function(){var t=d(g,e.location),r=(0,i.Ep)(e.location)===(0,i.Ep)(p(t));(u||r?n.replace:n.push)(t)}});return f!==h?m.ref=t||y:m.innerRef=y,o.createElement(a,m)}))})),y=function(e){return e},b=o.forwardRef;void 0===b&&(b=y);var v=b((function(e,t){var n=e["aria-current"],a=void 0===n?"page":n,i=e.activeClassName,u=void 0===i?"active":i,f=e.activeStyle,h=e.className,m=e.exact,v=e.isActive,x=e.location,w=e.sensitive,k=e.strict,S=e.style,E=e.to,_=e.innerRef,C=(0,l.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=x||e.location,i=p(d(E,n),n),l=i.pathname,T=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),L=T?(0,r.LX)(n.pathname,{path:T,exact:m,sensitive:w,strict:k}):null,N=!!(v?v(L,n):L),P="function"==typeof h?h(N):h,A="function"==typeof S?S(N):S;N&&(P=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(P,u),A=(0,s.Z)({},A,f));var O=(0,s.Z)({"aria-current":N&&a||null,className:P,style:A,to:i},C);return y!==b?O.ref=t||_:O.innerRef=_,o.createElement(g,O)}))}))},6550:(e,t,n)=>{"use strict";n.d(t,{AW:()=>P,F0:()=>v,LX:()=>N,TH:()=>B,k6:()=>M,l_:()=>_,rs:()=>F,s6:()=>b});var r=n(5068),a=n(7294),o=n(5697),i=n.n(o),s=n(2358),l=n(8776),c=n(7462),u=n(4779),d=n.n(u),p=(n(9864),n(3366)),f=(n(8679),1073741823),h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};var m=a.createContext||function(e,t){var n,o,s="__create-react-context-"+function(){var e="__global_unique_id__";return h[e]=(h[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n,r,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}(0,r.Z)(n,e);var a=n.prototype;return a.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},a.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,a=e.value;((o=r)===(i=a)?0!==o||1/o==1/i:o!=o&&i!=i)?n=0:(n="function"==typeof t?t(r,a):f,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,i},a.render=function(){return this.props.children},n}(a.Component);l.childContextTypes=((n={})[s]=i().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.Z)(n,t);var a=n.prototype;return a.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?f:t},a.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?f:e},a.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},a.getValue=function(){return this.context[s]?this.context[s].get():e},a.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(a.Component);return c.contextTypes=((o={})[s]=i().object,o),{Provider:l,Consumer:c}},g=function(e){var t=m();return t.displayName=e,t},y=g("Router-History"),b=g("Router"),v=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return a.createElement(b.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a.createElement(y.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a.Component);a.Component;var x=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(a.Component);var w={},k=1e4,S=0;function E(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(w[e])return w[e];var t=d().compile(e);return S<k&&(w[e]=t,S++),t}(e)(t,{pretty:!0})}function _(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return a.createElement(b.Consumer,null,(function(e){e||(0,l.Z)(!1);var r=e.history,i=e.staticContext,u=o?r.push:r.replace,d=(0,s.ob)(t?"string"==typeof n?E(n,t.params):(0,c.Z)({},n,{pathname:E(n.pathname,t.params)}):n);return i?(u(d),null):a.createElement(x,{onMount:function(){u(d)},onUpdate:function(e,t){var n=(0,s.ob)(t.to);(0,s.Hp)(n,(0,c.Z)({},d,{key:n.key}))||u(d)},to:n})}))}var C={},T=1e4,L=0;function N(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,a=n.exact,o=void 0!==a&&a,i=n.strict,s=void 0!==i&&i,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=C[n]||(C[n]={});if(r[e])return r[e];var a=[],o={regexp:d()(e,a,t),keys:a};return L<T&&(r[e]=o,L++),o}(n,{end:o,strict:s,sensitive:c}),a=r.regexp,i=r.keys,l=a.exec(e);if(!l)return null;var u=l[0],p=l.slice(1),f=e===u;return o&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:i.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}var P=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a.createElement(b.Consumer,null,(function(t){t||(0,l.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?N(n.pathname,e.props):t.match,o=(0,c.Z)({},t,{location:n,match:r}),i=e.props,s=i.children,u=i.component,d=i.render;return Array.isArray(s)&&function(e){return 0===a.Children.count(e)}(s)&&(s=null),a.createElement(b.Provider,{value:o},o.match?s?"function"==typeof s?s(o):s:u?a.createElement(u,o):d?d(o):null:"function"==typeof s?s(o):null)}))},t}(a.Component);function A(e){return"/"===e.charAt(0)?e:"/"+e}function O(e,t){if(!e)return t;var n=A(e);return 0!==t.pathname.indexOf(n)?t:(0,c.Z)({},t,{pathname:t.pathname.substr(n.length)})}function R(e){return"string"==typeof e?e:(0,s.Ep)(e)}function j(e){return function(){(0,l.Z)(!1)}}function I(){}a.Component;var F=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a.createElement(b.Consumer,null,(function(t){t||(0,l.Z)(!1);var n,r,o=e.props.location||t.location;return a.Children.forEach(e.props.children,(function(e){if(null==r&&a.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?N(o.pathname,(0,c.Z)({},e.props,{path:i})):t.match}})),r?a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(a.Component);var D=a.useContext;function M(){return D(y)}function B(){return D(b).location}},5251:(e,t,n)=>{"use strict";var r=n(7294),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:a,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},2408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var x=v.prototype=new b;x.constructor=v,m(x,y.prototype),x.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r){var a,o={},i=null,s=null;if(null!=t)for(a in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)k.call(t,a)&&!E.hasOwnProperty(a)&&(o[a]=t[a]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(a in l=e.defaultProps)void 0===o[a]&&(o[a]=l[a]);return{$$typeof:n,type:e,key:i,ref:s,props:o,_owner:S.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function L(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function N(e,t,a,o,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return i=i(l=e),e=""===o?"."+L(l,0):o,w(i)?(a="",null!=e&&(a=e.replace(T,"$&/")+"/"),N(i,t,a,"",(function(e){return e}))):null!=i&&(C(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,a+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(T,"$&/")+"/")+e)),t.push(i)),1;if(l=0,o=""===o?".":o+":",w(e))for(var c=0;c<e.length;c++){var u=o+L(s=e[c],c);l+=N(s,t,a,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=N(s=s.value,t,a,u=o+L(s,c++),i);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],a=0;return N(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function A(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},R={transition:null},j={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:R,ReactCurrentOwner:S};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=a,t.Profiler=i,t.PureComponent=v,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=m({},e.props),o=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=S.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)k.call(t,c)&&!E.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}return{$$typeof:n,type:e.type,key:o,ref:i,props:a,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return O.current.useCallback(e,t)},t.useContext=function(e){return O.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return O.current.useDeferredValue(e)},t.useEffect=function(e,t){return O.current.useEffect(e,t)},t.useId=function(){return O.current.useId()},t.useImperativeHandle=function(e,t,n){return O.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return O.current.useMemo(e,t)},t.useReducer=function(e,t,n){return O.current.useReducer(e,t,n)},t.useRef=function(e){return O.current.useRef(e)},t.useState=function(e){return O.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return O.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return O.current.useTransition()},t.version="18.2.0"},7294:(e,t,n)=>{"use strict";e.exports=n(2408)},5893:(e,t,n)=>{"use strict";e.exports=n(5251)},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<a&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<a&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,f=3,h=!1,m=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)a(u);else{if(!(t.startTime<=e))break;a(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(g=!1,x(e),!m)if(null!==r(c))m=!0,R(k);else{var t=r(u);null!==t&&j(w,t.startTime-e)}}function k(e,n){m=!1,g&&(g=!1,b(C),C=-1),h=!0;var o=f;try{for(x(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!N());){var i=p.callback;if("function"==typeof i){p.callback=null,f=p.priorityLevel;var s=i(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===r(c)&&a(c),x(n)}else a(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&j(w,d.startTime-n),l=!1}return l}finally{p=null,f=o,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,E=!1,_=null,C=-1,T=5,L=-1;function N(){return!(t.unstable_now()-L<T)}function P(){if(null!==_){var e=t.unstable_now();L=e;var n=!0;try{n=_(!0,e)}finally{n?S():(E=!1,_=null)}}else E=!1}if("function"==typeof v)S=function(){v(P)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,O=A.port2;A.port1.onmessage=P,S=function(){O.postMessage(null)}}else S=function(){y(P,0)};function R(e){_=e,E||(E=!0,S())}function j(e,n){C=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,R(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,a,o){var i=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?i+o:i:o=i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:a,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>i?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(b(C),C=-1):g=!0,j(w,o-i))):(e.sortIndex=s,n(c,e),m||h||(m=!0,R(k))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},3840:(e,t,n)=>{"use strict";e.exports=n(53)},6774:e=>{e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(a=n?n.call(r,u,d,c):void 0)||void 0===a&&u!==d)return!1}return!0}},6809:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={title:"Quickstart",url:"https://sidorares.github.io",baseUrl:"/node-mysql2/",organizationName:"sidorares",projectName:"node-mysql2",trailingSlash:!1,favicon:"img/favicon.svg",onBrokenLinks:"throw",onBrokenMarkdownLinks:"warn",i18n:{defaultLocale:"en",locales:["en","zh-CN","pt-BR"],localeConfigs:{en:{label:"\ud83c\uddfa\ud83c\uddf8 English",direction:"ltr"},"zh-CN":{label:"\ud83c\udde8\ud83c\uddf3 \u7b80\u4f53\u4e2d\u6587",direction:"ltr"},"pt-BR":{label:"\ud83c\udde7\ud83c\uddf7 Portugu\xeas (Brasil)",direction:"ltr"}},path:"i18n"},presets:[["classic",{docs:{sidebarPath:"./sidebars.ts",editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/"},theme:{customCss:"./src/css/custom.scss"},blog:!1}]],themeConfig:{navbar:{items:[{to:"/docs",label:"MySQL2",position:"left",className:"navbar__brand navbar__manual--title text--truncate",activeBaseRegex:"^/$"},{to:"/docs/documentation",label:"Docs",position:"left"},{to:"/docs/examples",label:"Examples",position:"left"},{to:"/docs/faq",label:"FAQ",position:"left"},{href:"https://github.com/sidorares/node-mysql2",label:"GitHub",position:"right"},{href:"https://stackoverflow.com/questions/tagged/mysql2",label:"Stack Overflow",position:"right"},{href:"https://github.com/sponsors/sidorares",label:"Donate",position:"right"},{type:"search",position:"right"},{type:"localeDropdown",position:"right",dropdownItemsBefore:[],dropdownItemsAfter:[]}],hideOnScroll:!1},prism:{theme:{plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},darkTheme:{plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},additionalLanguages:["json","bash","tsx"],magicComments:[{className:"theme-code-block-highlighted-line",line:"highlight-next-line",block:{start:"highlight-start",end:"highlight-end"}}]},colorMode:{defaultMode:"light",disableSwitch:!1,respectPrefersColorScheme:!1},docs:{versionPersistence:"localStorage",sidebar:{hideable:!1,autoCollapseCategories:!1}},metadata:[],tableOfContents:{minHeadingLevel:2,maxHeadingLevel:3}},plugins:["docusaurus-plugin-sass","@easyops-cn/docusaurus-search-local",null],baseUrlIssueBanner:!0,onDuplicateRoutes:"warn",staticDirectories:["static"],customFields:{},themes:[],scripts:[],headTags:[],stylesheets:[],clientModules:[],tagline:"",titleDelimiter:"|",noIndex:!1,markdown:{format:"mdx",mermaid:!1,mdx1Compat:{comments:!0,admonitions:!0,headingIds:!0}}}},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},5068:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>a})},3366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}n.d(t,{Z:()=>r})},512:(e,t,n)=>{"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}n.d(t,{Z:()=>a});const a=function(){for(var e,t,n=0,a="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}},2573:(e,t,n)=>{"use strict";n.d(t,{p1:()=>T,y$:()=>ee});var r,a,o,i,s,l,c,u=n(7294),d=n(512),p=Object.create,f=Object.defineProperty,h=Object.defineProperties,m=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertyNames,b=Object.getOwnPropertySymbols,v=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,k=(e,t,n)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S=(e,t)=>{for(var n in t||(t={}))x.call(t,n)&&k(e,n,t[n]);if(b)for(var n of b(t))w.call(t,n)&&k(e,n,t[n]);return e},E=(e,t)=>h(e,g(t)),_=(e,t)=>{var n={};for(var r in e)x.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&b)for(var r of b(e))t.indexOf(r)<0&&w.call(e,r)&&(n[r]=e[r]);return n},C=(r={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var a,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var i in a={},n[o]=a,t)t.hasOwnProperty(i)&&(a[i]=e(t[i],n));return a;case"Array":return o=r.util.objId(t),n[o]?n[o]:(a=[],n[o]=a,t.forEach((function(t,r){a[r]=e(t,n)})),a);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var o=(a=a||r.languages)[e],i={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(i[l]=n[l]);n.hasOwnProperty(s)||(i[s]=o[s])}var c=a[e];return a[e]=i,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=i)})),i},DFS:function e(t,n,a,o){o=o||{};var i=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],a||s);var l=t[s],c=r.util.type(l);"Object"!==c||o[i(l)]?"Array"!==c||o[i(l)]||(o[i(l)]=!0,e(l,n,s,o)):(o[i(l)]=!0,e(l,n,null,o))}}},plugins:{},highlight:function(e,t,n){var o={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",o),!o.grammar)throw new Error('The language "'+o.language+'" has no grammar.');return o.tokens=r.tokenize(o.code,o.grammar),r.hooks.run("after-tokenize",o),a.stringify(r.util.encode(o.tokens),o.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new s;return l(a,a.head,e),i(e,a,t,a.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,o=0;a=n[o++];)a(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function i(e,t,n,s,u,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var h=0;h<f.length;++h){if(d&&d.cause==p+","+h)return;var m=f[h],g=m.inside,y=!!m.lookbehind,b=!!m.greedy,v=m.alias;if(b&&!m.pattern.global){var x=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,x+"g")}for(var w=m.pattern||m,k=s.next,S=u;k!==t.tail&&!(d&&S>=d.reach);S+=k.value.length,k=k.next){var E=k.value;if(t.length>e.length)return;if(!(E instanceof a)){var _,C=1;if(b){if(!(_=o(w,S,e,y))||_.index>=e.length)break;var T=_.index,L=_.index+_[0].length,N=S;for(N+=k.value.length;T>=N;)N+=(k=k.next).value.length;if(S=N-=k.value.length,k.value instanceof a)continue;for(var P=k;P!==t.tail&&(N<L||"string"==typeof P.value);P=P.next)C++,N+=P.value.length;C--,E=e.slice(S,N),_.index-=S}else if(!(_=o(w,0,E,y)))continue;T=_.index;var A=_[0],O=E.slice(0,T),R=E.slice(T+A.length),j=S+E.length;d&&j>d.reach&&(d.reach=j);var I=k.prev;if(O&&(I=l(t,I,O),S+=O.length),c(t,I,C),k=l(t,I,new a(p,g?r.tokenize(A,g):A,v,A)),R&&l(t,k,R),C>1){var F={cause:p+","+h,reach:j};i(e,t,n,k.prev,S,F),d&&F.reach>d.reach&&(d.reach=F.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function c(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}return a.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(o.classes,i):o.classes.push(i)),r.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},r}();t.exports=n,n.default=n}},function(){return a||(0,r[y(r)[0]])((a={exports:{}}).exports,a),a.exports}),T=((e,t,n)=>(n=null!=e?p(v(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of y(t))x.call(e,a)||a===n||f(e,a,{get:()=>t[a],enumerable:!(r=m(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?n:f(n,"default",{value:e,enumerable:!0}),e)))(C());T.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},T.languages.markup.tag.inside["attr-value"].inside.entity=T.languages.markup.entity,T.languages.markup.doctype.inside["internal-subset"].inside=T.languages.markup,T.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(T.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:T.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:T.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},T.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(T.languages.markup.tag,"addAttribute",{value:function(e,t){T.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:T.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),T.languages.html=T.languages.markup,T.languages.mathml=T.languages.markup,T.languages.svg=T.languages.markup,T.languages.xml=T.languages.extend("markup",{}),T.languages.ssml=T.languages.xml,T.languages.atom=T.languages.xml,T.languages.rss=T.languages.xml,o=T,i={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},l="(?:[^\\\\-]|"+(s=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")",l=RegExp(l+"-"+l),c={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},o.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":i,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:s}},"special-escape":i,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":c}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:s,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":c}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}},T.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},T.languages.javascript=T.languages.extend("clike",{"class-name":[T.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),T.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,T.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:T.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:T.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:T.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:T.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:T.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),T.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:T.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),T.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),T.languages.markup&&(T.languages.markup.tag.addInlined("script","javascript"),T.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),T.languages.js=T.languages.javascript,T.languages.actionscript=T.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),T.languages.actionscript["class-name"].alias="function",delete T.languages.actionscript.parameter,delete T.languages.actionscript["literal-property"],T.languages.markup&&T.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:T.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(T),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},a="doc-comment";if(o=e.languages[t]){var o,i=o[a];if((i=i||(o=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[a])instanceof RegExp&&(i=o[a]={pattern:i}),Array.isArray(i))for(var s=0,l=i.length;s<l;s++)i[s]instanceof RegExp&&(i[s]={pattern:i[s]}),r(i[s]);else r(i)}}))}}),t.addSupport(["java","javascript","php"],t)}(T),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(T),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(T),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(T),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,i=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var a,o=t[n];"code"!==o.type?e(o.content):(a=o.content[1],o=o.content[3],a&&o&&"code-language"===a.type&&"code-block"===o.type&&"string"==typeof a.content&&(a=a.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),a="language-"+(a=(/[a-z][\w-]*/i.exec(a)||[""])[0].toLowerCase()),o.alias?"string"==typeof o.alias?o.alias=[o.alias,a]:o.alias.push(a):o.alias=[a]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,a=t.classes.length;r<a;r++){var o=t.classes[r];if(o=/language-(.+)/.exec(o)){n=o[1];break}}var c,u=e.languages[n];u?t.content=e.highlight(t.content.replace(i,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n)):s[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(c="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(T),T.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:T.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},T.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var a=[];if(d(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var o=p(/^\($/,/^\)$/);if(-1===o)continue;for(;n<o;n++){var i=u(0);"variable"===i.type&&(f(i,"variable-input"),a.push(i.content))}n=o+1}if(d(["punctuation","property-query"])&&"{"===u(0).content&&(n++,f(u(0),"property-mutation"),0<a.length)){var s=p(/^\{$/,/^\}$/);if(-1!==s)for(var l=n;l<s;l++){var c=t[l];"variable"===c.type&&0<=a.indexOf(c.content)&&f(c,"variable-input")}}}}function u(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function p(e,r){for(var a=1,o=n;o<t.length;o++){var i=t[o],s=i.content;if("punctuation"===i.type&&"string"==typeof s)if(e.test(s))a++;else if(r.test(s)&&0==--a)return o}return-1}function f(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),T.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,a=r.inside["interpolation-punctuation"],o=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function l(t,n,i){var l=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),c=0,u={},d=(l=s(l.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=c++,n="___"+i.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,i),Object.keys(u));return c=0,function t(n){for(var o=0;o<n.length;o++){if(c>=d.length)return;var i,l,p,f,h,m,g,y=n[o];"string"==typeof y||"string"==typeof y.content?(i=d[c],-1!==(g=(m="string"==typeof y?y:y.content).indexOf(i))&&(++c,l=m.substring(0,g),h=u[i],p=void 0,(f={})["interpolation-punctuation"]=a,3===(f=e.tokenize(h,f)).length&&((p=[1,1]).push.apply(p,s(f[1],e.languages.javascript,"javascript")),f.splice.apply(f,p)),p=new e.Token("interpolation",f,r.alias,h),f=m.substring(g+i.length),h=[],l&&h.push(l),h.push(p),f&&(t(m=[f]),h.push.apply(h,m)),"string"==typeof y?(n.splice.apply(n,[o,1].concat(h)),o+=h.length-1):y.content=h)):(g=y.content,Array.isArray(g)?t(g):t([g]))}}(l),new e.Token(i,l,"language-"+i,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in c&&function t(n){for(var r=0,a=n.length;r<a;r++){var o,i,s,c=n[r];"string"!=typeof c&&(o=c.content,Array.isArray(o)?"template-string"===c.type?(c=o[1],3===o.length&&"string"!=typeof c&&"embedded-code"===c.type&&(i=u(c),c=c.alias,c=Array.isArray(c)?c[0]:c,s=e.languages[c])&&(o[1]=l(i,s,c))):t(o):"string"!=typeof o&&t([o]))}}(t.tokens)}))}(T),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(T),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(T),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(T),T.languages.n4js=T.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),T.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),T.languages.n4jsd=T.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var a=n[r],o=e.languages.javascript[a];a=(o="RegExp"===e.util.type(o)?e.languages.javascript[a]={pattern:o}:o).inside||{};(o.inside=a)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(T),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return a})),RegExp(e,t)}function i(t){for(var n=[],r=0;r<t.length;r++){var a=t[r],o=!1;"string"!=typeof a&&("tag"===a.type&&a.content[0]&&"tag"===a.content[0].type?"</"===a.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(a.content[0].content[1])&&n.pop():"/>"!==a.content[a.content.length-1].content&&n.push({tagName:s(a.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof a)&&0<n.length&&0===n[n.length-1].openedBraces&&(o=s(a),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(o+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(o=s(t[r-1])+o,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",o,null,o)),a.content&&"string"!=typeof a.content&&i(a.content)}}a=o(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||i(e.tokens)}))}(T),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(T),T.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},T.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=T.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(T),T.languages.c=T.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),T.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),T.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},T.languages.c.string],char:T.languages.c.char,comment:T.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:T.languages.c}}}}),T.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete T.languages.c.boolean,T.languages.objectivec=T.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete T.languages.objectivec["class-name"],T.languages.objc=T.languages.objectivec,T.languages.reason=T.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),T.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete T.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(T),T.languages.go=T.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),T.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete T.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(T),T.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},T.languages.python["string-interpolation"].inside.interpolation.inside.rest=T.languages.python,T.languages.py=T.languages.python;((e,t)=>{for(var n in t)f(e,n,{get:t[n],enumerable:!0})})({},{dracula:()=>L,duotoneDark:()=>N,duotoneLight:()=>P,github:()=>A,jettwaveDark:()=>H,jettwaveLight:()=>Q,nightOwl:()=>O,nightOwlLight:()=>R,oceanicNext:()=>F,okaidia:()=>D,oneDark:()=>Z,oneLight:()=>V,palenight:()=>M,shadesOfPurple:()=>B,synthwave84:()=>z,ultramin:()=>$,vsDark:()=>q,vsLight:()=>U});var L={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},N={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},P={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},A={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},O={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},R={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},j="#c5a5c5",I="#8dc891",F={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:j}},{types:["attr-value"],style:{color:I}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:I}},{types:["punctuation"],style:{color:I}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:j}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},D={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},M={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},B={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},z={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},$={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},q={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},U={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},H={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Q={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Z={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},V={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},W=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:a}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=S(S({},e[t]),a);e[t]=n})),e}),{});return r.root=n,r.plain=E(S({},n),{backgroundColor:void 0}),r},G=/\r\n|\r|\n/,Y=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},K=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},X=e=>{const t=[[]],n=[e],r=[0],a=[e.length];let o=0,i=0,s=[];const l=[s];for(;i>-1;){for(;(o=r[i]++)<a[i];){let e,c=t[i];const u=n[i][o];if("string"==typeof u?(c=i>0?c:["plain"],e=u):(c=K(c,u.type),u.alias&&(c=K(c,u.alias)),e=u.content),"string"!=typeof e){i++,t.push(c),n.push(e),r.push(0),a.push(e.length);continue}const d=e.split(G),p=d.length;s.push({types:c,content:d[0]});for(let t=1;t<p;t++)Y(s),l.push(s=[]),s.push({types:c,content:d[t]})}i--,t.pop(),n.pop(),r.pop(),a.pop()}return Y(s),l},J=({children:e,language:t,code:n,theme:r,prism:a})=>{const o=t.toLowerCase(),i=((e,t)=>{const[n,r]=(0,u.useState)(W(t,e)),a=(0,u.useRef)(),o=(0,u.useRef)();return(0,u.useEffect)((()=>{t===a.current&&e===o.current||(a.current=t,o.current=e,r(W(t,e)))}),[e,t]),n})(o,r),s=(e=>(0,u.useCallback)((t=>{var n=t,{className:r,style:a,line:o}=n,i=_(n,["className","style","line"]);const s=E(S({},i),{className:(0,d.Z)("token-line",r)});return"object"==typeof e&&"plain"in e&&(s.style=e.plain),"object"==typeof a&&(s.style=S(S({},s.style||{}),a)),s}),[e]))(i),l=(e=>{const t=(0,u.useCallback)((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return(0,u.useCallback)((e=>{var n=e,{token:r,className:a,style:o}=n,i=_(n,["token","className","style"]);const s=E(S({},i),{className:(0,d.Z)("token",...r.types,a),children:r.content,style:t(r)});return null!=o&&(s.style=S(S({},s.style||{}),o)),s}),[t])})(i),c=(({prism:e,code:t,grammar:n,language:r})=>{const a=(0,u.useRef)(e);return(0,u.useMemo)((()=>{if(null==n)return X([t]);const e={code:t,grammar:n,language:r,tokens:[]};return a.current.hooks.run("before-tokenize",e),e.tokens=a.current.tokenize(t,n),a.current.hooks.run("after-tokenize",e),X(e.tokens)}),[t,n,r])})({prism:a,language:o,code:n,grammar:a.languages[o]});return e({tokens:c,className:`prism-code language-${o}`,style:null!=i?i.root:{},getLineProps:s,getTokenProps:l})},ee=e=>(0,u.createElement)(J,E(S({},e),{prism:e.prism||T,theme:e.theme||q,code:e.code,language:e.language}))},8776:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=!0,a="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(a);var n="function"==typeof t?t():t,o=n?"".concat(a,": ").concat(n):a;throw new Error(o)}}},7529:e=>{"use strict";e.exports={}},6887:e=>{"use strict";e.exports=JSON.parse('{"/node-mysql2/search-ace":{"__comp":"1a4e3797","__context":{"plugin":"ac5f2e4a"}},"/node-mysql2/docs-201":{"__comp":"5e95c892","__context":{"plugin":"c84c75a7"}},"/node-mysql2/docs-47a":{"__comp":"a7bd4aaa","version":"935f2afb"},"/node-mysql2/docs-e0d":{"__comp":"a94703ab"},"/node-mysql2/docs-1eb":{"__comp":"17896441","content":"4edc808e"},"/node-mysql2/docs/acknowledgements-102":{"__comp":"17896441","content":"4e6d26eb"},"/node-mysql2/docs/api-and-configurations-e4c":{"__comp":"17896441","content":"32f1b34f"},"/node-mysql2/docs/category/procedure-call-packet-686":{"__comp":"14eb3368","categoryGeneratedIndex":"76e64282"},"/node-mysql2/docs/category/queries-4f0":{"__comp":"14eb3368","categoryGeneratedIndex":"e1e203e4"},"/node-mysql2/docs/category/row-data-packet-e69":{"__comp":"14eb3368","categoryGeneratedIndex":"1a362983"},"/node-mysql2/docs/category/ssl-308":{"__comp":"14eb3368","categoryGeneratedIndex":"51824e23"},"/node-mysql2/docs/category/typescript-221":{"__comp":"14eb3368","categoryGeneratedIndex":"8bed1f9d"},"/node-mysql2/docs/contributing-246":{"__comp":"17896441","content":"822ff0a2"},"/node-mysql2/docs/contributing/website-6fb":{"__comp":"17896441","content":"f8d74a12"},"/node-mysql2/docs/documentation-8ee":{"__comp":"17896441","content":"9e767aa9"},"/node-mysql2/docs/documentation/authentication-switch-3d5":{"__comp":"17896441","content":"3945bec1"},"/node-mysql2/docs/documentation/extras-a10":{"__comp":"17896441","content":"ed06a4b6"},"/node-mysql2/docs/documentation/mysql-server-c6e":{"__comp":"17896441","content":"57495183"},"/node-mysql2/docs/documentation/prepared-statements-7be":{"__comp":"17896441","content":"f54f1246"},"/node-mysql2/docs/documentation/promise-wrapper-c14":{"__comp":"17896441","content":"546b1c5f"},"/node-mysql2/docs/documentation/typescript-examples-e5a":{"__comp":"17896441","content":"2bc14e22"},"/node-mysql2/docs/examples-252":{"__comp":"17896441","content":"76dfa484"},"/node-mysql2/docs/examples/binlog-watcher-847":{"__comp":"17896441","content":"3be0564c"},"/node-mysql2/docs/examples/connect-over-socks-1d2":{"__comp":"17896441","content":"10c30137"},"/node-mysql2/docs/examples/execute-56d":{"__comp":"17896441","content":"3bea1af6"},"/node-mysql2/docs/examples/mysqlproxy-d78":{"__comp":"17896441","content":"93f3cbcf"},"/node-mysql2/docs/examples/pass-sha-645":{"__comp":"17896441","content":"d2002d6f"},"/node-mysql2/docs/examples/pool-test-ade":{"__comp":"17896441","content":"43758d02"},"/node-mysql2/docs/examples/prepare-deb":{"__comp":"17896441","content":"e9842ab8"},"/node-mysql2/docs/examples/promise-co-await-47b":{"__comp":"17896441","content":"4e547710"},"/node-mysql2/docs/examples/queries/select-283":{"__comp":"17896441","content":"54dbd6f3"},"/node-mysql2/docs/examples/server-f6e":{"__comp":"17896441","content":"5748a325"},"/node-mysql2/docs/examples/ssl/rds-ssl-659":{"__comp":"17896441","content":"dcf552eb"},"/node-mysql2/docs/examples/ssl/select-over-ssl-075":{"__comp":"17896441","content":"75b440d9"},"/node-mysql2/docs/examples/typescript/basic-custom-class-909":{"__comp":"17896441","content":"f43af5ae"},"/node-mysql2/docs/examples/typescript/procedure-call/procedure-call-packet-919":{"__comp":"17896441","content":"e3a2ad82"},"/node-mysql2/docs/examples/typescript/procedure-call/row-as-array-793":{"__comp":"17896441","content":"bc31cbdb"},"/node-mysql2/docs/examples/typescript/row-data/multi-statements-773":{"__comp":"17896441","content":"13833ed5"},"/node-mysql2/docs/examples/typescript/row-data/row-as-array-b0c":{"__comp":"17896441","content":"5814edec"},"/node-mysql2/docs/examples/typescript/row-data/row-as-array-multi-statements-e36":{"__comp":"17896441","content":"1cee01a7"},"/node-mysql2/docs/examples/typescript/row-data/row-data-packet-ab1":{"__comp":"17896441","content":"1f08bd40"},"/node-mysql2/docs/faq-622":{"__comp":"17896441","content":"4e92b6b6"},"/node-mysql2/docs/faq/how-to-handle-errors-3ee":{"__comp":"17896441","content":"cdbda324"},"/node-mysql2/docs/history-and-why-mysq2-bac":{"__comp":"17896441","content":"5834a125"},"/node-mysql2/docs/stability-badges-48c":{"__comp":"17896441","content":"db044f71"},"/node-mysql2/-951":{"__comp":"1df93b7f","__context":{"plugin":"fb880757"},"config":"5e9f5e1a"}}')}},e=>{e.O(0,[532],(()=>{return t=7221,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/assets/js/runtime~main.212a933d.js b/assets/js/runtime~main.212a933d.js new file mode 100644 index 0000000000..8cce907456 --- /dev/null +++ b/assets/js/runtime~main.212a933d.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,a,f,c,d,b={},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var f=t[e]={exports:{}};return b[e].call(f.exports,f,f.exports,r),f.exports}r.m=b,e=[],r.O=(a,f,c,d)=>{if(!f){var b=1/0;for(i=0;i<e.length;i++){f=e[i][0],c=e[i][1],d=e[i][2];for(var t=!0,o=0;o<f.length;o++)(!1&d||b>=d)&&Object.keys(r.O).every((e=>r.O[e](f[o])))?f.splice(o--,1):(t=!1,d<b&&(b=d));if(t){e.splice(i--,1);var n=c();void 0!==n&&(a=n)}}return a}d=d||0;for(var i=e.length;i>0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[f,c,d]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a:a}),a},f=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var d=Object.create(null);r.r(d);var b={};a=a||[null,f({}),f([]),f(f)];for(var t=2&c&&e;"object"==typeof t&&!~a.indexOf(t);t=f(t))Object.getOwnPropertyNames(t).forEach((a=>b[a]=()=>e[a]));return b.default=()=>e,r.d(d,b),d},r.d=(e,a)=>{for(var f in a)r.o(a,f)&&!r.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:a[f]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((a,f)=>(r.f[f](e,a),a)),[])),r.u=e=>"assets/js/"+({53:"935f2afb",81:"8fcb4d7f",384:"1cee01a7",452:"a55c4658",505:"f1dc11e5",556:"22161331",576:"54768732",630:"f54f1246",641:"59e52bc2",979:"4e6d26eb",1233:"c84c75a7",1411:"20afe101",1420:"54eaaaae",1429:"e19cd79a",1437:"bc31cbdb",1465:"fb880757",1611:"822ff0a2",2002:"d2b048c9",2030:"ad7b17cf",2456:"c2813336",2496:"13833ed5",2714:"2a05ee09",2839:"2bc14e22",2991:"ed06a4b6",2995:"32f1b34f",3237:"1df93b7f",3326:"f4597ecd",3433:"76dfa484",3561:"5814edec",3586:"4e92b6b6",3751:"3720c009",3776:"f76f5ab7",4116:"cdbda324",4121:"55960ee5",4173:"4edc808e",4243:"3226d26d",4368:"a94703ab",4403:"b07748b5",5003:"57495183",5072:"0e27d5d9",5775:"11a54026",5807:"f8d74a12",5909:"f43af5ae",6061:"b80d201b",6159:"db044f71",7272:"0fd3066c",7435:"b825a63d",7918:"17896441",7920:"1a4e3797",8054:"7ccab252",8263:"546b1c5f",8406:"cffacdf0",8453:"508f32b9",8518:"a7bd4aaa",8534:"8b8ccc10",8625:"11e11f3b",8722:"5834a125",8806:"9e767aa9",8882:"3945bec1",9140:"df04d3c8",9308:"8e56b1fa",9380:"ac5f2e4a",9458:"1568425c",9594:"3be0564c",9661:"5e95c892",9924:"df203c0f",9961:"f11325fe",9964:"7fbd6b3a"}[e]||e)+"."+{53:"2459718c",81:"775cd8a1",384:"67bafbd9",452:"d2d37fb7",505:"e9c930e2",556:"bdd78c44",576:"7adc3ec4",630:"3d0942fa",641:"2b8c3e3c",979:"3058face",1233:"bc5502d7",1411:"be6389dc",1420:"22d6bdf5",1429:"d82572fa",1437:"ea3bd4c2",1465:"7c9dd290",1611:"d2b9e2d9",1772:"b0ede415",2002:"7ea067b0",2030:"9952a969",2456:"514f73c4",2496:"3d37ad7a",2714:"1e59c012",2839:"684b748e",2991:"46e32666",2995:"be941bc6",3237:"8f7e93f0",3326:"a48e25c9",3433:"abc20e14",3561:"dcf7d68b",3586:"4e5b1065",3751:"8c42b22a",3776:"8bdadfff",4116:"fbef41bf",4121:"4f929515",4173:"1929d38c",4243:"e340bb5c",4368:"265346fe",4403:"e822c15e",5003:"d7fc7e0f",5020:"614bd897",5072:"777a9488",5525:"36b2ab15",5775:"7e616dd9",5807:"650ad441",5909:"b162e030",6061:"074f18ce",6159:"a1084822",7272:"e8dbfbc3",7435:"cf070d2a",7918:"569c1c67",7920:"b37fdfae",8054:"53d7e12b",8263:"a8bfad30",8406:"7e0341de",8443:"30345cef",8453:"cc76f031",8518:"687d6c08",8534:"1c3b82e9",8625:"958ffa2a",8722:"6ad752fa",8806:"33391d2e",8882:"42f65154",9140:"1dfc1fb6",9308:"bbf9e2fc",9380:"75c0af2a",9458:"6348d27b",9594:"99fbf261",9661:"5a7f2413",9924:"56844b1b",9961:"0f31a6f3",9964:"b2a4ea36"}[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),c={},d="website:",r.l=(e,a,f,b)=>{if(c[e])c[e].push(a);else{var t,o;if(void 0!==f)for(var n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var u=n[i];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==d+f){t=u;break}}t||(o=!0,(t=document.createElement("script")).charset="utf-8",t.timeout=120,r.nc&&t.setAttribute("nonce",r.nc),t.setAttribute("data-webpack",d+f),t.src=e),c[e]=[a];var l=(a,f)=>{t.onerror=t.onload=null,clearTimeout(s);var d=c[e];if(delete c[e],t.parentNode&&t.parentNode.removeChild(t),d&&d.forEach((e=>e(f))),a)return a(f)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=l.bind(null,t.onerror),t.onload=l.bind(null,t.onload),o&&document.head.appendChild(t)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="/node-mysql2/",r.gca=function(e){return e={17896441:"7918",22161331:"556",54768732:"576",57495183:"5003","935f2afb":"53","8fcb4d7f":"81","1cee01a7":"384",a55c4658:"452",f1dc11e5:"505",f54f1246:"630","59e52bc2":"641","4e6d26eb":"979",c84c75a7:"1233","20afe101":"1411","54eaaaae":"1420",e19cd79a:"1429",bc31cbdb:"1437",fb880757:"1465","822ff0a2":"1611",d2b048c9:"2002",ad7b17cf:"2030",c2813336:"2456","13833ed5":"2496","2a05ee09":"2714","2bc14e22":"2839",ed06a4b6:"2991","32f1b34f":"2995","1df93b7f":"3237",f4597ecd:"3326","76dfa484":"3433","5814edec":"3561","4e92b6b6":"3586","3720c009":"3751",f76f5ab7:"3776",cdbda324:"4116","55960ee5":"4121","4edc808e":"4173","3226d26d":"4243",a94703ab:"4368",b07748b5:"4403","0e27d5d9":"5072","11a54026":"5775",f8d74a12:"5807",f43af5ae:"5909",b80d201b:"6061",db044f71:"6159","0fd3066c":"7272",b825a63d:"7435","1a4e3797":"7920","7ccab252":"8054","546b1c5f":"8263",cffacdf0:"8406","508f32b9":"8453",a7bd4aaa:"8518","8b8ccc10":"8534","11e11f3b":"8625","5834a125":"8722","9e767aa9":"8806","3945bec1":"8882",df04d3c8:"9140","8e56b1fa":"9308",ac5f2e4a:"9380","1568425c":"9458","3be0564c":"9594","5e95c892":"9661",df203c0f:"9924",f11325fe:"9961","7fbd6b3a":"9964"}[e]||e,r.p+r.u(e)},(()=>{var e={1303:0,532:0};r.f.j=(a,f)=>{var c=r.o(e,a)?e[a]:void 0;if(0!==c)if(c)f.push(c[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var d=new Promise(((f,d)=>c=e[a]=[f,d]));f.push(c[2]=d);var b=r.p+r.u(a),t=new Error;r.l(b,(f=>{if(r.o(e,a)&&(0!==(c=e[a])&&(e[a]=void 0),c)){var d=f&&("load"===f.type?"missing":f.type),b=f&&f.target&&f.target.src;t.message="Loading chunk "+a+" failed.\n("+d+": "+b+")",t.name="ChunkLoadError",t.type=d,t.request=b,c[1](t)}}),"chunk-"+a,a)}},r.O.j=a=>0===e[a];var a=(a,f)=>{var c,d,b=f[0],t=f[1],o=f[2],n=0;if(b.some((a=>0!==e[a]))){for(c in t)r.o(t,c)&&(r.m[c]=t[c]);if(o)var i=o(r)}for(a&&a(f);n<b.length;n++)d=b[n],r.o(e,d)&&e[d]&&e[d][0](),e[d]=0;return r.O(i)},f=self.webpackChunkwebsite=self.webpackChunkwebsite||[];f.forEach(a.bind(null,0)),f.push=a.bind(null,f.push.bind(f))})()})(); \ No newline at end of file diff --git a/assets/js/runtime~main.3825edef.js b/assets/js/runtime~main.3825edef.js deleted file mode 100644 index f2854078d1..0000000000 --- a/assets/js/runtime~main.3825edef.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,a,t,f,r,b={},c={};function d(e){var a=c[e];if(void 0!==a)return a.exports;var t=c[e]={exports:{}};return b[e].call(t.exports,t,t.exports,d),t.exports}d.m=b,e=[],d.O=(a,t,f,r)=>{if(!t){var b=1/0;for(i=0;i<e.length;i++){t=e[i][0],f=e[i][1],r=e[i][2];for(var c=!0,o=0;o<t.length;o++)(!1&r||b>=r)&&Object.keys(d.O).every((e=>d.O[e](t[o])))?t.splice(o--,1):(c=!1,r<b&&(b=r));if(c){e.splice(i--,1);var n=f();void 0!==n&&(a=n)}}return a}r=r||0;for(var i=e.length;i>0&&e[i-1][2]>r;i--)e[i]=e[i-1];e[i]=[t,f,r]},d.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return d.d(a,{a:a}),a},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,d.t=function(e,f){if(1&f&&(e=this(e)),8&f)return e;if("object"==typeof e&&e){if(4&f&&e.__esModule)return e;if(16&f&&"function"==typeof e.then)return e}var r=Object.create(null);d.r(r);var b={};a=a||[null,t({}),t([]),t(t)];for(var c=2&f&&e;"object"==typeof c&&!~a.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((a=>b[a]=()=>e[a]));return b.default=()=>e,d.d(r,b),r},d.d=(e,a)=>{for(var t in a)d.o(a,t)&&!d.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},d.f={},d.e=e=>Promise.all(Object.keys(d.f).reduce(((a,t)=>(d.f[t](e,a),a)),[])),d.u=e=>"assets/js/"+({53:"935f2afb",138:"1a362983",312:"1f08bd40",384:"1cee01a7",630:"f54f1246",764:"43758d02",794:"51824e23",979:"4e6d26eb",1233:"c84c75a7",1437:"bc31cbdb",1449:"4e547710",1465:"fb880757",1611:"822ff0a2",1647:"5748a325",1883:"93f3cbcf",2496:"13833ed5",2839:"2bc14e22",2991:"ed06a4b6",2995:"32f1b34f",3237:"1df93b7f",3433:"76dfa484",3561:"5814edec",3586:"4e92b6b6",4116:"cdbda324",4173:"4edc808e",4338:"dcf552eb",4368:"a94703ab",4917:"54dbd6f3",5003:"57495183",5775:"e3a2ad82",5807:"f8d74a12",5909:"f43af5ae",6159:"db044f71",7184:"d2002d6f",7805:"8bed1f9d",7918:"17896441",7920:"1a4e3797",8193:"10c30137",8218:"e9842ab8",8263:"546b1c5f",8518:"a7bd4aaa",8722:"5834a125",8806:"9e767aa9",8882:"3945bec1",9264:"3bea1af6",9380:"ac5f2e4a",9416:"76e64282",9521:"75b440d9",9594:"3be0564c",9661:"5e95c892",9800:"e1e203e4",9817:"14eb3368"}[e]||e)+"."+{53:"77b99342",138:"2aad723b",312:"b4d8e865",384:"67bafbd9",630:"349c72d8",764:"6ddfbc88",794:"17207933",979:"3058face",1233:"bc5502d7",1437:"2ff9047a",1449:"9c523c17",1465:"7c9dd290",1611:"d2b9e2d9",1647:"8eecc32c",1772:"b0ede415",1883:"1eaa7106",2496:"3d37ad7a",2839:"3ce1e359",2991:"46e32666",2995:"be941bc6",3237:"8f7e93f0",3433:"7a147334",3561:"a7313a34",3586:"4e5b1065",4116:"f6ae4ef5",4173:"4fde5883",4338:"cecb8fe0",4368:"10844fc8",4917:"7311dfcb",5003:"d7fc7e0f",5525:"36b2ab15",5775:"0cc0bf20",5807:"e26699de",5909:"24f14169",6159:"686751b7",7184:"1faf2ede",7805:"ac034290",7918:"6fafa0da",7920:"5fb5e418",8193:"cf2ed8f6",8218:"a45b8d23",8263:"9b265e0d",8443:"30345cef",8518:"687d6c08",8722:"6ad752fa",8806:"33391d2e",8882:"42f65154",9264:"2654cd83",9380:"75c0af2a",9416:"205811b1",9521:"c009f4a3",9594:"69bfa956",9661:"5a7f2413",9800:"db93059a",9817:"a0a1fb1b"}[e]+".js",d.miniCssF=e=>{},d.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),d.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),f={},r="website:",d.l=(e,a,t,b)=>{if(f[e])f[e].push(a);else{var c,o;if(void 0!==t)for(var n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var u=n[i];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==r+t){c=u;break}}c||(o=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,d.nc&&c.setAttribute("nonce",d.nc),c.setAttribute("data-webpack",r+t),c.src=e),f[e]=[a];var l=(a,t)=>{c.onerror=c.onload=null,clearTimeout(s);var r=f[e];if(delete f[e],c.parentNode&&c.parentNode.removeChild(c),r&&r.forEach((e=>e(t))),a)return a(t)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=l.bind(null,c.onerror),c.onload=l.bind(null,c.onload),o&&document.head.appendChild(c)}},d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.p="/node-mysql2/",d.gca=function(e){return e={17896441:"7918",57495183:"5003","935f2afb":"53","1a362983":"138","1f08bd40":"312","1cee01a7":"384",f54f1246:"630","43758d02":"764","51824e23":"794","4e6d26eb":"979",c84c75a7:"1233",bc31cbdb:"1437","4e547710":"1449",fb880757:"1465","822ff0a2":"1611","5748a325":"1647","93f3cbcf":"1883","13833ed5":"2496","2bc14e22":"2839",ed06a4b6:"2991","32f1b34f":"2995","1df93b7f":"3237","76dfa484":"3433","5814edec":"3561","4e92b6b6":"3586",cdbda324:"4116","4edc808e":"4173",dcf552eb:"4338",a94703ab:"4368","54dbd6f3":"4917",e3a2ad82:"5775",f8d74a12:"5807",f43af5ae:"5909",db044f71:"6159",d2002d6f:"7184","8bed1f9d":"7805","1a4e3797":"7920","10c30137":"8193",e9842ab8:"8218","546b1c5f":"8263",a7bd4aaa:"8518","5834a125":"8722","9e767aa9":"8806","3945bec1":"8882","3bea1af6":"9264",ac5f2e4a:"9380","76e64282":"9416","75b440d9":"9521","3be0564c":"9594","5e95c892":"9661",e1e203e4:"9800","14eb3368":"9817"}[e]||e,d.p+d.u(e)},(()=>{var e={1303:0,532:0};d.f.j=(a,t)=>{var f=d.o(e,a)?e[a]:void 0;if(0!==f)if(f)t.push(f[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var r=new Promise(((t,r)=>f=e[a]=[t,r]));t.push(f[2]=r);var b=d.p+d.u(a),c=new Error;d.l(b,(t=>{if(d.o(e,a)&&(0!==(f=e[a])&&(e[a]=void 0),f)){var r=t&&("load"===t.type?"missing":t.type),b=t&&t.target&&t.target.src;c.message="Loading chunk "+a+" failed.\n("+r+": "+b+")",c.name="ChunkLoadError",c.type=r,c.request=b,f[1](c)}}),"chunk-"+a,a)}},d.O.j=a=>0===e[a];var a=(a,t)=>{var f,r,b=t[0],c=t[1],o=t[2],n=0;if(b.some((a=>0!==e[a]))){for(f in c)d.o(c,f)&&(d.m[f]=c[f]);if(o)var i=o(d)}for(a&&a(t);n<b.length;n++)r=b[n],d.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return d.O(i)},t=self.webpackChunkwebsite=self.webpackChunkwebsite||[];t.forEach(a.bind(null,0)),t.push=a.bind(null,t.push.bind(t))})()})(); \ No newline at end of file diff --git a/docs.html b/docs.html index 75f29b6514..fee6a0b67c 100644 --- a/docs.html +++ b/docs.html @@ -2,10 +2,10 @@ <html lang="en" dir="ltr" class="docs-wrapper plugin-docs plugin-id-default docs-version-current docs-doc-page docs-doc-id-index" data-has-hydrated="false"> <head> <meta charset="UTF-8"> -<meta name="generator" content="Docusaurus v3.0.1"> -<title data-rh="true">MySQL2 | Quickstart - - + +MySQL2 | Quickstart + +

First Query

+
+

To explore more queries examples, please visit the example sections Simple Queries and Prepared Statements.

+
// Get the client
import mysql from 'mysql2/promise';

// Create the connection to database
const connection = await mysql.createConnection({
host: 'localhost',
user: 'root',
database: 'test',
});

// A simple SELECT query
try {
const [results, fields] = await connection.query(
'SELECT * FROM `table` WHERE `name` = "Page" AND `age` > 45'
);

console.log(results); // results contains rows returned by server
console.log(fields); // fields contains extra meta data about results, if available
} catch (err) {
console.log(err);
}

// Using placeholders
try {
const [results] = await connection.query(
'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',
['Page', 45]
);

console.log(results);
} catch (err) {
console.log(err);
}

Using Prepared Statements

@@ -29,12 +32,18 @@

Us
  • How prepared statements can protect from SQL Injection attacks
  • MySQL2 provides execute helper which will prepare and query the statement. You can also manually prepare / unprepare statement with prepare / unprepare methods.

    +
    +

    To explore more Prepared Statements and Placeholders examples, please visit the example section Prepared Statements.

    +
    import mysql from 'mysql2/promise';

    try {
    // create the connection to database
    const connection = await mysql.createConnection({
    host: 'localhost',
    user: 'root',
    database: 'test',
    });

    // execute will internally call prepare and query
    const [results, fields] = await connection.execute(
    'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',
    ['Rick C-137', 53]
    );

    console.log(results); // results contains rows returned by server
    console.log(fields); // fields contains extra meta data about results, if available
    } catch (err) {
    console.log(err);
    }
    tip

    If you execute same statement again, it will be picked from a LRU cache which will save query preparation time and give better performance.


    -

    Using Connection Pools

    +

    Using Connection Pools

    Connection pools help reduce the time spent connecting to the MySQL server by reusing a previous connection, leaving them open instead of closing when you are done with them.

    This improves the latency of queries as you avoid all of the overhead that comes with establishing a new connection.

    +
    +

    To explore more Connection Pools examples, please visit the example section createPool.

    +
    import mysql from 'mysql2/promise';

    // Create the connection pool. The pool-specific settings are the defaults
    const pool = mysql.createPool({
    host: 'localhost',
    user: 'root',
    database: 'test',
    waitForConnections: true,
    connectionLimit: 10,
    maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit`
    idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000
    queueLimit: 0,
    enableKeepAlive: true,
    keepAliveInitialDelay: 0,
    });
    note

    The pool does not create all connections upfront but creates them on demand until the connection limit is reached.


    diff --git a/docs/acknowledgements.html b/docs/acknowledgements.html index 42931ce975..12c0e5eca8 100644 --- a/docs/acknowledgements.html +++ b/docs/acknowledgements.html @@ -2,10 +2,10 @@ - -Acknowledgements | Quickstart - - + +Acknowledgements | Quickstart + +

    Acknowledgements

    diff --git a/docs/api-and-configurations.html b/docs/api-and-configurations.html index cf85f4466c..af7217a9f3 100644 --- a/docs/api-and-configurations.html +++ b/docs/api-and-configurations.html @@ -2,10 +2,10 @@ - -API and Configuration | Quickstart - - + +API and Configuration | Quickstart + +

    API and Configuration

    diff --git a/docs/category/procedure-call-packet.html b/docs/category/procedure-call-packet.html deleted file mode 100644 index 9c74b04dcb..0000000000 --- a/docs/category/procedure-call-packet.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - -Procedure Call Packet | Quickstart - - - - - - - \ No newline at end of file diff --git a/docs/category/queries.html b/docs/category/queries.html deleted file mode 100644 index 18e65aa33c..0000000000 --- a/docs/category/queries.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - -Queries | Quickstart - - - - - - - \ No newline at end of file diff --git a/docs/category/row-data-packet.html b/docs/category/row-data-packet.html deleted file mode 100644 index 4246ceb3d9..0000000000 --- a/docs/category/row-data-packet.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - -Row Data Packet | Quickstart - - - - - - - \ No newline at end of file diff --git a/docs/category/ssl.html b/docs/category/ssl.html deleted file mode 100644 index 021d32a7f8..0000000000 --- a/docs/category/ssl.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - -SSL | Quickstart - - - - - - - \ No newline at end of file diff --git a/docs/category/typescript.html b/docs/category/typescript.html deleted file mode 100644 index 338dfc2c94..0000000000 --- a/docs/category/typescript.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - -TypeScript | Quickstart - - - - - - - \ No newline at end of file diff --git a/docs/contributing.html b/docs/contributing.html index ae04c43271..c441826694 100644 --- a/docs/contributing.html +++ b/docs/contributing.html @@ -2,10 +2,10 @@ - -Contributing - - + +Contributing + +
    diff --git a/docs/contributing/website.html b/docs/contributing/website.html index 9401b03858..bc42b7a3b1 100644 --- a/docs/contributing/website.html +++ b/docs/contributing/website.html @@ -2,10 +2,10 @@ - -Documentation Site | Quickstart - - + +Documentation Site | Quickstart + +

    +

    ExternalCodeEmbed

    + +
    import { ExternalCodeEmbed } from '@site/src/components/ExternalCodeEmbed';

    <ExternalCodeEmbed
    url='https://github.com/sidorares/node-mysql2/blob/75b05f0765c9edd0c0be8f18d85be05618770cca/.prettierrc'
    language='json'
    />

    <ExternalCodeEmbed
    url='https://raw.githubusercontent.com/sidorares/node-mysql2/master/tools/parse-row.js'
    language='js'
    extractMethod='parseC'
    methodType='function'
    />
    + +
    Example
    +

    Running Tests

    npm run test
    Check Prettier and ESLint rules for compliance
    npm run lintcheck
      @@ -87,6 +93,6 @@

      Running Tests<
      Fix issues from Prettier and ESLint rules
      npm run lint
      • To prevent lint issues, it is recommended to execute this command before creating your commit.
      • Not included in the GitHub Actions workflow.
      • -

    +
    \ No newline at end of file diff --git a/docs/documentation.html b/docs/documentation.html index 7faa3c89c1..77b2bff6db 100644 --- a/docs/documentation.html +++ b/docs/documentation.html @@ -2,10 +2,10 @@ - -Documentation - - + +Documentation + +
    diff --git a/docs/documentation/authentication-switch.html b/docs/documentation/authentication-switch.html index 65ea494520..026cdad7e7 100644 --- a/docs/documentation/authentication-switch.html +++ b/docs/documentation/authentication-switch.html @@ -2,10 +2,10 @@ - -Authentication Switch Request | Quickstart - - + +Authentication Switch Request | Quickstart + +

    Authentication Switch Request

    diff --git a/docs/documentation/extras.html b/docs/documentation/extras.html index d5a8c51c29..ac2ccbcb60 100644 --- a/docs/documentation/extras.html +++ b/docs/documentation/extras.html @@ -2,10 +2,10 @@ - -Extra Features | Quickstart - - + +Extra Features | Quickstart + +

    Extra Features

    diff --git a/docs/documentation/mysql-server.html b/docs/documentation/mysql-server.html index fb19f41a3a..7945a1b080 100644 --- a/docs/documentation/mysql-server.html +++ b/docs/documentation/mysql-server.html @@ -2,10 +2,10 @@ - -MySQL Server API | Quickstart - - + +MySQL Server API | Quickstart + +

    MySQL Server API

    diff --git a/docs/documentation/prepared-statements.html b/docs/documentation/prepared-statements.html index 7f3b8cd658..a4570bf3b6 100644 --- a/docs/documentation/prepared-statements.html +++ b/docs/documentation/prepared-statements.html @@ -2,10 +2,10 @@ - -Prepared Statements | Quickstart - - + +Prepared Statements | Quickstart + +

    Prepared Statements

    @@ -17,9 +17,9 @@

    Manu

    Manually prepared statements doesn't comes with LRU cache and SHOULD be closed using statement.close() instead of connection.unprepare().

    connection.prepare('select ? + ? as tests', (err, statement) => {
    // statement.parameters - array of column definitions, length === number of params, here 2
    // statement.columns - array of result column definitions. Can be empty if result schema is dynamic / not known
    // statement.id
    // statement.query

    statement.execute([1, 2], (err, rows, columns) => {
    // -> [ { tests: 3 } ]
    });

    // don't use connection.unprepare(), it won't work!
    // note that there is no callback here. There is no statement close ack at protocol level.
    statement.close();
    });

    Note that you should not use statement after connection reset (changeUser() or disconnect). Statement scope is connection, you need to prepare statement for each new connection in order to use it.

    -

    Configuration

    +

    Configuration

    maxPreparedStatements : We keep the cached statements in a lru-cache. Default size is 16000 but you can use this option to override it. Any statements that are dropped from cache will be closed.

    -

    Serialization of bind parameters

    +

    Serialization of bind parameters

    The bind parameter values passed to execute are serialized JS -> MySQL as:

    • null -> NULL
    • @@ -34,6 +34,11 @@

      Serialization of bind parameters

    • Other -> VAR_STRING
    -

    Passing in undefined or a function will result in an error.

    +

    Passing in undefined or a function will result in an error.

    +

    Prepared Statements Helper

    +

    MySQL2 provides execute helper which will prepare and query the statement. You can also manually prepare / unprepare statement with prepare / unprepare methods.

    +
    connection.execute(
    'select ?+1 as qqq, ? as rrr, ? as yyy',
    [1, null, 3],
    (err, rows, fields) => {
    console.log(err, rows, fields);
    connection.execute(
    'select ?+1 as qqq, ? as rrr, ? as yyy',
    [3, null, 3],
    (err, rows, fields) => {
    console.log(err, rows, fields);
    connection.unprepare('select ?+1 as qqq, ? as rrr, ? as yyy');
    connection.execute(
    'select ?+1 as qqq, ? as rrr, ? as yyy',
    [3, null, 3],
    (err, rows, fields) => {
    console.log(err, rows, fields);
    }
    );
    }
    );
    }
    );
    +

    Examples

    +

    For Prepared Statements examples, please see here.

    \ No newline at end of file diff --git a/docs/documentation/promise-wrapper.html b/docs/documentation/promise-wrapper.html index ab7fc6b54d..d48549f8b6 100644 --- a/docs/documentation/promise-wrapper.html +++ b/docs/documentation/promise-wrapper.html @@ -2,10 +2,10 @@ - -Promise Wrappers | Quickstart - - + +Promise Wrappers | Quickstart + +

    Promise Wrappers

    @@ -17,6 +17,6 @@

    ES7 Async Aw
    async function example1() {
    const mysql = require('mysql2/promise');
    const conn = await mysql.createConnection({ database: test });
    const [rows, fields] = await conn.execute('select ?+? as sum', [2, 2]);
    await conn.end();
    }

    async function example2() {
    const mysql = require('mysql2/promise');
    const pool = mysql.createPool({ database: test });
    // execute in parallel, next console.log in 3 seconds
    await Promise.all([
    pool.query('select sleep(2)'),
    pool.query('select sleep(3)'),
    ]);
    console.log('3 seconds after');
    await pool.end();
    }

    With CO

    const mysql = require('mysql2');
    const co = require('co');
    co(function* () {
    const c = yield mysql.createConnectionPromise({
    user: 'root',
    namedPlaceholders: true,
    });
    const rows = yield c.query('show databases');
    console.log(rows);
    console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 }));
    yield c.end();
    });
    -

    Examples in /examples/promise-co-await

    +

    Examples in /examples/promise-co-await

    \ No newline at end of file diff --git a/docs/documentation/typescript-examples.html b/docs/documentation/typescript-examples.html index e89ce79824..733ff22eec 100644 --- a/docs/documentation/typescript-examples.html +++ b/docs/documentation/typescript-examples.html @@ -2,10 +2,10 @@ - -Using MySQL2 with TypeScript | Quickstart - - + +Using MySQL2 with TypeScript | Quickstart + +
    diff --git a/docs/examples.html b/docs/examples.html index 33fdf978c6..dd015f0e0c 100644 --- a/docs/examples.html +++ b/docs/examples.html @@ -2,28 +2,15 @@ - -Examples - - + +Examples + + -
    +

    Examples

    -

    Simple SELECT

    -
    import mysql from 'mysql2/promise';

    const connection = await mysql.createConnection({
    user: 'test',
    database: 'test',
    });

    const [rows] = await connection.query('SELECT 1+1 AS `test1`');
    // ...
    -
    -

    Prepared Statement and Parameters

    -
    import mysql from 'mysql2/promise';

    const connection = await mysql.createConnection({
    user: 'test',
    database: 'test',
    });

    const [rows] = await connection.execute('SELECT 1+? AS `test1`', [10]);
    // ...
    -
    -

    Connecting over encrypted connection

    -
    import fs from 'fs';
    import mysql from 'mysql2/promise';

    const connection = await mysql.createConnection({
    user: 'test',
    database: 'test',
    ssl: {
    key: fs.readFileSync('./certs/client-key.pem'),
    cert: fs.readFileSync('./certs/client-cert.pem'),
    },
    });

    console.log(await connection.query('SELECT 1+1 AS `test1`'));
    -

    You can use 'Amazon RDS' string as value to ssl property to connect to Amazon RDS mysql over ssl (in that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used)

    -
    import mysql from 'mysql2/promise';

    try {
    const connection = await mysql.createConnection({
    user: 'foo',
    password: 'bar',
    host: 'db.id.ap-southeast-2.rds.amazonaws.com',
    ssl: 'Amazon RDS',
    });

    const [res] = await connection.query("SHOW `status` LIKE 'Ssl_cipher'");

    console.log(res);
    connection.end();
    } catch (err) {
    console.log(err);
    }
    -
    -

    Simple MySQL proxy server

    -
    const mysql = require('mysql2');

    const server = mysql.createServer();
    server.listen(3307);
    server.on('connection', (conn) => {
    console.log('connection');

    conn.serverHandshake({
    protocolVersion: 10,
    serverVersion: 'node.js rocks',
    connectionId: 1234,
    statusFlags: 2,
    characterSet: 8,
    capabilityFlags: 0xffffff,
    });

    conn.on('field_list', (table, fields) => {
    console.log('field list:', table, fields);
    conn.writeEof();
    });

    const remote = mysql.createConnection({
    user: 'root',
    database: 'dbname',
    host: 'server.example.com',
    password: 'secret',
    });

    conn.on('query', (sql) => {
    console.log(`proxying query: ${sql}`);
    remote.query(sql, function (err) {
    // overloaded args, either (err, result :object)
    // or (err, rows :array, columns :array)
    if (Array.isArray(arguments[1])) {
    // response to a 'select', 'show' or similar
    const rows = arguments[1],
    columns = arguments[2];
    console.log('rows', rows);
    console.log('columns', columns);
    conn.writeTextResult(rows, columns);
    } else {
    // response to an 'insert', 'update' or 'delete'
    const result = arguments[1];
    console.log('result', result);
    conn.writeOk(result);
    }
    });
    });

    conn.on('end', remote.end.bind(remote));
    });
    -
    +
    tip

    To explore the examples, please use the sidebar navigation on desktop or access the menu on mobile devices.

    Examples using MySQL server API

    +
    \ No newline at end of file diff --git a/docs/examples/binlog-watcher.html b/docs/examples/binlog-watcher.html index eca552099c..23339b8d15 100644 --- a/docs/examples/binlog-watcher.html +++ b/docs/examples/binlog-watcher.html @@ -2,13 +2,13 @@ - -Binlog Watcher | Quickstart - - + +Binlog Watcher | Quickstart + + -

    Binlog Watcher

    -
    'use strict';

    const mysql = require('mysql2');
    const through2 = require('through2');

    const binlogStream = mysql.createBinlogStream({
    serverId: 123, // slave ID, first field in "show slave hosts" sql response
    // you can also specify slave host, username, password and port
    masterId: 0,
    filename: 'mysql-bin.000007',
    binlogPos: 120,
    flags: 1, // 1 = "non-blocking mode"
    });

    binlogStream.pipe(
    through2.obj((obj, enc, next) => {
    console.log(obj);
    next();
    })
    );
    +

    Binlog Watcher

    +
    'use strict';

    const mysql = require('mysql2');
    const through2 = require('through2');

    const binlogStream = mysql.createBinlogStream({
    serverId: 123, // slave ID, first field in "show slave hosts" sql response
    // you can also specify slave host, username, password and port
    masterId: 0,
    filename: 'mysql-bin.000007',
    binlogPos: 120,
    flags: 1, // 1 = "non-blocking mode"
    });

    binlogStream.pipe(
    through2.obj((obj, enc, next) => {
    console.log(obj);
    next();
    })
    );
    \ No newline at end of file diff --git a/docs/examples/connect-over-socks.html b/docs/examples/connect-over-socks.html deleted file mode 100644 index 68ba913a4f..0000000000 --- a/docs/examples/connect-over-socks.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -Connect Over Socks | Quickstart - - - - -

    Connect Over Socks

    -
    'use strict';

    const mysql = require('mysql2');
    const SocksConnection = require('socksjs');

    // const socksProxy = new SocksConnection({ port: 3306 });
    // const conn = mysql.createConnection({
    // stream: socksProxy,
    // });

    // conn.query("select 1+1", function(err, rows, fields) {
    // console.log(err, rows, fields);
    // });

    const conn1 = mysql.createPool({
    debug: 1,
    stream: function () {
    return new SocksConnection({ port: 3306 });
    },
    });

    conn1.execute('select sleep(1.1) as www', (err, rows, fields) => {
    console.log(err, rows, fields);
    });

    conn1.execute('select sleep(1) as qqq', (err, rows, fields) => {
    console.log(err, rows, fields);
    });

    conn1.execute('select sleep(1) as qqq', (err, rows, fields) => {
    console.log(err, rows, fields);
    });
    - - \ No newline at end of file diff --git a/docs/examples/connections/create-connection.html b/docs/examples/connections/create-connection.html new file mode 100644 index 0000000000..98799ac6b0 --- /dev/null +++ b/docs/examples/connections/create-connection.html @@ -0,0 +1,72 @@ + + + + + +createConnection | Quickstart + + + + +

    createConnection

    +
    info

    For queries please see the Simple Queries and Prepared Statements examples.

    +

    createConnection(connectionUri)

    +
    +

    createConnection(connectionUri: string)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const connection = await mysql.createConnection(
    'mysql://root:password@localhost:3306/test'
    );
    } catch (err) {
    console.log(err);
    }
    +
    +

    createConnection(config)

    +
    +

    createConnection(config: ConnectionOptions)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const connection = await mysql.createConnection({
    host: 'localhost',
    user: 'root',
    database: 'test',
    // port: 3306,
    // password: '',
    });
    } catch (err) {
    console.log(err);
    }
    +
    +

    createConnection(config) — SHA1

    +
    +

    createConnection(config: ConnectionOptions)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const connection = await mysql.createConnection({
    // ...
    passwordSha1: Buffer.from(
    '8bb6118f8fd6935ad0876a3be34a717d32708ffd',
    'hex'
    ),
    });
    } catch (err) {
    console.log(err);
    }
    +
    +

    createConnection(config) — SSL

    +
    +

    createConnection(config: ConnectionOptions)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const connection = await mysql.createConnection({
    // ...
    ssl: {
    // key: fs.readFileSync('./certs/client-key.pem'),
    // cert: fs.readFileSync('./certs/client-cert.pem')
    ca: fs.readFileSync('./certs/ca-cert.pem'),
    },
    });
    } catch (err) {
    console.log(err);
    }
    +
    +

    createConnection(config) — RDS SSL

    +
    +

    createConnection(config: ConnectionOptions)

    +
    +

    You can use Amazon RDS string as value to ssl property to connect to Amazon RDS MySQL over SSL.

    +

    In that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used:

    +
    import mysql from 'mysql2/promise';

    try {
    const connection = await mysql.createConnection({
    // ...
    host: 'db.id.ap-southeast-2.rds.amazonaws.com',
    ssl: 'Amazon RDS',
    });
    } catch (err) {
    console.log(err);
    }
    Testing
    try {
    const [res] = await connection.query('SHOW `status` LIKE "Ssl_cipher"');
    await connection.end();

    console.log(res);
    } catch (err) {
    console.log(err);
    }
    + + +
    +

    createConnection(config) — Socks

    +
    +

    createConnection(config: ConnectionOptions)

    +
    +
    const mysql = require('mysql2');
    const SocksConnection = require('socksjs');

    const socksProxy = new SocksConnection({ port: 3306 });
    const connection = mysql.createConnection({
    stream: socksProxy,
    });

    connection.addListener('error', (err) => {
    console.log(err);
    });
    +
    Testing
    connection.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => {
    if (err instanceof Error) {
    console.log(err);
    return;
    }

    console.log(rows, fields);
    });

    connection.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {
    if (err instanceof Error) {
    console.log(err);
    return;
    }

    console.log(rows, fields);
    });

    connection.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {
    if (err instanceof Error) {
    console.log(err);
    return;
    }

    console.log(rows, fields);
    });
    +
    +

    Glossary

    +

    ConnectionOptions

    +
    ConnectionOptions Specification
    + + \ No newline at end of file diff --git a/docs/examples/connections/create-pool.html b/docs/examples/connections/create-pool.html new file mode 100644 index 0000000000..ebf08abdb8 --- /dev/null +++ b/docs/examples/connections/create-pool.html @@ -0,0 +1,96 @@ + + + + + +createPool | Quickstart + + + + +

    createPool

    +
    info

    For queries please see the Simple Queries and Prepared Statements examples.

    +

    createPool(connectionUri)

    +
    +

    createPool(connectionUri: string)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const pool = mysql.createPool('mysql://root:password@localhost:3306/test');
    const connection = await pool.getConnection();
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    +
    warning

    Don't forget to release the connection when finished by using:

      +
    • pool.releaseConnection(connection)
    • +
    • connection.release()
    • +
    +
    +

    createPool(config)

    +
    +

    createPool(config: PoolOptions)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const pool = mysql.createPool({
    host: 'localhost',
    user: 'root',
    database: 'test',
    // port: 3306,
    // password: '',
    });
    const connection = await pool.getConnection();
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    +
    warning

    Don't forget to release the connection when finished by using:

      +
    • pool.releaseConnection(connection)
    • +
    • connection.release()
    • +
    +
    +

    createPool(config) — SHA1

    +
    +

    createPool(config: PoolOptions)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const pool = mysql.createPool({
    // ...
    passwordSha1: Buffer.from(
    '8bb6118f8fd6935ad0876a3be34a717d32708ffd',
    'hex'
    ),
    });
    const connection = await pool.getConnection();
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    +
    warning

    Don't forget to release the connection when finished by using:

      +
    • pool.releaseConnection(connection)
    • +
    • connection.release()
    • +
    +
    +

    createPool(config) — SSL

    +
    +

    createPool(config: PoolOptions)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const pool = mysql.createPool({
    // ...
    ssl: {
    // key: fs.readFileSync('./certs/client-key.pem'),
    // cert: fs.readFileSync('./certs/client-cert.pem')
    ca: fs.readFileSync('./certs/ca-cert.pem'),
    },
    });
    const connection = await pool.getConnection();
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    +
    warning

    Don't forget to release the connection when finished by using:

      +
    • pool.releaseConnection(connection)
    • +
    • connection.release()
    • +
    +
    +

    createPool(config) — RDS SSL

    +
    +

    createPool(config: PoolOptions)

    +
    +

    You can use Amazon RDS string as value to ssl property to connect to Amazon RDS MySQL over SSL.

    +

    In that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used:

    +
    import mysql from 'mysql2/promise';

    try {
    const pool = mysql.createPool({
    // ...
    host: 'db.id.ap-southeast-2.rds.amazonaws.com',
    ssl: 'Amazon RDS',
    });
    const connection = await pool.getConnection();
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    Testing
    try {
    const [res] = await connection.query('SHOW `status` LIKE "Ssl_cipher"');
    await pool.end();

    console.log(res);
    } catch (err) {
    console.log(err);
    }
    +
    warning

    Don't forget to release the connection when finished by using:

      +
    • pool.releaseConnection(connection)
    • +
    • connection.release()
    • +
    + + +
    +

    createPool(config) — Socks

    +
    +

    createPool(config: PoolOptions)

    +
    +
    const mysql = require('mysql2');
    const SocksConnection = require('socksjs');

    const socksProxy = new SocksConnection({ port: 3306 });
    const pool = mysql.createPool({
    stream: socksProxy,
    });
    +
    Testing
    pool.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => {
    if (err instanceof Error) {
    console.log(err);
    return;
    }

    console.log(rows, fields);
    });

    pool.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {
    if (err instanceof Error) {
    console.log(err);
    return;
    }

    console.log(rows, fields);
    });

    pool.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {
    if (err instanceof Error) {
    console.log(err);
    return;
    }

    console.log(rows, fields);
    });
    +
    +

    Glossary

    +

    PoolOptions

    +
    +

    PoolOptions extends all options from ConnectionOptions:

    +
    ConnectionOptions Specification
    +
    +
    PoolOptions Specification
    + + \ No newline at end of file diff --git a/docs/examples/connections/createPoolCluster.html b/docs/examples/connections/createPoolCluster.html new file mode 100644 index 0000000000..db19d71a4a --- /dev/null +++ b/docs/examples/connections/createPoolCluster.html @@ -0,0 +1,91 @@ + + + + + +createPoolCluster | Quickstart + + + + +

    createPoolCluster

    +
    info

    For queries please see the Simple Queries and Prepared Statements examples.

    +

    add(group, connectionUri)

    +
    +

    add(group: string, connectionUri: string)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const poolCluster = mysql.createPoolCluster();

    poolCluster.add('clusterA', 'mysql://root:password@localhost:3306/test');
    // poolCluster.add('clusterB', '...');

    const connection = await poolCluster.getConnection('clusterA');
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    +
    warning

    Don't forget to release the connection when finished by using:

      +
    • connection.release()
    • +
    +
    +

    add(group, config)

    +
    +

    add(group: string, config: PoolOptions)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const poolCluster = mysql.createPoolCluster();

    poolCluster.add('clusterA', {
    host: 'localhost',
    user: 'root',
    database: 'test',
    // port: 3306,
    // password: '',
    });
    // poolCluster.add('clusterB', '...');

    const connection = await poolCluster.getConnection('clusterA');
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    +
    warning

    Don't forget to release the connection when finished by using:

      +
    • connection.release()
    • +
    +
    +

    add(group, config) — SHA1

    +
    +

    add(group: string, config: PoolOptions)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const poolCluster = mysql.createPoolCluster();

    poolCluster.add('clusterA', {
    // ...
    passwordSha1: Buffer.from(
    '8bb6118f8fd6935ad0876a3be34a717d32708ffd',
    'hex'
    ),
    });
    // poolCluster.add('clusterB', '...');

    const connection = await poolCluster.getConnection('clusterA');
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    +
    warning

    Don't forget to release the connection when finished by using:

      +
    • connection.release()
    • +
    +
    +

    add(group, config) — SSL

    +
    +

    add(group: string, config: PoolOptions)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const poolCluster = mysql.createPoolCluster();

    poolCluster.add('clusterA', {
    // ...
    ssl: {
    // key: fs.readFileSync('./certs/client-key.pem'),
    // cert: fs.readFileSync('./certs/client-cert.pem')
    ca: fs.readFileSync('./certs/ca-cert.pem'),
    },
    });
    // poolCluster.add('clusterB', '...');

    const connection = await poolCluster.getConnection('clusterA');
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    +
    warning

    Don't forget to release the connection when finished by using:

      +
    • connection.release()
    • +
    +
    +

    add(group, config) — RDS SSL

    +
    +

    add(group: string, config: PoolOptions)

    +
    +

    You can use Amazon RDS string as value to ssl property to connect to Amazon RDS MySQL over SSL.

    +

    In that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used:

    +
    import mysql from 'mysql2/promise';

    try {
    const poolCluster = mysql.createPoolCluster();

    poolCluster.add('clusterA', {
    // ...
    host: 'db.id.ap-southeast-2.rds.amazonaws.com',
    ssl: 'Amazon RDS',
    });
    // poolCluster.add('clusterB', '...');

    const connection = await poolCluster.getConnection('clusterA');
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    Testing
    try {
    const [res] = await connection.query('SHOW `status` LIKE "Ssl_cipher"');
    await poolCluster.end();

    console.log(res);
    } catch (err) {
    console.log(err);
    }
    +
    warning

    Don't forget to release the connection when finished by using:

      +
    • connection.release()
    • +
    + + +
    +

    add(group, config) — Socks

    +
    +

    add(group: string, config: PoolOptions)

    +
    +
    const mysql = require('mysql2');
    const SocksConnection = require('socksjs');

    const socksProxy = new SocksConnection({ port: 3306 });
    const poolCluster = mysql.createPoolCluster();

    poolCluster.add('clusterA', {
    stream: socksProxy,
    });
    // poolCluster.add('clusterB', '...');

    const poolNamespace = poolCluster.of('clusterA');
    +
    Testing
    poolNamespace.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => {
    if (err instanceof Error) {
    console.log(err);
    return;
    }

    console.log(rows, fields);
    });

    poolNamespace.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {
    if (err instanceof Error) {
    console.log(err);
    return;
    }

    console.log(rows, fields);
    });

    poolNamespace.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {
    if (err instanceof Error) {
    console.log(err);
    return;
    }

    console.log(rows, fields);
    });
    +
    +

    Glossary

    +

    PoolOptions

    +
    +

    PoolOptions extends all options from ConnectionOptions:

    +
    ConnectionOptions Specification
    +
    +
    PoolOptions Specification
    + + \ No newline at end of file diff --git a/docs/examples/execute.html b/docs/examples/execute.html deleted file mode 100644 index 03068c9cb0..0000000000 --- a/docs/examples/execute.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -Execute | Quickstart - - - - -

    Execute

    -
    'use strict';

    // get the client
    const mysql = require('mysql2');

    // create the connection to database
    const connection = mysql.createConnection({
    host: 'localhost',
    user: 'root',
    database: 'test',
    });

    connection.execute(
    'select ?+1 as qqq, ? as rrr, ? as yyy',
    [1, null, 3],
    (err, rows, fields) => {
    console.log(err, rows, fields);
    connection.execute(
    'select ?+1 as qqq, ? as rrr, ? as yyy',
    [3, null, 3],
    (err, rows, fields) => {
    console.log(err, rows, fields);
    connection.unprepare('select ?+1 as qqq, ? as rrr, ? as yyy');
    connection.execute(
    'select ?+1 as qqq, ? as rrr, ? as yyy',
    [3, null, 3],
    (err, rows, fields) => {
    console.log(err, rows, fields);
    }
    );
    }
    );
    }
    );
    - - \ No newline at end of file diff --git a/docs/examples/pass-sha.html b/docs/examples/pass-sha.html deleted file mode 100644 index 37538823d7..0000000000 --- a/docs/examples/pass-sha.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -Pass SHA | Quickstart - - - - -

    Pass SHA

    -
    'use strict';

    const mysql = require('mysql2').createConnection({
    host: 'localhost',
    user: 'root',
    database: 'test',
    passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'),
    });

    mysql.execute(
    'select ?+1 as qqq, ? as rrr, ? as yyy',
    [1, null, 3],
    (err, rows, fields) => {
    console.log(err, rows, fields);
    }
    );
    - - \ No newline at end of file diff --git a/docs/examples/prepare.html b/docs/examples/prepare.html deleted file mode 100644 index 48d4b93a82..0000000000 --- a/docs/examples/prepare.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -Prepared Statements | Quickstart - - - - -

    Prepared Statements

    -
    'use strict';

    // get the client
    const mysql = require('mysql2');

    // create the connection to database
    const connection = mysql.createConnection({
    host: 'localhost',
    user: 'root',
    database: 'test',
    });

    // execute will internally call prepare and query
    connection.execute(
    'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',
    ['Rick C-137', 53],
    (err, results, fields) => {
    console.log(results); // results contains rows returned by server
    console.log(fields); // fields contains extra meta data about results, if available

    // If you execute same statement again, it will be picked form a LRU cache
    // which will save query preparation time and give better performance
    }
    );
    - - \ No newline at end of file diff --git a/docs/examples/promise-co-await.html b/docs/examples/promise-wrapper/co-await.html similarity index 85% rename from docs/examples/promise-co-await.html rename to docs/examples/promise-wrapper/co-await.html index cdd0bdb782..8b33e3cedf 100644 --- a/docs/examples/promise-co-await.html +++ b/docs/examples/promise-wrapper/co-await.html @@ -1,14 +1,14 @@ - + - -Promise CO Await | Quickstart - - + +await — co | Quickstart + + -

    Promise CO Await

    -
    'use strict';

    const mysql = require('mysql2/promise');

    async function test() {
    const c = await mysql.createConnection({
    port: 3306,
    user: 'testuser',
    namedPlaceholders: true,
    password: 'testpassword',
    });
    console.log('connected!');
    const [rows, fields] = await c.query('show databases');
    console.log(rows);

    try {
    const [rows, fields] = await c.query('some invalid sql here');
    } catch (e) {
    console.log('caught exception!', e);
    }

    console.log(await c.execute('select sleep(0.5)'));
    console.log('after first sleep');
    console.log(await c.execute('select sleep(0.5)'));
    console.log('after second sleep');
    let start = +new Date();
    console.log(
    await Promise.all([
    c.execute('select sleep(2.5)'),
    c.execute('select sleep(2.5)'),
    ])
    );
    console.log(
    'after 2+3 parallel sleep which is in fact not parallel because commands are queued per connection'
    );
    let end = +new Date();
    console.log(end - start);
    await c.end();

    const p = mysql.createPool({
    port: 3306,
    user: 'testuser',
    namedPlaceholders: true,
    password: 'testpassword',
    });
    console.log(await p.execute('select sleep(0.5)'));
    console.log('after first pool sleep');
    start = +new Date();
    console.log(
    await Promise.all([
    p.execute('select sleep(2.5)'),
    p.execute('select sleep(2.5)'),
    ])
    );
    console.log('after 2+3 parallel pool sleep');
    end = +new Date();
    console.log(end - start);
    await p.end();
    }

    test()
    .then(() => {
    console.log('done');
    })
    .catch((err) => {
    console.log('error!', err);
    throw err;
    });
    +

    await — co

    +
    'use strict';

    const mysql = require('mysql2/promise');

    async function test() {
    const c = await mysql.createConnection({
    port: 3306,
    user: 'testuser',
    namedPlaceholders: true,
    password: 'testpassword',
    });
    console.log('connected!');
    const [rows, fields] = await c.query('show databases');
    console.log(rows);

    try {
    const [rows, fields] = await c.query('some invalid sql here');
    } catch (e) {
    console.log('caught exception!', e);
    }

    console.log(await c.execute('select sleep(0.5)'));
    console.log('after first sleep');
    console.log(await c.execute('select sleep(0.5)'));
    console.log('after second sleep');
    let start = +new Date();
    console.log(
    await Promise.all([
    c.execute('select sleep(2.5)'),
    c.execute('select sleep(2.5)'),
    ])
    );
    console.log(
    'after 2+3 parallel sleep which is in fact not parallel because commands are queued per connection'
    );
    let end = +new Date();
    console.log(end - start);
    await c.end();

    const p = mysql.createPool({
    port: 3306,
    user: 'testuser',
    namedPlaceholders: true,
    password: 'testpassword',
    });
    console.log(await p.execute('select sleep(0.5)'));
    console.log('after first pool sleep');
    start = +new Date();
    console.log(
    await Promise.all([
    p.execute('select sleep(2.5)'),
    p.execute('select sleep(2.5)'),
    ])
    );
    console.log('after 2+3 parallel pool sleep');
    end = +new Date();
    console.log(end - start);
    await p.end();
    }

    test()
    .then(() => {
    console.log('done');
    })
    .catch((err) => {
    console.log('error!', err);
    throw err;
    });
    \ No newline at end of file diff --git a/docs/examples/queries/prepared-statements.html b/docs/examples/queries/prepared-statements.html new file mode 100644 index 0000000000..0454c87030 --- /dev/null +++ b/docs/examples/queries/prepared-statements.html @@ -0,0 +1,25 @@ + + + + + +Prepared Statements | Quickstart + + + + +

    Prepared Statements

    +

    MySQL2 provides execute helper which will prepare and query the statement. +You can also manually prepare / unprepare statement with prepare / unprepare methods.

    +

    See detailed documentaion in Prepared Statements.

    +
    tip

    If you execute same statement again, it will be picked form a LRU cache which will save query preparation time and give better performance.

    +
    +

    Usage examples:

    +
    + + \ No newline at end of file diff --git a/docs/examples/queries/prepared-statements/delete.html b/docs/examples/queries/prepared-statements/delete.html new file mode 100644 index 0000000000..e1d2f9fa9d --- /dev/null +++ b/docs/examples/queries/prepared-statements/delete.html @@ -0,0 +1,51 @@ + + + + + +DELETE | Quickstart + + + + +

    DELETE

    +

    execute(sql, values)

    +
    +

    execute(sql: string, values: any[])

    +
    +
    try {
    const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';
    const values = ['Page'];

    const [result, fields] = await connection.execute(sql, values);

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    info

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    execute(options)

    +
    +

    execute(options: QueryOptions)

    +
    +
    try {
    const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';
    const values = ['Page'];

    const [result, fields] = await connection.execute({
    sql,
    values,
    // ... other options
    });

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    info

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    execute(options, values)

    +
    +

    execute(options: QueryOptions, values: any[])

    +
    +
    try {
    const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';
    const values = ['Page'];

    const [result, fields] = await connection.execute(
    {
    sql,
    // ... other options
    },
    values
    );

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    info

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    Glossary

    +

    ResultSetHeader

    +
    ResultSetHeader Specification
    +

    QueryOptions

    +
    QueryOptions Specification
    + + \ No newline at end of file diff --git a/docs/examples/queries/prepared-statements/insert.html b/docs/examples/queries/prepared-statements/insert.html new file mode 100644 index 0000000000..e1cd719b46 --- /dev/null +++ b/docs/examples/queries/prepared-statements/insert.html @@ -0,0 +1,51 @@ + + + + + +INSERT | Quickstart + + + + +

    INSERT

    +

    execute(sql, values)

    +
    +

    execute(sql: string, values: any[])

    +
    +
    try {
    const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';
    const values = ['Josh', 19, 'Page', 45];

    const [result, fields] = await connection.execute(sql, values);

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    info

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    execute(options)

    +
    +

    execute(options: QueryOptions)

    +
    +
    try {
    const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';
    const values = ['Josh', 19, 'Page', 45];

    const [result, fields] = await connection.execute({
    sql,
    values,
    // ... other options
    });

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    info

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    execute(options, values)

    +
    +

    execute(options: QueryOptions, values: any[])

    +
    +
    try {
    const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';
    const values = ['Josh', 19, 'Page', 45];

    const [result, fields] = await connection.execute(
    {
    sql,
    // ... other options
    },
    values
    );

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    info

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    Glossary

    +

    ResultSetHeader

    +
    ResultSetHeader Specification
    +

    QueryOptions

    +
    QueryOptions Specification
    + + \ No newline at end of file diff --git a/docs/examples/queries/prepared-statements/select.html b/docs/examples/queries/prepared-statements/select.html new file mode 100644 index 0000000000..8d4bed71d7 --- /dev/null +++ b/docs/examples/queries/prepared-statements/select.html @@ -0,0 +1,49 @@ + + + + + +SELECT | Quickstart + + + + +

    SELECT

    +

    execute(sql, values)

    +
    +

    execute(sql: string, values: any[])

    +
    +
    try {
    const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';
    const values = ['Page', 45];

    const [rows, fields] = await connection.execute(sql, values);

    console.log(rows);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • rows contains rows returned by server
    • +
    • fields contains extra meta data about rows, if available
    • +
    +
    info

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    execute(options)

    +
    +

    execute(options: QueryOptions)

    +
    +
    try {
    const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';
    const values = ['Page', 45];

    const [rows, fields] = await connection.execute({
    sql,
    values,
    // ... other options
    });

    console.log(rows);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • rows contains rows returned by server
    • +
    • fields contains extra meta data about rows, if available
    • +
    +
    info

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    execute(options, values)

    +
    +

    execute(options: QueryOptions, values: any[])

    +
    +
    try {
    const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';
    const values = ['Page', 45];

    const [rows, fields] = await connection.execute(
    {
    sql,
    // ... other options
    },
    values
    );

    console.log(rows);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • rows contains rows returned by server
    • +
    • fields contains extra meta data about rows, if available
    • +
    +
    info

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    Glossary

    +

    QueryOptions

    +
    QueryOptions Specification
    + + \ No newline at end of file diff --git a/docs/examples/queries/prepared-statements/update.html b/docs/examples/queries/prepared-statements/update.html new file mode 100644 index 0000000000..b184cf5479 --- /dev/null +++ b/docs/examples/queries/prepared-statements/update.html @@ -0,0 +1,51 @@ + + + + + +UPDATE | Quickstart + + + + +

    UPDATE

    +

    execute(sql, values)

    +
    +

    execute(sql: string, values: any[])

    +
    +
    try {
    const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';
    const values = [20, 'Josh'];

    const [result, fields] = await connection.execute(sql, values);

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    info

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    execute(options)

    +
    +

    execute(options: QueryOptions)

    +
    +
    try {
    const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';
    const values = [20, 'Josh'];

    const [result, fields] = await connection.execute({
    sql,
    values,
    // ... other options
    });

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    info

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    execute(options, values)

    +
    +

    execute(options: QueryOptions, values: any[])

    +
    +
    try {
    const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';
    const values = [20, 'Josh'];

    const [result, fields] = await connection.execute(
    {
    sql,
    // ... other options
    },
    values
    );

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    info

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    Glossary

    +

    ResultSetHeader

    +
    ResultSetHeader Specification
    +

    QueryOptions

    +
    QueryOptions Specification
    + + \ No newline at end of file diff --git a/docs/examples/queries/select.html b/docs/examples/queries/select.html deleted file mode 100644 index f63aa04d04..0000000000 --- a/docs/examples/queries/select.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -SELECT | Quickstart - - - - -

    SELECT

    -
    'use strict';

    // get the client
    const mysql = require('mysql2');

    // create the connection to database
    const connection = mysql.createConnection({
    host: 'localhost',
    user: 'root',
    database: 'test',
    });

    // simple query
    connection.query(
    'SELECT * FROM `table` WHERE `name` = "Page" AND `age` > 45',
    (err, results, fields) => {
    console.log(results); // results contains rows returned by server
    console.log(fields); // fields contains extra meta data about results, if available
    }
    );

    // with placeholder
    connection.query(
    'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',
    ['Page', 45],
    (err, results) => {
    console.log(results);
    }
    );
    - - \ No newline at end of file diff --git a/docs/examples/queries/simple-queries.html b/docs/examples/queries/simple-queries.html new file mode 100644 index 0000000000..b1aa69354a --- /dev/null +++ b/docs/examples/queries/simple-queries.html @@ -0,0 +1,22 @@ + + + + + +Simple Queries | Quickstart + + + + + + + \ No newline at end of file diff --git a/docs/examples/queries/simple-queries/delete.html b/docs/examples/queries/simple-queries/delete.html new file mode 100644 index 0000000000..656d10a44e --- /dev/null +++ b/docs/examples/queries/simple-queries/delete.html @@ -0,0 +1,41 @@ + + + + + +DELETE | Quickstart + + + + +

    DELETE

    +

    The examples below also work for the execute method.

    +

    query(sql)

    +
    +

    query(sql: string)

    +
    +
    try {
    const sql = 'DELETE FROM `users` WHERE `name` = "Page" LIMIT 1';

    const [result, fields] = await connection.query(sql);

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    info

    The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    query(options)

    +
    +

    query(options: QueryOptions)

    +
    +
    try {
    const sql = 'DELETE FROM `users` WHERE `name` = "Page" LIMIT 1';

    const [result, fields] = await connection.query({
    sql,
    // ... other options
    });

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    info

    The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    Glossary

    +

    ResultSetHeader

    +
    ResultSetHeader Specification
    +

    QueryOptions

    +
    QueryOptions Specification
    + + \ No newline at end of file diff --git a/docs/examples/queries/simple-queries/insert.html b/docs/examples/queries/simple-queries/insert.html new file mode 100644 index 0000000000..d3b42ccb19 --- /dev/null +++ b/docs/examples/queries/simple-queries/insert.html @@ -0,0 +1,41 @@ + + + + + +INSERT | Quickstart + + + + +

    INSERT

    +

    The examples below also work for the execute method.

    +

    query(sql)

    +
    +

    query(sql: string)

    +
    +
    try {
    const sql =
    'INSERT INTO `users`(`name`, `age`) VALUES ("Josh", 19), ("Page", 45)';

    const [result, fields] = await connection.query(sql);

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    info

    The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    query(options)

    +
    +

    query(options: QueryOptions)

    +
    +
    try {
    const sql =
    'INSERT INTO `users`(`name`, `age`) VALUES ("Josh", 19), ("Page", 45)';

    const [result, fields] = await connection.query({
    sql,
    // ... other options
    });

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    info

    The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    Glossary

    +

    ResultSetHeader

    +
    ResultSetHeader Specification
    +

    QueryOptions

    +
    QueryOptions Specification
    + + \ No newline at end of file diff --git a/docs/examples/queries/simple-queries/select.html b/docs/examples/queries/simple-queries/select.html new file mode 100644 index 0000000000..45c31fb060 --- /dev/null +++ b/docs/examples/queries/simple-queries/select.html @@ -0,0 +1,50 @@ + + + + + +SELECT | Quickstart + + + + +

    SELECT

    +

    The examples below also work for the execute method.

    +

    query(sql)

    +
    +

    query(sql: string)

    +
    +
    try {
    const sql = 'SELECT * FROM `users` WHERE `name` = "Page" AND `age` > 45';

    const [rows, fields] = await connection.query(sql);

    console.log(rows);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • rows contains rows returned by server
    • +
    • fields contains extra meta data about rows, if available
    • +
    +
    info

    The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    query(options)

    +
    +

    query(options: QueryOptions)

    +
    +
    try {
    const sql = 'SELECT * FROM `users` WHERE `name` = "Page" AND `age` > 45';

    const [rows, fields] = await connection.query({
    sql,
    // ... other options
    });

    console.log(rows);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • rows contains rows returned by server
    • +
    • fields contains extra meta data about rows, if available
    • +
    +
    info

    The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    query(options) — Row as Array

    +
    +

    query(options: QueryOptions)

    +
    +
    try {
    const sql = 'SELECT * FROM `users` WHERE `name` = "Page" AND `age` > 45';

    const [rows, fields] = await connection.query({
    sql,
    rowsAsArray: true,
    // ... other options
    });

    console.log(rows);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • rows contains rows returned by server as array
    • +
    • fields contains extra meta data about rows, if available
    • +
    +
    info

    The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    Glossary

    +

    QueryOptions

    +
    QueryOptions Specification
    + + \ No newline at end of file diff --git a/docs/examples/queries/simple-queries/update.html b/docs/examples/queries/simple-queries/update.html new file mode 100644 index 0000000000..68a43d37cd --- /dev/null +++ b/docs/examples/queries/simple-queries/update.html @@ -0,0 +1,41 @@ + + + + + +UPDATE | Quickstart + + + + +

    UPDATE

    +

    The examples below also work for the execute method.

    +

    query(sql)

    +
    +

    query(sql: string)

    +
    +
    try {
    const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = "Josh" LIMIT 1';

    const [result, fields] = await connection.query(sql);

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    info

    The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    query(options)

    +
    +

    query(options: QueryOptions)

    +
    +
    try {
    const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = "Josh" LIMIT 1';

    const [result, fields] = await connection.query({
    sql,
    // ... other options
    });

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    info

    The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    Glossary

    +

    ResultSetHeader

    +
    ResultSetHeader Specification
    +

    QueryOptions

    +
    QueryOptions Specification
    + + \ No newline at end of file diff --git a/docs/examples/ssl/rds-ssl.html b/docs/examples/ssl/rds-ssl.html deleted file mode 100644 index 289a9750b9..0000000000 --- a/docs/examples/ssl/rds-ssl.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -RDS SSL | Quickstart - - - - -

    RDS SSL

    -
    'use strict';

    const mysql = require('mysql2');

    const conn = mysql.createConnection({
    user: process.env.USER,
    password: process.env.PASSWORD,
    database: process.env.DB,
    host: process.env.HOST,
    port: 3306,
    ssl: 'Amazon RDS',
    });

    conn.query("show status like 'Ssl_cipher'", function (err, res) {
    console.log(err, res);
    conn.end();
    });
    - - \ No newline at end of file diff --git a/docs/examples/ssl/select-over-ssl.html b/docs/examples/ssl/select-over-ssl.html deleted file mode 100644 index ac924c0e98..0000000000 --- a/docs/examples/ssl/select-over-ssl.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - -Select Over SSL | Quickstart - - - - -

    Select Over SSL

    -
    'use strict';

    const fs = require('fs');
    const mysql = require('mysql2');

    const conn = mysql.createConnection({
    user: 'root',
    password: '',
    database: 'test',
    host: '127.0.0.1',
    port: '3306',
    ssl: {
    // key: fs.readFileSync('./certs/client-key.pem'),
    // cert: fs.readFileSync('./certs/client-cert.pem')
    ca: fs.readFileSync('./certs/ca-cert.pem'),
    },
    });

    conn.query('select 1+1 as test', function (err, res) {
    console.log(res);
    conn.query('select repeat("a", 100) as test', function (err, res) {
    console.log(res);
    });
    });
    -
    - - \ No newline at end of file diff --git a/docs/examples/mysqlproxy.html b/docs/examples/tests/mysql-proxy.html similarity index 76% rename from docs/examples/mysqlproxy.html rename to docs/examples/tests/mysql-proxy.html index 7793a74133..3bdfc73354 100644 --- a/docs/examples/mysqlproxy.html +++ b/docs/examples/tests/mysql-proxy.html @@ -1,14 +1,14 @@ - + - -MySQL Proxy | Quickstart - - + +MySQL Proxy | Quickstart + + -

    MySQL Proxy

    -
    'use strict';

    const mysql = require('mysql2');
    const ClientFlags = require('mysql2/lib/constants/client.js');

    const server = mysql.createServer();
    server.listen(3307);

    server.on('connection', (conn) => {
    console.log('connection');

    conn.serverHandshake({
    protocolVersion: 10,
    serverVersion: 'node.js rocks',
    connectionId: 1234,
    statusFlags: 2,
    characterSet: 8,
    capabilityFlags: 0xffffff ^ ClientFlags.COMPRESS,
    });

    conn.on('field_list', (table, fields) => {
    console.log('field list:', table, fields);
    conn.writeEof();
    });

    const remote = mysql.createConnection({
    user: 'root',
    database: 'dbname',
    host: 'server.example.com',
    password: 'secret',
    });

    conn.on('query', (sql) => {
    console.log(`proxying query: ${sql}`);
    remote.query(sql, function (err) {
    // overloaded args, either (err, result :object)
    // or (err, rows :array, columns :array)
    if (Array.isArray(arguments[1])) {
    // response to a 'select', 'show' or similar
    const rows = arguments[1],
    columns = arguments[2];
    console.log('rows', rows);
    console.log('columns', columns);
    conn.writeTextResult(rows, columns);
    } else {
    // response to an 'insert', 'update' or 'delete'
    const result = arguments[1];
    console.log('result', result);
    conn.writeOk(result);
    }
    });
    });

    conn.on('end', remote.end.bind(remote));
    });
    +

    MySQL Proxy

    +
    'use strict';

    const mysql = require('mysql2');
    const ClientFlags = require('mysql2/lib/constants/client.js');

    const server = mysql.createServer();
    server.listen(3307);

    server.on('connection', (conn) => {
    console.log('connection');

    conn.serverHandshake({
    protocolVersion: 10,
    serverVersion: 'node.js rocks',
    connectionId: 1234,
    statusFlags: 2,
    characterSet: 8,
    capabilityFlags: 0xffffff ^ ClientFlags.COMPRESS,
    });

    conn.on('field_list', (table, fields) => {
    console.log('field list:', table, fields);
    conn.writeEof();
    });

    const remote = mysql.createConnection({
    user: 'root',
    database: 'dbname',
    host: 'server.example.com',
    password: 'secret',
    });

    conn.on('query', (sql) => {
    console.log(`proxying query: ${sql}`);
    remote.query(sql, function (err) {
    // overloaded args, either (err, result :object)
    // or (err, rows :array, columns :array)
    if (Array.isArray(arguments[1])) {
    // response to a 'select', 'show' or similar
    const rows = arguments[1],
    columns = arguments[2];
    console.log('rows', rows);
    console.log('columns', columns);
    conn.writeTextResult(rows, columns);
    } else {
    // response to an 'insert', 'update' or 'delete'
    const result = arguments[1];
    console.log('result', result);
    conn.writeOk(result);
    }
    });
    });

    conn.on('end', remote.end.bind(remote));
    });
    \ No newline at end of file diff --git a/docs/examples/pool-test.html b/docs/examples/tests/pool.html similarity index 65% rename from docs/examples/pool-test.html rename to docs/examples/tests/pool.html index 8f9a650f57..2333cf0065 100644 --- a/docs/examples/pool-test.html +++ b/docs/examples/tests/pool.html @@ -1,14 +1,14 @@ - + - -Pool Test | Quickstart - - + +Pool | Quickstart + + -

    Pool Test

    -
    'use strict';

    const pool = require('mysql2').createPool({
    host: 'localhost',
    user: 'root',
    database: 'test',
    password: 'root',
    });

    setInterval(() => {
    for (let i = 0; i < 5; ++i) {
    pool.query((err, rows, fields) => {
    console.log(rows, fields);
    // Connection is automatically released once query resolves
    });
    }
    }, 1000);

    setInterval(() => {
    for (let i = 0; i < 5; ++i) {
    pool.getConnection((err, db) => {
    db.query('select sleep(0.5) as qqq', (err, rows, fields) => {
    console.log(rows, fields);
    db.release();
    });
    });
    }
    }, 1000);
    +

    Pool

    +
    'use strict';

    const pool = require('mysql2').createPool({
    host: 'localhost',
    user: 'root',
    database: 'test',
    password: 'root',
    });

    setInterval(() => {
    for (let i = 0; i < 5; ++i) {
    pool.query((err, rows, fields) => {
    console.log(rows, fields);
    // Connection is automatically released once query resolves
    });
    }
    }, 1000);

    setInterval(() => {
    for (let i = 0; i < 5; ++i) {
    pool.getConnection((err, db) => {
    db.query('select sleep(0.5) as qqq', (err, rows, fields) => {
    console.log(rows, fields);
    db.release();
    });
    });
    }
    }, 1000);
    \ No newline at end of file diff --git a/docs/examples/server.html b/docs/examples/tests/server.html similarity index 70% rename from docs/examples/server.html rename to docs/examples/tests/server.html index 1e51c58397..e8565d6131 100644 --- a/docs/examples/server.html +++ b/docs/examples/tests/server.html @@ -1,14 +1,14 @@ - + - -Server | Quickstart - - + +Server | Quickstart + + -

    Server

    -
    'use strict';

    const mysql = require('mysql2');
    const flags = require('mysql2/lib/constants/client.js');
    const auth = require('mysql2/lib/auth_41.js');

    function authenticate(params, cb) {
    console.log(params);
    const doubleSha = auth.doubleSha1('pass123');
    const isValid = auth.verifyToken(
    params.authPluginData1,
    params.authPluginData2,
    params.authToken,
    doubleSha
    );
    if (isValid) {
    cb(null);
    } else {
    // for list of codes lib/constants/errors.js
    cb(null, { message: 'wrong password dude', code: 1045 });
    }
    }

    const server = mysql.createServer();
    server.listen(3333);
    server.on('connection', (conn) => {
    // we can deny connection here:
    // conn.writeError({ message: 'secret', code: 123 });
    // conn.close();
    conn.serverHandshake({
    protocolVersion: 10,
    serverVersion: '5.6.10', // 'node.js rocks',
    connectionId: 1234,
    statusFlags: 2,
    characterSet: 8,
    // capabilityFlags: 0xffffff,
    // capabilityFlags: -2113931265,
    capabilityFlags: 2181036031,
    authCallback: authenticate,
    });

    conn.on('field_list', (table, fields) => {
    console.log('FIELD LIST:', table, fields);
    conn.writeEof();
    });

    conn.on('query', (query) => {
    conn.writeColumns([
    {
    catalog: 'def',
    schema: 'test',
    table: 'test_table',
    orgTable: 'test_table',
    name: 'beta',
    orgName: 'beta',
    characterSet: 33,
    columnLength: 384,
    columnType: 253,
    flags: 0,
    decimals: 0,
    },
    ]);
    conn.writeTextRow(['test тест テスト փորձարկում পরীক্ষা kiểm tra ']);
    conn.writeTextRow(['ტესტი પરીક્ષણ מבחן פּרובירן اختبار परीक्षण']);
    conn.writeEof();
    conn.close();
    });
    });
    +

    Server

    +
    'use strict';

    const mysql = require('mysql2');
    const flags = require('mysql2/lib/constants/client.js');
    const auth = require('mysql2/lib/auth_41.js');

    function authenticate(params, cb) {
    console.log(params);
    const doubleSha = auth.doubleSha1('pass123');
    const isValid = auth.verifyToken(
    params.authPluginData1,
    params.authPluginData2,
    params.authToken,
    doubleSha
    );
    if (isValid) {
    cb(null);
    } else {
    // for list of codes lib/constants/errors.js
    cb(null, { message: 'wrong password dude', code: 1045 });
    }
    }

    const server = mysql.createServer();
    server.listen(3333);
    server.on('connection', (conn) => {
    // we can deny connection here:
    // conn.writeError({ message: 'secret', code: 123 });
    // conn.close();
    conn.serverHandshake({
    protocolVersion: 10,
    serverVersion: '5.6.10', // 'node.js rocks',
    connectionId: 1234,
    statusFlags: 2,
    characterSet: 8,
    // capabilityFlags: 0xffffff,
    // capabilityFlags: -2113931265,
    capabilityFlags: 2181036031,
    authCallback: authenticate,
    });

    conn.on('field_list', (table, fields) => {
    console.log('FIELD LIST:', table, fields);
    conn.writeEof();
    });

    conn.on('query', (query) => {
    conn.writeColumns([
    {
    catalog: 'def',
    schema: 'test',
    table: 'test_table',
    orgTable: 'test_table',
    name: 'beta',
    orgName: 'beta',
    characterSet: 33,
    columnLength: 384,
    columnType: 253,
    flags: 0,
    decimals: 0,
    },
    ]);
    conn.writeTextRow(['test тест テスト փորձարկում পরীক্ষা kiểm tra ']);
    conn.writeTextRow(['ტესტი પરીક્ષણ מבחן פּרובירן اختبار परीक्षण']);
    conn.writeEof();
    conn.close();
    });
    });
    \ No newline at end of file diff --git a/docs/examples/typescript/basic-custom-class.html b/docs/examples/typescript/basic-custom-class.html index 2c01523a9b..c50865391d 100644 --- a/docs/examples/typescript/basic-custom-class.html +++ b/docs/examples/typescript/basic-custom-class.html @@ -2,13 +2,13 @@ - -Basic Custom Class | Quickstart - - + +Basic Custom Class | Quickstart + + -

    Basic Custom Class

    -
    /**
    * The types are explicity for learning purpose
    */

    import { PoolOptions } from 'mysql2/promise';
    import { MySQL } from './db.js';

    interface User extends RowDataPacket {
    id: number;
    name: string;
    }

    const access: PoolOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    };

    (async () => {
    const mysql = new MySQL(access);

    /** Deleting the `users` table, if it exists */
    await mysql.queryResult('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await mysql.queryResult(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await mysql.executeResult(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Getting users */
    const [users] = await mysql.queryRows(
    'SELECT * FROM `users` ORDER BY `name` ASC;'
    );

    users.forEach((user: User) => {
    console.log('-----------');
    console.log('id: ', user.id);
    console.log('name:', user.name);
    });

    await mysql.connection.end();
    })();

    /** Output
    *
    * Inserted: 4
    * -----------
    * id: 4
    * name: Gween
    * -----------
    * id: 2
    * name: John
    * -----------
    * id: 1
    * name: Josh
    * -----------
    * id: 3
    * name: Marie
    */
    +

    Basic Custom Class

    +
    /**
    * The types are explicity for learning purpose
    */

    import { PoolOptions } from 'mysql2/promise';
    import { MySQL } from './db.js';

    interface User extends RowDataPacket {
    id: number;
    name: string;
    }

    const access: PoolOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    };

    (async () => {
    const mysql = new MySQL(access);

    /** Deleting the `users` table, if it exists */
    await mysql.queryResult('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await mysql.queryResult(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await mysql.executeResult(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Getting users */
    const [users] = await mysql.queryRows(
    'SELECT * FROM `users` ORDER BY `name` ASC;'
    );

    users.forEach((user: User) => {
    console.log('-----------');
    console.log('id: ', user.id);
    console.log('name:', user.name);
    });

    await mysql.connection.end();
    })();

    /** Output
    *
    * Inserted: 4
    * -----------
    * id: 4
    * name: Gween
    * -----------
    * id: 2
    * name: John
    * -----------
    * id: 1
    * name: Josh
    * -----------
    * id: 3
    * name: Marie
    */
    \ No newline at end of file diff --git a/docs/examples/typescript/procedure-call/procedure-call-packet.html b/docs/examples/typescript/procedure-call/index.html similarity index 78% rename from docs/examples/typescript/procedure-call/procedure-call-packet.html rename to docs/examples/typescript/procedure-call/index.html index 3cbb17260c..5578b6cf96 100644 --- a/docs/examples/typescript/procedure-call/procedure-call-packet.html +++ b/docs/examples/typescript/procedure-call/index.html @@ -1,14 +1,14 @@ - + - -Procedure Call Packet | Quickstart - - + +Procedure Call Packet | Quickstart + + -

    Procedure Call Packet

    -
    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ProcedureCallPacket,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    id: number;
    name: string;
    }

    const isResultSetHeader = (data: unknown): data is ResultSetHeader => {
    if (!data || typeof data !== 'object') return false;

    const keys = [
    'fieldCount',
    'affectedRows',
    'insertId',
    'info',
    'serverStatus',
    'warningStatus',
    'changedRows',
    ];

    return keys.every((key) => key in data);
    };

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Deleting the `getUsers` procedure, if it exists */
    await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');

    /** Creating a procedure to get the users */
    await conn.query<ResultSetHeader>(`
    CREATE PROCEDURE getUsers()
    BEGIN
    SELECT * FROM users ORDER BY name ASC;
    END
    `);

    /** Getting users */
    const [procedureResult] =
    await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');

    procedureResult.forEach((users) => {
    /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */
    if (isResultSetHeader(users)) {
    console.log('----------------');
    console.log('Affected Rows:', users.affectedRows);
    } else {
    users.forEach((user) => {
    console.log('----------------');
    console.log('id: ', user.id);
    console.log('name:', user.name);
    });
    }
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * ----------------
    * id: 4
    * name: Gween
    * ----------------
    * id: 2
    * name: John
    * ----------------
    * id: 1
    * name: Josh
    * ----------------
    * id: 3
    * name: Marie
    * ----------------
    * Affected Rows: 0
    */
    +

    Procedure Call Packet

    +
    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ProcedureCallPacket,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    id: number;
    name: string;
    }

    const isResultSetHeader = (data: unknown): data is ResultSetHeader => {
    if (!data || typeof data !== 'object') return false;

    const keys = [
    'fieldCount',
    'affectedRows',
    'insertId',
    'info',
    'serverStatus',
    'warningStatus',
    'changedRows',
    ];

    return keys.every((key) => key in data);
    };

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Deleting the `getUsers` procedure, if it exists */
    await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');

    /** Creating a procedure to get the users */
    await conn.query<ResultSetHeader>(`
    CREATE PROCEDURE getUsers()
    BEGIN
    SELECT * FROM users ORDER BY name ASC;
    END
    `);

    /** Getting users */
    const [procedureResult] =
    await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');

    procedureResult.forEach((users) => {
    /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */
    if (isResultSetHeader(users)) {
    console.log('----------------');
    console.log('Affected Rows:', users.affectedRows);
    } else {
    users.forEach((user) => {
    console.log('----------------');
    console.log('id: ', user.id);
    console.log('name:', user.name);
    });
    }
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * ----------------
    * id: 4
    * name: Gween
    * ----------------
    * id: 2
    * name: John
    * ----------------
    * id: 1
    * name: Josh
    * ----------------
    * id: 3
    * name: Marie
    * ----------------
    * Affected Rows: 0
    */
    \ No newline at end of file diff --git a/docs/examples/typescript/procedure-call/row-as-array.html b/docs/examples/typescript/procedure-call/row-as-array.html index 93802eacf6..ab23e7344b 100644 --- a/docs/examples/typescript/procedure-call/row-as-array.html +++ b/docs/examples/typescript/procedure-call/row-as-array.html @@ -2,13 +2,13 @@ - -Procedure Call Packet (Row as Array) | Quickstart - - + +Procedure Call Packet (Row as Array) | Quickstart + + -

    Procedure Call Packet (Row as Array)

    -
    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ProcedureCallPacket,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    /** id */
    0: number;
    /** name */
    1: string;
    }

    const isResultSetHeader = (data: unknown): data is ResultSetHeader => {
    if (!data || typeof data !== 'object') return false;

    const keys = [
    'fieldCount',
    'affectedRows',
    'insertId',
    'info',
    'serverStatus',
    'warningStatus',
    'changedRows',
    ];

    return keys.every((key) => key in data);
    };

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    rowsAsArray: true,
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Deleting the `getUsers` procedure, if it exists */
    await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');

    /** Creating a procedure to get the users */
    await conn.query<ResultSetHeader>(`
    CREATE PROCEDURE getUsers()
    BEGIN
    SELECT * FROM users ORDER BY name ASC;
    END
    `);

    /** Getting users */
    const [procedureResult] =
    await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');

    procedureResult.forEach((users) => {
    /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */
    if (isResultSetHeader(users)) {
    console.log('----------------');
    console.log('Affected Rows:', users.affectedRows);
    } else {
    users.forEach((user) => {
    console.log('----------------');
    console.log('id: ', user[0]);
    console.log('name:', user[1]);
    });
    }
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * ----------------
    * id: 4
    * name: Gween
    * ----------------
    * id: 2
    * name: John
    * ----------------
    * id: 1
    * name: Josh
    * ----------------
    * id: 3
    * name: Marie
    * ----------------
    * Affected Rows: 0
    */
    +

    Procedure Call Packet (Row as Array)

    +
    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ProcedureCallPacket,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    /** id */
    0: number;
    /** name */
    1: string;
    }

    const isResultSetHeader = (data: unknown): data is ResultSetHeader => {
    if (!data || typeof data !== 'object') return false;

    const keys = [
    'fieldCount',
    'affectedRows',
    'insertId',
    'info',
    'serverStatus',
    'warningStatus',
    'changedRows',
    ];

    return keys.every((key) => key in data);
    };

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    rowsAsArray: true,
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Deleting the `getUsers` procedure, if it exists */
    await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');

    /** Creating a procedure to get the users */
    await conn.query<ResultSetHeader>(`
    CREATE PROCEDURE getUsers()
    BEGIN
    SELECT * FROM users ORDER BY name ASC;
    END
    `);

    /** Getting users */
    const [procedureResult] =
    await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');

    procedureResult.forEach((users) => {
    /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */
    if (isResultSetHeader(users)) {
    console.log('----------------');
    console.log('Affected Rows:', users.affectedRows);
    } else {
    users.forEach((user) => {
    console.log('----------------');
    console.log('id: ', user[0]);
    console.log('name:', user[1]);
    });
    }
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * ----------------
    * id: 4
    * name: Gween
    * ----------------
    * id: 2
    * name: John
    * ----------------
    * id: 1
    * name: Josh
    * ----------------
    * id: 3
    * name: Marie
    * ----------------
    * Affected Rows: 0
    */
    \ No newline at end of file diff --git a/docs/examples/typescript/row-data/row-data-packet.html b/docs/examples/typescript/row-data/index.html similarity index 69% rename from docs/examples/typescript/row-data/row-data-packet.html rename to docs/examples/typescript/row-data/index.html index dea540fee3..85cee71bb3 100644 --- a/docs/examples/typescript/row-data/row-data-packet.html +++ b/docs/examples/typescript/row-data/index.html @@ -1,14 +1,14 @@ - + - -Row Data Packet | Quickstart - - + +Row Data Packet | Quickstart + + -

    Row Data Packet

    -
    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    id: number;
    name: string;
    }

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Getting users */
    const [users] = await conn.query<User[]>(
    'SELECT * FROM `users` ORDER BY `name` ASC;'
    );

    users.forEach((user) => {
    console.log('-----------');
    console.log('id: ', user.id);
    console.log('name:', user.name);
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * -----------
    * id: 4
    * name: Gween
    * -----------
    * id: 2
    * name: John
    * -----------
    * id: 1
    * name: Josh
    * -----------
    * id: 3
    * name: Marie
    */
    +

    Row Data Packet

    +
    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    id: number;
    name: string;
    }

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Getting users */
    const [users] = await conn.query<User[]>(
    'SELECT * FROM `users` ORDER BY `name` ASC;'
    );

    users.forEach((user) => {
    console.log('-----------');
    console.log('id: ', user.id);
    console.log('name:', user.name);
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * -----------
    * id: 4
    * name: Gween
    * -----------
    * id: 2
    * name: John
    * -----------
    * id: 1
    * name: Josh
    * -----------
    * id: 3
    * name: Marie
    */
    \ No newline at end of file diff --git a/docs/examples/typescript/row-data/multi-statements.html b/docs/examples/typescript/row-data/multi-statements.html index 36f1c76729..7e467f19f6 100644 --- a/docs/examples/typescript/row-data/multi-statements.html +++ b/docs/examples/typescript/row-data/multi-statements.html @@ -2,13 +2,13 @@ - -Row Data Packet (Multi Statements) | Quickstart - - + +Row Data Packet (Multi Statements) | Quickstart + + -

    Row Data Packet (Multi Statements)

    +

    Row Data Packet (Multi Statements)

    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    id: number;
    name: string;
    }

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    multipleStatements: true,
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Getting users */
    const [rows] = await conn.query<User[][]>(
    [
    'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2;',
    'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2 OFFSET 2;',
    ].join(' ')
    );

    rows.forEach((users) => {
    users.forEach((user) => {
    console.log('-----------');
    console.log('id: ', user.id);
    console.log('name:', user.name);
    });
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * -----------
    * id: 4
    * name: Gween
    * -----------
    * id: 2
    * name: John
    * -----------
    * id: 1
    * name: Josh
    * -----------
    * id: 3
    * name: Marie
    */
    \ No newline at end of file diff --git a/docs/examples/typescript/row-data/row-as-array-multi-statements.html b/docs/examples/typescript/row-data/row-as-array-multi-statements.html index 2207177a2e..c345b130d4 100644 --- a/docs/examples/typescript/row-data/row-as-array-multi-statements.html +++ b/docs/examples/typescript/row-data/row-as-array-multi-statements.html @@ -2,13 +2,13 @@ - -Row Data Packet (Multi Statements and Row as Array) | Quickstart - - + +Row Data Packet (Multi Statements and Row as Array) | Quickstart + + -

    Row Data Packet (Multi Statements and Row as Array)

    +

    Row Data Packet (Multi Statements and Row as Array)

    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    /** id */
    0: number;
    /** name */
    1: string;
    }

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    multipleStatements: true,
    rowsAsArray: true,
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Getting users */
    const [rows] = await conn.query<User[][]>(
    [
    'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2;',
    'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2 OFFSET 2;',
    ].join(' ')
    );

    rows.forEach((users) => {
    users.forEach((user) => {
    console.log('-----------');
    console.log('id: ', user[0]);
    console.log('name:', user[1]);
    });
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * -----------
    * id: 4
    * name: Gween
    * -----------
    * id: 2
    * name: John
    * -----------
    * id: 1
    * name: Josh
    * -----------
    * id: 3
    * name: Marie
    */
    \ No newline at end of file diff --git a/docs/examples/typescript/row-data/row-as-array.html b/docs/examples/typescript/row-data/row-as-array.html index ae115cdf7b..b24076129c 100644 --- a/docs/examples/typescript/row-data/row-as-array.html +++ b/docs/examples/typescript/row-data/row-as-array.html @@ -2,13 +2,13 @@ - -Row Data Packet (Row as Array) | Quickstart - - + +Row Data Packet (Row as Array) | Quickstart + + -

    Row Data Packet (Row as Array)

    -
    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    /** id */
    0: number;
    /** name */
    1: string;
    }

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    rowsAsArray: true,
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Getting users */
    const [users] = await conn.query<User[]>(
    'SELECT * FROM `users` ORDER BY `name` ASC;'
    );

    users.forEach((user) => {
    console.log('-----------');
    console.log('id: ', user[0]);
    console.log('name:', user[1]);
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * -----------
    * id: 4
    * name: Gween
    * -----------
    * id: 2
    * name: John
    * -----------
    * id: 1
    * name: Josh
    * -----------
    * id: 3
    * name: Marie
    */
    +

    Row Data Packet (Row as Array)

    +
    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    /** id */
    0: number;
    /** name */
    1: string;
    }

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    rowsAsArray: true,
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Getting users */
    const [users] = await conn.query<User[]>(
    'SELECT * FROM `users` ORDER BY `name` ASC;'
    );

    users.forEach((user) => {
    console.log('-----------');
    console.log('id: ', user[0]);
    console.log('name:', user[1]);
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * -----------
    * id: 4
    * name: Gween
    * -----------
    * id: 2
    * name: John
    * -----------
    * id: 1
    * name: Josh
    * -----------
    * id: 3
    * name: Marie
    */
    \ No newline at end of file diff --git a/docs/faq.html b/docs/faq.html index 2e7e86f211..fdd1464d94 100644 --- a/docs/faq.html +++ b/docs/faq.html @@ -2,10 +2,10 @@ - -FAQ - - + +FAQ + +
    diff --git a/docs/faq/how-to-handle-errors.html b/docs/faq/how-to-handle-errors.html index ba2380ce8a..4568859004 100644 --- a/docs/faq/how-to-handle-errors.html +++ b/docs/faq/how-to-handle-errors.html @@ -2,10 +2,10 @@ - -How to handle errors? | Quickstart - - + +How to handle errors? | Quickstart + +

    How to handle errors?

    diff --git a/docs/history-and-why-mysq2.html b/docs/history-and-why-mysq2.html index 58f20ec228..465888f393 100644 --- a/docs/history-and-why-mysq2.html +++ b/docs/history-and-why-mysq2.html @@ -2,10 +2,10 @@ - -History and Why MySQL2 | Quickstart - - + +History and Why MySQL2 | Quickstart + +

    History and Why MySQL2

    diff --git a/docs/stability-badges.html b/docs/stability-badges.html index a120965794..44de63aa52 100644 --- a/docs/stability-badges.html +++ b/docs/stability-badges.html @@ -2,10 +2,10 @@ - -Stability Badges | Quickstart - - + +Stability Badges | Quickstart + +

    Stability Badges

    diff --git a/docs/tags.html b/docs/tags.html new file mode 100644 index 0000000000..8ebd0d7e58 --- /dev/null +++ b/docs/tags.html @@ -0,0 +1,13 @@ + + + + + +Tags | Quickstart + + + + + + + \ No newline at end of file diff --git a/docs/tags/create-connection.html b/docs/tags/create-connection.html new file mode 100644 index 0000000000..d925334021 --- /dev/null +++ b/docs/tags/create-connection.html @@ -0,0 +1,13 @@ + + + + + +One doc tagged with "createConnection" | Quickstart + + + + + + + \ No newline at end of file diff --git a/docs/tags/create-pool-cluster.html b/docs/tags/create-pool-cluster.html new file mode 100644 index 0000000000..5ef3445806 --- /dev/null +++ b/docs/tags/create-pool-cluster.html @@ -0,0 +1,13 @@ + + + + + +One doc tagged with "createPoolCluster" | Quickstart + + + + + + + \ No newline at end of file diff --git a/docs/tags/create-pool.html b/docs/tags/create-pool.html new file mode 100644 index 0000000000..3342ffa42b --- /dev/null +++ b/docs/tags/create-pool.html @@ -0,0 +1,13 @@ + + + + + +One doc tagged with "createPool" | Quickstart + + + + + + + \ No newline at end of file diff --git a/docs/tags/execute.html b/docs/tags/execute.html new file mode 100644 index 0000000000..d289411546 --- /dev/null +++ b/docs/tags/execute.html @@ -0,0 +1,13 @@ + + + + + +5 docs tagged with "execute" | Quickstart + + + + +

    5 docs tagged with "execute"

    View All Tags
    + + \ No newline at end of file diff --git a/docs/tags/parameters.html b/docs/tags/parameters.html new file mode 100644 index 0000000000..e7faffc1be --- /dev/null +++ b/docs/tags/parameters.html @@ -0,0 +1,13 @@ + + + + + +4 docs tagged with "Parameters" | Quickstart + + + + + + + \ No newline at end of file diff --git a/docs/tags/placeholders.html b/docs/tags/placeholders.html new file mode 100644 index 0000000000..adbaa100f1 --- /dev/null +++ b/docs/tags/placeholders.html @@ -0,0 +1,13 @@ + + + + + +4 docs tagged with "Placeholders" | Quickstart + + + + + + + \ No newline at end of file diff --git a/docs/tags/prepared-statements.html b/docs/tags/prepared-statements.html new file mode 100644 index 0000000000..4b962436ff --- /dev/null +++ b/docs/tags/prepared-statements.html @@ -0,0 +1,13 @@ + + + + + +5 docs tagged with "Prepared Statements" | Quickstart + + + + +

    5 docs tagged with "Prepared Statements"

    View All Tags
    + + \ No newline at end of file diff --git a/docs/tags/query.html b/docs/tags/query.html new file mode 100644 index 0000000000..5370368a95 --- /dev/null +++ b/docs/tags/query.html @@ -0,0 +1,13 @@ + + + + + +4 docs tagged with "query" | Quickstart + + + + +

    4 docs tagged with "query"

    View All Tags

    DELETE

    The examples below also work for the execute method.

    INSERT

    The examples below also work for the execute method.

    SELECT

    The examples below also work for the execute method.

    UPDATE

    The examples below also work for the execute method.

    + + \ No newline at end of file diff --git a/docs/tags/rds.html b/docs/tags/rds.html new file mode 100644 index 0000000000..5f39972222 --- /dev/null +++ b/docs/tags/rds.html @@ -0,0 +1,13 @@ + + + + + +3 docs tagged with "RDS" | Quickstart + + + + +

    3 docs tagged with "RDS"

    View All Tags

    createConnection

    For queries please see the Simple Queries and Prepared Statements examples.

    createPool

    For queries please see the Simple Queries and Prepared Statements examples.

    createPoolCluster

    For queries please see the Simple Queries and Prepared Statements examples.

    + + \ No newline at end of file diff --git a/docs/tags/sha-1.html b/docs/tags/sha-1.html new file mode 100644 index 0000000000..b0545bd615 --- /dev/null +++ b/docs/tags/sha-1.html @@ -0,0 +1,13 @@ + + + + + +3 docs tagged with "SHA1" | Quickstart + + + + +

    3 docs tagged with "SHA1"

    View All Tags

    createConnection

    For queries please see the Simple Queries and Prepared Statements examples.

    createPool

    For queries please see the Simple Queries and Prepared Statements examples.

    createPoolCluster

    For queries please see the Simple Queries and Prepared Statements examples.

    + + \ No newline at end of file diff --git a/docs/tags/socks.html b/docs/tags/socks.html new file mode 100644 index 0000000000..e14837ddc8 --- /dev/null +++ b/docs/tags/socks.html @@ -0,0 +1,13 @@ + + + + + +3 docs tagged with "Socks" | Quickstart + + + + +

    3 docs tagged with "Socks"

    View All Tags

    createConnection

    For queries please see the Simple Queries and Prepared Statements examples.

    createPool

    For queries please see the Simple Queries and Prepared Statements examples.

    createPoolCluster

    For queries please see the Simple Queries and Prepared Statements examples.

    + + \ No newline at end of file diff --git a/docs/tags/ssl.html b/docs/tags/ssl.html new file mode 100644 index 0000000000..d0e3be0a29 --- /dev/null +++ b/docs/tags/ssl.html @@ -0,0 +1,13 @@ + + + + + +3 docs tagged with "SSL" | Quickstart + + + + +

    3 docs tagged with "SSL"

    View All Tags

    createConnection

    For queries please see the Simple Queries and Prepared Statements examples.

    createPool

    For queries please see the Simple Queries and Prepared Statements examples.

    createPoolCluster

    For queries please see the Simple Queries and Prepared Statements examples.

    + + \ No newline at end of file diff --git a/docs/tags/uri.html b/docs/tags/uri.html new file mode 100644 index 0000000000..2c69d19743 --- /dev/null +++ b/docs/tags/uri.html @@ -0,0 +1,13 @@ + + + + + +3 docs tagged with "URI" | Quickstart + + + + +

    3 docs tagged with "URI"

    View All Tags

    createConnection

    For queries please see the Simple Queries and Prepared Statements examples.

    createPool

    For queries please see the Simple Queries and Prepared Statements examples.

    createPoolCluster

    For queries please see the Simple Queries and Prepared Statements examples.

    + + \ No newline at end of file diff --git a/index.html b/index.html index 221fb7da38..d4bc3acbb4 100644 --- a/index.html +++ b/index.html @@ -2,10 +2,10 @@ - -Quickstart - - + +Quickstart + +
    diff --git a/pt-BR/404.html b/pt-BR/404.html index f6247b150c..e2948c8481 100644 --- a/pt-BR/404.html +++ b/pt-BR/404.html @@ -2,12 +2,12 @@ - -Página não encontrada | Quickstart - - + +Página não encontrada | Quickstart + + -

    Página não encontrada

    Não foi possível encontrar o que você está procurando.

    Entre em contato com o proprietário do site que lhe trouxe para cá e lhe informe que o link está quebrado.

    +

    Página não encontrada

    Não foi possível encontrar o que você está procurando.

    Entre em contato com o proprietário do site que lhe trouxe para cá e lhe informe que o link está quebrado.

    \ No newline at end of file diff --git a/pt-BR/assets/css/styles.01f7ab29.css b/pt-BR/assets/css/styles.01f7ab29.css deleted file mode 100644 index c06a1d018b..0000000000 --- a/pt-BR/assets/css/styles.01f7ab29.css +++ /dev/null @@ -1 +0,0 @@ -.col,.container{padding:0 var(--ifm-spacing-horizontal);width:100%}.markdown>h2,.markdown>h3,.markdown>h4,.markdown>h5,.markdown>h6{margin-bottom:calc(var(--ifm-heading-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown li,body{word-wrap:break-word}body,ol ol,ol ul,ul ol,ul ul{margin:0}pre,table{overflow:auto}blockquote,pre{margin:0 0 var(--ifm-spacing-vertical)}.breadcrumbs__link,.button{transition-timing-function:var(--ifm-transition-timing-default)}.button,code{vertical-align:middle}.button--outline.button--active,.button--outline:active,.button--outline:hover,:root{--ifm-button-color:var(--ifm-font-color-base-inverse)}.menu__link:hover,a{transition:color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--dark,:root{--ifm-navbar-link-hover-color:var(--ifm-color-primary)}.menu,.navbar-sidebar{overflow-x:hidden}:root,html[data-theme=dark]{--ifm-color-emphasis-500:var(--ifm-color-gray-500)}[data-theme=dark] details.history,[data-theme=light] details.history{--history-summary-icon:var(--docusaurus-details-decoration-color);--history-separator:var(--ifm-table-border-color)}.toggleButton_gllP,html{-webkit-tap-highlight-color:transparent}*,.loader,.loadingRing_RJI3 div{box-sizing:border-box}.clean-list,.containsTaskList_mC6p,.details_lb9f>summary,.dropdown__menu,.menu__list{list-style:none}:root{--ifm-color-scheme:light;--ifm-dark-value:10%;--ifm-darker-value:15%;--ifm-darkest-value:30%;--ifm-light-value:15%;--ifm-lighter-value:30%;--ifm-lightest-value:50%;--ifm-contrast-background-value:90%;--ifm-contrast-foreground-value:70%;--ifm-contrast-background-dark-value:70%;--ifm-contrast-foreground-dark-value:90%;--ifm-color-primary:#3578e5;--ifm-color-secondary:#ebedf0;--ifm-color-success:#00a400;--ifm-color-info:#54c7ec;--ifm-color-warning:#ffba00;--ifm-color-danger:#fa383e;--ifm-color-primary-dark:#306cce;--ifm-color-primary-darker:#2d66c3;--ifm-color-primary-darkest:#2554a0;--ifm-color-primary-light:#538ce9;--ifm-color-primary-lighter:#72a1ed;--ifm-color-primary-lightest:#9abcf2;--ifm-color-primary-contrast-background:#ebf2fc;--ifm-color-primary-contrast-foreground:#102445;--ifm-color-secondary-dark:#d4d5d8;--ifm-color-secondary-darker:#c8c9cc;--ifm-color-secondary-darkest:#a4a6a8;--ifm-color-secondary-light:#eef0f2;--ifm-color-secondary-lighter:#f1f2f5;--ifm-color-secondary-lightest:#f5f6f8;--ifm-color-secondary-contrast-background:#fdfdfe;--ifm-color-secondary-contrast-foreground:#474748;--ifm-color-success-dark:#009400;--ifm-color-success-darker:#008b00;--ifm-color-success-darkest:#007300;--ifm-color-success-light:#26b226;--ifm-color-success-lighter:#4dbf4d;--ifm-color-success-lightest:#80d280;--ifm-color-success-contrast-background:#e6f6e6;--ifm-color-success-contrast-foreground:#003100;--ifm-color-info-dark:#4cb3d4;--ifm-color-info-darker:#47a9c9;--ifm-color-info-darkest:#3b8ba5;--ifm-color-info-light:#6ecfef;--ifm-color-info-lighter:#87d8f2;--ifm-color-info-lightest:#aae3f6;--ifm-color-info-contrast-background:#eef9fd;--ifm-color-info-contrast-foreground:#193c47;--ifm-color-warning-dark:#e6a700;--ifm-color-warning-darker:#d99e00;--ifm-color-warning-darkest:#b38200;--ifm-color-warning-light:#ffc426;--ifm-color-warning-lighter:#ffcf4d;--ifm-color-warning-lightest:#ffdd80;--ifm-color-warning-contrast-background:#fff8e6;--ifm-color-warning-contrast-foreground:#4d3800;--ifm-color-danger-dark:#e13238;--ifm-color-danger-darker:#d53035;--ifm-color-danger-darkest:#af272b;--ifm-color-danger-light:#fb565b;--ifm-color-danger-lighter:#fb7478;--ifm-color-danger-lightest:#fd9c9f;--ifm-color-danger-contrast-background:#ffebec;--ifm-color-danger-contrast-foreground:#4b1113;--ifm-color-white:#fff;--ifm-color-black:#000;--ifm-color-gray-0:var(--ifm-color-white);--ifm-color-gray-100:#f5f6f7;--ifm-color-gray-200:#ebedf0;--ifm-color-gray-300:#dadde1;--ifm-color-gray-400:#ccd0d5;--ifm-color-gray-500:#bec3c9;--ifm-color-gray-600:#8d949e;--ifm-color-gray-700:#606770;--ifm-color-gray-800:#444950;--ifm-color-gray-900:#1c1e21;--ifm-color-gray-1000:var(--ifm-color-black);--ifm-color-emphasis-0:var(--ifm-color-gray-0);--ifm-color-emphasis-100:var(--ifm-color-gray-100);--ifm-color-emphasis-200:var(--ifm-color-gray-200);--ifm-color-emphasis-300:var(--ifm-color-gray-300);--ifm-color-emphasis-400:var(--ifm-color-gray-400);--ifm-color-emphasis-600:var(--ifm-color-gray-600);--ifm-color-emphasis-700:var(--ifm-color-gray-700);--ifm-color-emphasis-800:var(--ifm-color-gray-800);--ifm-color-emphasis-900:var(--ifm-color-gray-900);--ifm-color-emphasis-1000:var(--ifm-color-gray-1000);--ifm-color-content:var(--ifm-color-emphasis-900);--ifm-color-content-inverse:var(--ifm-color-emphasis-0);--ifm-color-content-secondary:#525860;--ifm-background-color:#0000;--ifm-background-surface-color:var(--ifm-color-content-inverse);--ifm-global-border-width:1px;--ifm-global-radius:0.4rem;--ifm-hover-overlay:#0000000d;--ifm-font-color-base:var(--ifm-color-content);--ifm-font-color-base-inverse:var(--ifm-color-content-inverse);--ifm-font-color-secondary:var(--ifm-color-content-secondary);--ifm-font-family-base:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ifm-font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--ifm-font-size-base:100%;--ifm-font-weight-light:300;--ifm-font-weight-normal:400;--ifm-font-weight-semibold:500;--ifm-font-weight-bold:700;--ifm-font-weight-base:var(--ifm-font-weight-normal);--ifm-line-height-base:1.65;--ifm-global-spacing:1rem;--ifm-spacing-vertical:var(--ifm-global-spacing);--ifm-spacing-horizontal:var(--ifm-global-spacing);--ifm-transition-fast:200ms;--ifm-transition-slow:400ms;--ifm-transition-timing-default:cubic-bezier(0.08,0.52,0.52,1);--ifm-global-shadow-lw:0 1px 2px 0 #0000001a;--ifm-global-shadow-md:0 5px 40px #0003;--ifm-global-shadow-tl:0 12px 28px 0 #0003,0 2px 4px 0 #0000001a;--ifm-z-index-dropdown:100;--ifm-z-index-fixed:200;--ifm-z-index-overlay:400;--ifm-container-width:1140px;--ifm-container-width-xl:1320px;--ifm-code-background:#f6f7f8;--ifm-code-border-radius:var(--ifm-global-radius);--ifm-code-font-size:90%;--ifm-code-padding-horizontal:0.1rem;--ifm-code-padding-vertical:0.1rem;--ifm-pre-background:var(--ifm-code-background);--ifm-pre-border-radius:var(--ifm-code-border-radius);--ifm-pre-color:inherit;--ifm-pre-line-height:1.45;--ifm-pre-padding:1rem;--ifm-heading-color:inherit;--ifm-heading-margin-top:0;--ifm-heading-margin-bottom:var(--ifm-spacing-vertical);--ifm-heading-font-family:var(--ifm-font-family-base);--ifm-heading-font-weight:var(--ifm-font-weight-bold);--ifm-heading-line-height:1.25;--ifm-h1-font-size:2rem;--ifm-h2-font-size:1.5rem;--ifm-h3-font-size:1.25rem;--ifm-h4-font-size:1rem;--ifm-h5-font-size:0.875rem;--ifm-h6-font-size:0.85rem;--ifm-image-alignment-padding:1.25rem;--ifm-leading-desktop:1.25;--ifm-leading:calc(var(--ifm-leading-desktop)*1rem);--ifm-list-left-padding:2rem;--ifm-list-margin:1rem;--ifm-list-item-margin:0.25rem;--ifm-list-paragraph-margin:1rem;--ifm-table-cell-padding:0.75rem;--ifm-table-background:#0000;--ifm-table-stripe-background:#00000008;--ifm-table-border-width:1px;--ifm-table-border-color:var(--ifm-color-emphasis-300);--ifm-table-head-background:inherit;--ifm-table-head-color:inherit;--ifm-table-head-font-weight:var(--ifm-font-weight-bold);--ifm-table-cell-color:inherit;--ifm-link-color:var(--ifm-color-primary);--ifm-link-decoration:none;--ifm-link-hover-color:var(--ifm-link-color);--ifm-link-hover-decoration:underline;--ifm-paragraph-margin-bottom:var(--ifm-leading);--ifm-blockquote-font-size:var(--ifm-font-size-base);--ifm-blockquote-border-left-width:2px;--ifm-blockquote-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-blockquote-padding-vertical:0;--ifm-blockquote-shadow:none;--ifm-blockquote-color:var(--ifm-color-emphasis-800);--ifm-blockquote-border-color:var(--ifm-color-emphasis-300);--ifm-hr-background-color:var(--ifm-color-emphasis-500);--ifm-hr-height:1px;--ifm-hr-margin-vertical:1.5rem;--ifm-scrollbar-size:7px;--ifm-scrollbar-track-background-color:#f1f1f1;--ifm-scrollbar-thumb-background-color:silver;--ifm-scrollbar-thumb-hover-background-color:#a7a7a7;--ifm-alert-background-color:inherit;--ifm-alert-border-color:inherit;--ifm-alert-border-radius:var(--ifm-global-radius);--ifm-alert-border-width:0px;--ifm-alert-border-left-width:5px;--ifm-alert-color:var(--ifm-font-color-base);--ifm-alert-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-alert-padding-vertical:var(--ifm-spacing-vertical);--ifm-alert-shadow:var(--ifm-global-shadow-lw);--ifm-avatar-intro-margin:1rem;--ifm-avatar-intro-alignment:inherit;--ifm-avatar-photo-size:3rem;--ifm-badge-background-color:inherit;--ifm-badge-border-color:inherit;--ifm-badge-border-radius:var(--ifm-global-radius);--ifm-badge-border-width:var(--ifm-global-border-width);--ifm-badge-color:var(--ifm-color-white);--ifm-badge-padding-horizontal:calc(var(--ifm-spacing-horizontal)*0.5);--ifm-badge-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-breadcrumb-border-radius:1.5rem;--ifm-breadcrumb-spacing:0.5rem;--ifm-breadcrumb-color-active:var(--ifm-color-primary);--ifm-breadcrumb-item-background-active:var(--ifm-hover-overlay);--ifm-breadcrumb-padding-horizontal:0.8rem;--ifm-breadcrumb-padding-vertical:0.4rem;--ifm-breadcrumb-size-multiplier:1;--ifm-breadcrumb-separator:url('data:image/svg+xml;utf8,');--ifm-breadcrumb-separator-filter:none;--ifm-breadcrumb-separator-size:0.5rem;--ifm-breadcrumb-separator-size-multiplier:1.25;--ifm-button-background-color:inherit;--ifm-button-border-color:var(--ifm-button-background-color);--ifm-button-border-width:var(--ifm-global-border-width);--ifm-button-font-weight:var(--ifm-font-weight-bold);--ifm-button-padding-horizontal:1.5rem;--ifm-button-padding-vertical:0.375rem;--ifm-button-size-multiplier:1;--ifm-button-transition-duration:var(--ifm-transition-fast);--ifm-button-border-radius:calc(var(--ifm-global-radius)*var(--ifm-button-size-multiplier));--ifm-button-group-spacing:2px;--ifm-card-background-color:var(--ifm-background-surface-color);--ifm-card-border-radius:calc(var(--ifm-global-radius)*2);--ifm-card-horizontal-spacing:var(--ifm-global-spacing);--ifm-card-vertical-spacing:var(--ifm-global-spacing);--ifm-toc-border-color:var(--ifm-color-emphasis-300);--ifm-toc-link-color:var(--ifm-color-content-secondary);--ifm-toc-padding-vertical:0.5rem;--ifm-toc-padding-horizontal:0.5rem;--ifm-dropdown-background-color:var(--ifm-background-surface-color);--ifm-dropdown-font-weight:var(--ifm-font-weight-semibold);--ifm-dropdown-link-color:var(--ifm-font-color-base);--ifm-dropdown-hover-background-color:var(--ifm-hover-overlay);--ifm-footer-background-color:var(--ifm-color-emphasis-100);--ifm-footer-color:inherit;--ifm-footer-link-color:var(--ifm-color-emphasis-700);--ifm-footer-link-hover-color:var(--ifm-color-primary);--ifm-footer-link-horizontal-spacing:0.5rem;--ifm-footer-padding-horizontal:calc(var(--ifm-spacing-horizontal)*2);--ifm-footer-padding-vertical:calc(var(--ifm-spacing-vertical)*2);--ifm-footer-title-color:inherit;--ifm-footer-logo-max-width:min(30rem,90vw);--ifm-hero-background-color:var(--ifm-background-surface-color);--ifm-hero-text-color:var(--ifm-color-emphasis-800);--ifm-menu-color:var(--ifm-color-emphasis-700);--ifm-menu-color-active:var(--ifm-color-primary);--ifm-menu-color-background-active:var(--ifm-hover-overlay);--ifm-menu-color-background-hover:var(--ifm-hover-overlay);--ifm-menu-link-padding-horizontal:0.75rem;--ifm-menu-link-padding-vertical:0.375rem;--ifm-menu-link-sublist-icon:url('data:image/svg+xml;utf8,');--ifm-menu-link-sublist-icon-filter:none;--ifm-navbar-background-color:var(--ifm-background-surface-color);--ifm-navbar-height:3.75rem;--ifm-navbar-item-padding-horizontal:0.75rem;--ifm-navbar-item-padding-vertical:0.25rem;--ifm-navbar-link-color:var(--ifm-font-color-base);--ifm-navbar-link-active-color:var(--ifm-link-color);--ifm-navbar-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-navbar-padding-vertical:calc(var(--ifm-spacing-vertical)*0.5);--ifm-navbar-shadow:var(--ifm-global-shadow-lw);--ifm-navbar-search-input-background-color:var(--ifm-color-emphasis-200);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-800);--ifm-navbar-search-input-placeholder-color:var(--ifm-color-emphasis-500);--ifm-navbar-search-input-icon:url('data:image/svg+xml;utf8,');--ifm-navbar-sidebar-width:83vw;--ifm-pagination-border-radius:var(--ifm-global-radius);--ifm-pagination-color-active:var(--ifm-color-primary);--ifm-pagination-font-size:1rem;--ifm-pagination-item-active-background:var(--ifm-hover-overlay);--ifm-pagination-page-spacing:0.2em;--ifm-pagination-padding-horizontal:calc(var(--ifm-spacing-horizontal)*1);--ifm-pagination-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-pagination-nav-border-radius:var(--ifm-global-radius);--ifm-pagination-nav-color-hover:var(--ifm-color-primary);--ifm-pills-color-active:var(--ifm-color-primary);--ifm-pills-color-background-active:var(--ifm-hover-overlay);--ifm-pills-spacing:0.125rem;--ifm-tabs-color:var(--ifm-font-color-secondary);--ifm-tabs-color-active:var(--ifm-color-primary);--ifm-tabs-color-active-border:var(--ifm-tabs-color-active);--ifm-tabs-padding-horizontal:1rem;--ifm-tabs-padding-vertical:1rem;--docusaurus-progress-bar-color:var(--ifm-color-primary);--ifm-color-primary:#45aaf2;--ifm-color-primary-dark:#3d98d1;--ifm-color-primary-darker:#3788bf;--ifm-color-primary-darkest:#2d6e99;--ifm-color-primary-light:#66b5f8;--ifm-color-primary-lighter:#80bff9;--ifm-color-primary-lightest:#99c9fa;--ifm-code-font-size:95%;--docusaurus-highlighted-code-line-bg:#21657e0d;--ifm-table-stripe-background:#c6ddff!important;--ifm-table-background:#fdfdfd7a!important;--docusaurus-announcement-bar-height:auto;--docusaurus-tag-list-border:var(--ifm-color-emphasis-300);--docusaurus-collapse-button-bg:#0000;--docusaurus-collapse-button-bg-hover:#0000001a;--doc-sidebar-width:300px;--doc-sidebar-hidden-width:30px}.badge--danger,.badge--info,.badge--primary,.badge--secondary,.badge--success,.badge--warning{--ifm-badge-border-color:var(--ifm-badge-background-color)}.button--link,.button--outline{--ifm-button-background-color:#0000}html{-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%;background-color:var(--ifm-background-color);color:var(--ifm-font-color-base);color-scheme:var(--ifm-color-scheme);font:var(--ifm-font-size-base)/var(--ifm-line-height-base) var(--ifm-font-family-base);text-rendering:optimizelegibility}iframe{border:0;color-scheme:auto}.container{margin:0 auto;max-width:var(--ifm-container-width)}.container--fluid{max-width:inherit}.row{display:flex;flex-wrap:wrap;margin:0 calc(var(--ifm-spacing-horizontal)*-1)}.list_eTzJ article:last-child,.margin-bottom--none,.margin-vert--none,.markdown>:last-child{margin-bottom:0!important}.margin-top--none,.margin-vert--none,.tabItem_LNqP{margin-top:0!important}.row--no-gutters{margin-left:0;margin-right:0}.margin-horiz--none,.margin-right--none{margin-right:0!important}.row--no-gutters>.col{padding-left:0;padding-right:0}.row--align-top{align-items:flex-start}.row--align-bottom{align-items:flex-end}.menuExternalLink_NmtK,.row--align-center{align-items:center}.row--align-stretch{align-items:stretch}.row--align-baseline{align-items:baseline}.col{--ifm-col-width:100%;flex:1 0;margin-left:0;max-width:var(--ifm-col-width)}.padding-bottom--none,.padding-vert--none{padding-bottom:0!important}.padding-top--none,.padding-vert--none{padding-top:0!important}.padding-horiz--none,.padding-left--none{padding-left:0!important}.padding-horiz--none,.padding-right--none{padding-right:0!important}.col[class*=col--]{flex:0 0 var(--ifm-col-width)}.col--1{--ifm-col-width:8.33333%}.col--offset-1{margin-left:8.33333%}.col--2{--ifm-col-width:16.66667%}.col--offset-2{margin-left:16.66667%}.col--3{--ifm-col-width:25%}.col--offset-3{margin-left:25%}.col--4{--ifm-col-width:33.33333%}.col--offset-4{margin-left:33.33333%}.col--5{--ifm-col-width:41.66667%}.col--offset-5{margin-left:41.66667%}.col--6{--ifm-col-width:50%}.col--offset-6{margin-left:50%}.col--7{--ifm-col-width:58.33333%}.col--offset-7{margin-left:58.33333%}.col--8{--ifm-col-width:66.66667%}.col--offset-8{margin-left:66.66667%}.col--9{--ifm-col-width:75%}.col--offset-9{margin-left:75%}.col--10{--ifm-col-width:83.33333%}.col--offset-10{margin-left:83.33333%}.col--11{--ifm-col-width:91.66667%}.col--offset-11{margin-left:91.66667%}.col--12{--ifm-col-width:100%}.col--offset-12{margin-left:100%}.margin-horiz--none,.margin-left--none{margin-left:0!important}.margin--none{margin:0!important}.margin-bottom--xs,.margin-vert--xs{margin-bottom:.25rem!important}.margin-top--xs,.margin-vert--xs{margin-top:.25rem!important}.margin-horiz--xs,.margin-left--xs{margin-left:.25rem!important}.margin-horiz--xs,.margin-right--xs{margin-right:.25rem!important}.margin--xs{margin:.25rem!important}.margin-bottom--sm,.margin-vert--sm{margin-bottom:.5rem!important}.margin-top--sm,.margin-vert--sm{margin-top:.5rem!important}.margin-horiz--sm,.margin-left--sm{margin-left:.5rem!important}.margin-horiz--sm,.margin-right--sm{margin-right:.5rem!important}.margin--sm{margin:.5rem!important}.margin-bottom--md,.margin-vert--md{margin-bottom:1rem!important}.margin-top--md,.margin-vert--md{margin-top:1rem!important}.margin-horiz--md,.margin-left--md{margin-left:1rem!important}.margin-horiz--md,.margin-right--md{margin-right:1rem!important}.margin--md{margin:1rem!important}.margin-bottom--lg,.margin-vert--lg{margin-bottom:2rem!important}.margin-top--lg,.margin-vert--lg{margin-top:2rem!important}.margin-horiz--lg,.margin-left--lg{margin-left:2rem!important}.margin-horiz--lg,.margin-right--lg{margin-right:2rem!important}.margin--lg{margin:2rem!important}.margin-bottom--xl,.margin-vert--xl{margin-bottom:5rem!important}.margin-top--xl,.margin-vert--xl{margin-top:5rem!important}.margin-horiz--xl,.margin-left--xl{margin-left:5rem!important}.margin-horiz--xl,.margin-right--xl{margin-right:5rem!important}.margin--xl{margin:5rem!important}.padding--none{padding:0!important}.padding-bottom--xs,.padding-vert--xs{padding-bottom:.25rem!important}.padding-top--xs,.padding-vert--xs{padding-top:.25rem!important}.padding-horiz--xs,.padding-left--xs{padding-left:.25rem!important}.padding-horiz--xs,.padding-right--xs{padding-right:.25rem!important}.padding--xs{padding:.25rem!important}.padding-bottom--sm,.padding-vert--sm{padding-bottom:.5rem!important}.padding-top--sm,.padding-vert--sm{padding-top:.5rem!important}.padding-horiz--sm,.padding-left--sm{padding-left:.5rem!important}.padding-horiz--sm,.padding-right--sm{padding-right:.5rem!important}.padding--sm{padding:.5rem!important}.padding-bottom--md,.padding-vert--md{padding-bottom:1rem!important}.padding-top--md,.padding-vert--md{padding-top:1rem!important}.padding-horiz--md,.padding-left--md{padding-left:1rem!important}.padding-horiz--md,.padding-right--md{padding-right:1rem!important}.padding--md{padding:1rem!important}.padding-bottom--lg,.padding-vert--lg{padding-bottom:2rem!important}.padding-top--lg,.padding-vert--lg{padding-top:2rem!important}.padding-horiz--lg,.padding-left--lg{padding-left:2rem!important}.padding-horiz--lg,.padding-right--lg{padding-right:2rem!important}.padding--lg{padding:2rem!important}.padding-bottom--xl,.padding-vert--xl{padding-bottom:5rem!important}.padding-top--xl,.padding-vert--xl{padding-top:5rem!important}.padding-horiz--xl,.padding-left--xl{padding-left:5rem!important}.padding-horiz--xl,.padding-right--xl{padding-right:5rem!important}.padding--xl{padding:5rem!important}code{background-color:var(--ifm-code-background);border:.1rem solid #0000001a;border-radius:var(--ifm-code-border-radius);font-family:var(--ifm-font-family-monospace);font-size:var(--ifm-code-font-size);padding:var(--ifm-code-padding-vertical) var(--ifm-code-padding-horizontal)}a code{color:inherit}pre{background-color:var(--ifm-pre-background);border-radius:var(--ifm-pre-border-radius);color:var(--ifm-pre-color);font:var(--ifm-code-font-size)/var(--ifm-pre-line-height) var(--ifm-font-family-monospace);padding:var(--ifm-pre-padding)}pre code{background-color:initial;border:none;font-size:100%;line-height:inherit;padding:0}kbd{background-color:var(--ifm-color-emphasis-0);border:1px solid var(--ifm-color-emphasis-400);border-radius:.2rem;box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-400);color:var(--ifm-color-emphasis-800);font:80% var(--ifm-font-family-monospace);padding:.15rem .3rem}h1,h2,h3,h4,h5,h6{color:var(--ifm-heading-color);font-family:var(--ifm-heading-font-family);font-weight:var(--ifm-heading-font-weight);line-height:var(--ifm-heading-line-height);margin:var(--ifm-heading-margin-top) 0 var(--ifm-heading-margin-bottom) 0}h1{font-size:var(--ifm-h1-font-size)}h2{font-size:var(--ifm-h2-font-size)}h3{font-size:var(--ifm-h3-font-size)}h4{font-size:var(--ifm-h4-font-size)}h5{font-size:var(--ifm-h5-font-size)}h6{font-size:var(--ifm-h6-font-size)}img{max-width:100%}img[align=right]{padding-left:var(--image-alignment-padding)}img[align=left]{padding-right:var(--image-alignment-padding)}.markdown{--ifm-h1-vertical-rhythm-top:3;--ifm-h2-vertical-rhythm-top:2;--ifm-h3-vertical-rhythm-top:1.5;--ifm-heading-vertical-rhythm-top:1.25;--ifm-h1-vertical-rhythm-bottom:1.25;--ifm-heading-vertical-rhythm-bottom:1}.markdown:after,.markdown:before{content:"";display:table}.markdown:after{clear:both}.markdown h1:first-child{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-h1-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown>h2{--ifm-h2-font-size:2rem;margin-top:calc(var(--ifm-h2-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h3{--ifm-h3-font-size:1.5rem;margin-top:calc(var(--ifm-h3-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h4,.markdown>h5,.markdown>h6{margin-top:calc(var(--ifm-heading-vertical-rhythm-top)*var(--ifm-leading))}.markdown>p,.markdown>pre,.markdown>ul,.tabList__CuJ{margin-bottom:var(--ifm-leading)}.markdown li>p{margin-top:var(--ifm-list-paragraph-margin)}.markdown li+li{margin-top:var(--ifm-list-item-margin)}ol,ul{margin:0 0 var(--ifm-list-margin);padding-left:var(--ifm-list-left-padding)}ol ol,ul ol{list-style-type:lower-roman}ol ol ol,ol ul ol,ul ol ol,ul ul ol{list-style-type:lower-alpha}table{border-collapse:collapse;display:block;margin-bottom:var(--ifm-spacing-vertical)}table thead tr{border-bottom:2px solid var(--ifm-table-border-color)}table thead,table tr:nth-child(2n){background-color:var(--ifm-table-stripe-background)}table tr{background-color:var(--ifm-table-background);border-top:var(--ifm-table-border-width) solid var(--ifm-table-border-color)}table td,table th{border:var(--ifm-table-border-width) solid var(--ifm-table-border-color);padding:var(--ifm-table-cell-padding)}table th{background-color:var(--ifm-table-head-background);color:var(--ifm-table-head-color);font-weight:var(--ifm-table-head-font-weight)}table td{color:var(--ifm-table-cell-color)}strong{font-weight:var(--ifm-font-weight-bold)}a{color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}a:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button:hover,.text--no-decoration,.text--no-decoration:hover,a:not([href]){text-decoration:none}p{margin:0 0 var(--ifm-paragraph-margin-bottom)}blockquote{border-left:var(--ifm-blockquote-border-left-width) solid var(--ifm-blockquote-border-color);box-shadow:var(--ifm-blockquote-shadow);color:var(--ifm-blockquote-color);font-size:var(--ifm-blockquote-font-size);padding:var(--ifm-blockquote-padding-vertical) var(--ifm-blockquote-padding-horizontal)}blockquote>:first-child{margin-top:0}blockquote>:last-child{margin-bottom:0}hr{background-color:var(--ifm-hr-background-color);border:0;height:var(--ifm-hr-height);margin:var(--ifm-hr-margin-vertical) 0}.shadow--lw{box-shadow:var(--ifm-global-shadow-lw)!important}.shadow--md{box-shadow:var(--ifm-global-shadow-md)!important}.shadow--tl{box-shadow:var(--ifm-global-shadow-tl)!important}.text--primary,.wordWrapButtonEnabled_EoeP .wordWrapButtonIcon_Bwma{color:var(--ifm-color-primary)}.text--secondary{color:var(--ifm-color-secondary)}.text--success{color:var(--ifm-color-success)}.text--info{color:var(--ifm-color-info)}.text--warning{color:var(--ifm-color-warning)}.text--danger{color:var(--ifm-color-danger)}.text--center{text-align:center}.text--left,details.history table thead th{text-align:left}.text--justify{text-align:justify}.text--right{text-align:right}.text--capitalize{text-transform:capitalize}.text--lowercase{text-transform:lowercase}.admonitionHeading_Gvgb,.alert__heading,.text--uppercase{text-transform:uppercase}.text--light{font-weight:var(--ifm-font-weight-light)}.text--normal{font-weight:var(--ifm-font-weight-normal)}.text--semibold{font-weight:var(--ifm-font-weight-semibold)}.text--bold{font-weight:var(--ifm-font-weight-bold)}.text--italic{font-style:italic}.text--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text--break{word-wrap:break-word!important;word-break:break-word!important}.clean-btn{background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;padding:0}.alert,.alert .close{color:var(--ifm-alert-foreground-color)}.clean-list{padding-left:0}.alert--primary{--ifm-alert-background-color:var(--ifm-color-primary-contrast-background);--ifm-alert-background-color-highlight:#3578e526;--ifm-alert-foreground-color:var(--ifm-color-primary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-primary-dark)}.alert--secondary{--ifm-alert-background-color:var(--ifm-color-secondary-contrast-background);--ifm-alert-background-color-highlight:#ebedf026;--ifm-alert-foreground-color:var(--ifm-color-secondary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-secondary-dark)}.alert--success{--ifm-alert-background-color:var(--ifm-color-success-contrast-background);--ifm-alert-background-color-highlight:#00a40026;--ifm-alert-foreground-color:var(--ifm-color-success-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-success-dark)}.alert--info{--ifm-alert-background-color:var(--ifm-color-info-contrast-background);--ifm-alert-background-color-highlight:#54c7ec26;--ifm-alert-foreground-color:var(--ifm-color-info-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-info-dark)}.alert--warning{--ifm-alert-background-color:var(--ifm-color-warning-contrast-background);--ifm-alert-background-color-highlight:#ffba0026;--ifm-alert-foreground-color:var(--ifm-color-warning-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-warning-dark)}.alert--danger{--ifm-alert-background-color:var(--ifm-color-danger-contrast-background);--ifm-alert-background-color-highlight:#fa383e26;--ifm-alert-foreground-color:var(--ifm-color-danger-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-danger-dark)}.alert{--ifm-code-background:var(--ifm-alert-background-color-highlight);--ifm-link-color:var(--ifm-alert-foreground-color);--ifm-link-hover-color:var(--ifm-alert-foreground-color);--ifm-link-decoration:underline;--ifm-tabs-color:var(--ifm-alert-foreground-color);--ifm-tabs-color-active:var(--ifm-alert-foreground-color);--ifm-tabs-color-active-border:var(--ifm-alert-border-color);background-color:var(--ifm-alert-background-color);border:var(--ifm-alert-border-width) solid var(--ifm-alert-border-color);border-left-width:var(--ifm-alert-border-left-width);border-radius:var(--ifm-alert-border-radius);box-shadow:var(--ifm-alert-shadow);padding:var(--ifm-alert-padding-vertical) var(--ifm-alert-padding-horizontal)}.alert__heading{align-items:center;display:flex;font:700 var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.5rem}.alert__icon{display:inline-flex;margin-right:.4em}.alert__icon svg{fill:var(--ifm-alert-foreground-color);stroke:var(--ifm-alert-foreground-color);stroke-width:0}.alert .close{margin:calc(var(--ifm-alert-padding-vertical)*-1) calc(var(--ifm-alert-padding-horizontal)*-1) 0 0;opacity:.75}.alert .close:focus,.alert .close:hover{opacity:1}.alert a{text-decoration-color:var(--ifm-alert-border-color)}.alert a:hover{text-decoration-thickness:2px}.avatar{column-gap:var(--ifm-avatar-intro-margin);display:flex}.avatar__photo{border-radius:50%;display:block;height:var(--ifm-avatar-photo-size);overflow:hidden;width:var(--ifm-avatar-photo-size)}.card--full-height,.navbar__logo img,body,html{height:100%}.avatar__photo--sm{--ifm-avatar-photo-size:2rem}.avatar__photo--lg{--ifm-avatar-photo-size:4rem}.avatar__photo--xl{--ifm-avatar-photo-size:6rem}.avatar__intro{display:flex;flex:1 1;flex-direction:column;justify-content:center;text-align:var(--ifm-avatar-intro-alignment)}.badge,.breadcrumbs__item,.breadcrumbs__link,.button,.dropdown>.navbar__link:after,.searchBarContainer_NW3z.searchIndexLoading_EJ1f .searchBarLoadingRing_YnHq{display:inline-block}.avatar__name{font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base)}.avatar__subtitle{margin-top:.25rem}.avatar--vertical{--ifm-avatar-intro-alignment:center;--ifm-avatar-intro-margin:0.5rem;align-items:center;flex-direction:column}.badge{background-color:var(--ifm-badge-background-color);border:var(--ifm-badge-border-width) solid var(--ifm-badge-border-color);border-radius:var(--ifm-badge-border-radius);color:var(--ifm-badge-color);font-size:75%;font-weight:var(--ifm-font-weight-bold);line-height:1;padding:var(--ifm-badge-padding-vertical) var(--ifm-badge-padding-horizontal)}.badge--primary{--ifm-badge-background-color:var(--ifm-color-primary)}.badge--secondary{--ifm-badge-background-color:var(--ifm-color-secondary);color:var(--ifm-color-black)}.breadcrumbs__link,.button.button--secondary.button--outline:not(.button--active):not(:hover){color:var(--ifm-font-color-base)}.badge--success{--ifm-badge-background-color:var(--ifm-color-success)}.badge--info{--ifm-badge-background-color:var(--ifm-color-info)}.badge--warning{--ifm-badge-background-color:var(--ifm-color-warning)}.badge--danger{--ifm-badge-background-color:var(--ifm-color-danger)}.breadcrumbs{margin-bottom:0;padding-left:0}.breadcrumbs__item:not(:last-child):after{background:var(--ifm-breadcrumb-separator) center;content:" ";display:inline-block;filter:var(--ifm-breadcrumb-separator-filter);height:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier));margin:0 var(--ifm-breadcrumb-spacing);opacity:.5;width:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier))}.breadcrumbs__item--active .breadcrumbs__link{background:var(--ifm-breadcrumb-item-background-active);color:var(--ifm-breadcrumb-color-active)}.breadcrumbs__link{border-radius:var(--ifm-breadcrumb-border-radius);font-size:calc(1rem*var(--ifm-breadcrumb-size-multiplier));padding:calc(var(--ifm-breadcrumb-padding-vertical)*var(--ifm-breadcrumb-size-multiplier)) calc(var(--ifm-breadcrumb-padding-horizontal)*var(--ifm-breadcrumb-size-multiplier));transition-duration:var(--ifm-transition-fast);transition-property:background,color}.breadcrumbs__link:any-link:hover,.breadcrumbs__link:link:hover,.breadcrumbs__link:visited:hover,area[href].breadcrumbs__link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs--sm{--ifm-breadcrumb-size-multiplier:0.8}.breadcrumbs--lg{--ifm-breadcrumb-size-multiplier:1.2}.button{background-color:var(--ifm-button-background-color);border:var(--ifm-button-border-width) solid var(--ifm-button-border-color);border-radius:var(--ifm-button-border-radius);cursor:pointer;font-size:calc(.875rem*var(--ifm-button-size-multiplier));font-weight:var(--ifm-button-font-weight);line-height:1.5;padding:calc(var(--ifm-button-padding-vertical)*var(--ifm-button-size-multiplier)) calc(var(--ifm-button-padding-horizontal)*var(--ifm-button-size-multiplier));text-align:center;transition-duration:var(--ifm-button-transition-duration);transition-property:color,background,border-color;-webkit-user-select:none;user-select:none;white-space:nowrap}.button,.button:hover{color:var(--ifm-button-color)}.button--outline{--ifm-button-color:var(--ifm-button-border-color)}.button--outline:hover{--ifm-button-background-color:var(--ifm-button-border-color)}.button--link{--ifm-button-border-color:#0000;color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}.button--link.button--active,.button--link:active,.button--link:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button.disabled,.button:disabled,.button[disabled]{opacity:.65;pointer-events:none}.button--sm{--ifm-button-size-multiplier:0.8}.button--lg{--ifm-button-size-multiplier:1.35}.button--block{display:block;width:100%}.button.button--secondary{color:var(--ifm-color-gray-900)}:where(.button--primary){--ifm-button-background-color:var(--ifm-color-primary);--ifm-button-border-color:var(--ifm-color-primary)}:where(.button--primary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-primary-dark);--ifm-button-border-color:var(--ifm-color-primary-dark)}.button--primary.button--active,.button--primary:active{--ifm-button-background-color:var(--ifm-color-primary-darker);--ifm-button-border-color:var(--ifm-color-primary-darker)}:where(.button--secondary){--ifm-button-background-color:var(--ifm-color-secondary);--ifm-button-border-color:var(--ifm-color-secondary)}:where(.button--secondary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-secondary-dark);--ifm-button-border-color:var(--ifm-color-secondary-dark)}.button--secondary.button--active,.button--secondary:active{--ifm-button-background-color:var(--ifm-color-secondary-darker);--ifm-button-border-color:var(--ifm-color-secondary-darker)}:where(.button--success){--ifm-button-background-color:var(--ifm-color-success);--ifm-button-border-color:var(--ifm-color-success)}:where(.button--success):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-success-dark);--ifm-button-border-color:var(--ifm-color-success-dark)}.button--success.button--active,.button--success:active{--ifm-button-background-color:var(--ifm-color-success-darker);--ifm-button-border-color:var(--ifm-color-success-darker)}:where(.button--info){--ifm-button-background-color:var(--ifm-color-info);--ifm-button-border-color:var(--ifm-color-info)}:where(.button--info):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-info-dark);--ifm-button-border-color:var(--ifm-color-info-dark)}.button--info.button--active,.button--info:active{--ifm-button-background-color:var(--ifm-color-info-darker);--ifm-button-border-color:var(--ifm-color-info-darker)}:where(.button--warning){--ifm-button-background-color:var(--ifm-color-warning);--ifm-button-border-color:var(--ifm-color-warning)}:where(.button--warning):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-warning-dark);--ifm-button-border-color:var(--ifm-color-warning-dark)}.button--warning.button--active,.button--warning:active{--ifm-button-background-color:var(--ifm-color-warning-darker);--ifm-button-border-color:var(--ifm-color-warning-darker)}:where(.button--danger){--ifm-button-background-color:var(--ifm-color-danger);--ifm-button-border-color:var(--ifm-color-danger)}:where(.button--danger):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-danger-dark);--ifm-button-border-color:var(--ifm-color-danger-dark)}.button--danger.button--active,.button--danger:active{--ifm-button-background-color:var(--ifm-color-danger-darker);--ifm-button-border-color:var(--ifm-color-danger-darker)}.button-group{display:inline-flex;gap:var(--ifm-button-group-spacing)}.button-group>.button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.button-group>.button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.button-group--block{display:flex;justify-content:stretch}.button-group--block>.button{flex-grow:1}.card{background-color:var(--ifm-card-background-color);border-radius:var(--ifm-card-border-radius);box-shadow:var(--ifm-global-shadow-lw);display:flex;flex-direction:column;overflow:hidden}.card__image{padding-top:var(--ifm-card-vertical-spacing)}.card__image:first-child{padding-top:0}.card__body,.card__footer,.card__header{padding:var(--ifm-card-vertical-spacing) var(--ifm-card-horizontal-spacing)}.card__body:not(:last-child),.card__footer:not(:last-child),.card__header:not(:last-child){padding-bottom:0}.card__body>:last-child,.card__footer>:last-child,.card__header>:last-child{margin-bottom:0}.card__footer{margin-top:auto}.table-of-contents{font-size:.8rem;margin-bottom:0;padding:var(--ifm-toc-padding-vertical) 0}.table-of-contents,.table-of-contents ul{list-style:none;padding-left:var(--ifm-toc-padding-horizontal)}.table-of-contents li{margin:var(--ifm-toc-padding-vertical) var(--ifm-toc-padding-horizontal)}.table-of-contents__left-border{border-left:1px solid var(--ifm-toc-border-color)}.table-of-contents__link{color:var(--ifm-toc-link-color);display:block}.table-of-contents__link--active,.table-of-contents__link--active code,.table-of-contents__link:hover,.table-of-contents__link:hover code{color:var(--ifm-color-primary);text-decoration:none}.content_knG7 a,.hitFooter_E9YW a,.suggestion_fB_2.cursor_eG29 mark{text-decoration:underline}.close{color:var(--ifm-color-black);float:right;font-size:1.5rem;font-weight:var(--ifm-font-weight-bold);line-height:1;opacity:.5;padding:1rem;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.close:hover{opacity:.7}.close:focus,.theme-code-block-highlighted-line .codeLineNumber_Tfdd:before{opacity:.8}.dropdown{display:inline-flex;font-weight:var(--ifm-dropdown-font-weight);position:relative;vertical-align:top}.dropdown--hoverable:hover .dropdown__menu,.dropdown--show .dropdown__menu{opacity:1;pointer-events:all;transform:translateY(-1px);visibility:visible}.dropdown--right .dropdown__menu{left:inherit;right:0}.dropdown--nocaret .navbar__link:after{content:none!important}.dropdown__menu{background-color:var(--ifm-dropdown-background-color);border-radius:var(--ifm-global-radius);box-shadow:var(--ifm-global-shadow-md);left:0;max-height:80vh;min-width:10rem;opacity:0;overflow-y:auto;padding:.5rem;pointer-events:none;position:absolute;top:calc(100% - var(--ifm-navbar-item-padding-vertical) + .3rem);transform:translateY(-.625rem);transition-duration:var(--ifm-transition-fast);transition-property:opacity,transform,visibility;transition-timing-function:var(--ifm-transition-timing-default);visibility:hidden;z-index:var(--ifm-z-index-dropdown)}.menu__caret,.menu__link,.menu__list-item-collapsible{border-radius:.25rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.dropdown__link{border-radius:.25rem;color:var(--ifm-dropdown-link-color);display:block;font-size:.875rem;margin-top:.2rem;padding:.25rem .5rem;white-space:nowrap}.dropdown__link--active,.dropdown__link:hover{background-color:var(--ifm-dropdown-hover-background-color);color:var(--ifm-dropdown-link-color);text-decoration:none}.dropdown__link--active,.dropdown__link--active:hover{--ifm-dropdown-link-color:var(--ifm-link-color)}.dropdown>.navbar__link:after{border-color:currentcolor #0000;border-style:solid;border-width:.4em .4em 0;content:"";margin-left:.3em;position:relative;top:2px;transform:translateY(-50%)}.footer{background-color:var(--ifm-footer-background-color);color:var(--ifm-footer-color);padding:var(--ifm-footer-padding-vertical) var(--ifm-footer-padding-horizontal)}.footer--dark{--ifm-footer-background-color:#303846;--ifm-footer-color:var(--ifm-footer-link-color);--ifm-footer-link-color:var(--ifm-color-secondary);--ifm-footer-title-color:var(--ifm-color-white)}.footer__links{margin-bottom:1rem}.footer__link-item{color:var(--ifm-footer-link-color);line-height:2}.footer__link-item:hover{color:var(--ifm-footer-link-hover-color)}.footer__link-separator{margin:0 var(--ifm-footer-link-horizontal-spacing)}.footer__logo{margin-top:1rem;max-width:var(--ifm-footer-logo-max-width)}.footer__title{color:var(--ifm-footer-title-color);font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base);margin-bottom:var(--ifm-heading-margin-bottom)}.menu,.navbar__link{font-weight:var(--ifm-font-weight-semibold)}.docItemContainer_Djhp article>:first-child,.docItemContainer_Djhp header+*,.footer__item{margin-top:0}.admonitionContent_BuS1>:last-child,.cardContainer_fWXF :last-child,.collapsibleContent_i85q p:last-child,.details_lb9f>summary>p:last-child,.footer__items,.searchResultItem_U687>h2,.tabItem_Ymn6>:last-child{margin-bottom:0}.codeBlockStandalone_MEMb,[type=checkbox]{padding:0}.hero{align-items:center;background-color:var(--ifm-hero-background-color);color:var(--ifm-hero-text-color);display:flex;padding:4rem 2rem}.hero--primary{--ifm-hero-background-color:var(--ifm-color-primary);--ifm-hero-text-color:var(--ifm-font-color-base-inverse)}.hero--dark{--ifm-hero-background-color:#303846;--ifm-hero-text-color:var(--ifm-color-white)}.hero__title{font-size:3rem}.hero__subtitle{font-size:1.5rem}.menu__list{margin:0;padding-left:0}.menu__caret,.menu__link{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu__list .menu__list{flex:0 0 100%;margin-top:.25rem;padding-left:var(--ifm-menu-link-padding-horizontal)}.menu__list-item:not(:first-child){margin-top:.25rem}.menu__list-item--collapsed .menu__list{height:0;overflow:hidden}.details_lb9f[data-collapsed=false].isBrowser_bmU9>summary:before,.details_lb9f[open]:not(.isBrowser_bmU9)>summary:before,.menu__list-item--collapsed .menu__caret:before,.menu__list-item--collapsed .menu__link--sublist:after{transform:rotate(90deg)}.menu__list-item-collapsible{display:flex;flex-wrap:wrap;position:relative}.menu__caret:hover,.menu__link:hover,.menu__list-item-collapsible--active,.menu__list-item-collapsible:hover{background:var(--ifm-menu-color-background-hover)}.menu__list-item-collapsible .menu__link--active,.menu__list-item-collapsible .menu__link:hover{background:none!important}.menu__caret,.menu__link{align-items:center;display:flex}.navbar-sidebar,.navbar-sidebar__backdrop{bottom:0;opacity:0;transition-duration:var(--ifm-transition-fast);transition-timing-function:ease-in-out;left:0;top:0;visibility:hidden}.menu__link{color:var(--ifm-menu-color);flex:1;line-height:1.25}.menu__link:hover{color:var(--ifm-menu-color);text-decoration:none}.menu__caret:before,.menu__link--sublist-caret:after{content:"";transform:rotate(180deg);transition:transform var(--ifm-transition-fast) linear;height:1.25rem;width:1.25rem;filter:var(--ifm-menu-link-sublist-icon-filter)}.menu__link--sublist-caret:after{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem;margin-left:auto;min-width:1.25rem}.menu__link--active,.menu__link--active:hover{color:var(--ifm-menu-color-active)}.navbar__brand,.navbar__link{color:var(--ifm-navbar-link-color)}.menu__link--active:not(.menu__link--sublist){background-color:var(--ifm-menu-color-background-active)}.menu__caret:before{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem}.navbar--dark,html[data-theme=dark]{--ifm-menu-link-sublist-icon-filter:invert(100%) sepia(94%) saturate(17%) hue-rotate(223deg) brightness(104%) contrast(98%)}.navbar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-navbar-shadow);height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar,.navbar>.container,.navbar>.container-fluid{display:flex}.navbar--fixed-top{position:sticky;top:0;z-index:var(--ifm-z-index-fixed)}.navbar__inner{display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.navbar__brand{align-items:center;display:flex;min-width:0}.navbar__brand:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.announcementBarContent_xLdY,.navbar__title{flex:1 1 auto}.navbar__toggle{display:none;margin-right:.5rem}.navbar__logo{flex:0 0 auto;height:2rem;margin-right:.5rem}.navbar__items{align-items:center;display:flex;flex:1;min-width:0}.navbar__items--center{flex:0 0 auto}.navbar__items--center .navbar__brand{margin:0}.navbar__items--center+.navbar__items--right{flex:1}.navbar__items--right{flex:0 0 auto;justify-content:flex-end}.navbar__items--right>:last-child{padding-right:0}.navbar__item{display:inline-block;padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}#nprogress,.navbar__item.dropdown .navbar__link:not([href]){pointer-events:none}.navbar__link--active,.navbar__link:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.navbar--dark,.navbar--primary{--ifm-menu-color:var(--ifm-color-gray-300);--ifm-navbar-link-color:var(--ifm-color-gray-100);--ifm-navbar-search-input-background-color:#ffffff1a;--ifm-navbar-search-input-placeholder-color:#ffffff80;color:var(--ifm-color-white)}.navbar--dark{--ifm-navbar-background-color:#242526;--ifm-menu-color-background-active:#ffffff0d;--ifm-navbar-search-input-color:var(--ifm-color-white)}.navbar--primary{--ifm-navbar-background-color:var(--ifm-color-primary);--ifm-navbar-link-hover-color:var(--ifm-color-white);--ifm-menu-color-active:var(--ifm-color-white);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-500)}.navbar__search-input{-webkit-appearance:none;appearance:none;background:var(--ifm-navbar-search-input-background-color) var(--ifm-navbar-search-input-icon) no-repeat .75rem center/1rem 1rem;border:none;border-radius:2rem;color:var(--ifm-navbar-search-input-color);cursor:text;display:inline-block;font-size:.9rem;height:2rem;padding:0 .5rem 0 2.25rem;width:12.5rem}.navbar__search-input::placeholder{color:var(--ifm-navbar-search-input-placeholder-color)}.navbar-sidebar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-global-shadow-md);position:fixed;transform:translate3d(-100%,0,0);transition-property:opacity,visibility,transform;width:var(--ifm-navbar-sidebar-width)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar__items{transform:translateZ(0)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar--show .navbar-sidebar__backdrop{opacity:1;visibility:visible}.navbar-sidebar__backdrop{background-color:#0009;position:fixed;right:0;transition-property:opacity,visibility}.navbar-sidebar__brand{align-items:center;box-shadow:var(--ifm-navbar-shadow);display:flex;flex:1;height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar-sidebar__items{display:flex;height:calc(100% - var(--ifm-navbar-height));transition:transform var(--ifm-transition-fast) ease-in-out}.navbar-sidebar__items--show-secondary{transform:translate3d(calc((var(--ifm-navbar-sidebar-width))*-1),0,0)}.navbar-sidebar__item{flex-shrink:0;padding:.5rem;width:calc(var(--ifm-navbar-sidebar-width))}.navbar-sidebar__back{background:var(--ifm-menu-color-background-active);font-size:15px;font-weight:var(--ifm-button-font-weight);margin:0 0 .2rem -.5rem;padding:.6rem 1.5rem;position:relative;text-align:left;top:-.5rem;width:calc(100% + 1rem)}.navbar-sidebar__close{display:flex;margin-left:auto}.pagination{column-gap:var(--ifm-pagination-page-spacing);display:flex;font-size:var(--ifm-pagination-font-size);padding-left:0}.pagination--sm{--ifm-pagination-font-size:0.8rem;--ifm-pagination-padding-horizontal:0.8rem;--ifm-pagination-padding-vertical:0.2rem}.pagination--lg{--ifm-pagination-font-size:1.2rem;--ifm-pagination-padding-horizontal:1.2rem;--ifm-pagination-padding-vertical:0.3rem}.pagination__item{display:inline-flex}.pagination__item>span{padding:var(--ifm-pagination-padding-vertical)}.pagination__item--active .pagination__link{color:var(--ifm-pagination-color-active)}.pagination__item--active .pagination__link,.pagination__item:not(.pagination__item--active):hover .pagination__link{background:var(--ifm-pagination-item-active-background)}.pagination__item--disabled,.pagination__item[disabled]{opacity:.25;pointer-events:none}.pagination__link{border-radius:var(--ifm-pagination-border-radius);color:var(--ifm-font-color-base);display:inline-block;padding:var(--ifm-pagination-padding-vertical) var(--ifm-pagination-padding-horizontal);transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination__link:hover{text-decoration:none}.pagination-nav{grid-gap:var(--ifm-spacing-horizontal);display:grid;gap:var(--ifm-spacing-horizontal);grid-template-columns:repeat(2,1fr)}.pagination-nav__link{border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-pagination-nav-border-radius);display:block;height:100%;line-height:var(--ifm-heading-line-height);padding:var(--ifm-global-spacing);transition:border-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination-nav__link:hover{border-color:var(--ifm-pagination-nav-color-hover);text-decoration:none}.pagination-nav__link--next{grid-column:2/3;text-align:right}.pagination-nav__label{font-size:var(--ifm-h4-font-size);font-weight:var(--ifm-heading-font-weight);word-break:break-word}.pagination-nav__link--prev .pagination-nav__label:before{content:"« "}.pagination-nav__link--next .pagination-nav__label:after{content:" »"}.pagination-nav__sublabel{color:var(--ifm-color-content-secondary);font-size:var(--ifm-h5-font-size);font-weight:var(--ifm-font-weight-semibold);margin-bottom:.25rem}.pills__item,.tabs{font-weight:var(--ifm-font-weight-bold)}.pills{display:flex;gap:var(--ifm-pills-spacing);padding-left:0}.pills__item{border-radius:.5rem;cursor:pointer;display:inline-block;padding:.25rem 1rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs,:not(.containsTaskList_mC6p>li)>.containsTaskList_mC6p{padding-left:0}.pills__item--active{color:var(--ifm-pills-color-active)}.pills__item--active,.pills__item:not(.pills__item--active):hover{background:var(--ifm-pills-color-background-active)}.pills--block{justify-content:stretch}.pills--block .pills__item{flex-grow:1;text-align:center}.tabs{color:var(--ifm-tabs-color);display:flex;margin-bottom:0;overflow-x:auto}.tabs__item{border-bottom:3px solid #0000;border-radius:var(--ifm-global-radius);cursor:pointer;display:inline-flex;padding:var(--ifm-tabs-padding-vertical) var(--ifm-tabs-padding-horizontal);transition:background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs__item--active{border-bottom-color:var(--ifm-tabs-color-active-border);border-bottom-left-radius:0;border-bottom-right-radius:0;color:var(--ifm-tabs-color-active)}.tabs__item:hover{background-color:var(--ifm-hover-overlay)}.tabs--block{justify-content:stretch}.tabs--block .tabs__item{flex-grow:1;justify-content:center}html[data-theme=dark]{--ifm-color-scheme:dark;--ifm-color-emphasis-0:var(--ifm-color-gray-1000);--ifm-color-emphasis-100:var(--ifm-color-gray-900);--ifm-color-emphasis-200:var(--ifm-color-gray-800);--ifm-color-emphasis-300:var(--ifm-color-gray-700);--ifm-color-emphasis-400:var(--ifm-color-gray-600);--ifm-color-emphasis-600:var(--ifm-color-gray-400);--ifm-color-emphasis-700:var(--ifm-color-gray-300);--ifm-color-emphasis-800:var(--ifm-color-gray-200);--ifm-color-emphasis-900:var(--ifm-color-gray-100);--ifm-color-emphasis-1000:var(--ifm-color-gray-0);--ifm-background-color:#1b1b1d;--ifm-background-surface-color:#242526;--ifm-hover-overlay:#ffffff0d;--ifm-color-content:#e3e3e3;--ifm-color-content-secondary:#fff;--ifm-breadcrumb-separator-filter:invert(64%) sepia(11%) saturate(0%) hue-rotate(149deg) brightness(99%) contrast(95%);--ifm-code-background:#ffffff1a;--ifm-scrollbar-track-background-color:#444;--ifm-scrollbar-thumb-background-color:#686868;--ifm-scrollbar-thumb-hover-background-color:#7a7a7a;--ifm-table-stripe-background:#ffffff12;--ifm-toc-border-color:var(--ifm-color-emphasis-200);--ifm-color-primary-contrast-background:#102445;--ifm-color-primary-contrast-foreground:#ebf2fc;--ifm-color-secondary-contrast-background:#474748;--ifm-color-secondary-contrast-foreground:#fdfdfe;--ifm-color-success-contrast-background:#003100;--ifm-color-success-contrast-foreground:#e6f6e6;--ifm-color-info-contrast-background:#193c47;--ifm-color-info-contrast-foreground:#eef9fd;--ifm-color-warning-contrast-background:#4d3800;--ifm-color-warning-contrast-foreground:#fff8e6;--ifm-color-danger-contrast-background:#4b1113;--ifm-color-danger-contrast-foreground:#ffebec}#nprogress .bar{background:var(--docusaurus-progress-bar-color);height:2px;left:0;position:fixed;top:0;width:100%;z-index:1031}#nprogress .peg{box-shadow:0 0 10px var(--docusaurus-progress-bar-color),0 0 5px var(--docusaurus-progress-bar-color);height:100%;opacity:1;position:absolute;right:0;transform:rotate(3deg) translateY(-4px);width:100px}[data-theme=dark]{--ifm-color-primary:#7a77ff;--ifm-color-primary-dark:#5552ff;--ifm-color-primary-darker:#433fff;--ifm-color-primary-darkest:#0c07ff;--ifm-color-primary-light:#9f9cff;--ifm-color-primary-lighter:#b1afff;--ifm-color-primary-lightest:#b1afff;--docusaurus-highlighted-code-line-bg:#0c0d152b;--ifm-table-stripe-background:#5e30a0!important;--ifm-table-background:#0000!important}[data-theme=light] code[class*=language-],[data-theme=light] pre[class*=language-]{background-color:#f9fafb!important}[data-theme=light] code[class*=language-] .token.comment,[data-theme=light] pre[class*=language-] .token.comment{color:#6e7781!important}[data-theme=light] code[class*=language-] .token.string,[data-theme=light] pre[class*=language-] .token.string{color:#0a3069!important}[data-theme=light] code[class*=language-] .token.keyword,[data-theme=light] pre[class*=language-] .token.keyword{color:#cf222e!important}[data-theme=light] code[class*=language-] .token.method,[data-theme=light] pre[class*=language-] .token.method{color:#6639ba!important}[data-theme=light] code[class*=language-] .token.number,[data-theme=light] code[class*=language-] .token.property,[data-theme=light] pre[class*=language-] .token.number,[data-theme=light] pre[class*=language-] .token.property{color:#0550ae!important}code[class*=language-],pre[class*=language-]{font-size:.85em}code[class*=language-] .token.comment,pre[class*=language-] .token.comment{font-size:.9em;font-style:normal!important}.navbar__brand{margin-right:0}.navbar__manual--title{font-weight:700;margin-right:1rem;padding:0}#__docusaurus-base-url-issue-banner-container,.hideAction_vcyE>svg,.navbar.navbar--fixed-top .navbar__item.dropdown.dropdown--hoverable svg,.themedComponent_mlkZ,[data-theme=dark] .lightToggleIcon_pyhR,[data-theme=light] .darkToggleIcon_wfgR,html[data-announcement-bar-initially-dismissed=true] .announcementBar_mb4j{display:none}[title="svg{height:var(--search-local-hit-height,56px);opacity:.5;width:24px}.hitIcon_a7Zy,.hitTree_kk6K>svg{stroke-width:var(--search-local-icon-stroke-width,1.4)}.hitAction_NqkB,.hitIcon_a7Zy{height:20px;width:20px}.hitWrapper_sAK8{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;margin:0 8px;overflow-x:hidden;width:80%}.hitWrapper_sAK8 mark{background:none;color:var(--search-local-highlight-color,var(--ifm-color-primary))}.hitTitle_vyVt{font-size:.9em}.hitPath_ieM4{font-size:.75em}.hitPath_ieM4,.hitTitle_vyVt{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.noResults_l6Q3{flex-direction:column;justify-content:center;padding:var(--search-local-spacing,12px) 0}.noResultsIcon_EBY5{margin-bottom:var(--search-local-spacing,12px)}.hitFooter_E9YW{font-size:.85em;margin-top:var(--search-local-spacing,12px);text-align:center}.cursor_eG29 .hideAction_vcyE>svg,.tocCollapsibleContent_vkbj a{display:block}.suggestion_fB_2.cursor_eG29,.suggestion_fB_2.cursor_eG29 .hitIcon_a7Zy,.suggestion_fB_2.cursor_eG29 .hitPath_ieM4,.suggestion_fB_2.cursor_eG29 .hitTree_kk6K,.suggestion_fB_2.cursor_eG29 mark{color:var(--search-local-hit-active-color,var(--ifm-color-white))!important}.searchBarContainer_NW3z{margin-left:16px}.searchBarContainer_NW3z .searchBarLoadingRing_YnHq{display:none;left:10px;position:absolute;top:6px}.searchBarContainer_NW3z .searchClearButton_qk4g{background:none;border:none;line-height:1rem;padding:0;position:absolute;right:.8rem;top:50%;transform:translateY(-50%)}.navbar__search{position:relative}.searchIndexLoading_EJ1f .navbar__search-input{background-image:none}.searchHintContainer_Pkmr{align-items:center;display:flex;gap:4px;height:100%;justify-content:center;pointer-events:none;position:absolute;right:10px;top:0}.searchHint_iIMx{background-color:var(--ifm-navbar-search-input-background-color);border:1px solid var(--ifm-color-emphasis-500);box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-500);color:var(--ifm-navbar-search-input-placeholder-color)}.loadingRing_RJI3{display:inline-block;height:20px;opacity:var(--search-local-loading-icon-opacity,.5);position:relative;width:20px}.loadingRing_RJI3 div{animation:1.2s cubic-bezier(.5,0,.5,1) infinite b;border:2px solid var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color));border-color:var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color)) #0000 #0000 #0000;border-radius:50%;display:block;height:16px;margin:2px;position:absolute;width:16px}.loadingRing_RJI3 div:first-child{animation-delay:-.45s}.loadingRing_RJI3 div:nth-child(2){animation-delay:-.3s}.loadingRing_RJI3 div:nth-child(3){animation-delay:-.15s}@keyframes b{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@supports selector(:has(*)){.navbarSearchContainer_Bca1:not(:has(>*)){display:none}}.navbarHideable_m1mJ{transition:transform var(--ifm-transition-fast) ease}.navbarHidden_jGov{transform:translate3d(0,calc(-100% - 2px),0)}.errorBoundaryError_a6uf{color:red;white-space:pre-wrap}.errorBoundaryFallback_VBag{color:red;padding:.55rem}.footerLogoLink_BH7S{opacity:.5;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.footerLogoLink_BH7S:hover,.hash-link:focus,:hover>.hash-link{opacity:1}.anchorWithStickyNavbar_LWe7{scroll-margin-top:calc(var(--ifm-navbar-height) + .5rem)}.anchorWithHideOnScrollNavbar_WYt5{scroll-margin-top:.5rem}.hash-link{opacity:0;padding-left:.5rem;transition:opacity var(--ifm-transition-fast);-webkit-user-select:none;user-select:none}.hash-link:before{content:"#"}.mainWrapper_z2l0{display:flex;flex:1 0 auto;flex-direction:column}.docusaurus-mt-lg{margin-top:3rem}#__docusaurus{display:flex;flex-direction:column;min-height:100%}.cardContainer_fWXF{--ifm-link-color:var(--ifm-color-emphasis-800);--ifm-link-hover-color:var(--ifm-color-emphasis-700);--ifm-link-hover-decoration:none;border:1px solid var(--ifm-color-emphasis-200);box-shadow:0 1.5px 3px 0 #00000026;transition:all var(--ifm-transition-fast) ease;transition-property:border,box-shadow}.cardContainer_fWXF:hover{border-color:var(--ifm-color-primary);box-shadow:0 3px 6px 0 #0003}.cardTitle_rnsV{font-size:1.2rem}.cardDescription_PWke{font-size:.8rem}.iconEdit_Z9Sw{margin-right:.3em;vertical-align:sub}.tag_zVej{border:1px solid var(--docusaurus-tag-list-border);transition:border var(--ifm-transition-fast)}.tag_zVej:hover{--docusaurus-tag-list-border:var(--ifm-link-color);text-decoration:none}.tagRegular_sFm0{border-radius:var(--ifm-global-radius);font-size:90%;padding:.2rem .5rem .3rem}.tagWithCount_h2kH{align-items:center;border-left:0;display:flex;padding:0 .5rem 0 1rem;position:relative}.tagWithCount_h2kH:after,.tagWithCount_h2kH:before{border:1px solid var(--docusaurus-tag-list-border);content:"";position:absolute;top:50%;transition:inherit}.tagWithCount_h2kH:before{border-bottom:0;border-right:0;height:1.18rem;right:100%;transform:translate(50%,-50%) rotate(-45deg);width:1.18rem}.tagWithCount_h2kH:after{border-radius:50%;height:.5rem;left:0;transform:translateY(-50%);width:.5rem}.tagWithCount_h2kH span{background:var(--ifm-color-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-color-black);font-size:.7rem;line-height:1.2;margin-left:.3rem;padding:.1rem .4rem}.tags_jXut{display:inline}.tag_QGVx{display:inline-block;margin:0 .4rem .5rem 0}.lastUpdated_vwxv{font-size:smaller;font-style:italic;margin-top:.2rem}.tocCollapsibleButton_TO0P{align-items:center;display:flex;font-size:inherit;justify-content:space-between;padding:.4rem .8rem;width:100%}.tocCollapsibleButton_TO0P:after{background:var(--ifm-menu-link-sublist-icon) 50% 50%/2rem 2rem no-repeat;content:"";filter:var(--ifm-menu-link-sublist-icon-filter);height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast);width:1.25rem}.tocCollapsibleButtonExpanded_MG3E:after,.tocCollapsibleExpanded_sAul{transform:none}.tocCollapsible_ETCw{background-color:var(--ifm-menu-color-background-active);border-radius:var(--ifm-global-radius);margin:1rem 0}.buttonGroup__atx button,.codeBlockContainer_Ckt0{background:var(--prism-background-color);color:var(--prism-color)}.tocCollapsibleContent_vkbj>ul{border-left:none;border-top:1px solid var(--ifm-color-emphasis-300);font-size:15px;padding:.2rem 0}.tocCollapsibleContent_vkbj ul li{margin:.4rem .8rem}.tableOfContents_bqdL{max-height:calc(100vh - var(--ifm-navbar-height) - 2rem);overflow-y:auto;position:sticky;top:calc(var(--ifm-navbar-height) + 1rem)}.codeBlockContainer_Ckt0{border-radius:var(--ifm-code-border-radius);box-shadow:var(--ifm-global-shadow-lw);margin-bottom:var(--ifm-leading)}.codeBlockContent_biex{border-radius:inherit;direction:ltr;position:relative}.codeBlockTitle_Ktv7{border-bottom:1px solid var(--ifm-color-emphasis-300);border-top-left-radius:inherit;border-top-right-radius:inherit;font-size:var(--ifm-code-font-size);font-weight:500;padding:.75rem var(--ifm-pre-padding)}.codeBlock_bY9V{--ifm-pre-background:var(--prism-background-color);margin:0;padding:0}.codeBlockTitle_Ktv7+.codeBlockContent_biex .codeBlock_bY9V{border-top-left-radius:0;border-top-right-radius:0}.codeBlockLines_e6Vv{float:left;font:inherit;min-width:100%;padding:var(--ifm-pre-padding)}.codeBlockLinesWithNumbering_o6Pm{display:table;padding:var(--ifm-pre-padding) 0}.buttonGroup__atx{column-gap:.2rem;display:flex;position:absolute;right:calc(var(--ifm-pre-padding)/2);top:calc(var(--ifm-pre-padding)/2)}.buttonGroup__atx button{align-items:center;border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-global-radius);display:flex;line-height:0;opacity:0;padding:.4rem;transition:opacity var(--ifm-transition-fast) ease-in-out}.buttonGroup__atx button:focus-visible,.buttonGroup__atx button:hover{opacity:1!important}.theme-code-block:hover .buttonGroup__atx button{opacity:.4}:where(:root){--docusaurus-highlighted-code-line-bg:#484d5b}:where([data-theme=dark]){--docusaurus-highlighted-code-line-bg:#646464}.theme-code-block-highlighted-line{background-color:var(--docusaurus-highlighted-code-line-bg);display:block;margin:0 calc(var(--ifm-pre-padding)*-1);padding:0 var(--ifm-pre-padding)}.codeLine_lJS_{counter-increment:a;display:table-row}.codeLineNumber_Tfdd{background:var(--ifm-pre-background);display:table-cell;left:0;overflow-wrap:normal;padding:0 var(--ifm-pre-padding);position:sticky;text-align:right;width:1%}.codeLineNumber_Tfdd:before{content:counter(a);opacity:.4}.codeLineContent_feaV{padding-right:var(--ifm-pre-padding)}.theme-code-block:hover .copyButtonCopied_obH4{opacity:1!important}.copyButtonIcons_eSgA{height:1.125rem;position:relative;width:1.125rem}.copyButtonIcon_y97N,.copyButtonSuccessIcon_LjdS{fill:currentColor;height:inherit;left:0;opacity:inherit;position:absolute;top:0;transition:all var(--ifm-transition-fast) ease;width:inherit}.copyButtonSuccessIcon_LjdS{color:#00d600;left:50%;opacity:0;top:50%;transform:translate(-50%,-50%) scale(.33)}.copyButtonCopied_obH4 .copyButtonIcon_y97N{opacity:0;transform:scale(.33)}.copyButtonCopied_obH4 .copyButtonSuccessIcon_LjdS{opacity:1;transform:translate(-50%,-50%) scale(1);transition-delay:75ms}.wordWrapButtonIcon_Bwma{height:1.2rem;width:1.2rem}.details_lb9f{--docusaurus-details-summary-arrow-size:0.38rem;--docusaurus-details-transition:transform 200ms ease;--docusaurus-details-decoration-color:grey}.details_lb9f>summary{cursor:pointer;padding-left:1rem;position:relative}.details_lb9f>summary::-webkit-details-marker{display:none}.details_lb9f>summary:before{border-color:#0000 #0000 #0000 var(--docusaurus-details-decoration-color);border-style:solid;border-width:var(--docusaurus-details-summary-arrow-size);content:"";left:0;position:absolute;top:.45rem;transform:rotate(0);transform-origin:calc(var(--docusaurus-details-summary-arrow-size)/2) 50%;transition:var(--docusaurus-details-transition)}.collapsibleContent_i85q{border-top:1px solid var(--docusaurus-details-decoration-color);margin-top:1rem;padding-top:1rem}.details_b_Ee{--docusaurus-details-decoration-color:var(--ifm-alert-border-color);--docusaurus-details-transition:transform var(--ifm-transition-fast) ease;border:1px solid var(--ifm-alert-border-color);margin:0 0 var(--ifm-spacing-vertical)}.img_ev3q{height:auto}.admonition_xJq3{margin-bottom:1em}.admonitionHeading_Gvgb{font:var(--ifm-heading-font-weight) var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family)}.admonitionHeading_Gvgb:not(:last-child){margin-bottom:.3rem}.admonitionHeading_Gvgb code{text-transform:none}.admonitionIcon_Rf37{display:inline-block;margin-right:.4em;vertical-align:middle}.admonitionIcon_Rf37 svg{fill:var(--ifm-alert-foreground-color);display:inline-block;height:1.6em;width:1.6em}.breadcrumbHomeIcon_YNFT{height:1.1rem;position:relative;top:1px;vertical-align:top;width:1.1rem}.breadcrumbsContainer_Z_bl{--ifm-breadcrumb-size-multiplier:0.8;margin-bottom:.8rem}.title_kItE{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-leading)*1.25)}.searchContextInput_mXoe,.searchQueryInput_CFBF{background:var(--ifm-background-color);border:var(--ifm-global-border-width) solid var(--ifm-color-content-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-font-color-base);font-size:var(--ifm-font-size-base);margin-bottom:1rem;padding:.5rem;width:100%}.searchResultItem_U687{border-bottom:1px solid #dfe3e8;padding:1rem 0}.searchResultItemPath_uIbk{color:var(--ifm-color-content-secondary);font-size:.8rem;margin:.5rem 0 0}.searchResultItemSummary_oZHr{font-style:italic;margin:.5rem 0 0}.backToTopButton_sjWU{background-color:var(--ifm-color-emphasis-200);border-radius:50%;bottom:1.3rem;box-shadow:var(--ifm-global-shadow-lw);height:3rem;opacity:0;position:fixed;right:1.3rem;transform:scale(0);transition:all var(--ifm-transition-fast) var(--ifm-transition-timing-default);visibility:hidden;width:3rem;z-index:calc(var(--ifm-z-index-fixed) - 1)}.backToTopButton_sjWU:after{background-color:var(--ifm-color-emphasis-1000);content:" ";display:inline-block;height:100%;-webkit-mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;width:100%}.backToTopButtonShow_xfvO{opacity:1;transform:scale(1);visibility:visible}[data-theme=dark]:root{--docusaurus-collapse-button-bg:#ffffff0d;--docusaurus-collapse-button-bg-hover:#ffffff1a}.collapseSidebarButton_PEFL{display:none;margin:0}.docSidebarContainer_YfHR,.sidebarLogo_isFc{display:none}.docMainContainer_TBSr,.docRoot_UBD9{display:flex;width:100%}.docsWrapper_hBAB{display:flex;flex:1 0 auto}@media (min-width:997px){.collapseSidebarButton_PEFL,.expandButton_TmdG{background-color:var(--docusaurus-collapse-button-bg)}:root{--docusaurus-announcement-bar-height:30px}.announcementBarClose_gvF7,.announcementBarPlaceholder_vyr4{flex-basis:50px}.navbarSearchContainer_Bca1{padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.lastUpdated_vwxv{text-align:right}.tocMobile_ITEo{display:none}.docItemCol_VOVn,.generatedIndexPage_vN6x{max-width:75%!important}.list_eTzJ article:nth-last-child(-n+2){margin-bottom:0!important}.collapseSidebarButton_PEFL{border:1px solid var(--ifm-toc-border-color);border-radius:0;bottom:0;display:block!important;height:40px;position:sticky}.collapseSidebarButtonIcon_kv0_{margin-top:4px;transform:rotate(180deg)}.expandButtonIcon_i1dp,[dir=rtl] .collapseSidebarButtonIcon_kv0_{transform:rotate(0)}.collapseSidebarButton_PEFL:focus,.collapseSidebarButton_PEFL:hover,.expandButton_TmdG:focus,.expandButton_TmdG:hover{background-color:var(--docusaurus-collapse-button-bg-hover)}.menuHtmlItem_M9Kj{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu_SIkG{flex-grow:1;padding:.5rem}@supports (scrollbar-gutter:stable){.menu_SIkG{padding:.5rem 0 .5rem .5rem;scrollbar-gutter:stable}}.menuWithAnnouncementBar_GW3s{margin-bottom:var(--docusaurus-announcement-bar-height)}.sidebar_njMd{display:flex;flex-direction:column;height:100%;padding-top:var(--ifm-navbar-height);width:var(--doc-sidebar-width)}.sidebarWithHideableNavbar_wUlq{padding-top:0}.sidebarHidden_VK0M{opacity:0;visibility:hidden}.sidebarLogo_isFc{align-items:center;color:inherit!important;display:flex!important;margin:0 var(--ifm-navbar-padding-horizontal);max-height:var(--ifm-navbar-height);min-height:var(--ifm-navbar-height);text-decoration:none!important}.sidebarLogo_isFc img{height:2rem;margin-right:.5rem}.expandButton_TmdG{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;transition:background-color var(--ifm-transition-fast) ease;width:100%}[dir=rtl] .expandButtonIcon_i1dp{transform:rotate(180deg)}.docSidebarContainer_YfHR{border-right:1px solid var(--ifm-toc-border-color);-webkit-clip-path:inset(0);clip-path:inset(0);display:block;margin-top:calc(var(--ifm-navbar-height)*-1);transition:width var(--ifm-transition-fast) ease;width:var(--doc-sidebar-width);will-change:width}.docSidebarContainerHidden_DPk8{cursor:pointer;width:var(--doc-sidebar-hidden-width)}.sidebarViewport_aRkj{height:100%;max-height:100vh;position:sticky;top:0}.docMainContainer_TBSr{flex-grow:1;max-width:calc(100% - var(--doc-sidebar-width))}.docMainContainerEnhanced_lQrH{max-width:calc(100% - var(--doc-sidebar-hidden-width))}.docItemWrapperEnhanced_JWYK{max-width:calc(var(--ifm-container-width) + var(--doc-sidebar-width))!important}}@media (min-width:1440px){.container{max-width:var(--ifm-container-width-xl)}}@media (max-width:996px){.col{--ifm-col-width:100%;flex-basis:var(--ifm-col-width);margin-left:0}.footer{--ifm-footer-padding-horizontal:0}.colorModeToggle_DEke,.footer__link-separator,.navbar__item,.tableOfContents_bqdL{display:none}.footer__col{margin-bottom:calc(var(--ifm-spacing-vertical)*3)}.footer__link-item{display:block}.hero{padding-left:0;padding-right:0}.navbar>.container,.navbar>.container-fluid{padding:0}.navbar__toggle{display:inherit}.navbar__search-input{width:9rem}.pills--block,.tabs--block{flex-direction:column}.navbarSearchContainer_Bca1{position:absolute;right:var(--ifm-navbar-padding-horizontal)}.docItemContainer_F8PC{padding:0 .3rem}}@media not (max-width:996px){.searchBar_RVTs.searchBarLeft_MXDe .dropdownMenu_qbY6{left:0!important;right:auto!important}}@media only screen and (max-width:996px){.searchQueryColumn_q7nx{max-width:60%!important}.searchContextColumn_oWAF{max-width:40%!important}}@media (max-width:576px){.markdown h1:first-child{--ifm-h1-font-size:2rem}.markdown>h2{--ifm-h2-font-size:1.5rem}.markdown>h3{--ifm-h3-font-size:1.25rem}.navbar__search-input:not(:focus){width:2rem}.searchBar_RVTs .dropdownMenu_qbY6{max-width:calc(100vw - var(--ifm-navbar-padding-horizontal)*2);width:var(--search-local-modal-width-sm,340px)}.searchBarContainer_NW3z:not(.focused_OWtg) .searchClearButton_qk4g,.searchHintContainer_Pkmr{display:none}}@media screen and (max-width:576px){.searchQueryColumn_q7nx{max-width:100%!important}.searchContextColumn_oWAF{max-width:100%!important;padding-left:var(--ifm-spacing-horizontal)!important}}@media (hover:hover){.backToTopButton_sjWU:hover{background-color:var(--ifm-color-emphasis-300)}}@media (pointer:fine){.thin-scrollbar{scrollbar-width:thin}.thin-scrollbar::-webkit-scrollbar{height:var(--ifm-scrollbar-size);width:var(--ifm-scrollbar-size)}.thin-scrollbar::-webkit-scrollbar-track{background:var(--ifm-scrollbar-track-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb{background:var(--ifm-scrollbar-thumb-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--ifm-scrollbar-thumb-hover-background-color)}}@media (prefers-reduced-motion:reduce){:root{--ifm-transition-fast:0ms;--ifm-transition-slow:0ms}}@media print{.announcementBar_mb4j,.footer,.menu,.navbar,.pagination-nav,.table-of-contents,.tocMobile_ITEo{display:none}.tabs{page-break-inside:avoid}.codeBlockLines_e6Vv{white-space:pre-wrap}} \ No newline at end of file diff --git a/pt-BR/assets/css/styles.4c3135ed.css b/pt-BR/assets/css/styles.4c3135ed.css new file mode 100644 index 0000000000..0032d4a2ad --- /dev/null +++ b/pt-BR/assets/css/styles.4c3135ed.css @@ -0,0 +1 @@ +.col,.container{padding:0 var(--ifm-spacing-horizontal);width:100%}.markdown>h2,.markdown>h3,.markdown>h4,.markdown>h5,.markdown>h6{margin-bottom:calc(var(--ifm-heading-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown li,body{word-wrap:break-word}body,ol ol,ol ul,ul ol,ul ul{margin:0}pre,table{overflow:auto}blockquote,pre{margin:0 0 var(--ifm-spacing-vertical)}.breadcrumbs__link,.button{transition-timing-function:var(--ifm-transition-timing-default)}.button,code{vertical-align:middle}.button--outline.button--active,.button--outline:active,.button--outline:hover,:root{--ifm-button-color:var(--ifm-font-color-base-inverse)}.menu__link:hover,a{transition:color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--dark,:root{--ifm-navbar-link-hover-color:var(--ifm-color-primary)}.menu,.navbar-sidebar{overflow-x:hidden}:root,html[data-theme=dark]{--ifm-color-emphasis-500:var(--ifm-color-gray-500)}[data-theme=dark] details.history,[data-theme=light] details.history{--history-summary-icon:var(--docusaurus-details-decoration-color);--history-separator:var(--ifm-table-border-color)}.toggleButton_gllP,html{-webkit-tap-highlight-color:transparent}*,.loader,.loadingRing_RJI3 div{box-sizing:border-box}.clean-list,.containsTaskList_mC6p,.details_lb9f>summary,.dropdown__menu,.menu__list{list-style:none}:root{--ifm-color-scheme:light;--ifm-dark-value:10%;--ifm-darker-value:15%;--ifm-darkest-value:30%;--ifm-light-value:15%;--ifm-lighter-value:30%;--ifm-lightest-value:50%;--ifm-contrast-background-value:90%;--ifm-contrast-foreground-value:70%;--ifm-contrast-background-dark-value:70%;--ifm-contrast-foreground-dark-value:90%;--ifm-color-primary:#3578e5;--ifm-color-secondary:#ebedf0;--ifm-color-success:#00a400;--ifm-color-info:#54c7ec;--ifm-color-warning:#ffba00;--ifm-color-danger:#fa383e;--ifm-color-primary-dark:#306cce;--ifm-color-primary-darker:#2d66c3;--ifm-color-primary-darkest:#2554a0;--ifm-color-primary-light:#538ce9;--ifm-color-primary-lighter:#72a1ed;--ifm-color-primary-lightest:#9abcf2;--ifm-color-primary-contrast-background:#ebf2fc;--ifm-color-primary-contrast-foreground:#102445;--ifm-color-secondary-dark:#d4d5d8;--ifm-color-secondary-darker:#c8c9cc;--ifm-color-secondary-darkest:#a4a6a8;--ifm-color-secondary-light:#eef0f2;--ifm-color-secondary-lighter:#f1f2f5;--ifm-color-secondary-lightest:#f5f6f8;--ifm-color-secondary-contrast-background:#fdfdfe;--ifm-color-secondary-contrast-foreground:#474748;--ifm-color-success-dark:#009400;--ifm-color-success-darker:#008b00;--ifm-color-success-darkest:#007300;--ifm-color-success-light:#26b226;--ifm-color-success-lighter:#4dbf4d;--ifm-color-success-lightest:#80d280;--ifm-color-success-contrast-background:#e6f6e6;--ifm-color-success-contrast-foreground:#003100;--ifm-color-info-dark:#4cb3d4;--ifm-color-info-darker:#47a9c9;--ifm-color-info-darkest:#3b8ba5;--ifm-color-info-light:#6ecfef;--ifm-color-info-lighter:#87d8f2;--ifm-color-info-lightest:#aae3f6;--ifm-color-info-contrast-background:#eef9fd;--ifm-color-info-contrast-foreground:#193c47;--ifm-color-warning-dark:#e6a700;--ifm-color-warning-darker:#d99e00;--ifm-color-warning-darkest:#b38200;--ifm-color-warning-light:#ffc426;--ifm-color-warning-lighter:#ffcf4d;--ifm-color-warning-lightest:#ffdd80;--ifm-color-warning-contrast-background:#fff8e6;--ifm-color-warning-contrast-foreground:#4d3800;--ifm-color-danger-dark:#e13238;--ifm-color-danger-darker:#d53035;--ifm-color-danger-darkest:#af272b;--ifm-color-danger-light:#fb565b;--ifm-color-danger-lighter:#fb7478;--ifm-color-danger-lightest:#fd9c9f;--ifm-color-danger-contrast-background:#ffebec;--ifm-color-danger-contrast-foreground:#4b1113;--ifm-color-white:#fff;--ifm-color-black:#000;--ifm-color-gray-0:var(--ifm-color-white);--ifm-color-gray-100:#f5f6f7;--ifm-color-gray-200:#ebedf0;--ifm-color-gray-300:#dadde1;--ifm-color-gray-400:#ccd0d5;--ifm-color-gray-500:#bec3c9;--ifm-color-gray-600:#8d949e;--ifm-color-gray-700:#606770;--ifm-color-gray-800:#444950;--ifm-color-gray-900:#1c1e21;--ifm-color-gray-1000:var(--ifm-color-black);--ifm-color-emphasis-0:var(--ifm-color-gray-0);--ifm-color-emphasis-100:var(--ifm-color-gray-100);--ifm-color-emphasis-200:var(--ifm-color-gray-200);--ifm-color-emphasis-300:var(--ifm-color-gray-300);--ifm-color-emphasis-400:var(--ifm-color-gray-400);--ifm-color-emphasis-600:var(--ifm-color-gray-600);--ifm-color-emphasis-700:var(--ifm-color-gray-700);--ifm-color-emphasis-800:var(--ifm-color-gray-800);--ifm-color-emphasis-900:var(--ifm-color-gray-900);--ifm-color-emphasis-1000:var(--ifm-color-gray-1000);--ifm-color-content:var(--ifm-color-emphasis-900);--ifm-color-content-inverse:var(--ifm-color-emphasis-0);--ifm-color-content-secondary:#525860;--ifm-background-color:#0000;--ifm-background-surface-color:var(--ifm-color-content-inverse);--ifm-global-border-width:1px;--ifm-global-radius:0.4rem;--ifm-hover-overlay:#0000000d;--ifm-font-color-base:var(--ifm-color-content);--ifm-font-color-base-inverse:var(--ifm-color-content-inverse);--ifm-font-color-secondary:var(--ifm-color-content-secondary);--ifm-font-family-base:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ifm-font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--ifm-font-size-base:100%;--ifm-font-weight-light:300;--ifm-font-weight-normal:400;--ifm-font-weight-semibold:500;--ifm-font-weight-bold:700;--ifm-font-weight-base:var(--ifm-font-weight-normal);--ifm-line-height-base:1.65;--ifm-global-spacing:1rem;--ifm-spacing-vertical:var(--ifm-global-spacing);--ifm-spacing-horizontal:var(--ifm-global-spacing);--ifm-transition-fast:200ms;--ifm-transition-slow:400ms;--ifm-transition-timing-default:cubic-bezier(0.08,0.52,0.52,1);--ifm-global-shadow-lw:0 1px 2px 0 #0000001a;--ifm-global-shadow-md:0 5px 40px #0003;--ifm-global-shadow-tl:0 12px 28px 0 #0003,0 2px 4px 0 #0000001a;--ifm-z-index-dropdown:100;--ifm-z-index-fixed:200;--ifm-z-index-overlay:400;--ifm-container-width:1140px;--ifm-container-width-xl:1320px;--ifm-code-background:#f6f7f8;--ifm-code-border-radius:var(--ifm-global-radius);--ifm-code-font-size:90%;--ifm-code-padding-horizontal:0.1rem;--ifm-code-padding-vertical:0.1rem;--ifm-pre-background:var(--ifm-code-background);--ifm-pre-border-radius:var(--ifm-code-border-radius);--ifm-pre-color:inherit;--ifm-pre-line-height:1.45;--ifm-pre-padding:1rem;--ifm-heading-color:inherit;--ifm-heading-margin-top:0;--ifm-heading-margin-bottom:var(--ifm-spacing-vertical);--ifm-heading-font-family:var(--ifm-font-family-base);--ifm-heading-font-weight:var(--ifm-font-weight-bold);--ifm-heading-line-height:1.25;--ifm-h1-font-size:2rem;--ifm-h2-font-size:1.5rem;--ifm-h3-font-size:1.25rem;--ifm-h4-font-size:1rem;--ifm-h5-font-size:0.875rem;--ifm-h6-font-size:0.85rem;--ifm-image-alignment-padding:1.25rem;--ifm-leading-desktop:1.25;--ifm-leading:calc(var(--ifm-leading-desktop)*1rem);--ifm-list-left-padding:2rem;--ifm-list-margin:1rem;--ifm-list-item-margin:0.25rem;--ifm-list-paragraph-margin:1rem;--ifm-table-cell-padding:0.75rem;--ifm-table-background:#0000;--ifm-table-stripe-background:#00000008;--ifm-table-border-width:1px;--ifm-table-border-color:var(--ifm-color-emphasis-300);--ifm-table-head-background:inherit;--ifm-table-head-color:inherit;--ifm-table-head-font-weight:var(--ifm-font-weight-bold);--ifm-table-cell-color:inherit;--ifm-link-color:var(--ifm-color-primary);--ifm-link-decoration:none;--ifm-link-hover-color:var(--ifm-link-color);--ifm-link-hover-decoration:underline;--ifm-paragraph-margin-bottom:var(--ifm-leading);--ifm-blockquote-font-size:var(--ifm-font-size-base);--ifm-blockquote-border-left-width:2px;--ifm-blockquote-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-blockquote-padding-vertical:0;--ifm-blockquote-shadow:none;--ifm-blockquote-color:var(--ifm-color-emphasis-800);--ifm-blockquote-border-color:var(--ifm-color-emphasis-300);--ifm-hr-background-color:var(--ifm-color-emphasis-500);--ifm-hr-height:1px;--ifm-hr-margin-vertical:1.5rem;--ifm-scrollbar-size:7px;--ifm-scrollbar-track-background-color:#f1f1f1;--ifm-scrollbar-thumb-background-color:silver;--ifm-scrollbar-thumb-hover-background-color:#a7a7a7;--ifm-alert-background-color:inherit;--ifm-alert-border-color:inherit;--ifm-alert-border-radius:var(--ifm-global-radius);--ifm-alert-border-width:0px;--ifm-alert-border-left-width:5px;--ifm-alert-color:var(--ifm-font-color-base);--ifm-alert-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-alert-padding-vertical:var(--ifm-spacing-vertical);--ifm-alert-shadow:var(--ifm-global-shadow-lw);--ifm-avatar-intro-margin:1rem;--ifm-avatar-intro-alignment:inherit;--ifm-avatar-photo-size:3rem;--ifm-badge-background-color:inherit;--ifm-badge-border-color:inherit;--ifm-badge-border-radius:var(--ifm-global-radius);--ifm-badge-border-width:var(--ifm-global-border-width);--ifm-badge-color:var(--ifm-color-white);--ifm-badge-padding-horizontal:calc(var(--ifm-spacing-horizontal)*0.5);--ifm-badge-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-breadcrumb-border-radius:1.5rem;--ifm-breadcrumb-spacing:0.5rem;--ifm-breadcrumb-color-active:var(--ifm-color-primary);--ifm-breadcrumb-item-background-active:var(--ifm-hover-overlay);--ifm-breadcrumb-padding-horizontal:0.8rem;--ifm-breadcrumb-padding-vertical:0.4rem;--ifm-breadcrumb-size-multiplier:1;--ifm-breadcrumb-separator:url('data:image/svg+xml;utf8,');--ifm-breadcrumb-separator-filter:none;--ifm-breadcrumb-separator-size:0.5rem;--ifm-breadcrumb-separator-size-multiplier:1.25;--ifm-button-background-color:inherit;--ifm-button-border-color:var(--ifm-button-background-color);--ifm-button-border-width:var(--ifm-global-border-width);--ifm-button-font-weight:var(--ifm-font-weight-bold);--ifm-button-padding-horizontal:1.5rem;--ifm-button-padding-vertical:0.375rem;--ifm-button-size-multiplier:1;--ifm-button-transition-duration:var(--ifm-transition-fast);--ifm-button-border-radius:calc(var(--ifm-global-radius)*var(--ifm-button-size-multiplier));--ifm-button-group-spacing:2px;--ifm-card-background-color:var(--ifm-background-surface-color);--ifm-card-border-radius:calc(var(--ifm-global-radius)*2);--ifm-card-horizontal-spacing:var(--ifm-global-spacing);--ifm-card-vertical-spacing:var(--ifm-global-spacing);--ifm-toc-border-color:var(--ifm-color-emphasis-300);--ifm-toc-link-color:var(--ifm-color-content-secondary);--ifm-toc-padding-vertical:0.5rem;--ifm-toc-padding-horizontal:0.5rem;--ifm-dropdown-background-color:var(--ifm-background-surface-color);--ifm-dropdown-font-weight:var(--ifm-font-weight-semibold);--ifm-dropdown-link-color:var(--ifm-font-color-base);--ifm-dropdown-hover-background-color:var(--ifm-hover-overlay);--ifm-footer-background-color:var(--ifm-color-emphasis-100);--ifm-footer-color:inherit;--ifm-footer-link-color:var(--ifm-color-emphasis-700);--ifm-footer-link-hover-color:var(--ifm-color-primary);--ifm-footer-link-horizontal-spacing:0.5rem;--ifm-footer-padding-horizontal:calc(var(--ifm-spacing-horizontal)*2);--ifm-footer-padding-vertical:calc(var(--ifm-spacing-vertical)*2);--ifm-footer-title-color:inherit;--ifm-footer-logo-max-width:min(30rem,90vw);--ifm-hero-background-color:var(--ifm-background-surface-color);--ifm-hero-text-color:var(--ifm-color-emphasis-800);--ifm-menu-color:var(--ifm-color-emphasis-700);--ifm-menu-color-active:var(--ifm-color-primary);--ifm-menu-color-background-active:var(--ifm-hover-overlay);--ifm-menu-color-background-hover:var(--ifm-hover-overlay);--ifm-menu-link-padding-horizontal:0.75rem;--ifm-menu-link-padding-vertical:0.375rem;--ifm-menu-link-sublist-icon:url('data:image/svg+xml;utf8,');--ifm-menu-link-sublist-icon-filter:none;--ifm-navbar-background-color:var(--ifm-background-surface-color);--ifm-navbar-height:3.75rem;--ifm-navbar-item-padding-horizontal:0.75rem;--ifm-navbar-item-padding-vertical:0.25rem;--ifm-navbar-link-color:var(--ifm-font-color-base);--ifm-navbar-link-active-color:var(--ifm-link-color);--ifm-navbar-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-navbar-padding-vertical:calc(var(--ifm-spacing-vertical)*0.5);--ifm-navbar-shadow:var(--ifm-global-shadow-lw);--ifm-navbar-search-input-background-color:var(--ifm-color-emphasis-200);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-800);--ifm-navbar-search-input-placeholder-color:var(--ifm-color-emphasis-500);--ifm-navbar-search-input-icon:url('data:image/svg+xml;utf8,');--ifm-navbar-sidebar-width:83vw;--ifm-pagination-border-radius:var(--ifm-global-radius);--ifm-pagination-color-active:var(--ifm-color-primary);--ifm-pagination-font-size:1rem;--ifm-pagination-item-active-background:var(--ifm-hover-overlay);--ifm-pagination-page-spacing:0.2em;--ifm-pagination-padding-horizontal:calc(var(--ifm-spacing-horizontal)*1);--ifm-pagination-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-pagination-nav-border-radius:var(--ifm-global-radius);--ifm-pagination-nav-color-hover:var(--ifm-color-primary);--ifm-pills-color-active:var(--ifm-color-primary);--ifm-pills-color-background-active:var(--ifm-hover-overlay);--ifm-pills-spacing:0.125rem;--ifm-tabs-color:var(--ifm-font-color-secondary);--ifm-tabs-color-active:var(--ifm-color-primary);--ifm-tabs-color-active-border:var(--ifm-tabs-color-active);--ifm-tabs-padding-horizontal:1rem;--ifm-tabs-padding-vertical:1rem;--docusaurus-progress-bar-color:var(--ifm-color-primary);--ifm-color-primary:#45aaf2;--ifm-color-primary-dark:#3d98d1;--ifm-color-primary-darker:#3788bf;--ifm-color-primary-darkest:#2d6e99;--ifm-color-primary-light:#66b5f8;--ifm-color-primary-lighter:#80bff9;--ifm-color-primary-lightest:#99c9fa;--ifm-code-font-size:95%;--docusaurus-highlighted-code-line-bg:#21657e0d;--ifm-table-stripe-background:#c6ddff!important;--ifm-table-background:#fdfdfd7a!important;--docusaurus-announcement-bar-height:auto;--docusaurus-tag-list-border:var(--ifm-color-emphasis-300);--docusaurus-collapse-button-bg:#0000;--docusaurus-collapse-button-bg-hover:#0000001a;--doc-sidebar-width:300px;--doc-sidebar-hidden-width:30px}.badge--danger,.badge--info,.badge--primary,.badge--secondary,.badge--success,.badge--warning{--ifm-badge-border-color:var(--ifm-badge-background-color)}.button--link,.button--outline{--ifm-button-background-color:#0000}html{-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%;background-color:var(--ifm-background-color);color:var(--ifm-font-color-base);color-scheme:var(--ifm-color-scheme);font:var(--ifm-font-size-base)/var(--ifm-line-height-base) var(--ifm-font-family-base);text-rendering:optimizelegibility}iframe{border:0;color-scheme:auto}.container{margin:0 auto;max-width:var(--ifm-container-width)}.container--fluid{max-width:inherit}.row{display:flex;flex-wrap:wrap;margin:0 calc(var(--ifm-spacing-horizontal)*-1)}.margin-bottom--none,.margin-vert--none,.markdown>:last-child{margin-bottom:0!important}.margin-top--none,.margin-vert--none,.tabItem_LNqP{margin-top:0!important}.row--no-gutters{margin-left:0;margin-right:0}.margin-horiz--none,.margin-right--none{margin-right:0!important}.row--no-gutters>.col{padding-left:0;padding-right:0}.row--align-top{align-items:flex-start}.row--align-bottom{align-items:flex-end}.menuExternalLink_NmtK,.row--align-center{align-items:center}.row--align-stretch{align-items:stretch}.row--align-baseline{align-items:baseline}.col{--ifm-col-width:100%;flex:1 0;margin-left:0;max-width:var(--ifm-col-width)}.padding-bottom--none,.padding-vert--none{padding-bottom:0!important}.padding-top--none,.padding-vert--none{padding-top:0!important}.padding-horiz--none,.padding-left--none{padding-left:0!important}.padding-horiz--none,.padding-right--none{padding-right:0!important}.col[class*=col--]{flex:0 0 var(--ifm-col-width)}.col--1{--ifm-col-width:8.33333%}.col--offset-1{margin-left:8.33333%}.col--2{--ifm-col-width:16.66667%}.col--offset-2{margin-left:16.66667%}.col--3{--ifm-col-width:25%}.col--offset-3{margin-left:25%}.col--4{--ifm-col-width:33.33333%}.col--offset-4{margin-left:33.33333%}.col--5{--ifm-col-width:41.66667%}.col--offset-5{margin-left:41.66667%}.col--6{--ifm-col-width:50%}.col--offset-6{margin-left:50%}.col--7{--ifm-col-width:58.33333%}.col--offset-7{margin-left:58.33333%}.col--8{--ifm-col-width:66.66667%}.col--offset-8{margin-left:66.66667%}.col--9{--ifm-col-width:75%}.col--offset-9{margin-left:75%}.col--10{--ifm-col-width:83.33333%}.col--offset-10{margin-left:83.33333%}.col--11{--ifm-col-width:91.66667%}.col--offset-11{margin-left:91.66667%}.col--12{--ifm-col-width:100%}.col--offset-12{margin-left:100%}.margin-horiz--none,.margin-left--none{margin-left:0!important}.margin--none{margin:0!important}.margin-bottom--xs,.margin-vert--xs{margin-bottom:.25rem!important}.margin-top--xs,.margin-vert--xs{margin-top:.25rem!important}.margin-horiz--xs,.margin-left--xs{margin-left:.25rem!important}.margin-horiz--xs,.margin-right--xs{margin-right:.25rem!important}.margin--xs{margin:.25rem!important}.margin-bottom--sm,.margin-vert--sm{margin-bottom:.5rem!important}.margin-top--sm,.margin-vert--sm{margin-top:.5rem!important}.margin-horiz--sm,.margin-left--sm{margin-left:.5rem!important}.margin-horiz--sm,.margin-right--sm{margin-right:.5rem!important}.margin--sm{margin:.5rem!important}.margin-bottom--md,.margin-vert--md{margin-bottom:1rem!important}.margin-top--md,.margin-vert--md{margin-top:1rem!important}.margin-horiz--md,.margin-left--md{margin-left:1rem!important}.margin-horiz--md,.margin-right--md{margin-right:1rem!important}.margin--md{margin:1rem!important}.margin-bottom--lg,.margin-vert--lg{margin-bottom:2rem!important}.margin-top--lg,.margin-vert--lg{margin-top:2rem!important}.margin-horiz--lg,.margin-left--lg{margin-left:2rem!important}.margin-horiz--lg,.margin-right--lg{margin-right:2rem!important}.margin--lg{margin:2rem!important}.margin-bottom--xl,.margin-vert--xl{margin-bottom:5rem!important}.margin-top--xl,.margin-vert--xl{margin-top:5rem!important}.margin-horiz--xl,.margin-left--xl{margin-left:5rem!important}.margin-horiz--xl,.margin-right--xl{margin-right:5rem!important}.margin--xl{margin:5rem!important}.padding--none{padding:0!important}.padding-bottom--xs,.padding-vert--xs{padding-bottom:.25rem!important}.padding-top--xs,.padding-vert--xs{padding-top:.25rem!important}.padding-horiz--xs,.padding-left--xs{padding-left:.25rem!important}.padding-horiz--xs,.padding-right--xs{padding-right:.25rem!important}.padding--xs{padding:.25rem!important}.padding-bottom--sm,.padding-vert--sm{padding-bottom:.5rem!important}.padding-top--sm,.padding-vert--sm{padding-top:.5rem!important}.padding-horiz--sm,.padding-left--sm{padding-left:.5rem!important}.padding-horiz--sm,.padding-right--sm{padding-right:.5rem!important}.padding--sm{padding:.5rem!important}.padding-bottom--md,.padding-vert--md{padding-bottom:1rem!important}.padding-top--md,.padding-vert--md{padding-top:1rem!important}.padding-horiz--md,.padding-left--md{padding-left:1rem!important}.padding-horiz--md,.padding-right--md{padding-right:1rem!important}.padding--md{padding:1rem!important}.padding-bottom--lg,.padding-vert--lg{padding-bottom:2rem!important}.padding-top--lg,.padding-vert--lg{padding-top:2rem!important}.padding-horiz--lg,.padding-left--lg{padding-left:2rem!important}.padding-horiz--lg,.padding-right--lg{padding-right:2rem!important}.padding--lg{padding:2rem!important}.padding-bottom--xl,.padding-vert--xl{padding-bottom:5rem!important}.padding-top--xl,.padding-vert--xl{padding-top:5rem!important}.padding-horiz--xl,.padding-left--xl{padding-left:5rem!important}.padding-horiz--xl,.padding-right--xl{padding-right:5rem!important}.padding--xl{padding:5rem!important}code{background-color:var(--ifm-code-background);border:.1rem solid #0000001a;border-radius:var(--ifm-code-border-radius);font-family:var(--ifm-font-family-monospace);font-size:var(--ifm-code-font-size);padding:var(--ifm-code-padding-vertical) var(--ifm-code-padding-horizontal)}a code{color:inherit}pre{background-color:var(--ifm-pre-background);border-radius:var(--ifm-pre-border-radius);color:var(--ifm-pre-color);font:var(--ifm-code-font-size)/var(--ifm-pre-line-height) var(--ifm-font-family-monospace);padding:var(--ifm-pre-padding)}pre code{background-color:initial;border:none;font-size:100%;line-height:inherit;padding:0}kbd{background-color:var(--ifm-color-emphasis-0);border:1px solid var(--ifm-color-emphasis-400);border-radius:.2rem;box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-400);color:var(--ifm-color-emphasis-800);font:80% var(--ifm-font-family-monospace);padding:.15rem .3rem}h1,h2,h3,h4,h5,h6{color:var(--ifm-heading-color);font-family:var(--ifm-heading-font-family);font-weight:var(--ifm-heading-font-weight);line-height:var(--ifm-heading-line-height);margin:var(--ifm-heading-margin-top) 0 var(--ifm-heading-margin-bottom) 0}h1{font-size:var(--ifm-h1-font-size)}h2{font-size:var(--ifm-h2-font-size)}h3{font-size:var(--ifm-h3-font-size)}h4{font-size:var(--ifm-h4-font-size)}h5{font-size:var(--ifm-h5-font-size)}h6{font-size:var(--ifm-h6-font-size)}img{max-width:100%}img[align=right]{padding-left:var(--image-alignment-padding)}img[align=left]{padding-right:var(--image-alignment-padding)}.markdown{--ifm-h1-vertical-rhythm-top:3;--ifm-h2-vertical-rhythm-top:2;--ifm-h3-vertical-rhythm-top:1.5;--ifm-heading-vertical-rhythm-top:1.25;--ifm-h1-vertical-rhythm-bottom:1.25;--ifm-heading-vertical-rhythm-bottom:1}.markdown:after,.markdown:before{content:"";display:table}.markdown:after{clear:both}.markdown h1:first-child{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-h1-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown>h2{--ifm-h2-font-size:2rem;margin-top:calc(var(--ifm-h2-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h3{--ifm-h3-font-size:1.5rem;margin-top:calc(var(--ifm-h3-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h4,.markdown>h5,.markdown>h6{margin-top:calc(var(--ifm-heading-vertical-rhythm-top)*var(--ifm-leading))}.markdown>p,.markdown>pre,.markdown>ul,.tabList__CuJ{margin-bottom:var(--ifm-leading)}.markdown li>p{margin-top:var(--ifm-list-paragraph-margin)}.markdown li+li{margin-top:var(--ifm-list-item-margin)}ol,ul{margin:0 0 var(--ifm-list-margin);padding-left:var(--ifm-list-left-padding)}ol ol,ul ol{list-style-type:lower-roman}ol ol ol,ol ul ol,ul ol ol,ul ul ol{list-style-type:lower-alpha}table{border-collapse:collapse;display:block;margin-bottom:var(--ifm-spacing-vertical)}table thead tr{border-bottom:2px solid var(--ifm-table-border-color)}table thead,table tr:nth-child(2n){background-color:var(--ifm-table-stripe-background)}table tr{background-color:var(--ifm-table-background);border-top:var(--ifm-table-border-width) solid var(--ifm-table-border-color)}table td,table th{border:var(--ifm-table-border-width) solid var(--ifm-table-border-color);padding:var(--ifm-table-cell-padding)}table th{background-color:var(--ifm-table-head-background);color:var(--ifm-table-head-color);font-weight:var(--ifm-table-head-font-weight)}table td{color:var(--ifm-table-cell-color)}strong{font-weight:var(--ifm-font-weight-bold)}a{color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}a:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button:hover,.text--no-decoration,.text--no-decoration:hover,a:not([href]){text-decoration:none}p{margin:0 0 var(--ifm-paragraph-margin-bottom)}blockquote{border-left:var(--ifm-blockquote-border-left-width) solid var(--ifm-blockquote-border-color);box-shadow:var(--ifm-blockquote-shadow);color:var(--ifm-blockquote-color);font-size:var(--ifm-blockquote-font-size);padding:var(--ifm-blockquote-padding-vertical) var(--ifm-blockquote-padding-horizontal)}blockquote>:first-child{margin-top:0}blockquote>:last-child{margin-bottom:0}hr{background-color:var(--ifm-hr-background-color);border:0;height:var(--ifm-hr-height);margin:var(--ifm-hr-margin-vertical) 0}.shadow--lw{box-shadow:var(--ifm-global-shadow-lw)!important}.shadow--md{box-shadow:var(--ifm-global-shadow-md)!important}.shadow--tl{box-shadow:var(--ifm-global-shadow-tl)!important}.text--primary,.wordWrapButtonEnabled_EoeP .wordWrapButtonIcon_Bwma{color:var(--ifm-color-primary)}.text--secondary{color:var(--ifm-color-secondary)}.text--success{color:var(--ifm-color-success)}.text--info{color:var(--ifm-color-info)}.text--warning{color:var(--ifm-color-warning)}.text--danger{color:var(--ifm-color-danger)}.text--center{text-align:center}.text--left,details.history table thead th{text-align:left}.text--justify{text-align:justify}.text--right{text-align:right}.text--capitalize{text-transform:capitalize}.text--lowercase{text-transform:lowercase}.admonitionHeading_Gvgb,.alert__heading,.text--uppercase{text-transform:uppercase}.text--light{font-weight:var(--ifm-font-weight-light)}.text--normal{font-weight:var(--ifm-font-weight-normal)}.text--semibold{font-weight:var(--ifm-font-weight-semibold)}.text--bold{font-weight:var(--ifm-font-weight-bold)}.text--italic{font-style:italic}.text--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text--break{word-wrap:break-word!important;word-break:break-word!important}.clean-btn{background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;padding:0}.alert,.alert .close{color:var(--ifm-alert-foreground-color)}.clean-list{padding-left:0}.alert--primary{--ifm-alert-background-color:var(--ifm-color-primary-contrast-background);--ifm-alert-background-color-highlight:#3578e526;--ifm-alert-foreground-color:var(--ifm-color-primary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-primary-dark)}.alert--secondary{--ifm-alert-background-color:var(--ifm-color-secondary-contrast-background);--ifm-alert-background-color-highlight:#ebedf026;--ifm-alert-foreground-color:var(--ifm-color-secondary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-secondary-dark)}.alert--success{--ifm-alert-background-color:var(--ifm-color-success-contrast-background);--ifm-alert-background-color-highlight:#00a40026;--ifm-alert-foreground-color:var(--ifm-color-success-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-success-dark)}.alert--info{--ifm-alert-background-color:var(--ifm-color-info-contrast-background);--ifm-alert-background-color-highlight:#54c7ec26;--ifm-alert-foreground-color:var(--ifm-color-info-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-info-dark)}.alert--warning{--ifm-alert-background-color:var(--ifm-color-warning-contrast-background);--ifm-alert-background-color-highlight:#ffba0026;--ifm-alert-foreground-color:var(--ifm-color-warning-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-warning-dark)}.alert--danger{--ifm-alert-background-color:var(--ifm-color-danger-contrast-background);--ifm-alert-background-color-highlight:#fa383e26;--ifm-alert-foreground-color:var(--ifm-color-danger-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-danger-dark)}.alert{--ifm-code-background:var(--ifm-alert-background-color-highlight);--ifm-link-color:var(--ifm-alert-foreground-color);--ifm-link-hover-color:var(--ifm-alert-foreground-color);--ifm-link-decoration:underline;--ifm-tabs-color:var(--ifm-alert-foreground-color);--ifm-tabs-color-active:var(--ifm-alert-foreground-color);--ifm-tabs-color-active-border:var(--ifm-alert-border-color);background-color:var(--ifm-alert-background-color);border:var(--ifm-alert-border-width) solid var(--ifm-alert-border-color);border-left-width:var(--ifm-alert-border-left-width);border-radius:var(--ifm-alert-border-radius);box-shadow:var(--ifm-alert-shadow);padding:var(--ifm-alert-padding-vertical) var(--ifm-alert-padding-horizontal)}.alert__heading{align-items:center;display:flex;font:700 var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.5rem}.alert__icon{display:inline-flex;margin-right:.4em}.alert__icon svg{fill:var(--ifm-alert-foreground-color);stroke:var(--ifm-alert-foreground-color);stroke-width:0}.alert .close{margin:calc(var(--ifm-alert-padding-vertical)*-1) calc(var(--ifm-alert-padding-horizontal)*-1) 0 0;opacity:.75}.alert .close:focus,.alert .close:hover{opacity:1}.alert a{text-decoration-color:var(--ifm-alert-border-color)}.alert a:hover{text-decoration-thickness:2px}.avatar{column-gap:var(--ifm-avatar-intro-margin);display:flex}.avatar__photo{border-radius:50%;display:block;height:var(--ifm-avatar-photo-size);overflow:hidden;width:var(--ifm-avatar-photo-size)}.card--full-height,.navbar__logo img,body,html{height:100%}.avatar__photo--sm{--ifm-avatar-photo-size:2rem}.avatar__photo--lg{--ifm-avatar-photo-size:4rem}.avatar__photo--xl{--ifm-avatar-photo-size:6rem}.avatar__intro{display:flex;flex:1 1;flex-direction:column;justify-content:center;text-align:var(--ifm-avatar-intro-alignment)}.badge,.breadcrumbs__item,.breadcrumbs__link,.button,.dropdown>.navbar__link:after,.searchBarContainer_NW3z.searchIndexLoading_EJ1f .searchBarLoadingRing_YnHq{display:inline-block}.avatar__name{font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base)}.avatar__subtitle{margin-top:.25rem}.avatar--vertical{--ifm-avatar-intro-alignment:center;--ifm-avatar-intro-margin:0.5rem;align-items:center;flex-direction:column}.badge{background-color:var(--ifm-badge-background-color);border:var(--ifm-badge-border-width) solid var(--ifm-badge-border-color);border-radius:var(--ifm-badge-border-radius);color:var(--ifm-badge-color);font-size:75%;font-weight:var(--ifm-font-weight-bold);line-height:1;padding:var(--ifm-badge-padding-vertical) var(--ifm-badge-padding-horizontal)}.badge--primary{--ifm-badge-background-color:var(--ifm-color-primary)}.badge--secondary{--ifm-badge-background-color:var(--ifm-color-secondary);color:var(--ifm-color-black)}.breadcrumbs__link,.button.button--secondary.button--outline:not(.button--active):not(:hover){color:var(--ifm-font-color-base)}.badge--success{--ifm-badge-background-color:var(--ifm-color-success)}.badge--info{--ifm-badge-background-color:var(--ifm-color-info)}.badge--warning{--ifm-badge-background-color:var(--ifm-color-warning)}.badge--danger{--ifm-badge-background-color:var(--ifm-color-danger)}.breadcrumbs{margin-bottom:0;padding-left:0}.breadcrumbs__item:not(:last-child):after{background:var(--ifm-breadcrumb-separator) center;content:" ";display:inline-block;filter:var(--ifm-breadcrumb-separator-filter);height:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier));margin:0 var(--ifm-breadcrumb-spacing);opacity:.5;width:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier))}.breadcrumbs__item--active .breadcrumbs__link{background:var(--ifm-breadcrumb-item-background-active);color:var(--ifm-breadcrumb-color-active)}.breadcrumbs__link{border-radius:var(--ifm-breadcrumb-border-radius);font-size:calc(1rem*var(--ifm-breadcrumb-size-multiplier));padding:calc(var(--ifm-breadcrumb-padding-vertical)*var(--ifm-breadcrumb-size-multiplier)) calc(var(--ifm-breadcrumb-padding-horizontal)*var(--ifm-breadcrumb-size-multiplier));transition-duration:var(--ifm-transition-fast);transition-property:background,color}.breadcrumbs__link:any-link:hover,.breadcrumbs__link:link:hover,.breadcrumbs__link:visited:hover,area[href].breadcrumbs__link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs--sm{--ifm-breadcrumb-size-multiplier:0.8}.breadcrumbs--lg{--ifm-breadcrumb-size-multiplier:1.2}.button{background-color:var(--ifm-button-background-color);border:var(--ifm-button-border-width) solid var(--ifm-button-border-color);border-radius:var(--ifm-button-border-radius);cursor:pointer;font-size:calc(.875rem*var(--ifm-button-size-multiplier));font-weight:var(--ifm-button-font-weight);line-height:1.5;padding:calc(var(--ifm-button-padding-vertical)*var(--ifm-button-size-multiplier)) calc(var(--ifm-button-padding-horizontal)*var(--ifm-button-size-multiplier));text-align:center;transition-duration:var(--ifm-button-transition-duration);transition-property:color,background,border-color;-webkit-user-select:none;user-select:none;white-space:nowrap}.button,.button:hover{color:var(--ifm-button-color)}.button--outline{--ifm-button-color:var(--ifm-button-border-color)}.button--outline:hover{--ifm-button-background-color:var(--ifm-button-border-color)}.button--link{--ifm-button-border-color:#0000;color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}.button--link.button--active,.button--link:active,.button--link:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button.disabled,.button:disabled,.button[disabled]{opacity:.65;pointer-events:none}.button--sm{--ifm-button-size-multiplier:0.8}.button--lg{--ifm-button-size-multiplier:1.35}.button--block{display:block;width:100%}.button.button--secondary{color:var(--ifm-color-gray-900)}:where(.button--primary){--ifm-button-background-color:var(--ifm-color-primary);--ifm-button-border-color:var(--ifm-color-primary)}:where(.button--primary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-primary-dark);--ifm-button-border-color:var(--ifm-color-primary-dark)}.button--primary.button--active,.button--primary:active{--ifm-button-background-color:var(--ifm-color-primary-darker);--ifm-button-border-color:var(--ifm-color-primary-darker)}:where(.button--secondary){--ifm-button-background-color:var(--ifm-color-secondary);--ifm-button-border-color:var(--ifm-color-secondary)}:where(.button--secondary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-secondary-dark);--ifm-button-border-color:var(--ifm-color-secondary-dark)}.button--secondary.button--active,.button--secondary:active{--ifm-button-background-color:var(--ifm-color-secondary-darker);--ifm-button-border-color:var(--ifm-color-secondary-darker)}:where(.button--success){--ifm-button-background-color:var(--ifm-color-success);--ifm-button-border-color:var(--ifm-color-success)}:where(.button--success):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-success-dark);--ifm-button-border-color:var(--ifm-color-success-dark)}.button--success.button--active,.button--success:active{--ifm-button-background-color:var(--ifm-color-success-darker);--ifm-button-border-color:var(--ifm-color-success-darker)}:where(.button--info){--ifm-button-background-color:var(--ifm-color-info);--ifm-button-border-color:var(--ifm-color-info)}:where(.button--info):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-info-dark);--ifm-button-border-color:var(--ifm-color-info-dark)}.button--info.button--active,.button--info:active{--ifm-button-background-color:var(--ifm-color-info-darker);--ifm-button-border-color:var(--ifm-color-info-darker)}:where(.button--warning){--ifm-button-background-color:var(--ifm-color-warning);--ifm-button-border-color:var(--ifm-color-warning)}:where(.button--warning):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-warning-dark);--ifm-button-border-color:var(--ifm-color-warning-dark)}.button--warning.button--active,.button--warning:active{--ifm-button-background-color:var(--ifm-color-warning-darker);--ifm-button-border-color:var(--ifm-color-warning-darker)}:where(.button--danger){--ifm-button-background-color:var(--ifm-color-danger);--ifm-button-border-color:var(--ifm-color-danger)}:where(.button--danger):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-danger-dark);--ifm-button-border-color:var(--ifm-color-danger-dark)}.button--danger.button--active,.button--danger:active{--ifm-button-background-color:var(--ifm-color-danger-darker);--ifm-button-border-color:var(--ifm-color-danger-darker)}.button-group{display:inline-flex;gap:var(--ifm-button-group-spacing)}.button-group>.button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.button-group>.button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.button-group--block{display:flex;justify-content:stretch}.button-group--block>.button{flex-grow:1}.card{background-color:var(--ifm-card-background-color);border-radius:var(--ifm-card-border-radius);box-shadow:var(--ifm-global-shadow-lw);display:flex;flex-direction:column;overflow:hidden}.card__image{padding-top:var(--ifm-card-vertical-spacing)}.card__image:first-child{padding-top:0}.card__body,.card__footer,.card__header{padding:var(--ifm-card-vertical-spacing) var(--ifm-card-horizontal-spacing)}.card__body:not(:last-child),.card__footer:not(:last-child),.card__header:not(:last-child){padding-bottom:0}.card__body>:last-child,.card__footer>:last-child,.card__header>:last-child{margin-bottom:0}.card__footer{margin-top:auto}.table-of-contents{font-size:.8rem;margin-bottom:0;padding:var(--ifm-toc-padding-vertical) 0}.table-of-contents,.table-of-contents ul{list-style:none;padding-left:var(--ifm-toc-padding-horizontal)}.table-of-contents li{margin:var(--ifm-toc-padding-vertical) var(--ifm-toc-padding-horizontal)}.table-of-contents__left-border{border-left:1px solid var(--ifm-toc-border-color)}.table-of-contents__link{color:var(--ifm-toc-link-color);display:block}.table-of-contents__link--active,.table-of-contents__link--active code,.table-of-contents__link:hover,.table-of-contents__link:hover code{color:var(--ifm-color-primary);text-decoration:none}.content_knG7 a,.hitFooter_E9YW a,.suggestion_fB_2.cursor_eG29 mark{text-decoration:underline}.close{color:var(--ifm-color-black);float:right;font-size:1.5rem;font-weight:var(--ifm-font-weight-bold);line-height:1;opacity:.5;padding:1rem;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.close:hover{opacity:.7}.close:focus,.theme-code-block-highlighted-line .codeLineNumber_Tfdd:before{opacity:.8}.dropdown{display:inline-flex;font-weight:var(--ifm-dropdown-font-weight);position:relative;vertical-align:top}.dropdown--hoverable:hover .dropdown__menu,.dropdown--show .dropdown__menu{opacity:1;pointer-events:all;transform:translateY(-1px);visibility:visible}.dropdown--right .dropdown__menu{left:inherit;right:0}.dropdown--nocaret .navbar__link:after{content:none!important}.dropdown__menu{background-color:var(--ifm-dropdown-background-color);border-radius:var(--ifm-global-radius);box-shadow:var(--ifm-global-shadow-md);left:0;max-height:80vh;min-width:10rem;opacity:0;overflow-y:auto;padding:.5rem;pointer-events:none;position:absolute;top:calc(100% - var(--ifm-navbar-item-padding-vertical) + .3rem);transform:translateY(-.625rem);transition-duration:var(--ifm-transition-fast);transition-property:opacity,transform,visibility;transition-timing-function:var(--ifm-transition-timing-default);visibility:hidden;z-index:var(--ifm-z-index-dropdown)}.menu__caret,.menu__link,.menu__list-item-collapsible{border-radius:.25rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.dropdown__link{border-radius:.25rem;color:var(--ifm-dropdown-link-color);display:block;font-size:.875rem;margin-top:.2rem;padding:.25rem .5rem;white-space:nowrap}.dropdown__link--active,.dropdown__link:hover{background-color:var(--ifm-dropdown-hover-background-color);color:var(--ifm-dropdown-link-color);text-decoration:none}.dropdown__link--active,.dropdown__link--active:hover{--ifm-dropdown-link-color:var(--ifm-link-color)}.dropdown>.navbar__link:after{border-color:currentcolor #0000;border-style:solid;border-width:.4em .4em 0;content:"";margin-left:.3em;position:relative;top:2px;transform:translateY(-50%)}.footer{background-color:var(--ifm-footer-background-color);color:var(--ifm-footer-color);padding:var(--ifm-footer-padding-vertical) var(--ifm-footer-padding-horizontal)}.footer--dark{--ifm-footer-background-color:#303846;--ifm-footer-color:var(--ifm-footer-link-color);--ifm-footer-link-color:var(--ifm-color-secondary);--ifm-footer-title-color:var(--ifm-color-white)}.footer__links{margin-bottom:1rem}.footer__link-item{color:var(--ifm-footer-link-color);line-height:2}.footer__link-item:hover{color:var(--ifm-footer-link-hover-color)}.footer__link-separator{margin:0 var(--ifm-footer-link-horizontal-spacing)}.footer__logo{margin-top:1rem;max-width:var(--ifm-footer-logo-max-width)}.footer__title{color:var(--ifm-footer-title-color);font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base);margin-bottom:var(--ifm-heading-margin-bottom)}.menu,.navbar__link{font-weight:var(--ifm-font-weight-semibold)}.docItemContainer_Djhp article>:first-child,.docItemContainer_Djhp header+*,.footer__item{margin-top:0}.admonitionContent_BuS1>:last-child,.collapsibleContent_i85q p:last-child,.details_lb9f>summary>p:last-child,.footer__items,.searchResultItem_U687>h2,.tabItem_Ymn6>:last-child{margin-bottom:0}.codeBlockStandalone_MEMb,[type=checkbox]{padding:0}.hero{align-items:center;background-color:var(--ifm-hero-background-color);color:var(--ifm-hero-text-color);display:flex;padding:4rem 2rem}.hero--primary{--ifm-hero-background-color:var(--ifm-color-primary);--ifm-hero-text-color:var(--ifm-font-color-base-inverse)}.hero--dark{--ifm-hero-background-color:#303846;--ifm-hero-text-color:var(--ifm-color-white)}.hero__title{font-size:3rem}.hero__subtitle{font-size:1.5rem}.menu__list{margin:0;padding-left:0}.menu__caret,.menu__link{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu__list .menu__list{flex:0 0 100%;margin-top:.25rem;padding-left:var(--ifm-menu-link-padding-horizontal)}.menu__list-item:not(:first-child){margin-top:.25rem}.menu__list-item--collapsed .menu__list{height:0;overflow:hidden}.details_lb9f[data-collapsed=false].isBrowser_bmU9>summary:before,.details_lb9f[open]:not(.isBrowser_bmU9)>summary:before,.menu__list-item--collapsed .menu__caret:before,.menu__list-item--collapsed .menu__link--sublist:after{transform:rotate(90deg)}.menu__list-item-collapsible{display:flex;flex-wrap:wrap;position:relative}.menu__caret:hover,.menu__link:hover,.menu__list-item-collapsible--active,.menu__list-item-collapsible:hover{background:var(--ifm-menu-color-background-hover)}.menu__list-item-collapsible .menu__link--active,.menu__list-item-collapsible .menu__link:hover{background:none!important}.menu__caret,.menu__link{align-items:center;display:flex}.navbar-sidebar,.navbar-sidebar__backdrop{bottom:0;opacity:0;transition-duration:var(--ifm-transition-fast);transition-timing-function:ease-in-out;left:0;top:0;visibility:hidden}.menu__link{color:var(--ifm-menu-color);flex:1;line-height:1.25}.menu__link:hover{color:var(--ifm-menu-color);text-decoration:none}.menu__caret:before,.menu__link--sublist-caret:after{content:"";transform:rotate(180deg);transition:transform var(--ifm-transition-fast) linear;height:1.25rem;width:1.25rem;filter:var(--ifm-menu-link-sublist-icon-filter)}.menu__link--sublist-caret:after{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem;margin-left:auto;min-width:1.25rem}.menu__link--active,.menu__link--active:hover{color:var(--ifm-menu-color-active)}.navbar__brand,.navbar__link{color:var(--ifm-navbar-link-color)}.menu__link--active:not(.menu__link--sublist){background-color:var(--ifm-menu-color-background-active)}.menu__caret:before{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem}.navbar--dark,html[data-theme=dark]{--ifm-menu-link-sublist-icon-filter:invert(100%) sepia(94%) saturate(17%) hue-rotate(223deg) brightness(104%) contrast(98%)}.navbar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-navbar-shadow);height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar,.navbar>.container,.navbar>.container-fluid{display:flex}.navbar--fixed-top{position:sticky;top:0;z-index:var(--ifm-z-index-fixed)}.navbar__inner{display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.navbar__brand{align-items:center;display:flex;min-width:0}.navbar__brand:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.announcementBarContent_xLdY,.navbar__title{flex:1 1 auto}.navbar__toggle{display:none;margin-right:.5rem}.navbar__logo{flex:0 0 auto;height:2rem;margin-right:.5rem}.navbar__items{align-items:center;display:flex;flex:1;min-width:0}.navbar__items--center{flex:0 0 auto}.navbar__items--center .navbar__brand{margin:0}.navbar__items--center+.navbar__items--right{flex:1}.navbar__items--right{flex:0 0 auto;justify-content:flex-end}.navbar__items--right>:last-child{padding-right:0}.navbar__item{display:inline-block;padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}#nprogress,.navbar__item.dropdown .navbar__link:not([href]){pointer-events:none}.navbar__link--active,.navbar__link:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.navbar--dark,.navbar--primary{--ifm-menu-color:var(--ifm-color-gray-300);--ifm-navbar-link-color:var(--ifm-color-gray-100);--ifm-navbar-search-input-background-color:#ffffff1a;--ifm-navbar-search-input-placeholder-color:#ffffff80;color:var(--ifm-color-white)}.navbar--dark{--ifm-navbar-background-color:#242526;--ifm-menu-color-background-active:#ffffff0d;--ifm-navbar-search-input-color:var(--ifm-color-white)}.navbar--primary{--ifm-navbar-background-color:var(--ifm-color-primary);--ifm-navbar-link-hover-color:var(--ifm-color-white);--ifm-menu-color-active:var(--ifm-color-white);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-500)}.navbar__search-input{-webkit-appearance:none;appearance:none;background:var(--ifm-navbar-search-input-background-color) var(--ifm-navbar-search-input-icon) no-repeat .75rem center/1rem 1rem;border:none;border-radius:2rem;color:var(--ifm-navbar-search-input-color);cursor:text;display:inline-block;font-size:.9rem;height:2rem;padding:0 .5rem 0 2.25rem;width:12.5rem}.navbar__search-input::placeholder{color:var(--ifm-navbar-search-input-placeholder-color)}.navbar-sidebar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-global-shadow-md);position:fixed;transform:translate3d(-100%,0,0);transition-property:opacity,visibility,transform;width:var(--ifm-navbar-sidebar-width)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar__items{transform:translateZ(0)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar--show .navbar-sidebar__backdrop{opacity:1;visibility:visible}.navbar-sidebar__backdrop{background-color:#0009;position:fixed;right:0;transition-property:opacity,visibility}.navbar-sidebar__brand{align-items:center;box-shadow:var(--ifm-navbar-shadow);display:flex;flex:1;height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar-sidebar__items{display:flex;height:calc(100% - var(--ifm-navbar-height));transition:transform var(--ifm-transition-fast) ease-in-out}.navbar-sidebar__items--show-secondary{transform:translate3d(calc((var(--ifm-navbar-sidebar-width))*-1),0,0)}.navbar-sidebar__item{flex-shrink:0;padding:.5rem;width:calc(var(--ifm-navbar-sidebar-width))}.navbar-sidebar__back{background:var(--ifm-menu-color-background-active);font-size:15px;font-weight:var(--ifm-button-font-weight);margin:0 0 .2rem -.5rem;padding:.6rem 1.5rem;position:relative;text-align:left;top:-.5rem;width:calc(100% + 1rem)}.navbar-sidebar__close{display:flex;margin-left:auto}.pagination{column-gap:var(--ifm-pagination-page-spacing);display:flex;font-size:var(--ifm-pagination-font-size);padding-left:0}.pagination--sm{--ifm-pagination-font-size:0.8rem;--ifm-pagination-padding-horizontal:0.8rem;--ifm-pagination-padding-vertical:0.2rem}.pagination--lg{--ifm-pagination-font-size:1.2rem;--ifm-pagination-padding-horizontal:1.2rem;--ifm-pagination-padding-vertical:0.3rem}.pagination__item{display:inline-flex}.pagination__item>span{padding:var(--ifm-pagination-padding-vertical)}.pagination__item--active .pagination__link{color:var(--ifm-pagination-color-active)}.pagination__item--active .pagination__link,.pagination__item:not(.pagination__item--active):hover .pagination__link{background:var(--ifm-pagination-item-active-background)}.pagination__item--disabled,.pagination__item[disabled]{opacity:.25;pointer-events:none}.pagination__link{border-radius:var(--ifm-pagination-border-radius);color:var(--ifm-font-color-base);display:inline-block;padding:var(--ifm-pagination-padding-vertical) var(--ifm-pagination-padding-horizontal);transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination__link:hover{text-decoration:none}.pagination-nav{grid-gap:var(--ifm-spacing-horizontal);display:grid;gap:var(--ifm-spacing-horizontal);grid-template-columns:repeat(2,1fr)}.pagination-nav__link{border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-pagination-nav-border-radius);display:block;height:100%;line-height:var(--ifm-heading-line-height);padding:var(--ifm-global-spacing);transition:border-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination-nav__link:hover{border-color:var(--ifm-pagination-nav-color-hover);text-decoration:none}.pagination-nav__link--next{grid-column:2/3;text-align:right}.pagination-nav__label{font-size:var(--ifm-h4-font-size);font-weight:var(--ifm-heading-font-weight);word-break:break-word}.pagination-nav__link--prev .pagination-nav__label:before{content:"« "}.pagination-nav__link--next .pagination-nav__label:after{content:" »"}.pagination-nav__sublabel{color:var(--ifm-color-content-secondary);font-size:var(--ifm-h5-font-size);font-weight:var(--ifm-font-weight-semibold);margin-bottom:.25rem}.pills__item,.tabs{font-weight:var(--ifm-font-weight-bold)}.pills{display:flex;gap:var(--ifm-pills-spacing);padding-left:0}.pills__item{border-radius:.5rem;cursor:pointer;display:inline-block;padding:.25rem 1rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs,:not(.containsTaskList_mC6p>li)>.containsTaskList_mC6p{padding-left:0}.pills__item--active{color:var(--ifm-pills-color-active)}.pills__item--active,.pills__item:not(.pills__item--active):hover{background:var(--ifm-pills-color-background-active)}.pills--block{justify-content:stretch}.pills--block .pills__item{flex-grow:1;text-align:center}.tabs{color:var(--ifm-tabs-color);display:flex;margin-bottom:0;overflow-x:auto}.tabs__item{border-bottom:3px solid #0000;border-radius:var(--ifm-global-radius);cursor:pointer;display:inline-flex;padding:var(--ifm-tabs-padding-vertical) var(--ifm-tabs-padding-horizontal);transition:background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs__item--active{border-bottom-color:var(--ifm-tabs-color-active-border);border-bottom-left-radius:0;border-bottom-right-radius:0;color:var(--ifm-tabs-color-active)}.tabs__item:hover{background-color:var(--ifm-hover-overlay)}.tabs--block{justify-content:stretch}.tabs--block .tabs__item{flex-grow:1;justify-content:center}html[data-theme=dark]{--ifm-color-scheme:dark;--ifm-color-emphasis-0:var(--ifm-color-gray-1000);--ifm-color-emphasis-100:var(--ifm-color-gray-900);--ifm-color-emphasis-200:var(--ifm-color-gray-800);--ifm-color-emphasis-300:var(--ifm-color-gray-700);--ifm-color-emphasis-400:var(--ifm-color-gray-600);--ifm-color-emphasis-600:var(--ifm-color-gray-400);--ifm-color-emphasis-700:var(--ifm-color-gray-300);--ifm-color-emphasis-800:var(--ifm-color-gray-200);--ifm-color-emphasis-900:var(--ifm-color-gray-100);--ifm-color-emphasis-1000:var(--ifm-color-gray-0);--ifm-background-color:#1b1b1d;--ifm-background-surface-color:#242526;--ifm-hover-overlay:#ffffff0d;--ifm-color-content:#e3e3e3;--ifm-color-content-secondary:#fff;--ifm-breadcrumb-separator-filter:invert(64%) sepia(11%) saturate(0%) hue-rotate(149deg) brightness(99%) contrast(95%);--ifm-code-background:#ffffff1a;--ifm-scrollbar-track-background-color:#444;--ifm-scrollbar-thumb-background-color:#686868;--ifm-scrollbar-thumb-hover-background-color:#7a7a7a;--ifm-table-stripe-background:#ffffff12;--ifm-toc-border-color:var(--ifm-color-emphasis-200);--ifm-color-primary-contrast-background:#102445;--ifm-color-primary-contrast-foreground:#ebf2fc;--ifm-color-secondary-contrast-background:#474748;--ifm-color-secondary-contrast-foreground:#fdfdfe;--ifm-color-success-contrast-background:#003100;--ifm-color-success-contrast-foreground:#e6f6e6;--ifm-color-info-contrast-background:#193c47;--ifm-color-info-contrast-foreground:#eef9fd;--ifm-color-warning-contrast-background:#4d3800;--ifm-color-warning-contrast-foreground:#fff8e6;--ifm-color-danger-contrast-background:#4b1113;--ifm-color-danger-contrast-foreground:#ffebec}#nprogress .bar{background:var(--docusaurus-progress-bar-color);height:2px;left:0;position:fixed;top:0;width:100%;z-index:1031}#nprogress .peg{box-shadow:0 0 10px var(--docusaurus-progress-bar-color),0 0 5px var(--docusaurus-progress-bar-color);height:100%;opacity:1;position:absolute;right:0;transform:rotate(3deg) translateY(-4px);width:100px}[data-theme=dark]{--ifm-color-primary:#7a77ff;--ifm-color-primary-dark:#5552ff;--ifm-color-primary-darker:#433fff;--ifm-color-primary-darkest:#0c07ff;--ifm-color-primary-light:#9f9cff;--ifm-color-primary-lighter:#b1afff;--ifm-color-primary-lightest:#b1afff;--docusaurus-highlighted-code-line-bg:#0c0d152b;--ifm-table-stripe-background:#5e30a0!important;--ifm-table-background:#0000!important}[data-theme=light] code[class*=language-],[data-theme=light] pre[class*=language-]{background-color:#f9fafb!important}[data-theme=light] code[class*=language-] .token.comment,[data-theme=light] pre[class*=language-] .token.comment{color:#6e7781!important}[data-theme=light] code[class*=language-] .token.string,[data-theme=light] pre[class*=language-] .token.string{color:#0a3069!important}[data-theme=light] code[class*=language-] .token.keyword,[data-theme=light] pre[class*=language-] .token.keyword{color:#cf222e!important}[data-theme=light] code[class*=language-] .token.method,[data-theme=light] pre[class*=language-] .token.method{color:#6639ba!important}[data-theme=light] code[class*=language-] .token.number,[data-theme=light] code[class*=language-] .token.property,[data-theme=light] pre[class*=language-] .token.number,[data-theme=light] pre[class*=language-] .token.property{color:#0550ae!important}code[class*=language-],pre[class*=language-]{font-size:.85em}code[class*=language-] .token.comment,pre[class*=language-] .token.comment{font-size:.9em;font-style:normal!important}.navbar__brand{margin-right:0}.navbar__manual--title{font-weight:700;margin-right:1rem;padding:0}#__docusaurus-base-url-issue-banner-container,.docSidebarContainer_YfHR,.hideAction_vcyE>svg,.navbar.navbar--fixed-top .navbar__item.dropdown.dropdown--hoverable svg,.sidebarLogo_isFc,.themedComponent_mlkZ,[data-theme=dark] .lightToggleIcon_pyhR,[data-theme=light] .darkToggleIcon_wfgR,html[data-announcement-bar-initially-dismissed=true] .announcementBar_mb4j{display:none}[title="svg{height:var(--search-local-hit-height,56px);opacity:.5;width:24px}.hitIcon_a7Zy,.hitTree_kk6K>svg{stroke-width:var(--search-local-icon-stroke-width,1.4)}.hitAction_NqkB,.hitIcon_a7Zy{height:20px;width:20px}.hitWrapper_sAK8{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;margin:0 8px;overflow-x:hidden;width:80%}.hitWrapper_sAK8 mark{background:none;color:var(--search-local-highlight-color,var(--ifm-color-primary))}.hitTitle_vyVt{font-size:.9em}.hitPath_ieM4{font-size:.75em}.hitPath_ieM4,.hitTitle_vyVt{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.noResults_l6Q3{flex-direction:column;justify-content:center;padding:var(--search-local-spacing,12px) 0}.noResultsIcon_EBY5{margin-bottom:var(--search-local-spacing,12px)}.hitFooter_E9YW{font-size:.85em;margin-top:var(--search-local-spacing,12px);text-align:center}.cursor_eG29 .hideAction_vcyE>svg,.tocCollapsibleContent_vkbj a{display:block}.suggestion_fB_2.cursor_eG29,.suggestion_fB_2.cursor_eG29 .hitIcon_a7Zy,.suggestion_fB_2.cursor_eG29 .hitPath_ieM4,.suggestion_fB_2.cursor_eG29 .hitTree_kk6K,.suggestion_fB_2.cursor_eG29 mark{color:var(--search-local-hit-active-color,var(--ifm-color-white))!important}.searchBarContainer_NW3z{margin-left:16px}.searchBarContainer_NW3z .searchBarLoadingRing_YnHq{display:none;left:10px;position:absolute;top:6px}.searchBarContainer_NW3z .searchClearButton_qk4g{background:none;border:none;line-height:1rem;padding:0;position:absolute;right:.8rem;top:50%;transform:translateY(-50%)}.navbar__search{position:relative}.searchIndexLoading_EJ1f .navbar__search-input{background-image:none}.searchHintContainer_Pkmr{align-items:center;display:flex;gap:4px;height:100%;justify-content:center;pointer-events:none;position:absolute;right:10px;top:0}.searchHint_iIMx{background-color:var(--ifm-navbar-search-input-background-color);border:1px solid var(--ifm-color-emphasis-500);box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-500);color:var(--ifm-navbar-search-input-placeholder-color)}.loadingRing_RJI3{display:inline-block;height:20px;opacity:var(--search-local-loading-icon-opacity,.5);position:relative;width:20px}.loadingRing_RJI3 div{animation:1.2s cubic-bezier(.5,0,.5,1) infinite b;border:2px solid var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color));border-color:var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color)) #0000 #0000 #0000;border-radius:50%;display:block;height:16px;margin:2px;position:absolute;width:16px}.loadingRing_RJI3 div:first-child{animation-delay:-.45s}.loadingRing_RJI3 div:nth-child(2){animation-delay:-.3s}.loadingRing_RJI3 div:nth-child(3){animation-delay:-.15s}@keyframes b{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@supports selector(:has(*)){.navbarSearchContainer_Bca1:not(:has(>*)){display:none}}.navbarHideable_m1mJ{transition:transform var(--ifm-transition-fast) ease}.navbarHidden_jGov{transform:translate3d(0,calc(-100% - 2px),0)}.errorBoundaryError_a6uf{color:red;white-space:pre-wrap}.errorBoundaryFallback_VBag{color:red;padding:.55rem}.footerLogoLink_BH7S{opacity:.5;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.footerLogoLink_BH7S:hover,.hash-link:focus,:hover>.hash-link{opacity:1}.anchorWithStickyNavbar_LWe7{scroll-margin-top:calc(var(--ifm-navbar-height) + .5rem)}.anchorWithHideOnScrollNavbar_WYt5{scroll-margin-top:.5rem}.hash-link{opacity:0;padding-left:.5rem;transition:opacity var(--ifm-transition-fast);-webkit-user-select:none;user-select:none}.hash-link:before{content:"#"}.mainWrapper_z2l0{display:flex;flex:1 0 auto;flex-direction:column}.docusaurus-mt-lg{margin-top:3rem}#__docusaurus{display:flex;flex-direction:column;min-height:100%}.iconEdit_Z9Sw{margin-right:.3em;vertical-align:sub}.tag_zVej{border:1px solid var(--docusaurus-tag-list-border);transition:border var(--ifm-transition-fast)}.tag_zVej:hover{--docusaurus-tag-list-border:var(--ifm-link-color);text-decoration:none}.tagRegular_sFm0{border-radius:var(--ifm-global-radius);font-size:90%;padding:.2rem .5rem .3rem}.tagWithCount_h2kH{align-items:center;border-left:0;display:flex;padding:0 .5rem 0 1rem;position:relative}.tagWithCount_h2kH:after,.tagWithCount_h2kH:before{border:1px solid var(--docusaurus-tag-list-border);content:"";position:absolute;top:50%;transition:inherit}.tagWithCount_h2kH:before{border-bottom:0;border-right:0;height:1.18rem;right:100%;transform:translate(50%,-50%) rotate(-45deg);width:1.18rem}.tagWithCount_h2kH:after{border-radius:50%;height:.5rem;left:0;transform:translateY(-50%);width:.5rem}.tagWithCount_h2kH span{background:var(--ifm-color-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-color-black);font-size:.7rem;line-height:1.2;margin-left:.3rem;padding:.1rem .4rem}.tags_jXut{display:inline}.tag_QGVx{display:inline-block;margin:0 .4rem .5rem 0}.lastUpdated_vwxv{font-size:smaller;font-style:italic;margin-top:.2rem}.tocCollapsibleButton_TO0P{align-items:center;display:flex;font-size:inherit;justify-content:space-between;padding:.4rem .8rem;width:100%}.tocCollapsibleButton_TO0P:after{background:var(--ifm-menu-link-sublist-icon) 50% 50%/2rem 2rem no-repeat;content:"";filter:var(--ifm-menu-link-sublist-icon-filter);height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast);width:1.25rem}.tocCollapsibleButtonExpanded_MG3E:after,.tocCollapsibleExpanded_sAul{transform:none}.tocCollapsible_ETCw{background-color:var(--ifm-menu-color-background-active);border-radius:var(--ifm-global-radius);margin:1rem 0}.tocCollapsibleContent_vkbj>ul{border-left:none;border-top:1px solid var(--ifm-color-emphasis-300);font-size:15px;padding:.2rem 0}.tocCollapsibleContent_vkbj ul li{margin:.4rem .8rem}.tableOfContents_bqdL{max-height:calc(100vh - var(--ifm-navbar-height) - 2rem);overflow-y:auto;position:sticky;top:calc(var(--ifm-navbar-height) + 1rem)}.searchContextInput_mXoe,.searchQueryInput_CFBF{background:var(--ifm-background-color);border:var(--ifm-global-border-width) solid var(--ifm-color-content-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-font-color-base);font-size:var(--ifm-font-size-base);margin-bottom:1rem;padding:.5rem;width:100%}.searchResultItem_U687{border-bottom:1px solid #dfe3e8;padding:1rem 0}.searchResultItemPath_uIbk{color:var(--ifm-color-content-secondary);font-size:.8rem;margin:.5rem 0 0}.searchResultItemSummary_oZHr{font-style:italic;margin:.5rem 0 0}.tag_Nnez{display:inline-block;margin:.5rem .5rem 0 1rem}.backToTopButton_sjWU{background-color:var(--ifm-color-emphasis-200);border-radius:50%;bottom:1.3rem;box-shadow:var(--ifm-global-shadow-lw);height:3rem;opacity:0;position:fixed;right:1.3rem;transform:scale(0);transition:all var(--ifm-transition-fast) var(--ifm-transition-timing-default);visibility:hidden;width:3rem;z-index:calc(var(--ifm-z-index-fixed) - 1)}.buttonGroup__atx button,.codeBlockContainer_Ckt0{background:var(--prism-background-color);color:var(--prism-color)}.backToTopButton_sjWU:after{background-color:var(--ifm-color-emphasis-1000);content:" ";display:inline-block;height:100%;-webkit-mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;width:100%}.backToTopButtonShow_xfvO{opacity:1;transform:scale(1);visibility:visible}[data-theme=dark]:root{--docusaurus-collapse-button-bg:#ffffff0d;--docusaurus-collapse-button-bg-hover:#ffffff1a}.collapseSidebarButton_PEFL{display:none;margin:0}.docMainContainer_TBSr,.docRoot_UBD9{display:flex;width:100%}.docsWrapper_hBAB{display:flex;flex:1 0 auto}.codeBlockContainer_Ckt0{border-radius:var(--ifm-code-border-radius);box-shadow:var(--ifm-global-shadow-lw);margin-bottom:var(--ifm-leading)}.codeBlockContent_biex{border-radius:inherit;direction:ltr;position:relative}.codeBlockTitle_Ktv7{border-bottom:1px solid var(--ifm-color-emphasis-300);border-top-left-radius:inherit;border-top-right-radius:inherit;font-size:var(--ifm-code-font-size);font-weight:500;padding:.75rem var(--ifm-pre-padding)}.codeBlock_bY9V{--ifm-pre-background:var(--prism-background-color);margin:0;padding:0}.codeBlockTitle_Ktv7+.codeBlockContent_biex .codeBlock_bY9V{border-top-left-radius:0;border-top-right-radius:0}.codeBlockLines_e6Vv{float:left;font:inherit;min-width:100%;padding:var(--ifm-pre-padding)}.codeBlockLinesWithNumbering_o6Pm{display:table;padding:var(--ifm-pre-padding) 0}.buttonGroup__atx{column-gap:.2rem;display:flex;position:absolute;right:calc(var(--ifm-pre-padding)/2);top:calc(var(--ifm-pre-padding)/2)}.buttonGroup__atx button{align-items:center;border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-global-radius);display:flex;line-height:0;opacity:0;padding:.4rem;transition:opacity var(--ifm-transition-fast) ease-in-out}.buttonGroup__atx button:focus-visible,.buttonGroup__atx button:hover{opacity:1!important}.theme-code-block:hover .buttonGroup__atx button{opacity:.4}:where(:root){--docusaurus-highlighted-code-line-bg:#484d5b}:where([data-theme=dark]){--docusaurus-highlighted-code-line-bg:#646464}.theme-code-block-highlighted-line{background-color:var(--docusaurus-highlighted-code-line-bg);display:block;margin:0 calc(var(--ifm-pre-padding)*-1);padding:0 var(--ifm-pre-padding)}.codeLine_lJS_{counter-increment:a;display:table-row}.codeLineNumber_Tfdd{background:var(--ifm-pre-background);display:table-cell;left:0;overflow-wrap:normal;padding:0 var(--ifm-pre-padding);position:sticky;text-align:right;width:1%}.codeLineNumber_Tfdd:before{content:counter(a);opacity:.4}.codeLineContent_feaV{padding-right:var(--ifm-pre-padding)}.details_lb9f{--docusaurus-details-summary-arrow-size:0.38rem;--docusaurus-details-transition:transform 200ms ease;--docusaurus-details-decoration-color:grey}.details_lb9f>summary{cursor:pointer;padding-left:1rem;position:relative}.details_lb9f>summary::-webkit-details-marker{display:none}.details_lb9f>summary:before{border-color:#0000 #0000 #0000 var(--docusaurus-details-decoration-color);border-style:solid;border-width:var(--docusaurus-details-summary-arrow-size);content:"";left:0;position:absolute;top:.45rem;transform:rotate(0);transform-origin:calc(var(--docusaurus-details-summary-arrow-size)/2) 50%;transition:var(--docusaurus-details-transition)}.collapsibleContent_i85q{border-top:1px solid var(--docusaurus-details-decoration-color);margin-top:1rem;padding-top:1rem}.theme-code-block:hover .copyButtonCopied_obH4{opacity:1!important}.copyButtonIcons_eSgA{height:1.125rem;position:relative;width:1.125rem}.copyButtonIcon_y97N,.copyButtonSuccessIcon_LjdS{fill:currentColor;height:inherit;left:0;opacity:inherit;position:absolute;top:0;transition:all var(--ifm-transition-fast) ease;width:inherit}.copyButtonSuccessIcon_LjdS{color:#00d600;left:50%;opacity:0;top:50%;transform:translate(-50%,-50%) scale(.33)}.copyButtonCopied_obH4 .copyButtonIcon_y97N{opacity:0;transform:scale(.33)}.copyButtonCopied_obH4 .copyButtonSuccessIcon_LjdS{opacity:1;transform:translate(-50%,-50%) scale(1);transition-delay:75ms}.details_b_Ee{--docusaurus-details-decoration-color:var(--ifm-alert-border-color);--docusaurus-details-transition:transform var(--ifm-transition-fast) ease;border:1px solid var(--ifm-alert-border-color);margin:0 0 var(--ifm-spacing-vertical)}.wordWrapButtonIcon_Bwma{height:1.2rem;width:1.2rem}.img_ev3q{height:auto}.admonition_xJq3{margin-bottom:1em}.admonitionHeading_Gvgb{font:var(--ifm-heading-font-weight) var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family)}.admonitionHeading_Gvgb:not(:last-child){margin-bottom:.3rem}.admonitionHeading_Gvgb code{text-transform:none}.admonitionIcon_Rf37{display:inline-block;margin-right:.4em;vertical-align:middle}.admonitionIcon_Rf37 svg{fill:var(--ifm-alert-foreground-color);display:inline-block;height:1.6em;width:1.6em}.breadcrumbHomeIcon_YNFT{height:1.1rem;position:relative;top:1px;vertical-align:top;width:1.1rem}.breadcrumbsContainer_Z_bl{--ifm-breadcrumb-size-multiplier:0.8;margin-bottom:.8rem}@media (min-width:997px){.collapseSidebarButton_PEFL,.expandButton_TmdG{background-color:var(--docusaurus-collapse-button-bg)}:root{--docusaurus-announcement-bar-height:30px}.announcementBarClose_gvF7,.announcementBarPlaceholder_vyr4{flex-basis:50px}.navbarSearchContainer_Bca1{padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.lastUpdated_vwxv{text-align:right}.tocMobile_ITEo{display:none}.collapseSidebarButton_PEFL{border:1px solid var(--ifm-toc-border-color);border-radius:0;bottom:0;display:block!important;height:40px;position:sticky}.collapseSidebarButtonIcon_kv0_{margin-top:4px;transform:rotate(180deg)}.expandButtonIcon_i1dp,[dir=rtl] .collapseSidebarButtonIcon_kv0_{transform:rotate(0)}.collapseSidebarButton_PEFL:focus,.collapseSidebarButton_PEFL:hover,.expandButton_TmdG:focus,.expandButton_TmdG:hover{background-color:var(--docusaurus-collapse-button-bg-hover)}.menuHtmlItem_M9Kj{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu_SIkG{flex-grow:1;padding:.5rem}@supports (scrollbar-gutter:stable){.menu_SIkG{padding:.5rem 0 .5rem .5rem;scrollbar-gutter:stable}}.menuWithAnnouncementBar_GW3s{margin-bottom:var(--docusaurus-announcement-bar-height)}.sidebar_njMd{display:flex;flex-direction:column;height:100%;padding-top:var(--ifm-navbar-height);width:var(--doc-sidebar-width)}.sidebarWithHideableNavbar_wUlq{padding-top:0}.sidebarHidden_VK0M{opacity:0;visibility:hidden}.sidebarLogo_isFc{align-items:center;color:inherit!important;display:flex!important;margin:0 var(--ifm-navbar-padding-horizontal);max-height:var(--ifm-navbar-height);min-height:var(--ifm-navbar-height);text-decoration:none!important}.sidebarLogo_isFc img{height:2rem;margin-right:.5rem}.expandButton_TmdG{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;transition:background-color var(--ifm-transition-fast) ease;width:100%}[dir=rtl] .expandButtonIcon_i1dp{transform:rotate(180deg)}.docSidebarContainer_YfHR{border-right:1px solid var(--ifm-toc-border-color);-webkit-clip-path:inset(0);clip-path:inset(0);display:block;margin-top:calc(var(--ifm-navbar-height)*-1);transition:width var(--ifm-transition-fast) ease;width:var(--doc-sidebar-width);will-change:width}.docSidebarContainerHidden_DPk8{cursor:pointer;width:var(--doc-sidebar-hidden-width)}.sidebarViewport_aRkj{height:100%;max-height:100vh;position:sticky;top:0}.docMainContainer_TBSr{flex-grow:1;max-width:calc(100% - var(--doc-sidebar-width))}.docMainContainerEnhanced_lQrH{max-width:calc(100% - var(--doc-sidebar-hidden-width))}.docItemWrapperEnhanced_JWYK{max-width:calc(var(--ifm-container-width) + var(--doc-sidebar-width))!important}.docItemCol_VOVn{max-width:75%!important}}@media (min-width:1440px){.container{max-width:var(--ifm-container-width-xl)}}@media (max-width:996px){.col{--ifm-col-width:100%;flex-basis:var(--ifm-col-width);margin-left:0}.footer{--ifm-footer-padding-horizontal:0}.colorModeToggle_DEke,.footer__link-separator,.navbar__item,.tableOfContents_bqdL{display:none}.footer__col{margin-bottom:calc(var(--ifm-spacing-vertical)*3)}.footer__link-item{display:block}.hero{padding-left:0;padding-right:0}.navbar>.container,.navbar>.container-fluid{padding:0}.navbar__toggle{display:inherit}.navbar__search-input{width:9rem}.pills--block,.tabs--block{flex-direction:column}.navbarSearchContainer_Bca1{position:absolute;right:var(--ifm-navbar-padding-horizontal)}.docItemContainer_F8PC{padding:0 .3rem}}@media not (max-width:996px){.searchBar_RVTs.searchBarLeft_MXDe .dropdownMenu_qbY6{left:0!important;right:auto!important}}@media only screen and (max-width:996px){.searchQueryColumn_q7nx{max-width:60%!important}.searchContextColumn_oWAF{max-width:40%!important}}@media (max-width:576px){.markdown h1:first-child{--ifm-h1-font-size:2rem}.markdown>h2{--ifm-h2-font-size:1.5rem}.markdown>h3{--ifm-h3-font-size:1.25rem}.navbar__search-input:not(:focus){width:2rem}.searchBar_RVTs .dropdownMenu_qbY6{max-width:calc(100vw - var(--ifm-navbar-padding-horizontal)*2);width:var(--search-local-modal-width-sm,340px)}.searchBarContainer_NW3z:not(.focused_OWtg) .searchClearButton_qk4g,.searchHintContainer_Pkmr{display:none}}@media screen and (max-width:576px){.searchQueryColumn_q7nx{max-width:100%!important}.searchContextColumn_oWAF{max-width:100%!important;padding-left:var(--ifm-spacing-horizontal)!important}}@media (hover:hover){.backToTopButton_sjWU:hover{background-color:var(--ifm-color-emphasis-300)}}@media (pointer:fine){.thin-scrollbar{scrollbar-width:thin}.thin-scrollbar::-webkit-scrollbar{height:var(--ifm-scrollbar-size);width:var(--ifm-scrollbar-size)}.thin-scrollbar::-webkit-scrollbar-track{background:var(--ifm-scrollbar-track-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb{background:var(--ifm-scrollbar-thumb-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--ifm-scrollbar-thumb-hover-background-color)}}@media (prefers-reduced-motion:reduce){:root{--ifm-transition-fast:0ms;--ifm-transition-slow:0ms}}@media print{.announcementBar_mb4j,.footer,.menu,.navbar,.pagination-nav,.table-of-contents,.tocMobile_ITEo{display:none}.tabs{page-break-inside:avoid}.codeBlockLines_e6Vv{white-space:pre-wrap}} \ No newline at end of file diff --git a/pt-BR/assets/js/024f605e.086729fb.js b/pt-BR/assets/js/024f605e.086729fb.js new file mode 100644 index 0000000000..80c0fee1c2 --- /dev/null +++ b/pt-BR/assets/js/024f605e.086729fb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9534],{3526:e=>{e.exports=JSON.parse('{"label":"createConnection","permalink":"/node-mysql2/pt-BR/docs/tags/create-connection","allTagsPath":"/node-mysql2/pt-BR/docs/tags","count":1,"items":[{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/pt-BR/docs/examples/connections/create-connection"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/0e27d5d9.208f4727.js b/pt-BR/assets/js/0e27d5d9.208f4727.js new file mode 100644 index 0000000000..3a4c08991b --- /dev/null +++ b/pt-BR/assets/js/0e27d5d9.208f4727.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5072],{9247:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>i,toc:()=>d});var a=t(5893),r=t(1151),s=t(4866),o=t(5162);const l={},u="Row Data Packet",i={id:"examples/typescript/row-data/index",title:"Row Data Packet",description:"",source:"@site/docs/examples/typescript/row-data/00-index.mdx",sourceDirName:"examples/typescript/row-data",slug:"/examples/typescript/row-data/index",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/row-data/index",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/row-data/00-index.mdx",tags:[],version:"current",sidebarPosition:0,frontMatter:{},sidebar:"examples",previous:{title:"Procedure Call Packet (Row as Array)",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-array"},next:{title:"Row Data Packet (Row as Array)",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array"}},c={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,r.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.h1,{id:"row-data-packet",children:"Row Data Packet"}),"\n",(0,a.jsx)(s.Z,{children:(0,a.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n id: number;\n name: string;\n}\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Getting users */\n const [users] = await conn.query(\n 'SELECT * FROM `users` ORDER BY `name` ASC;'\n );\n\n users.forEach((user) => {\n console.log('-----------');\n console.log('id: ', user.id);\n console.log('name:', user.name);\n });\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * -----------\n * id: 4\n * name: Gween\n * -----------\n * id: 2\n * name: John\n * -----------\n * id: 1\n * name: Josh\n * -----------\n * id: 3\n * name: Marie\n */\n"})})})})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var a=t(512);const r={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,a.Z)(r.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>R});var a=t(7294),r=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),i=t(7392),c=t(12);function d(e){return a.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,a.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,a.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:a,default:r}}=e;return{value:n,label:t,attributes:a,default:r}}))}(t);return function(e){const n=(0,i.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const r=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,a.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(r.location.search);n.set(s,e),r.replace({...r.location,search:n.toString()})}),[s,r])]}function h(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,s=p(e),[o,u]=(0,a.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const a=t.find((e=>e.default))??t[0];if(!a)throw new Error("Unexpected error: 0 tabValues");return a.value}({defaultValue:n,tabValues:s}))),[i,d]=f({queryString:t,groupId:r}),[h,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,s]=(0,c.Nk)(t);return[r,(0,a.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:r}),w=(()=>{const e=i??h;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{w&&u(w)}),[w]);return{selectedValue:o,selectValue:(0,a.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const w={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var y=t(5893);function x(e){let{className:n,block:t,selectedValue:a,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const n=e.currentTarget,t=u.indexOf(n),r=l[t].value;r!==a&&(i(n),o(r))},d=e=>{let n=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,y.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,y.jsx)("li",{role:"tab",tabIndex:a===n?0:-1,"aria-selected":a===n,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,r.Z)("tabs__item",w.tabItem,s?.className,{"tabs__item--active":a===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:r}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===r));return e?(0,a.cloneElement)(e,{className:"margin-top--md"}):null}return(0,y.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,a.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function g(e){const n=h(e);return(0,y.jsxs)("div",{className:(0,r.Z)("tabs-container",w.tabList),children:[(0,y.jsx)(x,{...e,...n}),(0,y.jsx)(v,{...e,...n})]})}function R(e){const n=(0,b.Z)();return(0,y.jsx)(g,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var a=t(7294);const r={},s=a.createContext(r);function o(e){const n=a.useContext(s);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),a.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/10c30137.584148f6.js b/pt-BR/assets/js/10c30137.584148f6.js deleted file mode 100644 index 1e95572684..0000000000 --- a/pt-BR/assets/js/10c30137.584148f6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8193],{6161:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>c,default:()=>m,frontMatter:()=>l,metadata:()=>u,toc:()=>d});var r=t(5893),s=t(1151),o=t(4866),a=t(5162);const l={},c="Connect Over Socks",u={id:"examples/connect-over-socks",title:"Connect Over Socks",description:"",source:"@site/docs/examples/connect-over-socks.mdx",sourceDirName:"examples",slug:"/examples/connect-over-socks",permalink:"/node-mysql2/pt-BR/docs/examples/connect-over-socks",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/connect-over-socks.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Binlog Watcher",permalink:"/node-mysql2/pt-BR/docs/examples/binlog-watcher"},next:{title:"Execute",permalink:"/node-mysql2/pt-BR/docs/examples/execute"}},i={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"connect-over-socks",children:"Connect Over Socks"}),"\n",(0,r.jsx)(o.Z,{children:(0,r.jsx)(a.Z,{value:"index.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\n// const socksProxy = new SocksConnection({ port: 3306 });\n// const conn = mysql.createConnection({\n// stream: socksProxy,\n// });\n\n// conn.query(\"select 1+1\", function(err, rows, fields) {\n// console.log(err, rows, fields);\n// });\n\nconst conn1 = mysql.createPool({\n debug: 1,\n stream: function () {\n return new SocksConnection({ port: 3306 });\n },\n});\n\nconn1.execute('select sleep(1.1) as www', (err, rows, fields) => {\n console.log(err, rows, fields);\n});\n\nconn1.execute('select sleep(1) as qqq', (err, rows, fields) => {\n console.log(err, rows, fields);\n});\n\nconn1.execute('select sleep(1) as qqq', (err, rows, fields) => {\n console.log(err, rows, fields);\n});\n"})})})})]})}function m(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>a});t(7294);var r=t(512);const s={tabItem:"tabItem_Ymn6"};var o=t(5893);function a(e){let{children:n,hidden:t,className:a}=e;return(0,o.jsx)("div",{role:"tabpanel",className:(0,r.Z)(s.tabItem,a),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>k});var r=t(7294),s=t(512),o=t(2466),a=t(6550),l=t(469),c=t(1980),u=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:s}}=e;return{value:n,label:t,attributes:r,default:s}}))}(t);return function(e){const n=(0,u.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const s=(0,a.k6)(),o=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,c._X)(o),(0,r.useCallback)((e=>{if(!o)return;const n=new URLSearchParams(s.location.search);n.set(o,e),s.replace({...s.location,search:n.toString()})}),[o,s])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:s}=e,o=p(e),[a,c]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:o}))),[u,d]=f({queryString:t,groupId:s}),[b,h]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[s,o]=(0,i.Nk)(t);return[s,(0,r.useCallback)((e=>{t&&o.set(e)}),[t,o])]}({groupId:s}),v=(()=>{const e=u??b;return m({value:e,tabValues:o})?e:null})();(0,l.Z)((()=>{v&&c(v)}),[v]);return{selectedValue:a,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:o}))throw new Error(`Can't select invalid tab value=${e}`);c(e),d(e),h(e)}),[d,h,o]),tabValues:o}}var h=t(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=t(5893);function g(e){let{className:n,block:t,selectedValue:r,selectValue:a,tabValues:l}=e;const c=[],{blockElementScrollPositionUntilNextRender:u}=(0,o.o5)(),i=e=>{const n=e.currentTarget,t=c.indexOf(n),s=l[t].value;s!==r&&(u(n),a(s))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=c.indexOf(e.currentTarget)+1;n=c[t]??c[0];break}case"ArrowLeft":{const t=c.indexOf(e.currentTarget)-1;n=c[t]??c[c.length-1];break}}n?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:o}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>c.push(e),onKeyDown:d,onClick:i,...o,className:(0,s.Z)("tabs__item",v.tabItem,o?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function w(e){let{lazy:n,children:t,selectedValue:s}=e;const o=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=o.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:o.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==s})))})}function y(e){const n=b(e);return(0,x.jsxs)("div",{className:(0,s.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(g,{...e,...n}),(0,x.jsx)(w,{...e,...n})]})}function k(e){const n=(0,h.Z)();return(0,x.jsx)(y,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>a});var r=t(7294);const s={},o=r.createContext(s);function a(e){const n=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/11e11f3b.42b7b568.js b/pt-BR/assets/js/11e11f3b.42b7b568.js new file mode 100644 index 0000000000..c63722b08f --- /dev/null +++ b/pt-BR/assets/js/11e11f3b.42b7b568.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8625],{3463:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>h,contentTitle:()=>d,default:()=>g,frontMatter:()=>a,metadata:()=>u,toc:()=>m});var r=s(5893),t=s(1151),o=s(4866),c=s(5162),l=s(6393),i=s(4379);const a={sidebar_position:1,tags:["createConnection","URI","SHA1","RDS","SSL","Socks"]},d="createConnection",u={id:"examples/connections/create-connection",title:"createConnection",description:"For queries please see the Simple Queries and Prepared Statements examples.",source:"@site/docs/examples/connections/create-connection.mdx",sourceDirName:"examples/connections",slug:"/examples/connections/create-connection",permalink:"/node-mysql2/pt-BR/docs/examples/connections/create-connection",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/connections/create-connection.mdx",tags:[{label:"createConnection",permalink:"/node-mysql2/pt-BR/docs/tags/create-connection"},{label:"URI",permalink:"/node-mysql2/pt-BR/docs/tags/uri"},{label:"SHA1",permalink:"/node-mysql2/pt-BR/docs/tags/sha-1"},{label:"RDS",permalink:"/node-mysql2/pt-BR/docs/tags/rds"},{label:"SSL",permalink:"/node-mysql2/pt-BR/docs/tags/ssl"},{label:"Socks",permalink:"/node-mysql2/pt-BR/docs/tags/socks"}],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,tags:["createConnection","URI","SHA1","RDS","SSL","Socks"]},sidebar:"examples",previous:{title:"Introduction",permalink:"/node-mysql2/pt-BR/docs/examples"},next:{title:"createPool",permalink:"/node-mysql2/pt-BR/docs/examples/connections/create-pool"}},h={},m=[{value:"createConnection(connectionUri)",id:"createconnectionconnectionuri",level:2},{value:"createConnection(config)",id:"createconnectionconfig",level:2},{value:"createConnection(config) \u2014 SHA1",id:"createconnectionconfig--sha1",level:2},{value:"createConnection(config) \u2014 SSL",id:"createconnectionconfig--ssl",level:2},{value:"createConnection(config) \u2014 RDS SSL",id:"createconnectionconfig--rds-ssl",level:2},{value:"Related Links",id:"related-links",level:3},{value:"createConnection(config) \u2014 Socks",id:"createconnectionconfig--socks",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ConnectionOptions",id:"connectionoptions",level:3}];function p(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"createconnection",children:"createConnection"}),"\n",(0,r.jsx)(n.admonition,{type:"info",children:(0,r.jsxs)(n.p,{children:["For queries please see the ",(0,r.jsx)(n.a,{href:"/docs/examples/queries/simple-queries",children:(0,r.jsx)(n.strong,{children:"Simple Queries"})})," and ",(0,r.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements",children:(0,r.jsx)(n.strong,{children:"Prepared Statements"})})," examples."]})}),"\n",(0,r.jsx)(n.h2,{id:"createconnectionconnectionuri",children:"createConnection(connectionUri)"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:"createConnection(connectionUri: string)"})}),"\n"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(c.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const connection = await mysql.createConnection(\n 'mysql://root:password@localhost:3306/test'\n );\n // highlight-end\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(c.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection(\n 'mysql://root:password@localhost:3306/test'\n);\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})})})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"createconnectionconfig",children:"createConnection(config)"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["createConnection(config: ",(0,r.jsx)(n.a,{href:"#connectionoptions",children:"ConnectionOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(c.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n // port: 3306,\n // password: '',\n });\n // highlight-end\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(c.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n // port: 3306,\n // password: '',\n});\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})})})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"createconnectionconfig--sha1",children:"createConnection(config) \u2014 SHA1"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["createConnection(config: ",(0,r.jsx)(n.a,{href:"#connectionoptions",children:"ConnectionOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(c.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const connection = await mysql.createConnection({\n // ...\n passwordSha1: Buffer.from(\n '8bb6118f8fd6935ad0876a3be34a717d32708ffd',\n 'hex'\n ),\n });\n // highlight-end\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(c.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n // ...\n passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'),\n});\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})})})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"createconnectionconfig--ssl",children:"createConnection(config) \u2014 SSL"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["createConnection(config: ",(0,r.jsx)(n.a,{href:"#connectionoptions",children:"ConnectionOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(c.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const connection = await mysql.createConnection({\n // ...\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n });\n // highlight-end\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(c.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n // ...\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n});\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})})}),(0,r.jsxs)(c.Z,{value:"certs/ca-cert.pem",children:[(0,r.jsx)(i.I,{language:"plan",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/test/fixtures/ssl/certs/ca.pem"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["See ",(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/tree/master/test/fixtures/ssl/certs",children:"ssl/certs"}),"."]}),"\n"]})]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"createconnectionconfig--rds-ssl",children:"createConnection(config) \u2014 RDS SSL"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["createConnection(config: ",(0,r.jsx)(n.a,{href:"#connectionoptions",children:"ConnectionOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["You can use ",(0,r.jsx)(n.strong,{children:"Amazon RDS"})," string as value to ssl property to connect to ",(0,r.jsx)(n.strong,{children:"Amazon RDS"})," MySQL over SSL."]}),"\n",(0,r.jsxs)(n.p,{children:["In that case ",(0,r.jsx)(n.a,{href:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem",children:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem"})," CA cert is used:"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsxs)(c.Z,{value:"promise.js",default:!0,children:[(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const connection = await mysql.createConnection({\n // ...\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n });\n // highlight-end\n} catch (err) {\n console.log(err);\n}\n"})}),(0,r.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"try {\n const [res] = await connection.query('SHOW `status` LIKE \"Ssl_cipher\"');\n await connection.end();\n\n console.log(res);\n} catch (err) {\n console.log(err);\n}\n"})})})]}),(0,r.jsxs)(c.Z,{value:"callback.js",children:[(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n // ...\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n});\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})}),(0,r.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"connectionquery('SHOW `status` LIKE \"Ssl_cipher\"', function (err, res) {\n connection.end();\n\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(res);\n});\n"})})})]})]}),"\n",(0,r.jsx)(n.h3,{id:"related-links",children:"Related Links"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Issues"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/issues/2130",children:"#2130 \u2014 Update TLS certs for Amazon RDS instances"})}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Pull Requests"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/pull/2119",children:"#2119 \u2014 fix: make startTls code compatible with Bun"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/pull/2131",children:"#2131 \u2014 Update Amazon RDS SSL CA cert"})}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"createconnectionconfig--socks",children:"createConnection(config) \u2014 Socks"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["createConnection(config: ",(0,r.jsx)(n.a,{href:"#connectionoptions",children:"ConnectionOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(c.Z,{value:"A.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\nconst socksProxy = new SocksConnection({ port: 3306 });\n// highlight-start\nconst connection = mysql.createConnection({\n stream: socksProxy,\n});\n// highlight-end\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})})}),(0,r.jsx)(c.Z,{value:"B.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\n// highlight-start\nconst connection = mysql.createConnection({\n debug: 1,\n stream: function () {\n return new SocksConnection({ port: 3306 });\n },\n});\n// highlight-end\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})})})]}),"\n",(0,r.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"connection.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n\nconnection.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n\nconnection.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n"})})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,r.jsx)(n.h3,{id:"connectionoptions",children:"ConnectionOptions"}),"\n",(0,r.jsx)(l.Z,{title:"ConnectionOptions Specification",children:(0,r.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/Connection.d.ts",extractMethod:"ConnectionOptions",methodType:"interface"})})]})}function g(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,s)=>{s.d(n,{Z:()=>c});s(7294);var r=s(512);const t={tabItem:"tabItem_Ymn6"};var o=s(5893);function c(e){let{children:n,hidden:s,className:c}=e;return(0,o.jsx)("div",{role:"tabpanel",className:(0,r.Z)(t.tabItem,c),hidden:s,children:n})}},4866:(e,n,s)=>{s.d(n,{Z:()=>S});var r=s(7294),t=s(512),o=s(2466),c=s(6550),l=s(469),i=s(1980),a=s(7392),d=s(12);function u(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:s}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return u(e).map((e=>{let{props:{value:n,label:s,attributes:r,default:t}}=e;return{value:n,label:s,attributes:r,default:t}}))}(s);return function(e){const n=(0,a.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,s])}function m(e){let{value:n,tabValues:s}=e;return s.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:s}=e;const t=(0,c.k6)(),o=function(e){let{queryString:n=!1,groupId:s}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!s)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:n,groupId:s});return[(0,i._X)(o),(0,r.useCallback)((e=>{if(!o)return;const n=new URLSearchParams(t.location.search);n.set(o,e),t.replace({...t.location,search:n.toString()})}),[o,t])]}function g(e){const{defaultValue:n,queryString:s=!1,groupId:t}=e,o=h(e),[c,i]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!m({value:n,tabValues:s}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=s.find((e=>e.default))??s[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:o}))),[a,u]=p({queryString:s,groupId:t}),[g,x]=function(e){let{groupId:n}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(n),[t,o]=(0,d.Nk)(s);return[t,(0,r.useCallback)((e=>{s&&o.set(e)}),[s,o])]}({groupId:t}),j=(()=>{const e=a??g;return m({value:e,tabValues:o})?e:null})();(0,l.Z)((()=>{j&&i(j)}),[j]);return{selectedValue:c,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:o}))throw new Error(`Can't select invalid tab value=${e}`);i(e),u(e),x(e)}),[u,x,o]),tabValues:o}}var x=s(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=s(5893);function y(e){let{className:n,block:s,selectedValue:r,selectValue:c,tabValues:l}=e;const i=[],{blockElementScrollPositionUntilNextRender:a}=(0,o.o5)(),d=e=>{const n=e.currentTarget,s=i.indexOf(n),t=l[s].value;t!==r&&(a(n),c(t))},u=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const s=i.indexOf(e.currentTarget)+1;n=i[s]??i[0];break}case"ArrowLeft":{const s=i.indexOf(e.currentTarget)-1;n=i[s]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,t.Z)("tabs",{"tabs--block":s},n),children:l.map((e=>{let{value:n,label:s,attributes:o}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>i.push(e),onKeyDown:u,onClick:d,...o,className:(0,t.Z)("tabs__item",j.tabItem,o?.className,{"tabs__item--active":r===n}),children:s??n},n)}))})}function b(e){let{lazy:n,children:s,selectedValue:t}=e;const o=(Array.isArray(s)?s:[s]).filter(Boolean);if(n){const e=o.find((e=>e.props.value===t));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:o.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function q(e){const n=g(e);return(0,f.jsxs)("div",{className:(0,t.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(y,{...e,...n}),(0,f.jsx)(b,{...e,...n})]})}function S(e){const n=(0,x.Z)();return(0,f.jsx)(q,{...e,children:u(e.children)},String(n))}},4379:(e,n,s)=>{s.d(n,{I:()=>i});var r=s(7294),t=s(2263),o=s(9286),c=s(5893);const l=()=>(0,c.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:s,extractMethod:i,methodType:a}=e;const[d,u]=(0,r.useState)(""),[h,m]=(0,r.useState)(!0),[p,g]=(0,r.useState)(!0),{siteConfig:x}=(0,t.Z)(),j=x.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,r.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&a?((e,n,s)=>{const r=e.split("\n"),t=`${s} ${n}`;let o=!1,c=0,l="";for(const i of r)if(i.includes(t)&&(o=!0),o&&(i.includes("{")&&c++,l+=i+"\n",i.includes("}")&&(c--,0===c)))break;return l.trim()||e})(e,i,a):e;u(n||e),m(!1),g(!1)})).catch((()=>{g(!0),m(!1)})),()=>{e.abort()}}),[f,i,a]),(0,c.jsx)(c.Fragment,{children:h?(0,c.jsx)(l,{}):(0,c.jsx)(c.Fragment,{children:p?(0,c.jsxs)("div",{children:["Unable to access the requested link: ",(0,c.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,c.jsx)(o.Z,{className:`language-${s}`,children:d})})})}},6393:(e,n,s)=>{s.d(n,{Z:()=>o});var r=s(4673),t=s(5893);const o=e=>{let{children:n,open:s,title:o}=e;return(0,t.jsx)(r.Z,{open:s,className:"faq",summary:(0,t.jsx)("summary",{children:(0,t.jsx)("strong",{children:o})}),children:(0,t.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/14eb3368.a0a1fb1b.js b/pt-BR/assets/js/14eb3368.a0a1fb1b.js deleted file mode 100644 index 85a65e4753..0000000000 --- a/pt-BR/assets/js/14eb3368.a0a1fb1b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9817],{1310:(e,t,s)=>{s.d(t,{Z:()=>p});s(7294);var n=s(512),i=s(5281),a=s(3438),r=s(8596),c=s(9960),l=s(5999),o=s(4996),d=s(5893);function m(e){return(0,d.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,d.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"})})}const u={breadcrumbHomeIcon:"breadcrumbHomeIcon_YNFT"};function h(){const e=(0,o.Z)("/");return(0,d.jsx)("li",{className:"breadcrumbs__item",children:(0,d.jsx)(c.Z,{"aria-label":(0,l.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,d.jsx)(m,{className:u.breadcrumbHomeIcon})})})}const b={breadcrumbsContainer:"breadcrumbsContainer_Z_bl"};function x(e){let{children:t,href:s,isLast:n}=e;const i="breadcrumbs__link";return n?(0,d.jsx)("span",{className:i,itemProp:"name",children:t}):s?(0,d.jsx)(c.Z,{className:i,href:s,itemProp:"item",children:(0,d.jsx)("span",{itemProp:"name",children:t})}):(0,d.jsx)("span",{className:i,children:t})}function v(e){let{children:t,active:s,index:i,addMicrodata:a}=e;return(0,d.jsxs)("li",{...a&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,n.Z)("breadcrumbs__item",{"breadcrumbs__item--active":s}),children:[t,(0,d.jsx)("meta",{itemProp:"position",content:String(i+1)})]})}function p(){const e=(0,a.s1)(),t=(0,r.Ns)();return e?(0,d.jsx)("nav",{className:(0,n.Z)(i.k.docs.docBreadcrumbs,b.breadcrumbsContainer),"aria-label":(0,l.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,d.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[t&&(0,d.jsx)(h,{}),e.map(((t,s)=>{const n=s===e.length-1,i="category"===t.type&&t.linkUnlisted?void 0:t.href;return(0,d.jsx)(v,{active:n,index:s,addMicrodata:!!i,children:(0,d.jsx)(x,{href:i,isLast:n,children:t.label})},s)}))]})}):null}},4228:(e,t,s)=>{s.r(t),s.d(t,{default:()=>I});s(7294);var n=s(1944),i=s(3438),a=s(4996),r=s(512),c=s(9960),l=s(3919),o=s(5999),d=s(2503);const m={cardContainer:"cardContainer_fWXF",cardTitle:"cardTitle_rnsV",cardDescription:"cardDescription_PWke"};var u=s(5893);function h(e){let{href:t,children:s}=e;return(0,u.jsx)(c.Z,{href:t,className:(0,r.Z)("card padding--lg",m.cardContainer),children:s})}function b(e){let{href:t,icon:s,title:n,description:i}=e;return(0,u.jsxs)(h,{href:t,children:[(0,u.jsxs)(d.Z,{as:"h2",className:(0,r.Z)("text--truncate",m.cardTitle),title:n,children:[s," ",n]}),i&&(0,u.jsx)("p",{className:(0,r.Z)("text--truncate",m.cardDescription),title:i,children:i})]})}function x(e){let{item:t}=e;const s=(0,i.LM)(t);return s?(0,u.jsx)(b,{href:s,icon:"\ud83d\uddc3\ufe0f",title:t.label,description:t.description??(0,o.I)({message:"{count} items",id:"theme.docs.DocCard.categoryDescription",description:"The default description for a category card in the generated index about how many items this category includes"},{count:t.items.length})}):null}function v(e){let{item:t}=e;const s=(0,l.Z)(t.href)?"\ud83d\udcc4\ufe0f":"\ud83d\udd17",n=(0,i.xz)(t.docId??void 0);return(0,u.jsx)(b,{href:t.href,icon:s,title:t.label,description:t.description??n?.description})}function p(e){let{item:t}=e;switch(t.type){case"link":return(0,u.jsx)(v,{item:t});case"category":return(0,u.jsx)(x,{item:t});default:throw new Error(`unknown item type ${JSON.stringify(t)}`)}}function g(e){let{className:t}=e;const s=(0,i.jA)();return(0,u.jsx)(j,{items:s.items,className:t})}function j(e){const{items:t,className:s}=e;if(!t)return(0,u.jsx)(g,{...e});const n=(0,i.MN)(t);return(0,u.jsx)("section",{className:(0,r.Z)("row",s),children:n.map(((e,t)=>(0,u.jsx)("article",{className:"col col--6 margin-bottom--lg",children:(0,u.jsx)(p,{item:e})},t)))})}var f=s(4966),N=s(3120),Z=s(4364),L=s(1310);const _={generatedIndexPage:"generatedIndexPage_vN6x",list:"list_eTzJ",title:"title_kItE"};function k(e){let{categoryGeneratedIndex:t}=e;return(0,u.jsx)(n.d,{title:t.title,description:t.description,keywords:t.keywords,image:(0,a.Z)(t.image)})}function T(e){let{categoryGeneratedIndex:t}=e;const s=(0,i.jA)();return(0,u.jsxs)("div",{className:_.generatedIndexPage,children:[(0,u.jsx)(N.Z,{}),(0,u.jsx)(L.Z,{}),(0,u.jsx)(Z.Z,{}),(0,u.jsxs)("header",{children:[(0,u.jsx)(d.Z,{as:"h1",className:_.title,children:t.title}),t.description&&(0,u.jsx)("p",{children:t.description})]}),(0,u.jsx)("article",{className:"margin-top--lg",children:(0,u.jsx)(j,{items:s.items,className:_.list})}),(0,u.jsx)("footer",{className:"margin-top--lg",children:(0,u.jsx)(f.Z,{previous:t.navigation.previous,next:t.navigation.next})})]})}function I(e){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(k,{...e}),(0,u.jsx)(T,{...e})]})}},4966:(e,t,s)=>{s.d(t,{Z:()=>l});s(7294);var n=s(5999),i=s(512),a=s(9960),r=s(5893);function c(e){const{permalink:t,title:s,subLabel:n,isNext:c}=e;return(0,r.jsxs)(a.Z,{className:(0,i.Z)("pagination-nav__link",c?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[n&&(0,r.jsx)("div",{className:"pagination-nav__sublabel",children:n}),(0,r.jsx)("div",{className:"pagination-nav__label",children:s})]})}function l(e){const{previous:t,next:s}=e;return(0,r.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,n.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[t&&(0,r.jsx)(c,{...t,subLabel:(0,r.jsx)(n.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),s&&(0,r.jsx)(c,{...s,subLabel:(0,r.jsx)(n.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}},4364:(e,t,s)=>{s.d(t,{Z:()=>l});s(7294);var n=s(512),i=s(5999),a=s(5281),r=s(4477),c=s(5893);function l(e){let{className:t}=e;const s=(0,r.E)();return s.badge?(0,c.jsx)("span",{className:(0,n.Z)(t,a.k.docs.docVersionBadge,"badge badge--secondary"),children:(0,c.jsx)(i.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:s.label},children:"Version: {versionLabel}"})}):null}},3120:(e,t,s)=>{s.d(t,{Z:()=>v});s(7294);var n=s(512),i=s(2263),a=s(9960),r=s(5999),c=s(143),l=s(5281),o=s(373),d=s(4477),m=s(5893);const u={unreleased:function(e){let{siteTitle:t,versionMetadata:s}=e;return(0,m.jsx)(r.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,m.jsx)("b",{children:s.label})},children:"This is unreleased documentation for {siteTitle} {versionLabel} version."})},unmaintained:function(e){let{siteTitle:t,versionMetadata:s}=e;return(0,m.jsx)(r.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,m.jsx)("b",{children:s.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function h(e){const t=u[e.versionMetadata.banner];return(0,m.jsx)(t,{...e})}function b(e){let{versionLabel:t,to:s,onClick:n}=e;return(0,m.jsx)(r.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:(0,m.jsx)("b",{children:(0,m.jsx)(a.Z,{to:s,onClick:n,children:(0,m.jsx)(r.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:s}=e;const{siteConfig:{title:a}}=(0,i.Z)(),{pluginId:r}=(0,c.gA)({failfast:!0}),{savePreferredVersionName:d}=(0,o.J)(r),{latestDocSuggestion:u,latestVersionSuggestion:x}=(0,c.Jo)(r),v=u??(p=x).docs.find((e=>e.id===p.mainDocId));var p;return(0,m.jsxs)("div",{className:(0,n.Z)(t,l.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,m.jsx)("div",{children:(0,m.jsx)(h,{siteTitle:a,versionMetadata:s})}),(0,m.jsx)("div",{className:"margin-top--md",children:(0,m.jsx)(b,{versionLabel:x.label,to:v.path,onClick:()=>d(x.name)})})]})}function v(e){let{className:t}=e;const s=(0,d.E)();return s.banner?(0,m.jsx)(x,{className:t,versionMetadata:s}):null}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/1568425c.21df2514.js b/pt-BR/assets/js/1568425c.21df2514.js new file mode 100644 index 0000000000..24411e7a38 --- /dev/null +++ b/pt-BR/assets/js/1568425c.21df2514.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9458],{904:(e,s,i)=>{i.r(s),i.d(s,{assets:()=>c,contentTitle:()=>l,default:()=>p,frontMatter:()=>n,metadata:()=>a,toc:()=>o});var t=i(5893),r=i(1151);const n={},l="Simple Queries",a={id:"examples/queries/simple-queries/index",title:"Simple Queries",description:"For Prepared Statements or Placeholders / Parameters examples, please see here.",source:"@site/docs/examples/queries/simple-queries/index.mdx",sourceDirName:"examples/queries/simple-queries",slug:"/examples/queries/simple-queries/",permalink:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/simple-queries/index.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"createPoolCluster",permalink:"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster"},next:{title:"INSERT",permalink:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/insert"}},c={},o=[];function d(e){const s={a:"a",admonition:"admonition",h1:"h1",hr:"hr",input:"input",li:"li",p:"p",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.h1,{id:"simple-queries",children:"Simple Queries"}),"\n",(0,t.jsx)(s.admonition,{type:"info",children:(0,t.jsxs)(s.p,{children:["For ",(0,t.jsx)(s.strong,{children:"Prepared Statements"})," or ",(0,t.jsx)(s.strong,{children:"Placeholders"})," / ",(0,t.jsx)(s.strong,{children:"Parameters"})," examples, please see ",(0,t.jsx)(s.a,{href:"/docs/examples/queries/prepared-statements",children:"here"}),"."]})}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.p,{children:"Usage examples:"}),"\n",(0,t.jsxs)(s.ul,{className:"contains-task-list",children:["\n",(0,t.jsxs)(s.li,{className:"task-list-item",children:[(0,t.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,t.jsx)(s.a,{href:"/docs/examples/queries/simple-queries/insert",children:(0,t.jsx)(s.strong,{children:"INSERT"})})]}),"\n",(0,t.jsxs)(s.li,{className:"task-list-item",children:[(0,t.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,t.jsx)(s.a,{href:"/docs/examples/queries/simple-queries/select",children:(0,t.jsx)(s.strong,{children:"SELECT"})})]}),"\n",(0,t.jsxs)(s.li,{className:"task-list-item",children:[(0,t.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,t.jsx)(s.a,{href:"/docs/examples/queries/simple-queries/update",children:(0,t.jsx)(s.strong,{children:"UPDATE"})})]}),"\n",(0,t.jsxs)(s.li,{className:"task-list-item",children:[(0,t.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,t.jsx)(s.a,{href:"/docs/examples/queries/simple-queries/delete",children:(0,t.jsx)(s.strong,{children:"DELETE"})})]}),"\n"]})]})}function p(e={}){const{wrapper:s}={...(0,r.a)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},1151:(e,s,i)=>{i.d(s,{Z:()=>a,a:()=>l});var t=i(7294);const r={},n=t.createContext(r);function l(e){const s=t.useContext(n);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function a(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:l(e.components),t.createElement(n.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/17896441.569c1c67.js b/pt-BR/assets/js/17896441.569c1c67.js new file mode 100644 index 0000000000..4c7525c8dd --- /dev/null +++ b/pt-BR/assets/js/17896441.569c1c67.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7918],{9047:(e,t,n)=>{n.d(t,{Z:()=>H});var s=n(7294),i=n(5893);function a(e){const{mdxAdmonitionTitle:t,rest:n}=function(e){const t=s.Children.toArray(e),n=t.find((e=>s.isValidElement(e)&&"mdxAdmonitionTitle"===e.type)),a=t.filter((e=>e!==n)),l=n?.props.children;return{mdxAdmonitionTitle:l,rest:a.length>0?(0,i.jsx)(i.Fragment,{children:a}):null}}(e.children),a=e.title??t;return{...e,...a&&{title:a},children:n}}var l=n(512),o=n(5999),r=n(5281);const c={admonition:"admonition_xJq3",admonitionHeading:"admonitionHeading_Gvgb",admonitionIcon:"admonitionIcon_Rf37",admonitionContent:"admonitionContent_BuS1"};function d(e){let{type:t,className:n,children:s}=e;return(0,i.jsx)("div",{className:(0,l.Z)(r.k.common.admonition,r.k.common.admonitionType(t),c.admonition,n),children:s})}function u(e){let{icon:t,title:n}=e;return(0,i.jsxs)("div",{className:c.admonitionHeading,children:[(0,i.jsx)("span",{className:c.admonitionIcon,children:t}),n]})}function m(e){let{children:t}=e;return t?(0,i.jsx)("div",{className:c.admonitionContent,children:t}):null}function h(e){const{type:t,icon:n,title:s,children:a,className:l}=e;return(0,i.jsxs)(d,{type:t,className:l,children:[(0,i.jsx)(u,{title:s,icon:n}),(0,i.jsx)(m,{children:a})]})}function x(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.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"})})}const v={icon:(0,i.jsx)(x,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function f(e){return(0,i.jsx)(h,{...v,...e,className:(0,l.Z)("alert alert--secondary",e.className),children:e.children})}function p(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.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"})})}const j={icon:(0,i.jsx)(p,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function g(e){return(0,i.jsx)(h,{...j,...e,className:(0,l.Z)("alert alert--success",e.className),children:e.children})}function b(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.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"})})}const N={icon:(0,i.jsx)(b,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function C(e){return(0,i.jsx)(h,{...N,...e,className:(0,l.Z)("alert alert--info",e.className),children:e.children})}function L(e){return(0,i.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,i.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"})})}const Z={icon:(0,i.jsx)(L,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function _(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.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"})})}const k={icon:(0,i.jsx)(_,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const T={icon:(0,i.jsx)(L,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const y={...{note:f,tip:g,info:C,warning:function(e){return(0,i.jsx)(h,{...Z,...e,className:(0,l.Z)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,i.jsx)(h,{...k,...e,className:(0,l.Z)("alert alert--danger",e.className),children:e.children})}},...{secondary:e=>(0,i.jsx)(f,{title:"secondary",...e}),important:e=>(0,i.jsx)(C,{title:"important",...e}),success:e=>(0,i.jsx)(g,{title:"success",...e}),caution:function(e){return(0,i.jsx)(h,{...T,...e,className:(0,l.Z)("alert alert--warning",e.className),children:e.children})}}};function H(e){const t=a(e),n=(s=t.type,y[s]||(console.warn(`No admonition component found for admonition type "${s}". Using Info as fallback.`),y.info));var s;return(0,i.jsx)(n,{...t})}},4758:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ve});var s=n(7294),i=n(1944),a=n(902),l=n(5893);const o=s.createContext(null);function r(e){let{children:t,content:n}=e;const i=function(e){return(0,s.useMemo)((()=>({metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc})),[e])}(n);return(0,l.jsx)(o.Provider,{value:i,children:t})}function c(){const e=(0,s.useContext)(o);if(null===e)throw new a.i6("DocProvider");return e}function d(){const{metadata:e,frontMatter:t,assets:n}=c();return(0,l.jsx)(i.d,{title:e.title,description:e.description,keywords:t.keywords,image:n.image??t.image})}var u=n(512),m=n(7524),h=n(5999),x=n(3692);function v(e){const{permalink:t,title:n,subLabel:s,isNext:i}=e;return(0,l.jsxs)(x.Z,{className:(0,u.Z)("pagination-nav__link",i?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[s&&(0,l.jsx)("div",{className:"pagination-nav__sublabel",children:s}),(0,l.jsx)("div",{className:"pagination-nav__label",children:n})]})}function f(e){const{previous:t,next:n}=e;return(0,l.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,h.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[t&&(0,l.jsx)(v,{...t,subLabel:(0,l.jsx)(h.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),n&&(0,l.jsx)(v,{...n,subLabel:(0,l.jsx)(h.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}function p(){const{metadata:e}=c();return(0,l.jsx)(f,{previous:e.previous,next:e.next})}var j=n(2263),g=n(143),b=n(5281),N=n(373),C=n(4477);const L={unreleased:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,l.jsx)(h.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,l.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,l.jsx)(h.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,l.jsx)("b",{children:n.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function Z(e){const t=L[e.versionMetadata.banner];return(0,l.jsx)(t,{...e})}function _(e){let{versionLabel:t,to:n,onClick:s}=e;return(0,l.jsx)(h.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:(0,l.jsx)("b",{children:(0,l.jsx)(x.Z,{to:n,onClick:s,children:(0,l.jsx)(h.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 k(e){let{className:t,versionMetadata:n}=e;const{siteConfig:{title:s}}=(0,j.Z)(),{pluginId:i}=(0,g.gA)({failfast:!0}),{savePreferredVersionName:a}=(0,N.J)(i),{latestDocSuggestion:o,latestVersionSuggestion:r}=(0,g.Jo)(i),c=o??(d=r).docs.find((e=>e.id===d.mainDocId));var d;return(0,l.jsxs)("div",{className:(0,u.Z)(t,b.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,l.jsx)("div",{children:(0,l.jsx)(Z,{siteTitle:s,versionMetadata:n})}),(0,l.jsx)("div",{className:"margin-top--md",children:(0,l.jsx)(_,{versionLabel:r.label,to:c.path,onClick:()=>a(r.name)})})]})}function T(e){let{className:t}=e;const n=(0,C.E)();return n.banner?(0,l.jsx)(k,{className:t,versionMetadata:n}):null}function y(e){let{className:t}=e;const n=(0,C.E)();return n.badge?(0,l.jsx)("span",{className:(0,u.Z)(t,b.k.docs.docVersionBadge,"badge badge--secondary"),children:(0,l.jsx)(h.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label},children:"Version: {versionLabel}"})}):null}function H(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:n}=e;return(0,l.jsx)(h.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:(0,l.jsx)("b",{children:(0,l.jsx)("time",{dateTime:new Date(1e3*t).toISOString(),children:n})})},children:" on {date}"})}function w(e){let{lastUpdatedBy:t}=e;return(0,l.jsx)(h.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:(0,l.jsx)("b",{children:t})},children:" by {user}"})}function U(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:n,lastUpdatedBy:s}=e;return(0,l.jsxs)("span",{className:b.k.common.lastUpdated,children:[(0,l.jsx)(h.Z,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t&&n?(0,l.jsx)(H,{lastUpdatedAt:t,formattedLastUpdatedAt:n}):"",byUser:s?(0,l.jsx)(w,{lastUpdatedBy:s}):""},children:"Last updated{atDate}{byUser}"}),!1]})}const A={iconEdit:"iconEdit_Z9Sw"};function M(e){let{className:t,...n}=e;return(0,l.jsx)("svg",{fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,u.Z)(A.iconEdit,t),"aria-hidden":"true",...n,children:(0,l.jsx)("g",{children:(0,l.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 B(e){let{editUrl:t}=e;return(0,l.jsxs)(x.Z,{to:t,className:b.k.common.editThisPage,children:[(0,l.jsx)(M,{}),(0,l.jsx)(h.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page",children:"Edit this page"})]})}var I=n(3008);const E={tags:"tags_jXut",tag:"tag_QGVx"};function z(e){let{tags:t}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("b",{children:(0,l.jsx)(h.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,l.jsx)("ul",{className:(0,u.Z)(E.tags,"padding--none","margin-left--sm"),children:t.map((e=>{let{label:t,permalink:n}=e;return(0,l.jsx)("li",{className:E.tag,children:(0,l.jsx)(I.Z,{label:t,permalink:n})},n)}))})]})}const V={lastUpdated:"lastUpdated_vwxv"};function R(e){return(0,l.jsx)("div",{className:(0,u.Z)(b.k.docs.docFooterTagsRow,"row margin-bottom--sm"),children:(0,l.jsx)("div",{className:"col",children:(0,l.jsx)(z,{...e})})})}function O(e){let{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:s,formattedLastUpdatedAt:i}=e;return(0,l.jsxs)("div",{className:(0,u.Z)(b.k.docs.docFooterEditMetaRow,"row"),children:[(0,l.jsx)("div",{className:"col",children:t&&(0,l.jsx)(B,{editUrl:t})}),(0,l.jsx)("div",{className:(0,u.Z)("col",V.lastUpdated),children:(n||s)&&(0,l.jsx)(U,{lastUpdatedAt:n,formattedLastUpdatedAt:i,lastUpdatedBy:s})})]})}function S(){const{metadata:e}=c(),{editUrl:t,lastUpdatedAt:n,formattedLastUpdatedAt:s,lastUpdatedBy:i,tags:a}=e,o=a.length>0,r=!!(t||n||i);return o||r?(0,l.jsxs)("footer",{className:(0,u.Z)(b.k.docs.docFooter,"docusaurus-mt-lg"),children:[o&&(0,l.jsx)(R,{tags:a}),r&&(0,l.jsx)(O,{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:i,formattedLastUpdatedAt:s})]}):null}var F=n(6043),P=n(6668);function D(e){const t=e.map((e=>({...e,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);t.forEach(((e,t)=>{const s=n.slice(2,e.level);e.parentIndex=Math.max(...s),n[e.level]=t}));const s=[];return t.forEach((e=>{const{parentIndex:n,...i}=e;n>=0?t[n].children.push(i):s.push(i)})),s}function q(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:s}=e;return t.flatMap((e=>{const t=q({toc:e.children,minHeadingLevel:n,maxHeadingLevel:s});return function(e){return e.level>=n&&e.level<=s}(e)?[{...e,children:t}]:t}))}function G(e){const t=e.getBoundingClientRect();return t.top===t.bottom?G(e.parentNode):t}function W(e,t){let{anchorTopOffset:n}=t;const s=e.find((e=>G(e).top>=n));if(s){return function(e){return e.top>0&&e.bottom{e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}function J(e){const t=(0,s.useRef)(void 0),n=$();(0,s.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:s,linkActiveClassName:i,minHeadingLevel:a,maxHeadingLevel:l}=e;function o(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(s),o=function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e;const s=[];for(let i=t;i<=n;i+=1)s.push(`h${i}.anchor`);return Array.from(document.querySelectorAll(s.join()))}({minHeadingLevel:a,maxHeadingLevel:l}),r=W(o,{anchorTopOffset:n.current}),c=e.find((e=>r&&r.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,n){n?(t.current&&t.current!==e&&t.current.classList.remove(i),e.classList.add(i),t.current=e):e.classList.remove(i)}(e,e===c)}))}return document.addEventListener("scroll",o),document.addEventListener("resize",o),o(),()=>{document.removeEventListener("scroll",o),document.removeEventListener("resize",o)}}),[e,n])}function Q(e){let{toc:t,className:n,linkClassName:s,isChild:i}=e;return t.length?(0,l.jsx)("ul",{className:i?void 0:n,children:t.map((e=>(0,l.jsxs)("li",{children:[(0,l.jsx)(x.Z,{to:`#${e.id}`,className:s??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,l.jsx)(Q,{isChild:!0,toc:e.children,className:n,linkClassName:s})]},e.id)))}):null}const X=s.memo(Q);function Y(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:i="table-of-contents__link",linkActiveClassName:a,minHeadingLevel:o,maxHeadingLevel:r,...c}=e;const d=(0,P.L)(),u=o??d.tableOfContents.minHeadingLevel,m=r??d.tableOfContents.maxHeadingLevel,h=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:i}=e;return(0,s.useMemo)((()=>q({toc:D(t),minHeadingLevel:n,maxHeadingLevel:i})),[t,n,i])}({toc:t,minHeadingLevel:u,maxHeadingLevel:m});return J((0,s.useMemo)((()=>{if(i&&a)return{linkClassName:i,linkActiveClassName:a,minHeadingLevel:u,maxHeadingLevel:m}}),[i,a,u,m])),(0,l.jsx)(X,{toc:h,className:n,linkClassName:i,...c})}const K={tocCollapsibleButton:"tocCollapsibleButton_TO0P",tocCollapsibleButtonExpanded:"tocCollapsibleButtonExpanded_MG3E"};function ee(e){let{collapsed:t,...n}=e;return(0,l.jsx)("button",{type:"button",...n,className:(0,u.Z)("clean-btn",K.tocCollapsibleButton,!t&&K.tocCollapsibleButtonExpanded,n.className),children:(0,l.jsx)(h.Z,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component",children:"On this page"})})}const te={tocCollapsible:"tocCollapsible_ETCw",tocCollapsibleContent:"tocCollapsibleContent_vkbj",tocCollapsibleExpanded:"tocCollapsibleExpanded_sAul"};function ne(e){let{toc:t,className:n,minHeadingLevel:s,maxHeadingLevel:i}=e;const{collapsed:a,toggleCollapsed:o}=(0,F.u)({initialState:!0});return(0,l.jsxs)("div",{className:(0,u.Z)(te.tocCollapsible,!a&&te.tocCollapsibleExpanded,n),children:[(0,l.jsx)(ee,{collapsed:a,onClick:o}),(0,l.jsx)(F.z,{lazy:!0,className:te.tocCollapsibleContent,collapsed:a,children:(0,l.jsx)(Y,{toc:t,minHeadingLevel:s,maxHeadingLevel:i})})]})}const se={tocMobile:"tocMobile_ITEo"};function ie(){const{toc:e,frontMatter:t}=c();return(0,l.jsx)(ne,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:(0,u.Z)(b.k.docs.docTocMobile,se.tocMobile)})}const ae={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"},le="table-of-contents__link toc-highlight",oe="table-of-contents__link--active";function re(e){let{className:t,...n}=e;return(0,l.jsx)("div",{className:(0,u.Z)(ae.tableOfContents,"thin-scrollbar",t),children:(0,l.jsx)(Y,{...n,linkClassName:le,linkActiveClassName:oe})})}function ce(){const{toc:e,frontMatter:t}=c();return(0,l.jsx)(re,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:b.k.docs.docTocDesktop})}var de=n(2503),ue=n(1151),me=n(5742),he=n(9286);function xe(e){return(0,l.jsx)("code",{...e})}var ve=n(4673);function fe(e){const t=s.Children.toArray(e.children),n=t.find((e=>s.isValidElement(e)&&"summary"===e.type)),i=(0,l.jsx)(l.Fragment,{children:t.filter((e=>e!==n))});return(0,l.jsx)(ve.Z,{...e,summary:n,children:i})}function pe(e){return(0,l.jsx)(de.Z,{...e})}const je={containsTaskList:"containsTaskList_mC6p"};function ge(e){if(void 0!==e)return(0,u.Z)(e,e?.includes("contains-task-list")&&je.containsTaskList)}const be={img:"img_ev3q"};var Ne=n(9047);const Ce={Head:me.Z,details:fe,Details:fe,code:function(e){return function(e){return void 0!==e.children&&s.Children.toArray(e.children).every((e=>"string"==typeof e&&!e.includes("\n")))}(e)?(0,l.jsx)(xe,{...e}):(0,l.jsx)(he.Z,{...e})},a:function(e){return(0,l.jsx)(x.Z,{...e})},pre:function(e){return(0,l.jsx)(l.Fragment,{children:e.children})},ul:function(e){return(0,l.jsx)("ul",{...e,className:ge(e.className)})},img:function(e){return(0,l.jsx)("img",{loading:"lazy",...e,className:(t=e.className,(0,u.Z)(t,be.img))});var t},h1:e=>(0,l.jsx)(pe,{as:"h1",...e}),h2:e=>(0,l.jsx)(pe,{as:"h2",...e}),h3:e=>(0,l.jsx)(pe,{as:"h3",...e}),h4:e=>(0,l.jsx)(pe,{as:"h4",...e}),h5:e=>(0,l.jsx)(pe,{as:"h5",...e}),h6:e=>(0,l.jsx)(pe,{as:"h6",...e}),admonition:Ne.Z,mermaid:()=>null};function Le(e){let{children:t}=e;return(0,l.jsx)(ue.Z,{components:Ce,children:t})}function Ze(e){let{children:t}=e;const n=function(){const{metadata:e,frontMatter:t,contentTitle:n}=c();return t.hide_title||void 0!==n?null:e.title}();return(0,l.jsxs)("div",{className:(0,u.Z)(b.k.docs.docMarkdown,"markdown"),children:[n&&(0,l.jsx)("header",{children:(0,l.jsx)(de.Z,{as:"h1",children:n})}),(0,l.jsx)(Le,{children:t})]})}var _e=n(3438),ke=n(8596),Te=n(4996);function ye(e){return(0,l.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,l.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"})})}const He={breadcrumbHomeIcon:"breadcrumbHomeIcon_YNFT"};function we(){const e=(0,Te.Z)("/");return(0,l.jsx)("li",{className:"breadcrumbs__item",children:(0,l.jsx)(x.Z,{"aria-label":(0,h.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,l.jsx)(ye,{className:He.breadcrumbHomeIcon})})})}const Ue={breadcrumbsContainer:"breadcrumbsContainer_Z_bl"};function Ae(e){let{children:t,href:n,isLast:s}=e;const i="breadcrumbs__link";return s?(0,l.jsx)("span",{className:i,itemProp:"name",children:t}):n?(0,l.jsx)(x.Z,{className:i,href:n,itemProp:"item",children:(0,l.jsx)("span",{itemProp:"name",children:t})}):(0,l.jsx)("span",{className:i,children:t})}function Me(e){let{children:t,active:n,index:s,addMicrodata:i}=e;return(0,l.jsxs)("li",{...i&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,u.Z)("breadcrumbs__item",{"breadcrumbs__item--active":n}),children:[t,(0,l.jsx)("meta",{itemProp:"position",content:String(s+1)})]})}function Be(){const e=(0,_e.s1)(),t=(0,ke.Ns)();return e?(0,l.jsx)("nav",{className:(0,u.Z)(b.k.docs.docBreadcrumbs,Ue.breadcrumbsContainer),"aria-label":(0,h.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,l.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[t&&(0,l.jsx)(we,{}),e.map(((t,n)=>{const s=n===e.length-1,i="category"===t.type&&t.linkUnlisted?void 0:t.href;return(0,l.jsx)(Me,{active:s,index:n,addMicrodata:!!i,children:(0,l.jsx)(Ae,{href:i,isLast:s,children:t.label})},n)}))]})}):null}var Ie=n(2212);const Ee={docItemContainer:"docItemContainer_Djhp",docItemCol:"docItemCol_VOVn"};function ze(e){let{children:t}=e;const n=function(){const{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,l.jsx)(ie,{}):void 0,desktop:!i||"desktop"!==n&&"ssr"!==n?void 0:(0,l.jsx)(ce,{})}}(),{metadata:{unlisted:s}}=c();return(0,l.jsxs)("div",{className:"row",children:[(0,l.jsxs)("div",{className:(0,u.Z)("col",!n.hidden&&Ee.docItemCol),children:[s&&(0,l.jsx)(Ie.Z,{}),(0,l.jsx)(T,{}),(0,l.jsxs)("div",{className:Ee.docItemContainer,children:[(0,l.jsxs)("article",{children:[(0,l.jsx)(Be,{}),(0,l.jsx)(y,{}),n.mobile,(0,l.jsx)(Ze,{children:t}),(0,l.jsx)(S,{})]}),(0,l.jsx)(p,{})]})]}),n.desktop&&(0,l.jsx)("div",{className:"col col--3",children:n.desktop})]})}function Ve(e){const t=`docs-doc-id-${e.content.metadata.id}`,n=e.content;return(0,l.jsx)(r,{content:e.content,children:(0,l.jsxs)(i.FG,{className:t,children:[(0,l.jsx)(d,{}),(0,l.jsx)(ze,{children:(0,l.jsx)(n,{})})]})})}},3008:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var s=n(512),i=n(3692);const a={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};var l=n(5893);function o(e){let{permalink:t,label:n,count:o}=e;return(0,l.jsxs)(i.Z,{href:t,className:(0,s.Z)(a.tag,o?a.tagWithCount:a.tagRegular),children:[n,o&&(0,l.jsx)("span",{children:o})]})}},2212:(e,t,n)=>{n.d(t,{Z:()=>h});n(7294);var s=n(512),i=n(5999),a=n(5742),l=n(5893);function o(){return(0,l.jsx)(i.Z,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function r(){return(0,l.jsx)(i.Z,{id:"theme.unlistedContent.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 c(){return(0,l.jsx)(a.Z,{children:(0,l.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}var d=n(5281),u=n(9047);function m(e){let{className:t}=e;return(0,l.jsx)(u.Z,{type:"caution",title:(0,l.jsx)(o,{}),className:(0,s.Z)(t,d.k.common.unlistedBanner),children:(0,l.jsx)(r,{})})}function h(e){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c,{}),(0,l.jsx)(m,{...e})]})}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/17896441.6fafa0da.js b/pt-BR/assets/js/17896441.6fafa0da.js deleted file mode 100644 index eea20a3dba..0000000000 --- a/pt-BR/assets/js/17896441.6fafa0da.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7918],{4673:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var s=n(7294),a=n(512),o=n(2389),i=n(6043);const l={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var c=n(5893);function r(e){return!!e&&("SUMMARY"===e.tagName||r(e.parentElement))}function d(e,t){return!!e&&(e===t||d(e.parentElement,t))}function u(e){let{summary:t,children:n,...u}=e;const m=(0,o.Z)(),h=(0,s.useRef)(null),{collapsed:p,setCollapsed:f}=(0,i.u)({initialState:!u.open}),[x,b]=(0,s.useState)(u.open),g=s.isValidElement(t)?t:(0,c.jsx)("summary",{children:t??"Details"});return(0,c.jsxs)("details",{...u,ref:h,open:x,"data-collapsed":p,className:(0,a.Z)(l.details,m&&l.isBrowser,u.className),onMouseDown:e=>{r(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const t=e.target;r(t)&&d(t,h.current)&&(e.preventDefault(),p?(f(!1),b(!0)):f(!0))},children:[g,(0,c.jsx)(i.z,{lazy:!1,collapsed:p,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{f(e),b(!e)},children:(0,c.jsx)("div",{className:l.collapsibleContent,children:n})})]})}const m={details:"details_b_Ee"},h="alert alert--info";function p(e){let{...t}=e;return(0,c.jsx)(u,{...t,className:(0,a.Z)(h,m.details,t.className)})}},1310:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});n(7294);var s=n(512),a=n(5281),o=n(3438),i=n(8596),l=n(9960),c=n(5999),r=n(4996),d=n(5893);function u(e){return(0,d.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,d.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"})})}const m={breadcrumbHomeIcon:"breadcrumbHomeIcon_YNFT"};function h(){const e=(0,r.Z)("/");return(0,d.jsx)("li",{className:"breadcrumbs__item",children:(0,d.jsx)(l.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,d.jsx)(u,{className:m.breadcrumbHomeIcon})})})}const p={breadcrumbsContainer:"breadcrumbsContainer_Z_bl"};function f(e){let{children:t,href:n,isLast:s}=e;const a="breadcrumbs__link";return s?(0,d.jsx)("span",{className:a,itemProp:"name",children:t}):n?(0,d.jsx)(l.Z,{className:a,href:n,itemProp:"item",children:(0,d.jsx)("span",{itemProp:"name",children:t})}):(0,d.jsx)("span",{className:a,children:t})}function x(e){let{children:t,active:n,index:a,addMicrodata:o}=e;return(0,d.jsxs)("li",{...o&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,s.Z)("breadcrumbs__item",{"breadcrumbs__item--active":n}),children:[t,(0,d.jsx)("meta",{itemProp:"position",content:String(a+1)})]})}function b(){const e=(0,o.s1)(),t=(0,i.Ns)();return e?(0,d.jsx)("nav",{className:(0,s.Z)(a.k.docs.docBreadcrumbs,p.breadcrumbsContainer),"aria-label":(0,c.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,d.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[t&&(0,d.jsx)(h,{}),e.map(((t,n)=>{const s=n===e.length-1,a="category"===t.type&&t.linkUnlisted?void 0:t.href;return(0,d.jsx)(x,{active:s,index:n,addMicrodata:!!a,children:(0,d.jsx)(f,{href:a,isLast:s,children:t.label})},n)}))]})}):null}},9678:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>gt});var s=n(7294),a=n(1944),o=n(902),i=n(5893);const l=s.createContext(null);function c(e){let{children:t,content:n}=e;const a=function(e){return(0,s.useMemo)((()=>({metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc})),[e])}(n);return(0,i.jsx)(l.Provider,{value:a,children:t})}function r(){const e=(0,s.useContext)(l);if(null===e)throw new o.i6("DocProvider");return e}function d(){const{metadata:e,frontMatter:t,assets:n}=r();return(0,i.jsx)(a.d,{title:e.title,description:e.description,keywords:t.keywords,image:n.image??t.image})}var u=n(512),m=n(7524),h=n(4966);function p(){const{metadata:e}=r();return(0,i.jsx)(h.Z,{previous:e.previous,next:e.next})}var f=n(3120),x=n(4364),b=n(5281),g=n(5999);function j(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:n}=e;return(0,i.jsx)(g.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:(0,i.jsx)("b",{children:(0,i.jsx)("time",{dateTime:new Date(1e3*t).toISOString(),children:n})})},children:" on {date}"})}function v(e){let{lastUpdatedBy:t}=e;return(0,i.jsx)(g.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:(0,i.jsx)("b",{children:t})},children:" by {user}"})}function N(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:n,lastUpdatedBy:s}=e;return(0,i.jsxs)("span",{className:b.k.common.lastUpdated,children:[(0,i.jsx)(g.Z,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t&&n?(0,i.jsx)(j,{lastUpdatedAt:t,formattedLastUpdatedAt:n}):"",byUser:s?(0,i.jsx)(v,{lastUpdatedBy:s}):""},children:"Last updated{atDate}{byUser}"}),!1]})}var C=n(9960);const k={iconEdit:"iconEdit_Z9Sw"};function L(e){let{className:t,...n}=e;return(0,i.jsx)("svg",{fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,u.Z)(k.iconEdit,t),"aria-hidden":"true",...n,children:(0,i.jsx)("g",{children:(0,i.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 y(e){let{editUrl:t}=e;return(0,i.jsxs)(C.Z,{to:t,className:b.k.common.editThisPage,children:[(0,i.jsx)(L,{}),(0,i.jsx)(g.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page",children:"Edit this page"})]})}const w={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};function B(e){let{permalink:t,label:n,count:s}=e;return(0,i.jsxs)(C.Z,{href:t,className:(0,u.Z)(w.tag,s?w.tagWithCount:w.tagRegular),children:[n,s&&(0,i.jsx)("span",{children:s})]})}const _={tags:"tags_jXut",tag:"tag_QGVx"};function Z(e){let{tags:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("b",{children:(0,i.jsx)(g.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,i.jsx)("ul",{className:(0,u.Z)(_.tags,"padding--none","margin-left--sm"),children:t.map((e=>{let{label:t,permalink:n}=e;return(0,i.jsx)("li",{className:_.tag,children:(0,i.jsx)(B,{label:t,permalink:n})},n)}))})]})}const T={lastUpdated:"lastUpdated_vwxv"};function E(e){return(0,i.jsx)("div",{className:(0,u.Z)(b.k.docs.docFooterTagsRow,"row margin-bottom--sm"),children:(0,i.jsx)("div",{className:"col",children:(0,i.jsx)(Z,{...e})})})}function H(e){let{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:s,formattedLastUpdatedAt:a}=e;return(0,i.jsxs)("div",{className:(0,u.Z)(b.k.docs.docFooterEditMetaRow,"row"),children:[(0,i.jsx)("div",{className:"col",children:t&&(0,i.jsx)(y,{editUrl:t})}),(0,i.jsx)("div",{className:(0,u.Z)("col",T.lastUpdated),children:(n||s)&&(0,i.jsx)(N,{lastUpdatedAt:n,formattedLastUpdatedAt:a,lastUpdatedBy:s})})]})}function A(){const{metadata:e}=r(),{editUrl:t,lastUpdatedAt:n,formattedLastUpdatedAt:s,lastUpdatedBy:a,tags:o}=e,l=o.length>0,c=!!(t||n||a);return l||c?(0,i.jsxs)("footer",{className:(0,u.Z)(b.k.docs.docFooter,"docusaurus-mt-lg"),children:[l&&(0,i.jsx)(E,{tags:o}),c&&(0,i.jsx)(H,{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:a,formattedLastUpdatedAt:s})]}):null}var I=n(6043),M=n(6668);function S(e){const t=e.map((e=>({...e,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);t.forEach(((e,t)=>{const s=n.slice(2,e.level);e.parentIndex=Math.max(...s),n[e.level]=t}));const s=[];return t.forEach((e=>{const{parentIndex:n,...a}=e;n>=0?t[n].children.push(a):s.push(a)})),s}function U(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:s}=e;return t.flatMap((e=>{const t=U({toc:e.children,minHeadingLevel:n,maxHeadingLevel:s});return function(e){return e.level>=n&&e.level<=s}(e)?[{...e,children:t}]:t}))}function z(e){const t=e.getBoundingClientRect();return t.top===t.bottom?z(e.parentNode):t}function V(e,t){let{anchorTopOffset:n}=t;const s=e.find((e=>z(e).top>=n));if(s){return function(e){return e.top>0&&e.bottom{e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}function O(e){const t=(0,s.useRef)(void 0),n=R();(0,s.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:s,linkActiveClassName:a,minHeadingLevel:o,maxHeadingLevel:i}=e;function l(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(s),l=function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e;const s=[];for(let a=t;a<=n;a+=1)s.push(`h${a}.anchor`);return Array.from(document.querySelectorAll(s.join()))}({minHeadingLevel:o,maxHeadingLevel:i}),c=V(l,{anchorTopOffset:n.current}),r=e.find((e=>c&&c.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,n){n?(t.current&&t.current!==e&&t.current.classList.remove(a),e.classList.add(a),t.current=e):e.classList.remove(a)}(e,e===r)}))}return document.addEventListener("scroll",l),document.addEventListener("resize",l),l(),()=>{document.removeEventListener("scroll",l),document.removeEventListener("resize",l)}}),[e,n])}function P(e){let{toc:t,className:n,linkClassName:s,isChild:a}=e;return t.length?(0,i.jsx)("ul",{className:a?void 0:n,children:t.map((e=>(0,i.jsxs)("li",{children:[(0,i.jsx)(C.Z,{to:`#${e.id}`,className:s??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,i.jsx)(P,{isChild:!0,toc:e.children,className:n,linkClassName:s})]},e.id)))}):null}const $=s.memo(P);function D(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:a="table-of-contents__link",linkActiveClassName:o,minHeadingLevel:l,maxHeadingLevel:c,...r}=e;const d=(0,M.L)(),u=l??d.tableOfContents.minHeadingLevel,m=c??d.tableOfContents.maxHeadingLevel,h=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:a}=e;return(0,s.useMemo)((()=>U({toc:S(t),minHeadingLevel:n,maxHeadingLevel:a})),[t,n,a])}({toc:t,minHeadingLevel:u,maxHeadingLevel:m});return O((0,s.useMemo)((()=>{if(a&&o)return{linkClassName:a,linkActiveClassName:o,minHeadingLevel:u,maxHeadingLevel:m}}),[a,o,u,m])),(0,i.jsx)($,{toc:h,className:n,linkClassName:a,...r})}const W={tocCollapsibleButton:"tocCollapsibleButton_TO0P",tocCollapsibleButtonExpanded:"tocCollapsibleButtonExpanded_MG3E"};function F(e){let{collapsed:t,...n}=e;return(0,i.jsx)("button",{type:"button",...n,className:(0,u.Z)("clean-btn",W.tocCollapsibleButton,!t&&W.tocCollapsibleButtonExpanded,n.className),children:(0,i.jsx)(g.Z,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component",children:"On this page"})})}const q={tocCollapsible:"tocCollapsible_ETCw",tocCollapsibleContent:"tocCollapsibleContent_vkbj",tocCollapsibleExpanded:"tocCollapsibleExpanded_sAul"};function G(e){let{toc:t,className:n,minHeadingLevel:s,maxHeadingLevel:a}=e;const{collapsed:o,toggleCollapsed:l}=(0,I.u)({initialState:!0});return(0,i.jsxs)("div",{className:(0,u.Z)(q.tocCollapsible,!o&&q.tocCollapsibleExpanded,n),children:[(0,i.jsx)(F,{collapsed:o,onClick:l}),(0,i.jsx)(I.z,{lazy:!0,className:q.tocCollapsibleContent,collapsed:o,children:(0,i.jsx)(D,{toc:t,minHeadingLevel:s,maxHeadingLevel:a})})]})}const J={tocMobile:"tocMobile_ITEo"};function Y(){const{toc:e,frontMatter:t}=r();return(0,i.jsx)(G,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:(0,u.Z)(b.k.docs.docTocMobile,J.tocMobile)})}const Q={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"},X="table-of-contents__link toc-highlight",K="table-of-contents__link--active";function ee(e){let{className:t,...n}=e;return(0,i.jsx)("div",{className:(0,u.Z)(Q.tableOfContents,"thin-scrollbar",t),children:(0,i.jsx)(D,{...n,linkClassName:X,linkActiveClassName:K})})}function te(){const{toc:e,frontMatter:t}=r();return(0,i.jsx)(ee,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:b.k.docs.docTocDesktop})}var ne=n(2503),se=n(1151),ae=n(5742),oe=n(2389),ie=n(2949);function le(){const{prism:e}=(0,M.L)(),{colorMode:t}=(0,ie.I)(),n=e.theme,s=e.darkTheme||n;return"dark"===t?s:n}var ce=n(7594),re=n.n(ce);const de=/title=(?["'])(?.*?)\1/,ue=/\{(?<range>[\d,-]+)\}/,me={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"},lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""}};function he(e,t){const n=e.map((e=>{const{start:n,end:s}=me[e];return`(?:${n}\\s*(${t.flatMap((e=>[e.line,e.block?.start,e.block?.end].filter(Boolean))).join("|")})\\s*${s})`})).join("|");return new RegExp(`^\\s*(?:${n})\\s*$`)}function pe(e,t){let n=e.replace(/\n$/,"");const{language:s,magicComments:a,metastring:o}=t;if(o&&ue.test(o)){const e=o.match(ue).groups.range;if(0===a.length)throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${o}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);const t=a[0].className,s=re()(e).filter((e=>e>0)).map((e=>[e-1,[t]]));return{lineClassNames:Object.fromEntries(s),code:n}}if(void 0===s)return{lineClassNames:{},code:n};const i=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return he(["js","jsBlock"],t);case"jsx":case"tsx":return he(["js","jsBlock","jsx"],t);case"html":return he(["js","jsBlock","html"],t);case"python":case"py":case"bash":return he(["bash"],t);case"markdown":case"md":return he(["html","jsx","bash"],t);case"tex":case"latex":case"matlab":return he(["tex"],t);case"lua":case"haskell":case"sql":return he(["lua"],t);case"wasm":return he(["wasm"],t);default:return he(Object.keys(me).filter((e=>!["lua","wasm","tex","latex","matlab"].includes(e))),t)}}(s,a),l=n.split("\n"),c=Object.fromEntries(a.map((e=>[e.className,{start:0,range:""}]))),r=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 h=0;h<l.length;){const e=l[h].match(i);if(!e){h+=1;continue}const t=e.slice(1).find((e=>void 0!==e));r[t]?c[r[t]].range+=`${h},`:d[t]?c[d[t]].start=h:u[t]&&(c[u[t]].range+=`${c[u[t]].start}-${h-1},`),l.splice(h,1)}n=l.join("\n");const m={};return Object.entries(c).forEach((e=>{let[t,{range:n}]=e;re()(n).forEach((e=>{m[e]??=[],m[e].push(t)}))})),{lineClassNames:m,code:n}}const fe={codeBlockContainer:"codeBlockContainer_Ckt0"};function xe(e){let{as:t,...n}=e;const s=function(e){const t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach((e=>{let[s,a]=e;const o=t[s];o&&"string"==typeof a&&(n[o]=a)})),n}(le());return(0,i.jsx)(t,{...n,style:s,className:(0,u.Z)(n.className,fe.codeBlockContainer,b.k.common.codeBlock)})}const be={codeBlockContent:"codeBlockContent_biex",codeBlockTitle:"codeBlockTitle_Ktv7",codeBlock:"codeBlock_bY9V",codeBlockStandalone:"codeBlockStandalone_MEMb",codeBlockLines:"codeBlockLines_e6Vv",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_o6Pm",buttonGroup:"buttonGroup__atx"};function ge(e){let{children:t,className:n}=e;return(0,i.jsx)(xe,{as:"pre",tabIndex:0,className:(0,u.Z)(be.codeBlockStandalone,"thin-scrollbar",n),children:(0,i.jsx)("code",{className:be.codeBlockLines,children:t})})}const je={attributes:!0,characterData:!0,childList:!0,subtree:!0};function ve(e,t){const[n,a]=(0,s.useState)(),i=(0,s.useCallback)((()=>{a(e.current?.closest("[role=tabpanel][hidden]"))}),[e,a]);(0,s.useEffect)((()=>{i()}),[i]),function(e,t,n){void 0===n&&(n=je);const a=(0,o.zX)(t),i=(0,o.Ql)(n);(0,s.useEffect)((()=>{const t=new MutationObserver(a);return e&&t.observe(e,i),()=>t.disconnect()}),[e,a,i])}(n,(e=>{e.forEach((e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),i())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}var Ne=n(2573);const Ce={codeLine:"codeLine_lJS_",codeLineNumber:"codeLineNumber_Tfdd",codeLineContent:"codeLineContent_feaV"};function ke(e){let{line:t,classNames:n,showLineNumbers:s,getLineProps:a,getTokenProps:o}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");const l=a({line:t,className:(0,u.Z)(n,s&&Ce.codeLine)}),c=t.map(((e,t)=>(0,i.jsx)("span",{...o({token:e,key:t})},t)));return(0,i.jsxs)("span",{...l,children:[s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:Ce.codeLineNumber}),(0,i.jsx)("span",{className:Ce.codeLineContent,children:c})]}):c,(0,i.jsx)("br",{})]})}function Le(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.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 ye(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}const we={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function Be(e){let{code:t,className:n}=e;const[a,o]=(0,s.useState)(!1),l=(0,s.useRef)(void 0),c=(0,s.useCallback)((()=>{!function(e,t){let{target:n=document.body}=void 0===t?{}:t;if("string"!=typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const s=document.createElement("textarea"),a=document.activeElement;s.value=e,s.setAttribute("readonly",""),s.style.contain="strict",s.style.position="absolute",s.style.left="-9999px",s.style.fontSize="12pt";const o=document.getSelection(),i=o.rangeCount>0&&o.getRangeAt(0);n.append(s),s.select(),s.selectionStart=0,s.selectionEnd=e.length;let l=!1;try{l=document.execCommand("copy")}catch{}s.remove(),i&&(o.removeAllRanges(),o.addRange(i)),a&&a.focus()}(t),o(!0),l.current=window.setTimeout((()=>{o(!1)}),1e3)}),[t]);return(0,s.useEffect)((()=>()=>window.clearTimeout(l.current)),[]),(0,i.jsx)("button",{type:"button","aria-label":a?(0,g.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,g.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,g.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,u.Z)("clean-btn",n,we.copyButton,a&&we.copyButtonCopied),onClick:c,children:(0,i.jsxs)("span",{className:we.copyButtonIcons,"aria-hidden":"true",children:[(0,i.jsx)(Le,{className:we.copyButtonIcon}),(0,i.jsx)(ye,{className:we.copyButtonSuccessIcon})]})})}function _e(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.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"})})}const Ze={wordWrapButtonIcon:"wordWrapButtonIcon_Bwma",wordWrapButtonEnabled:"wordWrapButtonEnabled_EoeP"};function Te(e){let{className:t,onClick:n,isEnabled:s}=e;const a=(0,g.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,i.jsx)("button",{type:"button",onClick:n,className:(0,u.Z)("clean-btn",t,s&&Ze.wordWrapButtonEnabled),"aria-label":a,title:a,children:(0,i.jsx)(_e,{className:Ze.wordWrapButtonIcon,"aria-hidden":"true"})})}function Ee(e){let{children:t,className:n="",metastring:a,title:o,showLineNumbers:l,language:c}=e;const{prism:{defaultLanguage:r,magicComments:d}}=(0,M.L)(),m=function(e){return e?.toLowerCase()}(c??function(e){const t=e.split(" ").find((e=>e.startsWith("language-")));return t?.replace(/language-/,"")}(n)??r),h=le(),p=function(){const[e,t]=(0,s.useState)(!1),[n,a]=(0,s.useState)(!1),o=(0,s.useRef)(null),i=(0,s.useCallback)((()=>{const n=o.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[o,e]),l=(0,s.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=o.current,n=e>t||o.current.querySelector("code").hasAttribute("style");a(n)}),[o]);return ve(o,l),(0,s.useEffect)((()=>{l()}),[e,l]),(0,s.useEffect)((()=>(window.addEventListener("resize",l,{passive:!0}),()=>{window.removeEventListener("resize",l)})),[l]),{codeBlockRef:o,isEnabled:e,isCodeScrollable:n,toggle:i}}(),f=function(e){return e?.match(de)?.groups.title??""}(a)||o,{lineClassNames:x,code:b}=pe(t,{metastring:a,language:m,magicComments:d}),g=l??function(e){return Boolean(e?.includes("showLineNumbers"))}(a);return(0,i.jsxs)(xe,{as:"div",className:(0,u.Z)(n,m&&!n.includes(`language-${m}`)&&`language-${m}`),children:[f&&(0,i.jsx)("div",{className:be.codeBlockTitle,children:f}),(0,i.jsxs)("div",{className:be.codeBlockContent,children:[(0,i.jsx)(Ne.y$,{theme:h,code:b,language:m??"text",children:e=>{let{className:t,style:n,tokens:s,getLineProps:a,getTokenProps:o}=e;return(0,i.jsx)("pre",{tabIndex:0,ref:p.codeBlockRef,className:(0,u.Z)(t,be.codeBlock,"thin-scrollbar"),style:n,children:(0,i.jsx)("code",{className:(0,u.Z)(be.codeBlockLines,g&&be.codeBlockLinesWithNumbering),children:s.map(((e,t)=>(0,i.jsx)(ke,{line:e,getLineProps:a,getTokenProps:o,classNames:x[t],showLineNumbers:g},t)))})})}}),(0,i.jsxs)("div",{className:be.buttonGroup,children:[(p.isEnabled||p.isCodeScrollable)&&(0,i.jsx)(Te,{className:be.codeButton,onClick:()=>p.toggle(),isEnabled:p.isEnabled}),(0,i.jsx)(Be,{className:be.codeButton,code:b})]})]})]})}function He(e){let{children:t,...n}=e;const a=(0,oe.Z)(),o=function(e){return s.Children.toArray(e).some((e=>(0,s.isValidElement)(e)))?e:Array.isArray(e)?e.join(""):e}(t),l="string"==typeof o?Ee:ge;return(0,i.jsx)(l,{...n,children:o},String(a))}var Ae=n(4673);function Ie(e){const t=s.Children.toArray(e.children),n=t.find((e=>s.isValidElement(e)&&"summary"===e.type)),a=(0,i.jsx)(i.Fragment,{children:t.filter((e=>e!==n))});return(0,i.jsx)(Ae.Z,{...e,summary:n,children:a})}function Me(e){return(0,i.jsx)(ne.Z,{...e})}const Se={containsTaskList:"containsTaskList_mC6p"};function Ue(e){if(void 0!==e)return(0,u.Z)(e,e?.includes("contains-task-list")&&Se.containsTaskList)}const ze={img:"img_ev3q"};function Ve(e){const{mdxAdmonitionTitle:t,rest:n}=function(e){const t=s.Children.toArray(e),n=t.find((e=>s.isValidElement(e)&&"mdxAdmonitionTitle"===e.type)),a=t.filter((e=>e!==n)),o=n?.props.children;return{mdxAdmonitionTitle:o,rest:a.length>0?(0,i.jsx)(i.Fragment,{children:a}):null}}(e.children),a=e.title??t;return{...e,...a&&{title:a},children:n}}const Re={admonition:"admonition_xJq3",admonitionHeading:"admonitionHeading_Gvgb",admonitionIcon:"admonitionIcon_Rf37",admonitionContent:"admonitionContent_BuS1"};function Oe(e){let{type:t,className:n,children:s}=e;return(0,i.jsx)("div",{className:(0,u.Z)(b.k.common.admonition,b.k.common.admonitionType(t),Re.admonition,n),children:s})}function Pe(e){let{icon:t,title:n}=e;return(0,i.jsxs)("div",{className:Re.admonitionHeading,children:[(0,i.jsx)("span",{className:Re.admonitionIcon,children:t}),n]})}function $e(e){let{children:t}=e;return t?(0,i.jsx)("div",{className:Re.admonitionContent,children:t}):null}function De(e){const{type:t,icon:n,title:s,children:a,className:o}=e;return(0,i.jsxs)(Oe,{type:t,className:o,children:[(0,i.jsx)(Pe,{title:s,icon:n}),(0,i.jsx)($e,{children:a})]})}function We(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.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"})})}const Fe={icon:(0,i.jsx)(We,{}),title:(0,i.jsx)(g.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function qe(e){return(0,i.jsx)(De,{...Fe,...e,className:(0,u.Z)("alert alert--secondary",e.className),children:e.children})}function Ge(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.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"})})}const Je={icon:(0,i.jsx)(Ge,{}),title:(0,i.jsx)(g.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function Ye(e){return(0,i.jsx)(De,{...Je,...e,className:(0,u.Z)("alert alert--success",e.className),children:e.children})}function Qe(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.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"})})}const Xe={icon:(0,i.jsx)(Qe,{}),title:(0,i.jsx)(g.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function Ke(e){return(0,i.jsx)(De,{...Xe,...e,className:(0,u.Z)("alert alert--info",e.className),children:e.children})}function et(e){return(0,i.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,i.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"})})}const tt={icon:(0,i.jsx)(et,{}),title:(0,i.jsx)(g.Z,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function nt(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.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"})})}const st={icon:(0,i.jsx)(nt,{}),title:(0,i.jsx)(g.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const at={icon:(0,i.jsx)(et,{}),title:(0,i.jsx)(g.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const ot={...{note:qe,tip:Ye,info:Ke,warning:function(e){return(0,i.jsx)(De,{...tt,...e,className:(0,u.Z)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,i.jsx)(De,{...st,...e,className:(0,u.Z)("alert alert--danger",e.className),children:e.children})}},...{secondary:e=>(0,i.jsx)(qe,{title:"secondary",...e}),important:e=>(0,i.jsx)(Ke,{title:"important",...e}),success:e=>(0,i.jsx)(Ye,{title:"success",...e}),caution:function(e){return(0,i.jsx)(De,{...at,...e,className:(0,u.Z)("alert alert--warning",e.className),children:e.children})}}};function it(e){const t=Ve(e),n=(s=t.type,ot[s]||(console.warn(`No admonition component found for admonition type "${s}". Using Info as fallback.`),ot.info));var s;return(0,i.jsx)(n,{...t})}const lt={Head:ae.Z,details:Ie,Details:Ie,code:function(e){return s.Children.toArray(e.children).every((e=>"string"==typeof e&&!e.includes("\n")))?(0,i.jsx)("code",{...e}):(0,i.jsx)(He,{...e})},a:function(e){return(0,i.jsx)(C.Z,{...e})},pre:function(e){return(0,i.jsx)(i.Fragment,{children:e.children})},ul:function(e){return(0,i.jsx)("ul",{...e,className:Ue(e.className)})},img:function(e){return(0,i.jsx)("img",{loading:"lazy",...e,className:(t=e.className,(0,u.Z)(t,ze.img))});var t},h1:e=>(0,i.jsx)(Me,{as:"h1",...e}),h2:e=>(0,i.jsx)(Me,{as:"h2",...e}),h3:e=>(0,i.jsx)(Me,{as:"h3",...e}),h4:e=>(0,i.jsx)(Me,{as:"h4",...e}),h5:e=>(0,i.jsx)(Me,{as:"h5",...e}),h6:e=>(0,i.jsx)(Me,{as:"h6",...e}),admonition:it,mermaid:()=>null};function ct(e){let{children:t}=e;return(0,i.jsx)(se.Z,{components:lt,children:t})}function rt(e){let{children:t}=e;const n=function(){const{metadata:e,frontMatter:t,contentTitle:n}=r();return t.hide_title||void 0!==n?null:e.title}();return(0,i.jsxs)("div",{className:(0,u.Z)(b.k.docs.docMarkdown,"markdown"),children:[n&&(0,i.jsx)("header",{children:(0,i.jsx)(ne.Z,{as:"h1",children:n})}),(0,i.jsx)(ct,{children:t})]})}var dt=n(1310);function ut(){return(0,i.jsx)(g.Z,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function mt(){return(0,i.jsx)(g.Z,{id:"theme.unlistedContent.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 ht(){return(0,i.jsx)(ae.Z,{children:(0,i.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function pt(e){let{className:t}=e;return(0,i.jsx)(it,{type:"caution",title:(0,i.jsx)(ut,{}),className:(0,u.Z)(t,b.k.common.unlistedBanner),children:(0,i.jsx)(mt,{})})}function ft(e){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ht,{}),(0,i.jsx)(pt,{...e})]})}const xt={docItemContainer:"docItemContainer_Djhp",docItemCol:"docItemCol_VOVn"};function bt(e){let{children:t}=e;const n=function(){const{frontMatter:e,toc:t}=r(),n=(0,m.i)(),s=e.hide_table_of_contents,a=!s&&t.length>0;return{hidden:s,mobile:a?(0,i.jsx)(Y,{}):void 0,desktop:!a||"desktop"!==n&&"ssr"!==n?void 0:(0,i.jsx)(te,{})}}(),{metadata:{unlisted:s}}=r();return(0,i.jsxs)("div",{className:"row",children:[(0,i.jsxs)("div",{className:(0,u.Z)("col",!n.hidden&&xt.docItemCol),children:[s&&(0,i.jsx)(ft,{}),(0,i.jsx)(f.Z,{}),(0,i.jsxs)("div",{className:xt.docItemContainer,children:[(0,i.jsxs)("article",{children:[(0,i.jsx)(dt.Z,{}),(0,i.jsx)(x.Z,{}),n.mobile,(0,i.jsx)(rt,{children:t}),(0,i.jsx)(A,{})]}),(0,i.jsx)(p,{})]})]}),n.desktop&&(0,i.jsx)("div",{className:"col col--3",children:n.desktop})]})}function gt(e){const t=`docs-doc-id-${e.content.metadata.id}`,n=e.content;return(0,i.jsx)(c,{content:e.content,children:(0,i.jsxs)(a.FG,{className:t,children:[(0,i.jsx)(d,{}),(0,i.jsx)(bt,{children:(0,i.jsx)(n,{})})]})})}},4966:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});n(7294);var s=n(5999),a=n(512),o=n(9960),i=n(5893);function l(e){const{permalink:t,title:n,subLabel:s,isNext:l}=e;return(0,i.jsxs)(o.Z,{className:(0,a.Z)("pagination-nav__link",l?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[s&&(0,i.jsx)("div",{className:"pagination-nav__sublabel",children:s}),(0,i.jsx)("div",{className:"pagination-nav__label",children:n})]})}function c(e){const{previous:t,next:n}=e;return(0,i.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,s.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[t&&(0,i.jsx)(l,{...t,subLabel:(0,i.jsx)(s.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),n&&(0,i.jsx)(l,{...n,subLabel:(0,i.jsx)(s.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}},4364:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});n(7294);var s=n(512),a=n(5999),o=n(5281),i=n(4477),l=n(5893);function c(e){let{className:t}=e;const n=(0,i.E)();return n.badge?(0,l.jsx)("span",{className:(0,s.Z)(t,o.k.docs.docVersionBadge,"badge badge--secondary"),children:(0,l.jsx)(a.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label},children:"Version: {versionLabel}"})}):null}},3120:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});n(7294);var s=n(512),a=n(2263),o=n(9960),i=n(5999),l=n(143),c=n(5281),r=n(373),d=n(4477),u=n(5893);const m={unreleased:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,u.jsx)(i.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,u.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,u.jsx)(i.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,u.jsx)("b",{children:n.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function h(e){const t=m[e.versionMetadata.banner];return(0,u.jsx)(t,{...e})}function p(e){let{versionLabel:t,to:n,onClick:s}=e;return(0,u.jsx)(i.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:(0,u.jsx)("b",{children:(0,u.jsx)(o.Z,{to:n,onClick:s,children:(0,u.jsx)(i.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 f(e){let{className:t,versionMetadata:n}=e;const{siteConfig:{title:o}}=(0,a.Z)(),{pluginId:i}=(0,l.gA)({failfast:!0}),{savePreferredVersionName:d}=(0,r.J)(i),{latestDocSuggestion:m,latestVersionSuggestion:f}=(0,l.Jo)(i),x=m??(b=f).docs.find((e=>e.id===b.mainDocId));var b;return(0,u.jsxs)("div",{className:(0,s.Z)(t,c.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,u.jsx)("div",{children:(0,u.jsx)(h,{siteTitle:o,versionMetadata:n})}),(0,u.jsx)("div",{className:"margin-top--md",children:(0,u.jsx)(p,{versionLabel:f.label,to:x.path,onClick:()=>d(f.name)})})]})}function x(e){let{className:t}=e;const n=(0,d.E)();return n.banner?(0,u.jsx)(f,{className:t,versionMetadata:n}):null}},7594:(e,t)=>{function n(e){let t,n=[];for(let s of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(s))n.push(parseInt(s,10));else if(t=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,s,a,o]=t;if(s&&o){s=parseInt(s),o=parseInt(o);const e=s<o?1:-1;"-"!==a&&".."!==a&&"\u2025"!==a||(o+=e);for(let t=s;t!==o;t+=e)n.push(t)}}return n}t.default=n,e.exports=n},1151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l,a:()=>i});var s=n(7294);const a={},o=s.createContext(a);function i(e){const t=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:i(e.components),s.createElement(o.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/1a4e3797.5fb5e418.js b/pt-BR/assets/js/1a4e3797.5fb5e418.js deleted file mode 100644 index a7600067f6..0000000000 --- a/pt-BR/assets/js/1a4e3797.5fb5e418.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7920],{2027:(e,t,r)=>{r.r(t),r.d(t,{default:()=>$});var s=r(7294),a=r(2263),n=r(8862),c=r(5742),l=r(9960),o=r(5999);const u=["zero","one","two","few","many","other"];function h(e){return u.filter((t=>e.includes(t)))}const i={locale:"en",pluralForms:h(["one","other"]),select:e=>1===e?"one":"other"};function m(){const{i18n:{currentLocale:e}}=(0,a.Z)();return(0,s.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:h(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),i}}),[e])}function d(){const e=m();return{selectMessage:(t,r)=>function(e,t,r){const s=e.split("|");if(1===s.length)return s[0];s.length>r.pluralForms.length&&console.error(`For locale=${r.locale}, a maximum of ${r.pluralForms.length} plural forms are expected (${r.pluralForms.join(",")}), but the message contains ${s.length}: ${e}`);const a=r.select(t),n=r.pluralForms.indexOf(a);return s[Math.min(n,s.length-1)]}(r,t,e)}}var p=r(1728),g=r(6550),x=r(2389),f=r(8087);const y=function(){const e=(0,x.Z)(),t=(0,g.k6)(),r=(0,g.TH)(),{siteConfig:{baseUrl:s}}=(0,a.Z)(),n=e?new URLSearchParams(r.search):null,c=n?.get("q")||"",l=n?.get("ctx")||"",o=n?.get("version")||"",u=e=>{const t=new URLSearchParams(r.search);return e?t.set("q",e):t.delete("q"),t};return{searchValue:c,searchContext:l&&Array.isArray(f.Kc)&&f.Kc.some((e=>"string"==typeof e?e===l:e.path===l))?l:"",searchVersion:o,updateSearchPath:e=>{const r=u(e);t.replace({search:r.toString()})},updateSearchContext:e=>{const s=new URLSearchParams(r.search);s.set("ctx",e),t.replace({search:s.toString()})},generateSearchPageLink:e=>{const t=u(e);return`${s}search?${t.toString()}`}}};var S=r(22),C=r(8202),j=r(2539),I=r(726),w=r(1073),v=r(311),R=r(3926);const P={searchContextInput:"searchContextInput_mXoe",searchQueryInput:"searchQueryInput_CFBF",searchResultItem:"searchResultItem_U687",searchResultItemPath:"searchResultItemPath_uIbk",searchResultItemSummary:"searchResultItemSummary_oZHr",searchQueryColumn:"searchQueryColumn_q7nx",searchContextColumn:"searchContextColumn_oWAF"};var b=r(51),_=r(5893);function F(){const{siteConfig:{baseUrl:e},i18n:{currentLocale:t}}=(0,a.Z)(),{selectMessage:r}=d(),{searchValue:n,searchContext:l,searchVersion:u,updateSearchPath:h,updateSearchContext:i}=y(),[m,g]=(0,s.useState)(n),[x,j]=(0,s.useState)(),[I,w]=(0,s.useState)(),R=`${e}${u}`,F=(0,s.useMemo)((()=>m?(0,o.I)({id:"theme.SearchPage.existingResultsTitle",message:'Search results for "{query}"',description:"The search page title for non-empty query"},{query:m}):(0,o.I)({id:"theme.SearchPage.emptyResultsTitle",message:"Search the documentation",description:"The search page title for empty query"})),[m]);(0,s.useEffect)((()=>{h(m),x&&(m?x(m,(e=>{w(e)})):w(void 0))}),[m,x]);const $=(0,s.useCallback)((e=>{g(e.target.value)}),[]);return(0,s.useEffect)((()=>{n&&n!==m&&g(n)}),[n]),(0,s.useEffect)((()=>{!async function(){const{wrappedIndexes:e,zhDictionary:t}=!Array.isArray(f.Kc)||l||f.pQ?await(0,S.w)(R,l):{wrappedIndexes:[],zhDictionary:[]};j((()=>(0,C.v)(e,t,100)))}()}),[l,R]),(0,_.jsxs)(s.Fragment,{children:[(0,_.jsxs)(c.Z,{children:[(0,_.jsx)("meta",{property:"robots",content:"noindex, follow"}),(0,_.jsx)("title",{children:F})]}),(0,_.jsxs)("div",{className:"container margin-vert--lg",children:[(0,_.jsx)("h1",{children:F}),(0,_.jsxs)("div",{className:"row",children:[(0,_.jsx)("div",{className:(0,p.Z)("col",{[P.searchQueryColumn]:Array.isArray(f.Kc),"col--9":Array.isArray(f.Kc),"col--12":!Array.isArray(f.Kc)}),children:(0,_.jsx)("input",{type:"search",name:"q",className:P.searchQueryInput,"aria-label":"Search",onChange:$,value:m,autoComplete:"off",autoFocus:!0})}),Array.isArray(f.Kc)?(0,_.jsx)("div",{className:(0,p.Z)("col","col--3","padding-left--none",P.searchContextColumn),children:(0,_.jsxs)("select",{name:"search-context",className:P.searchContextInput,id:"context-selector",value:l,onChange:e=>i(e.target.value),children:[f.pQ&&(0,_.jsx)("option",{value:"",children:(0,o.I)({id:"theme.SearchPage.searchContext.everywhere",message:"everywhere"})}),f.Kc.map((e=>{const{label:r,path:s}=(0,b._)(e,t);return(0,_.jsx)("option",{value:s,children:r},s)}))]})}):null]}),!x&&m&&(0,_.jsx)("div",{children:(0,_.jsx)(v.Z,{})}),I&&(I.length>0?(0,_.jsx)("p",{children:r(I.length,(0,o.I)({id:"theme.SearchPage.documentsFound.plurals",message:"1 document found|{count} documents found",description:'Pluralized label for "{count} documents found". 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)'},{count:I.length}))}):(0,_.jsx)("p",{children:(0,o.I)({id:"theme.SearchPage.noResultsText",message:"No documents were found",description:"The paragraph for empty search result"})})),(0,_.jsx)("section",{children:I&&I.map((e=>(0,_.jsx)(A,{searchResult:e},e.document.i)))})]})]})}function A(e){let{searchResult:{document:t,type:r,page:s,tokens:a,metadata:n}}=e;const c=0===r,o=2===r,u=(c?t.b:s.b).slice(),h=o?t.s:t.t;c||u.push(s.t);let i="";if(f.vc&&a.length>0){const e=new URLSearchParams;for(const t of a)e.append("_highlight",t);i=`?${e.toString()}`}return(0,_.jsxs)("article",{className:P.searchResultItem,children:[(0,_.jsx)("h2",{children:(0,_.jsx)(l.Z,{to:t.u+i+(t.h||""),dangerouslySetInnerHTML:{__html:o?(0,j.C)(h,a):(0,I.o)(h,(0,w.m)(n,"t"),a,100)}})}),u.length>0&&(0,_.jsx)("p",{className:P.searchResultItemPath,children:(0,R.e)(u)}),o&&(0,_.jsx)("p",{className:P.searchResultItemSummary,dangerouslySetInnerHTML:{__html:(0,I.o)(t.t,(0,w.m)(n,"t"),a,100)}})]})}const $=function(){return(0,_.jsx)(n.Z,{children:(0,_.jsx)(F,{})})}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/1a4e3797.b37fdfae.js b/pt-BR/assets/js/1a4e3797.b37fdfae.js new file mode 100644 index 0000000000..3013e31893 --- /dev/null +++ b/pt-BR/assets/js/1a4e3797.b37fdfae.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7920],{8824:(e,t,r)=>{r.d(t,{c:()=>u});var s=r(7294),a=r(2263);const n=["zero","one","two","few","many","other"];function c(e){return n.filter((t=>e.includes(t)))}const l={locale:"en",pluralForms:c(["one","other"]),select:e=>1===e?"one":"other"};function o(){const{i18n:{currentLocale:e}}=(0,a.Z)();return(0,s.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:c(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),l}}),[e])}function u(){const e=o();return{selectMessage:(t,r)=>function(e,t,r){const s=e.split("|");if(1===s.length)return s[0];s.length>r.pluralForms.length&&console.error(`For locale=${r.locale}, a maximum of ${r.pluralForms.length} plural forms are expected (${r.pluralForms.join(",")}), but the message contains ${s.length}: ${e}`);const a=r.select(t),n=r.pluralForms.indexOf(a);return s[Math.min(n,s.length-1)]}(r,t,e)}}},1473:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var s=r(7294),a=r(2263),n=r(8862),c=r(5742),l=r(3692),o=r(5999),u=r(8824),h=r(1728),i=r(6550),m=r(2389),d=r(8087);const p=function(){const e=(0,m.Z)(),t=(0,i.k6)(),r=(0,i.TH)(),{siteConfig:{baseUrl:s}}=(0,a.Z)(),n=e?new URLSearchParams(r.search):null,c=n?.get("q")||"",l=n?.get("ctx")||"",o=n?.get("version")||"",u=e=>{const t=new URLSearchParams(r.search);return e?t.set("q",e):t.delete("q"),t};return{searchValue:c,searchContext:l&&Array.isArray(d.Kc)&&d.Kc.some((e=>"string"==typeof e?e===l:e.path===l))?l:"",searchVersion:o,updateSearchPath:e=>{const r=u(e);t.replace({search:r.toString()})},updateSearchContext:e=>{const s=new URLSearchParams(r.search);s.set("ctx",e),t.replace({search:s.toString()})},generateSearchPageLink:e=>{const t=u(e);return`${s}search?${t.toString()}`}}};var g=r(22),x=r(8202),f=r(2539),y=r(726),S=r(1073),C=r(311),j=r(3926);const I={searchContextInput:"searchContextInput_mXoe",searchQueryInput:"searchQueryInput_CFBF",searchResultItem:"searchResultItem_U687",searchResultItemPath:"searchResultItemPath_uIbk",searchResultItemSummary:"searchResultItemSummary_oZHr",searchQueryColumn:"searchQueryColumn_q7nx",searchContextColumn:"searchContextColumn_oWAF"};var w=r(51),v=r(5893);function R(){const{siteConfig:{baseUrl:e},i18n:{currentLocale:t}}=(0,a.Z)(),{selectMessage:r}=(0,u.c)(),{searchValue:n,searchContext:l,searchVersion:i,updateSearchPath:m,updateSearchContext:f}=p(),[y,S]=(0,s.useState)(n),[j,R]=(0,s.useState)(),[b,_]=(0,s.useState)(),F=`${e}${i}`,A=(0,s.useMemo)((()=>y?(0,o.I)({id:"theme.SearchPage.existingResultsTitle",message:'Search results for "{query}"',description:"The search page title for non-empty query"},{query:y}):(0,o.I)({id:"theme.SearchPage.emptyResultsTitle",message:"Search the documentation",description:"The search page title for empty query"})),[y]);(0,s.useEffect)((()=>{m(y),j&&(y?j(y,(e=>{_(e)})):_(void 0))}),[y,j]);const $=(0,s.useCallback)((e=>{S(e.target.value)}),[]);return(0,s.useEffect)((()=>{n&&n!==y&&S(n)}),[n]),(0,s.useEffect)((()=>{!async function(){const{wrappedIndexes:e,zhDictionary:t}=!Array.isArray(d.Kc)||l||d.pQ?await(0,g.w)(F,l):{wrappedIndexes:[],zhDictionary:[]};R((()=>(0,x.v)(e,t,100)))}()}),[l,F]),(0,v.jsxs)(s.Fragment,{children:[(0,v.jsxs)(c.Z,{children:[(0,v.jsx)("meta",{property:"robots",content:"noindex, follow"}),(0,v.jsx)("title",{children:A})]}),(0,v.jsxs)("div",{className:"container margin-vert--lg",children:[(0,v.jsx)("h1",{children:A}),(0,v.jsxs)("div",{className:"row",children:[(0,v.jsx)("div",{className:(0,h.Z)("col",{[I.searchQueryColumn]:Array.isArray(d.Kc),"col--9":Array.isArray(d.Kc),"col--12":!Array.isArray(d.Kc)}),children:(0,v.jsx)("input",{type:"search",name:"q",className:I.searchQueryInput,"aria-label":"Search",onChange:$,value:y,autoComplete:"off",autoFocus:!0})}),Array.isArray(d.Kc)?(0,v.jsx)("div",{className:(0,h.Z)("col","col--3","padding-left--none",I.searchContextColumn),children:(0,v.jsxs)("select",{name:"search-context",className:I.searchContextInput,id:"context-selector",value:l,onChange:e=>f(e.target.value),children:[d.pQ&&(0,v.jsx)("option",{value:"",children:(0,o.I)({id:"theme.SearchPage.searchContext.everywhere",message:"everywhere"})}),d.Kc.map((e=>{const{label:r,path:s}=(0,w._)(e,t);return(0,v.jsx)("option",{value:s,children:r},s)}))]})}):null]}),!j&&y&&(0,v.jsx)("div",{children:(0,v.jsx)(C.Z,{})}),b&&(b.length>0?(0,v.jsx)("p",{children:r(b.length,(0,o.I)({id:"theme.SearchPage.documentsFound.plurals",message:"1 document found|{count} documents found",description:'Pluralized label for "{count} documents found". 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)'},{count:b.length}))}):(0,v.jsx)("p",{children:(0,o.I)({id:"theme.SearchPage.noResultsText",message:"No documents were found",description:"The paragraph for empty search result"})})),(0,v.jsx)("section",{children:b&&b.map((e=>(0,v.jsx)(P,{searchResult:e},e.document.i)))})]})]})}function P(e){let{searchResult:{document:t,type:r,page:s,tokens:a,metadata:n}}=e;const c=0===r,o=2===r,u=(c?t.b:s.b).slice(),h=o?t.s:t.t;c||u.push(s.t);let i="";if(d.vc&&a.length>0){const e=new URLSearchParams;for(const t of a)e.append("_highlight",t);i=`?${e.toString()}`}return(0,v.jsxs)("article",{className:I.searchResultItem,children:[(0,v.jsx)("h2",{children:(0,v.jsx)(l.Z,{to:t.u+i+(t.h||""),dangerouslySetInnerHTML:{__html:o?(0,f.C)(h,a):(0,y.o)(h,(0,S.m)(n,"t"),a,100)}})}),u.length>0&&(0,v.jsx)("p",{className:I.searchResultItemPath,children:(0,j.e)(u)}),o&&(0,v.jsx)("p",{className:I.searchResultItemSummary,dangerouslySetInnerHTML:{__html:(0,y.o)(t.t,(0,S.m)(n,"t"),a,100)}})]})}const b=function(){return(0,v.jsx)(n.Z,{children:(0,v.jsx)(R,{})})}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/1f08bd40.dd243496.js b/pt-BR/assets/js/1f08bd40.dd243496.js deleted file mode 100644 index 1941f26a49..0000000000 --- a/pt-BR/assets/js/1f08bd40.dd243496.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[312],{5467:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>l,default:()=>m,frontMatter:()=>u,metadata:()=>i,toc:()=>d});var a=n(5893),r=n(1151),s=n(4866),o=n(5162);const u={},l="Row Data Packet",i={id:"examples/typescript/row-data/row-data-packet",title:"Row Data Packet",description:"",source:"@site/docs/examples/typescript/row-data/00-row-data-packet.mdx",sourceDirName:"examples/typescript/row-data",slug:"/examples/typescript/row-data/row-data-packet",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-data-packet",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/row-data/00-row-data-packet.mdx",tags:[],version:"current",sidebarPosition:0,frontMatter:{},sidebar:"examples",previous:{title:"Row Data Packet",permalink:"/node-mysql2/pt-BR/docs/category/row-data-packet"},next:{title:"Row Data Packet (Row as Array)",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,r.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h1,{id:"row-data-packet",children:"Row Data Packet"}),"\n",(0,a.jsx)(s.Z,{children:(0,a.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n id: number;\n name: string;\n}\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Getting users */\n const [users] = await conn.query<User[]>(\n 'SELECT * FROM `users` ORDER BY `name` ASC;'\n );\n\n users.forEach((user) => {\n console.log('-----------');\n console.log('id: ', user.id);\n console.log('name:', user.name);\n });\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * -----------\n * id: 4\n * name: Gween\n * -----------\n * id: 2\n * name: John\n * -----------\n * id: 1\n * name: Josh\n * -----------\n * id: 3\n * name: Marie\n */\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,r.a)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var a=n(512);const r={tabItem:"tabItem_Ymn6"};var s=n(5893);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,a.Z)(r.tabItem,o),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>k});var a=n(7294),r=n(512),s=n(2466),o=n(6550),u=n(469),l=n(1980),i=n(7392),c=n(12);function d(e){return a.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,a.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,a.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:a,default:r}}=e;return{value:t,label:n,attributes:a,default:r}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const r=(0,o.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,l._X)(s),(0,a.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(r.location.search);t.set(s,e),r.replace({...r.location,search:t.toString()})}),[s,r])]}function h(e){const{defaultValue:t,queryString:n=!1,groupId:r}=e,s=p(e),[o,l]=(0,a.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const a=n.find((e=>e.default))??n[0];if(!a)throw new Error("Unexpected error: 0 tabValues");return a.value}({defaultValue:t,tabValues:s}))),[i,d]=f({queryString:n,groupId:r}),[h,b]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[r,s]=(0,c.Nk)(n);return[r,(0,a.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:r}),w=(()=>{const e=i??h;return m({value:e,tabValues:s})?e:null})();(0,u.Z)((()=>{w&&l(w)}),[w]);return{selectedValue:o,selectValue:(0,a.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=n(2389);const w={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var y=n(5893);function v(e){let{className:t,block:n,selectedValue:a,selectValue:o,tabValues:u}=e;const l=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=l.indexOf(t),r=u[n].value;r!==a&&(i(t),o(r))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=l.indexOf(e.currentTarget)+1;t=l[n]??l[0];break}case"ArrowLeft":{const n=l.indexOf(e.currentTarget)-1;t=l[n]??l[l.length-1];break}}t?.focus()};return(0,y.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":n},t),children:u.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,y.jsx)("li",{role:"tab",tabIndex:a===t?0:-1,"aria-selected":a===t,ref:e=>l.push(e),onKeyDown:d,onClick:c,...s,className:(0,r.Z)("tabs__item",w.tabItem,s?.className,{"tabs__item--active":a===t}),children:n??t},t)}))})}function g(e){let{lazy:t,children:n,selectedValue:r}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===r));return e?(0,a.cloneElement)(e,{className:"margin-top--md"}):null}return(0,y.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,a.cloneElement)(e,{key:t,hidden:e.props.value!==r})))})}function x(e){const t=h(e);return(0,y.jsxs)("div",{className:(0,r.Z)("tabs-container",w.tabList),children:[(0,y.jsx)(v,{...e,...t}),(0,y.jsx)(g,{...e,...t})]})}function k(e){const t=(0,b.Z)();return(0,y.jsx)(x,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>u,a:()=>o});var a=n(7294);const r={},s=a.createContext(r);function o(e){const t=a.useContext(s);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function u(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),a.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/22161331.0db19980.js b/pt-BR/assets/js/22161331.0db19980.js new file mode 100644 index 0000000000..ed5caddd68 --- /dev/null +++ b/pt-BR/assets/js/22161331.0db19980.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[556],{7165:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>p,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),s=t(1151),o=t(4866),a=t(5162);const l={},u="MySQL Proxy",c={id:"examples/tests/mysql-proxy",title:"MySQL Proxy",description:"",source:"@site/docs/examples/tests/mysql-proxy.mdx",sourceDirName:"examples/tests",slug:"/examples/tests/mysql-proxy",permalink:"/node-mysql2/pt-BR/docs/examples/tests/mysql-proxy",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/tests/mysql-proxy.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"await \u2014 co",permalink:"/node-mysql2/pt-BR/docs/examples/promise-wrapper/co-await"},next:{title:"Pool",permalink:"/node-mysql2/pt-BR/docs/examples/tests/pool"}},i={},d=[];function m(e){const n={code:"code",h1:"h1",pre:"pre",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"mysql-proxy",children:"MySQL Proxy"}),"\n",(0,r.jsx)(o.Z,{children:(0,r.jsx)(a.Z,{value:"index.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst ClientFlags = require('mysql2/lib/constants/client.js');\n\nconst server = mysql.createServer();\nserver.listen(3307);\n\nserver.on('connection', (conn) => {\n console.log('connection');\n\n conn.serverHandshake({\n protocolVersion: 10,\n serverVersion: 'node.js rocks',\n connectionId: 1234,\n statusFlags: 2,\n characterSet: 8,\n capabilityFlags: 0xffffff ^ ClientFlags.COMPRESS,\n });\n\n conn.on('field_list', (table, fields) => {\n console.log('field list:', table, fields);\n conn.writeEof();\n });\n\n const remote = mysql.createConnection({\n user: 'root',\n database: 'dbname',\n host: 'server.example.com',\n password: 'secret',\n });\n\n conn.on('query', (sql) => {\n console.log(`proxying query: ${sql}`);\n remote.query(sql, function (err) {\n // overloaded args, either (err, result :object)\n // or (err, rows :array, columns :array)\n if (Array.isArray(arguments[1])) {\n // response to a 'select', 'show' or similar\n const rows = arguments[1],\n columns = arguments[2];\n console.log('rows', rows);\n console.log('columns', columns);\n conn.writeTextResult(rows, columns);\n } else {\n // response to an 'insert', 'update' or 'delete'\n const result = arguments[1];\n console.log('result', result);\n conn.writeOk(result);\n }\n });\n });\n\n conn.on('end', remote.end.bind(remote));\n});\n"})})})})]})}function p(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>a});t(7294);var r=t(512);const s={tabItem:"tabItem_Ymn6"};var o=t(5893);function a(e){let{children:n,hidden:t,className:a}=e;return(0,o.jsx)("div",{role:"tabpanel",className:(0,r.Z)(s.tabItem,a),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>q});var r=t(7294),s=t(512),o=t(2466),a=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:s}}=e;return{value:n,label:t,attributes:r,default:s}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const s=(0,a.k6)(),o=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(o),(0,r.useCallback)((e=>{if(!o)return;const n=new URLSearchParams(s.location.search);n.set(o,e),s.replace({...s.location,search:n.toString()})}),[o,s])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:s}=e,o=m(e),[a,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:o}))),[c,d]=f({queryString:t,groupId:s}),[b,h]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[s,o]=(0,i.Nk)(t);return[s,(0,r.useCallback)((e=>{t&&o.set(e)}),[t,o])]}({groupId:s}),y=(()=>{const e=c??b;return p({value:e,tabValues:o})?e:null})();(0,l.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:a,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:o}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,o]),tabValues:o}}var h=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=t(5893);function x(e){let{className:n,block:t,selectedValue:r,selectValue:a,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,o.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),s=l[t].value;s!==r&&(c(n),a(s))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:o}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...o,className:(0,s.Z)("tabs__item",y.tabItem,o?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function g(e){let{lazy:n,children:t,selectedValue:s}=e;const o=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=o.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:o.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==s})))})}function w(e){const n=b(e);return(0,v.jsxs)("div",{className:(0,s.Z)("tabs-container",y.tabList),children:[(0,v.jsx)(x,{...e,...n}),(0,v.jsx)(g,{...e,...n})]})}function q(e){const n=(0,h.Z)();return(0,v.jsx)(w,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>a});var r=t(7294);const s={},o=r.createContext(s);function a(e){const n=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/2bc14e22.ccc314be.js b/pt-BR/assets/js/2bc14e22.2670f877.js similarity index 63% rename from pt-BR/assets/js/2bc14e22.ccc314be.js rename to pt-BR/assets/js/2bc14e22.2670f877.js index c29a5dcd9a..5523273667 100644 --- a/pt-BR/assets/js/2bc14e22.ccc314be.js +++ b/pt-BR/assets/js/2bc14e22.2670f877.js @@ -1,2 +1,2 @@ -/*! For license information please see 2bc14e22.ccc314be.js.LICENSE.txt */ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2839],{4760:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>x,frontMatter:()=>a,metadata:()=>i,toc:()=>h});var t=s(5893),r=s(1151),l=s(8609),c=s(3901);const a={},o="Using MySQL2 with TypeScript",i={id:"documentation/typescript-examples",title:"Using MySQL2 with TypeScript",description:"Installation",source:"@site/docs/documentation/typescript-examples.mdx",sourceDirName:"documentation",slug:"/documentation/typescript-examples",permalink:"/node-mysql2/pt-BR/docs/documentation/typescript-examples",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/documentation/typescript-examples.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Promise Wrappers",permalink:"/node-mysql2/pt-BR/docs/documentation/promise-wrapper"},next:{title:"API e Configura\xe7\xe3o",permalink:"/node-mysql2/pt-BR/docs/api-and-configurations"}},d={},h=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"Connection",id:"connection",level:3},{value:"Pool Connection",id:"pool-connection",level:3},{value:"Query and Execute",id:"query-and-execute",level:3},{value:"A simple query",id:"a-simple-query",level:4},{value:"Type Specification",id:"type-specification",level:2},{value:"RowDataPacket[]",id:"rowdatapacket",level:3},{value:"RowDataPacket[][]",id:"rowdatapacket-1",level:3},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"ResultSetHeader[]",id:"resultsetheader-1",level:3},{value:"ProcedureCallPacket",id:"procedurecallpacket",level:3},{value:"OkPacket",id:"okpacket",level:3},{value:"Examples",id:"examples",level:2}];function u(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",br:"br",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"using-mysql2-with-typescript",children:"Using MySQL2 with TypeScript"}),"\n",(0,t.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm install --save mysql2\nnpm install --save-dev @types/node\n"})}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"@types/node"})," ensure the proper interaction between ",(0,t.jsx)(n.strong,{children:"TypeScript"})," and the ",(0,t.jsx)(n.strong,{children:"Node.js"})," modules used by ",(0,t.jsx)(n.strong,{children:"MySQL2"})," (",(0,t.jsx)(n.em,{children:"net"}),", ",(0,t.jsx)(n.em,{children:"events"}),", ",(0,t.jsx)(n.em,{children:"stream"}),", ",(0,t.jsx)(n.em,{children:"tls"}),", etc.)."]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:["Requires ",(0,t.jsx)(n.strong,{children:"TypeScript"})," ",(0,t.jsx)(n.code,{children:">=4.5.2"}),"."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsxs)(n.p,{children:["You can import ",(0,t.jsx)(n.strong,{children:"MySQL2"})," in two ways:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["By setting the ",(0,t.jsx)(n.code,{children:"esModuleInterop"})," option to ",(0,t.jsx)(n.code,{children:"true"})," in ",(0,t.jsx)(n.code,{children:"tsconfig.json"})]}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql from 'mysql2';\nimport mysql from 'mysql2/promise';\n"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["By setting the ",(0,t.jsx)(n.code,{children:"esModuleInterop"})," option to ",(0,t.jsx)(n.code,{children:"false"})," in ",(0,t.jsx)(n.code,{children:"tsconfig.json"})]}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import * as mysql from 'mysql2';\nimport * as mysql from 'mysql2/promise';\n"})}),"\n",(0,t.jsx)(n.h3,{id:"connection",children:"Connection"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ConnectionOptions } from 'mysql2';\n\nconst access: ConnectionOptions = {\n user: 'test',\n database: 'test',\n};\n\nconst conn = mysql.createConnection(access);\n"})}),"\n",(0,t.jsx)(n.h3,{id:"pool-connection",children:"Pool Connection"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { PoolOptions } from 'mysql2';\n\nconst access: PoolOptions = {\n user: 'test',\n database: 'test',\n};\n\nconst conn = mysql.createPool(access);\n"})}),"\n",(0,t.jsx)(n.h3,{id:"query-and-execute",children:"Query and Execute"}),"\n",(0,t.jsx)(n.h4,{id:"a-simple-query",children:"A simple query"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"conn.query('SELECT 1 + 1 AS `test`;', (_err, rows) => {\n /**\n * @rows: [ { test: 2 } ]\n */\n});\n\nconn.execute('SELECT 1 + 1 AS `test`;', (_err, rows) => {\n /**\n * @rows: [ { test: 2 } ]\n */\n});\n"})}),"\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"rows"})," output will be these possible types:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"RowDataPacket[]"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"RowDataPacket[][]"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"ResultSetHeader"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"ResultSetHeader[]"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"ProcedureCallPacket"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"In this example, you need to manually check the output types"}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"type-specification",children:"Type Specification"}),"\n",(0,t.jsx)(n.h3,{id:"rowdatapacket",children:"RowDataPacket[]"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(n.p,{children:"An array with the returned rows, for example:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { RowDataPacket } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\n// SELECT\nconn.query<RowDataPacket[]>('SELECT 1 + 1 AS `test`;', (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ { test: 2 } ]\n */\n});\n\n// SHOW\nconn.query<RowDataPacket[]>('SHOW TABLES FROM `test`;', (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ { Tables_in_test: 'test' } ]\n */\n});\n"})}),"\n",(0,t.jsxs)(n.p,{children:["Using ",(0,t.jsx)(n.code,{children:"rowsAsArray"})," option as ",(0,t.jsx)(n.code,{children:"true"}),":"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { RowDataPacket } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n rowsAsArray: true,\n});\n\n// SELECT\nconn.query<RowDataPacket[]>(\n 'SELECT 1 + 1 AS test, 2 + 2 AS test;',\n (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ [ 2, 4 ] ]\n */\n }\n);\n\n// SHOW\nconn.query<RowDataPacket[]>('SHOW TABLES FROM `test`;', (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ [ 'test' ] ]\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"rowdatapacket-1",children:"RowDataPacket[][]"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsxs)(n.p,{children:["Using ",(0,t.jsx)(n.code,{children:"multipleStatements"})," option as ",(0,t.jsx)(n.code,{children:"true"})," with multiple queries:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { RowDataPacket } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n multipleStatements: true,\n});\n\nconst sql = `\n SELECT 1 + 1 AS test;\n SELECT 2 + 2 AS test;\n`;\n\nconn.query<RowDataPacket[][]>(sql, (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ [ { test: 2 } ], [ { test: 4 } ] ]\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(l.A,{records:[{version:"3.5.1",changes:[(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.strong,{children:"OkPacket"})," is deprecated and might be removed in the future major release.",(0,t.jsx)(n.br,{}),"Please use ",(0,t.jsx)(n.strong,{children:"ResultSetHeader"})," instead."]}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.strong,{children:"changedRows"})," option is deprecated and might be removed in the future major release.",(0,t.jsx)(n.br,{}),"Please use ",(0,t.jsx)(n.strong,{children:"affectedRows"})," instead."]})]}]}),"\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.code,{children:"INSERT"}),", ",(0,t.jsx)(n.code,{children:"UPDATE"}),", ",(0,t.jsx)(n.code,{children:"DELETE"}),", ",(0,t.jsx)(n.code,{children:"TRUNCATE"}),", etc.:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ResultSetHeader } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\nconst sql = `\n SET @1 = 1;\n`;\n\nconn.query<ResultSetHeader>(sql, (_err, result) => {\n console.log(result);\n /**\n * @result: ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 2,\n warningStatus: 0,\n changedRows: 0\n }\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"resultsetheader-1",children:"ResultSetHeader[]"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(l.A,{records:[{version:"3.5.1",changes:[(0,t.jsxs)(t.Fragment,{children:["Introduce ",(0,t.jsx)(n.strong,{children:"ResultSetHeader[]"})]})]}]}),"\n",(0,t.jsxs)(n.p,{children:["For multiples ",(0,t.jsx)(n.code,{children:"INSERT"}),", ",(0,t.jsx)(n.code,{children:"UPDATE"}),", ",(0,t.jsx)(n.code,{children:"DELETE"}),", ",(0,t.jsx)(n.code,{children:"TRUNCATE"}),", etc. when using ",(0,t.jsx)(n.code,{children:"multipleStatements"})," as ",(0,t.jsx)(n.code,{children:"true"}),":"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ResultSetHeader } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n multipleStatements: true,\n});\n\nconst sql = `\n SET @1 = 1;\n SET @2 = 2;\n`;\n\nconn.query<ResultSetHeader[]>(sql, (_err, results) => {\n console.log(results);\n /**\n * @results: [\n ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 10,\n warningStatus: 0,\n changedRows: 0\n },\n ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 2,\n warningStatus: 0,\n changedRows: 0\n }\n ]\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"procedurecallpacket",children:"ProcedureCallPacket"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(l.A,{records:[{version:"3.5.1",changes:[(0,t.jsxs)(t.Fragment,{children:["Introduce ",(0,t.jsx)(n.strong,{children:"ProcedureCallPacket"})]})]}]}),"\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["By performing a ",(0,t.jsx)(n.strong,{children:"Call Procedure"})," using ",(0,t.jsx)(n.code,{children:"INSERT"}),", ",(0,t.jsx)(n.code,{children:"UPDATE"}),", etc., the return will be a ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket<ResultSetHeader>"})," (even if you perform multiples queries and set ",(0,t.jsx)(n.code,{children:"multipleStatements"})," to ",(0,t.jsx)(n.code,{children:"true"}),"):"]})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ProcedureCallPacket, ResultSetHeader } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\n/** ResultSetHeader */\nconn.query('DROP PROCEDURE IF EXISTS myProcedure');\n\n/** ResultSetHeader */\nconn.query(`\n CREATE PROCEDURE myProcedure()\n BEGIN\n SET @1 = 1;\n SET @2 = 2;\n END\n `);\n\n/** ProcedureCallPacket */\nconst sql = 'CALL myProcedure()';\n\nconn.query<ProcedureCallPacket<ResultSetHeader>>(sql, (_err, result) => {\n console.log(result);\n /**\n * @result: ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 2,\n warningStatus: 0,\n changedRows: 0\n }\n */\n});\n"})}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.code,{children:"CREATE PROCEDURE"})," and ",(0,t.jsx)(n.code,{children:"DROP PROCEDURE"}),", these returns will be the ",(0,t.jsx)(n.em,{children:"default"})," ",(0,t.jsx)(n.code,{children:"ResultSetHeader"}),"."]}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["By using ",(0,t.jsx)(n.code,{children:"SELECT"})," and ",(0,t.jsx)(n.code,{children:"SHOW"})," queries in a ",(0,t.jsx)(n.strong,{children:"Procedure Call"}),", it groups the results as:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"/** ProcedureCallPacket<RowDataPacket[]> */\n[RowDataPacket[], ResultSetHeader]\n"})}),"\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket<RowDataPacket[]>"}),", please see the following examples."]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"okpacket",children:"OkPacket"}),"\n",(0,t.jsx)(c.X,{level:0,message:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.strong,{children:"OkPacket"})," is deprecated and might be removed in the future major release.",(0,t.jsx)(n.br,{}),"Please use ",(0,t.jsx)(n.strong,{children:"ResultSetHeader"})," instead."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"examples",children:"Examples"}),"\n",(0,t.jsxs)(n.p,{children:["You can also check some code examples using ",(0,t.jsx)(n.strong,{children:"MySQL2"})," and ",(0,t.jsx)(n.strong,{children:"TypeScript"})," to understand advanced concepts:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/row-data-packet",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/row-as-array",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," and ",(0,t.jsx)(n.code,{children:"rowAsArray"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/multi-statements",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," and ",(0,t.jsx)(n.code,{children:"multipleStatements"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/row-as-array-multi-statements",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"}),", ",(0,t.jsx)(n.code,{children:"rowAsArray"})," and ",(0,t.jsx)(n.code,{children:"multipleStatements"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/procedure-call/procedure-call-packet",children:["Checking for ",(0,t.jsx)(n.code,{children:"ResultSetHeader"}),", extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," from ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/procedure-call/row-as-array",children:["Checking for ",(0,t.jsx)(n.code,{children:"ResultSetHeader"}),", extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," and ",(0,t.jsx)(n.code,{children:"rowAsArray"})," from ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/basic-custom-class",children:["Creating a basic custom ",(0,t.jsx)(n.strong,{children:"MySQL2"})," ",(0,t.jsx)(n.strong,{children:"Class"})]})}),"\n"]})]})}function x(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}},4673:(e,n,s)=>{s.d(n,{Z:()=>p});var t=s(7294),r=s(512),l=s(2389),c=s(6043);const a={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var o=s(5893);function i(e){return!!e&&("SUMMARY"===e.tagName||i(e.parentElement))}function d(e,n){return!!e&&(e===n||d(e.parentElement,n))}function h(e){let{summary:n,children:s,...h}=e;const u=(0,l.Z)(),x=(0,t.useRef)(null),{collapsed:p,setCollapsed:j}=(0,c.u)({initialState:!h.open}),[m,y]=(0,t.useState)(h.open),g=t.isValidElement(n)?n:(0,o.jsx)("summary",{children:n??"Details"});return(0,o.jsxs)("details",{...h,ref:x,open:m,"data-collapsed":p,className:(0,r.Z)(a.details,u&&a.isBrowser,h.className),onMouseDown:e=>{i(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const n=e.target;i(n)&&d(n,x.current)&&(e.preventDefault(),p?(j(!1),y(!0)):j(!0))},children:[g,(0,o.jsx)(c.z,{lazy:!1,collapsed:p,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{j(e),y(!e)},children:(0,o.jsx)("div",{className:a.collapsibleContent,children:s})})]})}const u={details:"details_b_Ee"},x="alert alert--info";function p(e){let{...n}=e;return(0,o.jsx)(h,{...n,className:(0,r.Z)(x,u.details,n.className)})}},8609:(e,n,s)=>{s.d(n,{A:()=>c});var t=s(4673);const r=(0,s(4297).Z)("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]);var l=s(5893);const c=e=>{let{records:n,open:s}=e;return(0,l.jsx)(t.Z,{open:s,summary:(0,l.jsxs)("summary",{children:[(0,l.jsx)(r,{})," History"]}),className:"history",children:(0,l.jsxs)("table",{children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{children:"Version"}),(0,l.jsx)("th",{children:"Changes"})]})}),(0,l.jsx)("tbody",{children:n.map(((e,n)=>(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:(0,l.jsxs)("strong",{children:["v",e.version.replace(/[^0-9.]/g,"")]})}),(0,l.jsx)("td",{children:(0,l.jsx)("div",{className:"changes",children:e.changes.map(((e,n)=>(0,l.jsx)("section",{children:e},`change:${n}`)))})})]},`record:${n}`)))})]})})}},3901:(e,n,s)=>{s.d(n,{X:()=>u});var t=s(9960),r=s(4297);const l=(0,r.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),c=(0,r.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),a=(0,r.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),o=(0,r.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),i=(0,r.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),d=(0,r.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var h=s(5893);const u=e=>{let{level:n,message:s}=e;const r={0:{title:"Deprecated",icon:(0,h.jsx)(l,{})},1:{title:"Experimental",icon:(0,h.jsx)(c,{})},1.1:{title:"Early Development",icon:(0,h.jsx)(a,{})},1.2:{title:"Release Candidate",icon:(0,h.jsx)(o,{})},2:{title:"Stable",icon:(0,h.jsx)(i,{})},3:{title:"Legacy",icon:(0,h.jsx)(d,{})}};return(0,h.jsxs)("section",{className:"stability","data-level":n,children:[(0,h.jsx)(t.Z,{to:"/docs/stability-badges",children:(0,h.jsxs)("header",{children:[(0,h.jsx)("strong",{children:n}),(0,h.jsx)("span",{children:r[n].title}),r[n].icon]})}),s?(0,h.jsx)("p",{children:s}):null]})}},4297:(e,n,s)=>{s.d(n,{Z:()=>l});var t=s(7294),r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const l=(e,n)=>{const s=(0,t.forwardRef)((({color:s="currentColor",size:l=24,strokeWidth:c=2,absoluteStrokeWidth:a,className:o="",children:i,...d},h)=>{return(0,t.createElement)("svg",{ref:h,...r,width:l,height:l,stroke:s,strokeWidth:a?24*Number(c)/Number(l):c,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,o].join(" "),...d},[...n.map((([e,n])=>(0,t.createElement)(e,n))),...Array.isArray(i)?i:[i]]);var u}));return s.displayName=`${e}`,s}},1151:(e,n,s)=>{s.d(n,{Z:()=>a,a:()=>c});var t=s(7294);const r={},l=t.createContext(r);function c(e){const n=t.useContext(l);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),t.createElement(l.Provider,{value:n},e.children)}}}]); \ No newline at end of file +/*! For license information please see 2bc14e22.2670f877.js.LICENSE.txt */ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2839],{4760:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>x,frontMatter:()=>a,metadata:()=>i,toc:()=>h});var t=s(5893),r=s(1151),l=s(8609),c=s(3901);const a={},o="Using MySQL2 with TypeScript",i={id:"documentation/typescript-examples",title:"Using MySQL2 with TypeScript",description:"Installation",source:"@site/docs/documentation/typescript-examples.mdx",sourceDirName:"documentation",slug:"/documentation/typescript-examples",permalink:"/node-mysql2/pt-BR/docs/documentation/typescript-examples",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/documentation/typescript-examples.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Promise Wrappers",permalink:"/node-mysql2/pt-BR/docs/documentation/promise-wrapper"},next:{title:"API e Configura\xe7\xe3o",permalink:"/node-mysql2/pt-BR/docs/api-and-configurations"}},d={},h=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"Connection",id:"connection",level:3},{value:"Pool Connection",id:"pool-connection",level:3},{value:"Query and Execute",id:"query-and-execute",level:3},{value:"A simple query",id:"a-simple-query",level:4},{value:"Type Specification",id:"type-specification",level:2},{value:"RowDataPacket[]",id:"rowdatapacket",level:3},{value:"RowDataPacket[][]",id:"rowdatapacket-1",level:3},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"ResultSetHeader[]",id:"resultsetheader-1",level:3},{value:"ProcedureCallPacket",id:"procedurecallpacket",level:3},{value:"OkPacket",id:"okpacket",level:3},{value:"Examples",id:"examples",level:2}];function u(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",br:"br",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"using-mysql2-with-typescript",children:"Using MySQL2 with TypeScript"}),"\n",(0,t.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm install --save mysql2\nnpm install --save-dev @types/node\n"})}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"@types/node"})," ensure the proper interaction between ",(0,t.jsx)(n.strong,{children:"TypeScript"})," and the ",(0,t.jsx)(n.strong,{children:"Node.js"})," modules used by ",(0,t.jsx)(n.strong,{children:"MySQL2"})," (",(0,t.jsx)(n.em,{children:"net"}),", ",(0,t.jsx)(n.em,{children:"events"}),", ",(0,t.jsx)(n.em,{children:"stream"}),", ",(0,t.jsx)(n.em,{children:"tls"}),", etc.)."]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:["Requires ",(0,t.jsx)(n.strong,{children:"TypeScript"})," ",(0,t.jsx)(n.code,{children:">=4.5.2"}),"."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsxs)(n.p,{children:["You can import ",(0,t.jsx)(n.strong,{children:"MySQL2"})," in two ways:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["By setting the ",(0,t.jsx)(n.code,{children:"esModuleInterop"})," option to ",(0,t.jsx)(n.code,{children:"true"})," in ",(0,t.jsx)(n.code,{children:"tsconfig.json"})]}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql from 'mysql2';\nimport mysql from 'mysql2/promise';\n"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["By setting the ",(0,t.jsx)(n.code,{children:"esModuleInterop"})," option to ",(0,t.jsx)(n.code,{children:"false"})," in ",(0,t.jsx)(n.code,{children:"tsconfig.json"})]}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import * as mysql from 'mysql2';\nimport * as mysql from 'mysql2/promise';\n"})}),"\n",(0,t.jsx)(n.h3,{id:"connection",children:"Connection"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ConnectionOptions } from 'mysql2';\n\nconst access: ConnectionOptions = {\n user: 'test',\n database: 'test',\n};\n\nconst conn = mysql.createConnection(access);\n"})}),"\n",(0,t.jsx)(n.h3,{id:"pool-connection",children:"Pool Connection"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { PoolOptions } from 'mysql2';\n\nconst access: PoolOptions = {\n user: 'test',\n database: 'test',\n};\n\nconst conn = mysql.createPool(access);\n"})}),"\n",(0,t.jsx)(n.h3,{id:"query-and-execute",children:"Query and Execute"}),"\n",(0,t.jsx)(n.h4,{id:"a-simple-query",children:"A simple query"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"conn.query('SELECT 1 + 1 AS `test`;', (_err, rows) => {\n /**\n * @rows: [ { test: 2 } ]\n */\n});\n\nconn.execute('SELECT 1 + 1 AS `test`;', (_err, rows) => {\n /**\n * @rows: [ { test: 2 } ]\n */\n});\n"})}),"\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"rows"})," output will be these possible types:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"RowDataPacket[]"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"RowDataPacket[][]"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"ResultSetHeader"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"ResultSetHeader[]"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"ProcedureCallPacket"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"In this example, you need to manually check the output types"}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"type-specification",children:"Type Specification"}),"\n",(0,t.jsx)(n.h3,{id:"rowdatapacket",children:"RowDataPacket[]"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(n.p,{children:"An array with the returned rows, for example:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { RowDataPacket } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\n// SELECT\nconn.query<RowDataPacket[]>('SELECT 1 + 1 AS `test`;', (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ { test: 2 } ]\n */\n});\n\n// SHOW\nconn.query<RowDataPacket[]>('SHOW TABLES FROM `test`;', (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ { Tables_in_test: 'test' } ]\n */\n});\n"})}),"\n",(0,t.jsxs)(n.p,{children:["Using ",(0,t.jsx)(n.code,{children:"rowsAsArray"})," option as ",(0,t.jsx)(n.code,{children:"true"}),":"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { RowDataPacket } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n rowsAsArray: true,\n});\n\n// SELECT\nconn.query<RowDataPacket[]>(\n 'SELECT 1 + 1 AS test, 2 + 2 AS test;',\n (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ [ 2, 4 ] ]\n */\n }\n);\n\n// SHOW\nconn.query<RowDataPacket[]>('SHOW TABLES FROM `test`;', (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ [ 'test' ] ]\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"rowdatapacket-1",children:"RowDataPacket[][]"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsxs)(n.p,{children:["Using ",(0,t.jsx)(n.code,{children:"multipleStatements"})," option as ",(0,t.jsx)(n.code,{children:"true"})," with multiple queries:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { RowDataPacket } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n multipleStatements: true,\n});\n\nconst sql = `\n SELECT 1 + 1 AS test;\n SELECT 2 + 2 AS test;\n`;\n\nconn.query<RowDataPacket[][]>(sql, (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ [ { test: 2 } ], [ { test: 4 } ] ]\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(l.A,{records:[{version:"3.5.1",changes:[(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.strong,{children:"OkPacket"})," is deprecated and might be removed in the future major release.",(0,t.jsx)(n.br,{}),"Please use ",(0,t.jsx)(n.strong,{children:"ResultSetHeader"})," instead."]}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.strong,{children:"changedRows"})," option is deprecated and might be removed in the future major release.",(0,t.jsx)(n.br,{}),"Please use ",(0,t.jsx)(n.strong,{children:"affectedRows"})," instead."]})]}]}),"\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.code,{children:"INSERT"}),", ",(0,t.jsx)(n.code,{children:"UPDATE"}),", ",(0,t.jsx)(n.code,{children:"DELETE"}),", ",(0,t.jsx)(n.code,{children:"TRUNCATE"}),", etc.:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ResultSetHeader } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\nconst sql = `\n SET @1 = 1;\n`;\n\nconn.query<ResultSetHeader>(sql, (_err, result) => {\n console.log(result);\n /**\n * @result: ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 2,\n warningStatus: 0,\n changedRows: 0\n }\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"resultsetheader-1",children:"ResultSetHeader[]"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(l.A,{records:[{version:"3.5.1",changes:[(0,t.jsxs)(t.Fragment,{children:["Introduce ",(0,t.jsx)(n.strong,{children:"ResultSetHeader[]"})]})]}]}),"\n",(0,t.jsxs)(n.p,{children:["For multiples ",(0,t.jsx)(n.code,{children:"INSERT"}),", ",(0,t.jsx)(n.code,{children:"UPDATE"}),", ",(0,t.jsx)(n.code,{children:"DELETE"}),", ",(0,t.jsx)(n.code,{children:"TRUNCATE"}),", etc. when using ",(0,t.jsx)(n.code,{children:"multipleStatements"})," as ",(0,t.jsx)(n.code,{children:"true"}),":"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ResultSetHeader } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n multipleStatements: true,\n});\n\nconst sql = `\n SET @1 = 1;\n SET @2 = 2;\n`;\n\nconn.query<ResultSetHeader[]>(sql, (_err, results) => {\n console.log(results);\n /**\n * @results: [\n ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 10,\n warningStatus: 0,\n changedRows: 0\n },\n ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 2,\n warningStatus: 0,\n changedRows: 0\n }\n ]\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"procedurecallpacket",children:"ProcedureCallPacket"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(l.A,{records:[{version:"3.5.1",changes:[(0,t.jsxs)(t.Fragment,{children:["Introduce ",(0,t.jsx)(n.strong,{children:"ProcedureCallPacket"})]})]}]}),"\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["By performing a ",(0,t.jsx)(n.strong,{children:"Call Procedure"})," using ",(0,t.jsx)(n.code,{children:"INSERT"}),", ",(0,t.jsx)(n.code,{children:"UPDATE"}),", etc., the return will be a ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket<ResultSetHeader>"})," (even if you perform multiples queries and set ",(0,t.jsx)(n.code,{children:"multipleStatements"})," to ",(0,t.jsx)(n.code,{children:"true"}),"):"]})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ProcedureCallPacket, ResultSetHeader } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\n/** ResultSetHeader */\nconn.query('DROP PROCEDURE IF EXISTS myProcedure');\n\n/** ResultSetHeader */\nconn.query(`\n CREATE PROCEDURE myProcedure()\n BEGIN\n SET @1 = 1;\n SET @2 = 2;\n END\n `);\n\n/** ProcedureCallPacket */\nconst sql = 'CALL myProcedure()';\n\nconn.query<ProcedureCallPacket<ResultSetHeader>>(sql, (_err, result) => {\n console.log(result);\n /**\n * @result: ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 2,\n warningStatus: 0,\n changedRows: 0\n }\n */\n});\n"})}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.code,{children:"CREATE PROCEDURE"})," and ",(0,t.jsx)(n.code,{children:"DROP PROCEDURE"}),", these returns will be the ",(0,t.jsx)(n.em,{children:"default"})," ",(0,t.jsx)(n.code,{children:"ResultSetHeader"}),"."]}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["By using ",(0,t.jsx)(n.code,{children:"SELECT"})," and ",(0,t.jsx)(n.code,{children:"SHOW"})," queries in a ",(0,t.jsx)(n.strong,{children:"Procedure Call"}),", it groups the results as:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"/** ProcedureCallPacket<RowDataPacket[]> */\n[RowDataPacket[], ResultSetHeader]\n"})}),"\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket<RowDataPacket[]>"}),", please see the following examples."]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"okpacket",children:"OkPacket"}),"\n",(0,t.jsx)(c.X,{level:0,message:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.strong,{children:"OkPacket"})," is deprecated and might be removed in the future major release.",(0,t.jsx)(n.br,{}),"Please use ",(0,t.jsx)(n.strong,{children:"ResultSetHeader"})," instead."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"examples",children:"Examples"}),"\n",(0,t.jsxs)(n.p,{children:["You can also check some code examples using ",(0,t.jsx)(n.strong,{children:"MySQL2"})," and ",(0,t.jsx)(n.strong,{children:"TypeScript"})," to understand advanced concepts:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/index",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/row-as-array",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," and ",(0,t.jsx)(n.code,{children:"rowAsArray"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/multi-statements",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," and ",(0,t.jsx)(n.code,{children:"multipleStatements"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/row-as-array-multi-statements",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"}),", ",(0,t.jsx)(n.code,{children:"rowAsArray"})," and ",(0,t.jsx)(n.code,{children:"multipleStatements"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/procedure-call/index",children:["Checking for ",(0,t.jsx)(n.code,{children:"ResultSetHeader"}),", extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," from ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/procedure-call/row-as-array",children:["Checking for ",(0,t.jsx)(n.code,{children:"ResultSetHeader"}),", extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," and ",(0,t.jsx)(n.code,{children:"rowAsArray"})," from ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/basic-custom-class",children:["Creating a basic custom ",(0,t.jsx)(n.strong,{children:"MySQL2"})," ",(0,t.jsx)(n.strong,{children:"Class"})]})}),"\n"]})]})}function x(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}},4673:(e,n,s)=>{s.d(n,{Z:()=>p});var t=s(7294),r=s(512),l=s(2389),c=s(6043);const a={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var o=s(5893);function i(e){return!!e&&("SUMMARY"===e.tagName||i(e.parentElement))}function d(e,n){return!!e&&(e===n||d(e.parentElement,n))}function h(e){let{summary:n,children:s,...h}=e;const u=(0,l.Z)(),x=(0,t.useRef)(null),{collapsed:p,setCollapsed:j}=(0,c.u)({initialState:!h.open}),[m,y]=(0,t.useState)(h.open),g=t.isValidElement(n)?n:(0,o.jsx)("summary",{children:n??"Details"});return(0,o.jsxs)("details",{...h,ref:x,open:m,"data-collapsed":p,className:(0,r.Z)(a.details,u&&a.isBrowser,h.className),onMouseDown:e=>{i(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const n=e.target;i(n)&&d(n,x.current)&&(e.preventDefault(),p?(j(!1),y(!0)):j(!0))},children:[g,(0,o.jsx)(c.z,{lazy:!1,collapsed:p,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{j(e),y(!e)},children:(0,o.jsx)("div",{className:a.collapsibleContent,children:s})})]})}const u={details:"details_b_Ee"},x="alert alert--info";function p(e){let{...n}=e;return(0,o.jsx)(h,{...n,className:(0,r.Z)(x,u.details,n.className)})}},8609:(e,n,s)=>{s.d(n,{A:()=>c});var t=s(4673);const r=(0,s(4297).Z)("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]);var l=s(5893);const c=e=>{let{records:n,open:s}=e;return(0,l.jsx)(t.Z,{open:s,summary:(0,l.jsxs)("summary",{children:[(0,l.jsx)(r,{})," History"]}),className:"history",children:(0,l.jsxs)("table",{children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{children:"Version"}),(0,l.jsx)("th",{children:"Changes"})]})}),(0,l.jsx)("tbody",{children:n.map(((e,n)=>(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:(0,l.jsxs)("strong",{children:["v",e.version.replace(/[^0-9.]/g,"")]})}),(0,l.jsx)("td",{children:(0,l.jsx)("div",{className:"changes",children:e.changes.map(((e,n)=>(0,l.jsx)("section",{children:e},`change:${n}`)))})})]},`record:${n}`)))})]})})}},3901:(e,n,s)=>{s.d(n,{X:()=>u});var t=s(3692),r=s(4297);const l=(0,r.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),c=(0,r.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),a=(0,r.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),o=(0,r.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),i=(0,r.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),d=(0,r.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var h=s(5893);const u=e=>{let{level:n,message:s}=e;const r={0:{title:"Deprecated",icon:(0,h.jsx)(l,{})},1:{title:"Experimental",icon:(0,h.jsx)(c,{})},1.1:{title:"Early Development",icon:(0,h.jsx)(a,{})},1.2:{title:"Release Candidate",icon:(0,h.jsx)(o,{})},2:{title:"Stable",icon:(0,h.jsx)(i,{})},3:{title:"Legacy",icon:(0,h.jsx)(d,{})}};return(0,h.jsxs)("section",{className:"stability","data-level":n,children:[(0,h.jsx)(t.Z,{to:"/docs/stability-badges",children:(0,h.jsxs)("header",{children:[(0,h.jsx)("strong",{children:n}),(0,h.jsx)("span",{children:r[n].title}),r[n].icon]})}),s?(0,h.jsx)("p",{children:s}):null]})}},4297:(e,n,s)=>{s.d(n,{Z:()=>l});var t=s(7294),r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const l=(e,n)=>{const s=(0,t.forwardRef)((({color:s="currentColor",size:l=24,strokeWidth:c=2,absoluteStrokeWidth:a,className:o="",children:i,...d},h)=>{return(0,t.createElement)("svg",{ref:h,...r,width:l,height:l,stroke:s,strokeWidth:a?24*Number(c)/Number(l):c,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,o].join(" "),...d},[...n.map((([e,n])=>(0,t.createElement)(e,n))),...Array.isArray(i)?i:[i]]);var u}));return s.displayName=`${e}`,s}},1151:(e,n,s)=>{s.d(n,{Z:()=>a,a:()=>c});var t=s(7294);const r={},l=t.createContext(r);function c(e){const n=t.useContext(l);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),t.createElement(l.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/2bc14e22.2670f877.js.LICENSE.txt b/pt-BR/assets/js/2bc14e22.2670f877.js.LICENSE.txt new file mode 100644 index 0000000000..3d48b22d31 --- /dev/null +++ b/pt-BR/assets/js/2bc14e22.2670f877.js.LICENSE.txt @@ -0,0 +1,6 @@ +/** + * @license lucide-react v0.306.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */ diff --git a/pt-BR/assets/js/2bc14e22.ccc314be.js.LICENSE.txt b/pt-BR/assets/js/2bc14e22.ccc314be.js.LICENSE.txt deleted file mode 100644 index 4b1ddb7671..0000000000 --- a/pt-BR/assets/js/2bc14e22.ccc314be.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/** - * @license lucide-react v0.303.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ diff --git a/pt-BR/assets/js/3720c009.8c42b22a.js b/pt-BR/assets/js/3720c009.8c42b22a.js new file mode 100644 index 0000000000..93b7ade9e4 --- /dev/null +++ b/pt-BR/assets/js/3720c009.8c42b22a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3751],{9861:(t,e,s)=>{s.r(e),s.d(e,{default:()=>p});s(7294);var a=s(512),r=s(1944),l=s(5281),n=s(5999);const c=()=>(0,n.I)({id:"theme.tags.tagsPageTitle",message:"Tags",description:"The title of the tag list page"});var i=s(3008),g=s(2503);const o={tag:"tag_Nnez"};var u=s(5893);function h(t){let{letterEntry:e}=t;return(0,u.jsxs)("article",{children:[(0,u.jsx)(g.Z,{as:"h2",id:e.letter,children:e.letter}),(0,u.jsx)("ul",{className:"padding--none",children:e.tags.map((t=>(0,u.jsx)("li",{className:o.tag,children:(0,u.jsx)(i.Z,{...t})},t.permalink)))}),(0,u.jsx)("hr",{})]})}function d(t){let{tags:e}=t;const s=function(t){const e={};return Object.values(t).forEach((t=>{const s=function(t){return t[0].toUpperCase()}(t.label);e[s]??=[],e[s].push(t)})),Object.entries(e).sort(((t,e)=>{let[s]=t,[a]=e;return s.localeCompare(a)})).map((t=>{let[e,s]=t;return{letter:e,tags:s.sort(((t,e)=>t.label.localeCompare(e.label)))}}))}(e);return(0,u.jsx)("section",{className:"margin-vert--lg",children:s.map((t=>(0,u.jsx)(h,{letterEntry:t},t.letter)))})}var j=s(197);function m(t){let{title:e}=t;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(r.d,{title:e}),(0,u.jsx)(j.Z,{tag:"doc_tags_list"})]})}function x(t){let{tags:e,title:s}=t;return(0,u.jsx)(r.FG,{className:(0,a.Z)(l.k.page.docsTagsListPage),children:(0,u.jsx)("div",{className:"container margin-vert--lg",children:(0,u.jsx)("div",{className:"row",children:(0,u.jsxs)("main",{className:"col col--8 col--offset-2",children:[(0,u.jsx)(g.Z,{as:"h1",children:s}),(0,u.jsx)(d,{tags:e})]})})})})}function p(t){const e=c();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(m,{...t,title:e}),(0,u.jsx)(x,{...t,title:e})]})}},3008:(t,e,s)=>{s.d(e,{Z:()=>c});s(7294);var a=s(512),r=s(3692);const l={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};var n=s(5893);function c(t){let{permalink:e,label:s,count:c}=t;return(0,n.jsxs)(r.Z,{href:e,className:(0,a.Z)(l.tag,c?l.tagWithCount:l.tagRegular),children:[s,c&&(0,n.jsx)("span",{children:c})]})}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/3be0564c.87587873.js b/pt-BR/assets/js/3be0564c.87587873.js new file mode 100644 index 0000000000..4d318d0df0 --- /dev/null +++ b/pt-BR/assets/js/3be0564c.87587873.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9594],{3034:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>o,metadata:()=>i,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),l=n(5162);const o={},u="Binlog Watcher",i={id:"examples/binlog-watcher",title:"Binlog Watcher",description:"",source:"@site/docs/examples/binlog-watcher.mdx",sourceDirName:"examples",slug:"/examples/binlog-watcher",permalink:"/node-mysql2/pt-BR/docs/examples/binlog-watcher",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/binlog-watcher.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"DELETE",permalink:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/delete"},next:{title:"await \u2014 co",permalink:"/node-mysql2/pt-BR/docs/examples/promise-wrapper/co-await"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"binlog-watcher",children:"Binlog Watcher"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(l.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst through2 = require('through2');\n\nconst binlogStream = mysql.createBinlogStream({\n serverId: 123, // slave ID, first field in \"show slave hosts\" sql response\n // you can also specify slave host, username, password and port\n masterId: 0,\n filename: 'mysql-bin.000007',\n binlogPos: 120,\n flags: 1, // 1 = \"non-blocking mode\"\n});\n\nbinlogStream.pipe(\n through2.obj((obj, enc, next) => {\n console.log(obj);\n next();\n })\n);\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function l(e){let{children:t,hidden:n,className:l}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,l),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>j});var r=n(7294),a=n(512),s=n(2466),l=n(6550),o=n(469),u=n(1980),i=n(7392),c=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function h(e){let{queryString:t=!1,groupId:n}=e;const a=(0,l.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=p(e),[l,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[i,d]=h({queryString:n,groupId:a}),[b,f]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,c.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),g=(()=>{const e=i??b;return m({value:e,tabValues:s})?e:null})();(0,o.Z)((()=>{g&&u(g)}),[g]);return{selectedValue:l,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),f(e)}),[d,f,s]),tabValues:s}}var f=n(2389);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=n(5893);function x(e){let{className:t,block:n,selectedValue:r,selectValue:l,tabValues:o}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=u.indexOf(t),a=o[n].value;a!==r&&(i(t),l(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,a.Z)("tabs__item",g.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function w(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function y(e){const t=b(e);return(0,v.jsxs)("div",{className:(0,a.Z)("tabs-container",g.tabList),children:[(0,v.jsx)(x,{...e,...t}),(0,v.jsx)(w,{...e,...t})]})}function j(e){const t=(0,f.Z)();return(0,v.jsx)(y,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>o,a:()=>l});var r=n(7294);const a={},s=r.createContext(a);function l(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:l(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/3be0564c.ff91f30d.js b/pt-BR/assets/js/3be0564c.ff91f30d.js deleted file mode 100644 index 10a9e3bbeb..0000000000 --- a/pt-BR/assets/js/3be0564c.ff91f30d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9594],{3034:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>p,frontMatter:()=>l,metadata:()=>i,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),o=n(5162);const l={},u="Binlog Watcher",i={id:"examples/binlog-watcher",title:"Binlog Watcher",description:"",source:"@site/docs/examples/binlog-watcher.mdx",sourceDirName:"examples",slug:"/examples/binlog-watcher",permalink:"/node-mysql2/pt-BR/docs/examples/binlog-watcher",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/binlog-watcher.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Introduction",permalink:"/node-mysql2/pt-BR/docs/examples"},next:{title:"Connect Over Socks",permalink:"/node-mysql2/pt-BR/docs/examples/connect-over-socks"}},c={},d=[];function m(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"binlog-watcher",children:"Binlog Watcher"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst through2 = require('through2');\n\nconst binlogStream = mysql.createBinlogStream({\n serverId: 123, // slave ID, first field in \"show slave hosts\" sql response\n // you can also specify slave host, username, password and port\n masterId: 0,\n filename: 'mysql-bin.000007',\n binlogPos: 120,\n flags: 1, // 1 = \"non-blocking mode\"\n});\n\nbinlogStream.pipe(\n through2.obj((obj, enc, next) => {\n console.log(obj);\n next();\n })\n);\n"})})})})]})}function p(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>j});var r=n(7294),a=n(512),s=n(2466),o=n(6550),l=n(469),u=n(1980),i=n(7392),c=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function p(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function h(e){let{queryString:t=!1,groupId:n}=e;const a=(0,o.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=m(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!p({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[i,d]=h({queryString:n,groupId:a}),[b,f]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,c.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),g=(()=>{const e=i??b;return p({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{g&&u(g)}),[g]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),f(e)}),[d,f,s]),tabValues:s}}var f=n(2389);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=n(5893);function x(e){let{className:t,block:n,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=u.indexOf(t),a=l[n].value;a!==r&&(i(t),o(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:l.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,a.Z)("tabs__item",g.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function y(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function w(e){const t=b(e);return(0,v.jsxs)("div",{className:(0,a.Z)("tabs-container",g.tabList),children:[(0,v.jsx)(x,{...e,...t}),(0,v.jsx)(y,{...e,...t})]})}function j(e){const t=(0,f.Z)();return(0,v.jsx)(w,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>o});var r=n(7294);const a={},s=r.createContext(a);function o(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/3bea1af6.77aeb577.js b/pt-BR/assets/js/3bea1af6.77aeb577.js deleted file mode 100644 index bfeaa0fa89..0000000000 --- a/pt-BR/assets/js/3bea1af6.77aeb577.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9264],{3006:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>i,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),o=n(5162);const l={},u="Execute",c={id:"examples/execute",title:"Execute",description:"",source:"@site/docs/examples/execute.mdx",sourceDirName:"examples",slug:"/examples/execute",permalink:"/node-mysql2/pt-BR/docs/examples/execute",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/execute.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Connect Over Socks",permalink:"/node-mysql2/pt-BR/docs/examples/connect-over-socks"},next:{title:"MySQL Proxy",permalink:"/node-mysql2/pt-BR/docs/examples/mysqlproxy"}},i={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"execute",children:"Execute"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\n// get the client\nconst mysql = require('mysql2');\n\n// create the connection to database\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\nconnection.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [1, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n connection.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [3, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n connection.unprepare('select ?+1 as qqq, ? as rrr, ? as yyy');\n connection.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [3, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n }\n );\n }\n );\n }\n);\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(7294),a=n(512),s=n(2466),o=n(6550),l=n(469),u=n(1980),c=n(7392),i=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,c.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const a=(0,o.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function h(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[c,d]=f({queryString:n,groupId:a}),[h,b]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,i.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),x=(()=>{const e=c??h;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{x&&u(x)}),[x]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=n(2389);const x={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=n(5893);function y(e){let{className:t,block:n,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const t=e.currentTarget,n=u.indexOf(t),a=l[n].value;a!==r&&(c(t),o(a))},d=e=>{let t=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:l.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",x.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function g(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function q(e){const t=h(e);return(0,v.jsxs)("div",{className:(0,a.Z)("tabs-container",x.tabList),children:[(0,v.jsx)(y,{...e,...t}),(0,v.jsx)(g,{...e,...t})]})}function w(e){const t=(0,b.Z)();return(0,v.jsx)(q,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>o});var r=n(7294);const a={},s=r.createContext(a);function o(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/3f11ce5f.8b6a6dda.js b/pt-BR/assets/js/3f11ce5f.8b6a6dda.js deleted file mode 100644 index e1469f6b54..0000000000 --- a/pt-BR/assets/js/3f11ce5f.8b6a6dda.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2817],{4077:e=>{e.exports=JSON.parse('{"title":"Row Data Packet","slug":"/category/row-data-packet","permalink":"/node-mysql2/pt-BR/docs/category/row-data-packet","navigation":{"previous":{"title":"Procedure Call Packet (Row as Array)","permalink":"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-array"},"next":{"title":"Row Data Packet","permalink":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-data-packet"}}}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/4098ceee.fb3d5e14.js b/pt-BR/assets/js/4098ceee.fb3d5e14.js new file mode 100644 index 0000000000..b18c6f5123 --- /dev/null +++ b/pt-BR/assets/js/4098ceee.fb3d5e14.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7182],{3261:e=>{e.exports=JSON.parse('{"label":"Placeholders","permalink":"/node-mysql2/pt-BR/docs/tags/placeholders","allTagsPath":"/node-mysql2/pt-BR/docs/tags","count":4,"items":[{"id":"examples/queries/prepared-statements/delete","title":"DELETE","description":"execute(sql, values)","permalink":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/delete"},{"id":"examples/queries/prepared-statements/insert","title":"INSERT","description":"execute(sql, values)","permalink":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/insert"},{"id":"examples/queries/prepared-statements/select","title":"SELECT","description":"execute(sql, values)","permalink":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/select"},{"id":"examples/queries/prepared-statements/update","title":"UPDATE","description":"execute(sql, values)","permalink":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/update"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/40c51f74.f52d5f10.js b/pt-BR/assets/js/40c51f74.f52d5f10.js new file mode 100644 index 0000000000..122b45d16a --- /dev/null +++ b/pt-BR/assets/js/40c51f74.f52d5f10.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7341],{2323:e=>{e.exports=JSON.parse('{"label":"SHA1","permalink":"/node-mysql2/pt-BR/docs/tags/sha-1","allTagsPath":"/node-mysql2/pt-BR/docs/tags","count":3,"items":[{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/pt-BR/docs/examples/connections/create-connection"},{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/pt-BR/docs/examples/connections/create-pool"},{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/43758d02.9ac7a52a.js b/pt-BR/assets/js/43758d02.9ac7a52a.js deleted file mode 100644 index 7bc0b11d46..0000000000 --- a/pt-BR/assets/js/43758d02.9ac7a52a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[764],{3230:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>i,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),o=n(5162);const l={},u="Pool Test",i={id:"examples/pool-test",title:"Pool Test",description:"",source:"@site/docs/examples/pool-test.mdx",sourceDirName:"examples",slug:"/examples/pool-test",permalink:"/node-mysql2/pt-BR/docs/examples/pool-test",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/pool-test.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Pass SHA",permalink:"/node-mysql2/pt-BR/docs/examples/pass-sha"},next:{title:"Prepared Statements",permalink:"/node-mysql2/pt-BR/docs/examples/prepare"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"pool-test",children:"Pool Test"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst pool = require('mysql2').createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n password: 'root',\n});\n\nsetInterval(() => {\n for (let i = 0; i < 5; ++i) {\n pool.query((err, rows, fields) => {\n console.log(rows, fields);\n // Connection is automatically released once query resolves\n });\n }\n}, 1000);\n\nsetInterval(() => {\n for (let i = 0; i < 5; ++i) {\n pool.getConnection((err, db) => {\n db.query('select sleep(0.5) as qqq', (err, rows, fields) => {\n console.log(rows, fields);\n db.release();\n });\n });\n }\n}, 1000);\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>q});var r=n(7294),a=n(512),s=n(2466),o=n(6550),l=n(469),u=n(1980),i=n(7392),c=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const a=(0,o.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[i,d]=f({queryString:n,groupId:a}),[b,h]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,c.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),v=(()=>{const e=i??b;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,s]),tabValues:s}}var h=n(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=n(5893);function g(e){let{className:t,block:n,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=u.indexOf(t),a=l[n].value;a!==r&&(i(t),o(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:l.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function y(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function w(e){const t=b(e);return(0,x.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(g,{...e,...t}),(0,x.jsx)(y,{...e,...t})]})}function q(e){const t=(0,h.Z)();return(0,x.jsx)(w,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>o});var r=n(7294);const a={},s=r.createContext(a);function o(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/45b16189.5240074e.js b/pt-BR/assets/js/45b16189.5240074e.js new file mode 100644 index 0000000000..d18d751408 --- /dev/null +++ b/pt-BR/assets/js/45b16189.5240074e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9469],{6575:e=>{e.exports=JSON.parse('{"label":"SSL","permalink":"/node-mysql2/pt-BR/docs/tags/ssl","allTagsPath":"/node-mysql2/pt-BR/docs/tags","count":3,"items":[{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/pt-BR/docs/examples/connections/create-connection"},{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/pt-BR/docs/examples/connections/create-pool"},{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/464e933c.aa7e1dfd.js b/pt-BR/assets/js/464e933c.aa7e1dfd.js new file mode 100644 index 0000000000..8df9499a96 --- /dev/null +++ b/pt-BR/assets/js/464e933c.aa7e1dfd.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1649],{4696:e=>{e.exports=JSON.parse('{"label":"RDS","permalink":"/node-mysql2/pt-BR/docs/tags/rds","allTagsPath":"/node-mysql2/pt-BR/docs/tags","count":3,"items":[{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/pt-BR/docs/examples/connections/create-connection"},{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/pt-BR/docs/examples/connections/create-pool"},{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/4e547710.20753e9d.js b/pt-BR/assets/js/4e547710.20753e9d.js deleted file mode 100644 index ab100e2626..0000000000 --- a/pt-BR/assets/js/4e547710.20753e9d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1449],{9393:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>u,contentTitle:()=>c,default:()=>m,frontMatter:()=>l,metadata:()=>i,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},c="Promise CO Await",i={id:"examples/promise-co-await",title:"Promise CO Await",description:"",source:"@site/docs/examples/promise-co-await.mdx",sourceDirName:"examples",slug:"/examples/promise-co-await",permalink:"/node-mysql2/pt-BR/docs/examples/promise-co-await",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/promise-co-await.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Prepared Statements",permalink:"/node-mysql2/pt-BR/docs/examples/prepare"},next:{title:"Queries",permalink:"/node-mysql2/pt-BR/docs/category/queries"}},u={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"promise-co-await",children:"Promise CO Await"}),"\n",(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(o.Z,{value:"await.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2/promise');\n\nasync function test() {\n const c = await mysql.createConnection({\n port: 3306,\n user: 'testuser',\n namedPlaceholders: true,\n password: 'testpassword',\n });\n console.log('connected!');\n const [rows, fields] = await c.query('show databases');\n console.log(rows);\n\n try {\n const [rows, fields] = await c.query('some invalid sql here');\n } catch (e) {\n console.log('caught exception!', e);\n }\n\n console.log(await c.execute('select sleep(0.5)'));\n console.log('after first sleep');\n console.log(await c.execute('select sleep(0.5)'));\n console.log('after second sleep');\n let start = +new Date();\n console.log(\n await Promise.all([\n c.execute('select sleep(2.5)'),\n c.execute('select sleep(2.5)'),\n ])\n );\n console.log(\n 'after 2+3 parallel sleep which is in fact not parallel because commands are queued per connection'\n );\n let end = +new Date();\n console.log(end - start);\n await c.end();\n\n const p = mysql.createPool({\n port: 3306,\n user: 'testuser',\n namedPlaceholders: true,\n password: 'testpassword',\n });\n console.log(await p.execute('select sleep(0.5)'));\n console.log('after first pool sleep');\n start = +new Date();\n console.log(\n await Promise.all([\n p.execute('select sleep(2.5)'),\n p.execute('select sleep(2.5)'),\n ])\n );\n console.log('after 2+3 parallel pool sleep');\n end = +new Date();\n console.log(end - start);\n await p.end();\n}\n\ntest()\n .then(() => {\n console.log('done');\n })\n .catch((err) => {\n console.log('error!', err);\n throw err;\n });\n"})})}),(0,r.jsx)(o.Z,{value:"co.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2/promise');\nconst co = require('co');\n\nco(function* () {\n const c = yield mysql.createConnection({\n port: 3306,\n user: 'root',\n namedPlaceholders: true,\n });\n const rows = yield c.query('show databases');\n console.log(rows);\n console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 }));\n yield c.end();\n})\n .then(function () {\n console.log('done');\n })\n .catch(function (err) {\n console.log(err);\n throw err;\n });\n"})})}),(0,r.jsx)(o.Z,{value:".babelrc",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{\n "plugins": ["transform-async-to-generator"]\n}\n'})})}),(0,r.jsx)(o.Z,{value:"package.json",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{\n "name": "promise-co-await",\n "version": "1.0.0",\n "description": "",\n "main": "await.js",\n "scripts": {\n "test": "echo \\"Error: no test specified\\" && exit 1"\n },\n "author": "",\n "license": "ISC",\n "dependencies": {\n "babel-cli": "^6.9.0"\n }\n}\n'})})})]})]})}function m(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>j});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),c=t(1980),i=t(7392),u=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,i.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function h(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,c._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function f(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=p(e),[o,c]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[i,d]=h({queryString:t,groupId:a}),[f,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,u.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),g=(()=>{const e=i??f;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{g&&c(g)}),[g]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);c(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var w=t(5893);function x(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const c=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),u=e=>{const n=e.currentTarget,t=c.indexOf(n),a=l[t].value;a!==r&&(i(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const t=c.indexOf(e.currentTarget)+1;n=c[t]??c[0];break}case"ArrowLeft":{const t=c.indexOf(e.currentTarget)-1;n=c[t]??c[c.length-1];break}}n?.focus()};return(0,w.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,w.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>c.push(e),onKeyDown:d,onClick:u,...s,className:(0,a.Z)("tabs__item",g.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,w.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function y(e){const n=f(e);return(0,w.jsxs)("div",{className:(0,a.Z)("tabs-container",g.tabList),children:[(0,w.jsx)(x,{...e,...n}),(0,w.jsx)(v,{...e,...n})]})}function j(e){const n=(0,b.Z)();return(0,w.jsx)(y,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/5020.614bd897.js b/pt-BR/assets/js/5020.614bd897.js new file mode 100644 index 0000000000..b95a55ddd6 --- /dev/null +++ b/pt-BR/assets/js/5020.614bd897.js @@ -0,0 +1 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5020],{9286:(e,t,n)=>{"use strict";n.d(t,{Z:()=>H});var s=n(7294),o=n(2389),c=n(512),a=n(2949),r=n(6668);function l(){const{prism:e}=(0,r.L)(),{colorMode:t}=(0,a.I)(),n=e.theme,s=e.darkTheme||n;return"dark"===t?s:n}var i=n(5281),u=n(7594),d=n.n(u);const m=/title=(?<quote>["'])(?<title>.*?)\1/,p=/\{(?<range>[\d,-]+)\}/,b={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}},f={...b,lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""},vb:{start:"['\u2018\u2019]",end:""},rem:{start:"[Rr][Ee][Mm]\\b",end:""},f90:{start:"!",end:""},ml:{start:"\\(\\*",end:"\\*\\)"},cobol:{start:"\\*>",end:""}},h=Object.keys(b);function g(e,t){const n=e.map((e=>{const{start:n,end:s}=f[e];return`(?:${n}\\s*(${t.flatMap((e=>[e.line,e.block?.start,e.block?.end].filter(Boolean))).join("|")})\\s*${s})`})).join("|");return new RegExp(`^\\s*(?:${n})\\s*$`)}function k(e,t){let n=e.replace(/\n$/,"");const{language:s,magicComments:o,metastring:c}=t;if(c&&p.test(c)){const e=c.match(p).groups.range;if(0===o.length)throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${c}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);const t=o[0].className,s=d()(e).filter((e=>e>0)).map((e=>[e-1,[t]]));return{lineClassNames:Object.fromEntries(s),code:n}}if(void 0===s)return{lineClassNames:{},code:n};const a=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":case"sql":return g(["lua"],t);case"wasm":return g(["wasm"],t);case"vb":case"vbnet":case"vba":case"visual-basic":return g(["vb","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(h,t)}}(s,o),r=n.split("\n"),l=Object.fromEntries(o.map((e=>[e.className,{start:0,range:""}]))),i=Object.fromEntries(o.filter((e=>e.line)).map((e=>{let{className:t,line:n}=e;return[n,t]}))),u=Object.fromEntries(o.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.start,t]}))),m=Object.fromEntries(o.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.end,t]})));for(let d=0;d<r.length;){const e=r[d].match(a);if(!e){d+=1;continue}const t=e.slice(1).find((e=>void 0!==e));i[t]?l[i[t]].range+=`${d},`:u[t]?l[u[t]].start=d:m[t]&&(l[m[t]].range+=`${l[m[t]].start}-${d-1},`),r.splice(d,1)}n=r.join("\n");const b={};return Object.entries(l).forEach((e=>{let[t,{range:n}]=e;d()(n).forEach((e=>{b[e]??=[],b[e].push(t)}))})),{lineClassNames:b,code:n}}const x={codeBlockContainer:"codeBlockContainer_Ckt0"};var j=n(5893);function B(e){let{as:t,...n}=e;const s=function(e){const t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach((e=>{let[s,o]=e;const c=t[s];c&&"string"==typeof o&&(n[c]=o)})),n}(l());return(0,j.jsx)(t,{...n,style:s,className:(0,c.Z)(n.className,x.codeBlockContainer,i.k.common.codeBlock)})}const y={codeBlockContent:"codeBlockContent_biex",codeBlockTitle:"codeBlockTitle_Ktv7",codeBlock:"codeBlock_bY9V",codeBlockStandalone:"codeBlockStandalone_MEMb",codeBlockLines:"codeBlockLines_e6Vv",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_o6Pm",buttonGroup:"buttonGroup__atx"};function v(e){let{children:t,className:n}=e;return(0,j.jsx)(B,{as:"pre",tabIndex:0,className:(0,c.Z)(y.codeBlockStandalone,"thin-scrollbar",n),children:(0,j.jsx)("code",{className:y.codeBlockLines,children:t})})}var C=n(902);const N={attributes:!0,characterData:!0,childList:!0,subtree:!0};function w(e,t){const[n,o]=(0,s.useState)(),c=(0,s.useCallback)((()=>{o(e.current?.closest("[role=tabpanel][hidden]"))}),[e,o]);(0,s.useEffect)((()=>{c()}),[c]),function(e,t,n){void 0===n&&(n=N);const o=(0,C.zX)(t),c=(0,C.Ql)(n);(0,s.useEffect)((()=>{const t=new MutationObserver(o);return e&&t.observe(e,c),()=>t.disconnect()}),[e,o,c])}(n,(e=>{e.forEach((e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),c())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}var E=n(2573);const L={codeLine:"codeLine_lJS_",codeLineNumber:"codeLineNumber_Tfdd",codeLineContent:"codeLineContent_feaV"};function S(e){let{line:t,classNames:n,showLineNumbers:s,getLineProps:o,getTokenProps:a}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");const r=o({line:t,className:(0,c.Z)(n,s&&L.codeLine)}),l=t.map(((e,t)=>(0,j.jsx)("span",{...a({token:e,key:t})},t)));return(0,j.jsxs)("span",{...r,children:[s?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("span",{className:L.codeLineNumber}),(0,j.jsx)("span",{className:L.codeLineContent,children:l})]}):l,(0,j.jsx)("br",{})]})}var _=n(5999);function I(e){return(0,j.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,j.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 A(e){return(0,j.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,j.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}const T={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function Z(e){let{code:t,className:n}=e;const[o,a]=(0,s.useState)(!1),r=(0,s.useRef)(void 0),l=(0,s.useCallback)((()=>{!function(e,t){let{target:n=document.body}=void 0===t?{}:t;if("string"!=typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const s=document.createElement("textarea"),o=document.activeElement;s.value=e,s.setAttribute("readonly",""),s.style.contain="strict",s.style.position="absolute",s.style.left="-9999px",s.style.fontSize="12pt";const c=document.getSelection(),a=c.rangeCount>0&&c.getRangeAt(0);n.append(s),s.select(),s.selectionStart=0,s.selectionEnd=e.length;let r=!1;try{r=document.execCommand("copy")}catch{}s.remove(),a&&(c.removeAllRanges(),c.addRange(a)),o&&o.focus()}(t),a(!0),r.current=window.setTimeout((()=>{a(!1)}),1e3)}),[t]);return(0,s.useEffect)((()=>()=>window.clearTimeout(r.current)),[]),(0,j.jsx)("button",{type:"button","aria-label":o?(0,_.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,_.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,_.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,c.Z)("clean-btn",n,T.copyButton,o&&T.copyButtonCopied),onClick:l,children:(0,j.jsxs)("span",{className:T.copyButtonIcons,"aria-hidden":"true",children:[(0,j.jsx)(I,{className:T.copyButtonIcon}),(0,j.jsx)(A,{className:T.copyButtonSuccessIcon})]})})}function M(e){return(0,j.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,j.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"})})}const $={wordWrapButtonIcon:"wordWrapButtonIcon_Bwma",wordWrapButtonEnabled:"wordWrapButtonEnabled_EoeP"};function W(e){let{className:t,onClick:n,isEnabled:s}=e;const o=(0,_.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,j.jsx)("button",{type:"button",onClick:n,className:(0,c.Z)("clean-btn",t,s&&$.wordWrapButtonEnabled),"aria-label":o,title:o,children:(0,j.jsx)(M,{className:$.wordWrapButtonIcon,"aria-hidden":"true"})})}function R(e){let{children:t,className:n="",metastring:o,title:a,showLineNumbers:i,language:u}=e;const{prism:{defaultLanguage:d,magicComments:p}}=(0,r.L)(),b=function(e){return e?.toLowerCase()}(u??function(e){const t=e.split(" ").find((e=>e.startsWith("language-")));return t?.replace(/language-/,"")}(n)??d),f=l(),h=function(){const[e,t]=(0,s.useState)(!1),[n,o]=(0,s.useState)(!1),c=(0,s.useRef)(null),a=(0,s.useCallback)((()=>{const n=c.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[c,e]),r=(0,s.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=c.current,n=e>t||c.current.querySelector("code").hasAttribute("style");o(n)}),[c]);return w(c,r),(0,s.useEffect)((()=>{r()}),[e,r]),(0,s.useEffect)((()=>(window.addEventListener("resize",r,{passive:!0}),()=>{window.removeEventListener("resize",r)})),[r]),{codeBlockRef:c,isEnabled:e,isCodeScrollable:n,toggle:a}}(),g=function(e){return e?.match(m)?.groups.title??""}(o)||a,{lineClassNames:x,code:v}=k(t,{metastring:o,language:b,magicComments:p}),C=i??function(e){return Boolean(e?.includes("showLineNumbers"))}(o);return(0,j.jsxs)(B,{as:"div",className:(0,c.Z)(n,b&&!n.includes(`language-${b}`)&&`language-${b}`),children:[g&&(0,j.jsx)("div",{className:y.codeBlockTitle,children:g}),(0,j.jsxs)("div",{className:y.codeBlockContent,children:[(0,j.jsx)(E.y$,{theme:f,code:v,language:b??"text",children:e=>{let{className:t,style:n,tokens:s,getLineProps:o,getTokenProps:a}=e;return(0,j.jsx)("pre",{tabIndex:0,ref:h.codeBlockRef,className:(0,c.Z)(t,y.codeBlock,"thin-scrollbar"),style:n,children:(0,j.jsx)("code",{className:(0,c.Z)(y.codeBlockLines,C&&y.codeBlockLinesWithNumbering),children:s.map(((e,t)=>(0,j.jsx)(S,{line:e,getLineProps:o,getTokenProps:a,classNames:x[t],showLineNumbers:C},t)))})})}}),(0,j.jsxs)("div",{className:y.buttonGroup,children:[(h.isEnabled||h.isCodeScrollable)&&(0,j.jsx)(W,{className:y.codeButton,onClick:()=>h.toggle(),isEnabled:h.isEnabled}),(0,j.jsx)(Z,{className:y.codeButton,code:v})]})]})]})}function H(e){let{children:t,...n}=e;const c=(0,o.Z)(),a=function(e){return s.Children.toArray(e).some((e=>(0,s.isValidElement)(e)))?e:Array.isArray(e)?e.join(""):e}(t),r="string"==typeof a?R:v;return(0,j.jsx)(r,{...n,children:a},String(c))}},4673:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var s=n(7294),o=n(512),c=n(2389),a=n(6043);const r={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var l=n(5893);function i(e){return!!e&&("SUMMARY"===e.tagName||i(e.parentElement))}function u(e,t){return!!e&&(e===t||u(e.parentElement,t))}function d(e){let{summary:t,children:n,...d}=e;const m=(0,c.Z)(),p=(0,s.useRef)(null),{collapsed:b,setCollapsed:f}=(0,a.u)({initialState:!d.open}),[h,g]=(0,s.useState)(d.open),k=s.isValidElement(t)?t:(0,l.jsx)("summary",{children:t??"Details"});return(0,l.jsxs)("details",{...d,ref:p,open:h,"data-collapsed":b,className:(0,o.Z)(r.details,m&&r.isBrowser,d.className),onMouseDown:e=>{i(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const t=e.target;i(t)&&u(t,p.current)&&(e.preventDefault(),b?(f(!1),g(!0)):f(!0))},children:[k,(0,l.jsx)(a.z,{lazy:!1,collapsed:b,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{f(e),g(!e)},children:(0,l.jsx)("div",{className:r.collapsibleContent,children:n})})]})}const m={details:"details_b_Ee"},p="alert alert--info";function b(e){let{...t}=e;return(0,l.jsx)(d,{...t,className:(0,o.Z)(p,m.details,t.className)})}},7594:(e,t)=>{function n(e){let t,n=[];for(let s of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(s))n.push(parseInt(s,10));else if(t=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,s,o,c]=t;if(s&&c){s=parseInt(s),c=parseInt(c);const e=s<c?1:-1;"-"!==o&&".."!==o&&"\u2025"!==o||(c+=e);for(let t=s;t!==c;t+=e)n.push(t)}}return n}t.default=n,e.exports=n},1151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r,a:()=>a});var s=n(7294);const o={},c=s.createContext(o);function a(e){const t=s.useContext(c);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),s.createElement(c.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/546b1c5f.c11bc71b.js b/pt-BR/assets/js/546b1c5f.78cfd167.js similarity index 86% rename from pt-BR/assets/js/546b1c5f.c11bc71b.js rename to pt-BR/assets/js/546b1c5f.78cfd167.js index 8956e399fd..17427e18ac 100644 --- a/pt-BR/assets/js/546b1c5f.c11bc71b.js +++ b/pt-BR/assets/js/546b1c5f.78cfd167.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8263],{403:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>m,frontMatter:()=>t,metadata:()=>i,toc:()=>l});var s=o(5893),r=o(1151);const t={},c="Promise Wrappers",i={id:"documentation/promise-wrapper",title:"Promise Wrappers",description:"In addition to errback interface there is thin wrapper to expose Promise-based api",source:"@site/docs/documentation/promise-wrapper.mdx",sourceDirName:"documentation",slug:"/documentation/promise-wrapper",permalink:"/node-mysql2/pt-BR/docs/documentation/promise-wrapper",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/documentation/promise-wrapper.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Prepared Statements",permalink:"/node-mysql2/pt-BR/docs/documentation/prepared-statements"},next:{title:"Using MySQL2 with TypeScript",permalink:"/node-mysql2/pt-BR/docs/documentation/typescript-examples"}},a={},l=[{value:"Basic Promise",id:"basic-promise",level:2},{value:"ES7 Async Await",id:"es7-async-await",level:2},{value:"With CO",id:"with-co",level:2}];function p(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"promise-wrappers",children:"Promise Wrappers"}),"\n",(0,s.jsx)(n.p,{children:"In addition to errback interface there is thin wrapper to expose Promise-based api"}),"\n",(0,s.jsx)(n.h2,{id:"basic-promise",children:"Basic Promise"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"/* eslint-env es6 */\nconst mysql = require('mysql2/promise'); // or require('mysql2').createConnectionPromise\nmysql\n .createConnection({\n /* same parameters as for non-promise createConnection */\n })\n .then((conn) => conn.query('select foo from bar'))\n .then(([rows, fields]) => console.log(rows[0].foo));\n"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const pool = require('mysql2/promise').createPool({}); // or require('mysql2').createPoolPromise({}) or require('mysql2').createPool({}).promise()\npool\n .getConnection()\n .then((conn) => {\n const res = conn.query('select foo from bar');\n conn.release();\n return res;\n })\n .then((result) => {\n console.log(result[0][0].foo);\n })\n .catch((err) => {\n console.log(err); // any of connection time or query time errors from above\n });\n"})}),"\n",(0,s.jsx)(n.h2,{id:"es7-async-await",children:"ES7 Async Await"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"async function example1() {\n const mysql = require('mysql2/promise');\n const conn = await mysql.createConnection({ database: test });\n const [rows, fields] = await conn.execute('select ?+? as sum', [2, 2]);\n await conn.end();\n}\n\nasync function example2() {\n const mysql = require('mysql2/promise');\n const pool = mysql.createPool({ database: test });\n // execute in parallel, next console.log in 3 seconds\n await Promise.all([\n pool.query('select sleep(2)'),\n pool.query('select sleep(3)'),\n ]);\n console.log('3 seconds after');\n await pool.end();\n}\n"})}),"\n",(0,s.jsxs)(n.h2,{id:"with-co",children:["With ",(0,s.jsx)(n.a,{href:"https://github.com/tj/co",children:"CO"})]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst co = require('co');\nco(function* () {\n const c = yield mysql.createConnectionPromise({\n user: 'root',\n namedPlaceholders: true,\n });\n const rows = yield c.query('show databases');\n console.log(rows);\n console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 }));\n yield c.end();\n});\n"})}),"\n",(0,s.jsxs)(n.p,{children:["Examples in ",(0,s.jsx)(n.a,{href:"/docs/examples/promise-co-await",children:"/examples/promise-co-await"})]})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(p,{...e})}):p(e)}},1151:(e,n,o)=>{o.d(n,{Z:()=>i,a:()=>c});var s=o(7294);const r={},t=s.createContext(r);function c(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8263],{403:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>m,frontMatter:()=>t,metadata:()=>i,toc:()=>l});var s=o(5893),r=o(1151);const t={},c="Promise Wrappers",i={id:"documentation/promise-wrapper",title:"Promise Wrappers",description:"In addition to errback interface there is thin wrapper to expose Promise-based api",source:"@site/docs/documentation/promise-wrapper.mdx",sourceDirName:"documentation",slug:"/documentation/promise-wrapper",permalink:"/node-mysql2/pt-BR/docs/documentation/promise-wrapper",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/documentation/promise-wrapper.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Prepared Statements",permalink:"/node-mysql2/pt-BR/docs/documentation/prepared-statements"},next:{title:"Using MySQL2 with TypeScript",permalink:"/node-mysql2/pt-BR/docs/documentation/typescript-examples"}},a={},l=[{value:"Basic Promise",id:"basic-promise",level:2},{value:"ES7 Async Await",id:"es7-async-await",level:2},{value:"With CO",id:"with-co",level:2}];function p(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"promise-wrappers",children:"Promise Wrappers"}),"\n",(0,s.jsx)(n.p,{children:"In addition to errback interface there is thin wrapper to expose Promise-based api"}),"\n",(0,s.jsx)(n.h2,{id:"basic-promise",children:"Basic Promise"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"/* eslint-env es6 */\nconst mysql = require('mysql2/promise'); // or require('mysql2').createConnectionPromise\nmysql\n .createConnection({\n /* same parameters as for non-promise createConnection */\n })\n .then((conn) => conn.query('select foo from bar'))\n .then(([rows, fields]) => console.log(rows[0].foo));\n"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const pool = require('mysql2/promise').createPool({}); // or require('mysql2').createPoolPromise({}) or require('mysql2').createPool({}).promise()\npool\n .getConnection()\n .then((conn) => {\n const res = conn.query('select foo from bar');\n conn.release();\n return res;\n })\n .then((result) => {\n console.log(result[0][0].foo);\n })\n .catch((err) => {\n console.log(err); // any of connection time or query time errors from above\n });\n"})}),"\n",(0,s.jsx)(n.h2,{id:"es7-async-await",children:"ES7 Async Await"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"async function example1() {\n const mysql = require('mysql2/promise');\n const conn = await mysql.createConnection({ database: test });\n const [rows, fields] = await conn.execute('select ?+? as sum', [2, 2]);\n await conn.end();\n}\n\nasync function example2() {\n const mysql = require('mysql2/promise');\n const pool = mysql.createPool({ database: test });\n // execute in parallel, next console.log in 3 seconds\n await Promise.all([\n pool.query('select sleep(2)'),\n pool.query('select sleep(3)'),\n ]);\n console.log('3 seconds after');\n await pool.end();\n}\n"})}),"\n",(0,s.jsxs)(n.h2,{id:"with-co",children:["With ",(0,s.jsx)(n.a,{href:"https://github.com/tj/co",children:"CO"})]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst co = require('co');\nco(function* () {\n const c = yield mysql.createConnectionPromise({\n user: 'root',\n namedPlaceholders: true,\n });\n const rows = yield c.query('show databases');\n console.log(rows);\n console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 }));\n yield c.end();\n});\n"})}),"\n",(0,s.jsxs)(n.p,{children:["Examples in ",(0,s.jsx)(n.a,{href:"/docs/examples/promise-wrapper/co-await",children:"/examples/promise-co-await"})]})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(p,{...e})}):p(e)}},1151:(e,n,o)=>{o.d(n,{Z:()=>i,a:()=>c});var s=o(7294);const r={},t=s.createContext(r);function c(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/54768732.6f6e93f3.js b/pt-BR/assets/js/54768732.6f6e93f3.js new file mode 100644 index 0000000000..bc38f66f43 --- /dev/null +++ b/pt-BR/assets/js/54768732.6f6e93f3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[576],{3990:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>h,contentTitle:()=>c,default:()=>x,frontMatter:()=>u,metadata:()=>d,toc:()=>p});var t=n(5893),s=n(1151),l=n(4866),a=n(5162),o=n(6393),i=n(4379);const u={sidebar_position:2,tags:["query"]},c="UPDATE",d={id:"examples/queries/simple-queries/update",title:"UPDATE",description:"The examples below also work for the execute method.",source:"@site/docs/examples/queries/simple-queries/update.mdx",sourceDirName:"examples/queries/simple-queries",slug:"/examples/queries/simple-queries/update",permalink:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/update",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/simple-queries/update.mdx",tags:[{label:"query",permalink:"/node-mysql2/pt-BR/docs/tags/query"}],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2,tags:["query"]},sidebar:"examples",previous:{title:"SELECT",permalink:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/select"},next:{title:"DELETE",permalink:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/delete"}},h={},p=[{value:"query(sql)",id:"querysql",level:2},{value:"query(options)",id:"queryoptions",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"QueryOptions",id:"queryoptions-1",level:3}];function m(e){const r={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.h1,{id:"update",children:"UPDATE"}),"\n",(0,t.jsxs)(r.p,{children:["The examples below also work for the ",(0,t.jsx)(r.a,{href:"/docs/examples/queries/prepared-statements/update",children:(0,t.jsx)(r.code,{children:"execute"})})," method."]}),"\n",(0,t.jsx)(r.h2,{id:"querysql",children:"query(sql)"}),"\n",(0,t.jsxs)(r.blockquote,{children:["\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"query(sql: string)"})}),"\n"]}),"\n",(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"try {\n const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1';\n\n // highlight-next-line\n const [result, fields] = await connection.query(sql);\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"callback.js",children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1';\n\nconnection.query(sql, (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n});\n"})})})]}),"\n",(0,t.jsxs)(r.ul,{children:["\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"result"}),": contains a ",(0,t.jsx)(r.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,t.jsx)(r.admonition,{type:"info",children:(0,t.jsxs)(r.p,{children:["The connection used for the query (",(0,t.jsx)(r.code,{children:".query()"}),") can be obtained through the ",(0,t.jsx)(r.code,{children:"createConnection"}),", ",(0,t.jsx)(r.code,{children:"createPool"})," or ",(0,t.jsx)(r.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,t.jsx)(r.hr,{}),"\n",(0,t.jsx)(r.h2,{id:"queryoptions",children:"query(options)"}),"\n",(0,t.jsxs)(r.blockquote,{children:["\n",(0,t.jsx)(r.p,{children:(0,t.jsxs)(r.strong,{children:["query(options: ",(0,t.jsx)(r.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"try {\n const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1';\n\n // highlight-start\n const [result, fields] = await connection.query({\n sql,\n // ... other options\n });\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"callback.js",children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1';\n\nconnection.query(\n {\n sql,\n // ... other options\n },\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,t.jsxs)(r.ul,{children:["\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"result"}),": contains a ",(0,t.jsx)(r.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,t.jsx)(r.admonition,{type:"info",children:(0,t.jsxs)(r.p,{children:["The connection used for the query (",(0,t.jsx)(r.code,{children:".query()"}),") can be obtained through the ",(0,t.jsx)(r.code,{children:"createConnection"}),", ",(0,t.jsx)(r.code,{children:"createPool"})," or ",(0,t.jsx)(r.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,t.jsx)(r.hr,{}),"\n",(0,t.jsx)(r.h2,{id:"glossary",children:"Glossary"}),"\n",(0,t.jsx)(r.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,t.jsx)(o.Z,{title:"ResultSetHeader Specification",children:(0,t.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts",extractMethod:"ResultSetHeader",methodType:"interface"})}),"\n",(0,t.jsx)(r.h3,{id:"queryoptions-1",children:"QueryOptions"}),"\n",(0,t.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,t.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function x(e={}){const{wrapper:r}={...(0,s.a)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},5162:(e,r,n)=>{n.d(r,{Z:()=>a});n(7294);var t=n(512);const s={tabItem:"tabItem_Ymn6"};var l=n(5893);function a(e){let{children:r,hidden:n,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,t.Z)(s.tabItem,a),hidden:n,children:r})}},4866:(e,r,n)=>{n.d(r,{Z:()=>v});var t=n(7294),s=n(512),l=n(2466),a=n(6550),o=n(469),i=n(1980),u=n(7392),c=n(12);function d(e){return t.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,t.isValidElement)(e)&&function(e){const{props:r}=e;return!!r&&"object"==typeof r&&"value"in r}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:r,children:n}=e;return(0,t.useMemo)((()=>{const e=r??function(e){return d(e).map((e=>{let{props:{value:r,label:n,attributes:t,default:s}}=e;return{value:r,label:n,attributes:t,default:s}}))}(n);return function(e){const r=(0,u.l)(e,((e,r)=>e.value===r.value));if(r.length>0)throw new Error(`Docusaurus error: Duplicate values "${r.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[r,n])}function p(e){let{value:r,tabValues:n}=e;return n.some((e=>e.value===r))}function m(e){let{queryString:r=!1,groupId:n}=e;const s=(0,a.k6)(),l=function(e){let{queryString:r=!1,groupId:n}=e;if("string"==typeof r)return r;if(!1===r)return null;if(!0===r&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:r,groupId:n});return[(0,i._X)(l),(0,t.useCallback)((e=>{if(!l)return;const r=new URLSearchParams(s.location.search);r.set(l,e),s.replace({...s.location,search:r.toString()})}),[l,s])]}function x(e){const{defaultValue:r,queryString:n=!1,groupId:s}=e,l=h(e),[a,i]=(0,t.useState)((()=>function(e){let{defaultValue:r,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(r){if(!p({value:r,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${r}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return r}const t=n.find((e=>e.default))??n[0];if(!t)throw new Error("Unexpected error: 0 tabValues");return t.value}({defaultValue:r,tabValues:l}))),[u,d]=m({queryString:n,groupId:s}),[x,f]=function(e){let{groupId:r}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(r),[s,l]=(0,c.Nk)(n);return[s,(0,t.useCallback)((e=>{n&&l.set(e)}),[n,l])]}({groupId:s}),b=(()=>{const e=u??x;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{b&&i(b)}),[b]);return{selectedValue:a,selectValue:(0,t.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),f(e)}),[d,f,l]),tabValues:l}}var f=n(2389);const b={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=n(5893);function j(e){let{className:r,block:n,selectedValue:t,selectValue:a,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:u}=(0,l.o5)(),c=e=>{const r=e.currentTarget,n=i.indexOf(r),s=o[n].value;s!==t&&(u(r),a(s))},d=e=>{let r=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=i.indexOf(e.currentTarget)+1;r=i[n]??i[0];break}case"ArrowLeft":{const n=i.indexOf(e.currentTarget)-1;r=i[n]??i[i.length-1];break}}r?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":n},r),children:o.map((e=>{let{value:r,label:n,attributes:l}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:t===r?0:-1,"aria-selected":t===r,ref:e=>i.push(e),onKeyDown:d,onClick:c,...l,className:(0,s.Z)("tabs__item",b.tabItem,l?.className,{"tabs__item--active":t===r}),children:n??r},r)}))})}function q(e){let{lazy:r,children:n,selectedValue:s}=e;const l=(Array.isArray(n)?n:[n]).filter(Boolean);if(r){const e=l.find((e=>e.props.value===s));return e?(0,t.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:l.map(((e,r)=>(0,t.cloneElement)(e,{key:r,hidden:e.props.value!==s})))})}function y(e){const r=x(e);return(0,g.jsxs)("div",{className:(0,s.Z)("tabs-container",b.tabList),children:[(0,g.jsx)(j,{...e,...r}),(0,g.jsx)(q,{...e,...r})]})}function v(e){const r=(0,f.Z)();return(0,g.jsx)(y,{...e,children:d(e.children)},String(r))}},4379:(e,r,n)=>{n.d(r,{I:()=>i});var t=n(7294),s=n(2263),l=n(9286),a=n(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),i=e=>{let{url:r,language:n,extractMethod:i,methodType:u}=e;const[c,d]=(0,t.useState)(""),[h,p]=(0,t.useState)(!0),[m,x]=(0,t.useState)(!0),{siteConfig:f}=(0,s.Z)(),b=f.baseUrl.replace(/\/$/,""),g=/^\//.test(r)?`${b}${r}`:r;return(0,t.useEffect)((()=>{const e=new AbortController,r=e.signal;return fetch(g,{signal:r}).then((e=>e.text())).then((e=>{const r=i&&u?((e,r,n)=>{const t=e.split("\n"),s=`${n} ${r}`;let l=!1,a=0,o="";for(const i of t)if(i.includes(s)&&(l=!0),l&&(i.includes("{")&&a++,o+=i+"\n",i.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,i,u):e;d(r||e),p(!1),x(!1)})).catch((()=>{x(!0),p(!1)})),()=>{e.abort()}}),[g,i,u]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:m?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:g}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${n}`,children:c})})})}},6393:(e,r,n)=>{n.d(r,{Z:()=>l});var t=n(4673),s=n(5893);const l=e=>{let{children:r,open:n,title:l}=e;return(0,s.jsx)(t.Z,{open:n,className:"faq",summary:(0,s.jsx)("summary",{children:(0,s.jsx)("strong",{children:l})}),children:(0,s.jsx)("section",{children:r})})}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/54dbd6f3.4539762c.js b/pt-BR/assets/js/54dbd6f3.4539762c.js deleted file mode 100644 index b4f5c01da8..0000000000 --- a/pt-BR/assets/js/54dbd6f3.4539762c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4917],{929:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>i,contentTitle:()=>u,default:()=>p,frontMatter:()=>o,metadata:()=>c,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),l=n(5162);const o={},u="SELECT",c={id:"examples/queries/select",title:"SELECT",description:"",source:"@site/docs/examples/queries/select.mdx",sourceDirName:"examples/queries",slug:"/examples/queries/select",permalink:"/node-mysql2/pt-BR/docs/examples/queries/select",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/select.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Queries",permalink:"/node-mysql2/pt-BR/docs/category/queries"},next:{title:"Server",permalink:"/node-mysql2/pt-BR/docs/examples/server"}},i={},d=[];function m(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"select",children:"SELECT"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(l.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\n// get the client\nconst mysql = require('mysql2');\n\n// create the connection to database\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// simple query\nconnection.query(\n 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45',\n (err, results, fields) => {\n console.log(results); // results contains rows returned by server\n console.log(fields); // fields contains extra meta data about results, if available\n }\n);\n\n// with placeholder\nconnection.query(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Page', 45],\n (err, results) => {\n console.log(results);\n }\n);\n"})})})})]})}function p(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function l(e){let{children:t,hidden:n,className:l}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,l),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(7294),a=n(512),s=n(2466),l=n(6550),o=n(469),u=n(1980),c=n(7392),i=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,c.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function p(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const a=(0,l.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=m(e),[l,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!p({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[c,d]=f({queryString:n,groupId:a}),[b,h]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,i.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),v=(()=>{const e=c??b;return p({value:e,tabValues:s})?e:null})();(0,o.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:l,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,s]),tabValues:s}}var h=n(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=n(5893);function x(e){let{className:t,block:n,selectedValue:r,selectValue:l,tabValues:o}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const t=e.currentTarget,n=u.indexOf(t),a=o[n].value;a!==r&&(c(t),l(a))},d=e=>{let t=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function y(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function q(e){const t=b(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,g.jsx)(x,{...e,...t}),(0,g.jsx)(y,{...e,...t})]})}function w(e){const t=(0,h.Z)();return(0,g.jsx)(q,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>o,a:()=>l});var r=n(7294);const a={},s=r.createContext(a);function l(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:l(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/54eaaaae.54e2107b.js b/pt-BR/assets/js/54eaaaae.54e2107b.js new file mode 100644 index 0000000000..9c3917f9d0 --- /dev/null +++ b/pt-BR/assets/js/54eaaaae.54e2107b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1420],{1:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>u,contentTitle:()=>d,default:()=>g,frontMatter:()=>a,metadata:()=>h,toc:()=>p});var s=o(5893),r=o(1151),t=o(4866),l=o(5162),c=o(6393),i=o(4379);const a={sidebar_position:2,tags:["createPool","URI","SHA1","RDS","SSL","Socks"]},d="createPool",h={id:"examples/connections/create-pool",title:"createPool",description:"For queries please see the Simple Queries and Prepared Statements examples.",source:"@site/docs/examples/connections/create-pool.mdx",sourceDirName:"examples/connections",slug:"/examples/connections/create-pool",permalink:"/node-mysql2/pt-BR/docs/examples/connections/create-pool",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/connections/create-pool.mdx",tags:[{label:"createPool",permalink:"/node-mysql2/pt-BR/docs/tags/create-pool"},{label:"URI",permalink:"/node-mysql2/pt-BR/docs/tags/uri"},{label:"SHA1",permalink:"/node-mysql2/pt-BR/docs/tags/sha-1"},{label:"RDS",permalink:"/node-mysql2/pt-BR/docs/tags/rds"},{label:"SSL",permalink:"/node-mysql2/pt-BR/docs/tags/ssl"},{label:"Socks",permalink:"/node-mysql2/pt-BR/docs/tags/socks"}],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2,tags:["createPool","URI","SHA1","RDS","SSL","Socks"]},sidebar:"examples",previous:{title:"createConnection",permalink:"/node-mysql2/pt-BR/docs/examples/connections/create-connection"},next:{title:"createPoolCluster",permalink:"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster"}},u={},p=[{value:"createPool(connectionUri)",id:"createpoolconnectionuri",level:2},{value:"createPool(config)",id:"createpoolconfig",level:2},{value:"createPool(config) \u2014 SHA1",id:"createpoolconfig--sha1",level:2},{value:"createPool(config) \u2014 SSL",id:"createpoolconfig--ssl",level:2},{value:"createPool(config) \u2014 RDS SSL",id:"createpoolconfig--rds-ssl",level:2},{value:"Related Links",id:"related-links",level:3},{value:"createPool(config) \u2014 Socks",id:"createpoolconfig--socks",level:2},{value:"Glossary",id:"glossary",level:2},{value:"PoolOptions",id:"pooloptions",level:3}];function m(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"createpool",children:"createPool"}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["For queries please see the ",(0,s.jsx)(n.a,{href:"/docs/examples/queries/simple-queries",children:(0,s.jsx)(n.strong,{children:"Simple Queries"})})," and ",(0,s.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements",children:(0,s.jsx)(n.strong,{children:"Prepared Statements"})})," examples."]})}),"\n",(0,s.jsx)(n.h2,{id:"createpoolconnectionuri",children:"createPool(connectionUri)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"createPool(connectionUri: string)"})}),"\n"]}),"\n",(0,s.jsxs)(t.Z,{children:[(0,s.jsx)(l.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const pool = mysql.createPool('mysql://root:password@localhost:3306/test');\n const connection = await pool.getConnection();\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(l.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool('mysql://root:password@localhost:3306/test');\n\npool.getConnection(function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})})]}),"\n",(0,s.jsxs)(n.admonition,{type:"warning",children:[(0,s.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"pool.releaseConnection(connection)"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"createpoolconfig",children:"createPool(config)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["createPool(config: ",(0,s.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(t.Z,{children:[(0,s.jsx)(l.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n // port: 3306,\n // password: '',\n });\n const connection = await pool.getConnection();\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(l.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n // port: 3306,\n // password: '',\n});\n\npool.getConnection(function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})})]}),"\n",(0,s.jsxs)(n.admonition,{type:"warning",children:[(0,s.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"pool.releaseConnection(connection)"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"createpoolconfig--sha1",children:"createPool(config) \u2014 SHA1"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["createPool(config: ",(0,s.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(t.Z,{children:[(0,s.jsx)(l.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const pool = mysql.createPool({\n // ...\n passwordSha1: Buffer.from(\n '8bb6118f8fd6935ad0876a3be34a717d32708ffd',\n 'hex'\n ),\n });\n const connection = await pool.getConnection();\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(l.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool({\n // ...\n passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'),\n});\n\npool.getConnection(function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})})]}),"\n",(0,s.jsxs)(n.admonition,{type:"warning",children:[(0,s.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"pool.releaseConnection(connection)"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"createpoolconfig--ssl",children:"createPool(config) \u2014 SSL"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["createPool(config: ",(0,s.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(t.Z,{children:[(0,s.jsx)(l.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const pool = mysql.createPool({\n // ...\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n });\n const connection = await pool.getConnection();\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(l.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool({\n // ...\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n});\n\npool.getConnection(function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})}),(0,s.jsxs)(l.Z,{value:"certs/ca-cert.pem",children:[(0,s.jsx)(i.I,{language:"plan",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/test/fixtures/ssl/certs/ca.pem"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["See ",(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/tree/master/test/fixtures/ssl/certs",children:"ssl/certs"}),"."]}),"\n"]})]})]}),"\n",(0,s.jsxs)(n.admonition,{type:"warning",children:[(0,s.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"pool.releaseConnection(connection)"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"createpoolconfig--rds-ssl",children:"createPool(config) \u2014 RDS SSL"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["createPool(config: ",(0,s.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["You can use ",(0,s.jsx)(n.strong,{children:"Amazon RDS"})," string as value to ssl property to connect to ",(0,s.jsx)(n.strong,{children:"Amazon RDS"})," MySQL over SSL."]}),"\n",(0,s.jsxs)(n.p,{children:["In that case ",(0,s.jsx)(n.a,{href:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem",children:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem"})," CA cert is used:"]}),"\n",(0,s.jsxs)(t.Z,{children:[(0,s.jsxs)(l.Z,{value:"promise.js",default:!0,children:[(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const pool = mysql.createPool({\n // ...\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n });\n const connection = await pool.getConnection();\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})}),(0,s.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const [res] = await connection.query('SHOW `status` LIKE \"Ssl_cipher\"');\n await pool.end();\n\n console.log(res);\n} catch (err) {\n console.log(err);\n}\n"})})})]}),(0,s.jsxs)(l.Z,{value:"callback.js",children:[(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool({\n // ...\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n});\n\npool.getConnection(function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})}),(0,s.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connectionquery('SHOW `status` LIKE \"Ssl_cipher\"', function (err, res) {\n pool.end();\n\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(res);\n});\n"})})})]})]}),"\n",(0,s.jsxs)(n.admonition,{type:"warning",children:[(0,s.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"pool.releaseConnection(connection)"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,s.jsx)(n.h3,{id:"related-links",children:"Related Links"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Issues"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/issues/2130",children:"#2130 \u2014 Update TLS certs for Amazon RDS instances"})}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Pull Requests"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/pull/2119",children:"#2119 \u2014 fix: make startTls code compatible with Bun"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/pull/2131",children:"#2131 \u2014 Update Amazon RDS SSL CA cert"})}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"createpoolconfig--socks",children:"createPool(config) \u2014 Socks"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["createPool(config: ",(0,s.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(t.Z,{children:[(0,s.jsx)(l.Z,{value:"A.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\nconst socksProxy = new SocksConnection({ port: 3306 });\n// highlight-start\nconst pool = mysql.createPool({\n stream: socksProxy,\n});\n// highlight-end\n"})})}),(0,s.jsx)(l.Z,{value:"B.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\n// highlight-start\nconst pool = mysql.createPool({\n debug: 1,\n stream: function () {\n return new SocksConnection({ port: 3306 });\n },\n});\n// highlight-end\n"})})})]}),"\n",(0,s.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"pool.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n\npool.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n\npool.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n"})})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,s.jsx)(n.h3,{id:"pooloptions",children:"PoolOptions"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"PoolOptions"})," extends all options from ",(0,s.jsx)(n.strong,{children:"ConnectionOptions"}),":"]}),"\n",(0,s.jsx)(c.Z,{title:"ConnectionOptions Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/Connection.d.ts",extractMethod:"ConnectionOptions",methodType:"interface"})}),"\n"]}),"\n",(0,s.jsx)(c.Z,{title:"PoolOptions Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/Pool.d.ts",extractMethod:"PoolOptions",methodType:"interface"})})]})}function g(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},5162:(e,n,o)=>{o.d(n,{Z:()=>l});o(7294);var s=o(512);const r={tabItem:"tabItem_Ymn6"};var t=o(5893);function l(e){let{children:n,hidden:o,className:l}=e;return(0,t.jsx)("div",{role:"tabpanel",className:(0,s.Z)(r.tabItem,l),hidden:o,children:n})}},4866:(e,n,o)=>{o.d(n,{Z:()=>S});var s=o(7294),r=o(512),t=o(2466),l=o(6550),c=o(469),i=o(1980),a=o(7392),d=o(12);function h(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:n,children:o}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return h(e).map((e=>{let{props:{value:n,label:o,attributes:s,default:r}}=e;return{value:n,label:o,attributes:s,default:r}}))}(o);return function(e){const n=(0,a.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,o])}function p(e){let{value:n,tabValues:o}=e;return o.some((e=>e.value===n))}function m(e){let{queryString:n=!1,groupId:o}=e;const r=(0,l.k6)(),t=function(e){let{queryString:n=!1,groupId:o}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!o)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return o??null}({queryString:n,groupId:o});return[(0,i._X)(t),(0,s.useCallback)((e=>{if(!t)return;const n=new URLSearchParams(r.location.search);n.set(t,e),r.replace({...r.location,search:n.toString()})}),[t,r])]}function g(e){const{defaultValue:n,queryString:o=!1,groupId:r}=e,t=u(e),[l,i]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:o}=e;if(0===o.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:o}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${o.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=o.find((e=>e.default))??o[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:t}))),[a,h]=m({queryString:o,groupId:r}),[g,x]=function(e){let{groupId:n}=e;const o=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,t]=(0,d.Nk)(o);return[r,(0,s.useCallback)((e=>{o&&t.set(e)}),[o,t])]}({groupId:r}),j=(()=>{const e=a??g;return p({value:e,tabValues:t})?e:null})();(0,c.Z)((()=>{j&&i(j)}),[j]);return{selectedValue:l,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:t}))throw new Error(`Can't select invalid tab value=${e}`);i(e),h(e),x(e)}),[h,x,t]),tabValues:t}}var x=o(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=o(5893);function y(e){let{className:n,block:o,selectedValue:s,selectValue:l,tabValues:c}=e;const i=[],{blockElementScrollPositionUntilNextRender:a}=(0,t.o5)(),d=e=>{const n=e.currentTarget,o=i.indexOf(n),r=c[o].value;r!==s&&(a(n),l(r))},h=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const o=i.indexOf(e.currentTarget)+1;n=i[o]??i[0];break}case"ArrowLeft":{const o=i.indexOf(e.currentTarget)-1;n=i[o]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":o},n),children:c.map((e=>{let{value:n,label:o,attributes:t}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>i.push(e),onKeyDown:h,onClick:d,...t,className:(0,r.Z)("tabs__item",j.tabItem,t?.className,{"tabs__item--active":s===n}),children:o??n},n)}))})}function b(e){let{lazy:n,children:o,selectedValue:r}=e;const t=(Array.isArray(o)?o:[o]).filter(Boolean);if(n){const e=t.find((e=>e.props.value===r));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:t.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function q(e){const n=g(e);return(0,f.jsxs)("div",{className:(0,r.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(y,{...e,...n}),(0,f.jsx)(b,{...e,...n})]})}function S(e){const n=(0,x.Z)();return(0,f.jsx)(q,{...e,children:h(e.children)},String(n))}},4379:(e,n,o)=>{o.d(n,{I:()=>i});var s=o(7294),r=o(2263),t=o(9286),l=o(5893);const c=()=>(0,l.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:o,extractMethod:i,methodType:a}=e;const[d,h]=(0,s.useState)(""),[u,p]=(0,s.useState)(!0),[m,g]=(0,s.useState)(!0),{siteConfig:x}=(0,r.Z)(),j=x.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,s.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&a?((e,n,o)=>{const s=e.split("\n"),r=`${o} ${n}`;let t=!1,l=0,c="";for(const i of s)if(i.includes(r)&&(t=!0),t&&(i.includes("{")&&l++,c+=i+"\n",i.includes("}")&&(l--,0===l)))break;return c.trim()||e})(e,i,a):e;h(n||e),p(!1),g(!1)})).catch((()=>{g(!0),p(!1)})),()=>{e.abort()}}),[f,i,a]),(0,l.jsx)(l.Fragment,{children:u?(0,l.jsx)(c,{}):(0,l.jsx)(l.Fragment,{children:m?(0,l.jsxs)("div",{children:["Unable to access the requested link: ",(0,l.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,l.jsx)(t.Z,{className:`language-${o}`,children:d})})})}},6393:(e,n,o)=>{o.d(n,{Z:()=>t});var s=o(4673),r=o(5893);const t=e=>{let{children:n,open:o,title:t}=e;return(0,r.jsx)(s.Z,{open:o,className:"faq",summary:(0,r.jsx)("summary",{children:(0,r.jsx)("strong",{children:t})}),children:(0,r.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/55960ee5.038c4e5f.js b/pt-BR/assets/js/55960ee5.038c4e5f.js new file mode 100644 index 0000000000..064a843008 --- /dev/null +++ b/pt-BR/assets/js/55960ee5.038c4e5f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4121],{8070:e=>{e.exports=JSON.parse('[{"label":"Prepared Statements","permalink":"/node-mysql2/pt-BR/docs/tags/prepared-statements","count":5},{"label":"execute","permalink":"/node-mysql2/pt-BR/docs/tags/execute","count":5},{"label":"createConnection","permalink":"/node-mysql2/pt-BR/docs/tags/create-connection","count":1},{"label":"URI","permalink":"/node-mysql2/pt-BR/docs/tags/uri","count":3},{"label":"SHA1","permalink":"/node-mysql2/pt-BR/docs/tags/sha-1","count":3},{"label":"RDS","permalink":"/node-mysql2/pt-BR/docs/tags/rds","count":3},{"label":"SSL","permalink":"/node-mysql2/pt-BR/docs/tags/ssl","count":3},{"label":"Socks","permalink":"/node-mysql2/pt-BR/docs/tags/socks","count":3},{"label":"createPool","permalink":"/node-mysql2/pt-BR/docs/tags/create-pool","count":1},{"label":"createPoolCluster","permalink":"/node-mysql2/pt-BR/docs/tags/create-pool-cluster","count":1},{"label":"Placeholders","permalink":"/node-mysql2/pt-BR/docs/tags/placeholders","count":4},{"label":"Parameters","permalink":"/node-mysql2/pt-BR/docs/tags/parameters","count":4},{"label":"query","permalink":"/node-mysql2/pt-BR/docs/tags/query","count":4}]')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/5748a325.a2e111f5.js b/pt-BR/assets/js/5748a325.a2e111f5.js deleted file mode 100644 index c04a7cd850..0000000000 --- a/pt-BR/assets/js/5748a325.a2e111f5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1647],{4444:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>p,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},u="Server",c={id:"examples/server",title:"Server",description:"",source:"@site/docs/examples/server.mdx",sourceDirName:"examples",slug:"/examples/server",permalink:"/node-mysql2/pt-BR/docs/examples/server",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/server.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"SELECT",permalink:"/node-mysql2/pt-BR/docs/examples/queries/select"},next:{title:"SSL",permalink:"/node-mysql2/pt-BR/docs/category/ssl"}},i={},d=[];function m(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"server",children:"Server"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst flags = require('mysql2/lib/constants/client.js');\nconst auth = require('mysql2/lib/auth_41.js');\n\nfunction authenticate(params, cb) {\n console.log(params);\n const doubleSha = auth.doubleSha1('pass123');\n const isValid = auth.verifyToken(\n params.authPluginData1,\n params.authPluginData2,\n params.authToken,\n doubleSha\n );\n if (isValid) {\n cb(null);\n } else {\n // for list of codes lib/constants/errors.js\n cb(null, { message: 'wrong password dude', code: 1045 });\n }\n}\n\nconst server = mysql.createServer();\nserver.listen(3333);\nserver.on('connection', (conn) => {\n // we can deny connection here:\n // conn.writeError({ message: 'secret', code: 123 });\n // conn.close();\n conn.serverHandshake({\n protocolVersion: 10,\n serverVersion: '5.6.10', // 'node.js rocks',\n connectionId: 1234,\n statusFlags: 2,\n characterSet: 8,\n // capabilityFlags: 0xffffff,\n // capabilityFlags: -2113931265,\n capabilityFlags: 2181036031,\n authCallback: authenticate,\n });\n\n conn.on('field_list', (table, fields) => {\n console.log('FIELD LIST:', table, fields);\n conn.writeEof();\n });\n\n conn.on('query', (query) => {\n conn.writeColumns([\n {\n catalog: 'def',\n schema: 'test',\n table: 'test_table',\n orgTable: 'test_table',\n name: 'beta',\n orgName: 'beta',\n characterSet: 33,\n columnLength: 384,\n columnType: 253,\n flags: 0,\n decimals: 0,\n },\n ]);\n conn.writeTextRow(['test \u0442\u0435\u0441\u0442 \u30c6\u30b9\u30c8 \u0583\u0578\u0580\u0571\u0561\u0580\u056f\u0578\u0582\u0574 \u09aa\u09b0\u09c0\u0995\u09cd\u09b7\u09be ki\u1ec3m tra ']);\n conn.writeTextRow(['\u10e2\u10d4\u10e1\u10e2\u10d8 \u0aaa\u0ab0\u0ac0\u0a95\u0acd\u0ab7\u0aa3 \u05de\u05d1\u05d7\u05df \u05e4\u05bc\u05e8\u05d5\u05d1\u05d9\u05e8\u05df \u0627\u062e\u062a\u0628\u0627\u0631 \u092a\u0930\u0940\u0915\u094d\u0937\u0923']);\n conn.writeEof();\n conn.close();\n });\n});\n"})})})})]})}function p(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>k});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=m(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[c,d]=f({queryString:t,groupId:a}),[b,h]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,i.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),v=(()=>{const e=c??b;return p({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,s]),tabValues:s}}var h=t(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function y(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),a=l[t].value;a!==r&&(c(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function x(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function w(e){const n=b(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,g.jsx)(y,{...e,...n}),(0,g.jsx)(x,{...e,...n})]})}function k(e){const n=(0,h.Z)();return(0,g.jsx)(w,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/5814edec.0c288116.js b/pt-BR/assets/js/5814edec.0c288116.js new file mode 100644 index 0000000000..f75e231ba4 --- /dev/null +++ b/pt-BR/assets/js/5814edec.0c288116.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3561],{3788:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>l,default:()=>m,frontMatter:()=>u,metadata:()=>i,toc:()=>d});var a=n(5893),r=n(1151),s=n(4866),o=n(5162);const u={},l="Row Data Packet (Row as Array)",i={id:"examples/typescript/row-data/row-as-array",title:"Row Data Packet (Row as Array)",description:"",source:"@site/docs/examples/typescript/row-data/01-row-as-array.mdx",sourceDirName:"examples/typescript/row-data",slug:"/examples/typescript/row-data/row-as-array",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/row-data/01-row-as-array.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"examples",previous:{title:"Row Data Packet",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/row-data/index"},next:{title:"Row Data Packet (Multi Statements)",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/row-data/multi-statements"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,r.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h1,{id:"row-data-packet-row-as-array",children:"Row Data Packet (Row as Array)"}),"\n",(0,a.jsx)(s.Z,{children:(0,a.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n /** id */\n 0: number;\n /** name */\n 1: string;\n}\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n rowsAsArray: true,\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Getting users */\n const [users] = await conn.query<User[]>(\n 'SELECT * FROM `users` ORDER BY `name` ASC;'\n );\n\n users.forEach((user) => {\n console.log('-----------');\n console.log('id: ', user[0]);\n console.log('name:', user[1]);\n });\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * -----------\n * id: 4\n * name: Gween\n * -----------\n * id: 2\n * name: John\n * -----------\n * id: 1\n * name: Josh\n * -----------\n * id: 3\n * name: Marie\n */\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,r.a)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var a=n(512);const r={tabItem:"tabItem_Ymn6"};var s=n(5893);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,a.Z)(r.tabItem,o),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>R});var a=n(7294),r=n(512),s=n(2466),o=n(6550),u=n(469),l=n(1980),i=n(7392),c=n(12);function d(e){return a.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,a.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,a.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:a,default:r}}=e;return{value:t,label:n,attributes:a,default:r}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const r=(0,o.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,l._X)(s),(0,a.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(r.location.search);t.set(s,e),r.replace({...r.location,search:t.toString()})}),[s,r])]}function h(e){const{defaultValue:t,queryString:n=!1,groupId:r}=e,s=p(e),[o,l]=(0,a.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const a=n.find((e=>e.default))??n[0];if(!a)throw new Error("Unexpected error: 0 tabValues");return a.value}({defaultValue:t,tabValues:s}))),[i,d]=f({queryString:n,groupId:r}),[h,b]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[r,s]=(0,c.Nk)(n);return[r,(0,a.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:r}),w=(()=>{const e=i??h;return m({value:e,tabValues:s})?e:null})();(0,u.Z)((()=>{w&&l(w)}),[w]);return{selectedValue:o,selectValue:(0,a.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=n(2389);const w={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var y=n(5893);function v(e){let{className:t,block:n,selectedValue:a,selectValue:o,tabValues:u}=e;const l=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=l.indexOf(t),r=u[n].value;r!==a&&(i(t),o(r))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=l.indexOf(e.currentTarget)+1;t=l[n]??l[0];break}case"ArrowLeft":{const n=l.indexOf(e.currentTarget)-1;t=l[n]??l[l.length-1];break}}t?.focus()};return(0,y.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":n},t),children:u.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,y.jsx)("li",{role:"tab",tabIndex:a===t?0:-1,"aria-selected":a===t,ref:e=>l.push(e),onKeyDown:d,onClick:c,...s,className:(0,r.Z)("tabs__item",w.tabItem,s?.className,{"tabs__item--active":a===t}),children:n??t},t)}))})}function g(e){let{lazy:t,children:n,selectedValue:r}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===r));return e?(0,a.cloneElement)(e,{className:"margin-top--md"}):null}return(0,y.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,a.cloneElement)(e,{key:t,hidden:e.props.value!==r})))})}function x(e){const t=h(e);return(0,y.jsxs)("div",{className:(0,r.Z)("tabs-container",w.tabList),children:[(0,y.jsx)(v,{...e,...t}),(0,y.jsx)(g,{...e,...t})]})}function R(e){const t=(0,b.Z)();return(0,y.jsx)(x,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>u,a:()=>o});var a=n(7294);const r={},s=a.createContext(r);function o(e){const t=a.useContext(s);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function u(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),a.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/5814edec.53868910.js b/pt-BR/assets/js/5814edec.53868910.js deleted file mode 100644 index 91ad2b506c..0000000000 --- a/pt-BR/assets/js/5814edec.53868910.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3561],{3788:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>l,default:()=>m,frontMatter:()=>u,metadata:()=>i,toc:()=>d});var a=n(5893),r=n(1151),s=n(4866),o=n(5162);const u={},l="Row Data Packet (Row as Array)",i={id:"examples/typescript/row-data/row-as-array",title:"Row Data Packet (Row as Array)",description:"",source:"@site/docs/examples/typescript/row-data/01-row-as-array.mdx",sourceDirName:"examples/typescript/row-data",slug:"/examples/typescript/row-data/row-as-array",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/row-data/01-row-as-array.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"examples",previous:{title:"Row Data Packet",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-data-packet"},next:{title:"Row Data Packet (Multi Statements)",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/row-data/multi-statements"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,r.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h1,{id:"row-data-packet-row-as-array",children:"Row Data Packet (Row as Array)"}),"\n",(0,a.jsx)(s.Z,{children:(0,a.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n /** id */\n 0: number;\n /** name */\n 1: string;\n}\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n rowsAsArray: true,\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Getting users */\n const [users] = await conn.query<User[]>(\n 'SELECT * FROM `users` ORDER BY `name` ASC;'\n );\n\n users.forEach((user) => {\n console.log('-----------');\n console.log('id: ', user[0]);\n console.log('name:', user[1]);\n });\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * -----------\n * id: 4\n * name: Gween\n * -----------\n * id: 2\n * name: John\n * -----------\n * id: 1\n * name: Josh\n * -----------\n * id: 3\n * name: Marie\n */\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,r.a)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var a=n(512);const r={tabItem:"tabItem_Ymn6"};var s=n(5893);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,a.Z)(r.tabItem,o),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>R});var a=n(7294),r=n(512),s=n(2466),o=n(6550),u=n(469),l=n(1980),i=n(7392),c=n(12);function d(e){return a.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,a.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,a.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:a,default:r}}=e;return{value:t,label:n,attributes:a,default:r}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const r=(0,o.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,l._X)(s),(0,a.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(r.location.search);t.set(s,e),r.replace({...r.location,search:t.toString()})}),[s,r])]}function h(e){const{defaultValue:t,queryString:n=!1,groupId:r}=e,s=p(e),[o,l]=(0,a.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const a=n.find((e=>e.default))??n[0];if(!a)throw new Error("Unexpected error: 0 tabValues");return a.value}({defaultValue:t,tabValues:s}))),[i,d]=f({queryString:n,groupId:r}),[h,b]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[r,s]=(0,c.Nk)(n);return[r,(0,a.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:r}),w=(()=>{const e=i??h;return m({value:e,tabValues:s})?e:null})();(0,u.Z)((()=>{w&&l(w)}),[w]);return{selectedValue:o,selectValue:(0,a.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=n(2389);const w={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var y=n(5893);function v(e){let{className:t,block:n,selectedValue:a,selectValue:o,tabValues:u}=e;const l=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=l.indexOf(t),r=u[n].value;r!==a&&(i(t),o(r))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=l.indexOf(e.currentTarget)+1;t=l[n]??l[0];break}case"ArrowLeft":{const n=l.indexOf(e.currentTarget)-1;t=l[n]??l[l.length-1];break}}t?.focus()};return(0,y.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":n},t),children:u.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,y.jsx)("li",{role:"tab",tabIndex:a===t?0:-1,"aria-selected":a===t,ref:e=>l.push(e),onKeyDown:d,onClick:c,...s,className:(0,r.Z)("tabs__item",w.tabItem,s?.className,{"tabs__item--active":a===t}),children:n??t},t)}))})}function g(e){let{lazy:t,children:n,selectedValue:r}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===r));return e?(0,a.cloneElement)(e,{className:"margin-top--md"}):null}return(0,y.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,a.cloneElement)(e,{key:t,hidden:e.props.value!==r})))})}function x(e){const t=h(e);return(0,y.jsxs)("div",{className:(0,r.Z)("tabs-container",w.tabList),children:[(0,y.jsx)(v,{...e,...t}),(0,y.jsx)(g,{...e,...t})]})}function R(e){const t=(0,b.Z)();return(0,y.jsx)(x,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>u,a:()=>o});var a=n(7294);const r={},s=a.createContext(r);function o(e){const t=a.useContext(s);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function u(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),a.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/59e52bc2.9882cb29.js b/pt-BR/assets/js/59e52bc2.9882cb29.js new file mode 100644 index 0000000000..55bdba8d0e --- /dev/null +++ b/pt-BR/assets/js/59e52bc2.9882cb29.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[641],{8602:(e,r,t)=>{t.r(r),t.d(r,{assets:()=>h,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var n=t(5893),s=t(1151),l=t(4866),a=t(5162),o=t(6393),i=t(4379);const c={sidebar_position:3,tags:["query"]},u="DELETE",d={id:"examples/queries/simple-queries/delete",title:"DELETE",description:"The examples below also work for the execute method.",source:"@site/docs/examples/queries/simple-queries/delete.mdx",sourceDirName:"examples/queries/simple-queries",slug:"/examples/queries/simple-queries/delete",permalink:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/delete",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/simple-queries/delete.mdx",tags:[{label:"query",permalink:"/node-mysql2/pt-BR/docs/tags/query"}],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3,tags:["query"]},sidebar:"examples",previous:{title:"UPDATE",permalink:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/update"},next:{title:"Prepared Statements",permalink:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/"}},h={},p=[{value:"query(sql)",id:"querysql",level:2},{value:"query(options)",id:"queryoptions",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"QueryOptions",id:"queryoptions-1",level:3}];function m(e){const r={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.h1,{id:"delete",children:"DELETE"}),"\n",(0,n.jsxs)(r.p,{children:["The examples below also work for the ",(0,n.jsx)(r.a,{href:"/docs/examples/queries/prepared-statements/delete",children:(0,n.jsx)(r.code,{children:"execute"})})," method."]}),"\n",(0,n.jsx)(r.h2,{id:"querysql",children:"query(sql)"}),"\n",(0,n.jsxs)(r.blockquote,{children:["\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.strong,{children:"query(sql: string)"})}),"\n"]}),"\n",(0,n.jsxs)(l.Z,{children:[(0,n.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-js",children:"try {\n const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1';\n\n // highlight-next-line\n const [result, fields] = await connection.query(sql);\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,n.jsx)(a.Z,{value:"callback.js",children:(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-js",children:"const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1';\n\nconnection.query(sql, (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n});\n"})})})]}),"\n",(0,n.jsxs)(r.ul,{children:["\n",(0,n.jsxs)(r.li,{children:[(0,n.jsx)(r.strong,{children:"result"}),": contains a ",(0,n.jsx)(r.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,n.jsxs)(r.li,{children:[(0,n.jsx)(r.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,n.jsx)(r.admonition,{type:"info",children:(0,n.jsxs)(r.p,{children:["The connection used for the query (",(0,n.jsx)(r.code,{children:".query()"}),") can be obtained through the ",(0,n.jsx)(r.code,{children:"createConnection"}),", ",(0,n.jsx)(r.code,{children:"createPool"})," or ",(0,n.jsx)(r.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h2,{id:"queryoptions",children:"query(options)"}),"\n",(0,n.jsxs)(r.blockquote,{children:["\n",(0,n.jsx)(r.p,{children:(0,n.jsxs)(r.strong,{children:["query(options: ",(0,n.jsx)(r.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,n.jsxs)(l.Z,{children:[(0,n.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-js",children:"try {\n const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1';\n\n // highlight-start\n const [result, fields] = await connection.query({\n sql,\n // ... other options\n });\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,n.jsx)(a.Z,{value:"callback.js",children:(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-js",children:"const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1';\n\nconnection.query(\n {\n sql,\n // ... other options\n },\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,n.jsxs)(r.ul,{children:["\n",(0,n.jsxs)(r.li,{children:[(0,n.jsx)(r.strong,{children:"result"}),": contains a ",(0,n.jsx)(r.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,n.jsxs)(r.li,{children:[(0,n.jsx)(r.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,n.jsx)(r.admonition,{type:"info",children:(0,n.jsxs)(r.p,{children:["The connection used for the query (",(0,n.jsx)(r.code,{children:".query()"}),") can be obtained through the ",(0,n.jsx)(r.code,{children:"createConnection"}),", ",(0,n.jsx)(r.code,{children:"createPool"})," or ",(0,n.jsx)(r.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h2,{id:"glossary",children:"Glossary"}),"\n",(0,n.jsx)(r.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,n.jsx)(o.Z,{title:"ResultSetHeader Specification",children:(0,n.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts",extractMethod:"ResultSetHeader",methodType:"interface"})}),"\n",(0,n.jsx)(r.h3,{id:"queryoptions-1",children:"QueryOptions"}),"\n",(0,n.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,n.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function x(e={}){const{wrapper:r}={...(0,s.a)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(m,{...e})}):m(e)}},5162:(e,r,t)=>{t.d(r,{Z:()=>a});t(7294);var n=t(512);const s={tabItem:"tabItem_Ymn6"};var l=t(5893);function a(e){let{children:r,hidden:t,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,n.Z)(s.tabItem,a),hidden:t,children:r})}},4866:(e,r,t)=>{t.d(r,{Z:()=>v});var n=t(7294),s=t(512),l=t(2466),a=t(6550),o=t(469),i=t(1980),c=t(7392),u=t(12);function d(e){return n.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,n.isValidElement)(e)&&function(e){const{props:r}=e;return!!r&&"object"==typeof r&&"value"in r}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:r,children:t}=e;return(0,n.useMemo)((()=>{const e=r??function(e){return d(e).map((e=>{let{props:{value:r,label:t,attributes:n,default:s}}=e;return{value:r,label:t,attributes:n,default:s}}))}(t);return function(e){const r=(0,c.l)(e,((e,r)=>e.value===r.value));if(r.length>0)throw new Error(`Docusaurus error: Duplicate values "${r.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[r,t])}function p(e){let{value:r,tabValues:t}=e;return t.some((e=>e.value===r))}function m(e){let{queryString:r=!1,groupId:t}=e;const s=(0,a.k6)(),l=function(e){let{queryString:r=!1,groupId:t}=e;if("string"==typeof r)return r;if(!1===r)return null;if(!0===r&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:r,groupId:t});return[(0,i._X)(l),(0,n.useCallback)((e=>{if(!l)return;const r=new URLSearchParams(s.location.search);r.set(l,e),s.replace({...s.location,search:r.toString()})}),[l,s])]}function x(e){const{defaultValue:r,queryString:t=!1,groupId:s}=e,l=h(e),[a,i]=(0,n.useState)((()=>function(e){let{defaultValue:r,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(r){if(!p({value:r,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${r}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return r}const n=t.find((e=>e.default))??t[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:r,tabValues:l}))),[c,d]=m({queryString:t,groupId:s}),[x,f]=function(e){let{groupId:r}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(r),[s,l]=(0,u.Nk)(t);return[s,(0,n.useCallback)((e=>{t&&l.set(e)}),[t,l])]}({groupId:s}),b=(()=>{const e=c??x;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{b&&i(b)}),[b]);return{selectedValue:a,selectValue:(0,n.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),f(e)}),[d,f,l]),tabValues:l}}var f=t(2389);const b={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function j(e){let{className:r,block:t,selectedValue:n,selectValue:a,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,l.o5)(),u=e=>{const r=e.currentTarget,t=i.indexOf(r),s=o[t].value;s!==n&&(c(r),a(s))},d=e=>{let r=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const t=i.indexOf(e.currentTarget)+1;r=i[t]??i[0];break}case"ArrowLeft":{const t=i.indexOf(e.currentTarget)-1;r=i[t]??i[i.length-1];break}}r?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":t},r),children:o.map((e=>{let{value:r,label:t,attributes:l}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:n===r?0:-1,"aria-selected":n===r,ref:e=>i.push(e),onKeyDown:d,onClick:u,...l,className:(0,s.Z)("tabs__item",b.tabItem,l?.className,{"tabs__item--active":n===r}),children:t??r},r)}))})}function y(e){let{lazy:r,children:t,selectedValue:s}=e;const l=(Array.isArray(t)?t:[t]).filter(Boolean);if(r){const e=l.find((e=>e.props.value===s));return e?(0,n.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:l.map(((e,r)=>(0,n.cloneElement)(e,{key:r,hidden:e.props.value!==s})))})}function q(e){const r=x(e);return(0,g.jsxs)("div",{className:(0,s.Z)("tabs-container",b.tabList),children:[(0,g.jsx)(j,{...e,...r}),(0,g.jsx)(y,{...e,...r})]})}function v(e){const r=(0,f.Z)();return(0,g.jsx)(q,{...e,children:d(e.children)},String(r))}},4379:(e,r,t)=>{t.d(r,{I:()=>i});var n=t(7294),s=t(2263),l=t(9286),a=t(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),i=e=>{let{url:r,language:t,extractMethod:i,methodType:c}=e;const[u,d]=(0,n.useState)(""),[h,p]=(0,n.useState)(!0),[m,x]=(0,n.useState)(!0),{siteConfig:f}=(0,s.Z)(),b=f.baseUrl.replace(/\/$/,""),g=/^\//.test(r)?`${b}${r}`:r;return(0,n.useEffect)((()=>{const e=new AbortController,r=e.signal;return fetch(g,{signal:r}).then((e=>e.text())).then((e=>{const r=i&&c?((e,r,t)=>{const n=e.split("\n"),s=`${t} ${r}`;let l=!1,a=0,o="";for(const i of n)if(i.includes(s)&&(l=!0),l&&(i.includes("{")&&a++,o+=i+"\n",i.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,i,c):e;d(r||e),p(!1),x(!1)})).catch((()=>{x(!0),p(!1)})),()=>{e.abort()}}),[g,i,c]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:m?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:g}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${t}`,children:u})})})}},6393:(e,r,t)=>{t.d(r,{Z:()=>l});var n=t(4673),s=t(5893);const l=e=>{let{children:r,open:t,title:l}=e;return(0,s.jsx)(n.Z,{open:t,className:"faq",summary:(0,s.jsx)("summary",{children:(0,s.jsx)("strong",{children:l})}),children:(0,s.jsx)("section",{children:r})})}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/68f13ba5.e98ebdb3.js b/pt-BR/assets/js/68f13ba5.e98ebdb3.js new file mode 100644 index 0000000000..8ee9a07c84 --- /dev/null +++ b/pt-BR/assets/js/68f13ba5.e98ebdb3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7342],{8464:e=>{e.exports=JSON.parse('{"label":"Prepared Statements","permalink":"/node-mysql2/pt-BR/docs/tags/prepared-statements","allTagsPath":"/node-mysql2/pt-BR/docs/tags","count":5,"items":[{"id":"examples/queries/prepared-statements/delete","title":"DELETE","description":"execute(sql, values)","permalink":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/delete"},{"id":"examples/queries/prepared-statements/insert","title":"INSERT","description":"execute(sql, values)","permalink":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/insert"},{"id":"documentation/prepared-statements","title":"Prepared Statements","description":"Automatic creation, cached and re-used by connection","permalink":"/node-mysql2/pt-BR/docs/documentation/prepared-statements"},{"id":"examples/queries/prepared-statements/select","title":"SELECT","description":"execute(sql, values)","permalink":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/select"},{"id":"examples/queries/prepared-statements/update","title":"UPDATE","description":"execute(sql, values)","permalink":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/update"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/75b440d9.1a702608.js b/pt-BR/assets/js/75b440d9.1a702608.js deleted file mode 100644 index 2f28ee8525..0000000000 --- a/pt-BR/assets/js/75b440d9.1a702608.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9521],{3083:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>i,contentTitle:()=>u,default:()=>m,frontMatter:()=>o,metadata:()=>c,toc:()=>d});var n=r(5893),s=r(1151),a=r(4866),l=r(5162);const o={},u="Select Over SSL",c={id:"examples/ssl/select-over-ssl",title:"Select Over SSL",description:"- See examples/ssl/certs.",source:"@site/docs/examples/ssl/select-over-ssl.mdx",sourceDirName:"examples/ssl",slug:"/examples/ssl/select-over-ssl",permalink:"/node-mysql2/pt-BR/docs/examples/ssl/select-over-ssl",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/ssl/select-over-ssl.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"RDS SSL",permalink:"/node-mysql2/pt-BR/docs/examples/ssl/rds-ssl"},next:{title:"TypeScript",permalink:"/node-mysql2/pt-BR/docs/category/typescript"}},i={},d=[];function p(e){const t={a:"a",code:"code",h1:"h1",li:"li",pre:"pre",ul:"ul",...(0,s.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h1,{id:"select-over-ssl",children:"Select Over SSL"}),"\n",(0,n.jsx)(a.Z,{children:(0,n.jsx)(l.Z,{value:"index.js",default:!0,children:(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst fs = require('fs');\nconst mysql = require('mysql2');\n\nconst conn = mysql.createConnection({\n user: 'root',\n password: '',\n database: 'test',\n host: '127.0.0.1',\n port: '3306',\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n});\n\nconn.query('select 1+1 as test', function (err, res) {\n console.log(res);\n conn.query('select repeat(\"a\", 100) as test', function (err, res) {\n console.log(res);\n });\n});\n"})})})}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:["See ",(0,n.jsx)(t.a,{href:"https://github.com/sidorares/node-mysql2/tree/master/examples/ssl/certs",children:"examples/ssl/certs"}),"."]}),"\n"]})]})}function m(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},5162:(e,t,r)=>{r.d(t,{Z:()=>l});r(7294);var n=r(512);const s={tabItem:"tabItem_Ymn6"};var a=r(5893);function l(e){let{children:t,hidden:r,className:l}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,n.Z)(s.tabItem,l),hidden:r,children:t})}},4866:(e,t,r)=>{r.d(t,{Z:()=>w});var n=r(7294),s=r(512),a=r(2466),l=r(6550),o=r(469),u=r(1980),c=r(7392),i=r(12);function d(e){return n.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,n.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:r}=e;return(0,n.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:r,attributes:n,default:s}}=e;return{value:t,label:r,attributes:n,default:s}}))}(r);return function(e){const t=(0,c.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,r])}function m(e){let{value:t,tabValues:r}=e;return r.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:r}=e;const s=(0,l.k6)(),a=function(e){let{queryString:t=!1,groupId:r}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!r)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return r??null}({queryString:t,groupId:r});return[(0,u._X)(a),(0,n.useCallback)((e=>{if(!a)return;const t=new URLSearchParams(s.location.search);t.set(a,e),s.replace({...s.location,search:t.toString()})}),[a,s])]}function h(e){const{defaultValue:t,queryString:r=!1,groupId:s}=e,a=p(e),[l,u]=(0,n.useState)((()=>function(e){let{defaultValue:t,tabValues:r}=e;if(0===r.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:r}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${r.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const n=r.find((e=>e.default))??r[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:t,tabValues:a}))),[c,d]=f({queryString:r,groupId:s}),[h,b]=function(e){let{groupId:t}=e;const r=function(e){return e?`docusaurus.tab.${e}`:null}(t),[s,a]=(0,i.Nk)(r);return[s,(0,n.useCallback)((e=>{r&&a.set(e)}),[r,a])]}({groupId:s}),v=(()=>{const e=c??h;return m({value:e,tabValues:a})?e:null})();(0,o.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:l,selectValue:(0,n.useCallback)((e=>{if(!m({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,a]),tabValues:a}}var b=r(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=r(5893);function y(e){let{className:t,block:r,selectedValue:n,selectValue:l,tabValues:o}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,a.o5)(),i=e=>{const t=e.currentTarget,r=u.indexOf(t),s=o[r].value;s!==n&&(c(t),l(s))},d=e=>{let t=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const r=u.indexOf(e.currentTarget)+1;t=u[r]??u[0];break}case"ArrowLeft":{const r=u.indexOf(e.currentTarget)-1;t=u[r]??u[u.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":r},t),children:o.map((e=>{let{value:t,label:r,attributes:a}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:n===t?0:-1,"aria-selected":n===t,ref:e=>u.push(e),onKeyDown:d,onClick:i,...a,className:(0,s.Z)("tabs__item",v.tabItem,a?.className,{"tabs__item--active":n===t}),children:r??t},t)}))})}function g(e){let{lazy:t,children:r,selectedValue:s}=e;const a=(Array.isArray(r)?r:[r]).filter(Boolean);if(t){const e=a.find((e=>e.props.value===s));return e?(0,n.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:a.map(((e,t)=>(0,n.cloneElement)(e,{key:t,hidden:e.props.value!==s})))})}function S(e){const t=h(e);return(0,x.jsxs)("div",{className:(0,s.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(y,{...e,...t}),(0,x.jsx)(g,{...e,...t})]})}function w(e){const t=(0,b.Z)();return(0,x.jsx)(S,{...e,children:d(e.children)},String(t))}},1151:(e,t,r)=>{r.d(t,{Z:()=>o,a:()=>l});var n=r(7294);const s={},a=n.createContext(s);function l(e){const t=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:l(e.components),n.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/76dfa484.23d18ade.js b/pt-BR/assets/js/76dfa484.23d18ade.js new file mode 100644 index 0000000000..378865b266 --- /dev/null +++ b/pt-BR/assets/js/76dfa484.23d18ade.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3433],{7345:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>o,default:()=>p,frontMatter:()=>l,metadata:()=>i,toc:()=>c});var r=n(5893),s=n(1151),a=(n(4866),n(5162),n(4442));const l={slug:"/examples",title:"Introduction"},o="Examples",i={id:"examples/index",title:"Introduction",description:"To explore the examples, please use the sidebar navigation on desktop or access the menu on mobile devices.",source:"@site/docs/examples/00-index.mdx",sourceDirName:"examples",slug:"/examples",permalink:"/node-mysql2/pt-BR/docs/examples",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/00-index.mdx",tags:[],version:"current",sidebarPosition:0,frontMatter:{slug:"/examples",title:"Introduction"},sidebar:"examples",next:{title:"createConnection",permalink:"/node-mysql2/pt-BR/docs/examples/connections/create-connection"}},u={},c=[{value:"Examples using MySQL server API",id:"examples-using-mysql-server-api",level:2}];function d(e){const t={a:"a",admonition:"admonition",h1:"h1",h2:"h2",li:"li",p:"p",strong:"strong",ul:"ul",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.V,{title:"Examples"}),"\n",(0,r.jsx)(t.h1,{id:"examples",children:"Examples"}),"\n",(0,r.jsx)(t.admonition,{type:"tip",children:(0,r.jsxs)(t.p,{children:["To explore the examples, please use the ",(0,r.jsx)(t.strong,{children:"sidebar navigation"})," on desktop or access the ",(0,r.jsx)(t.strong,{children:"menu"})," on mobile devices."]})}),"\n",(0,r.jsx)(t.h2,{id:"examples-using-mysql-server-api",children:"Examples using MySQL server API"}),"\n",(0,r.jsxs)(t.ul,{children:["\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.a,{href:"https://github.com/sidorares/mysql-pg-proxy",children:"MySQL-pg-proxy"})," - MySQL to Postgres proxy server."]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.a,{href:"https://github.com/sidorares/mysqlite.js",children:"MySQLite.js"})," - MySQL server with JS-only (emscripten compiled) sqlite backend."]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.a,{href:"https://github.com/eugeneware/sql-engine",children:"SQL-engine"})," - MySQL server with LevelDB backend."]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.a,{href:"https://github.com/sidorares/mysql-osquery-proxy",children:"MySQL-osquery-proxy"})," - Connect to ",(0,r.jsx)(t.a,{href:"https://osquery.io/",children:"facebook osquery"})," using MySQL client"]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.a,{href:"https://github.com/implydata/plyql",children:"PlyQL"})," - Connect to ",(0,r.jsx)(t.a,{href:"https://druid.io/",children:"Druid"})," using MySQL client"]}),"\n"]})]})}function p(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var r=n(512);const s={tabItem:"tabItem_Ymn6"};var a=n(5893);function l(e){let{children:t,hidden:n,className:l}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,r.Z)(s.tabItem,l),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(7294),s=n(512),a=n(2466),l=n(6550),o=n(469),i=n(1980),u=n(7392),c=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:s}}=e;return{value:t,label:n,attributes:r,default:s}}))}(n);return function(e){const t=(0,u.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function h(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function m(e){let{queryString:t=!1,groupId:n}=e;const s=(0,l.k6)(),a=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,i._X)(a),(0,r.useCallback)((e=>{if(!a)return;const t=new URLSearchParams(s.location.search);t.set(a,e),s.replace({...s.location,search:t.toString()})}),[a,s])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:s}=e,a=p(e),[l,i]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!h({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:a}))),[u,d]=m({queryString:n,groupId:s}),[b,f]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[s,a]=(0,c.Nk)(n);return[s,(0,r.useCallback)((e=>{n&&a.set(e)}),[n,a])]}({groupId:s}),x=(()=>{const e=u??b;return h({value:e,tabValues:a})?e:null})();(0,o.Z)((()=>{x&&i(x)}),[x]);return{selectedValue:l,selectValue:(0,r.useCallback)((e=>{if(!h({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),f(e)}),[d,f,a]),tabValues:a}}var f=n(2389);const x={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=n(5893);function g(e){let{className:t,block:n,selectedValue:r,selectValue:l,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:u}=(0,a.o5)(),c=e=>{const t=e.currentTarget,n=i.indexOf(t),s=o[n].value;s!==r&&(u(t),l(s))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=i.indexOf(e.currentTarget)+1;t=i[n]??i[0];break}case"ArrowLeft":{const n=i.indexOf(e.currentTarget)-1;t=i[n]??i[i.length-1];break}}t?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:a}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>i.push(e),onKeyDown:d,onClick:c,...a,className:(0,s.Z)("tabs__item",x.tabItem,a?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function y(e){let{lazy:t,children:n,selectedValue:s}=e;const a=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=a.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:a.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==s})))})}function j(e){const t=b(e);return(0,v.jsxs)("div",{className:(0,s.Z)("tabs-container",x.tabList),children:[(0,v.jsx)(g,{...e,...t}),(0,v.jsx)(y,{...e,...t})]})}function w(e){const t=(0,f.Z)();return(0,v.jsx)(j,{...e,children:d(e.children)},String(t))}},4442:(e,t,n)=>{n.d(t,{V:()=>a});var r=n(5742),s=n(5893);const a=e=>{let{title:t}=e;return(0,s.jsx)(r.Z,{children:(0,s.jsx)("title",{children:t})})}},1151:(e,t,n)=>{n.d(t,{Z:()=>o,a:()=>l});var r=n(7294);const s={},a=r.createContext(s);function l(e){const t=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:l(e.components),r.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/76dfa484.d5a66fe5.js b/pt-BR/assets/js/76dfa484.d5a66fe5.js deleted file mode 100644 index 5c2d49e619..0000000000 --- a/pt-BR/assets/js/76dfa484.d5a66fe5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3433],{7345:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>i,default:()=>h,frontMatter:()=>c,metadata:()=>u,toc:()=>m});var r=s(5893),t=s(1151),o=s(4866),a=s(5162),l=s(4442);const c={slug:"/examples",title:"Introduction"},i="Examples",u={id:"examples/index",title:"Introduction",description:"Simple SELECT",source:"@site/docs/examples/00-index.mdx",sourceDirName:"examples",slug:"/examples",permalink:"/node-mysql2/pt-BR/docs/examples",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/00-index.mdx",tags:[],version:"current",sidebarPosition:0,frontMatter:{slug:"/examples",title:"Introduction"},sidebar:"examples",next:{title:"Binlog Watcher",permalink:"/node-mysql2/pt-BR/docs/examples/binlog-watcher"}},d={},m=[{value:"Simple <code>SELECT</code>",id:"simple-select",level:2},{value:"Prepared Statement and Parameters",id:"prepared-statement-and-parameters",level:2},{value:"Connecting over encrypted connection",id:"connecting-over-encrypted-connection",level:2},{value:"Simple MySQL proxy server",id:"simple-mysql-proxy-server",level:2},{value:"Examples using MySQL server API",id:"examples-using-mysql-server-api",level:2}];function p(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",hr:"hr",li:"li",p:"p",pre:"pre",ul:"ul",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.V,{title:"Examples"}),"\n",(0,r.jsx)(n.h1,{id:"examples",children:"Examples"}),"\n",(0,r.jsxs)(n.h2,{id:"simple-select",children:["Simple ",(0,r.jsx)(n.code,{children:"SELECT"})]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(a.Z,{value:"Promise",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nconst connection = await mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\nconst [rows] = await connection.query('SELECT 1+1 AS `test1`');\n// ...\n"})})}),(0,r.jsx)(a.Z,{value:"Callback",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\nconnection.query('SELECT 1+1 AS `test1`', (err, rows) => {\n // ...\n});\n"})})})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"prepared-statement-and-parameters",children:"Prepared Statement and Parameters"}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(a.Z,{value:"Promise",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nconst connection = await mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\nconst [rows] = await connection.execute('SELECT 1+? AS `test1`', [10]);\n// ...\n"})})}),(0,r.jsx)(a.Z,{value:"Callback",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\nconnection.execute('SELECT 1+? as test1', [10], (err, rows) => {\n // ...\n});\n"})})})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"connecting-over-encrypted-connection",children:"Connecting over encrypted connection"}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(a.Z,{value:"Promise",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import fs from 'fs';\nimport mysql from 'mysql2/promise';\n\nconst connection = await mysql.createConnection({\n user: 'test',\n database: 'test',\n ssl: {\n key: fs.readFileSync('./certs/client-key.pem'),\n cert: fs.readFileSync('./certs/client-cert.pem'),\n },\n});\n\nconsole.log(await connection.query('SELECT 1+1 AS `test1`'));\n"})})}),(0,r.jsx)(a.Z,{value:"Callback",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const fs = require('fs');\nconst mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n user: 'test',\n database: 'test',\n ssl: {\n key: fs.readFileSync('./certs/client-key.pem'),\n cert: fs.readFileSync('./certs/client-cert.pem'),\n },\n});\n\nconnection.query('SELECT 1+1 AS `test1`', console.log);\n"})})})]}),"\n",(0,r.jsxs)(n.p,{children:["You can use 'Amazon RDS' string as value to ssl property to connect to Amazon RDS mysql over ssl (in that case ",(0,r.jsx)(n.a,{href:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem",children:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem"})," CA cert is used)"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(a.Z,{value:"Promise",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n const connection = await mysql.createConnection({\n user: 'foo',\n password: 'bar',\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n });\n\n const [res] = await connection.query(\"SHOW `status` LIKE 'Ssl_cipher'\");\n\n console.log(res);\n connection.end();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(a.Z,{value:"Callback",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n user: 'foo',\n password: 'bar',\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n});\n\nconnection.query(\"SHOW `status` LIKE 'Ssl_cipher'\", (err, res) => {\n console.log(err, res);\n connection.end();\n});\n"})})})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"simple-mysql-proxy-server",children:"Simple MySQL proxy server"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst server = mysql.createServer();\nserver.listen(3307);\nserver.on('connection', (conn) => {\n console.log('connection');\n\n conn.serverHandshake({\n protocolVersion: 10,\n serverVersion: 'node.js rocks',\n connectionId: 1234,\n statusFlags: 2,\n characterSet: 8,\n capabilityFlags: 0xffffff,\n });\n\n conn.on('field_list', (table, fields) => {\n console.log('field list:', table, fields);\n conn.writeEof();\n });\n\n const remote = mysql.createConnection({\n user: 'root',\n database: 'dbname',\n host: 'server.example.com',\n password: 'secret',\n });\n\n conn.on('query', (sql) => {\n console.log(`proxying query: ${sql}`);\n remote.query(sql, function (err) {\n // overloaded args, either (err, result :object)\n // or (err, rows :array, columns :array)\n if (Array.isArray(arguments[1])) {\n // response to a 'select', 'show' or similar\n const rows = arguments[1],\n columns = arguments[2];\n console.log('rows', rows);\n console.log('columns', columns);\n conn.writeTextResult(rows, columns);\n } else {\n // response to an 'insert', 'update' or 'delete'\n const result = arguments[1];\n console.log('result', result);\n conn.writeOk(result);\n }\n });\n });\n\n conn.on('end', remote.end.bind(remote));\n});\n"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"examples-using-mysql-server-api",children:"Examples using MySQL server API"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://github.com/sidorares/mysql-pg-proxy",children:"MySQL-pg-proxy"})," - MySQL to Postgres proxy server."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://github.com/sidorares/mysqlite.js",children:"MySQLite.js"})," - MySQL server with JS-only (emscripten compiled) sqlite backend."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://github.com/eugeneware/sql-engine",children:"SQL-engine"})," - MySQL server with LevelDB backend."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://github.com/sidorares/mysql-osquery-proxy",children:"MySQL-osquery-proxy"})," - Connect to ",(0,r.jsx)(n.a,{href:"https://osquery.io/",children:"facebook osquery"})," using MySQL client"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://github.com/implydata/plyql",children:"PlyQL"})," - Connect to ",(0,r.jsx)(n.a,{href:"https://druid.io/",children:"Druid"})," using MySQL client"]}),"\n"]})]})}function h(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,s)=>{s.d(n,{Z:()=>a});s(7294);var r=s(512);const t={tabItem:"tabItem_Ymn6"};var o=s(5893);function a(e){let{children:n,hidden:s,className:a}=e;return(0,o.jsx)("div",{role:"tabpanel",className:(0,r.Z)(t.tabItem,a),hidden:s,children:n})}},4866:(e,n,s)=>{s.d(n,{Z:()=>q});var r=s(7294),t=s(512),o=s(2466),a=s(6550),l=s(469),c=s(1980),i=s(7392),u=s(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:s}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:s,attributes:r,default:t}}=e;return{value:n,label:s,attributes:r,default:t}}))}(s);return function(e){const n=(0,i.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,s])}function p(e){let{value:n,tabValues:s}=e;return s.some((e=>e.value===n))}function h(e){let{queryString:n=!1,groupId:s}=e;const t=(0,a.k6)(),o=function(e){let{queryString:n=!1,groupId:s}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!s)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:n,groupId:s});return[(0,c._X)(o),(0,r.useCallback)((e=>{if(!o)return;const n=new URLSearchParams(t.location.search);n.set(o,e),t.replace({...t.location,search:n.toString()})}),[o,t])]}function y(e){const{defaultValue:n,queryString:s=!1,groupId:t}=e,o=m(e),[a,c]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:s}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=s.find((e=>e.default))??s[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:o}))),[i,d]=h({queryString:s,groupId:t}),[y,x]=function(e){let{groupId:n}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(n),[t,o]=(0,u.Nk)(s);return[t,(0,r.useCallback)((e=>{s&&o.set(e)}),[s,o])]}({groupId:t}),f=(()=>{const e=i??y;return p({value:e,tabValues:o})?e:null})();(0,l.Z)((()=>{f&&c(f)}),[f]);return{selectedValue:a,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:o}))throw new Error(`Can't select invalid tab value=${e}`);c(e),d(e),x(e)}),[d,x,o]),tabValues:o}}var x=s(2389);const f={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var b=s(5893);function g(e){let{className:n,block:s,selectedValue:r,selectValue:a,tabValues:l}=e;const c=[],{blockElementScrollPositionUntilNextRender:i}=(0,o.o5)(),u=e=>{const n=e.currentTarget,s=c.indexOf(n),t=l[s].value;t!==r&&(i(n),a(t))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const s=c.indexOf(e.currentTarget)+1;n=c[s]??c[0];break}case"ArrowLeft":{const s=c.indexOf(e.currentTarget)-1;n=c[s]??c[c.length-1];break}}n?.focus()};return(0,b.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,t.Z)("tabs",{"tabs--block":s},n),children:l.map((e=>{let{value:n,label:s,attributes:o}=e;return(0,b.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>c.push(e),onKeyDown:d,onClick:u,...o,className:(0,t.Z)("tabs__item",f.tabItem,o?.className,{"tabs__item--active":r===n}),children:s??n},n)}))})}function v(e){let{lazy:n,children:s,selectedValue:t}=e;const o=(Array.isArray(s)?s:[s]).filter(Boolean);if(n){const e=o.find((e=>e.props.value===t));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,b.jsx)("div",{className:"margin-top--md",children:o.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function j(e){const n=y(e);return(0,b.jsxs)("div",{className:(0,t.Z)("tabs-container",f.tabList),children:[(0,b.jsx)(g,{...e,...n}),(0,b.jsx)(v,{...e,...n})]})}function q(e){const n=(0,x.Z)();return(0,b.jsx)(j,{...e,children:d(e.children)},String(n))}},4442:(e,n,s)=>{s.d(n,{V:()=>o});var r=s(5742),t=s(5893);const o=e=>{let{title:n}=e;return(0,t.jsx)(r.Z,{children:(0,t.jsx)("title",{children:n})})}},1151:(e,n,s)=>{s.d(n,{Z:()=>l,a:()=>a});var r=s(7294);const t={},o=r.createContext(t);function a(e){const n=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/7ccab252.3b4472b4.js b/pt-BR/assets/js/7ccab252.3b4472b4.js new file mode 100644 index 0000000000..b5a992f28a --- /dev/null +++ b/pt-BR/assets/js/7ccab252.3b4472b4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8054],{3467:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>o,frontMatter:()=>a,metadata:()=>d,toc:()=>p});var n=s(5893),r=s(1151);const a={},i="Prepared Statements",d={id:"examples/queries/prepared-statements/index",title:"Prepared Statements",description:"MySQL2 provides execute helper which will prepare and query the statement.",source:"@site/docs/examples/queries/prepared-statements/index.mdx",sourceDirName:"examples/queries/prepared-statements",slug:"/examples/queries/prepared-statements/",permalink:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/prepared-statements/index.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"DELETE",permalink:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/delete"},next:{title:"INSERT",permalink:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/insert"}},c={},p=[];function l(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",hr:"hr",input:"input",li:"li",p:"p",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h1,{id:"prepared-statements",children:"Prepared Statements"}),"\n",(0,n.jsxs)(t.p,{children:["MySQL2 provides ",(0,n.jsx)(t.code,{children:"execute"})," helper which will prepare and query the statement.\nYou can also manually prepare / unprepare statement with ",(0,n.jsx)(t.code,{children:"prepare"})," / ",(0,n.jsx)(t.code,{children:"unprepare"})," methods."]}),"\n",(0,n.jsxs)(t.p,{children:["See detailed documentaion in ",(0,n.jsx)(t.a,{href:"/docs/documentation/prepared-statements",children:"Prepared Statements"}),"."]}),"\n",(0,n.jsx)(t.admonition,{type:"tip",children:(0,n.jsxs)(t.p,{children:["If you execute same statement again, it will be picked form a ",(0,n.jsx)(t.strong,{children:"LRU cache"})," which will save query preparation time and give better performance."]})}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.p,{children:"Usage examples:"}),"\n",(0,n.jsxs)(t.ul,{className:"contains-task-list",children:["\n",(0,n.jsxs)(t.li,{className:"task-list-item",children:[(0,n.jsx)(t.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,n.jsx)(t.a,{href:"/docs/examples/queries/prepared-statements/insert",children:(0,n.jsx)(t.strong,{children:"INSERT"})})]}),"\n",(0,n.jsxs)(t.li,{className:"task-list-item",children:[(0,n.jsx)(t.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,n.jsx)(t.a,{href:"/docs/examples/queries/prepared-statements/select",children:(0,n.jsx)(t.strong,{children:"SELECT"})})]}),"\n",(0,n.jsxs)(t.li,{className:"task-list-item",children:[(0,n.jsx)(t.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,n.jsx)(t.a,{href:"/docs/examples/queries/prepared-statements/update",children:(0,n.jsx)(t.strong,{children:"UPDATE"})})]}),"\n",(0,n.jsxs)(t.li,{className:"task-list-item",children:[(0,n.jsx)(t.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,n.jsx)(t.a,{href:"/docs/examples/queries/prepared-statements/delete",children:(0,n.jsx)(t.strong,{children:"DELETE"})})]}),"\n"]})]})}function o(e={}){const{wrapper:t}={...(0,r.a)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},1151:(e,t,s)=>{s.d(t,{Z:()=>d,a:()=>i});var n=s(7294);const r={},a=n.createContext(r);function i(e){const t=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),n.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/7fbd6b3a.d6db5b07.js b/pt-BR/assets/js/7fbd6b3a.d6db5b07.js new file mode 100644 index 0000000000..8cfde4dc78 --- /dev/null +++ b/pt-BR/assets/js/7fbd6b3a.d6db5b07.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9964],{8937:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>m,frontMatter:()=>i,metadata:()=>d,toc:()=>p});var t=s(5893),r=s(1151),l=s(4866),a=s(5162),o=s(6393),c=s(4379);const i={sidebar_position:1,tags:["Prepared Statements","Placeholders","Parameters","execute"]},u="SELECT",d={id:"examples/queries/prepared-statements/select",title:"SELECT",description:"execute(sql, values)",source:"@site/docs/examples/queries/prepared-statements/select.mdx",sourceDirName:"examples/queries/prepared-statements",slug:"/examples/queries/prepared-statements/select",permalink:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/select",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/prepared-statements/select.mdx",tags:[{label:"Prepared Statements",permalink:"/node-mysql2/pt-BR/docs/tags/prepared-statements"},{label:"Placeholders",permalink:"/node-mysql2/pt-BR/docs/tags/placeholders"},{label:"Parameters",permalink:"/node-mysql2/pt-BR/docs/tags/parameters"},{label:"execute",permalink:"/node-mysql2/pt-BR/docs/tags/execute"}],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,tags:["Prepared Statements","Placeholders","Parameters","execute"]},sidebar:"examples",previous:{title:"INSERT",permalink:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/insert"},next:{title:"UPDATE",permalink:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/update"}},h={},p=[{value:"execute(sql, values)",id:"executesql-values",level:2},{value:"execute(options)",id:"executeoptions",level:2},{value:"execute(options, values)",id:"executeoptions-values",level:2},{value:"Glossary",id:"glossary",level:2},{value:"QueryOptions",id:"queryoptions",level:3}];function x(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"select",children:"SELECT"}),"\n",(0,t.jsx)(n.h2,{id:"executesql-values",children:"execute(sql, values)"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"execute(sql: string, values: any[])"})}),"\n"]}),"\n",(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';\n const values = ['Page', 45];\n\n // highlight-next-line\n const [rows, fields] = await connection.execute(sql, values);\n\n console.log(rows);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"callback.js",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';\nconst values = ['Page', 45];\n\nconnection.execute(sql, values, (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows);\n console.log(fields);\n});\n"})})})]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"rows"})," contains rows returned by server"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"fields"})," contains extra meta data about rows, if available"]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:["The connection used for the query (",(0,t.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,t.jsx)(n.code,{children:"createConnection"}),", ",(0,t.jsx)(n.code,{children:"createPool"})," or ",(0,t.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"executeoptions",children:"execute(options)"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsxs)(n.strong,{children:["execute(options: ",(0,t.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';\n const values = ['Page', 45];\n\n // highlight-start\n const [rows, fields] = await connection.execute({\n sql,\n values,\n // ... other options\n });\n // highlight-end\n\n console.log(rows);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"callback.js",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';\nconst values = ['Page', 45];\n\nconnection.execute(\n {\n sql,\n values,\n // ... other options\n },\n (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"rows"})," contains rows returned by server"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"fields"})," contains extra meta data about rows, if available"]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:["The connection used for the query (",(0,t.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,t.jsx)(n.code,{children:"createConnection"}),", ",(0,t.jsx)(n.code,{children:"createPool"})," or ",(0,t.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"executeoptions-values",children:"execute(options, values)"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsxs)(n.strong,{children:["execute(options: ",(0,t.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),", values: any[])"]})}),"\n"]}),"\n",(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';\n const values = ['Page', 45];\n\n // highlight-start\n const [rows, fields] = await connection.execute(\n {\n sql,\n // ... other options\n },\n values\n );\n // highlight-end\n\n console.log(rows);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"callback.js",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';\nconst values = ['Page', 45];\n\nconnection.execute(\n {\n sql,\n // ... other options\n },\n values,\n (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"rows"})," contains rows returned by server"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"fields"})," contains extra meta data about rows, if available"]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:["The connection used for the query (",(0,t.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,t.jsx)(n.code,{children:"createConnection"}),", ",(0,t.jsx)(n.code,{children:"createPool"})," or ",(0,t.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,t.jsx)(n.h3,{id:"queryoptions",children:"QueryOptions"}),"\n",(0,t.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,t.jsx)(c.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(x,{...e})}):x(e)}},5162:(e,n,s)=>{s.d(n,{Z:()=>a});s(7294);var t=s(512);const r={tabItem:"tabItem_Ymn6"};var l=s(5893);function a(e){let{children:n,hidden:s,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,t.Z)(r.tabItem,a),hidden:s,children:n})}},4866:(e,n,s)=>{s.d(n,{Z:()=>q});var t=s(7294),r=s(512),l=s(2466),a=s(6550),o=s(469),c=s(1980),i=s(7392),u=s(12);function d(e){return t.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,t.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:s}=e;return(0,t.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:s,attributes:t,default:r}}=e;return{value:n,label:s,attributes:t,default:r}}))}(s);return function(e){const n=(0,i.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,s])}function p(e){let{value:n,tabValues:s}=e;return s.some((e=>e.value===n))}function x(e){let{queryString:n=!1,groupId:s}=e;const r=(0,a.k6)(),l=function(e){let{queryString:n=!1,groupId:s}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!s)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:n,groupId:s});return[(0,c._X)(l),(0,t.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(r.location.search);n.set(l,e),r.replace({...r.location,search:n.toString()})}),[l,r])]}function m(e){const{defaultValue:n,queryString:s=!1,groupId:r}=e,l=h(e),[a,c]=(0,t.useState)((()=>function(e){let{defaultValue:n,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:s}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const t=s.find((e=>e.default))??s[0];if(!t)throw new Error("Unexpected error: 0 tabValues");return t.value}({defaultValue:n,tabValues:l}))),[i,d]=x({queryString:s,groupId:r}),[m,g]=function(e){let{groupId:n}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,l]=(0,u.Nk)(s);return[r,(0,t.useCallback)((e=>{s&&l.set(e)}),[s,l])]}({groupId:r}),j=(()=>{const e=i??m;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{j&&c(j)}),[j]);return{selectedValue:a,selectValue:(0,t.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);c(e),d(e),g(e)}),[d,g,l]),tabValues:l}}var g=s(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=s(5893);function b(e){let{className:n,block:s,selectedValue:t,selectValue:a,tabValues:o}=e;const c=[],{blockElementScrollPositionUntilNextRender:i}=(0,l.o5)(),u=e=>{const n=e.currentTarget,s=c.indexOf(n),r=o[s].value;r!==t&&(i(n),a(r))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const s=c.indexOf(e.currentTarget)+1;n=c[s]??c[0];break}case"ArrowLeft":{const s=c.indexOf(e.currentTarget)-1;n=c[s]??c[c.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":s},n),children:o.map((e=>{let{value:n,label:s,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:t===n?0:-1,"aria-selected":t===n,ref:e=>c.push(e),onKeyDown:d,onClick:u,...l,className:(0,r.Z)("tabs__item",j.tabItem,l?.className,{"tabs__item--active":t===n}),children:s??n},n)}))})}function v(e){let{lazy:n,children:s,selectedValue:r}=e;const l=(Array.isArray(s)?s:[s]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===r));return e?(0,t.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,t.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function y(e){const n=m(e);return(0,f.jsxs)("div",{className:(0,r.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(b,{...e,...n}),(0,f.jsx)(v,{...e,...n})]})}function q(e){const n=(0,g.Z)();return(0,f.jsx)(y,{...e,children:d(e.children)},String(n))}},4379:(e,n,s)=>{s.d(n,{I:()=>c});var t=s(7294),r=s(2263),l=s(9286),a=s(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),c=e=>{let{url:n,language:s,extractMethod:c,methodType:i}=e;const[u,d]=(0,t.useState)(""),[h,p]=(0,t.useState)(!0),[x,m]=(0,t.useState)(!0),{siteConfig:g}=(0,r.Z)(),j=g.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,t.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=c&&i?((e,n,s)=>{const t=e.split("\n"),r=`${s} ${n}`;let l=!1,a=0,o="";for(const c of t)if(c.includes(r)&&(l=!0),l&&(c.includes("{")&&a++,o+=c+"\n",c.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,c,i):e;d(n||e),p(!1),m(!1)})).catch((()=>{m(!0),p(!1)})),()=>{e.abort()}}),[f,c,i]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:x?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${s}`,children:u})})})}},6393:(e,n,s)=>{s.d(n,{Z:()=>l});var t=s(4673),r=s(5893);const l=e=>{let{children:n,open:s,title:l}=e;return(0,r.jsx)(t.Z,{open:s,className:"faq",summary:(0,r.jsx)("summary",{children:(0,r.jsx)("strong",{children:l})}),children:(0,r.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/8a8506f8.5b7bc212.js b/pt-BR/assets/js/8a8506f8.5b7bc212.js deleted file mode 100644 index d1c2259966..0000000000 --- a/pt-BR/assets/js/8a8506f8.5b7bc212.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7467],{3698:e=>{e.exports=JSON.parse('{"title":"SSL","slug":"/category/ssl","permalink":"/node-mysql2/pt-BR/docs/category/ssl","navigation":{"previous":{"title":"Server","permalink":"/node-mysql2/pt-BR/docs/examples/server"},"next":{"title":"RDS SSL","permalink":"/node-mysql2/pt-BR/docs/examples/ssl/rds-ssl"}}}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/8b718d68.845097d8.js b/pt-BR/assets/js/8b718d68.845097d8.js deleted file mode 100644 index a623c753d4..0000000000 --- a/pt-BR/assets/js/8b718d68.845097d8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5717],{462:e=>{e.exports=JSON.parse('{"title":"TypeScript","slug":"/category/typescript","permalink":"/node-mysql2/pt-BR/docs/category/typescript","navigation":{"previous":{"title":"Select Over SSL","permalink":"/node-mysql2/pt-BR/docs/examples/ssl/select-over-ssl"},"next":{"title":"Basic Custom Class","permalink":"/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-class"}}}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/8b8ccc10.ee5a2e4c.js b/pt-BR/assets/js/8b8ccc10.ee5a2e4c.js new file mode 100644 index 0000000000..5fb2fc1e46 --- /dev/null +++ b/pt-BR/assets/js/8b8ccc10.ee5a2e4c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8534],{3961:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>m,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var s=t(5893),r=t(1151),l=t(4866),a=t(5162),o=t(6393),i=t(4379);const c={sidebar_position:3,tags:["Prepared Statements","Placeholders","Parameters","execute"]},u="DELETE",d={id:"examples/queries/prepared-statements/delete",title:"DELETE",description:"execute(sql, values)",source:"@site/docs/examples/queries/prepared-statements/delete.mdx",sourceDirName:"examples/queries/prepared-statements",slug:"/examples/queries/prepared-statements/delete",permalink:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/delete",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/prepared-statements/delete.mdx",tags:[{label:"Prepared Statements",permalink:"/node-mysql2/pt-BR/docs/tags/prepared-statements"},{label:"Placeholders",permalink:"/node-mysql2/pt-BR/docs/tags/placeholders"},{label:"Parameters",permalink:"/node-mysql2/pt-BR/docs/tags/parameters"},{label:"execute",permalink:"/node-mysql2/pt-BR/docs/tags/execute"}],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3,tags:["Prepared Statements","Placeholders","Parameters","execute"]},sidebar:"examples",previous:{title:"UPDATE",permalink:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/update"},next:{title:"Binlog Watcher",permalink:"/node-mysql2/pt-BR/docs/examples/binlog-watcher"}},h={},p=[{value:"execute(sql, values)",id:"executesql-values",level:2},{value:"execute(options)",id:"executeoptions",level:2},{value:"execute(options, values)",id:"executeoptions-values",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"QueryOptions",id:"queryoptions",level:3}];function x(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"delete",children:"DELETE"}),"\n",(0,s.jsx)(n.h2,{id:"executesql-values",children:"execute(sql, values)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"execute(sql: string, values: any[])"})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';\n const values = ['Page'];\n\n // highlight-next-line\n const [result, fields] = await connection.execute(sql, values);\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';\nconst values = ['Page'];\n\nconnection.execute(sql, values, (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n});\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"executeoptions",children:"execute(options)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["execute(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';\n const values = ['Page'];\n\n // highlight-start\n const [result, fields] = await connection.execute({\n sql,\n values,\n // ... other options\n });\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';\nconst values = ['Page'];\n\nconnection.execute(\n {\n sql,\n values,\n // ... other options\n },\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"executeoptions-values",children:"execute(options, values)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["execute(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),", values: any[])"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';\n const values = ['Page'];\n\n // highlight-start\n const [result, fields] = await connection.execute(\n {\n sql,\n // ... other options\n },\n values\n );\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';\nconst values = ['Page'];\n\nconnection.execute(\n {\n sql,\n // ... other options\n },\n values,\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,s.jsx)(n.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,s.jsx)(o.Z,{title:"ResultSetHeader Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts",extractMethod:"ResultSetHeader",methodType:"interface"})}),"\n",(0,s.jsx)(n.h3,{id:"queryoptions",children:"QueryOptions"}),"\n",(0,s.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(x,{...e})}):x(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>a});t(7294);var s=t(512);const r={tabItem:"tabItem_Ymn6"};var l=t(5893);function a(e){let{children:n,hidden:t,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,s.Z)(r.tabItem,a),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>q});var s=t(7294),r=t(512),l=t(2466),a=t(6550),o=t(469),i=t(1980),c=t(7392),u=t(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:t}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:s,default:r}}=e;return{value:n,label:t,attributes:s,default:r}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function x(e){let{queryString:n=!1,groupId:t}=e;const r=(0,a.k6)(),l=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,i._X)(l),(0,s.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(r.location.search);n.set(l,e),r.replace({...r.location,search:n.toString()})}),[l,r])]}function m(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,l=h(e),[a,i]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=t.find((e=>e.default))??t[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:l}))),[c,d]=x({queryString:t,groupId:r}),[m,g]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,l]=(0,u.Nk)(t);return[r,(0,s.useCallback)((e=>{t&&l.set(e)}),[t,l])]}({groupId:r}),j=(()=>{const e=c??m;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{j&&i(j)}),[j]);return{selectedValue:a,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),g(e)}),[d,g,l]),tabValues:l}}var g=t(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=t(5893);function b(e){let{className:n,block:t,selectedValue:s,selectValue:a,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,l.o5)(),u=e=>{const n=e.currentTarget,t=i.indexOf(n),r=o[t].value;r!==s&&(c(n),a(r))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const t=i.indexOf(e.currentTarget)+1;n=i[t]??i[0];break}case"ArrowLeft":{const t=i.indexOf(e.currentTarget)-1;n=i[t]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":t},n),children:o.map((e=>{let{value:n,label:t,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>i.push(e),onKeyDown:d,onClick:u,...l,className:(0,r.Z)("tabs__item",j.tabItem,l?.className,{"tabs__item--active":s===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:r}=e;const l=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===r));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function y(e){const n=m(e);return(0,f.jsxs)("div",{className:(0,r.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(b,{...e,...n}),(0,f.jsx)(v,{...e,...n})]})}function q(e){const n=(0,g.Z)();return(0,f.jsx)(y,{...e,children:d(e.children)},String(n))}},4379:(e,n,t)=>{t.d(n,{I:()=>i});var s=t(7294),r=t(2263),l=t(9286),a=t(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:t,extractMethod:i,methodType:c}=e;const[u,d]=(0,s.useState)(""),[h,p]=(0,s.useState)(!0),[x,m]=(0,s.useState)(!0),{siteConfig:g}=(0,r.Z)(),j=g.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,s.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&c?((e,n,t)=>{const s=e.split("\n"),r=`${t} ${n}`;let l=!1,a=0,o="";for(const i of s)if(i.includes(r)&&(l=!0),l&&(i.includes("{")&&a++,o+=i+"\n",i.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,i,c):e;d(n||e),p(!1),m(!1)})).catch((()=>{m(!0),p(!1)})),()=>{e.abort()}}),[f,i,c]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:x?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${t}`,children:u})})})}},6393:(e,n,t)=>{t.d(n,{Z:()=>l});var s=t(4673),r=t(5893);const l=e=>{let{children:n,open:t,title:l}=e;return(0,r.jsx)(s.Z,{open:t,className:"faq",summary:(0,r.jsx)("summary",{children:(0,r.jsx)("strong",{children:l})}),children:(0,r.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/8fcb4d7f.dee6a17c.js b/pt-BR/assets/js/8fcb4d7f.dee6a17c.js new file mode 100644 index 0000000000..1cc4fc17d0 --- /dev/null +++ b/pt-BR/assets/js/8fcb4d7f.dee6a17c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[81],{3050:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>m,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var s=r(5893),t=r(1151),l=r(4866),o=r(5162),a=r(6393),i=r(4379);const c={sidebar_position:1,tags:["query"]},u="SELECT",d={id:"examples/queries/simple-queries/select",title:"SELECT",description:"The examples below also work for the execute method.",source:"@site/docs/examples/queries/simple-queries/select.mdx",sourceDirName:"examples/queries/simple-queries",slug:"/examples/queries/simple-queries/select",permalink:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/select",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/simple-queries/select.mdx",tags:[{label:"query",permalink:"/node-mysql2/pt-BR/docs/tags/query"}],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,tags:["query"]},sidebar:"examples",previous:{title:"INSERT",permalink:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/insert"},next:{title:"UPDATE",permalink:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/update"}},h={},p=[{value:"query(sql)",id:"querysql",level:2},{value:"query(options)",id:"queryoptions",level:2},{value:"query(options) \u2014 Row as Array",id:"queryoptions--row-as-array",level:2},{value:"Glossary",id:"glossary",level:2},{value:"QueryOptions",id:"queryoptions-1",level:3}];function x(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"select",children:"SELECT"}),"\n",(0,s.jsxs)(n.p,{children:["The examples below also work for the ",(0,s.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements/select",children:(0,s.jsx)(n.code,{children:"execute"})})," method."]}),"\n",(0,s.jsx)(n.h2,{id:"querysql",children:"query(sql)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"query(sql: string)"})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(o.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45';\n\n // highlight-next-line\n const [rows, fields] = await connection.query(sql);\n\n console.log(rows);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(o.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45';\n\nconnection.query(sql, (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows);\n console.log(fields);\n});\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"rows"})," contains rows returned by server"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about rows, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:".query()"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"queryoptions",children:"query(options)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["query(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(o.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45';\n\n // highlight-start\n const [rows, fields] = await connection.query({\n sql,\n // ... other options\n });\n // highlight-end\n\n console.log(rows);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(o.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45';\n\nconnection.query(\n {\n sql,\n // ... other options\n },\n (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"rows"})," contains rows returned by server"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about rows, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:".query()"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"queryoptions--row-as-array",children:"query(options) \u2014 Row as Array"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["query(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(o.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45';\n\n // highlight-start\n const [rows, fields] = await connection.query({\n sql,\n rowsAsArray: true,\n // ... other options\n });\n // highlight-end\n\n console.log(rows);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(o.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45';\n\nconnection.query(\n {\n sql,\n rowsAsArray: true,\n // ... other options\n },\n (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"rows"})," contains rows returned by server as array"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about rows, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:".query()"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,s.jsx)(n.h3,{id:"queryoptions-1",children:"QueryOptions"}),"\n",(0,s.jsx)(a.Z,{title:"QueryOptions Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function m(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(x,{...e})}):x(e)}},5162:(e,n,r)=>{r.d(n,{Z:()=>o});r(7294);var s=r(512);const t={tabItem:"tabItem_Ymn6"};var l=r(5893);function o(e){let{children:n,hidden:r,className:o}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,s.Z)(t.tabItem,o),hidden:r,children:n})}},4866:(e,n,r)=>{r.d(n,{Z:()=>v});var s=r(7294),t=r(512),l=r(2466),o=r(6550),a=r(469),i=r(1980),c=r(7392),u=r(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:r}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:r,attributes:s,default:t}}=e;return{value:n,label:r,attributes:s,default:t}}))}(r);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,r])}function p(e){let{value:n,tabValues:r}=e;return r.some((e=>e.value===n))}function x(e){let{queryString:n=!1,groupId:r}=e;const t=(0,o.k6)(),l=function(e){let{queryString:n=!1,groupId:r}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!r)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return r??null}({queryString:n,groupId:r});return[(0,i._X)(l),(0,s.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(t.location.search);n.set(l,e),t.replace({...t.location,search:n.toString()})}),[l,t])]}function m(e){const{defaultValue:n,queryString:r=!1,groupId:t}=e,l=h(e),[o,i]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:r}=e;if(0===r.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:r}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${r.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=r.find((e=>e.default))??r[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:l}))),[c,d]=x({queryString:r,groupId:t}),[m,g]=function(e){let{groupId:n}=e;const r=function(e){return e?`docusaurus.tab.${e}`:null}(n),[t,l]=(0,u.Nk)(r);return[t,(0,s.useCallback)((e=>{r&&l.set(e)}),[r,l])]}({groupId:t}),j=(()=>{const e=c??m;return p({value:e,tabValues:l})?e:null})();(0,a.Z)((()=>{j&&i(j)}),[j]);return{selectedValue:o,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),g(e)}),[d,g,l]),tabValues:l}}var g=r(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=r(5893);function b(e){let{className:n,block:r,selectedValue:s,selectValue:o,tabValues:a}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,l.o5)(),u=e=>{const n=e.currentTarget,r=i.indexOf(n),t=a[r].value;t!==s&&(c(n),o(t))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const r=i.indexOf(e.currentTarget)+1;n=i[r]??i[0];break}case"ArrowLeft":{const r=i.indexOf(e.currentTarget)-1;n=i[r]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,t.Z)("tabs",{"tabs--block":r},n),children:a.map((e=>{let{value:n,label:r,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>i.push(e),onKeyDown:d,onClick:u,...l,className:(0,t.Z)("tabs__item",j.tabItem,l?.className,{"tabs__item--active":s===n}),children:r??n},n)}))})}function y(e){let{lazy:n,children:r,selectedValue:t}=e;const l=(Array.isArray(r)?r:[r]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===t));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function q(e){const n=m(e);return(0,f.jsxs)("div",{className:(0,t.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(b,{...e,...n}),(0,f.jsx)(y,{...e,...n})]})}function v(e){const n=(0,g.Z)();return(0,f.jsx)(q,{...e,children:d(e.children)},String(n))}},4379:(e,n,r)=>{r.d(n,{I:()=>i});var s=r(7294),t=r(2263),l=r(9286),o=r(5893);const a=()=>(0,o.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:r,extractMethod:i,methodType:c}=e;const[u,d]=(0,s.useState)(""),[h,p]=(0,s.useState)(!0),[x,m]=(0,s.useState)(!0),{siteConfig:g}=(0,t.Z)(),j=g.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,s.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&c?((e,n,r)=>{const s=e.split("\n"),t=`${r} ${n}`;let l=!1,o=0,a="";for(const i of s)if(i.includes(t)&&(l=!0),l&&(i.includes("{")&&o++,a+=i+"\n",i.includes("}")&&(o--,0===o)))break;return a.trim()||e})(e,i,c):e;d(n||e),p(!1),m(!1)})).catch((()=>{m(!0),p(!1)})),()=>{e.abort()}}),[f,i,c]),(0,o.jsx)(o.Fragment,{children:h?(0,o.jsx)(a,{}):(0,o.jsx)(o.Fragment,{children:x?(0,o.jsxs)("div",{children:["Unable to access the requested link: ",(0,o.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,o.jsx)(l.Z,{className:`language-${r}`,children:u})})})}},6393:(e,n,r)=>{r.d(n,{Z:()=>l});var s=r(4673),t=r(5893);const l=e=>{let{children:n,open:r,title:l}=e;return(0,t.jsx)(s.Z,{open:r,className:"faq",summary:(0,t.jsx)("summary",{children:(0,t.jsx)("strong",{children:l})}),children:(0,t.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/9318259a.52119974.js b/pt-BR/assets/js/9318259a.52119974.js new file mode 100644 index 0000000000..8d2f1f103e --- /dev/null +++ b/pt-BR/assets/js/9318259a.52119974.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4503],{7122:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>u,contentTitle:()=>c,default:()=>h,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var o=s(5893),a=s(1151),r=s(4866),t=s(5162),l=s(4442);const i={slug:"/",position:1,title:"Guia R\xe1pido",description:"Cliente MySQL para Node.js com foco em performance"},c="MySQL2",d={id:"index",title:"Guia R\xe1pido",description:"Cliente MySQL para Node.js com foco em performance",source:"@site/i18n/pt-BR/docusaurus-plugin-content-docs/current/index.mdx",sourceDirName:".",slug:"/",permalink:"/node-mysql2/pt-BR/docs/",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/index.mdx",tags:[],version:"current",frontMatter:{slug:"/",position:1,title:"Guia R\xe1pido",description:"Cliente MySQL para Node.js com foco em performance"},sidebar:"docs",next:{title:"Hist\xf3ria e Porque o MySQL2",permalink:"/node-mysql2/pt-BR/docs/history-and-why-mysq2"}},u={},m=[{value:"Instala\xe7\xe3o",id:"instala\xe7\xe3o",level:2},{value:"Primeira Consulta (<em>Query</em>)",id:"primeira-consulta-query",level:3},{value:"Usando Instru\xe7\xf5es Preparadas (<em>Prepared Statements</em>)",id:"usando-instru\xe7\xf5es-preparadas-prepared-statements",level:3},{value:"Usando Conjunto de Conex\xf5es (<em>pools</em>)",id:"using-connection-pools",level:3},{value:"Usando o <em>Promise Wrapper</em>",id:"usando-o-promise-wrapper",level:3},{value:"Resultados em <em>Array</em>",id:"resultados-em-array",level:3},{value:"Connection Level",id:"connection-level",level:4},{value:"Query Level",id:"query-level",level:4}];function p(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",h4:"h4",hr:"hr",img:"img",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,a.a)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.V,{title:"MySQL2 | Guia R\xe1pido"}),"\n",(0,o.jsx)(n.h1,{id:"mysql2",children:"MySQL2"}),"\n","\n",(0,o.jsxs)(n.p,{children:["Cliente MySQL para Node.js com foco em performance. Suporta instru\xe7\xf5es preparadas (",(0,o.jsx)(n.em,{children:"prepared statements"}),"), Codifica\xe7\xf5es ",(0,o.jsx)(n.em,{children:"non-utf8"}),", protocolo de log bin\xe1rio (",(0,o.jsx)(n.em,{children:"binary log protocol"}),"), compress\xe3o, SSL e muito mais."]}),"\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.a,{href:"https://npmjs.org/package/mysql2",children:(0,o.jsx)(n.img,{src:"https://img.shields.io/npm/v/mysql2.svg",alt:"NPM Version"})}),"\n",(0,o.jsx)(n.a,{href:"https://npmjs.org/package/mysql2",children:(0,o.jsx)(n.img,{src:"https://img.shields.io/npm/dm/mysql2.svg",alt:"NPM Downloads"})}),"\n",(0,o.jsx)(n.a,{href:"https://nodejs.org/download/",children:(0,o.jsx)(n.img,{src:"https://img.shields.io/node/v/mysql2.svg",alt:"Node.js Version"})}),"\n",(0,o.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/blob/master/License",children:(0,o.jsx)(n.img,{src:"https://img.shields.io/npm/l/mysql2.svg?maxAge=2592000",alt:"License"})})]}),"\n",(0,o.jsx)(n.h2,{id:"instala\xe7\xe3o",children:"Instala\xe7\xe3o"}),"\n",(0,o.jsx)(n.p,{children:"O MySQL2 n\xe3o tem restri\xe7\xf5es nativas e pode ser instalado no Linux, Mac OS ou Windows sem qualquer problema."}),"\n",(0,o.jsxs)(r.Z,{children:[(0,o.jsx)(t.Z,{value:"JavaScript",default:!0,children:(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:"npm install --save mysql2\n"})})}),(0,o.jsxs)(t.Z,{value:"TypeScript",children:[(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:"npm install --save mysql2\nnpm install --save-dev @types/node\n"})}),(0,o.jsxs)(n.p,{children:["Para documenta\xe7\xe3o e exemplos usando TypeScript, veja ",(0,o.jsx)(n.a,{href:"/docs/documentation/typescript-examples",children:"aqui"}),"."]})]})]}),"\n",(0,o.jsx)(n.hr,{}),"\n",(0,o.jsxs)(n.h3,{id:"primeira-consulta-query",children:["Primeira Consulta (",(0,o.jsx)(n.em,{children:"Query"}),")"]}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.jsxs)(n.p,{children:["Para explorar mais exemplos de consulta (queries), visite a se\xe7\xe3o de exemplos ",(0,o.jsx)(n.a,{href:"/docs/examples/queries/simple-queries",children:(0,o.jsx)(n.strong,{children:"Consultas Simples"})})," e ",(0,o.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements",children:(0,o.jsxs)(n.strong,{children:["Instru\xe7\xf5es Preparadas (",(0,o.jsx)(n.em,{children:"Prepared Statements"}),")"]})}),"."]}),"\n"]}),"\n",(0,o.jsxs)(r.Z,{children:[(0,o.jsx)(t.Z,{value:"Promise",default:!0,children:(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",children:"// Obt\xe9m o cliente\nimport mysql from 'mysql2/promise';\n\n// Cria a conex\xe3o com o Banco de Dados\nconst connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// Consulta simples\ntry {\n const [results, fields] = await connection.query(\n 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45'\n );\n\n console.log(results); // \"results\" cont\xeam as linhas retornadas pelo servidor\n console.log(fields); // \"fields\" cont\xeam metadados adicionais sobre os resultados, quando dispon\xedveis\n} catch (err) {\n console.log(err);\n}\n\n// Utilizando espa\xe7os reservados (placeholders)\ntry {\n const [results] = await connection.query(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Page', 45]\n );\n\n console.log(results);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,o.jsx)(t.Z,{value:"Callback",children:(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",children:"// Obt\xe9m o cliente\nconst mysql = require('mysql2');\n\n// Cria a conex\xe3o com o Banco de Dados\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// Consulta simples\nconnection.query(\n 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45',\n function (err, results, fields) {\n console.log(results); // \"results\" cont\xeam as linhas retornadas pelo servidor\n console.log(fields); // \"fields\" cont\xeam metadados adicionais sobre os resultados, quando dispon\xedveis\n }\n);\n\n// Utilizando espa\xe7os reservados (placeholders)\nconnection.query(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Page', 45],\n function (err, results) {\n console.log(results);\n }\n);\n"})})})]}),"\n",(0,o.jsx)(n.hr,{}),"\n",(0,o.jsxs)(n.h3,{id:"usando-instru\xe7\xf5es-preparadas-prepared-statements",children:["Usando Instru\xe7\xf5es Preparadas (",(0,o.jsx)(n.em,{children:"Prepared Statements"}),")"]}),"\n",(0,o.jsx)(n.p,{children:"Com o MySQL2 voc\xea tamb\xe9m pode obter Instru\xe7\xf5es Preparadas (Prepared Statements). Dessa forma o MySQL n\xe3o precisa preparar um plano para a mesma consulta todas as vezes, resultando em um melhor desempenho. Se voc\xea n\xe3o sabe por que isso \xe9 importante, veja essa discuss\xe3o:"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsx)(n.li,{children:(0,o.jsxs)(n.a,{href:"https://stackoverflow.com/questions/8263371/how-can-prepared-statements-protect-from-sql-injection-attacks",children:["Como as instru\xe7\xf5es preparadas (",(0,o.jsx)(n.em,{children:"prepared statements"}),") podem proteger contra ataques de inje\xe7\xe3o SQL"]})}),"\n"]}),"\n",(0,o.jsxs)(n.p,{children:["O MySQL2 fornece o m\xe9todo auxiliar ",(0,o.jsx)(n.code,{children:"execute"})," que ir\xe1 preparar e consultar as declara\xe7\xf5es (",(0,o.jsx)(n.em,{children:"statements"}),") SQL. Al\xe9m disso, voc\xea tamb\xe9m pode usar os m\xe9todos ",(0,o.jsx)(n.code,{children:"prepare"})," e ",(0,o.jsx)(n.code,{children:"unprepare"})," para preparar ou desfazer a prepara\xe7\xe3o de declara\xe7\xf5es (",(0,o.jsx)(n.em,{children:"statements"}),") manualmente, se necess\xe1rio."]}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.jsxs)(n.p,{children:["Para explorar mais exemplos de Instru\xe7\xf5es Preparadas (",(0,o.jsx)(n.em,{children:"Prepared Statements"}),"), visite a se\xe7\xe3o de exemplos ",(0,o.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements",children:(0,o.jsxs)(n.strong,{children:["Instru\xe7\xf5es Preparadas (",(0,o.jsx)(n.em,{children:"Prepared Statements"}),")"]})}),"."]}),"\n"]}),"\n",(0,o.jsxs)(r.Z,{children:[(0,o.jsx)(t.Z,{value:"Promise",default:!0,children:(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // Cria a conex\xe3o com o Banco de Dados\n const connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n });\n\n // \"execute\" ir\xe1 chamar internamente a prepara\xe7\xe3o e a consulta (query)\n const [results, fields] = await connection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Rick C-137', 53]\n );\n\n console.log(results); // \"results\" cont\xeam as linhas retornadas pelo servidor\n console.log(fields); // \"fields\" cont\xeam metadados adicionais sobre os resultados, quando dispon\xedveis\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,o.jsx)(t.Z,{value:"Callback",children:(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\n// Cria a conex\xe3o com o Banco de Dados\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// \"execute\" ir\xe1 chamar internamente a prepara\xe7\xe3o e a consulta (query)\nconnection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Rick C-137', 53],\n function (err, results, fields) {\n console.log(results); // \"results\" cont\xeam as linhas retornadas pelo servidor\n console.log(fields); // \"fields\" cont\xeam metadados adicionais sobre os resultados, quando dispon\xedveis\n }\n);\n"})})})]}),"\n",(0,o.jsx)(n.admonition,{type:"tip",children:(0,o.jsx)(n.p,{children:"Se voc\xea executar a mesma declara\xe7\xe3o novamente, ela ser\xe1 selecionada a partir do LRU Cache, o que economizar\xe1 tempo de prepara\xe7\xe3o da consulta e proporcionar\xe1 melhor desempenho."})}),"\n",(0,o.jsx)(n.hr,{}),"\n",(0,o.jsxs)(n.h3,{id:"using-connection-pools",children:["Usando Conjunto de Conex\xf5es (",(0,o.jsx)(n.em,{children:"pools"}),")"]}),"\n",(0,o.jsxs)(n.p,{children:["O conjunto de conex\xf5es (",(0,o.jsx)(n.em,{children:"pools"}),") ajuda a reduzir o tempo gasto na conex\xe3o com o servidor MySQL, reutilizando uma conex\xe3o anterior e deixando-as abertas ao inv\xe9s de fech\xe1-las quando voc\xea termina de us\xe1-las."]}),"\n",(0,o.jsxs)(n.p,{children:["Isto melhora a lat\xeancia das consultas (",(0,o.jsx)(n.em,{children:"queries"}),"), pois evita toda a sobrecarga associada \xe0 cria\xe7\xe3o de uma nova conex\xe3o."]}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.jsxs)(n.p,{children:["Para explorar mais exemplos de Conjunto de Conex\xf5es (",(0,o.jsx)(n.em,{children:"pools"}),"), visite a se\xe7\xe3o de exemplos ",(0,o.jsx)(n.a,{href:"/docs/examples/connections/create-pool",children:(0,o.jsx)(n.strong,{children:"createPool"})}),"."]}),"\n"]}),"\n",(0,o.jsxs)(r.Z,{children:[(0,o.jsx)(t.Z,{value:"Promise",default:!0,children:(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\n// Cria a conex\xe3o (pool). As defini\xe7\xf5es espec\xedficadas do \"createPool\" s\xe3o as predefini\xe7\xf5es padr\xf5es\nconst pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n waitForConnections: true,\n connectionLimit: 10,\n maxIdle: 10, // M\xe1ximo de conex\xf5es inativas; o valor padr\xe3o \xe9 o mesmo que \"connectionLimit\"\n idleTimeout: 60000, // Tempo limite das conex\xf5es inativas em milissegundos; o valor padr\xe3o \xe9 \"60000\"\n queueLimit: 0,\n enableKeepAlive: true,\n keepAliveInitialDelay: 0,\n});\n"})})}),(0,o.jsx)(t.Z,{value:"Callback",children:(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\n// Cria a conex\xe3o (pool). As defini\xe7\xf5es espec\xedficadas do \"createPool\" s\xe3o as predefini\xe7\xf5es padr\xf5es\nconst pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n waitForConnections: true,\n connectionLimit: 10,\n maxIdle: 10, // M\xe1ximo de conex\xf5es inativas; o valor padr\xe3o \xe9 o mesmo que \"connectionLimit\"\n idleTimeout: 60000, // Tempo limite das conex\xf5es inativas em milissegundos; o valor padr\xe3o \xe9 \"60000\"\n queueLimit: 0,\n enableKeepAlive: true,\n keepAliveInitialDelay: 0,\n});\n"})})})]}),"\n",(0,o.jsx)(n.admonition,{type:"note",children:(0,o.jsxs)(n.p,{children:["O ",(0,o.jsx)(n.em,{children:"pool"})," n\xe3o estabelece todas as conex\xf5es previamente, mas as cria sob demanda at\xe9 que o limite de conex\xf5es seja atingido."]})}),"\n",(0,o.jsx)(n.hr,{}),"\n",(0,o.jsxs)(n.p,{children:["Voc\xea pode usar o ",(0,o.jsx)(n.em,{children:"pool"})," da mesma maneira como em uma conex\xe3o (usando ",(0,o.jsx)(n.code,{children:"pool.query()"})," e ",(0,o.jsx)(n.code,{children:"pool.execute()"}),"):"]}),"\n",(0,o.jsxs)(r.Z,{children:[(0,o.jsx)(t.Z,{value:"Promise",default:!0,children:(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",children:"try {\n // Para a inicializa\xe7\xe3o do \"pool\", veja acima\n const [rows, fields] = await pool.query('SELECT `field` FROM `table`');\n // A conex\xe3o \xe9 automaticamente liberada quando a consulta (query) \xe9 resolvida\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,o.jsx)(t.Z,{value:"Callback",children:(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",children:"// Para a inicializa\xe7\xe3o do \"pool\", veja acima\npool.query('SELECT `field` FROM `table`', function (err, rows, fields) {\n // A conex\xe3o \xe9 automaticamente liberada quando a consulta (query) \xe9 resolvida\n});\n"})})})]}),"\n",(0,o.jsx)(n.p,{children:"Alternativamente, tamb\xe9m existe a possibilidade de adquirir manualmente uma conex\xe3o do pool e liber\xe1-la posteriormente:"}),"\n",(0,o.jsxs)(r.Z,{children:[(0,o.jsx)(t.Z,{value:"Promise",default:!0,children:(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",children:'// Para a inicializa\xe7\xe3o do "pool", veja acima\nconst conn = await pool.getConnection();\n\n// Fazer algo com a conex\xe3o\nawait conn.query(/* ... */);\n\n// N\xe3o se esque\xe7a de liberar a conex\xe3o quando terminar!\npool.releaseConnection(conn);\n'})})}),(0,o.jsx)(t.Z,{value:"Callback",children:(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",children:'// Para a inicializa\xe7\xe3o do "pool", veja acima\npool.getConnection(function (err, conn) {\n // Fazer algo com a conex\xe3o\n conn.query(/* ... */);\n\n // N\xe3o se esque\xe7a de liberar a conex\xe3o quando terminar!\n pool.releaseConnection(conn);\n});\n'})})})]}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsxs)(n.p,{children:["Adicionalmente, voc\xea pode liberar a conex\xe3o usando o objeto ",(0,o.jsx)(n.code,{children:"connection"}),":"]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",children:"conn.release();\n"})}),"\n"]}),"\n"]}),"\n",(0,o.jsx)(n.hr,{}),"\n",(0,o.jsxs)(n.h3,{id:"usando-o-promise-wrapper",children:["Usando o ",(0,o.jsx)(n.em,{children:"Promise Wrapper"})]}),"\n",(0,o.jsxs)(n.p,{children:["O MySQL2 tamb\xe9m suporta ",(0,o.jsx)(n.em,{children:"Promise"})," API. O que funciona muito bem com o ES7 ",(0,o.jsx)(n.em,{children:"async await"}),"."]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nasync function main() {\n // Cria a conex\xe3o com o Banco de Dados\n const connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n });\n\n // Consulta no Banco de Dados\n const [rows, fields] = await connection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Morty', 14]\n );\n}\n"})}),"\n",(0,o.jsxs)(n.p,{children:["O MySQL2 usa o objeto ",(0,o.jsx)(n.em,{children:(0,o.jsx)(n.code,{children:"Promise"})})," padr\xe3o dispon\xedvel no escopo. Mas voc\xea pode escolher qual implementa\xe7\xe3o de ",(0,o.jsx)(n.em,{children:(0,o.jsx)(n.code,{children:"Promise"})})," deseja usar."]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",children:"// Obt\xe9m o cliente\nimport mysql from 'mysql2/promise';\n\n// Obt\xe9m a implementa\xe7\xe3o de \"Promise\" (n\xf3s usaremos o \"bluebird\")\nimport bluebird from 'bluebird';\n\n// Cria a conex\xe3o, especificando o \"bluebird\" como \"Promise\"\nconst connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n Promise: bluebird,\n});\n\n// Consulta no Banco de Dados\nconst [rows, fields] = await connection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Morty', 14]\n);\n"})}),"\n",(0,o.jsxs)(n.p,{children:["MySQL2 also exposes a ",(0,o.jsx)(n.code,{children:".promise()"})," function on Pools, so you can create a promise/non-promise connections from the same pool."]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2';\n\nasync function main() {\n // create the pool\n const pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n });\n\n // now get a Promise wrapped instance of that pool\n const promisePool = pool.promise();\n\n // query database using promises\n const [rows, fields] = await promisePool.query('SELECT 1');\n}\n"})}),"\n",(0,o.jsxs)(n.p,{children:["O MySQL2 tamb\xe9m exp\xf5e o m\xe9todo .promise() em ",(0,o.jsx)(n.em,{children:"Pools"}),', ent\xe3o voc\xea pode criar conex\xf5es "',(0,o.jsx)(n.em,{children:"promise/non-promise"}),'" para o mesmo ',(0,o.jsx)(n.em,{children:"pool"}),"."]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",metastring:"{11}",children:"const mysql = require('mysql2');\n\n// Cria a conex\xe3o\nconst conn = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\nconn\n .promise()\n .query('SELECT 1')\n .then(([rows, fields]) => {\n console.log(rows);\n })\n .catch(console.log)\n .then(() => conn.end());\n"})}),"\n",(0,o.jsx)(n.hr,{}),"\n",(0,o.jsxs)(n.h3,{id:"resultados-em-array",children:["Resultados em ",(0,o.jsx)(n.em,{children:"Array"})]}),"\n",(0,o.jsxs)(n.p,{children:["Se voc\xea tiver duas colunas com o mesmo nome, pode preferir receber os resultados como um ",(0,o.jsx)(n.em,{children:"array"}),", em vez de um objeto, para evitar conflitos. Isso \xe9 uma diverg\xeancia da biblioteca ",(0,o.jsx)(n.a,{href:"https://github.com/mysqljs/mysql",children:"Node MySQL"}),"."]}),"\n",(0,o.jsxs)(n.p,{children:["Por exemplo: ",(0,o.jsx)(n.code,{children:"SELECT 1 AS `foo`, 2 AS `foo`"}),"."]}),"\n",(0,o.jsx)(n.p,{children:"Voc\xea pode habilitar essa configura\xe7\xe3o tanto no n\xedvel de conex\xe3o (aplica-se a todas as consultas), quanto no n\xedvel de consulta (aplica-se apenas a essa consulta espec\xedfica)."}),"\n",(0,o.jsx)(n.h4,{id:"connection-level",children:"Connection Level"}),"\n",(0,o.jsxs)(r.Z,{children:[(0,o.jsx)(t.Z,{value:"Promise",default:!0,children:(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",metastring:"{5}",children:"const conn = await mysql.createConnection({\n host: 'localhost',\n database: 'test',\n user: 'root',\n rowsAsArray: true,\n});\n"})})}),(0,o.jsx)(t.Z,{value:"Callback",children:(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",metastring:"{5}",children:"const conn = mysql.createConnection({\n host: 'localhost',\n database: 'test',\n user: 'root',\n rowsAsArray: true,\n});\n"})})})]}),"\n",(0,o.jsx)(n.h4,{id:"query-level",children:"Query Level"}),"\n",(0,o.jsxs)(r.Z,{children:[(0,o.jsx)(t.Z,{value:"Promise",default:!0,children:(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",metastring:"{4}",children:'try {\n const [results, fields] = await conn.query({\n sql: \'SELECT 1 AS `foo`, 2 AS `foo`\',\n rowsAsArray: true,\n });\n\n console.log(results); // nessa consulta, "results" cont\xeam um array de arrays ao inv\xe9s de um array de objetos\n console.log(fields); // "fields" mant\xeam-se inalterados\n} catch (err) {\n console.log(err);\n}\n'})})}),(0,o.jsx)(t.Z,{value:"Callback",children:(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",metastring:"{4}",children:'conn.query(\n {\n sql: \'SELECT 1 AS `foo`, 2 AS `foo`\',\n rowsAsArray: true,\n },\n function (err, results, fields) {\n console.log(results); // nessa consulta, "results" cont\xeam um array de arrays ao inv\xe9s de um array de objetos\n console.log(fields); // "fields" mant\xeam-se inalterados\n }\n);\n'})})})]}),"\n",(0,o.jsx)(n.hr,{}),"\n",(0,o.jsx)(n.admonition,{title:"Obtendo Ajuda",type:"tip",children:(0,o.jsxs)(n.p,{children:["Precisa de ajuda? Fa\xe7a sua pergunta no ",(0,o.jsx)(n.a,{href:"https://stackoverflow.com/questions/tagged/mysql2",children:"Stack Overflow"})," ou ",(0,o.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/discussions",children:"GitHub"}),".\nSe voc\xea encontrou um erro, ",(0,o.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/issues",children:"registre-o no GitHub"}),"."]})})]})}function h(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(p,{...e})}):p(e)}},5162:(e,n,s)=>{s.d(n,{Z:()=>t});s(7294);var o=s(512);const a={tabItem:"tabItem_Ymn6"};var r=s(5893);function t(e){let{children:n,hidden:s,className:t}=e;return(0,r.jsx)("div",{role:"tabpanel",className:(0,o.Z)(a.tabItem,t),hidden:s,children:n})}},4866:(e,n,s)=>{s.d(n,{Z:()=>q});var o=s(7294),a=s(512),r=s(2466),t=s(6550),l=s(469),i=s(1980),c=s(7392),d=s(12);function u(e){return o.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,o.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:s}=e;return(0,o.useMemo)((()=>{const e=n??function(e){return u(e).map((e=>{let{props:{value:n,label:s,attributes:o,default:a}}=e;return{value:n,label:s,attributes:o,default:a}}))}(s);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,s])}function p(e){let{value:n,tabValues:s}=e;return s.some((e=>e.value===n))}function h(e){let{queryString:n=!1,groupId:s}=e;const a=(0,t.k6)(),r=function(e){let{queryString:n=!1,groupId:s}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!s)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:n,groupId:s});return[(0,i._X)(r),(0,o.useCallback)((e=>{if(!r)return;const n=new URLSearchParams(a.location.search);n.set(r,e),a.replace({...a.location,search:n.toString()})}),[r,a])]}function x(e){const{defaultValue:n,queryString:s=!1,groupId:a}=e,r=m(e),[t,i]=(0,o.useState)((()=>function(e){let{defaultValue:n,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:s}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const o=s.find((e=>e.default))??s[0];if(!o)throw new Error("Unexpected error: 0 tabValues");return o.value}({defaultValue:n,tabValues:r}))),[c,u]=h({queryString:s,groupId:a}),[x,j]=function(e){let{groupId:n}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,r]=(0,d.Nk)(s);return[a,(0,o.useCallback)((e=>{s&&r.set(e)}),[s,r])]}({groupId:a}),f=(()=>{const e=c??x;return p({value:e,tabValues:r})?e:null})();(0,l.Z)((()=>{f&&i(f)}),[f]);return{selectedValue:t,selectValue:(0,o.useCallback)((e=>{if(!p({value:e,tabValues:r}))throw new Error(`Can't select invalid tab value=${e}`);i(e),u(e),j(e)}),[u,j,r]),tabValues:r}}var j=s(2389);const f={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=s(5893);function b(e){let{className:n,block:s,selectedValue:o,selectValue:t,tabValues:l}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,r.o5)(),d=e=>{const n=e.currentTarget,s=i.indexOf(n),a=l[s].value;a!==o&&(c(n),t(a))},u=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const s=i.indexOf(e.currentTarget)+1;n=i[s]??i[0];break}case"ArrowLeft":{const s=i.indexOf(e.currentTarget)-1;n=i[s]??i[i.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":s},n),children:l.map((e=>{let{value:n,label:s,attributes:r}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:o===n?0:-1,"aria-selected":o===n,ref:e=>i.push(e),onKeyDown:u,onClick:d,...r,className:(0,a.Z)("tabs__item",f.tabItem,r?.className,{"tabs__item--active":o===n}),children:s??n},n)}))})}function v(e){let{lazy:n,children:s,selectedValue:a}=e;const r=(Array.isArray(s)?s:[s]).filter(Boolean);if(n){const e=r.find((e=>e.props.value===a));return e?(0,o.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:r.map(((e,n)=>(0,o.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function y(e){const n=x(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",f.tabList),children:[(0,g.jsx)(b,{...e,...n}),(0,g.jsx)(v,{...e,...n})]})}function q(e){const n=(0,j.Z)();return(0,g.jsx)(y,{...e,children:u(e.children)},String(n))}},4442:(e,n,s)=>{s.d(n,{V:()=>r});var o=s(5742),a=s(5893);const r=e=>{let{title:n}=e;return(0,a.jsx)(o.Z,{children:(0,a.jsx)("title",{children:n})})}},1151:(e,n,s)=>{s.d(n,{Z:()=>l,a:()=>t});var o=s(7294);const a={},r=o.createContext(a);function t(e){const n=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:t(e.components),o.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/9318259a.74964f81.js b/pt-BR/assets/js/9318259a.74964f81.js deleted file mode 100644 index 159834d263..0000000000 --- a/pt-BR/assets/js/9318259a.74964f81.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4503],{7122:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>u,contentTitle:()=>c,default:()=>h,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var s=o(5893),a=o(1151),r=o(4866),t=o(5162),l=o(4442);const i={slug:"/",position:1,title:"Guia R\xe1pido",description:"Cliente MySQL para Node.js com foco em performance"},c="MySQL2",d={id:"index",title:"Guia R\xe1pido",description:"Cliente MySQL para Node.js com foco em performance",source:"@site/i18n/pt-BR/docusaurus-plugin-content-docs/current/index.mdx",sourceDirName:".",slug:"/",permalink:"/node-mysql2/pt-BR/docs/",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/index.mdx",tags:[],version:"current",frontMatter:{slug:"/",position:1,title:"Guia R\xe1pido",description:"Cliente MySQL para Node.js com foco em performance"},sidebar:"docs",next:{title:"Hist\xf3ria e Porque o MySQL2",permalink:"/node-mysql2/pt-BR/docs/history-and-why-mysq2"}},u={},m=[{value:"Instala\xe7\xe3o",id:"instala\xe7\xe3o",level:2},{value:"Primeira Consulta (<em>Query</em>)",id:"primeira-consulta-query",level:3},{value:"Usando Instru\xe7\xf5es Preparadas (<em>Prepared Statements</em>)",id:"usando-instru\xe7\xf5es-preparadas-prepared-statements",level:3},{value:"Usando Conjunto de Conex\xf5es (<em>pools</em>)",id:"usando-conjunto-de-conex\xf5es-pools",level:3},{value:"Usando o <em>Promise Wrapper</em>",id:"usando-o-promise-wrapper",level:3},{value:"Resultados em <em>Array</em>",id:"resultados-em-array",level:3},{value:"Connection Level",id:"connection-level",level:4},{value:"Query Level",id:"query-level",level:4}];function p(e){const n={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",h4:"h4",hr:"hr",img:"img",li:"li",p:"p",pre:"pre",ul:"ul",...(0,a.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.V,{title:"MySQL2 | Guia R\xe1pido"}),"\n",(0,s.jsx)(n.h1,{id:"mysql2",children:"MySQL2"}),"\n","\n",(0,s.jsxs)(n.p,{children:["Cliente MySQL para Node.js com foco em performance. Suporta instru\xe7\xf5es preparadas (",(0,s.jsx)(n.em,{children:"prepared statements"}),"), Codifica\xe7\xf5es ",(0,s.jsx)(n.em,{children:"non-utf8"}),", protocolo de log bin\xe1rio (",(0,s.jsx)(n.em,{children:"binary log protocol"}),"), compress\xe3o, SSL e muito mais."]}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"https://npmjs.org/package/mysql2",children:(0,s.jsx)(n.img,{src:"https://img.shields.io/npm/v/mysql2.svg",alt:"NPM Version"})}),"\n",(0,s.jsx)(n.a,{href:"https://npmjs.org/package/mysql2",children:(0,s.jsx)(n.img,{src:"https://img.shields.io/npm/dm/mysql2.svg",alt:"NPM Downloads"})}),"\n",(0,s.jsx)(n.a,{href:"https://nodejs.org/download/",children:(0,s.jsx)(n.img,{src:"https://img.shields.io/node/v/mysql2.svg",alt:"Node.js Version"})}),"\n",(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/blob/master/License",children:(0,s.jsx)(n.img,{src:"https://img.shields.io/npm/l/mysql2.svg?maxAge=2592000",alt:"License"})})]}),"\n",(0,s.jsx)(n.h2,{id:"instala\xe7\xe3o",children:"Instala\xe7\xe3o"}),"\n",(0,s.jsx)(n.p,{children:"O MySQL2 n\xe3o tem restri\xe7\xf5es nativas e pode ser instalado no Linux, Mac OS ou Windows sem qualquer problema."}),"\n",(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(t.Z,{value:"JavaScript",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"npm install --save mysql2\n"})})}),(0,s.jsxs)(t.Z,{value:"TypeScript",children:[(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"npm install --save mysql2\nnpm install --save-dev @types/node\n"})}),(0,s.jsxs)(n.p,{children:["Para documenta\xe7\xe3o e exemplos usando TypeScript, veja ",(0,s.jsx)(n.a,{href:"/docs/documentation/typescript-examples",children:"aqui"}),"."]})]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsxs)(n.h3,{id:"primeira-consulta-query",children:["Primeira Consulta (",(0,s.jsx)(n.em,{children:"Query"}),")"]}),"\n",(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(t.Z,{value:"Promise",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"// Obt\xe9m o cliente\nimport mysql from 'mysql2/promise';\n\n// Cria a conex\xe3o com o Banco de Dados\nconst connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// Consulta simples\ntry {\n const [results, fields] = await connection.query(\n 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45'\n );\n\n console.log(results); // \"results\" cont\xeam as linhas retornadas pelo servidor\n console.log(fields); // \"fields\" cont\xeam metadados adicionais sobre os resultados, quando dispon\xedveis\n} catch (err) {\n console.log(err);\n}\n\n// Utilizando espa\xe7os reservados (placeholders)\ntry {\n const [results] = await connection.query(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Page', 45]\n );\n\n console.log(results);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(t.Z,{value:"Callback",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"// Obt\xe9m o cliente\nconst mysql = require('mysql2');\n\n// Cria a conex\xe3o com o Banco de Dados\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// Consulta simples\nconnection.query(\n 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45',\n function (err, results, fields) {\n console.log(results); // \"results\" cont\xeam as linhas retornadas pelo servidor\n console.log(fields); // \"fields\" cont\xeam metadados adicionais sobre os resultados, quando dispon\xedveis\n }\n);\n\n// Utilizando espa\xe7os reservados (placeholders)\nconnection.query(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Page', 45],\n function (err, results) {\n console.log(results);\n }\n);\n"})})})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsxs)(n.h3,{id:"usando-instru\xe7\xf5es-preparadas-prepared-statements",children:["Usando Instru\xe7\xf5es Preparadas (",(0,s.jsx)(n.em,{children:"Prepared Statements"}),")"]}),"\n",(0,s.jsx)(n.p,{children:"Com o MySQL2 voc\xea tamb\xe9m pode obter Instru\xe7\xf5es Preparadas (Prepared Statements). Dessa forma o MySQL n\xe3o precisa preparar um plano para a mesma consulta todas as vezes, resultando em um melhor desempenho. Se voc\xea n\xe3o sabe por que isso \xe9 importante, veja essa discuss\xe3o:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsxs)(n.a,{href:"https://stackoverflow.com/questions/8263371/how-can-prepared-statements-protect-from-sql-injection-attacks",children:["Como as instru\xe7\xf5es preparadas (",(0,s.jsx)(n.em,{children:"prepared statements"}),") podem proteger contra ataques de inje\xe7\xe3o SQL"]})}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["O MySQL2 fornece o m\xe9todo auxiliar ",(0,s.jsx)(n.code,{children:"execute"})," que ir\xe1 preparar e consultar as declara\xe7\xf5es (",(0,s.jsx)(n.em,{children:"statements"}),") SQL. Al\xe9m disso, voc\xea tamb\xe9m pode usar os m\xe9todos ",(0,s.jsx)(n.code,{children:"prepare"})," e ",(0,s.jsx)(n.code,{children:"unprepare"})," para preparar ou desfazer a prepara\xe7\xe3o de declara\xe7\xf5es (",(0,s.jsx)(n.em,{children:"statements"}),") manualmente, se necess\xe1rio."]}),"\n",(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(t.Z,{value:"Promise",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // Cria a conex\xe3o com o Banco de Dados\n const connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n });\n\n // \"execute\" ir\xe1 chamar internamente a prepara\xe7\xe3o e a consulta (query)\n const [results, fields] = await connection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Rick C-137', 53]\n );\n\n console.log(results); // \"results\" cont\xeam as linhas retornadas pelo servidor\n console.log(fields); // \"fields\" cont\xeam metadados adicionais sobre os resultados, quando dispon\xedveis\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(t.Z,{value:"Callback",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\n// Cria a conex\xe3o com o Banco de Dados\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// \"execute\" ir\xe1 chamar internamente a prepara\xe7\xe3o e a consulta (query)\nconnection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Rick C-137', 53],\n function (err, results, fields) {\n console.log(results); // \"results\" cont\xeam as linhas retornadas pelo servidor\n console.log(fields); // \"fields\" cont\xeam metadados adicionais sobre os resultados, quando dispon\xedveis\n }\n);\n"})})})]}),"\n",(0,s.jsx)(n.admonition,{type:"tip",children:(0,s.jsx)(n.p,{children:"Se voc\xea executar a mesma declara\xe7\xe3o novamente, ela ser\xe1 selecionada a partir do LRU Cache, o que economizar\xe1 tempo de prepara\xe7\xe3o da consulta e proporcionar\xe1 melhor desempenho."})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsxs)(n.h3,{id:"usando-conjunto-de-conex\xf5es-pools",children:["Usando Conjunto de Conex\xf5es (",(0,s.jsx)(n.em,{children:"pools"}),")"]}),"\n",(0,s.jsxs)(n.p,{children:["O conjunto de conex\xf5es (",(0,s.jsx)(n.em,{children:"pools"}),") ajuda a reduzir o tempo gasto na conex\xe3o com o servidor MySQL, reutilizando uma conex\xe3o anterior e deixando-as abertas ao inv\xe9s de fech\xe1-las quando voc\xea termina de us\xe1-las."]}),"\n",(0,s.jsxs)(n.p,{children:["Isto melhora a lat\xeancia das consultas (",(0,s.jsx)(n.em,{children:"queries"}),"), pois evita toda a sobrecarga associada \xe0 cria\xe7\xe3o de uma nova conex\xe3o."]}),"\n",(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(t.Z,{value:"Promise",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\n// Cria a conex\xe3o (pool). As defini\xe7\xf5es espec\xedficadas do \"createPool\" s\xe3o as predefini\xe7\xf5es padr\xf5es\nconst pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n waitForConnections: true,\n connectionLimit: 10,\n maxIdle: 10, // M\xe1ximo de conex\xf5es inativas; o valor padr\xe3o \xe9 o mesmo que \"connectionLimit\"\n idleTimeout: 60000, // Tempo limite das conex\xf5es inativas em milissegundos; o valor padr\xe3o \xe9 \"60000\"\n queueLimit: 0,\n enableKeepAlive: true,\n keepAliveInitialDelay: 0,\n});\n"})})}),(0,s.jsx)(t.Z,{value:"Callback",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\n// Cria a conex\xe3o (pool). As defini\xe7\xf5es espec\xedficadas do \"createPool\" s\xe3o as predefini\xe7\xf5es padr\xf5es\nconst pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n waitForConnections: true,\n connectionLimit: 10,\n maxIdle: 10, // M\xe1ximo de conex\xf5es inativas; o valor padr\xe3o \xe9 o mesmo que \"connectionLimit\"\n idleTimeout: 60000, // Tempo limite das conex\xf5es inativas em milissegundos; o valor padr\xe3o \xe9 \"60000\"\n queueLimit: 0,\n enableKeepAlive: true,\n keepAliveInitialDelay: 0,\n});\n"})})})]}),"\n",(0,s.jsx)(n.admonition,{type:"note",children:(0,s.jsxs)(n.p,{children:["O ",(0,s.jsx)(n.em,{children:"pool"})," n\xe3o estabelece todas as conex\xf5es previamente, mas as cria sob demanda at\xe9 que o limite de conex\xf5es seja atingido."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsxs)(n.p,{children:["Voc\xea pode usar o ",(0,s.jsx)(n.em,{children:"pool"})," da mesma maneira como em uma conex\xe3o (usando ",(0,s.jsx)(n.code,{children:"pool.query()"})," e ",(0,s.jsx)(n.code,{children:"pool.execute()"}),"):"]}),"\n",(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(t.Z,{value:"Promise",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n // Para a inicializa\xe7\xe3o do \"pool\", veja acima\n const [rows, fields] = await pool.query('SELECT `field` FROM `table`');\n // A conex\xe3o \xe9 automaticamente liberada quando a consulta (query) \xe9 resolvida\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(t.Z,{value:"Callback",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"// Para a inicializa\xe7\xe3o do \"pool\", veja acima\npool.query('SELECT `field` FROM `table`', function (err, rows, fields) {\n // A conex\xe3o \xe9 automaticamente liberada quando a consulta (query) \xe9 resolvida\n});\n"})})})]}),"\n",(0,s.jsx)(n.p,{children:"Alternativamente, tamb\xe9m existe a possibilidade de adquirir manualmente uma conex\xe3o do pool e liber\xe1-la posteriormente:"}),"\n",(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(t.Z,{value:"Promise",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:'// Para a inicializa\xe7\xe3o do "pool", veja acima\nconst conn = await pool.getConnection();\n\n// Fazer algo com a conex\xe3o\nawait conn.query(/* ... */);\n\n// N\xe3o se esque\xe7a de liberar a conex\xe3o quando terminar!\npool.releaseConnection(conn);\n'})})}),(0,s.jsx)(t.Z,{value:"Callback",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:'// Para a inicializa\xe7\xe3o do "pool", veja acima\npool.getConnection(function (err, conn) {\n // Fazer algo com a conex\xe3o\n conn.query(/* ... */);\n\n // N\xe3o se esque\xe7a de liberar a conex\xe3o quando terminar!\n pool.releaseConnection(conn);\n});\n'})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Adicionalmente, voc\xea pode liberar a conex\xe3o usando o objeto ",(0,s.jsx)(n.code,{children:"connection"}),":"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"conn.release();\n"})}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsxs)(n.h3,{id:"usando-o-promise-wrapper",children:["Usando o ",(0,s.jsx)(n.em,{children:"Promise Wrapper"})]}),"\n",(0,s.jsxs)(n.p,{children:["O MySQL2 tamb\xe9m suporta ",(0,s.jsx)(n.em,{children:"Promise"})," API. O que funciona muito bem com o ES7 ",(0,s.jsx)(n.em,{children:"async await"}),"."]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nasync function main() {\n // Cria a conex\xe3o com o Banco de Dados\n const connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n });\n\n // Consulta no Banco de Dados\n const [rows, fields] = await connection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Morty', 14]\n );\n}\n"})}),"\n",(0,s.jsxs)(n.p,{children:["O MySQL2 usa o objeto ",(0,s.jsx)(n.em,{children:(0,s.jsx)(n.code,{children:"Promise"})})," padr\xe3o dispon\xedvel no escopo. Mas voc\xea pode escolher qual implementa\xe7\xe3o de ",(0,s.jsx)(n.em,{children:(0,s.jsx)(n.code,{children:"Promise"})})," deseja usar."]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"// Obt\xe9m o cliente\nimport mysql from 'mysql2/promise';\n\n// Obt\xe9m a implementa\xe7\xe3o de \"Promise\" (n\xf3s usaremos o \"bluebird\")\nimport bluebird from 'bluebird';\n\n// Cria a conex\xe3o, especificando o \"bluebird\" como \"Promise\"\nconst connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n Promise: bluebird,\n});\n\n// Consulta no Banco de Dados\nconst [rows, fields] = await connection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Morty', 14]\n);\n"})}),"\n",(0,s.jsxs)(n.p,{children:["MySQL2 also exposes a ",(0,s.jsx)(n.code,{children:".promise()"})," function on Pools, so you can create a promise/non-promise connections from the same pool."]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2';\n\nasync function main() {\n // create the pool\n const pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n });\n\n // now get a Promise wrapped instance of that pool\n const promisePool = pool.promise();\n\n // query database using promises\n const [rows, fields] = await promisePool.query('SELECT 1');\n}\n"})}),"\n",(0,s.jsxs)(n.p,{children:["O MySQL2 tamb\xe9m exp\xf5e o m\xe9todo .promise() em ",(0,s.jsx)(n.em,{children:"Pools"}),', ent\xe3o voc\xea pode criar conex\xf5es "',(0,s.jsx)(n.em,{children:"promise/non-promise"}),'" para o mesmo ',(0,s.jsx)(n.em,{children:"pool"}),"."]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",metastring:"{11}",children:"const mysql = require('mysql2');\n\n// Cria a conex\xe3o\nconst conn = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\nconn\n .promise()\n .query('SELECT 1')\n .then(([rows, fields]) => {\n console.log(rows);\n })\n .catch(console.log)\n .then(() => conn.end());\n"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsxs)(n.h3,{id:"resultados-em-array",children:["Resultados em ",(0,s.jsx)(n.em,{children:"Array"})]}),"\n",(0,s.jsxs)(n.p,{children:["Se voc\xea tiver duas colunas com o mesmo nome, pode preferir receber os resultados como um ",(0,s.jsx)(n.em,{children:"array"}),", em vez de um objeto, para evitar conflitos. Isso \xe9 uma diverg\xeancia da biblioteca ",(0,s.jsx)(n.a,{href:"https://github.com/mysqljs/mysql",children:"Node MySQL"}),"."]}),"\n",(0,s.jsxs)(n.p,{children:["Por exemplo: ",(0,s.jsx)(n.code,{children:"SELECT 1 AS `foo`, 2 AS `foo`"}),"."]}),"\n",(0,s.jsx)(n.p,{children:"Voc\xea pode habilitar essa configura\xe7\xe3o tanto no n\xedvel de conex\xe3o (aplica-se a todas as consultas), quanto no n\xedvel de consulta (aplica-se apenas a essa consulta espec\xedfica)."}),"\n",(0,s.jsx)(n.h4,{id:"connection-level",children:"Connection Level"}),"\n",(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(t.Z,{value:"Promise",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",metastring:"{5}",children:"const conn = await mysql.createConnection({\n host: 'localhost',\n database: 'test',\n user: 'root',\n rowsAsArray: true,\n});\n"})})}),(0,s.jsx)(t.Z,{value:"Callback",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",metastring:"{5}",children:"const conn = mysql.createConnection({\n host: 'localhost',\n database: 'test',\n user: 'root',\n rowsAsArray: true,\n});\n"})})})]}),"\n",(0,s.jsx)(n.h4,{id:"query-level",children:"Query Level"}),"\n",(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(t.Z,{value:"Promise",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",metastring:"{4}",children:'try {\n const [results, fields] = await conn.query({\n sql: \'SELECT 1 AS `foo`, 2 AS `foo`\',\n rowsAsArray: true,\n });\n\n console.log(results); // nessa consulta, "results" cont\xeam um array de arrays ao inv\xe9s de um array de objetos\n console.log(fields); // "fields" mant\xeam-se inalterados\n} catch (err) {\n console.log(err);\n}\n'})})}),(0,s.jsx)(t.Z,{value:"Callback",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",metastring:"{4}",children:'conn.query(\n {\n sql: \'SELECT 1 AS `foo`, 2 AS `foo`\',\n rowsAsArray: true,\n },\n function (err, results, fields) {\n console.log(results); // nessa consulta, "results" cont\xeam um array de arrays ao inv\xe9s de um array de objetos\n console.log(fields); // "fields" mant\xeam-se inalterados\n }\n);\n'})})})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.admonition,{title:"Obtendo Ajuda",type:"tip",children:(0,s.jsxs)(n.p,{children:["Precisa de ajuda? Fa\xe7a sua pergunta no ",(0,s.jsx)(n.a,{href:"https://stackoverflow.com/questions/tagged/mysql2",children:"Stack Overflow"})," ou ",(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/discussions",children:"GitHub"}),".\nSe voc\xea encontrou um erro, ",(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/issues",children:"registre-o no GitHub"}),"."]})})]})}function h(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(p,{...e})}):p(e)}},5162:(e,n,o)=>{o.d(n,{Z:()=>t});o(7294);var s=o(512);const a={tabItem:"tabItem_Ymn6"};var r=o(5893);function t(e){let{children:n,hidden:o,className:t}=e;return(0,r.jsx)("div",{role:"tabpanel",className:(0,s.Z)(a.tabItem,t),hidden:o,children:n})}},4866:(e,n,o)=>{o.d(n,{Z:()=>q});var s=o(7294),a=o(512),r=o(2466),t=o(6550),l=o(469),i=o(1980),c=o(7392),d=o(12);function u(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:o}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return u(e).map((e=>{let{props:{value:n,label:o,attributes:s,default:a}}=e;return{value:n,label:o,attributes:s,default:a}}))}(o);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,o])}function p(e){let{value:n,tabValues:o}=e;return o.some((e=>e.value===n))}function h(e){let{queryString:n=!1,groupId:o}=e;const a=(0,t.k6)(),r=function(e){let{queryString:n=!1,groupId:o}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!o)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return o??null}({queryString:n,groupId:o});return[(0,i._X)(r),(0,s.useCallback)((e=>{if(!r)return;const n=new URLSearchParams(a.location.search);n.set(r,e),a.replace({...a.location,search:n.toString()})}),[r,a])]}function x(e){const{defaultValue:n,queryString:o=!1,groupId:a}=e,r=m(e),[t,i]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:o}=e;if(0===o.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:o}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${o.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=o.find((e=>e.default))??o[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:r}))),[c,u]=h({queryString:o,groupId:a}),[x,j]=function(e){let{groupId:n}=e;const o=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,r]=(0,d.Nk)(o);return[a,(0,s.useCallback)((e=>{o&&r.set(e)}),[o,r])]}({groupId:a}),f=(()=>{const e=c??x;return p({value:e,tabValues:r})?e:null})();(0,l.Z)((()=>{f&&i(f)}),[f]);return{selectedValue:t,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:r}))throw new Error(`Can't select invalid tab value=${e}`);i(e),u(e),j(e)}),[u,j,r]),tabValues:r}}var j=o(2389);const f={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var b=o(5893);function g(e){let{className:n,block:o,selectedValue:s,selectValue:t,tabValues:l}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,r.o5)(),d=e=>{const n=e.currentTarget,o=i.indexOf(n),a=l[o].value;a!==s&&(c(n),t(a))},u=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const o=i.indexOf(e.currentTarget)+1;n=i[o]??i[0];break}case"ArrowLeft":{const o=i.indexOf(e.currentTarget)-1;n=i[o]??i[i.length-1];break}}n?.focus()};return(0,b.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":o},n),children:l.map((e=>{let{value:n,label:o,attributes:r}=e;return(0,b.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>i.push(e),onKeyDown:u,onClick:d,...r,className:(0,a.Z)("tabs__item",f.tabItem,r?.className,{"tabs__item--active":s===n}),children:o??n},n)}))})}function v(e){let{lazy:n,children:o,selectedValue:a}=e;const r=(Array.isArray(o)?o:[o]).filter(Boolean);if(n){const e=r.find((e=>e.props.value===a));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,b.jsx)("div",{className:"margin-top--md",children:r.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function y(e){const n=x(e);return(0,b.jsxs)("div",{className:(0,a.Z)("tabs-container",f.tabList),children:[(0,b.jsx)(g,{...e,...n}),(0,b.jsx)(v,{...e,...n})]})}function q(e){const n=(0,j.Z)();return(0,b.jsx)(y,{...e,children:u(e.children)},String(n))}},4442:(e,n,o)=>{o.d(n,{V:()=>r});var s=o(5742),a=o(5893);const r=e=>{let{title:n}=e;return(0,a.jsx)(s.Z,{children:(0,a.jsx)("title",{children:n})})}},1151:(e,n,o)=>{o.d(n,{Z:()=>l,a:()=>t});var s=o(7294);const a={},r=s.createContext(a);function t(e){const n=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:t(e.components),s.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/935f2afb.aa918750.js b/pt-BR/assets/js/935f2afb.aa918750.js deleted file mode 100644 index d06c7760e0..0000000000 --- a/pt-BR/assets/js/935f2afb.aa918750.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[53],{1109:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"docs":[{"type":"link","label":"Guia R\xe1pido","href":"/node-mysql2/pt-BR/docs/","docId":"index","unlisted":false},{"type":"link","label":"Hist\xf3ria e Porque o MySQL2","href":"/node-mysql2/pt-BR/docs/history-and-why-mysq2","docId":"history-and-why-mysq2","unlisted":false},{"type":"link","label":"Stability Badges","href":"/node-mysql2/pt-BR/docs/stability-badges","docId":"stability-badges","unlisted":false},{"type":"category","label":"Documenta\xe7\xe3o","items":[{"type":"link","label":"Introduction","href":"/node-mysql2/pt-BR/docs/documentation","docId":"documentation/index","unlisted":false},{"type":"link","label":"Authentication Switch Request","href":"/node-mysql2/pt-BR/docs/documentation/authentication-switch","docId":"documentation/authentication-switch","unlisted":false},{"type":"link","label":"Extra Features","href":"/node-mysql2/pt-BR/docs/documentation/extras","docId":"documentation/extras","unlisted":false},{"type":"link","label":"MySQL Server API","href":"/node-mysql2/pt-BR/docs/documentation/mysql-server","docId":"documentation/mysql-server","unlisted":false},{"type":"link","label":"Prepared Statements","href":"/node-mysql2/pt-BR/docs/documentation/prepared-statements","docId":"documentation/prepared-statements","unlisted":false},{"type":"link","label":"Promise Wrappers","href":"/node-mysql2/pt-BR/docs/documentation/promise-wrapper","docId":"documentation/promise-wrapper","unlisted":false},{"type":"link","label":"Using MySQL2 with TypeScript","href":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","docId":"documentation/typescript-examples","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"link","label":"API e Configura\xe7\xe3o","href":"/node-mysql2/pt-BR/docs/api-and-configurations","docId":"api-and-configurations","unlisted":false},{"type":"link","label":"Agradecimentos","href":"/node-mysql2/pt-BR/docs/acknowledgements","docId":"acknowledgements","unlisted":false},{"type":"category","label":"Contribui\xe7\xf5es","items":[{"type":"link","label":"MySQL2","href":"/node-mysql2/pt-BR/docs/contributing","docId":"contributing/index","unlisted":false},{"type":"link","label":"Documentation Site","href":"/node-mysql2/pt-BR/docs/contributing/website","docId":"contributing/website","unlisted":false}],"collapsed":true,"collapsible":true}],"examples":[{"type":"link","label":"Introduction","href":"/node-mysql2/pt-BR/docs/examples","docId":"examples/index","unlisted":false},{"type":"link","label":"Binlog Watcher","href":"/node-mysql2/pt-BR/docs/examples/binlog-watcher","docId":"examples/binlog-watcher","unlisted":false},{"type":"link","label":"Connect Over Socks","href":"/node-mysql2/pt-BR/docs/examples/connect-over-socks","docId":"examples/connect-over-socks","unlisted":false},{"type":"link","label":"Execute","href":"/node-mysql2/pt-BR/docs/examples/execute","docId":"examples/execute","unlisted":false},{"type":"link","label":"MySQL Proxy","href":"/node-mysql2/pt-BR/docs/examples/mysqlproxy","docId":"examples/mysqlproxy","unlisted":false},{"type":"link","label":"Pass SHA","href":"/node-mysql2/pt-BR/docs/examples/pass-sha","docId":"examples/pass-sha","unlisted":false},{"type":"link","label":"Pool Test","href":"/node-mysql2/pt-BR/docs/examples/pool-test","docId":"examples/pool-test","unlisted":false},{"type":"link","label":"Prepared Statements","href":"/node-mysql2/pt-BR/docs/examples/prepare","docId":"examples/prepare","unlisted":false},{"type":"link","label":"Promise CO Await","href":"/node-mysql2/pt-BR/docs/examples/promise-co-await","docId":"examples/promise-co-await","unlisted":false},{"type":"category","label":"Queries","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"SELECT","href":"/node-mysql2/pt-BR/docs/examples/queries/select","docId":"examples/queries/select","unlisted":false}],"href":"/node-mysql2/pt-BR/docs/category/queries"},{"type":"link","label":"Server","href":"/node-mysql2/pt-BR/docs/examples/server","docId":"examples/server","unlisted":false},{"type":"category","label":"SSL","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"RDS SSL","href":"/node-mysql2/pt-BR/docs/examples/ssl/rds-ssl","docId":"examples/ssl/rds-ssl","unlisted":false},{"type":"link","label":"Select Over SSL","href":"/node-mysql2/pt-BR/docs/examples/ssl/select-over-ssl","docId":"examples/ssl/select-over-ssl","unlisted":false}],"href":"/node-mysql2/pt-BR/docs/category/ssl"},{"type":"category","label":"TypeScript","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Basic Custom Class","href":"/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-class","docId":"examples/typescript/basic-custom-class","unlisted":false},{"type":"category","label":"Procedure Call Packet","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Procedure Call Packet","href":"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/procedure-call-packet","docId":"examples/typescript/procedure-call/procedure-call-packet","unlisted":false},{"type":"link","label":"Procedure Call Packet (Row as Array)","href":"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-array","docId":"examples/typescript/procedure-call/row-as-array","unlisted":false}],"href":"/node-mysql2/pt-BR/docs/category/procedure-call-packet"},{"type":"category","label":"Row Data Packet","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Row Data Packet","href":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-data-packet","docId":"examples/typescript/row-data/row-data-packet","unlisted":false},{"type":"link","label":"Row Data Packet (Row as Array)","href":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array","docId":"examples/typescript/row-data/row-as-array","unlisted":false},{"type":"link","label":"Row Data Packet (Multi Statements)","href":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/multi-statements","docId":"examples/typescript/row-data/multi-statements","unlisted":false},{"type":"link","label":"Row Data Packet (Multi Statements and Row as Array)","href":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array-multi-statements","docId":"examples/typescript/row-data/row-as-array-multi-statements","unlisted":false}],"href":"/node-mysql2/pt-BR/docs/category/row-data-packet"}],"href":"/node-mysql2/pt-BR/docs/category/typescript"}],"faq":[{"type":"link","label":"Introduction","href":"/node-mysql2/pt-BR/docs/faq","docId":"faq/index","unlisted":false},{"type":"link","label":"How to handle errors?","href":"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors","docId":"faq/how-to-handle-errors","unlisted":false}]},"docs":{"acknowledgements":{"id":"acknowledgements","title":"Agradecimentos","description":"- O protocolo interno \xe9 escrito por @sidorares MySQL-Native","sidebar":"docs"},"api-and-configurations":{"id":"api-and-configurations","title":"API e Configura\xe7\xe3o","description":"O MySQL2 \xe9 maioritariamente compat\xedvel com a API do Node MySQL.","sidebar":"docs"},"contributing/index":{"id":"contributing/index","title":"MySQL2","description":"Quer melhorar algo no MySQL2?","sidebar":"docs"},"contributing/website":{"id":"contributing/website","title":"Documentation Site","description":"This website is built using Docusaurus 3, a modern static website generator.","sidebar":"docs"},"documentation/authentication-switch":{"id":"documentation/authentication-switch","title":"Authentication Switch Request","description":"During the connection phase the server may ask the client to switch to a different auth method.","sidebar":"docs"},"documentation/extras":{"id":"documentation/extras","title":"Extra Features","description":"Named placeholders","sidebar":"docs"},"documentation/index":{"id":"documentation/index","title":"Introduction","description":"[node-mysql]//github.com/mysqljs/mysql","sidebar":"docs"},"documentation/mysql-server":{"id":"documentation/mysql-server","title":"MySQL Server API","description":"Server","sidebar":"docs"},"documentation/prepared-statements":{"id":"documentation/prepared-statements","title":"Prepared Statements","description":"Automatic creation, cached and re-used by connection","sidebar":"docs"},"documentation/promise-wrapper":{"id":"documentation/promise-wrapper","title":"Promise Wrappers","description":"In addition to errback interface there is thin wrapper to expose Promise-based api","sidebar":"docs"},"documentation/typescript-examples":{"id":"documentation/typescript-examples","title":"Using MySQL2 with TypeScript","description":"Installation","sidebar":"docs"},"examples/binlog-watcher":{"id":"examples/binlog-watcher","title":"Binlog Watcher","description":"","sidebar":"examples"},"examples/connect-over-socks":{"id":"examples/connect-over-socks","title":"Connect Over Socks","description":"","sidebar":"examples"},"examples/execute":{"id":"examples/execute","title":"Execute","description":"","sidebar":"examples"},"examples/index":{"id":"examples/index","title":"Introduction","description":"Simple SELECT","sidebar":"examples"},"examples/mysqlproxy":{"id":"examples/mysqlproxy","title":"MySQL Proxy","description":"","sidebar":"examples"},"examples/pass-sha":{"id":"examples/pass-sha","title":"Pass SHA","description":"","sidebar":"examples"},"examples/pool-test":{"id":"examples/pool-test","title":"Pool Test","description":"","sidebar":"examples"},"examples/prepare":{"id":"examples/prepare","title":"Prepared Statements","description":"","sidebar":"examples"},"examples/promise-co-await":{"id":"examples/promise-co-await","title":"Promise CO Await","description":"","sidebar":"examples"},"examples/queries/select":{"id":"examples/queries/select","title":"SELECT","description":"","sidebar":"examples"},"examples/server":{"id":"examples/server","title":"Server","description":"","sidebar":"examples"},"examples/ssl/rds-ssl":{"id":"examples/ssl/rds-ssl","title":"RDS SSL","description":"","sidebar":"examples"},"examples/ssl/select-over-ssl":{"id":"examples/ssl/select-over-ssl","title":"Select Over SSL","description":"- See examples/ssl/certs.","sidebar":"examples"},"examples/typescript/basic-custom-class":{"id":"examples/typescript/basic-custom-class","title":"Basic Custom Class","description":"","sidebar":"examples"},"examples/typescript/procedure-call/procedure-call-packet":{"id":"examples/typescript/procedure-call/procedure-call-packet","title":"Procedure Call Packet","description":"","sidebar":"examples"},"examples/typescript/procedure-call/row-as-array":{"id":"examples/typescript/procedure-call/row-as-array","title":"Procedure Call Packet (Row as Array)","description":"","sidebar":"examples"},"examples/typescript/row-data/multi-statements":{"id":"examples/typescript/row-data/multi-statements","title":"Row Data Packet (Multi Statements)","description":"","sidebar":"examples"},"examples/typescript/row-data/row-as-array":{"id":"examples/typescript/row-data/row-as-array","title":"Row Data Packet (Row as Array)","description":"","sidebar":"examples"},"examples/typescript/row-data/row-as-array-multi-statements":{"id":"examples/typescript/row-data/row-as-array-multi-statements","title":"Row Data Packet (Multi Statements and Row as Array)","description":"","sidebar":"examples"},"examples/typescript/row-data/row-data-packet":{"id":"examples/typescript/row-data/row-data-packet","title":"Row Data Packet","description":"","sidebar":"examples"},"faq/how-to-handle-errors":{"id":"faq/how-to-handle-errors","title":"How to handle errors?","description":"This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as createConnection, createPool, createPoolCluster, execute and query.","sidebar":"faq"},"faq/index":{"id":"faq/index","title":"Introduction","description":"This section provides answers to commonly asked questions about MySQL2.","sidebar":"faq"},"history-and-why-mysq2":{"id":"history-and-why-mysq2","title":"Hist\xf3ria e Porque o MySQL2","description":"O projeto MySQL2 \xe9 uma continua\xe7\xe3o do MySQL-Native. O c\xf3digo do analisador de protocolo (protocol parser) foi reescrito do zero e a API foi alterada para corresponder ao popular mysqljs/mysql. A equipe do MySQL2 est\xe1 trabalhando em conjunto com a equipe do mysqljs/mysql para fatorar o c\xf3digo compartilhado e mov\xea-lo para a organiza\xe7\xe3o mysqljs.","sidebar":"docs"},"index":{"id":"index","title":"Guia R\xe1pido","description":"Cliente MySQL para Node.js com foco em performance","sidebar":"docs"},"stability-badges":{"id":"stability-badges","title":"Stability Badges","description":"The Stability Badges are indications of a section\'s stability.","sidebar":"docs"}}}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/935f2afb.bd1d6d5a.js b/pt-BR/assets/js/935f2afb.bd1d6d5a.js new file mode 100644 index 0000000000..1098752cc5 --- /dev/null +++ b/pt-BR/assets/js/935f2afb.bd1d6d5a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[53],{1109:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"docs":[{"type":"link","label":"Guia R\xe1pido","href":"/node-mysql2/pt-BR/docs/","docId":"index","unlisted":false},{"type":"link","label":"Hist\xf3ria e Porque o MySQL2","href":"/node-mysql2/pt-BR/docs/history-and-why-mysq2","docId":"history-and-why-mysq2","unlisted":false},{"type":"link","label":"Stability Badges","href":"/node-mysql2/pt-BR/docs/stability-badges","docId":"stability-badges","unlisted":false},{"type":"category","label":"Documenta\xe7\xe3o","items":[{"type":"link","label":"Introduction","href":"/node-mysql2/pt-BR/docs/documentation","docId":"documentation/index","unlisted":false},{"type":"link","label":"Authentication Switch Request","href":"/node-mysql2/pt-BR/docs/documentation/authentication-switch","docId":"documentation/authentication-switch","unlisted":false},{"type":"link","label":"Extra Features","href":"/node-mysql2/pt-BR/docs/documentation/extras","docId":"documentation/extras","unlisted":false},{"type":"link","label":"MySQL Server API","href":"/node-mysql2/pt-BR/docs/documentation/mysql-server","docId":"documentation/mysql-server","unlisted":false},{"type":"link","label":"Prepared Statements","href":"/node-mysql2/pt-BR/docs/documentation/prepared-statements","docId":"documentation/prepared-statements","unlisted":false},{"type":"link","label":"Promise Wrappers","href":"/node-mysql2/pt-BR/docs/documentation/promise-wrapper","docId":"documentation/promise-wrapper","unlisted":false},{"type":"link","label":"Using MySQL2 with TypeScript","href":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","docId":"documentation/typescript-examples","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"link","label":"API e Configura\xe7\xe3o","href":"/node-mysql2/pt-BR/docs/api-and-configurations","docId":"api-and-configurations","unlisted":false},{"type":"link","label":"Agradecimentos","href":"/node-mysql2/pt-BR/docs/acknowledgements","docId":"acknowledgements","unlisted":false},{"type":"category","label":"Contribui\xe7\xf5es","items":[{"type":"link","label":"MySQL2","href":"/node-mysql2/pt-BR/docs/contributing","docId":"contributing/index","unlisted":false},{"type":"link","label":"Documentation Site","href":"/node-mysql2/pt-BR/docs/contributing/website","docId":"contributing/website","unlisted":false}],"collapsed":true,"collapsible":true}],"examples":[{"type":"link","label":"Introduction","href":"/node-mysql2/pt-BR/docs/examples","docId":"examples/index","unlisted":false},{"type":"category","label":"Connections","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"createConnection","href":"/node-mysql2/pt-BR/docs/examples/connections/create-connection","docId":"examples/connections/create-connection","unlisted":false},{"type":"link","label":"createPool","href":"/node-mysql2/pt-BR/docs/examples/connections/create-pool","docId":"examples/connections/create-pool","unlisted":false},{"type":"link","label":"createPoolCluster","href":"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster","docId":"examples/connections/createPoolCluster","unlisted":false}]},{"type":"category","label":"Queries","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Simple Queries","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"INSERT","href":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/insert","docId":"examples/queries/simple-queries/insert","unlisted":false},{"type":"link","label":"SELECT","href":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/select","docId":"examples/queries/simple-queries/select","unlisted":false},{"type":"link","label":"UPDATE","href":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/update","docId":"examples/queries/simple-queries/update","unlisted":false},{"type":"link","label":"DELETE","href":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/delete","docId":"examples/queries/simple-queries/delete","unlisted":false}],"href":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/"},{"type":"category","label":"Prepared Statements","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"INSERT","href":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/insert","docId":"examples/queries/prepared-statements/insert","unlisted":false},{"type":"link","label":"SELECT","href":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/select","docId":"examples/queries/prepared-statements/select","unlisted":false},{"type":"link","label":"UPDATE","href":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/update","docId":"examples/queries/prepared-statements/update","unlisted":false},{"type":"link","label":"DELETE","href":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/delete","docId":"examples/queries/prepared-statements/delete","unlisted":false}],"href":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/"}]},{"type":"link","label":"Binlog Watcher","href":"/node-mysql2/pt-BR/docs/examples/binlog-watcher","docId":"examples/binlog-watcher","unlisted":false},{"type":"category","label":"Promise Wrapper","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"await \u2014 co","href":"/node-mysql2/pt-BR/docs/examples/promise-wrapper/co-await","docId":"examples/promise-wrapper/co-await","unlisted":false}]},{"type":"category","label":"Tests","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"MySQL Proxy","href":"/node-mysql2/pt-BR/docs/examples/tests/mysql-proxy","docId":"examples/tests/mysql-proxy","unlisted":false},{"type":"link","label":"Pool","href":"/node-mysql2/pt-BR/docs/examples/tests/pool","docId":"examples/tests/pool","unlisted":false},{"type":"link","label":"Server","href":"/node-mysql2/pt-BR/docs/examples/tests/server","docId":"examples/tests/server","unlisted":false}]},{"type":"category","label":"TypeScript","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Basic Custom Class","href":"/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-class","docId":"examples/typescript/basic-custom-class","unlisted":false},{"type":"category","label":"Procedure Call","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Procedure Call Packet","href":"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/index","docId":"examples/typescript/procedure-call/index","unlisted":false},{"type":"link","label":"Procedure Call Packet (Row as Array)","href":"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-array","docId":"examples/typescript/procedure-call/row-as-array","unlisted":false}]},{"type":"category","label":"Row Data","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Row Data Packet","href":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/index","docId":"examples/typescript/row-data/index","unlisted":false},{"type":"link","label":"Row Data Packet (Row as Array)","href":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array","docId":"examples/typescript/row-data/row-as-array","unlisted":false},{"type":"link","label":"Row Data Packet (Multi Statements)","href":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/multi-statements","docId":"examples/typescript/row-data/multi-statements","unlisted":false},{"type":"link","label":"Row Data Packet (Multi Statements and Row as Array)","href":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array-multi-statements","docId":"examples/typescript/row-data/row-as-array-multi-statements","unlisted":false}]}]}],"faq":[{"type":"link","label":"Introduction","href":"/node-mysql2/pt-BR/docs/faq","docId":"faq/index","unlisted":false},{"type":"link","label":"How to handle errors?","href":"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors","docId":"faq/how-to-handle-errors","unlisted":false}]},"docs":{"acknowledgements":{"id":"acknowledgements","title":"Agradecimentos","description":"- O protocolo interno \xe9 escrito por @sidorares MySQL-Native","sidebar":"docs"},"api-and-configurations":{"id":"api-and-configurations","title":"API e Configura\xe7\xe3o","description":"O MySQL2 \xe9 maioritariamente compat\xedvel com a API do Node MySQL.","sidebar":"docs"},"contributing/index":{"id":"contributing/index","title":"MySQL2","description":"Quer melhorar algo no MySQL2?","sidebar":"docs"},"contributing/website":{"id":"contributing/website","title":"Documentation Site","description":"This website is built using Docusaurus 3, a modern static website generator.","sidebar":"docs"},"documentation/authentication-switch":{"id":"documentation/authentication-switch","title":"Authentication Switch Request","description":"During the connection phase the server may ask the client to switch to a different auth method.","sidebar":"docs"},"documentation/extras":{"id":"documentation/extras","title":"Extra Features","description":"Named placeholders","sidebar":"docs"},"documentation/index":{"id":"documentation/index","title":"Introduction","description":"[node-mysql]//github.com/mysqljs/mysql","sidebar":"docs"},"documentation/mysql-server":{"id":"documentation/mysql-server","title":"MySQL Server API","description":"Server","sidebar":"docs"},"documentation/prepared-statements":{"id":"documentation/prepared-statements","title":"Prepared Statements","description":"Automatic creation, cached and re-used by connection","sidebar":"docs"},"documentation/promise-wrapper":{"id":"documentation/promise-wrapper","title":"Promise Wrappers","description":"In addition to errback interface there is thin wrapper to expose Promise-based api","sidebar":"docs"},"documentation/typescript-examples":{"id":"documentation/typescript-examples","title":"Using MySQL2 with TypeScript","description":"Installation","sidebar":"docs"},"examples/binlog-watcher":{"id":"examples/binlog-watcher","title":"Binlog Watcher","description":"","sidebar":"examples"},"examples/connections/create-connection":{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","sidebar":"examples"},"examples/connections/create-pool":{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","sidebar":"examples"},"examples/connections/createPoolCluster":{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","sidebar":"examples"},"examples/index":{"id":"examples/index","title":"Introduction","description":"To explore the examples, please use the sidebar navigation on desktop or access the menu on mobile devices.","sidebar":"examples"},"examples/promise-wrapper/co-await":{"id":"examples/promise-wrapper/co-await","title":"await \u2014 co","description":"","sidebar":"examples"},"examples/queries/prepared-statements/delete":{"id":"examples/queries/prepared-statements/delete","title":"DELETE","description":"execute(sql, values)","sidebar":"examples"},"examples/queries/prepared-statements/index":{"id":"examples/queries/prepared-statements/index","title":"Prepared Statements","description":"MySQL2 provides execute helper which will prepare and query the statement.","sidebar":"examples"},"examples/queries/prepared-statements/insert":{"id":"examples/queries/prepared-statements/insert","title":"INSERT","description":"execute(sql, values)","sidebar":"examples"},"examples/queries/prepared-statements/select":{"id":"examples/queries/prepared-statements/select","title":"SELECT","description":"execute(sql, values)","sidebar":"examples"},"examples/queries/prepared-statements/update":{"id":"examples/queries/prepared-statements/update","title":"UPDATE","description":"execute(sql, values)","sidebar":"examples"},"examples/queries/simple-queries/delete":{"id":"examples/queries/simple-queries/delete","title":"DELETE","description":"The examples below also work for the execute method.","sidebar":"examples"},"examples/queries/simple-queries/index":{"id":"examples/queries/simple-queries/index","title":"Simple Queries","description":"For Prepared Statements or Placeholders / Parameters examples, please see here.","sidebar":"examples"},"examples/queries/simple-queries/insert":{"id":"examples/queries/simple-queries/insert","title":"INSERT","description":"The examples below also work for the execute method.","sidebar":"examples"},"examples/queries/simple-queries/select":{"id":"examples/queries/simple-queries/select","title":"SELECT","description":"The examples below also work for the execute method.","sidebar":"examples"},"examples/queries/simple-queries/update":{"id":"examples/queries/simple-queries/update","title":"UPDATE","description":"The examples below also work for the execute method.","sidebar":"examples"},"examples/tests/mysql-proxy":{"id":"examples/tests/mysql-proxy","title":"MySQL Proxy","description":"","sidebar":"examples"},"examples/tests/pool":{"id":"examples/tests/pool","title":"Pool","description":"","sidebar":"examples"},"examples/tests/server":{"id":"examples/tests/server","title":"Server","description":"","sidebar":"examples"},"examples/typescript/basic-custom-class":{"id":"examples/typescript/basic-custom-class","title":"Basic Custom Class","description":"","sidebar":"examples"},"examples/typescript/procedure-call/index":{"id":"examples/typescript/procedure-call/index","title":"Procedure Call Packet","description":"","sidebar":"examples"},"examples/typescript/procedure-call/row-as-array":{"id":"examples/typescript/procedure-call/row-as-array","title":"Procedure Call Packet (Row as Array)","description":"","sidebar":"examples"},"examples/typescript/row-data/index":{"id":"examples/typescript/row-data/index","title":"Row Data Packet","description":"","sidebar":"examples"},"examples/typescript/row-data/multi-statements":{"id":"examples/typescript/row-data/multi-statements","title":"Row Data Packet (Multi Statements)","description":"","sidebar":"examples"},"examples/typescript/row-data/row-as-array":{"id":"examples/typescript/row-data/row-as-array","title":"Row Data Packet (Row as Array)","description":"","sidebar":"examples"},"examples/typescript/row-data/row-as-array-multi-statements":{"id":"examples/typescript/row-data/row-as-array-multi-statements","title":"Row Data Packet (Multi Statements and Row as Array)","description":"","sidebar":"examples"},"faq/how-to-handle-errors":{"id":"faq/how-to-handle-errors","title":"How to handle errors?","description":"This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as createConnection, createPool, createPoolCluster, execute and query.","sidebar":"faq"},"faq/index":{"id":"faq/index","title":"Introduction","description":"This section provides answers to commonly asked questions about MySQL2.","sidebar":"faq"},"history-and-why-mysq2":{"id":"history-and-why-mysq2","title":"Hist\xf3ria e Porque o MySQL2","description":"O projeto MySQL2 \xe9 uma continua\xe7\xe3o do MySQL-Native. O c\xf3digo do analisador de protocolo (protocol parser) foi reescrito do zero e a API foi alterada para corresponder ao popular mysqljs/mysql. A equipe do MySQL2 est\xe1 trabalhando em conjunto com a equipe do mysqljs/mysql para fatorar o c\xf3digo compartilhado e mov\xea-lo para a organiza\xe7\xe3o mysqljs.","sidebar":"docs"},"index":{"id":"index","title":"Guia R\xe1pido","description":"Cliente MySQL para Node.js com foco em performance","sidebar":"docs"},"stability-badges":{"id":"stability-badges","title":"Stability Badges","description":"The Stability Badges are indications of a section\'s stability.","sidebar":"docs"}}}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/93f3cbcf.ba8765bf.js b/pt-BR/assets/js/93f3cbcf.ba8765bf.js deleted file mode 100644 index ecfd127bc6..0000000000 --- a/pt-BR/assets/js/93f3cbcf.ba8765bf.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1883],{4972:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>p,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),s=t(1151),a=t(4866),o=t(5162);const l={},u="MySQL Proxy",c={id:"examples/mysqlproxy",title:"MySQL Proxy",description:"",source:"@site/docs/examples/mysqlproxy.mdx",sourceDirName:"examples",slug:"/examples/mysqlproxy",permalink:"/node-mysql2/pt-BR/docs/examples/mysqlproxy",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/mysqlproxy.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Execute",permalink:"/node-mysql2/pt-BR/docs/examples/execute"},next:{title:"Pass SHA",permalink:"/node-mysql2/pt-BR/docs/examples/pass-sha"}},i={},d=[];function m(e){const n={code:"code",h1:"h1",pre:"pre",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"mysql-proxy",children:"MySQL Proxy"}),"\n",(0,r.jsx)(a.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst ClientFlags = require('mysql2/lib/constants/client.js');\n\nconst server = mysql.createServer();\nserver.listen(3307);\n\nserver.on('connection', (conn) => {\n console.log('connection');\n\n conn.serverHandshake({\n protocolVersion: 10,\n serverVersion: 'node.js rocks',\n connectionId: 1234,\n statusFlags: 2,\n characterSet: 8,\n capabilityFlags: 0xffffff ^ ClientFlags.COMPRESS,\n });\n\n conn.on('field_list', (table, fields) => {\n console.log('field list:', table, fields);\n conn.writeEof();\n });\n\n const remote = mysql.createConnection({\n user: 'root',\n database: 'dbname',\n host: 'server.example.com',\n password: 'secret',\n });\n\n conn.on('query', (sql) => {\n console.log(`proxying query: ${sql}`);\n remote.query(sql, function (err) {\n // overloaded args, either (err, result :object)\n // or (err, rows :array, columns :array)\n if (Array.isArray(arguments[1])) {\n // response to a 'select', 'show' or similar\n const rows = arguments[1],\n columns = arguments[2];\n console.log('rows', rows);\n console.log('columns', columns);\n conn.writeTextResult(rows, columns);\n } else {\n // response to an 'insert', 'update' or 'delete'\n const result = arguments[1];\n console.log('result', result);\n conn.writeOk(result);\n }\n });\n });\n\n conn.on('end', remote.end.bind(remote));\n});\n"})})})})]})}function p(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const s={tabItem:"tabItem_Ymn6"};var a=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,r.Z)(s.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>q});var r=t(7294),s=t(512),a=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:s}}=e;return{value:n,label:t,attributes:r,default:s}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const s=(0,o.k6)(),a=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(a),(0,r.useCallback)((e=>{if(!a)return;const n=new URLSearchParams(s.location.search);n.set(a,e),s.replace({...s.location,search:n.toString()})}),[a,s])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:s}=e,a=m(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:a}))),[c,d]=f({queryString:t,groupId:s}),[b,h]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[s,a]=(0,i.Nk)(t);return[s,(0,r.useCallback)((e=>{t&&a.set(e)}),[t,a])]}({groupId:s}),y=(()=>{const e=c??b;return p({value:e,tabValues:a})?e:null})();(0,l.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,a]),tabValues:a}}var h=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=t(5893);function x(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,a.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),s=l[t].value;s!==r&&(c(n),o(s))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:a}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...a,className:(0,s.Z)("tabs__item",y.tabItem,a?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function g(e){let{lazy:n,children:t,selectedValue:s}=e;const a=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=a.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:a.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==s})))})}function w(e){const n=b(e);return(0,v.jsxs)("div",{className:(0,s.Z)("tabs-container",y.tabList),children:[(0,v.jsx)(x,{...e,...n}),(0,v.jsx)(g,{...e,...n})]})}function q(e){const n=(0,h.Z)();return(0,v.jsx)(w,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const s={},a=r.createContext(s);function o(e){const n=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),r.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/a55c4658.e08657d5.js b/pt-BR/assets/js/a55c4658.e08657d5.js new file mode 100644 index 0000000000..7efdbb4f73 --- /dev/null +++ b/pt-BR/assets/js/a55c4658.e08657d5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[452],{9547:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var s=r(5893),t=r(1151),l=r(4866),a=r(5162),o=r(6393),i=r(4379);const c={sidebar_position:0,tags:["query"]},u="INSERT",d={id:"examples/queries/simple-queries/insert",title:"INSERT",description:"The examples below also work for the execute method.",source:"@site/docs/examples/queries/simple-queries/insert.mdx",sourceDirName:"examples/queries/simple-queries",slug:"/examples/queries/simple-queries/insert",permalink:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/insert",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/simple-queries/insert.mdx",tags:[{label:"query",permalink:"/node-mysql2/pt-BR/docs/tags/query"}],version:"current",sidebarPosition:0,frontMatter:{sidebar_position:0,tags:["query"]},sidebar:"examples",previous:{title:"Simple Queries",permalink:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/"},next:{title:"SELECT",permalink:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/select"}},h={},p=[{value:"query(sql)",id:"querysql",level:2},{value:"query(options)",id:"queryoptions",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"QueryOptions",id:"queryoptions-1",level:3}];function m(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"insert",children:"INSERT"}),"\n",(0,s.jsxs)(n.p,{children:["The examples below also work for the ",(0,s.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements/insert",children:(0,s.jsx)(n.code,{children:"execute"})})," method."]}),"\n",(0,s.jsx)(n.h2,{id:"querysql",children:"query(sql)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"query(sql: string)"})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:'try {\n const sql =\n \'INSERT INTO `users`(`name`, `age`) VALUES ("Josh", 19), ("Page", 45)\';\n\n // highlight-next-line\n const [result, fields] = await connection.query(sql);\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n'})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:'const sql =\n \'INSERT INTO `users`(`name`, `age`) VALUES ("Josh", 19), ("Page", 45)\';\n\nconnection.query(sql, (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n});\n'})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:".query()"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"queryoptions",children:"query(options)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["query(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:'try {\n const sql =\n \'INSERT INTO `users`(`name`, `age`) VALUES ("Josh", 19), ("Page", 45)\';\n\n // highlight-start\n const [result, fields] = await connection.query({\n sql,\n // ... other options\n });\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n'})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:'const sql =\n \'INSERT INTO `users`(`name`, `age`) VALUES ("Josh", 19), ("Page", 45)\';\n\nconnection.query(\n {\n sql,\n // ... other options\n },\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n'})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:".query()"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,s.jsx)(n.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,s.jsx)(o.Z,{title:"ResultSetHeader Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts",extractMethod:"ResultSetHeader",methodType:"interface"})}),"\n",(0,s.jsx)(n.h3,{id:"queryoptions-1",children:"QueryOptions"}),"\n",(0,s.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function x(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},5162:(e,n,r)=>{r.d(n,{Z:()=>a});r(7294);var s=r(512);const t={tabItem:"tabItem_Ymn6"};var l=r(5893);function a(e){let{children:n,hidden:r,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,s.Z)(t.tabItem,a),hidden:r,children:n})}},4866:(e,n,r)=>{r.d(n,{Z:()=>v});var s=r(7294),t=r(512),l=r(2466),a=r(6550),o=r(469),i=r(1980),c=r(7392),u=r(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:r}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:r,attributes:s,default:t}}=e;return{value:n,label:r,attributes:s,default:t}}))}(r);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,r])}function p(e){let{value:n,tabValues:r}=e;return r.some((e=>e.value===n))}function m(e){let{queryString:n=!1,groupId:r}=e;const t=(0,a.k6)(),l=function(e){let{queryString:n=!1,groupId:r}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!r)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return r??null}({queryString:n,groupId:r});return[(0,i._X)(l),(0,s.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(t.location.search);n.set(l,e),t.replace({...t.location,search:n.toString()})}),[l,t])]}function x(e){const{defaultValue:n,queryString:r=!1,groupId:t}=e,l=h(e),[a,i]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:r}=e;if(0===r.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:r}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${r.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=r.find((e=>e.default))??r[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:l}))),[c,d]=m({queryString:r,groupId:t}),[x,f]=function(e){let{groupId:n}=e;const r=function(e){return e?`docusaurus.tab.${e}`:null}(n),[t,l]=(0,u.Nk)(r);return[t,(0,s.useCallback)((e=>{r&&l.set(e)}),[r,l])]}({groupId:t}),b=(()=>{const e=c??x;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{b&&i(b)}),[b]);return{selectedValue:a,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),f(e)}),[d,f,l]),tabValues:l}}var f=r(2389);const b={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=r(5893);function j(e){let{className:n,block:r,selectedValue:s,selectValue:a,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,l.o5)(),u=e=>{const n=e.currentTarget,r=i.indexOf(n),t=o[r].value;t!==s&&(c(n),a(t))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const r=i.indexOf(e.currentTarget)+1;n=i[r]??i[0];break}case"ArrowLeft":{const r=i.indexOf(e.currentTarget)-1;n=i[r]??i[i.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,t.Z)("tabs",{"tabs--block":r},n),children:o.map((e=>{let{value:n,label:r,attributes:l}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>i.push(e),onKeyDown:d,onClick:u,...l,className:(0,t.Z)("tabs__item",b.tabItem,l?.className,{"tabs__item--active":s===n}),children:r??n},n)}))})}function q(e){let{lazy:n,children:r,selectedValue:t}=e;const l=(Array.isArray(r)?r:[r]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===t));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function y(e){const n=x(e);return(0,g.jsxs)("div",{className:(0,t.Z)("tabs-container",b.tabList),children:[(0,g.jsx)(j,{...e,...n}),(0,g.jsx)(q,{...e,...n})]})}function v(e){const n=(0,f.Z)();return(0,g.jsx)(y,{...e,children:d(e.children)},String(n))}},4379:(e,n,r)=>{r.d(n,{I:()=>i});var s=r(7294),t=r(2263),l=r(9286),a=r(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:r,extractMethod:i,methodType:c}=e;const[u,d]=(0,s.useState)(""),[h,p]=(0,s.useState)(!0),[m,x]=(0,s.useState)(!0),{siteConfig:f}=(0,t.Z)(),b=f.baseUrl.replace(/\/$/,""),g=/^\//.test(n)?`${b}${n}`:n;return(0,s.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(g,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&c?((e,n,r)=>{const s=e.split("\n"),t=`${r} ${n}`;let l=!1,a=0,o="";for(const i of s)if(i.includes(t)&&(l=!0),l&&(i.includes("{")&&a++,o+=i+"\n",i.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,i,c):e;d(n||e),p(!1),x(!1)})).catch((()=>{x(!0),p(!1)})),()=>{e.abort()}}),[g,i,c]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:m?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:g}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${r}`,children:u})})})}},6393:(e,n,r)=>{r.d(n,{Z:()=>l});var s=r(4673),t=r(5893);const l=e=>{let{children:n,open:r,title:l}=e;return(0,t.jsx)(s.Z,{open:r,className:"faq",summary:(0,t.jsx)("summary",{children:(0,t.jsx)("strong",{children:l})}),children:(0,t.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/a74a0c51.07cdad9e.js b/pt-BR/assets/js/a74a0c51.07cdad9e.js new file mode 100644 index 0000000000..292bfccb8e --- /dev/null +++ b/pt-BR/assets/js/a74a0c51.07cdad9e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9085],{1774:e=>{e.exports=JSON.parse('{"label":"URI","permalink":"/node-mysql2/pt-BR/docs/tags/uri","allTagsPath":"/node-mysql2/pt-BR/docs/tags","count":3,"items":[{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/pt-BR/docs/examples/connections/create-connection"},{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/pt-BR/docs/examples/connections/create-pool"},{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/a94703ab.10844fc8.js b/pt-BR/assets/js/a94703ab.265346fe.js similarity index 99% rename from pt-BR/assets/js/a94703ab.10844fc8.js rename to pt-BR/assets/js/a94703ab.265346fe.js index 8c71625a78..1b13e4354a 100644 --- a/pt-BR/assets/js/a94703ab.10844fc8.js +++ b/pt-BR/assets/js/a94703ab.265346fe.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4368],{2674:(e,t,n)=>{n.r(t),n.d(t,{default:()=>be});var a=n(7294),o=n(512),i=n(1944),s=n(5281),l=n(3438),r=n(1116),c=n(5999),d=n(2466),u=n(5936);const m={backToTopButton:"backToTopButton_sjWU",backToTopButtonShow:"backToTopButtonShow_xfvO"};var b=n(5893);function h(){const{shown:e,scrollToTop:t}=function(e){let{threshold:t}=e;const[n,o]=(0,a.useState)(!1),i=(0,a.useRef)(!1),{startScroll:s,cancelScroll:l}=(0,d.Ct)();return(0,d.RF)(((e,n)=>{let{scrollY:a}=e;const s=n?.scrollY;s&&(i.current?i.current=!1:a>=s?(l(),o(!1)):a<t?o(!1):a+window.innerHeight<document.documentElement.scrollHeight&&o(!0))})),(0,u.S)((e=>{e.location.hash&&(i.current=!0,o(!1))})),{shown:n,scrollToTop:()=>s(0)}}({threshold:300});return(0,b.jsx)("button",{"aria-label":(0,c.I)({id:"theme.BackToTopButton.buttonAriaLabel",message:"Scroll back to top",description:"The ARIA label for the back to top button"}),className:(0,o.Z)("clean-btn",s.k.common.backToTopButton,m.backToTopButton,e&&m.backToTopButtonShow),type:"button",onClick:t})}var p=n(1442),x=n(6550),f=n(7524),j=n(6668),k=n(1327);function _(e){return(0,b.jsx)("svg",{width:"20",height:"20","aria-hidden":"true",...e,children:(0,b.jsxs)("g",{fill:"#7a7a7a",children:[(0,b.jsx)("path",{d:"M9.992 10.023c0 .2-.062.399-.172.547l-4.996 7.492a.982.982 0 01-.828.454H1c-.55 0-1-.453-1-1 0-.2.059-.403.168-.551l4.629-6.942L.168 3.078A.939.939 0 010 2.528c0-.548.45-.997 1-.997h2.996c.352 0 .649.18.828.45L9.82 9.472c.11.148.172.347.172.55zm0 0"}),(0,b.jsx)("path",{d:"M19.98 10.023c0 .2-.058.399-.168.547l-4.996 7.492a.987.987 0 01-.828.454h-3c-.547 0-.996-.453-.996-1 0-.2.059-.403.168-.551l4.625-6.942-4.625-6.945a.939.939 0 01-.168-.55 1 1 0 01.996-.997h3c.348 0 .649.18.828.45l4.996 7.492c.11.148.168.347.168.55zm0 0"})]})})}const v={collapseSidebarButton:"collapseSidebarButton_PEFL",collapseSidebarButtonIcon:"collapseSidebarButtonIcon_kv0_"};function g(e){let{onClick:t}=e;return(0,b.jsx)("button",{type:"button",title:(0,c.I)({id:"theme.docs.sidebar.collapseButtonTitle",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),"aria-label":(0,c.I)({id:"theme.docs.sidebar.collapseButtonAriaLabel",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),className:(0,o.Z)("button button--secondary button--outline",v.collapseSidebarButton),onClick:t,children:(0,b.jsx)(_,{className:v.collapseSidebarButtonIcon})})}var C=n(9689),S=n(902);const I=Symbol("EmptyContext"),N=a.createContext(I);function T(e){let{children:t}=e;const[n,o]=(0,a.useState)(null),i=(0,a.useMemo)((()=>({expandedItem:n,setExpandedItem:o})),[n]);return(0,b.jsx)(N.Provider,{value:i,children:t})}var B=n(6043),Z=n(8596),A=n(9960),L=n(2389);function y(e){let{collapsed:t,categoryLabel:n,onClick:a}=e;return(0,b.jsx)("button",{"aria-label":t?(0,c.I)({id:"theme.DocSidebarItem.expandCategoryAriaLabel",message:"Expand sidebar category '{label}'",description:"The ARIA label to expand the sidebar category"},{label:n}):(0,c.I)({id:"theme.DocSidebarItem.collapseCategoryAriaLabel",message:"Collapse sidebar category '{label}'",description:"The ARIA label to collapse the sidebar category"},{label:n}),type:"button",className:"clean-btn menu__caret",onClick:a})}function w(e){let{item:t,onItemClick:n,activePath:i,level:r,index:c,...d}=e;const{items:u,label:m,collapsible:h,className:p,href:x}=t,{docs:{sidebar:{autoCollapseCategories:f}}}=(0,j.L)(),k=function(e){const t=(0,L.Z)();return(0,a.useMemo)((()=>e.href&&!e.linkUnlisted?e.href:!t&&e.collapsible?(0,l.LM)(e):void 0),[e,t])}(t),_=(0,l._F)(t,i),v=(0,Z.Mg)(x,i),{collapsed:g,setCollapsed:C}=(0,B.u)({initialState:()=>!!h&&(!_&&t.collapsed)}),{expandedItem:T,setExpandedItem:w}=function(){const e=(0,a.useContext)(N);if(e===I)throw new S.i6("DocSidebarItemsExpandedStateProvider");return e}(),E=function(e){void 0===e&&(e=!g),w(e?null:c),C(e)};return function(e){let{isActive:t,collapsed:n,updateCollapsed:o}=e;const i=(0,S.D9)(t);(0,a.useEffect)((()=>{t&&!i&&n&&o(!1)}),[t,i,n,o])}({isActive:_,collapsed:g,updateCollapsed:E}),(0,a.useEffect)((()=>{h&&null!=T&&T!==c&&f&&C(!0)}),[h,T,c,C,f]),(0,b.jsxs)("li",{className:(0,o.Z)(s.k.docs.docSidebarItemCategory,s.k.docs.docSidebarItemCategoryLevel(r),"menu__list-item",{"menu__list-item--collapsed":g},p),children:[(0,b.jsxs)("div",{className:(0,o.Z)("menu__list-item-collapsible",{"menu__list-item-collapsible--active":v}),children:[(0,b.jsx)(A.Z,{className:(0,o.Z)("menu__link",{"menu__link--sublist":h,"menu__link--sublist-caret":!x&&h,"menu__link--active":_}),onClick:h?e=>{n?.(t),x?E(!1):(e.preventDefault(),E())}:()=>{n?.(t)},"aria-current":v?"page":void 0,"aria-expanded":h?!g:void 0,href:h?k??"#":k,...d,children:m}),x&&h&&(0,b.jsx)(y,{collapsed:g,categoryLabel:m,onClick:e=>{e.preventDefault(),E()}})]}),(0,b.jsx)(B.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:g,children:(0,b.jsx)(V,{items:u,tabIndex:g?-1:0,onItemClick:n,activePath:i,level:r+1})})]})}var E=n(3919),H=n(9471);const M={menuExternalLink:"menuExternalLink_NmtK"};function R(e){let{item:t,onItemClick:n,activePath:a,level:i,index:r,...c}=e;const{href:d,label:u,className:m,autoAddBaseUrl:h}=t,p=(0,l._F)(t,a),x=(0,E.Z)(d);return(0,b.jsx)("li",{className:(0,o.Z)(s.k.docs.docSidebarItemLink,s.k.docs.docSidebarItemLinkLevel(i),"menu__list-item",m),children:(0,b.jsxs)(A.Z,{className:(0,o.Z)("menu__link",!x&&M.menuExternalLink,{"menu__link--active":p}),autoAddBaseUrl:h,"aria-current":p?"page":void 0,to:d,...x&&{onClick:n?()=>n(t):void 0},...c,children:[u,!x&&(0,b.jsx)(H.Z,{})]})},u)}const W={menuHtmlItem:"menuHtmlItem_M9Kj"};function F(e){let{item:t,level:n,index:a}=e;const{value:i,defaultStyle:l,className:r}=t;return(0,b.jsx)("li",{className:(0,o.Z)(s.k.docs.docSidebarItemLink,s.k.docs.docSidebarItemLinkLevel(n),l&&[W.menuHtmlItem,"menu__list-item"],r),dangerouslySetInnerHTML:{__html:i}},a)}function P(e){let{item:t,...n}=e;switch(t.type){case"category":return(0,b.jsx)(w,{item:t,...n});case"html":return(0,b.jsx)(F,{item:t,...n});default:return(0,b.jsx)(R,{item:t,...n})}}function D(e){let{items:t,...n}=e;const a=(0,l.f)(t,n.activePath);return(0,b.jsx)(T,{children:a.map(((e,t)=>(0,b.jsx)(P,{item:e,index:t,...n},t)))})}const V=(0,a.memo)(D),U={menu:"menu_SIkG",menuWithAnnouncementBar:"menuWithAnnouncementBar_GW3s"};function K(e){let{path:t,sidebar:n,className:i}=e;const l=function(){const{isActive:e}=(0,C.nT)(),[t,n]=(0,a.useState)(e);return(0,d.RF)((t=>{let{scrollY:a}=t;e&&n(0===a)}),[e]),e&&t}();return(0,b.jsx)("nav",{"aria-label":(0,c.I)({id:"theme.docs.sidebar.navAriaLabel",message:"Docs sidebar",description:"The ARIA label for the sidebar navigation"}),className:(0,o.Z)("menu thin-scrollbar",U.menu,l&&U.menuWithAnnouncementBar,i),children:(0,b.jsx)("ul",{className:(0,o.Z)(s.k.docs.docSidebarMenu,"menu__list"),children:(0,b.jsx)(V,{items:n,activePath:t,level:1})})})}const Y="sidebar_njMd",z="sidebarWithHideableNavbar_wUlq",G="sidebarHidden_VK0M",O="sidebarLogo_isFc";function q(e){let{path:t,sidebar:n,onCollapse:a,isHidden:i}=e;const{navbar:{hideOnScroll:s},docs:{sidebar:{hideable:l}}}=(0,j.L)();return(0,b.jsxs)("div",{className:(0,o.Z)(Y,s&&z,i&&G),children:[s&&(0,b.jsx)(k.Z,{tabIndex:-1,className:O}),(0,b.jsx)(K,{path:t,sidebar:n}),l&&(0,b.jsx)(g,{onClick:a})]})}const J=a.memo(q);var Q=n(3102),X=n(3163);const $=e=>{let{sidebar:t,path:n}=e;const a=(0,X.e)();return(0,b.jsx)("ul",{className:(0,o.Z)(s.k.docs.docSidebarMenu,"menu__list"),children:(0,b.jsx)(V,{items:t,activePath:n,onItemClick:e=>{"category"===e.type&&e.href&&a.toggle(),"link"===e.type&&a.toggle()},level:1})})};function ee(e){return(0,b.jsx)(Q.Zo,{component:$,props:e})}const te=a.memo(ee);function ne(e){const t=(0,f.i)(),n="desktop"===t||"ssr"===t,a="mobile"===t;return(0,b.jsxs)(b.Fragment,{children:[n&&(0,b.jsx)(J,{...e}),a&&(0,b.jsx)(te,{...e})]})}const ae={expandButton:"expandButton_TmdG",expandButtonIcon:"expandButtonIcon_i1dp"};function oe(e){let{toggleSidebar:t}=e;return(0,b.jsx)("div",{className:ae.expandButton,title:(0,c.I)({id:"theme.docs.sidebar.expandButtonTitle",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),"aria-label":(0,c.I)({id:"theme.docs.sidebar.expandButtonAriaLabel",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),tabIndex:0,role:"button",onKeyDown:t,onClick:t,children:(0,b.jsx)(_,{className:ae.expandButtonIcon})})}const ie={docSidebarContainer:"docSidebarContainer_YfHR",docSidebarContainerHidden:"docSidebarContainerHidden_DPk8",sidebarViewport:"sidebarViewport_aRkj"};function se(e){let{children:t}=e;const n=(0,r.V)();return(0,b.jsx)(a.Fragment,{children:t},n?.name??"noSidebar")}function le(e){let{sidebar:t,hiddenSidebarContainer:n,setHiddenSidebarContainer:i}=e;const{pathname:l}=(0,x.TH)(),[r,c]=(0,a.useState)(!1),d=(0,a.useCallback)((()=>{r&&c(!1),!r&&(0,p.n)()&&c(!0),i((e=>!e))}),[i,r]);return(0,b.jsx)("aside",{className:(0,o.Z)(s.k.docs.docSidebarContainer,ie.docSidebarContainer,n&&ie.docSidebarContainerHidden),onTransitionEnd:e=>{e.currentTarget.classList.contains(ie.docSidebarContainer)&&n&&c(!0)},children:(0,b.jsx)(se,{children:(0,b.jsxs)("div",{className:(0,o.Z)(ie.sidebarViewport,r&&ie.sidebarViewportHidden),children:[(0,b.jsx)(ne,{sidebar:t,path:l,onCollapse:d,isHidden:r}),r&&(0,b.jsx)(oe,{toggleSidebar:d})]})})})}const re={docMainContainer:"docMainContainer_TBSr",docMainContainerEnhanced:"docMainContainerEnhanced_lQrH",docItemWrapperEnhanced:"docItemWrapperEnhanced_JWYK"};function ce(e){let{hiddenSidebarContainer:t,children:n}=e;const a=(0,r.V)();return(0,b.jsx)("main",{className:(0,o.Z)(re.docMainContainer,(t||!a)&&re.docMainContainerEnhanced),children:(0,b.jsx)("div",{className:(0,o.Z)("container padding-top--md padding-bottom--lg",re.docItemWrapper,t&&re.docItemWrapperEnhanced),children:n})})}const de={docRoot:"docRoot_UBD9",docsWrapper:"docsWrapper_hBAB"};function ue(e){let{children:t}=e;const n=(0,r.V)(),[o,i]=(0,a.useState)(!1);return(0,b.jsxs)("div",{className:de.docsWrapper,children:[(0,b.jsx)(h,{}),(0,b.jsxs)("div",{className:de.docRoot,children:[n&&(0,b.jsx)(le,{sidebar:n.items,hiddenSidebarContainer:o,setHiddenSidebarContainer:i}),(0,b.jsx)(ce,{hiddenSidebarContainer:o,children:t})]})]})}var me=n(5658);function be(e){const t=(0,l.SN)(e);if(!t)return(0,b.jsx)(me.Z,{});const{docElement:n,sidebarName:a,sidebarItems:c}=t;return(0,b.jsx)(i.FG,{className:(0,o.Z)(s.k.page.docsDocPage),children:(0,b.jsx)(r.b,{name:a,items:c,children:(0,b.jsx)(ue,{children:n})})})}},5658:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var a=n(512),o=n(5999),i=n(2503),s=n(5893);function l(e){let{className:t}=e;return(0,s.jsx)("main",{className:(0,a.Z)("container margin-vert--xl",t),children:(0,s.jsx)("div",{className:"row",children:(0,s.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,s.jsx)(i.Z,{as:"h1",className:"hero__title",children:(0,s.jsx)(o.Z,{id:"theme.NotFound.title",description:"The title of the 404 page",children:"Page Not Found"})}),(0,s.jsx)("p",{children:(0,s.jsx)(o.Z,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page",children:"We could not find what you were looking for."})}),(0,s.jsx)("p",{children:(0,s.jsx)(o.Z,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page",children:"Please contact the owner of the site that linked you to the original URL and let them know their link is broken."})})]})})})}}}]); \ No newline at end of file +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4368],{2674:(e,t,n)=>{n.r(t),n.d(t,{default:()=>be});var a=n(7294),o=n(512),i=n(1944),s=n(5281),l=n(3438),r=n(1116),c=n(5999),d=n(2466),u=n(5936);const m={backToTopButton:"backToTopButton_sjWU",backToTopButtonShow:"backToTopButtonShow_xfvO"};var b=n(5893);function h(){const{shown:e,scrollToTop:t}=function(e){let{threshold:t}=e;const[n,o]=(0,a.useState)(!1),i=(0,a.useRef)(!1),{startScroll:s,cancelScroll:l}=(0,d.Ct)();return(0,d.RF)(((e,n)=>{let{scrollY:a}=e;const s=n?.scrollY;s&&(i.current?i.current=!1:a>=s?(l(),o(!1)):a<t?o(!1):a+window.innerHeight<document.documentElement.scrollHeight&&o(!0))})),(0,u.S)((e=>{e.location.hash&&(i.current=!0,o(!1))})),{shown:n,scrollToTop:()=>s(0)}}({threshold:300});return(0,b.jsx)("button",{"aria-label":(0,c.I)({id:"theme.BackToTopButton.buttonAriaLabel",message:"Scroll back to top",description:"The ARIA label for the back to top button"}),className:(0,o.Z)("clean-btn",s.k.common.backToTopButton,m.backToTopButton,e&&m.backToTopButtonShow),type:"button",onClick:t})}var p=n(1442),x=n(6550),f=n(7524),j=n(6668),k=n(1327);function _(e){return(0,b.jsx)("svg",{width:"20",height:"20","aria-hidden":"true",...e,children:(0,b.jsxs)("g",{fill:"#7a7a7a",children:[(0,b.jsx)("path",{d:"M9.992 10.023c0 .2-.062.399-.172.547l-4.996 7.492a.982.982 0 01-.828.454H1c-.55 0-1-.453-1-1 0-.2.059-.403.168-.551l4.629-6.942L.168 3.078A.939.939 0 010 2.528c0-.548.45-.997 1-.997h2.996c.352 0 .649.18.828.45L9.82 9.472c.11.148.172.347.172.55zm0 0"}),(0,b.jsx)("path",{d:"M19.98 10.023c0 .2-.058.399-.168.547l-4.996 7.492a.987.987 0 01-.828.454h-3c-.547 0-.996-.453-.996-1 0-.2.059-.403.168-.551l4.625-6.942-4.625-6.945a.939.939 0 01-.168-.55 1 1 0 01.996-.997h3c.348 0 .649.18.828.45l4.996 7.492c.11.148.168.347.168.55zm0 0"})]})})}const v={collapseSidebarButton:"collapseSidebarButton_PEFL",collapseSidebarButtonIcon:"collapseSidebarButtonIcon_kv0_"};function g(e){let{onClick:t}=e;return(0,b.jsx)("button",{type:"button",title:(0,c.I)({id:"theme.docs.sidebar.collapseButtonTitle",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),"aria-label":(0,c.I)({id:"theme.docs.sidebar.collapseButtonAriaLabel",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),className:(0,o.Z)("button button--secondary button--outline",v.collapseSidebarButton),onClick:t,children:(0,b.jsx)(_,{className:v.collapseSidebarButtonIcon})})}var C=n(9689),S=n(902);const I=Symbol("EmptyContext"),N=a.createContext(I);function T(e){let{children:t}=e;const[n,o]=(0,a.useState)(null),i=(0,a.useMemo)((()=>({expandedItem:n,setExpandedItem:o})),[n]);return(0,b.jsx)(N.Provider,{value:i,children:t})}var B=n(6043),Z=n(8596),A=n(3692),L=n(2389);function y(e){let{collapsed:t,categoryLabel:n,onClick:a}=e;return(0,b.jsx)("button",{"aria-label":t?(0,c.I)({id:"theme.DocSidebarItem.expandCategoryAriaLabel",message:"Expand sidebar category '{label}'",description:"The ARIA label to expand the sidebar category"},{label:n}):(0,c.I)({id:"theme.DocSidebarItem.collapseCategoryAriaLabel",message:"Collapse sidebar category '{label}'",description:"The ARIA label to collapse the sidebar category"},{label:n}),type:"button",className:"clean-btn menu__caret",onClick:a})}function w(e){let{item:t,onItemClick:n,activePath:i,level:r,index:c,...d}=e;const{items:u,label:m,collapsible:h,className:p,href:x}=t,{docs:{sidebar:{autoCollapseCategories:f}}}=(0,j.L)(),k=function(e){const t=(0,L.Z)();return(0,a.useMemo)((()=>e.href&&!e.linkUnlisted?e.href:!t&&e.collapsible?(0,l.LM)(e):void 0),[e,t])}(t),_=(0,l._F)(t,i),v=(0,Z.Mg)(x,i),{collapsed:g,setCollapsed:C}=(0,B.u)({initialState:()=>!!h&&(!_&&t.collapsed)}),{expandedItem:T,setExpandedItem:w}=function(){const e=(0,a.useContext)(N);if(e===I)throw new S.i6("DocSidebarItemsExpandedStateProvider");return e}(),E=function(e){void 0===e&&(e=!g),w(e?null:c),C(e)};return function(e){let{isActive:t,collapsed:n,updateCollapsed:o}=e;const i=(0,S.D9)(t);(0,a.useEffect)((()=>{t&&!i&&n&&o(!1)}),[t,i,n,o])}({isActive:_,collapsed:g,updateCollapsed:E}),(0,a.useEffect)((()=>{h&&null!=T&&T!==c&&f&&C(!0)}),[h,T,c,C,f]),(0,b.jsxs)("li",{className:(0,o.Z)(s.k.docs.docSidebarItemCategory,s.k.docs.docSidebarItemCategoryLevel(r),"menu__list-item",{"menu__list-item--collapsed":g},p),children:[(0,b.jsxs)("div",{className:(0,o.Z)("menu__list-item-collapsible",{"menu__list-item-collapsible--active":v}),children:[(0,b.jsx)(A.Z,{className:(0,o.Z)("menu__link",{"menu__link--sublist":h,"menu__link--sublist-caret":!x&&h,"menu__link--active":_}),onClick:h?e=>{n?.(t),x?E(!1):(e.preventDefault(),E())}:()=>{n?.(t)},"aria-current":v?"page":void 0,"aria-expanded":h?!g:void 0,href:h?k??"#":k,...d,children:m}),x&&h&&(0,b.jsx)(y,{collapsed:g,categoryLabel:m,onClick:e=>{e.preventDefault(),E()}})]}),(0,b.jsx)(B.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:g,children:(0,b.jsx)(V,{items:u,tabIndex:g?-1:0,onItemClick:n,activePath:i,level:r+1})})]})}var E=n(3919),H=n(9471);const M={menuExternalLink:"menuExternalLink_NmtK"};function R(e){let{item:t,onItemClick:n,activePath:a,level:i,index:r,...c}=e;const{href:d,label:u,className:m,autoAddBaseUrl:h}=t,p=(0,l._F)(t,a),x=(0,E.Z)(d);return(0,b.jsx)("li",{className:(0,o.Z)(s.k.docs.docSidebarItemLink,s.k.docs.docSidebarItemLinkLevel(i),"menu__list-item",m),children:(0,b.jsxs)(A.Z,{className:(0,o.Z)("menu__link",!x&&M.menuExternalLink,{"menu__link--active":p}),autoAddBaseUrl:h,"aria-current":p?"page":void 0,to:d,...x&&{onClick:n?()=>n(t):void 0},...c,children:[u,!x&&(0,b.jsx)(H.Z,{})]})},u)}const W={menuHtmlItem:"menuHtmlItem_M9Kj"};function F(e){let{item:t,level:n,index:a}=e;const{value:i,defaultStyle:l,className:r}=t;return(0,b.jsx)("li",{className:(0,o.Z)(s.k.docs.docSidebarItemLink,s.k.docs.docSidebarItemLinkLevel(n),l&&[W.menuHtmlItem,"menu__list-item"],r),dangerouslySetInnerHTML:{__html:i}},a)}function P(e){let{item:t,...n}=e;switch(t.type){case"category":return(0,b.jsx)(w,{item:t,...n});case"html":return(0,b.jsx)(F,{item:t,...n});default:return(0,b.jsx)(R,{item:t,...n})}}function D(e){let{items:t,...n}=e;const a=(0,l.f)(t,n.activePath);return(0,b.jsx)(T,{children:a.map(((e,t)=>(0,b.jsx)(P,{item:e,index:t,...n},t)))})}const V=(0,a.memo)(D),U={menu:"menu_SIkG",menuWithAnnouncementBar:"menuWithAnnouncementBar_GW3s"};function K(e){let{path:t,sidebar:n,className:i}=e;const l=function(){const{isActive:e}=(0,C.nT)(),[t,n]=(0,a.useState)(e);return(0,d.RF)((t=>{let{scrollY:a}=t;e&&n(0===a)}),[e]),e&&t}();return(0,b.jsx)("nav",{"aria-label":(0,c.I)({id:"theme.docs.sidebar.navAriaLabel",message:"Docs sidebar",description:"The ARIA label for the sidebar navigation"}),className:(0,o.Z)("menu thin-scrollbar",U.menu,l&&U.menuWithAnnouncementBar,i),children:(0,b.jsx)("ul",{className:(0,o.Z)(s.k.docs.docSidebarMenu,"menu__list"),children:(0,b.jsx)(V,{items:n,activePath:t,level:1})})})}const Y="sidebar_njMd",z="sidebarWithHideableNavbar_wUlq",G="sidebarHidden_VK0M",O="sidebarLogo_isFc";function q(e){let{path:t,sidebar:n,onCollapse:a,isHidden:i}=e;const{navbar:{hideOnScroll:s},docs:{sidebar:{hideable:l}}}=(0,j.L)();return(0,b.jsxs)("div",{className:(0,o.Z)(Y,s&&z,i&&G),children:[s&&(0,b.jsx)(k.Z,{tabIndex:-1,className:O}),(0,b.jsx)(K,{path:t,sidebar:n}),l&&(0,b.jsx)(g,{onClick:a})]})}const J=a.memo(q);var Q=n(3102),X=n(3163);const $=e=>{let{sidebar:t,path:n}=e;const a=(0,X.e)();return(0,b.jsx)("ul",{className:(0,o.Z)(s.k.docs.docSidebarMenu,"menu__list"),children:(0,b.jsx)(V,{items:t,activePath:n,onItemClick:e=>{"category"===e.type&&e.href&&a.toggle(),"link"===e.type&&a.toggle()},level:1})})};function ee(e){return(0,b.jsx)(Q.Zo,{component:$,props:e})}const te=a.memo(ee);function ne(e){const t=(0,f.i)(),n="desktop"===t||"ssr"===t,a="mobile"===t;return(0,b.jsxs)(b.Fragment,{children:[n&&(0,b.jsx)(J,{...e}),a&&(0,b.jsx)(te,{...e})]})}const ae={expandButton:"expandButton_TmdG",expandButtonIcon:"expandButtonIcon_i1dp"};function oe(e){let{toggleSidebar:t}=e;return(0,b.jsx)("div",{className:ae.expandButton,title:(0,c.I)({id:"theme.docs.sidebar.expandButtonTitle",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),"aria-label":(0,c.I)({id:"theme.docs.sidebar.expandButtonAriaLabel",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),tabIndex:0,role:"button",onKeyDown:t,onClick:t,children:(0,b.jsx)(_,{className:ae.expandButtonIcon})})}const ie={docSidebarContainer:"docSidebarContainer_YfHR",docSidebarContainerHidden:"docSidebarContainerHidden_DPk8",sidebarViewport:"sidebarViewport_aRkj"};function se(e){let{children:t}=e;const n=(0,r.V)();return(0,b.jsx)(a.Fragment,{children:t},n?.name??"noSidebar")}function le(e){let{sidebar:t,hiddenSidebarContainer:n,setHiddenSidebarContainer:i}=e;const{pathname:l}=(0,x.TH)(),[r,c]=(0,a.useState)(!1),d=(0,a.useCallback)((()=>{r&&c(!1),!r&&(0,p.n)()&&c(!0),i((e=>!e))}),[i,r]);return(0,b.jsx)("aside",{className:(0,o.Z)(s.k.docs.docSidebarContainer,ie.docSidebarContainer,n&&ie.docSidebarContainerHidden),onTransitionEnd:e=>{e.currentTarget.classList.contains(ie.docSidebarContainer)&&n&&c(!0)},children:(0,b.jsx)(se,{children:(0,b.jsxs)("div",{className:(0,o.Z)(ie.sidebarViewport,r&&ie.sidebarViewportHidden),children:[(0,b.jsx)(ne,{sidebar:t,path:l,onCollapse:d,isHidden:r}),r&&(0,b.jsx)(oe,{toggleSidebar:d})]})})})}const re={docMainContainer:"docMainContainer_TBSr",docMainContainerEnhanced:"docMainContainerEnhanced_lQrH",docItemWrapperEnhanced:"docItemWrapperEnhanced_JWYK"};function ce(e){let{hiddenSidebarContainer:t,children:n}=e;const a=(0,r.V)();return(0,b.jsx)("main",{className:(0,o.Z)(re.docMainContainer,(t||!a)&&re.docMainContainerEnhanced),children:(0,b.jsx)("div",{className:(0,o.Z)("container padding-top--md padding-bottom--lg",re.docItemWrapper,t&&re.docItemWrapperEnhanced),children:n})})}const de={docRoot:"docRoot_UBD9",docsWrapper:"docsWrapper_hBAB"};function ue(e){let{children:t}=e;const n=(0,r.V)(),[o,i]=(0,a.useState)(!1);return(0,b.jsxs)("div",{className:de.docsWrapper,children:[(0,b.jsx)(h,{}),(0,b.jsxs)("div",{className:de.docRoot,children:[n&&(0,b.jsx)(le,{sidebar:n.items,hiddenSidebarContainer:o,setHiddenSidebarContainer:i}),(0,b.jsx)(ce,{hiddenSidebarContainer:o,children:t})]})]})}var me=n(5658);function be(e){const t=(0,l.SN)(e);if(!t)return(0,b.jsx)(me.Z,{});const{docElement:n,sidebarName:a,sidebarItems:c}=t;return(0,b.jsx)(i.FG,{className:(0,o.Z)(s.k.page.docsDocPage),children:(0,b.jsx)(r.b,{name:a,items:c,children:(0,b.jsx)(ue,{children:n})})})}},5658:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var a=n(512),o=n(5999),i=n(2503),s=n(5893);function l(e){let{className:t}=e;return(0,s.jsx)("main",{className:(0,a.Z)("container margin-vert--xl",t),children:(0,s.jsx)("div",{className:"row",children:(0,s.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,s.jsx)(i.Z,{as:"h1",className:"hero__title",children:(0,s.jsx)(o.Z,{id:"theme.NotFound.title",description:"The title of the 404 page",children:"Page Not Found"})}),(0,s.jsx)("p",{children:(0,s.jsx)(o.Z,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page",children:"We could not find what you were looking for."})}),(0,s.jsx)("p",{children:(0,s.jsx)(o.Z,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page",children:"Please contact the owner of the site that linked you to the original URL and let them know their link is broken."})})]})})})}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/ac9dff0b.2f6ac220.js b/pt-BR/assets/js/ac9dff0b.2f6ac220.js new file mode 100644 index 0000000000..fb6eb2edaf --- /dev/null +++ b/pt-BR/assets/js/ac9dff0b.2f6ac220.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2242],{5030:e=>{e.exports=JSON.parse('{"label":"createPool","permalink":"/node-mysql2/pt-BR/docs/tags/create-pool","allTagsPath":"/node-mysql2/pt-BR/docs/tags","count":1,"items":[{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/pt-BR/docs/examples/connections/create-pool"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/ad7b17cf.85432187.js b/pt-BR/assets/js/ad7b17cf.85432187.js new file mode 100644 index 0000000000..2bb4057222 --- /dev/null +++ b/pt-BR/assets/js/ad7b17cf.85432187.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2030],{923:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>u,contentTitle:()=>c,default:()=>m,frontMatter:()=>l,metadata:()=>i,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},c="await \u2014 co",i={id:"examples/promise-wrapper/co-await",title:"await \u2014 co",description:"",source:"@site/docs/examples/promise-wrapper/co-await.mdx",sourceDirName:"examples/promise-wrapper",slug:"/examples/promise-wrapper/co-await",permalink:"/node-mysql2/pt-BR/docs/examples/promise-wrapper/co-await",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/promise-wrapper/co-await.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Binlog Watcher",permalink:"/node-mysql2/pt-BR/docs/examples/binlog-watcher"},next:{title:"MySQL Proxy",permalink:"/node-mysql2/pt-BR/docs/examples/tests/mysql-proxy"}},u={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"await--co",children:"await \u2014 co"}),"\n",(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(o.Z,{value:"await.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2/promise');\n\nasync function test() {\n const c = await mysql.createConnection({\n port: 3306,\n user: 'testuser',\n namedPlaceholders: true,\n password: 'testpassword',\n });\n console.log('connected!');\n const [rows, fields] = await c.query('show databases');\n console.log(rows);\n\n try {\n const [rows, fields] = await c.query('some invalid sql here');\n } catch (e) {\n console.log('caught exception!', e);\n }\n\n console.log(await c.execute('select sleep(0.5)'));\n console.log('after first sleep');\n console.log(await c.execute('select sleep(0.5)'));\n console.log('after second sleep');\n let start = +new Date();\n console.log(\n await Promise.all([\n c.execute('select sleep(2.5)'),\n c.execute('select sleep(2.5)'),\n ])\n );\n console.log(\n 'after 2+3 parallel sleep which is in fact not parallel because commands are queued per connection'\n );\n let end = +new Date();\n console.log(end - start);\n await c.end();\n\n const p = mysql.createPool({\n port: 3306,\n user: 'testuser',\n namedPlaceholders: true,\n password: 'testpassword',\n });\n console.log(await p.execute('select sleep(0.5)'));\n console.log('after first pool sleep');\n start = +new Date();\n console.log(\n await Promise.all([\n p.execute('select sleep(2.5)'),\n p.execute('select sleep(2.5)'),\n ])\n );\n console.log('after 2+3 parallel pool sleep');\n end = +new Date();\n console.log(end - start);\n await p.end();\n}\n\ntest()\n .then(() => {\n console.log('done');\n })\n .catch((err) => {\n console.log('error!', err);\n throw err;\n });\n"})})}),(0,r.jsx)(o.Z,{value:"co.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2/promise');\nconst co = require('co');\n\nco(function* () {\n const c = yield mysql.createConnection({\n port: 3306,\n user: 'root',\n namedPlaceholders: true,\n });\n const rows = yield c.query('show databases');\n console.log(rows);\n console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 }));\n yield c.end();\n})\n .then(function () {\n console.log('done');\n })\n .catch(function (err) {\n console.log(err);\n throw err;\n });\n"})})}),(0,r.jsx)(o.Z,{value:".babelrc",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{\n "plugins": ["transform-async-to-generator"]\n}\n'})})}),(0,r.jsx)(o.Z,{value:"package.json",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{\n "name": "promise-co-await",\n "version": "1.0.0",\n "description": "",\n "main": "await.js",\n "scripts": {\n "test": "echo \\"Error: no test specified\\" && exit 1"\n },\n "author": "",\n "license": "ISC",\n "dependencies": {\n "babel-cli": "^6.9.0"\n }\n}\n'})})})]})]})}function m(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>j});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),c=t(1980),i=t(7392),u=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,i.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function h(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,c._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function f(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=p(e),[o,c]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[i,d]=h({queryString:t,groupId:a}),[f,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,u.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),w=(()=>{const e=i??f;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{w&&c(w)}),[w]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);c(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const w={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function x(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const c=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),u=e=>{const n=e.currentTarget,t=c.indexOf(n),a=l[t].value;a!==r&&(i(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const t=c.indexOf(e.currentTarget)+1;n=c[t]??c[0];break}case"ArrowLeft":{const t=c.indexOf(e.currentTarget)-1;n=c[t]??c[c.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>c.push(e),onKeyDown:d,onClick:u,...s,className:(0,a.Z)("tabs__item",w.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function y(e){const n=f(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",w.tabList),children:[(0,g.jsx)(x,{...e,...n}),(0,g.jsx)(v,{...e,...n})]})}function j(e){const n=(0,b.Z)();return(0,g.jsx)(y,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/b07748b5.60633ba4.js b/pt-BR/assets/js/b07748b5.60633ba4.js new file mode 100644 index 0000000000..dedcc5558c --- /dev/null +++ b/pt-BR/assets/js/b07748b5.60633ba4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4403],{214:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>h,contentTitle:()=>d,default:()=>m,frontMatter:()=>a,metadata:()=>u,toc:()=>p});var r=s(5893),o=s(1151),l=s(4866),t=s(5162),c=s(6393),i=s(4379);const a={sidebar_position:3,tags:["createPoolCluster","URI","SHA1","RDS","SSL","Socks"]},d="createPoolCluster",u={id:"examples/connections/createPoolCluster",title:"createPoolCluster",description:"For queries please see the Simple Queries and Prepared Statements examples.",source:"@site/docs/examples/connections/createPoolCluster.mdx",sourceDirName:"examples/connections",slug:"/examples/connections/createPoolCluster",permalink:"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/connections/createPoolCluster.mdx",tags:[{label:"createPoolCluster",permalink:"/node-mysql2/pt-BR/docs/tags/create-pool-cluster"},{label:"URI",permalink:"/node-mysql2/pt-BR/docs/tags/uri"},{label:"SHA1",permalink:"/node-mysql2/pt-BR/docs/tags/sha-1"},{label:"RDS",permalink:"/node-mysql2/pt-BR/docs/tags/rds"},{label:"SSL",permalink:"/node-mysql2/pt-BR/docs/tags/ssl"},{label:"Socks",permalink:"/node-mysql2/pt-BR/docs/tags/socks"}],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3,tags:["createPoolCluster","URI","SHA1","RDS","SSL","Socks"]},sidebar:"examples",previous:{title:"createPool",permalink:"/node-mysql2/pt-BR/docs/examples/connections/create-pool"},next:{title:"Simple Queries",permalink:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/"}},h={},p=[{value:"add(group, connectionUri)",id:"addgroup-connectionuri",level:2},{value:"add(group, config)",id:"addgroup-config",level:2},{value:"add(group, config) \u2014 SHA1",id:"addgroup-config--sha1",level:2},{value:"add(group, config) \u2014 SSL",id:"addgroup-config--ssl",level:2},{value:"add(group, config) \u2014 RDS SSL",id:"addgroup-config--rds-ssl",level:2},{value:"Related Links",id:"related-links",level:3},{value:"add(group, config) \u2014 Socks",id:"addgroup-config--socks",level:2},{value:"Glossary",id:"glossary",level:2},{value:"PoolOptions",id:"pooloptions",level:3}];function g(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,o.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"createpoolcluster",children:"createPoolCluster"}),"\n",(0,r.jsx)(n.admonition,{type:"info",children:(0,r.jsxs)(n.p,{children:["For queries please see the ",(0,r.jsx)(n.a,{href:"/docs/examples/queries/simple-queries",children:(0,r.jsx)(n.strong,{children:"Simple Queries"})})," and ",(0,r.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements",children:(0,r.jsx)(n.strong,{children:"Prepared Statements"})})," examples."]})}),"\n",(0,r.jsx)(n.h2,{id:"addgroup-connectionuri",children:"add(group, connectionUri)"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:"add(group: string, connectionUri: string)"})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const poolCluster = mysql.createPoolCluster();\n\n poolCluster.add('clusterA', 'mysql://root:password@localhost:3306/test');\n // poolCluster.add('clusterB', '...');\n\n const connection = await poolCluster.getConnection('clusterA');\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(t.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', 'mysql://root:password@localhost:3306/test');\n// poolCluster.add('clusterB', '...');\n\npoolCluster.getConnection('clusterA', function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})})]}),"\n",(0,r.jsxs)(n.admonition,{type:"warning",children:[(0,r.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"addgroup-config",children:"add(group, config)"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["add(group: string, config: ",(0,r.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const poolCluster = mysql.createPoolCluster();\n\n poolCluster.add('clusterA', {\n host: 'localhost',\n user: 'root',\n database: 'test',\n // port: 3306,\n // password: '',\n });\n // poolCluster.add('clusterB', '...');\n\n const connection = await poolCluster.getConnection('clusterA');\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(t.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', {\n host: 'localhost',\n user: 'root',\n database: 'test',\n // port: 3306,\n // password: '',\n});\n// poolCluster.add('clusterB', '...');\n\npoolCluster.getConnection('clusterA', function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})})]}),"\n",(0,r.jsxs)(n.admonition,{type:"warning",children:[(0,r.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"addgroup-config--sha1",children:"add(group, config) \u2014 SHA1"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["add(group: string, config: ",(0,r.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const poolCluster = mysql.createPoolCluster();\n\n poolCluster.add('clusterA', {\n // ...\n passwordSha1: Buffer.from(\n '8bb6118f8fd6935ad0876a3be34a717d32708ffd',\n 'hex'\n ),\n });\n // poolCluster.add('clusterB', '...');\n\n const connection = await poolCluster.getConnection('clusterA');\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(t.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', {\n // ...\n passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'),\n});\n// poolCluster.add('clusterB', '...');\n\npoolCluster.getConnection('clusterA', function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})})]}),"\n",(0,r.jsxs)(n.admonition,{type:"warning",children:[(0,r.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"addgroup-config--ssl",children:"add(group, config) \u2014 SSL"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["add(group: string, config: ",(0,r.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const poolCluster = mysql.createPoolCluster();\n\n poolCluster.add('clusterA', {\n // ...\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n });\n // poolCluster.add('clusterB', '...');\n\n const connection = await poolCluster.getConnection('clusterA');\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(t.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', {\n // ...\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n});\n// poolCluster.add('clusterB', '...');\n\npoolCluster.getConnection('clusterA', function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})}),(0,r.jsxs)(t.Z,{value:"certs/ca-cert.pem",children:[(0,r.jsx)(i.I,{language:"plan",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/test/fixtures/ssl/certs/ca.pem"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["See ",(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/tree/master/test/fixtures/ssl/certs",children:"ssl/certs"}),"."]}),"\n"]})]})]}),"\n",(0,r.jsxs)(n.admonition,{type:"warning",children:[(0,r.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"addgroup-config--rds-ssl",children:"add(group, config) \u2014 RDS SSL"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["add(group: string, config: ",(0,r.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["You can use ",(0,r.jsx)(n.strong,{children:"Amazon RDS"})," string as value to ssl property to connect to ",(0,r.jsx)(n.strong,{children:"Amazon RDS"})," MySQL over SSL."]}),"\n",(0,r.jsxs)(n.p,{children:["In that case ",(0,r.jsx)(n.a,{href:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem",children:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem"})," CA cert is used:"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsxs)(t.Z,{value:"promise.js",default:!0,children:[(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const poolCluster = mysql.createPoolCluster();\n\n poolCluster.add('clusterA', {\n // ...\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n });\n // poolCluster.add('clusterB', '...');\n\n const connection = await poolCluster.getConnection('clusterA');\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})}),(0,r.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"try {\n const [res] = await connection.query('SHOW `status` LIKE \"Ssl_cipher\"');\n await poolCluster.end();\n\n console.log(res);\n} catch (err) {\n console.log(err);\n}\n"})})})]}),(0,r.jsxs)(t.Z,{value:"callback.js",children:[(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', {\n // ...\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n});\n// poolCluster.add('clusterB', '...');\n\npoolCluster.getConnection('clusterA', function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})}),(0,r.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"connectionquery('SHOW `status` LIKE \"Ssl_cipher\"', function (err, res) {\n poolCluster.end();\n\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(res);\n});\n"})})})]})]}),"\n",(0,r.jsxs)(n.admonition,{type:"warning",children:[(0,r.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,r.jsx)(n.h3,{id:"related-links",children:"Related Links"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Issues"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/issues/2130",children:"#2130 \u2014 Update TLS certs for Amazon RDS instances"})}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Pull Requests"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/pull/2119",children:"#2119 \u2014 fix: make startTls code compatible with Bun"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/pull/2131",children:"#2131 \u2014 Update Amazon RDS SSL CA cert"})}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"addgroup-config--socks",children:"add(group, config) \u2014 Socks"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["add(group: string, config: ",(0,r.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(t.Z,{value:"A.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\nconst socksProxy = new SocksConnection({ port: 3306 });\n// highlight-start\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', {\n stream: socksProxy,\n});\n// poolCluster.add('clusterB', '...');\n\nconst poolNamespace = poolCluster.of('clusterA');\n// highlight-end\n"})})}),(0,r.jsx)(t.Z,{value:"B.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\n// highlight-start\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', {\n debug: 1,\n stream: function () {\n return new SocksConnection({ port: 3306 });\n },\n});\n// poolCluster.add('clusterB', '...');\n\nconst poolNamespace = poolCluster.of('clusterA');\n// highlight-end\n"})})})]}),"\n",(0,r.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"poolNamespace.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n\npoolNamespace.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n\npoolNamespace.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n"})})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,r.jsx)(n.h3,{id:"pooloptions",children:"PoolOptions"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"PoolOptions"})," extends all options from ",(0,r.jsx)(n.strong,{children:"ConnectionOptions"}),":"]}),"\n",(0,r.jsx)(c.Z,{title:"ConnectionOptions Specification",children:(0,r.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/Connection.d.ts",extractMethod:"ConnectionOptions",methodType:"interface"})}),"\n"]}),"\n",(0,r.jsx)(c.Z,{title:"PoolOptions Specification",children:(0,r.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/Pool.d.ts",extractMethod:"PoolOptions",methodType:"interface"})})]})}function m(e={}){const{wrapper:n}={...(0,o.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(g,{...e})}):g(e)}},5162:(e,n,s)=>{s.d(n,{Z:()=>t});s(7294);var r=s(512);const o={tabItem:"tabItem_Ymn6"};var l=s(5893);function t(e){let{children:n,hidden:s,className:t}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,r.Z)(o.tabItem,t),hidden:s,children:n})}},4866:(e,n,s)=>{s.d(n,{Z:()=>C});var r=s(7294),o=s(512),l=s(2466),t=s(6550),c=s(469),i=s(1980),a=s(7392),d=s(12);function u(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:s}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return u(e).map((e=>{let{props:{value:n,label:s,attributes:r,default:o}}=e;return{value:n,label:s,attributes:r,default:o}}))}(s);return function(e){const n=(0,a.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,s])}function p(e){let{value:n,tabValues:s}=e;return s.some((e=>e.value===n))}function g(e){let{queryString:n=!1,groupId:s}=e;const o=(0,t.k6)(),l=function(e){let{queryString:n=!1,groupId:s}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!s)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:n,groupId:s});return[(0,i._X)(l),(0,r.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(o.location.search);n.set(l,e),o.replace({...o.location,search:n.toString()})}),[l,o])]}function m(e){const{defaultValue:n,queryString:s=!1,groupId:o}=e,l=h(e),[t,i]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:s}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=s.find((e=>e.default))??s[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:l}))),[a,u]=g({queryString:s,groupId:o}),[m,x]=function(e){let{groupId:n}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(n),[o,l]=(0,d.Nk)(s);return[o,(0,r.useCallback)((e=>{s&&l.set(e)}),[s,l])]}({groupId:o}),j=(()=>{const e=a??m;return p({value:e,tabValues:l})?e:null})();(0,c.Z)((()=>{j&&i(j)}),[j]);return{selectedValue:t,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),u(e),x(e)}),[u,x,l]),tabValues:l}}var x=s(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=s(5893);function y(e){let{className:n,block:s,selectedValue:r,selectValue:t,tabValues:c}=e;const i=[],{blockElementScrollPositionUntilNextRender:a}=(0,l.o5)(),d=e=>{const n=e.currentTarget,s=i.indexOf(n),o=c[s].value;o!==r&&(a(n),t(o))},u=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const s=i.indexOf(e.currentTarget)+1;n=i[s]??i[0];break}case"ArrowLeft":{const s=i.indexOf(e.currentTarget)-1;n=i[s]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,o.Z)("tabs",{"tabs--block":s},n),children:c.map((e=>{let{value:n,label:s,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>i.push(e),onKeyDown:u,onClick:d,...l,className:(0,o.Z)("tabs__item",j.tabItem,l?.className,{"tabs__item--active":r===n}),children:s??n},n)}))})}function b(e){let{lazy:n,children:s,selectedValue:o}=e;const l=(Array.isArray(s)?s:[s]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===o));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==o})))})}function q(e){const n=m(e);return(0,f.jsxs)("div",{className:(0,o.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(y,{...e,...n}),(0,f.jsx)(b,{...e,...n})]})}function C(e){const n=(0,x.Z)();return(0,f.jsx)(q,{...e,children:u(e.children)},String(n))}},4379:(e,n,s)=>{s.d(n,{I:()=>i});var r=s(7294),o=s(2263),l=s(9286),t=s(5893);const c=()=>(0,t.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:s,extractMethod:i,methodType:a}=e;const[d,u]=(0,r.useState)(""),[h,p]=(0,r.useState)(!0),[g,m]=(0,r.useState)(!0),{siteConfig:x}=(0,o.Z)(),j=x.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,r.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&a?((e,n,s)=>{const r=e.split("\n"),o=`${s} ${n}`;let l=!1,t=0,c="";for(const i of r)if(i.includes(o)&&(l=!0),l&&(i.includes("{")&&t++,c+=i+"\n",i.includes("}")&&(t--,0===t)))break;return c.trim()||e})(e,i,a):e;u(n||e),p(!1),m(!1)})).catch((()=>{m(!0),p(!1)})),()=>{e.abort()}}),[f,i,a]),(0,t.jsx)(t.Fragment,{children:h?(0,t.jsx)(c,{}):(0,t.jsx)(t.Fragment,{children:g?(0,t.jsxs)("div",{children:["Unable to access the requested link: ",(0,t.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,t.jsx)(l.Z,{className:`language-${s}`,children:d})})})}},6393:(e,n,s)=>{s.d(n,{Z:()=>l});var r=s(4673),o=s(5893);const l=e=>{let{children:n,open:s,title:l}=e;return(0,o.jsx)(r.Z,{open:s,className:"faq",summary:(0,o.jsx)("summary",{children:(0,o.jsx)("strong",{children:l})}),children:(0,o.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/b5d213ed.8c98da4e.js b/pt-BR/assets/js/b5d213ed.8c98da4e.js new file mode 100644 index 0000000000..be769ed76d --- /dev/null +++ b/pt-BR/assets/js/b5d213ed.8c98da4e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1990],{3774:e=>{e.exports=JSON.parse('{"label":"Socks","permalink":"/node-mysql2/pt-BR/docs/tags/socks","allTagsPath":"/node-mysql2/pt-BR/docs/tags","count":3,"items":[{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/pt-BR/docs/examples/connections/create-connection"},{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/pt-BR/docs/examples/connections/create-pool"},{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/b80d201b.d80a38d2.js b/pt-BR/assets/js/b80d201b.d80a38d2.js new file mode 100644 index 0000000000..524150d1f7 --- /dev/null +++ b/pt-BR/assets/js/b80d201b.d80a38d2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6061],{1384:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>m,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var s=t(5893),r=t(1151),l=t(4866),a=t(5162),o=t(6393),i=t(4379);const c={sidebar_position:2,tags:["Prepared Statements","Placeholders","Parameters","execute"]},u="UPDATE",d={id:"examples/queries/prepared-statements/update",title:"UPDATE",description:"execute(sql, values)",source:"@site/docs/examples/queries/prepared-statements/update.mdx",sourceDirName:"examples/queries/prepared-statements",slug:"/examples/queries/prepared-statements/update",permalink:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/update",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/prepared-statements/update.mdx",tags:[{label:"Prepared Statements",permalink:"/node-mysql2/pt-BR/docs/tags/prepared-statements"},{label:"Placeholders",permalink:"/node-mysql2/pt-BR/docs/tags/placeholders"},{label:"Parameters",permalink:"/node-mysql2/pt-BR/docs/tags/parameters"},{label:"execute",permalink:"/node-mysql2/pt-BR/docs/tags/execute"}],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2,tags:["Prepared Statements","Placeholders","Parameters","execute"]},sidebar:"examples",previous:{title:"SELECT",permalink:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/select"},next:{title:"DELETE",permalink:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/delete"}},h={},p=[{value:"execute(sql, values)",id:"executesql-values",level:2},{value:"execute(options)",id:"executeoptions",level:2},{value:"execute(options, values)",id:"executeoptions-values",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"QueryOptions",id:"queryoptions",level:3}];function x(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"update",children:"UPDATE"}),"\n",(0,s.jsx)(n.h2,{id:"executesql-values",children:"execute(sql, values)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"execute(sql: string, values: any[])"})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';\n const values = [20, 'Josh'];\n\n // highlight-next-line\n const [result, fields] = await connection.execute(sql, values);\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';\nconst values = [20, 'Josh'];\n\nconnection.execute(sql, values, (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n});\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"executeoptions",children:"execute(options)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["execute(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';\n const values = [20, 'Josh'];\n\n // highlight-start\n const [result, fields] = await connection.execute({\n sql,\n values,\n // ... other options\n });\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';\nconst values = [20, 'Josh'];\n\nconnection.execute(\n {\n sql,\n values,\n // ... other options\n },\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"executeoptions-values",children:"execute(options, values)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["execute(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),", values: any[])"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';\n const values = [20, 'Josh'];\n\n // highlight-start\n const [result, fields] = await connection.execute(\n {\n sql,\n // ... other options\n },\n values\n );\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';\nconst values = [20, 'Josh'];\n\nconnection.execute(\n {\n sql,\n // ... other options\n },\n values,\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,s.jsx)(n.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,s.jsx)(o.Z,{title:"ResultSetHeader Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts",extractMethod:"ResultSetHeader",methodType:"interface"})}),"\n",(0,s.jsx)(n.h3,{id:"queryoptions",children:"QueryOptions"}),"\n",(0,s.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(x,{...e})}):x(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>a});t(7294);var s=t(512);const r={tabItem:"tabItem_Ymn6"};var l=t(5893);function a(e){let{children:n,hidden:t,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,s.Z)(r.tabItem,a),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>q});var s=t(7294),r=t(512),l=t(2466),a=t(6550),o=t(469),i=t(1980),c=t(7392),u=t(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:t}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:s,default:r}}=e;return{value:n,label:t,attributes:s,default:r}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function x(e){let{queryString:n=!1,groupId:t}=e;const r=(0,a.k6)(),l=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,i._X)(l),(0,s.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(r.location.search);n.set(l,e),r.replace({...r.location,search:n.toString()})}),[l,r])]}function m(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,l=h(e),[a,i]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=t.find((e=>e.default))??t[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:l}))),[c,d]=x({queryString:t,groupId:r}),[m,j]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,l]=(0,u.Nk)(t);return[r,(0,s.useCallback)((e=>{t&&l.set(e)}),[t,l])]}({groupId:r}),g=(()=>{const e=c??m;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{g&&i(g)}),[g]);return{selectedValue:a,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),j(e)}),[d,j,l]),tabValues:l}}var j=t(2389);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=t(5893);function b(e){let{className:n,block:t,selectedValue:s,selectValue:a,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,l.o5)(),u=e=>{const n=e.currentTarget,t=i.indexOf(n),r=o[t].value;r!==s&&(c(n),a(r))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const t=i.indexOf(e.currentTarget)+1;n=i[t]??i[0];break}case"ArrowLeft":{const t=i.indexOf(e.currentTarget)-1;n=i[t]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":t},n),children:o.map((e=>{let{value:n,label:t,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>i.push(e),onKeyDown:d,onClick:u,...l,className:(0,r.Z)("tabs__item",g.tabItem,l?.className,{"tabs__item--active":s===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:r}=e;const l=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===r));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function y(e){const n=m(e);return(0,f.jsxs)("div",{className:(0,r.Z)("tabs-container",g.tabList),children:[(0,f.jsx)(b,{...e,...n}),(0,f.jsx)(v,{...e,...n})]})}function q(e){const n=(0,j.Z)();return(0,f.jsx)(y,{...e,children:d(e.children)},String(n))}},4379:(e,n,t)=>{t.d(n,{I:()=>i});var s=t(7294),r=t(2263),l=t(9286),a=t(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:t,extractMethod:i,methodType:c}=e;const[u,d]=(0,s.useState)(""),[h,p]=(0,s.useState)(!0),[x,m]=(0,s.useState)(!0),{siteConfig:j}=(0,r.Z)(),g=j.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${g}${n}`:n;return(0,s.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&c?((e,n,t)=>{const s=e.split("\n"),r=`${t} ${n}`;let l=!1,a=0,o="";for(const i of s)if(i.includes(r)&&(l=!0),l&&(i.includes("{")&&a++,o+=i+"\n",i.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,i,c):e;d(n||e),p(!1),m(!1)})).catch((()=>{m(!0),p(!1)})),()=>{e.abort()}}),[f,i,c]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:x?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${t}`,children:u})})})}},6393:(e,n,t)=>{t.d(n,{Z:()=>l});var s=t(4673),r=t(5893);const l=e=>{let{children:n,open:t,title:l}=e;return(0,r.jsx)(s.Z,{open:t,className:"faq",summary:(0,r.jsx)("summary",{children:(0,r.jsx)("strong",{children:l})}),children:(0,r.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/b814814f.c23e4fb0.js b/pt-BR/assets/js/b814814f.c23e4fb0.js new file mode 100644 index 0000000000..210f47b51a --- /dev/null +++ b/pt-BR/assets/js/b814814f.c23e4fb0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[881],{9117:e=>{e.exports=JSON.parse('{"label":"execute","permalink":"/node-mysql2/pt-BR/docs/tags/execute","allTagsPath":"/node-mysql2/pt-BR/docs/tags","count":5,"items":[{"id":"examples/queries/prepared-statements/delete","title":"DELETE","description":"execute(sql, values)","permalink":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/delete"},{"id":"examples/queries/prepared-statements/insert","title":"INSERT","description":"execute(sql, values)","permalink":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/insert"},{"id":"documentation/prepared-statements","title":"Prepared Statements","description":"Automatic creation, cached and re-used by connection","permalink":"/node-mysql2/pt-BR/docs/documentation/prepared-statements"},{"id":"examples/queries/prepared-statements/select","title":"SELECT","description":"execute(sql, values)","permalink":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/select"},{"id":"examples/queries/prepared-statements/update","title":"UPDATE","description":"execute(sql, values)","permalink":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/update"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/bc31cbdb.228ea185.js b/pt-BR/assets/js/bc31cbdb.228ea185.js deleted file mode 100644 index 597db164e1..0000000000 --- a/pt-BR/assets/js/bc31cbdb.228ea185.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1437],{861:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>f,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},u="Procedure Call Packet (Row as Array)",c={id:"examples/typescript/procedure-call/row-as-array",title:"Procedure Call Packet (Row as Array)",description:"",source:"@site/docs/examples/typescript/procedure-call/01-row-as-array.mdx",sourceDirName:"examples/typescript/procedure-call",slug:"/examples/typescript/procedure-call/row-as-array",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-array",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/procedure-call/01-row-as-array.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"examples",previous:{title:"Procedure Call Packet",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/procedure-call-packet"},next:{title:"Row Data Packet",permalink:"/node-mysql2/pt-BR/docs/category/row-data-packet"}},i={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"procedure-call-packet-row-as-array",children:"Procedure Call Packet (Row as Array)"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ProcedureCallPacket,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n /** id */\n 0: number;\n /** name */\n 1: string;\n}\n\nconst isResultSetHeader = (data: unknown): data is ResultSetHeader => {\n if (!data || typeof data !== 'object') return false;\n\n const keys = [\n 'fieldCount',\n 'affectedRows',\n 'insertId',\n 'info',\n 'serverStatus',\n 'warningStatus',\n 'changedRows',\n ];\n\n return keys.every((key) => key in data);\n};\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n rowsAsArray: true,\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Deleting the `getUsers` procedure, if it exists */\n await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');\n\n /** Creating a procedure to get the users */\n await conn.query<ResultSetHeader>(`\n CREATE PROCEDURE getUsers()\n BEGIN\n SELECT * FROM users ORDER BY name ASC;\n END\n `);\n\n /** Getting users */\n // highlight-start\n const [procedureResult] =\n await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');\n\n procedureResult.forEach((users) => {\n /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */\n if (isResultSetHeader(users)) {\n console.log('----------------');\n console.log('Affected Rows:', users.affectedRows);\n } else {\n users.forEach((user) => {\n console.log('----------------');\n console.log('id: ', user[0]);\n console.log('name:', user[1]);\n });\n }\n });\n // highlight-end\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * ----------------\n * id: 4\n * name: Gween\n * ----------------\n * id: 2\n * name: John\n * ----------------\n * id: 1\n * name: Josh\n * ----------------\n * id: 3\n * name: Marie\n * ----------------\n * Affected Rows: 0\n */\n"})})})})]})}function f(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>x});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function f(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function m(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function h(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!f({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[c,d]=m({queryString:t,groupId:a}),[h,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,i.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),y=(()=>{const e=c??h;return f({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!f({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function w(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),a=l[t].value;a!==r&&(c(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",y.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function R(e){const n=h(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",y.tabList),children:[(0,g.jsx)(w,{...e,...n}),(0,g.jsx)(v,{...e,...n})]})}function x(e){const n=(0,b.Z)();return(0,g.jsx)(R,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/bc31cbdb.4185e6db.js b/pt-BR/assets/js/bc31cbdb.4185e6db.js new file mode 100644 index 0000000000..c2b372103f --- /dev/null +++ b/pt-BR/assets/js/bc31cbdb.4185e6db.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1437],{861:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},u="Procedure Call Packet (Row as Array)",c={id:"examples/typescript/procedure-call/row-as-array",title:"Procedure Call Packet (Row as Array)",description:"",source:"@site/docs/examples/typescript/procedure-call/01-row-as-array.mdx",sourceDirName:"examples/typescript/procedure-call",slug:"/examples/typescript/procedure-call/row-as-array",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-array",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/procedure-call/01-row-as-array.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"examples",previous:{title:"Procedure Call Packet",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/index"},next:{title:"Row Data Packet",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/row-data/index"}},i={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"procedure-call-packet-row-as-array",children:"Procedure Call Packet (Row as Array)"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ProcedureCallPacket,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n /** id */\n 0: number;\n /** name */\n 1: string;\n}\n\nconst isResultSetHeader = (data: unknown): data is ResultSetHeader => {\n if (!data || typeof data !== 'object') return false;\n\n const keys = [\n 'fieldCount',\n 'affectedRows',\n 'insertId',\n 'info',\n 'serverStatus',\n 'warningStatus',\n 'changedRows',\n ];\n\n return keys.every((key) => key in data);\n};\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n rowsAsArray: true,\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Deleting the `getUsers` procedure, if it exists */\n await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');\n\n /** Creating a procedure to get the users */\n await conn.query<ResultSetHeader>(`\n CREATE PROCEDURE getUsers()\n BEGIN\n SELECT * FROM users ORDER BY name ASC;\n END\n `);\n\n /** Getting users */\n // highlight-start\n const [procedureResult] =\n await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');\n\n procedureResult.forEach((users) => {\n /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */\n if (isResultSetHeader(users)) {\n console.log('----------------');\n console.log('Affected Rows:', users.affectedRows);\n } else {\n users.forEach((user) => {\n console.log('----------------');\n console.log('id: ', user[0]);\n console.log('name:', user[1]);\n });\n }\n });\n // highlight-end\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * ----------------\n * id: 4\n * name: Gween\n * ----------------\n * id: 2\n * name: John\n * ----------------\n * id: 1\n * name: Josh\n * ----------------\n * id: 3\n * name: Marie\n * ----------------\n * Affected Rows: 0\n */\n"})})})})]})}function m(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>x});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function h(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[c,d]=f({queryString:t,groupId:a}),[h,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,i.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),y=(()=>{const e=c??h;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function w(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),a=l[t].value;a!==r&&(c(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",y.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function R(e){const n=h(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",y.tabList),children:[(0,g.jsx)(w,{...e,...n}),(0,g.jsx)(v,{...e,...n})]})}function x(e){const n=(0,b.Z)();return(0,g.jsx)(R,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/bc868b95.779d37c2.js b/pt-BR/assets/js/bc868b95.779d37c2.js deleted file mode 100644 index 723d6469fa..0000000000 --- a/pt-BR/assets/js/bc868b95.779d37c2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2423],{6224:e=>{e.exports=JSON.parse('{"title":"Queries","slug":"/category/queries","permalink":"/node-mysql2/pt-BR/docs/category/queries","navigation":{"previous":{"title":"Promise CO Await","permalink":"/node-mysql2/pt-BR/docs/examples/promise-co-await"},"next":{"title":"SELECT","permalink":"/node-mysql2/pt-BR/docs/examples/queries/select"}}}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/c3c9efa4.c54a85a0.js b/pt-BR/assets/js/c3c9efa4.c54a85a0.js deleted file mode 100644 index 4738d8388e..0000000000 --- a/pt-BR/assets/js/c3c9efa4.c54a85a0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1683],{6419:e=>{e.exports=JSON.parse('{"title":"Procedure Call Packet","slug":"/category/procedure-call-packet","permalink":"/node-mysql2/pt-BR/docs/category/procedure-call-packet","navigation":{"previous":{"title":"Basic Custom Class","permalink":"/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-class"},"next":{"title":"Procedure Call Packet","permalink":"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/procedure-call-packet"}}}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/cdbda324.83dea7a7.js b/pt-BR/assets/js/cdbda324.81a5c23b.js similarity index 99% rename from pt-BR/assets/js/cdbda324.83dea7a7.js rename to pt-BR/assets/js/cdbda324.81a5c23b.js index 6b21963b1f..4597ddcb8a 100644 --- a/pt-BR/assets/js/cdbda324.83dea7a7.js +++ b/pt-BR/assets/js/cdbda324.81a5c23b.js @@ -1,2 +1,2 @@ -/*! For license information please see cdbda324.83dea7a7.js.LICENSE.txt */ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4116],{1851:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>h,contentTitle:()=>i,default:()=>g,frontMatter:()=>c,metadata:()=>a,toc:()=>d});var s=r(5893),t=r(1151),o=r(6393),l=r(3901);const c={},i="How to handle errors?",a={id:"faq/how-to-handle-errors",title:"How to handle errors?",description:"This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as createConnection, createPool, createPoolCluster, execute and query.",source:"@site/docs/faq/how-to-handle-errors.mdx",sourceDirName:"faq",slug:"/faq/how-to-handle-errors",permalink:"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/faq/how-to-handle-errors.mdx",tags:[],version:"current",frontMatter:{},sidebar:"faq",previous:{title:"Introduction",permalink:"/node-mysql2/pt-BR/docs/faq"}},h={},d=[{value:"Using callbacks",id:"using-callbacks",level:2},{value:"Using promises",id:"using-promises",level:2},{value:"Related Links",id:"related-links",level:2}];function u(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"how-to-handle-errors",children:"How to handle errors?"}),"\n",(0,s.jsxs)(n.p,{children:["This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"}),", ",(0,s.jsx)(n.code,{children:"createPoolCluster"}),", ",(0,s.jsx)(n.code,{children:"execute"})," and ",(0,s.jsx)(n.code,{children:"query"}),"."]}),"\n",(0,s.jsx)(n.h2,{id:"using-callbacks",children:"Using callbacks"}),"\n",(0,s.jsxs)(o.Z,{title:"createConnection",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested and confirmed as the correct answer."}),(0,s.jsx)(n.p,{children:"Handling connection errors by adding an error event listener:"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconnection = mysql.createConnection({\n host: '',\n user: '',\n database: '',\n});\n\n// highlight-start\nconnection.addListener('error', (err) => {\n if (err instanceof Error) {\n console.log(`createConnection error:`, err);\n }\n});\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPool",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool({\n host: '',\n user: '',\n database: '',\n});\n\npool.getConnection((err, connection) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('pool.getConnection error:', err);\n return;\n }\n // highlight-end\n});\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPoolCluster",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('NodeI', {\n host: '',\n user: '',\n database: '',\n});\n\npoolCluster.getConnection('NodeI', (err, connection) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('poolCluster.getConnection error:', err);\n return;\n }\n // highlight-end\n});\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"execute",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"execute"})," errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connection.execute('SELEC 1 + 1', (err, rows) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('execute error:', err);\n return;\n }\n // highlight-end\n\n console.log(rows);\n});\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsxs)(o.Z,{title:"query",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"query"})," errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connection.query('SELEC 1 + 1', (err, rows) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('query error:', err);\n return;\n }\n // highlight-end\n\n console.log(rows);\n});\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsx)(n.h2,{id:"using-promises",children:"Using promises"}),"\n",(0,s.jsxs)(o.Z,{title:"createConnection",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested and confirmed as the correct answer."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n const connection = await mysql.createConnection({\n host: '',\n user: '',\n database: '',\n });\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log(err);\n }\n}\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPool",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nconst pool = mysql.createPool({\n host: '',\n user: '',\n database: '',\n});\n\ntry {\n const connection = await pool.getConnection();\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log(err);\n }\n}\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPoolCluster",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('NodeI', {\n host: '',\n user: '',\n database: '',\n});\n\ntry {\n await poolCluster.getConnection('NodeI');\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log('createConnection error:', err);\n }\n}\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"execute",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"execute"})," errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const [rows] = await connection.execute('SELEC 1 + 1');\n console.log(rows);\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log('execute error:', err);\n }\n}\n// highlight-end\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsxs)(o.Z,{title:"query",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"query"})," errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const [rows] = await connection.query('SELEC 1 + 1');\n console.log(rows);\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log('query error:', err);\n }\n}\n// highlight-end\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"related-links",children:"Related Links"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Discussions","\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/discussions/1998",children:"#1998"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/discussions/2282",children:"#2282"})}),"\n"]}),"\n"]}),"\n"]})]})}function g(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},4673:(e,n,r)=>{r.d(n,{Z:()=>x});var s=r(7294),t=r(512),o=r(2389),l=r(6043);const c={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var i=r(5893);function a(e){return!!e&&("SUMMARY"===e.tagName||a(e.parentElement))}function h(e,n){return!!e&&(e===n||h(e.parentElement,n))}function d(e){let{summary:n,children:r,...d}=e;const u=(0,o.Z)(),g=(0,s.useRef)(null),{collapsed:x,setCollapsed:j}=(0,l.u)({initialState:!d.open}),[p,m]=(0,s.useState)(d.open),y=s.isValidElement(n)?n:(0,i.jsx)("summary",{children:n??"Details"});return(0,i.jsxs)("details",{...d,ref:g,open:p,"data-collapsed":x,className:(0,t.Z)(c.details,u&&c.isBrowser,d.className),onMouseDown:e=>{a(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const n=e.target;a(n)&&h(n,g.current)&&(e.preventDefault(),x?(j(!1),m(!0)):j(!0))},children:[y,(0,i.jsx)(l.z,{lazy:!1,collapsed:x,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{j(e),m(!e)},children:(0,i.jsx)("div",{className:c.collapsibleContent,children:r})})]})}const u={details:"details_b_Ee"},g="alert alert--info";function x(e){let{...n}=e;return(0,i.jsx)(d,{...n,className:(0,t.Z)(g,u.details,n.className)})}},6393:(e,n,r)=>{r.d(n,{Z:()=>o});var s=r(4673),t=r(5893);const o=e=>{let{children:n,open:r,title:o}=e;return(0,t.jsx)(s.Z,{open:r,className:"faq",summary:(0,t.jsx)("summary",{children:(0,t.jsx)("strong",{children:o})}),children:(0,t.jsx)("section",{children:n})})}},3901:(e,n,r)=>{r.d(n,{X:()=>u});var s=r(9960),t=r(4297);const o=(0,t.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),l=(0,t.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),c=(0,t.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),i=(0,t.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),a=(0,t.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),h=(0,t.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var d=r(5893);const u=e=>{let{level:n,message:r}=e;const t={0:{title:"Deprecated",icon:(0,d.jsx)(o,{})},1:{title:"Experimental",icon:(0,d.jsx)(l,{})},1.1:{title:"Early Development",icon:(0,d.jsx)(c,{})},1.2:{title:"Release Candidate",icon:(0,d.jsx)(i,{})},2:{title:"Stable",icon:(0,d.jsx)(a,{})},3:{title:"Legacy",icon:(0,d.jsx)(h,{})}};return(0,d.jsxs)("section",{className:"stability","data-level":n,children:[(0,d.jsx)(s.Z,{to:"/docs/stability-badges",children:(0,d.jsxs)("header",{children:[(0,d.jsx)("strong",{children:n}),(0,d.jsx)("span",{children:t[n].title}),t[n].icon]})}),r?(0,d.jsx)("p",{children:r}):null]})}},4297:(e,n,r)=>{r.d(n,{Z:()=>o});var s=r(7294),t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const o=(e,n)=>{const r=(0,s.forwardRef)((({color:r="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:c,className:i="",children:a,...h},d)=>{return(0,s.createElement)("svg",{ref:d,...t,width:o,height:o,stroke:r,strokeWidth:c?24*Number(l)/Number(o):l,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,i].join(" "),...h},[...n.map((([e,n])=>(0,s.createElement)(e,n))),...Array.isArray(a)?a:[a]]);var u}));return r.displayName=`${e}`,r}},1151:(e,n,r)=>{r.d(n,{Z:()=>c,a:()=>l});var s=r(7294);const t={},o=s.createContext(t);function l(e){const n=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),s.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file +/*! For license information please see cdbda324.81a5c23b.js.LICENSE.txt */ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4116],{1851:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>h,contentTitle:()=>i,default:()=>g,frontMatter:()=>c,metadata:()=>a,toc:()=>d});var s=r(5893),t=r(1151),o=r(6393),l=r(3901);const c={},i="How to handle errors?",a={id:"faq/how-to-handle-errors",title:"How to handle errors?",description:"This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as createConnection, createPool, createPoolCluster, execute and query.",source:"@site/docs/faq/how-to-handle-errors.mdx",sourceDirName:"faq",slug:"/faq/how-to-handle-errors",permalink:"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/faq/how-to-handle-errors.mdx",tags:[],version:"current",frontMatter:{},sidebar:"faq",previous:{title:"Introduction",permalink:"/node-mysql2/pt-BR/docs/faq"}},h={},d=[{value:"Using callbacks",id:"using-callbacks",level:2},{value:"Using promises",id:"using-promises",level:2},{value:"Related Links",id:"related-links",level:2}];function u(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"how-to-handle-errors",children:"How to handle errors?"}),"\n",(0,s.jsxs)(n.p,{children:["This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"}),", ",(0,s.jsx)(n.code,{children:"createPoolCluster"}),", ",(0,s.jsx)(n.code,{children:"execute"})," and ",(0,s.jsx)(n.code,{children:"query"}),"."]}),"\n",(0,s.jsx)(n.h2,{id:"using-callbacks",children:"Using callbacks"}),"\n",(0,s.jsxs)(o.Z,{title:"createConnection",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested and confirmed as the correct answer."}),(0,s.jsx)(n.p,{children:"Handling connection errors by adding an error event listener:"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconnection = mysql.createConnection({\n host: '',\n user: '',\n database: '',\n});\n\n// highlight-start\nconnection.addListener('error', (err) => {\n if (err instanceof Error) {\n console.log(`createConnection error:`, err);\n }\n});\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPool",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool({\n host: '',\n user: '',\n database: '',\n});\n\npool.getConnection((err, connection) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('pool.getConnection error:', err);\n return;\n }\n // highlight-end\n});\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPoolCluster",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('NodeI', {\n host: '',\n user: '',\n database: '',\n});\n\npoolCluster.getConnection('NodeI', (err, connection) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('poolCluster.getConnection error:', err);\n return;\n }\n // highlight-end\n});\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"execute",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"execute"})," errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connection.execute('SELEC 1 + 1', (err, rows) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('execute error:', err);\n return;\n }\n // highlight-end\n\n console.log(rows);\n});\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsxs)(o.Z,{title:"query",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"query"})," errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connection.query('SELEC 1 + 1', (err, rows) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('query error:', err);\n return;\n }\n // highlight-end\n\n console.log(rows);\n});\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsx)(n.h2,{id:"using-promises",children:"Using promises"}),"\n",(0,s.jsxs)(o.Z,{title:"createConnection",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested and confirmed as the correct answer."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n const connection = await mysql.createConnection({\n host: '',\n user: '',\n database: '',\n });\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log(err);\n }\n}\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPool",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nconst pool = mysql.createPool({\n host: '',\n user: '',\n database: '',\n});\n\ntry {\n const connection = await pool.getConnection();\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log(err);\n }\n}\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPoolCluster",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('NodeI', {\n host: '',\n user: '',\n database: '',\n});\n\ntry {\n await poolCluster.getConnection('NodeI');\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log('createConnection error:', err);\n }\n}\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"execute",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"execute"})," errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const [rows] = await connection.execute('SELEC 1 + 1');\n console.log(rows);\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log('execute error:', err);\n }\n}\n// highlight-end\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsxs)(o.Z,{title:"query",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"query"})," errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const [rows] = await connection.query('SELEC 1 + 1');\n console.log(rows);\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log('query error:', err);\n }\n}\n// highlight-end\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"related-links",children:"Related Links"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Discussions","\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/discussions/1998",children:"#1998"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/discussions/2282",children:"#2282"})}),"\n"]}),"\n"]}),"\n"]})]})}function g(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},4673:(e,n,r)=>{r.d(n,{Z:()=>x});var s=r(7294),t=r(512),o=r(2389),l=r(6043);const c={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var i=r(5893);function a(e){return!!e&&("SUMMARY"===e.tagName||a(e.parentElement))}function h(e,n){return!!e&&(e===n||h(e.parentElement,n))}function d(e){let{summary:n,children:r,...d}=e;const u=(0,o.Z)(),g=(0,s.useRef)(null),{collapsed:x,setCollapsed:j}=(0,l.u)({initialState:!d.open}),[p,m]=(0,s.useState)(d.open),y=s.isValidElement(n)?n:(0,i.jsx)("summary",{children:n??"Details"});return(0,i.jsxs)("details",{...d,ref:g,open:p,"data-collapsed":x,className:(0,t.Z)(c.details,u&&c.isBrowser,d.className),onMouseDown:e=>{a(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const n=e.target;a(n)&&h(n,g.current)&&(e.preventDefault(),x?(j(!1),m(!0)):j(!0))},children:[y,(0,i.jsx)(l.z,{lazy:!1,collapsed:x,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{j(e),m(!e)},children:(0,i.jsx)("div",{className:c.collapsibleContent,children:r})})]})}const u={details:"details_b_Ee"},g="alert alert--info";function x(e){let{...n}=e;return(0,i.jsx)(d,{...n,className:(0,t.Z)(g,u.details,n.className)})}},6393:(e,n,r)=>{r.d(n,{Z:()=>o});var s=r(4673),t=r(5893);const o=e=>{let{children:n,open:r,title:o}=e;return(0,t.jsx)(s.Z,{open:r,className:"faq",summary:(0,t.jsx)("summary",{children:(0,t.jsx)("strong",{children:o})}),children:(0,t.jsx)("section",{children:n})})}},3901:(e,n,r)=>{r.d(n,{X:()=>u});var s=r(3692),t=r(4297);const o=(0,t.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),l=(0,t.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),c=(0,t.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),i=(0,t.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),a=(0,t.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),h=(0,t.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var d=r(5893);const u=e=>{let{level:n,message:r}=e;const t={0:{title:"Deprecated",icon:(0,d.jsx)(o,{})},1:{title:"Experimental",icon:(0,d.jsx)(l,{})},1.1:{title:"Early Development",icon:(0,d.jsx)(c,{})},1.2:{title:"Release Candidate",icon:(0,d.jsx)(i,{})},2:{title:"Stable",icon:(0,d.jsx)(a,{})},3:{title:"Legacy",icon:(0,d.jsx)(h,{})}};return(0,d.jsxs)("section",{className:"stability","data-level":n,children:[(0,d.jsx)(s.Z,{to:"/docs/stability-badges",children:(0,d.jsxs)("header",{children:[(0,d.jsx)("strong",{children:n}),(0,d.jsx)("span",{children:t[n].title}),t[n].icon]})}),r?(0,d.jsx)("p",{children:r}):null]})}},4297:(e,n,r)=>{r.d(n,{Z:()=>o});var s=r(7294),t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const o=(e,n)=>{const r=(0,s.forwardRef)((({color:r="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:c,className:i="",children:a,...h},d)=>{return(0,s.createElement)("svg",{ref:d,...t,width:o,height:o,stroke:r,strokeWidth:c?24*Number(l)/Number(o):l,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,i].join(" "),...h},[...n.map((([e,n])=>(0,s.createElement)(e,n))),...Array.isArray(a)?a:[a]]);var u}));return r.displayName=`${e}`,r}},1151:(e,n,r)=>{r.d(n,{Z:()=>c,a:()=>l});var s=r(7294);const t={},o=s.createContext(t);function l(e){const n=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),s.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/cdbda324.81a5c23b.js.LICENSE.txt b/pt-BR/assets/js/cdbda324.81a5c23b.js.LICENSE.txt new file mode 100644 index 0000000000..3d48b22d31 --- /dev/null +++ b/pt-BR/assets/js/cdbda324.81a5c23b.js.LICENSE.txt @@ -0,0 +1,6 @@ +/** + * @license lucide-react v0.306.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */ diff --git a/pt-BR/assets/js/cdbda324.83dea7a7.js.LICENSE.txt b/pt-BR/assets/js/cdbda324.83dea7a7.js.LICENSE.txt deleted file mode 100644 index 4b1ddb7671..0000000000 --- a/pt-BR/assets/js/cdbda324.83dea7a7.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/** - * @license lucide-react v0.303.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ diff --git a/pt-BR/assets/js/cffacdf0.ee115849.js b/pt-BR/assets/js/cffacdf0.ee115849.js new file mode 100644 index 0000000000..38659c4cef --- /dev/null +++ b/pt-BR/assets/js/cffacdf0.ee115849.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8406],{5721:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>p,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},u="Server",c={id:"examples/tests/server",title:"Server",description:"",source:"@site/docs/examples/tests/server.mdx",sourceDirName:"examples/tests",slug:"/examples/tests/server",permalink:"/node-mysql2/pt-BR/docs/examples/tests/server",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/tests/server.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Pool",permalink:"/node-mysql2/pt-BR/docs/examples/tests/pool"},next:{title:"Basic Custom Class",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-class"}},i={},d=[];function m(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"server",children:"Server"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst flags = require('mysql2/lib/constants/client.js');\nconst auth = require('mysql2/lib/auth_41.js');\n\nfunction authenticate(params, cb) {\n console.log(params);\n const doubleSha = auth.doubleSha1('pass123');\n const isValid = auth.verifyToken(\n params.authPluginData1,\n params.authPluginData2,\n params.authToken,\n doubleSha\n );\n if (isValid) {\n cb(null);\n } else {\n // for list of codes lib/constants/errors.js\n cb(null, { message: 'wrong password dude', code: 1045 });\n }\n}\n\nconst server = mysql.createServer();\nserver.listen(3333);\nserver.on('connection', (conn) => {\n // we can deny connection here:\n // conn.writeError({ message: 'secret', code: 123 });\n // conn.close();\n conn.serverHandshake({\n protocolVersion: 10,\n serverVersion: '5.6.10', // 'node.js rocks',\n connectionId: 1234,\n statusFlags: 2,\n characterSet: 8,\n // capabilityFlags: 0xffffff,\n // capabilityFlags: -2113931265,\n capabilityFlags: 2181036031,\n authCallback: authenticate,\n });\n\n conn.on('field_list', (table, fields) => {\n console.log('FIELD LIST:', table, fields);\n conn.writeEof();\n });\n\n conn.on('query', (query) => {\n conn.writeColumns([\n {\n catalog: 'def',\n schema: 'test',\n table: 'test_table',\n orgTable: 'test_table',\n name: 'beta',\n orgName: 'beta',\n characterSet: 33,\n columnLength: 384,\n columnType: 253,\n flags: 0,\n decimals: 0,\n },\n ]);\n conn.writeTextRow(['test \u0442\u0435\u0441\u0442 \u30c6\u30b9\u30c8 \u0583\u0578\u0580\u0571\u0561\u0580\u056f\u0578\u0582\u0574 \u09aa\u09b0\u09c0\u0995\u09cd\u09b7\u09be ki\u1ec3m tra ']);\n conn.writeTextRow(['\u10e2\u10d4\u10e1\u10e2\u10d8 \u0aaa\u0ab0\u0ac0\u0a95\u0acd\u0ab7\u0aa3 \u05de\u05d1\u05d7\u05df \u05e4\u05bc\u05e8\u05d5\u05d1\u05d9\u05e8\u05df \u0627\u062e\u062a\u0628\u0627\u0631 \u092a\u0930\u0940\u0915\u094d\u0937\u0923']);\n conn.writeEof();\n conn.close();\n });\n});\n"})})})})]})}function p(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>k});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=m(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[c,d]=f({queryString:t,groupId:a}),[b,h]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,i.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),v=(()=>{const e=c??b;return p({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,s]),tabValues:s}}var h=t(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function y(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),a=l[t].value;a!==r&&(c(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function x(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function w(e){const n=b(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,g.jsx)(y,{...e,...n}),(0,g.jsx)(x,{...e,...n})]})}function k(e){const n=(0,h.Z)();return(0,g.jsx)(w,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/d04b867d.6b2db20e.js b/pt-BR/assets/js/d04b867d.6b2db20e.js new file mode 100644 index 0000000000..a98a780f60 --- /dev/null +++ b/pt-BR/assets/js/d04b867d.6b2db20e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3699],{7134:e=>{e.exports=JSON.parse('{"label":"Parameters","permalink":"/node-mysql2/pt-BR/docs/tags/parameters","allTagsPath":"/node-mysql2/pt-BR/docs/tags","count":4,"items":[{"id":"examples/queries/prepared-statements/delete","title":"DELETE","description":"execute(sql, values)","permalink":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/delete"},{"id":"examples/queries/prepared-statements/insert","title":"INSERT","description":"execute(sql, values)","permalink":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/insert"},{"id":"examples/queries/prepared-statements/select","title":"SELECT","description":"execute(sql, values)","permalink":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/select"},{"id":"examples/queries/prepared-statements/update","title":"UPDATE","description":"execute(sql, values)","permalink":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/update"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/d2002d6f.d73ca65b.js b/pt-BR/assets/js/d2002d6f.d73ca65b.js deleted file mode 100644 index 874046a1a0..0000000000 --- a/pt-BR/assets/js/d2002d6f.d73ca65b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7184],{1185:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>o,metadata:()=>i,toc:()=>d});var n=r(5893),a=r(1151),s=r(4866),l=r(5162);const o={},u="Pass SHA",i={id:"examples/pass-sha",title:"Pass SHA",description:"",source:"@site/docs/examples/pass-sha.mdx",sourceDirName:"examples",slug:"/examples/pass-sha",permalink:"/node-mysql2/pt-BR/docs/examples/pass-sha",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/pass-sha.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"MySQL Proxy",permalink:"/node-mysql2/pt-BR/docs/examples/mysqlproxy"},next:{title:"Pool Test",permalink:"/node-mysql2/pt-BR/docs/examples/pool-test"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h1,{id:"pass-sha",children:"Pass SHA"}),"\n",(0,n.jsx)(s.Z,{children:(0,n.jsx)(l.Z,{value:"index.js",default:!0,children:(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2').createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'),\n});\n\nmysql.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [1, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n }\n);\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},5162:(e,t,r)=>{r.d(t,{Z:()=>l});r(7294);var n=r(512);const a={tabItem:"tabItem_Ymn6"};var s=r(5893);function l(e){let{children:t,hidden:r,className:l}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,n.Z)(a.tabItem,l),hidden:r,children:t})}},4866:(e,t,r)=>{r.d(t,{Z:()=>q});var n=r(7294),a=r(512),s=r(2466),l=r(6550),o=r(469),u=r(1980),i=r(7392),c=r(12);function d(e){return n.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,n.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:r}=e;return(0,n.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:r,attributes:n,default:a}}=e;return{value:t,label:r,attributes:n,default:a}}))}(r);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,r])}function m(e){let{value:t,tabValues:r}=e;return r.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:r}=e;const a=(0,l.k6)(),s=function(e){let{queryString:t=!1,groupId:r}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!r)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return r??null}({queryString:t,groupId:r});return[(0,u._X)(s),(0,n.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function h(e){const{defaultValue:t,queryString:r=!1,groupId:a}=e,s=p(e),[l,u]=(0,n.useState)((()=>function(e){let{defaultValue:t,tabValues:r}=e;if(0===r.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:r}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${r.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const n=r.find((e=>e.default))??r[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:t,tabValues:s}))),[i,d]=f({queryString:r,groupId:a}),[h,b]=function(e){let{groupId:t}=e;const r=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,c.Nk)(r);return[a,(0,n.useCallback)((e=>{r&&s.set(e)}),[r,s])]}({groupId:a}),v=(()=>{const e=i??h;return m({value:e,tabValues:s})?e:null})();(0,o.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:l,selectValue:(0,n.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=r(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=r(5893);function y(e){let{className:t,block:r,selectedValue:n,selectValue:l,tabValues:o}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,r=u.indexOf(t),a=o[r].value;a!==n&&(i(t),l(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const r=u.indexOf(e.currentTarget)+1;t=u[r]??u[0];break}case"ArrowLeft":{const r=u.indexOf(e.currentTarget)-1;t=u[r]??u[u.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":r},t),children:o.map((e=>{let{value:t,label:r,attributes:s}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:n===t?0:-1,"aria-selected":n===t,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":n===t}),children:r??t},t)}))})}function g(e){let{lazy:t,children:r,selectedValue:a}=e;const s=(Array.isArray(r)?r:[r]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,n.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,n.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function w(e){const t=h(e);return(0,x.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(y,{...e,...t}),(0,x.jsx)(g,{...e,...t})]})}function q(e){const t=(0,b.Z)();return(0,x.jsx)(w,{...e,children:d(e.children)},String(t))}},1151:(e,t,r)=>{r.d(t,{Z:()=>o,a:()=>l});var n=r(7294);const a={},s=n.createContext(a);function l(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:l(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/db044f71.7bc8a626.js.LICENSE.txt b/pt-BR/assets/js/db044f71.7bc8a626.js.LICENSE.txt deleted file mode 100644 index 4b1ddb7671..0000000000 --- a/pt-BR/assets/js/db044f71.7bc8a626.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/** - * @license lucide-react v0.303.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ diff --git a/pt-BR/assets/js/db044f71.7bc8a626.js b/pt-BR/assets/js/db044f71.8b33f69d.js similarity index 98% rename from pt-BR/assets/js/db044f71.7bc8a626.js rename to pt-BR/assets/js/db044f71.8b33f69d.js index 757ce54181..b92c34bf83 100644 --- a/pt-BR/assets/js/db044f71.7bc8a626.js +++ b/pt-BR/assets/js/db044f71.8b33f69d.js @@ -1,2 +1,2 @@ -/*! For license information please see db044f71.7bc8a626.js.LICENSE.txt */ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6159],{8009:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>p,frontMatter:()=>r,metadata:()=>l,toc:()=>d});var a=s(5893),i=s(1151),n=s(3901);const r={},o="Stability Badges",l={id:"stability-badges",title:"Stability Badges",description:"The Stability Badges are indications of a section's stability.",source:"@site/docs/stability-badges.mdx",sourceDirName:".",slug:"/stability-badges",permalink:"/node-mysql2/pt-BR/docs/stability-badges",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/stability-badges.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Hist\xf3ria e Porque o MySQL2",permalink:"/node-mysql2/pt-BR/docs/history-and-why-mysq2"},next:{title:"Introduction",permalink:"/node-mysql2/pt-BR/docs/documentation"}},c={},d=[];function h(e){const t={blockquote:"blockquote",h1:"h1",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...(0,i.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h1,{id:"stability-badges",children:"Stability Badges"}),"\n",(0,a.jsxs)(t.p,{children:["The ",(0,a.jsx)(t.strong,{children:"Stability Badges"})," are indications of a section's stability."]}),"\n",(0,a.jsx)(t.p,{children:"The stability indices are as follows:"}),"\n",(0,a.jsx)(n.X,{level:0,message:"The feature might generate warnings and does not assure backward compatibility."}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsxs)(t.p,{children:[(0,a.jsx)(t.strong,{children:"Experimental"}),": These features are not bound by semantic versioning. They may undergo non-backward compatible changes or be removed in future releases. Their use in production is discouraged."]}),"\n",(0,a.jsxs)(t.blockquote,{children:["\n",(0,a.jsx)(t.p,{children:"Use caution with Experimental features, especially in libraries. Users might not expect changes from these unstable features. To reduce surprises, consider using a command-line flag for Experimental features."}),"\n"]}),"\n",(0,a.jsx)(t.p,{children:"Experimental features are classified into stages:"}),"\n",(0,a.jsx)(n.X,{level:1,message:"Experimental features at this stage are currently in development and prone to considerable changes."}),"\n",(0,a.jsx)(n.X,{level:1.1,message:"Experimental features at this stage are approaching minimum viability."}),"\n",(0,a.jsx)(n.X,{level:1.2,message:"Experimental features are close to reaching stability. Major changes are not expected, but they could still occur based on user feedback. Testing and feedback are important to ascertain the readiness of these features for stable classification."}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(n.X,{level:2,message:"Compatibility with the MySQL ecosystem is a high priority."}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(n.X,{level:3,message:"This feature, while not likely to be removed and still subject to semantic versioning, is not under active maintenance and other options are available."}),"\n",(0,a.jsxs)(t.ul,{children:["\n",(0,a.jsx)(t.li,{children:"Features are classified as legacy instead of deprecated when they cause no harm and have widespread use in the MySQL ecosystem. It's unlikely that bugs in legacy features will be addressed."}),"\n"]})]})}function p(e={}){const{wrapper:t}={...(0,i.a)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(h,{...e})}):h(e)}},3901:(e,t,s)=>{s.d(t,{X:()=>p});var a=s(9960),i=s(4297);const n=(0,i.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),r=(0,i.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),o=(0,i.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),l=(0,i.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),c=(0,i.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),d=(0,i.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var h=s(5893);const p=e=>{let{level:t,message:s}=e;const i={0:{title:"Deprecated",icon:(0,h.jsx)(n,{})},1:{title:"Experimental",icon:(0,h.jsx)(r,{})},1.1:{title:"Early Development",icon:(0,h.jsx)(o,{})},1.2:{title:"Release Candidate",icon:(0,h.jsx)(l,{})},2:{title:"Stable",icon:(0,h.jsx)(c,{})},3:{title:"Legacy",icon:(0,h.jsx)(d,{})}};return(0,h.jsxs)("section",{className:"stability","data-level":t,children:[(0,h.jsx)(a.Z,{to:"/docs/stability-badges",children:(0,h.jsxs)("header",{children:[(0,h.jsx)("strong",{children:t}),(0,h.jsx)("span",{children:i[t].title}),i[t].icon]})}),s?(0,h.jsx)("p",{children:s}):null]})}},4297:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(7294),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const n=(e,t)=>{const s=(0,a.forwardRef)((({color:s="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:l="",children:c,...d},h)=>{return(0,a.createElement)("svg",{ref:h,...i,width:n,height:n,stroke:s,strokeWidth:o?24*Number(r)/Number(n):r,className:["lucide",`lucide-${p=e,p.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,l].join(" "),...d},[...t.map((([e,t])=>(0,a.createElement)(e,t))),...Array.isArray(c)?c:[c]]);var p}));return s.displayName=`${e}`,s}},1151:(e,t,s)=>{s.d(t,{Z:()=>o,a:()=>r});var a=s(7294);const i={},n=a.createContext(i);function r(e){const t=a.useContext(n);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),a.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file +/*! For license information please see db044f71.8b33f69d.js.LICENSE.txt */ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6159],{8009:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>p,frontMatter:()=>r,metadata:()=>l,toc:()=>d});var a=s(5893),i=s(1151),n=s(3901);const r={},o="Stability Badges",l={id:"stability-badges",title:"Stability Badges",description:"The Stability Badges are indications of a section's stability.",source:"@site/docs/stability-badges.mdx",sourceDirName:".",slug:"/stability-badges",permalink:"/node-mysql2/pt-BR/docs/stability-badges",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/stability-badges.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Hist\xf3ria e Porque o MySQL2",permalink:"/node-mysql2/pt-BR/docs/history-and-why-mysq2"},next:{title:"Introduction",permalink:"/node-mysql2/pt-BR/docs/documentation"}},c={},d=[];function h(e){const t={blockquote:"blockquote",h1:"h1",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...(0,i.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h1,{id:"stability-badges",children:"Stability Badges"}),"\n",(0,a.jsxs)(t.p,{children:["The ",(0,a.jsx)(t.strong,{children:"Stability Badges"})," are indications of a section's stability."]}),"\n",(0,a.jsx)(t.p,{children:"The stability indices are as follows:"}),"\n",(0,a.jsx)(n.X,{level:0,message:"The feature might generate warnings and does not assure backward compatibility."}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsxs)(t.p,{children:[(0,a.jsx)(t.strong,{children:"Experimental"}),": These features are not bound by semantic versioning. They may undergo non-backward compatible changes or be removed in future releases. Their use in production is discouraged."]}),"\n",(0,a.jsxs)(t.blockquote,{children:["\n",(0,a.jsx)(t.p,{children:"Use caution with Experimental features, especially in libraries. Users might not expect changes from these unstable features. To reduce surprises, consider using a command-line flag for Experimental features."}),"\n"]}),"\n",(0,a.jsx)(t.p,{children:"Experimental features are classified into stages:"}),"\n",(0,a.jsx)(n.X,{level:1,message:"Experimental features at this stage are currently in development and prone to considerable changes."}),"\n",(0,a.jsx)(n.X,{level:1.1,message:"Experimental features at this stage are approaching minimum viability."}),"\n",(0,a.jsx)(n.X,{level:1.2,message:"Experimental features are close to reaching stability. Major changes are not expected, but they could still occur based on user feedback. Testing and feedback are important to ascertain the readiness of these features for stable classification."}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(n.X,{level:2,message:"Compatibility with the MySQL ecosystem is a high priority."}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(n.X,{level:3,message:"This feature, while not likely to be removed and still subject to semantic versioning, is not under active maintenance and other options are available."}),"\n",(0,a.jsxs)(t.ul,{children:["\n",(0,a.jsx)(t.li,{children:"Features are classified as legacy instead of deprecated when they cause no harm and have widespread use in the MySQL ecosystem. It's unlikely that bugs in legacy features will be addressed."}),"\n"]})]})}function p(e={}){const{wrapper:t}={...(0,i.a)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(h,{...e})}):h(e)}},3901:(e,t,s)=>{s.d(t,{X:()=>p});var a=s(3692),i=s(4297);const n=(0,i.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),r=(0,i.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),o=(0,i.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),l=(0,i.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),c=(0,i.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),d=(0,i.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var h=s(5893);const p=e=>{let{level:t,message:s}=e;const i={0:{title:"Deprecated",icon:(0,h.jsx)(n,{})},1:{title:"Experimental",icon:(0,h.jsx)(r,{})},1.1:{title:"Early Development",icon:(0,h.jsx)(o,{})},1.2:{title:"Release Candidate",icon:(0,h.jsx)(l,{})},2:{title:"Stable",icon:(0,h.jsx)(c,{})},3:{title:"Legacy",icon:(0,h.jsx)(d,{})}};return(0,h.jsxs)("section",{className:"stability","data-level":t,children:[(0,h.jsx)(a.Z,{to:"/docs/stability-badges",children:(0,h.jsxs)("header",{children:[(0,h.jsx)("strong",{children:t}),(0,h.jsx)("span",{children:i[t].title}),i[t].icon]})}),s?(0,h.jsx)("p",{children:s}):null]})}},4297:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(7294),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const n=(e,t)=>{const s=(0,a.forwardRef)((({color:s="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:l="",children:c,...d},h)=>{return(0,a.createElement)("svg",{ref:h,...i,width:n,height:n,stroke:s,strokeWidth:o?24*Number(r)/Number(n):r,className:["lucide",`lucide-${p=e,p.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,l].join(" "),...d},[...t.map((([e,t])=>(0,a.createElement)(e,t))),...Array.isArray(c)?c:[c]]);var p}));return s.displayName=`${e}`,s}},1151:(e,t,s)=>{s.d(t,{Z:()=>o,a:()=>r});var a=s(7294);const i={},n=a.createContext(i);function r(e){const t=a.useContext(n);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),a.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/db044f71.8b33f69d.js.LICENSE.txt b/pt-BR/assets/js/db044f71.8b33f69d.js.LICENSE.txt new file mode 100644 index 0000000000..3d48b22d31 --- /dev/null +++ b/pt-BR/assets/js/db044f71.8b33f69d.js.LICENSE.txt @@ -0,0 +1,6 @@ +/** + * @license lucide-react v0.306.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */ diff --git a/pt-BR/assets/js/dcf552eb.7e1bb0c2.js b/pt-BR/assets/js/dcf552eb.7e1bb0c2.js deleted file mode 100644 index 2b24e06524..0000000000 --- a/pt-BR/assets/js/dcf552eb.7e1bb0c2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4338],{6259:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>i,contentTitle:()=>u,default:()=>m,frontMatter:()=>o,metadata:()=>c,toc:()=>d});var r=n(5893),s=n(1151),a=n(4866),l=n(5162);const o={},u="RDS SSL",c={id:"examples/ssl/rds-ssl",title:"RDS SSL",description:"",source:"@site/docs/examples/ssl/rds-ssl.mdx",sourceDirName:"examples/ssl",slug:"/examples/ssl/rds-ssl",permalink:"/node-mysql2/pt-BR/docs/examples/ssl/rds-ssl",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/ssl/rds-ssl.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"SSL",permalink:"/node-mysql2/pt-BR/docs/category/ssl"},next:{title:"Select Over SSL",permalink:"/node-mysql2/pt-BR/docs/examples/ssl/select-over-ssl"}},i={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"rds-ssl",children:"RDS SSL"}),"\n",(0,r.jsx)(a.Z,{children:(0,r.jsx)(l.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\n\nconst conn = mysql.createConnection({\n user: process.env.USER,\n password: process.env.PASSWORD,\n database: process.env.DB,\n host: process.env.HOST,\n port: 3306,\n ssl: 'Amazon RDS',\n});\n\nconn.query(\"show status like 'Ssl_cipher'\", function (err, res) {\n console.log(err, res);\n conn.end();\n});\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var r=n(512);const s={tabItem:"tabItem_Ymn6"};var a=n(5893);function l(e){let{children:t,hidden:n,className:l}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,r.Z)(s.tabItem,l),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(7294),s=n(512),a=n(2466),l=n(6550),o=n(469),u=n(1980),c=n(7392),i=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:s}}=e;return{value:t,label:n,attributes:r,default:s}}))}(n);return function(e){const t=(0,c.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const s=(0,l.k6)(),a=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(a),(0,r.useCallback)((e=>{if(!a)return;const t=new URLSearchParams(s.location.search);t.set(a,e),s.replace({...s.location,search:t.toString()})}),[a,s])]}function h(e){const{defaultValue:t,queryString:n=!1,groupId:s}=e,a=p(e),[l,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:a}))),[c,d]=f({queryString:n,groupId:s}),[h,b]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[s,a]=(0,i.Nk)(n);return[s,(0,r.useCallback)((e=>{n&&a.set(e)}),[n,a])]}({groupId:s}),v=(()=>{const e=c??h;return m({value:e,tabValues:a})?e:null})();(0,o.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:l,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,a]),tabValues:a}}var b=n(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=n(5893);function g(e){let{className:t,block:n,selectedValue:r,selectValue:l,tabValues:o}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,a.o5)(),i=e=>{const t=e.currentTarget,n=u.indexOf(t),s=o[n].value;s!==r&&(c(t),l(s))},d=e=>{let t=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:a}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:i,...a,className:(0,s.Z)("tabs__item",v.tabItem,a?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function y(e){let{lazy:t,children:n,selectedValue:s}=e;const a=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=a.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:a.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==s})))})}function S(e){const t=h(e);return(0,x.jsxs)("div",{className:(0,s.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(g,{...e,...t}),(0,x.jsx)(y,{...e,...t})]})}function w(e){const t=(0,b.Z)();return(0,x.jsx)(S,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>o,a:()=>l});var r=n(7294);const s={},a=r.createContext(s);function l(e){const t=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:l(e.components),r.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/df04d3c8.e0eb28cb.js b/pt-BR/assets/js/df04d3c8.e0eb28cb.js new file mode 100644 index 0000000000..2bc0bad0dd --- /dev/null +++ b/pt-BR/assets/js/df04d3c8.e0eb28cb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9140],{107:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},u="Procedure Call Packet",c={id:"examples/typescript/procedure-call/index",title:"Procedure Call Packet",description:"",source:"@site/docs/examples/typescript/procedure-call/00-index.mdx",sourceDirName:"examples/typescript/procedure-call",slug:"/examples/typescript/procedure-call/index",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/index",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/procedure-call/00-index.mdx",tags:[],version:"current",sidebarPosition:0,frontMatter:{},sidebar:"examples",previous:{title:"Basic Custom Class",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-class"},next:{title:"Procedure Call Packet (Row as Array)",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-array"}},i={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"procedure-call-packet",children:"Procedure Call Packet"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ProcedureCallPacket,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n id: number;\n name: string;\n}\n\nconst isResultSetHeader = (data: unknown): data is ResultSetHeader => {\n if (!data || typeof data !== 'object') return false;\n\n const keys = [\n 'fieldCount',\n 'affectedRows',\n 'insertId',\n 'info',\n 'serverStatus',\n 'warningStatus',\n 'changedRows',\n ];\n\n return keys.every((key) => key in data);\n};\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Deleting the `getUsers` procedure, if it exists */\n await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');\n\n /** Creating a procedure to get the users */\n await conn.query<ResultSetHeader>(`\n CREATE PROCEDURE getUsers()\n BEGIN\n SELECT * FROM users ORDER BY name ASC;\n END\n `);\n\n /** Getting users */\n // highlight-start\n const [procedureResult] =\n await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');\n\n procedureResult.forEach((users) => {\n /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */\n if (isResultSetHeader(users)) {\n console.log('----------------');\n console.log('Affected Rows:', users.affectedRows);\n } else {\n users.forEach((user) => {\n console.log('----------------');\n console.log('id: ', user.id);\n console.log('name:', user.name);\n });\n }\n });\n // highlight-end\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * ----------------\n * id: 4\n * name: Gween\n * ----------------\n * id: 2\n * name: John\n * ----------------\n * id: 1\n * name: Josh\n * ----------------\n * id: 3\n * name: Marie\n * ----------------\n * Affected Rows: 0\n */\n"})})})})]})}function m(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>R});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function h(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[c,d]=f({queryString:t,groupId:a}),[h,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,i.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),y=(()=>{const e=c??h;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function w(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),a=l[t].value;a!==r&&(c(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",y.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function x(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function v(e){const n=h(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",y.tabList),children:[(0,g.jsx)(w,{...e,...n}),(0,g.jsx)(x,{...e,...n})]})}function R(e){const n=(0,b.Z)();return(0,g.jsx)(v,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/df203c0f.56844b1b.js b/pt-BR/assets/js/df203c0f.56844b1b.js new file mode 100644 index 0000000000..319894edee --- /dev/null +++ b/pt-BR/assets/js/df203c0f.56844b1b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9924],{9047:(e,n,t)=>{t.d(n,{Z:()=>M});var i=t(7294),s=t(5893);function o(e){const{mdxAdmonitionTitle:n,rest:t}=function(e){const n=i.Children.toArray(e),t=n.find((e=>i.isValidElement(e)&&"mdxAdmonitionTitle"===e.type)),o=n.filter((e=>e!==t)),l=t?.props.children;return{mdxAdmonitionTitle:l,rest:o.length>0?(0,s.jsx)(s.Fragment,{children:o}):null}}(e.children),o=e.title??n;return{...e,...o&&{title:o},children:t}}var l=t(512),a=t(5999),r=t(5281);const c={admonition:"admonition_xJq3",admonitionHeading:"admonitionHeading_Gvgb",admonitionIcon:"admonitionIcon_Rf37",admonitionContent:"admonitionContent_BuS1"};function d(e){let{type:n,className:t,children:i}=e;return(0,s.jsx)("div",{className:(0,l.Z)(r.k.common.admonition,r.k.common.admonitionType(n),c.admonition,t),children:i})}function u(e){let{icon:n,title:t}=e;return(0,s.jsxs)("div",{className:c.admonitionHeading,children:[(0,s.jsx)("span",{className:c.admonitionIcon,children:n}),t]})}function h(e){let{children:n}=e;return n?(0,s.jsx)("div",{className:c.admonitionContent,children:n}):null}function m(e){const{type:n,icon:t,title:i,children:o,className:l}=e;return(0,s.jsxs)(d,{type:n,className:l,children:[(0,s.jsx)(u,{title:i,icon:t}),(0,s.jsx)(h,{children:o})]})}function g(e){return(0,s.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,s.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"})})}const x={icon:(0,s.jsx)(g,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function f(e){return(0,s.jsx)(m,{...x,...e,className:(0,l.Z)("alert alert--secondary",e.className),children:e.children})}function j(e){return(0,s.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,s.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"})})}const p={icon:(0,s.jsx)(j,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function v(e){return(0,s.jsx)(m,{...p,...e,className:(0,l.Z)("alert alert--success",e.className),children:e.children})}function N(e){return(0,s.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,s.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"})})}const Z={icon:(0,s.jsx)(N,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function w(e){return(0,s.jsx)(m,{...Z,...e,className:(0,l.Z)("alert alert--info",e.className),children:e.children})}function T(e){return(0,s.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,s.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"})})}const b={icon:(0,s.jsx)(T,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function y(e){return(0,s.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,s.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"})})}const z={icon:(0,s.jsx)(y,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const C={icon:(0,s.jsx)(T,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const k={...{note:f,tip:v,info:w,warning:function(e){return(0,s.jsx)(m,{...b,...e,className:(0,l.Z)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,s.jsx)(m,{...z,...e,className:(0,l.Z)("alert alert--danger",e.className),children:e.children})}},...{secondary:e=>(0,s.jsx)(f,{title:"secondary",...e}),important:e=>(0,s.jsx)(w,{title:"important",...e}),success:e=>(0,s.jsx)(v,{title:"success",...e}),caution:function(e){return(0,s.jsx)(m,{...C,...e,className:(0,l.Z)("alert alert--warning",e.className),children:e.children})}}};function M(e){const n=o(e),t=(i=n.type,k[i]||(console.warn(`No admonition component found for admonition type "${i}". Using Info as fallback.`),k.info));var i;return(0,s.jsx)(t,{...n})}},491:(e,n,t)=>{t.r(n),t.d(n,{default:()=>j});t(7294);var i=t(512),s=t(3692),o=t(8824),l=t(1944),a=t(5281),r=t(5999),c=t(197),d=t(2212),u=t(2503),h=t(5893);function m(e){const n=function(){const{selectMessage:e}=(0,o.c)();return n=>e(n,(0,r.I)({id:"theme.docs.tagDocListPageTitle.nDocsTagged",description:'Pluralized label for "{count} docs tagged". 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 doc tagged|{count} docs tagged"},{count:n}))}();return(0,r.I)({id:"theme.docs.tagDocListPageTitle",description:"The title of the page for a docs tag",message:'{nDocsTagged} with "{tagName}"'},{nDocsTagged:n(e.tag.count),tagName:e.tag.label})}function g(e){let{doc:n}=e;return(0,h.jsxs)("article",{className:"margin-vert--lg",children:[(0,h.jsx)(s.Z,{to:n.permalink,children:(0,h.jsx)(u.Z,{as:"h2",children:n.title})}),n.description&&(0,h.jsx)("p",{children:n.description})]})}function x(e){let{title:n}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(l.d,{title:n}),(0,h.jsx)(c.Z,{tag:"doc_tag_doc_list"})]})}function f(e){let{tag:n,title:t}=e;return(0,h.jsx)(l.FG,{className:(0,i.Z)(a.k.page.docsTagDocListPage),children:(0,h.jsx)("div",{className:"container margin-vert--lg",children:(0,h.jsx)("div",{className:"row",children:(0,h.jsxs)("main",{className:"col col--8 col--offset-2",children:[n.unlisted&&(0,h.jsx)(d.Z,{}),(0,h.jsxs)("header",{className:"margin-bottom--xl",children:[(0,h.jsx)(u.Z,{as:"h1",children:t}),(0,h.jsx)(s.Z,{href:n.allTagsPath,children:(0,h.jsx)(r.Z,{id:"theme.tags.tagsPageLink",description:"The label of the link targeting the tag list page",children:"View All Tags"})})]}),(0,h.jsx)("section",{className:"margin-vert--lg",children:n.items.map((e=>(0,h.jsx)(g,{doc:e},e.id)))})]})})})})}function j(e){const n=m(e);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(x,{...e,title:n}),(0,h.jsx)(f,{...e,title:n})]})}},2212:(e,n,t)=>{t.d(n,{Z:()=>m});t(7294);var i=t(512),s=t(5999),o=t(5742),l=t(5893);function a(){return(0,l.jsx)(s.Z,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function r(){return(0,l.jsx)(s.Z,{id:"theme.unlistedContent.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 c(){return(0,l.jsx)(o.Z,{children:(0,l.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}var d=t(5281),u=t(9047);function h(e){let{className:n}=e;return(0,l.jsx)(u.Z,{type:"caution",title:(0,l.jsx)(a,{}),className:(0,i.Z)(n,d.k.common.unlistedBanner),children:(0,l.jsx)(r,{})})}function m(e){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c,{}),(0,l.jsx)(h,{...e})]})}},8824:(e,n,t)=>{t.d(n,{c:()=>c});var i=t(7294),s=t(2263);const o=["zero","one","two","few","many","other"];function l(e){return o.filter((n=>e.includes(n)))}const a={locale:"en",pluralForms:l(["one","other"]),select:e=>1===e?"one":"other"};function r(){const{i18n:{currentLocale:e}}=(0,s.Z)();return(0,i.useMemo)((()=>{try{return function(e){const n=new Intl.PluralRules(e);return{locale:e,pluralForms:l(n.resolvedOptions().pluralCategories),select:e=>n.select(e)}}(e)}catch(n){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${n.message}\n`),a}}),[e])}function c(){const e=r();return{selectMessage:(n,t)=>function(e,n,t){const i=e.split("|");if(1===i.length)return i[0];i.length>t.pluralForms.length&&console.error(`For locale=${t.locale}, a maximum of ${t.pluralForms.length} plural forms are expected (${t.pluralForms.join(",")}), but the message contains ${i.length}: ${e}`);const s=t.select(n),o=t.pluralForms.indexOf(s);return i[Math.min(o,i.length-1)]}(t,n,e)}}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/e19cd79a.094a2d6c.js b/pt-BR/assets/js/e19cd79a.094a2d6c.js new file mode 100644 index 0000000000..3751f313fe --- /dev/null +++ b/pt-BR/assets/js/e19cd79a.094a2d6c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1429],{2998:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>m,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var s=t(5893),r=t(1151),l=t(4866),a=t(5162),o=t(6393),i=t(4379);const c={sidebar_position:0,tags:["Prepared Statements","Placeholders","Parameters","execute"]},u="INSERT",d={id:"examples/queries/prepared-statements/insert",title:"INSERT",description:"execute(sql, values)",source:"@site/docs/examples/queries/prepared-statements/insert.mdx",sourceDirName:"examples/queries/prepared-statements",slug:"/examples/queries/prepared-statements/insert",permalink:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/insert",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/prepared-statements/insert.mdx",tags:[{label:"Prepared Statements",permalink:"/node-mysql2/pt-BR/docs/tags/prepared-statements"},{label:"Placeholders",permalink:"/node-mysql2/pt-BR/docs/tags/placeholders"},{label:"Parameters",permalink:"/node-mysql2/pt-BR/docs/tags/parameters"},{label:"execute",permalink:"/node-mysql2/pt-BR/docs/tags/execute"}],version:"current",sidebarPosition:0,frontMatter:{sidebar_position:0,tags:["Prepared Statements","Placeholders","Parameters","execute"]},sidebar:"examples",previous:{title:"Prepared Statements",permalink:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/"},next:{title:"SELECT",permalink:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/select"}},h={},p=[{value:"execute(sql, values)",id:"executesql-values",level:2},{value:"execute(options)",id:"executeoptions",level:2},{value:"execute(options, values)",id:"executeoptions-values",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"QueryOptions",id:"queryoptions",level:3}];function x(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"insert",children:"INSERT"}),"\n",(0,s.jsx)(n.h2,{id:"executesql-values",children:"execute(sql, values)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"execute(sql: string, values: any[])"})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';\n const values = ['Josh', 19, 'Page', 45];\n\n // highlight-next-line\n const [result, fields] = await connection.execute(sql, values);\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';\nconst values = ['Josh', 19, 'Page', 45];\n\nconnection.execute(sql, values, (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n});\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"executeoptions",children:"execute(options)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["execute(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';\n const values = ['Josh', 19, 'Page', 45];\n\n // highlight-start\n const [result, fields] = await connection.execute({\n sql,\n values,\n // ... other options\n });\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';\nconst values = ['Josh', 19, 'Page', 45];\n\nconnection.execute(\n {\n sql,\n values,\n // ... other options\n },\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"executeoptions-values",children:"execute(options, values)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["execute(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),", values: any[])"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';\n const values = ['Josh', 19, 'Page', 45];\n\n // highlight-start\n const [result, fields] = await connection.execute(\n {\n sql,\n // ... other options\n },\n values\n );\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';\nconst values = ['Josh', 19, 'Page', 45];\n\nconnection.execute(\n {\n sql,\n // ... other options\n },\n values,\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,s.jsx)(n.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,s.jsx)(o.Z,{title:"ResultSetHeader Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts",extractMethod:"ResultSetHeader",methodType:"interface"})}),"\n",(0,s.jsx)(n.h3,{id:"queryoptions",children:"QueryOptions"}),"\n",(0,s.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(x,{...e})}):x(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>a});t(7294);var s=t(512);const r={tabItem:"tabItem_Ymn6"};var l=t(5893);function a(e){let{children:n,hidden:t,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,s.Z)(r.tabItem,a),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>q});var s=t(7294),r=t(512),l=t(2466),a=t(6550),o=t(469),i=t(1980),c=t(7392),u=t(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:t}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:s,default:r}}=e;return{value:n,label:t,attributes:s,default:r}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function x(e){let{queryString:n=!1,groupId:t}=e;const r=(0,a.k6)(),l=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,i._X)(l),(0,s.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(r.location.search);n.set(l,e),r.replace({...r.location,search:n.toString()})}),[l,r])]}function m(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,l=h(e),[a,i]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=t.find((e=>e.default))??t[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:l}))),[c,d]=x({queryString:t,groupId:r}),[m,g]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,l]=(0,u.Nk)(t);return[r,(0,s.useCallback)((e=>{t&&l.set(e)}),[t,l])]}({groupId:r}),j=(()=>{const e=c??m;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{j&&i(j)}),[j]);return{selectedValue:a,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),g(e)}),[d,g,l]),tabValues:l}}var g=t(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=t(5893);function b(e){let{className:n,block:t,selectedValue:s,selectValue:a,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,l.o5)(),u=e=>{const n=e.currentTarget,t=i.indexOf(n),r=o[t].value;r!==s&&(c(n),a(r))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const t=i.indexOf(e.currentTarget)+1;n=i[t]??i[0];break}case"ArrowLeft":{const t=i.indexOf(e.currentTarget)-1;n=i[t]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":t},n),children:o.map((e=>{let{value:n,label:t,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>i.push(e),onKeyDown:d,onClick:u,...l,className:(0,r.Z)("tabs__item",j.tabItem,l?.className,{"tabs__item--active":s===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:r}=e;const l=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===r));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function y(e){const n=m(e);return(0,f.jsxs)("div",{className:(0,r.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(b,{...e,...n}),(0,f.jsx)(v,{...e,...n})]})}function q(e){const n=(0,g.Z)();return(0,f.jsx)(y,{...e,children:d(e.children)},String(n))}},4379:(e,n,t)=>{t.d(n,{I:()=>i});var s=t(7294),r=t(2263),l=t(9286),a=t(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:t,extractMethod:i,methodType:c}=e;const[u,d]=(0,s.useState)(""),[h,p]=(0,s.useState)(!0),[x,m]=(0,s.useState)(!0),{siteConfig:g}=(0,r.Z)(),j=g.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,s.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&c?((e,n,t)=>{const s=e.split("\n"),r=`${t} ${n}`;let l=!1,a=0,o="";for(const i of s)if(i.includes(r)&&(l=!0),l&&(i.includes("{")&&a++,o+=i+"\n",i.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,i,c):e;d(n||e),p(!1),m(!1)})).catch((()=>{m(!0),p(!1)})),()=>{e.abort()}}),[f,i,c]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:x?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${t}`,children:u})})})}},6393:(e,n,t)=>{t.d(n,{Z:()=>l});var s=t(4673),r=t(5893);const l=e=>{let{children:n,open:t,title:l}=e;return(0,r.jsx)(s.Z,{open:t,className:"faq",summary:(0,r.jsx)("summary",{children:(0,r.jsx)("strong",{children:l})}),children:(0,r.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/e3a2ad82.cf1b2ba0.js b/pt-BR/assets/js/e3a2ad82.cf1b2ba0.js deleted file mode 100644 index 36695b5689..0000000000 --- a/pt-BR/assets/js/e3a2ad82.cf1b2ba0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5775],{2017:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},u="Procedure Call Packet",c={id:"examples/typescript/procedure-call/procedure-call-packet",title:"Procedure Call Packet",description:"",source:"@site/docs/examples/typescript/procedure-call/00-procedure-call-packet.mdx",sourceDirName:"examples/typescript/procedure-call",slug:"/examples/typescript/procedure-call/procedure-call-packet",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/procedure-call-packet",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/procedure-call/00-procedure-call-packet.mdx",tags:[],version:"current",sidebarPosition:0,frontMatter:{},sidebar:"examples",previous:{title:"Procedure Call Packet",permalink:"/node-mysql2/pt-BR/docs/category/procedure-call-packet"},next:{title:"Procedure Call Packet (Row as Array)",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-array"}},i={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"procedure-call-packet",children:"Procedure Call Packet"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ProcedureCallPacket,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n id: number;\n name: string;\n}\n\nconst isResultSetHeader = (data: unknown): data is ResultSetHeader => {\n if (!data || typeof data !== 'object') return false;\n\n const keys = [\n 'fieldCount',\n 'affectedRows',\n 'insertId',\n 'info',\n 'serverStatus',\n 'warningStatus',\n 'changedRows',\n ];\n\n return keys.every((key) => key in data);\n};\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Deleting the `getUsers` procedure, if it exists */\n await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');\n\n /** Creating a procedure to get the users */\n await conn.query<ResultSetHeader>(`\n CREATE PROCEDURE getUsers()\n BEGIN\n SELECT * FROM users ORDER BY name ASC;\n END\n `);\n\n /** Getting users */\n // highlight-start\n const [procedureResult] =\n await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');\n\n procedureResult.forEach((users) => {\n /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */\n if (isResultSetHeader(users)) {\n console.log('----------------');\n console.log('Affected Rows:', users.affectedRows);\n } else {\n users.forEach((user) => {\n console.log('----------------');\n console.log('id: ', user.id);\n console.log('name:', user.name);\n });\n }\n });\n // highlight-end\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * ----------------\n * id: 4\n * name: Gween\n * ----------------\n * id: 2\n * name: John\n * ----------------\n * id: 1\n * name: Josh\n * ----------------\n * id: 3\n * name: Marie\n * ----------------\n * Affected Rows: 0\n */\n"})})})})]})}function m(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>x});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function h(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[c,d]=f({queryString:t,groupId:a}),[h,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,i.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),y=(()=>{const e=c??h;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function w(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),a=l[t].value;a!==r&&(c(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",y.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function R(e){const n=h(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",y.tabList),children:[(0,g.jsx)(w,{...e,...n}),(0,g.jsx)(v,{...e,...n})]})}function x(e){const n=(0,b.Z)();return(0,g.jsx)(R,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/e951ea44.bd25b291.js b/pt-BR/assets/js/e951ea44.bd25b291.js new file mode 100644 index 0000000000..842061920a --- /dev/null +++ b/pt-BR/assets/js/e951ea44.bd25b291.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3213],{7697:e=>{e.exports=JSON.parse('{"label":"query","permalink":"/node-mysql2/pt-BR/docs/tags/query","allTagsPath":"/node-mysql2/pt-BR/docs/tags","count":4,"items":[{"id":"examples/queries/simple-queries/delete","title":"DELETE","description":"The examples below also work for the execute method.","permalink":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/delete"},{"id":"examples/queries/simple-queries/insert","title":"INSERT","description":"The examples below also work for the execute method.","permalink":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/insert"},{"id":"examples/queries/simple-queries/select","title":"SELECT","description":"The examples below also work for the execute method.","permalink":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/select"},{"id":"examples/queries/simple-queries/update","title":"UPDATE","description":"The examples below also work for the execute method.","permalink":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/update"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/e9842ab8.fda7f835.js b/pt-BR/assets/js/e9842ab8.fda7f835.js deleted file mode 100644 index eba665aaab..0000000000 --- a/pt-BR/assets/js/e9842ab8.fda7f835.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8218],{492:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>o,metadata:()=>i,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),l=n(5162);const o={},u="Prepared Statements",i={id:"examples/prepare",title:"Prepared Statements",description:"",source:"@site/docs/examples/prepare.mdx",sourceDirName:"examples",slug:"/examples/prepare",permalink:"/node-mysql2/pt-BR/docs/examples/prepare",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/prepare.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Pool Test",permalink:"/node-mysql2/pt-BR/docs/examples/pool-test"},next:{title:"Promise CO Await",permalink:"/node-mysql2/pt-BR/docs/examples/promise-co-await"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"prepared-statements",children:"Prepared Statements"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(l.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\n// get the client\nconst mysql = require('mysql2');\n\n// create the connection to database\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// execute will internally call prepare and query\nconnection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Rick C-137', 53],\n (err, results, fields) => {\n console.log(results); // results contains rows returned by server\n console.log(fields); // fields contains extra meta data about results, if available\n\n // If you execute same statement again, it will be picked form a LRU cache\n // which will save query preparation time and give better performance\n }\n);\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function l(e){let{children:t,hidden:n,className:l}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,l),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>k});var r=n(7294),a=n(512),s=n(2466),l=n(6550),o=n(469),u=n(1980),i=n(7392),c=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const a=(0,l.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=p(e),[l,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[i,d]=f({queryString:n,groupId:a}),[b,h]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,c.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),v=(()=>{const e=i??b;return m({value:e,tabValues:s})?e:null})();(0,o.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:l,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,s]),tabValues:s}}var h=n(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=n(5893);function g(e){let{className:t,block:n,selectedValue:r,selectValue:l,tabValues:o}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=u.indexOf(t),a=o[n].value;a!==r&&(i(t),l(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function y(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function w(e){const t=b(e);return(0,x.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(g,{...e,...t}),(0,x.jsx)(y,{...e,...t})]})}function k(e){const t=(0,h.Z)();return(0,x.jsx)(w,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>o,a:()=>l});var r=n(7294);const a={},s=r.createContext(a);function l(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:l(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/f08329ad.057c8a34.js b/pt-BR/assets/js/f08329ad.057c8a34.js new file mode 100644 index 0000000000..20e69882b8 --- /dev/null +++ b/pt-BR/assets/js/f08329ad.057c8a34.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4819],{3026:e=>{e.exports=JSON.parse('{"label":"createPoolCluster","permalink":"/node-mysql2/pt-BR/docs/tags/create-pool-cluster","allTagsPath":"/node-mysql2/pt-BR/docs/tags","count":1,"items":[{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/f43af5ae.903f4dda.js b/pt-BR/assets/js/f43af5ae.903f4dda.js deleted file mode 100644 index fa18db249c..0000000000 --- a/pt-BR/assets/js/f43af5ae.903f4dda.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5909],{104:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>i,metadata:()=>l,toc:()=>d});var s=t(5893),r=t(1151),a=t(4866),o=t(5162);const i={},u="Basic Custom Class",l={id:"examples/typescript/basic-custom-class",title:"Basic Custom Class",description:"",source:"@site/docs/examples/typescript/basic-custom-class.mdx",sourceDirName:"examples/typescript",slug:"/examples/typescript/basic-custom-class",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-class",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/basic-custom-class.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"TypeScript",permalink:"/node-mysql2/pt-BR/docs/category/typescript"},next:{title:"Procedure Call Packet",permalink:"/node-mysql2/pt-BR/docs/category/procedure-call-packet"}},c={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"basic-custom-class",children:"Basic Custom Class"}),"\n",(0,s.jsxs)(a.Z,{children:[(0,s.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n */\n\nimport { PoolOptions } from 'mysql2/promise';\nimport { MySQL } from './db.js';\n\ninterface User extends RowDataPacket {\n id: number;\n name: string;\n}\n\nconst access: PoolOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n};\n\n(async () => {\n const mysql = new MySQL(access);\n\n /** Deleting the `users` table, if it exists */\n await mysql.queryResult('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await mysql.queryResult(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await mysql.executeResult(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Getting users */\n const [users] = await mysql.queryRows(\n 'SELECT * FROM `users` ORDER BY `name` ASC;'\n );\n\n users.forEach((user: User) => {\n console.log('-----------');\n console.log('id: ', user.id);\n console.log('name:', user.name);\n });\n\n await mysql.connection.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * -----------\n * id: 4\n * name: Gween\n * -----------\n * id: 2\n * name: John\n * -----------\n * id: 1\n * name: Josh\n * -----------\n * id: 3\n * name: Marie\n */\n"})})}),(0,s.jsx)(o.Z,{value:"db.ts",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n */\n\nimport {\n createPool,\n PoolOptions,\n Pool,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\nexport class MySQL {\n private conn: Pool;\n private credentials: PoolOptions;\n\n constructor(credentials: PoolOptions) {\n this.credentials = credentials;\n this.conn = createPool(this.credentials);\n }\n\n /** A random method to simulate a step before to get the class methods */\n private ensureConnection() {\n if (!this?.conn) this.conn = createPool(this.credentials);\n }\n\n /** For `SELECT` and `SHOW` */\n get queryRows() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<RowDataPacket[]>;\n }\n\n /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */\n get queryRowsAsArray() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<RowDataPacket[][]>;\n }\n\n /** For `INSERT`, `UPDATE`, etc. */\n get queryResult() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<ResultSetHeader>;\n }\n\n /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */\n get queryResults() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<ResultSetHeader[]>;\n }\n\n /** For `SELECT` and `SHOW` */\n get executeRows() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<RowDataPacket[]>;\n }\n\n /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */\n get executeRowsAsArray() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<RowDataPacket[][]>;\n }\n\n /** For `INSERT`, `UPDATE`, etc. */\n get executeResult() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<ResultSetHeader>;\n }\n\n /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */\n get executeResults() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<ResultSetHeader[]>;\n }\n\n /** Expose the Pool Connection */\n get connection() {\n return this.conn;\n }\n}\n"})})})]})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var s=t(512);const r={tabItem:"tabItem_Ymn6"};var a=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,s.Z)(r.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>E});var s=t(7294),r=t(512),a=t(2466),o=t(6550),i=t(469),u=t(1980),l=t(7392),c=t(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:s,default:r}}=e;return{value:n,label:t,attributes:s,default:r}}))}(t);return function(e){const n=(0,l.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function h(e){let{queryString:n=!1,groupId:t}=e;const r=(0,o.k6)(),a=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(a),(0,s.useCallback)((e=>{if(!a)return;const n=new URLSearchParams(r.location.search);n.set(a,e),r.replace({...r.location,search:n.toString()})}),[a,r])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,a=p(e),[o,u]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=t.find((e=>e.default))??t[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:a}))),[l,d]=h({queryString:t,groupId:r}),[b,f]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,a]=(0,c.Nk)(t);return[r,(0,s.useCallback)((e=>{t&&a.set(e)}),[t,a])]}({groupId:r}),y=(()=>{const e=l??b;return m({value:e,tabValues:a})?e:null})();(0,i.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:o,selectValue:(0,s.useCallback)((e=>{if(!m({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),f(e)}),[d,f,a]),tabValues:a}}var f=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function x(e){let{className:n,block:t,selectedValue:s,selectValue:o,tabValues:i}=e;const u=[],{blockElementScrollPositionUntilNextRender:l}=(0,a.o5)(),c=e=>{const n=e.currentTarget,t=u.indexOf(n),r=i[t].value;r!==s&&(l(n),o(r))},d=e=>{let n=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":t},n),children:i.map((e=>{let{value:n,label:t,attributes:a}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>u.push(e),onKeyDown:d,onClick:c,...a,className:(0,r.Z)("tabs__item",y.tabItem,a?.className,{"tabs__item--active":s===n}),children:t??n},n)}))})}function w(e){let{lazy:n,children:t,selectedValue:r}=e;const a=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=a.find((e=>e.props.value===r));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:a.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function v(e){const n=b(e);return(0,g.jsxs)("div",{className:(0,r.Z)("tabs-container",y.tabList),children:[(0,g.jsx)(x,{...e,...n}),(0,g.jsx)(w,{...e,...n})]})}function E(e){const n=(0,f.Z)();return(0,g.jsx)(v,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>i,a:()=>o});var s=t(7294);const r={},a=s.createContext(r);function o(e){const n=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),s.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/f43af5ae.a254a8a9.js b/pt-BR/assets/js/f43af5ae.a254a8a9.js new file mode 100644 index 0000000000..dd2620f8ba --- /dev/null +++ b/pt-BR/assets/js/f43af5ae.a254a8a9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5909],{104:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>l,default:()=>p,frontMatter:()=>i,metadata:()=>u,toc:()=>d});var s=t(5893),r=t(1151),a=t(4866),o=t(5162);const i={},l="Basic Custom Class",u={id:"examples/typescript/basic-custom-class",title:"Basic Custom Class",description:"",source:"@site/docs/examples/typescript/basic-custom-class.mdx",sourceDirName:"examples/typescript",slug:"/examples/typescript/basic-custom-class",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-class",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/basic-custom-class.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Server",permalink:"/node-mysql2/pt-BR/docs/examples/tests/server"},next:{title:"Procedure Call Packet",permalink:"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/index"}},c={},d=[];function m(e){const n={code:"code",h1:"h1",pre:"pre",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"basic-custom-class",children:"Basic Custom Class"}),"\n",(0,s.jsxs)(a.Z,{children:[(0,s.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n */\n\nimport { PoolOptions } from 'mysql2/promise';\nimport { MySQL } from './db.js';\n\ninterface User extends RowDataPacket {\n id: number;\n name: string;\n}\n\nconst access: PoolOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n};\n\n(async () => {\n const mysql = new MySQL(access);\n\n /** Deleting the `users` table, if it exists */\n await mysql.queryResult('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await mysql.queryResult(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await mysql.executeResult(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Getting users */\n const [users] = await mysql.queryRows(\n 'SELECT * FROM `users` ORDER BY `name` ASC;'\n );\n\n users.forEach((user: User) => {\n console.log('-----------');\n console.log('id: ', user.id);\n console.log('name:', user.name);\n });\n\n await mysql.connection.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * -----------\n * id: 4\n * name: Gween\n * -----------\n * id: 2\n * name: John\n * -----------\n * id: 1\n * name: Josh\n * -----------\n * id: 3\n * name: Marie\n */\n"})})}),(0,s.jsx)(o.Z,{value:"db.ts",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n */\n\nimport {\n createPool,\n PoolOptions,\n Pool,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\nexport class MySQL {\n private conn: Pool;\n private credentials: PoolOptions;\n\n constructor(credentials: PoolOptions) {\n this.credentials = credentials;\n this.conn = createPool(this.credentials);\n }\n\n /** A random method to simulate a step before to get the class methods */\n private ensureConnection() {\n if (!this?.conn) this.conn = createPool(this.credentials);\n }\n\n /** For `SELECT` and `SHOW` */\n get queryRows() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<RowDataPacket[]>;\n }\n\n /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */\n get queryRowsAsArray() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<RowDataPacket[][]>;\n }\n\n /** For `INSERT`, `UPDATE`, etc. */\n get queryResult() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<ResultSetHeader>;\n }\n\n /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */\n get queryResults() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<ResultSetHeader[]>;\n }\n\n /** For `SELECT` and `SHOW` */\n get executeRows() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<RowDataPacket[]>;\n }\n\n /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */\n get executeRowsAsArray() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<RowDataPacket[][]>;\n }\n\n /** For `INSERT`, `UPDATE`, etc. */\n get executeResult() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<ResultSetHeader>;\n }\n\n /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */\n get executeResults() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<ResultSetHeader[]>;\n }\n\n /** Expose the Pool Connection */\n get connection() {\n return this.conn;\n }\n}\n"})})})]})]})}function p(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var s=t(512);const r={tabItem:"tabItem_Ymn6"};var a=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,s.Z)(r.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>E});var s=t(7294),r=t(512),a=t(2466),o=t(6550),i=t(469),l=t(1980),u=t(7392),c=t(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:t}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:s,default:r}}=e;return{value:n,label:t,attributes:s,default:r}}))}(t);return function(e){const n=(0,u.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function h(e){let{queryString:n=!1,groupId:t}=e;const r=(0,o.k6)(),a=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,l._X)(a),(0,s.useCallback)((e=>{if(!a)return;const n=new URLSearchParams(r.location.search);n.set(a,e),r.replace({...r.location,search:n.toString()})}),[a,r])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,a=m(e),[o,l]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=t.find((e=>e.default))??t[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:a}))),[u,d]=h({queryString:t,groupId:r}),[b,f]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,a]=(0,c.Nk)(t);return[r,(0,s.useCallback)((e=>{t&&a.set(e)}),[t,a])]}({groupId:r}),y=(()=>{const e=u??b;return p({value:e,tabValues:a})?e:null})();(0,i.Z)((()=>{y&&l(y)}),[y]);return{selectedValue:o,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),f(e)}),[d,f,a]),tabValues:a}}var f=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function x(e){let{className:n,block:t,selectedValue:s,selectValue:o,tabValues:i}=e;const l=[],{blockElementScrollPositionUntilNextRender:u}=(0,a.o5)(),c=e=>{const n=e.currentTarget,t=l.indexOf(n),r=i[t].value;r!==s&&(u(n),o(r))},d=e=>{let n=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const t=l.indexOf(e.currentTarget)+1;n=l[t]??l[0];break}case"ArrowLeft":{const t=l.indexOf(e.currentTarget)-1;n=l[t]??l[l.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":t},n),children:i.map((e=>{let{value:n,label:t,attributes:a}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>l.push(e),onKeyDown:d,onClick:c,...a,className:(0,r.Z)("tabs__item",y.tabItem,a?.className,{"tabs__item--active":s===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:r}=e;const a=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=a.find((e=>e.props.value===r));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:a.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function w(e){const n=b(e);return(0,g.jsxs)("div",{className:(0,r.Z)("tabs-container",y.tabList),children:[(0,g.jsx)(x,{...e,...n}),(0,g.jsx)(v,{...e,...n})]})}function E(e){const n=(0,f.Z)();return(0,g.jsx)(w,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>i,a:()=>o});var s=t(7294);const r={},a=s.createContext(r);function o(e){const n=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),s.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/f54f1246.d7eee5da.js b/pt-BR/assets/js/f54f1246.d7eee5da.js deleted file mode 100644 index 43f8fd35e3..0000000000 --- a/pt-BR/assets/js/f54f1246.d7eee5da.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[630],{4990:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>o,default:()=>u,frontMatter:()=>c,metadata:()=>a,toc:()=>d});var s=t(5893),r=t(1151);const c={},o="Prepared Statements",a={id:"documentation/prepared-statements",title:"Prepared Statements",description:"Automatic creation, cached and re-used by connection",source:"@site/docs/documentation/prepared-statements.mdx",sourceDirName:"documentation",slug:"/documentation/prepared-statements",permalink:"/node-mysql2/pt-BR/docs/documentation/prepared-statements",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/documentation/prepared-statements.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"MySQL Server API",permalink:"/node-mysql2/pt-BR/docs/documentation/mysql-server"},next:{title:"Promise Wrappers",permalink:"/node-mysql2/pt-BR/docs/documentation/promise-wrapper"}},i={},d=[{value:"Automatic creation, cached and re-used by connection",id:"automatic-creation-cached-and-re-used-by-connection",level:2},{value:"Manual prepare / execute",id:"manual-prepare--execute",level:2}];function l(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",ul:"ul",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"prepared-statements",children:"Prepared Statements"}),"\n",(0,s.jsx)(n.h2,{id:"automatic-creation-cached-and-re-used-by-connection",children:"Automatic creation, cached and re-used by connection"}),"\n",(0,s.jsxs)(n.p,{children:["Similar to ",(0,s.jsx)(n.code,{children:"connection.query()"}),"."]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connection.execute('select 1 + ? + ? as result', [5, 6], (err, rows) => {\n // rows: [ { result: 12 } ]\n // internally 'select 1 + ? + ? as result' is prepared first. On subsequent calls cached statement is re-used\n});\n\n// close cached statement for 'select 1 + ? + ? as result'. noop if not in cache\nconnection.unprepare('select 1 + ? + ? as result');\n"})}),"\n",(0,s.jsxs)(n.p,{children:["Note that ",(0,s.jsx)(n.code,{children:"connection.execute()"})," will cache the prepared statement for better performance, remove the cache with ",(0,s.jsx)(n.code,{children:"connection.unprepare()"})," when you're done."]}),"\n",(0,s.jsx)(n.h2,{id:"manual-prepare--execute",children:"Manual prepare / execute"}),"\n",(0,s.jsxs)(n.p,{children:["Manually prepared statements doesn't comes with LRU cache and SHOULD be closed using ",(0,s.jsx)(n.code,{children:"statement.close()"})," instead of ",(0,s.jsx)(n.code,{children:"connection.unprepare()"}),"."]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connection.prepare('select ? + ? as tests', (err, statement) => {\n // statement.parameters - array of column definitions, length === number of params, here 2\n // statement.columns - array of result column definitions. Can be empty if result schema is dynamic / not known\n // statement.id\n // statement.query\n\n statement.execute([1, 2], (err, rows, columns) => {\n // -> [ { tests: 3 } ]\n });\n\n // don't use connection.unprepare(), it won't work!\n // note that there is no callback here. There is no statement close ack at protocol level.\n statement.close();\n});\n"})}),"\n",(0,s.jsxs)(n.p,{children:["Note that you should not use statement after connection reset (",(0,s.jsx)(n.code,{children:"changeUser()"})," or disconnect). Statement scope is connection, you need to prepare statement for each new connection in order to use it."]}),"\n",(0,s.jsx)(n.h1,{id:"configuration",children:"Configuration"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"maxPreparedStatements"})," : We keep the cached statements in a ",(0,s.jsx)(n.a,{href:"https://github.com/isaacs/node-lru-cache",children:"lru-cache"}),". Default size is ",(0,s.jsx)(n.code,{children:"16000"})," but you can use this option to override it. Any statements that are dropped from cache will be ",(0,s.jsx)(n.code,{children:"closed"}),"."]}),"\n",(0,s.jsx)(n.h1,{id:"serialization-of-bind-parameters",children:"Serialization of bind parameters"}),"\n",(0,s.jsxs)(n.p,{children:["The bind parameter values passed to ",(0,s.jsx)(n.code,{children:"execute"})," are serialized JS -> MySQL as:"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"null"})," -> ",(0,s.jsx)(n.code,{children:"NULL"})]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"number"})," -> ",(0,s.jsx)(n.code,{children:"DOUBLE"})]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"boolean"})," -> ",(0,s.jsx)(n.code,{children:"TINY"})," (0 for false, 1 for true)"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"object"})," -> depending on prototype:","\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"Date"})," -> ",(0,s.jsx)(n.code,{children:"DATETIME"})]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"JSON"})," like object - ",(0,s.jsx)(n.code,{children:"JSON"})]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"Buffer"})," -> ",(0,s.jsx)(n.code,{children:"VAR_STRING"})]}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["Other -> ",(0,s.jsx)(n.code,{children:"VAR_STRING"})]}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["Passing in ",(0,s.jsx)(n.code,{children:"undefined"})," or a ",(0,s.jsx)(n.code,{children:"function"})," will result in an error."]})]})}function u(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},1151:(e,n,t)=>{t.d(n,{Z:()=>a,a:()=>o});var s=t(7294);const r={},c=s.createContext(r);function o(e){const n=s.useContext(c);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),s.createElement(c.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/f54f1246.fd168542.js b/pt-BR/assets/js/f54f1246.fd168542.js new file mode 100644 index 0000000000..b7413def44 --- /dev/null +++ b/pt-BR/assets/js/f54f1246.fd168542.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[630],{4990:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>a,default:()=>p,frontMatter:()=>c,metadata:()=>o,toc:()=>l});var r=t(5893),s=t(1151);const c={tags:["Prepared Statements","execute"]},a="Prepared Statements",o={id:"documentation/prepared-statements",title:"Prepared Statements",description:"Automatic creation, cached and re-used by connection",source:"@site/docs/documentation/prepared-statements.mdx",sourceDirName:"documentation",slug:"/documentation/prepared-statements",permalink:"/node-mysql2/pt-BR/docs/documentation/prepared-statements",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/documentation/prepared-statements.mdx",tags:[{label:"Prepared Statements",permalink:"/node-mysql2/pt-BR/docs/tags/prepared-statements"},{label:"execute",permalink:"/node-mysql2/pt-BR/docs/tags/execute"}],version:"current",frontMatter:{tags:["Prepared Statements","execute"]},sidebar:"docs",previous:{title:"MySQL Server API",permalink:"/node-mysql2/pt-BR/docs/documentation/mysql-server"},next:{title:"Promise Wrappers",permalink:"/node-mysql2/pt-BR/docs/documentation/promise-wrapper"}},i={},l=[{value:"Automatic creation, cached and re-used by connection",id:"automatic-creation-cached-and-re-used-by-connection",level:2},{value:"Manual prepare / execute",id:"manual-prepare--execute",level:2},{value:"Configuration",id:"configuration",level:2},{value:"Serialization of bind parameters",id:"serialization-of-bind-parameters",level:2},{value:"Prepared Statements Helper",id:"prepared-statements-helper",level:2},{value:"Examples",id:"examples",level:2}];function d(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",ul:"ul",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"prepared-statements",children:"Prepared Statements"}),"\n",(0,r.jsx)(n.h2,{id:"automatic-creation-cached-and-re-used-by-connection",children:"Automatic creation, cached and re-used by connection"}),"\n",(0,r.jsxs)(n.p,{children:["Similar to ",(0,r.jsx)(n.code,{children:"connection.query()"}),"."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"connection.execute('select 1 + ? + ? as result', [5, 6], (err, rows) => {\n // rows: [ { result: 12 } ]\n // internally 'select 1 + ? + ? as result' is prepared first. On subsequent calls cached statement is re-used\n});\n\n// close cached statement for 'select 1 + ? + ? as result'. noop if not in cache\nconnection.unprepare('select 1 + ? + ? as result');\n"})}),"\n",(0,r.jsxs)(n.p,{children:["Note that ",(0,r.jsx)(n.code,{children:"connection.execute()"})," will cache the prepared statement for better performance, remove the cache with ",(0,r.jsx)(n.code,{children:"connection.unprepare()"})," when you're done."]}),"\n",(0,r.jsx)(n.h2,{id:"manual-prepare--execute",children:"Manual prepare / execute"}),"\n",(0,r.jsxs)(n.p,{children:["Manually prepared statements doesn't comes with LRU cache and SHOULD be closed using ",(0,r.jsx)(n.code,{children:"statement.close()"})," instead of ",(0,r.jsx)(n.code,{children:"connection.unprepare()"}),"."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"connection.prepare('select ? + ? as tests', (err, statement) => {\n // statement.parameters - array of column definitions, length === number of params, here 2\n // statement.columns - array of result column definitions. Can be empty if result schema is dynamic / not known\n // statement.id\n // statement.query\n\n statement.execute([1, 2], (err, rows, columns) => {\n // -> [ { tests: 3 } ]\n });\n\n // don't use connection.unprepare(), it won't work!\n // note that there is no callback here. There is no statement close ack at protocol level.\n statement.close();\n});\n"})}),"\n",(0,r.jsxs)(n.p,{children:["Note that you should not use statement after connection reset (",(0,r.jsx)(n.code,{children:"changeUser()"})," or disconnect). Statement scope is connection, you need to prepare statement for each new connection in order to use it."]}),"\n",(0,r.jsx)(n.h2,{id:"configuration",children:"Configuration"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"maxPreparedStatements"})," : We keep the cached statements in a ",(0,r.jsx)(n.a,{href:"https://github.com/isaacs/node-lru-cache",children:"lru-cache"}),". Default size is ",(0,r.jsx)(n.code,{children:"16000"})," but you can use this option to override it. Any statements that are dropped from cache will be ",(0,r.jsx)(n.code,{children:"closed"}),"."]}),"\n",(0,r.jsx)(n.h2,{id:"serialization-of-bind-parameters",children:"Serialization of bind parameters"}),"\n",(0,r.jsxs)(n.p,{children:["The bind parameter values passed to ",(0,r.jsx)(n.code,{children:"execute"})," are serialized JS -> MySQL as:"]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"null"})," -> ",(0,r.jsx)(n.code,{children:"NULL"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"number"})," -> ",(0,r.jsx)(n.code,{children:"DOUBLE"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"boolean"})," -> ",(0,r.jsx)(n.code,{children:"TINY"})," (0 for false, 1 for true)"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"object"})," -> depending on prototype:","\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"Date"})," -> ",(0,r.jsx)(n.code,{children:"DATETIME"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"JSON"})," like object - ",(0,r.jsx)(n.code,{children:"JSON"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"Buffer"})," -> ",(0,r.jsx)(n.code,{children:"VAR_STRING"})]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["Other -> ",(0,r.jsx)(n.code,{children:"VAR_STRING"})]}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["Passing in ",(0,r.jsx)(n.code,{children:"undefined"})," or a ",(0,r.jsx)(n.code,{children:"function"})," will result in an error."]}),"\n",(0,r.jsx)(n.h2,{id:"prepared-statements-helper",children:"Prepared Statements Helper"}),"\n",(0,r.jsxs)(n.p,{children:["MySQL2 provides ",(0,r.jsx)(n.code,{children:"execute"})," helper which will prepare and query the statement. You can also manually prepare / unprepare statement with ",(0,r.jsx)(n.code,{children:"prepare"})," / ",(0,r.jsx)(n.code,{children:"unprepare"})," methods."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"connection.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [1, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n connection.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [3, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n connection.unprepare('select ?+1 as qqq, ? as rrr, ? as yyy');\n connection.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [3, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n }\n );\n }\n );\n }\n);\n"})}),"\n",(0,r.jsx)(n.h2,{id:"examples",children:"Examples"}),"\n",(0,r.jsxs)(n.p,{children:["For Prepared Statements examples, please see ",(0,r.jsx)(n.a,{href:"http://localhost:3000/node-mysql2/docs/examples/queries/prepared-statements",children:"here"}),"."]})]})}function p(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},1151:(e,n,t)=>{t.d(n,{Z:()=>o,a:()=>a});var r=t(7294);const s={},c=r.createContext(s);function a(e){const n=r.useContext(c);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),r.createElement(c.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/f76f5ab7.ab07c468.js b/pt-BR/assets/js/f76f5ab7.ab07c468.js new file mode 100644 index 0000000000..6a300a8b08 --- /dev/null +++ b/pt-BR/assets/js/f76f5ab7.ab07c468.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3776],{7153:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>i,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),o=n(5162);const l={},u="Pool",i={id:"examples/tests/pool",title:"Pool",description:"",source:"@site/docs/examples/tests/pool.mdx",sourceDirName:"examples/tests",slug:"/examples/tests/pool",permalink:"/node-mysql2/pt-BR/docs/examples/tests/pool",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/tests/pool.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"MySQL Proxy",permalink:"/node-mysql2/pt-BR/docs/examples/tests/mysql-proxy"},next:{title:"Server",permalink:"/node-mysql2/pt-BR/docs/examples/tests/server"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"pool",children:"Pool"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst pool = require('mysql2').createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n password: 'root',\n});\n\nsetInterval(() => {\n for (let i = 0; i < 5; ++i) {\n pool.query((err, rows, fields) => {\n console.log(rows, fields);\n // Connection is automatically released once query resolves\n });\n }\n}, 1000);\n\nsetInterval(() => {\n for (let i = 0; i < 5; ++i) {\n pool.getConnection((err, db) => {\n db.query('select sleep(0.5) as qqq', (err, rows, fields) => {\n console.log(rows, fields);\n db.release();\n });\n });\n }\n}, 1000);\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>q});var r=n(7294),a=n(512),s=n(2466),o=n(6550),l=n(469),u=n(1980),i=n(7392),c=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const a=(0,o.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[i,d]=f({queryString:n,groupId:a}),[b,h]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,c.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),v=(()=>{const e=i??b;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,s]),tabValues:s}}var h=n(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=n(5893);function y(e){let{className:t,block:n,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=u.indexOf(t),a=l[n].value;a!==r&&(i(t),o(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:l.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function g(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function w(e){const t=b(e);return(0,x.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(y,{...e,...t}),(0,x.jsx)(g,{...e,...t})]})}function q(e){const t=(0,h.Z)();return(0,x.jsx)(w,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>o});var r=n(7294);const a={},s=r.createContext(a);function o(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/f8d74a12.474379e2.js b/pt-BR/assets/js/f8d74a12.474379e2.js deleted file mode 100644 index 941b024864..0000000000 --- a/pt-BR/assets/js/f8d74a12.474379e2.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see f8d74a12.474379e2.js.LICENSE.txt */ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5807],{7330:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>h,contentTitle:()=>a,default:()=>x,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var t=s(5893),i=s(1151),r=s(6393),l=s(8609),o=s(3901);const c={title:"Documentation Site"},a="Website Contributing Guidelines",d={id:"contributing/website",title:"Documentation Site",description:"This website is built using Docusaurus 3, a modern static website generator.",source:"@site/docs/contributing/website.mdx",sourceDirName:"contributing",slug:"/contributing/website",permalink:"/node-mysql2/pt-BR/docs/contributing/website",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/contributing/website.mdx",tags:[],version:"current",frontMatter:{title:"Documentation Site"},sidebar:"docs",previous:{title:"MySQL2",permalink:"/node-mysql2/pt-BR/docs/contributing"}},h={},p=[{value:"Environment",id:"environment",level:2},{value:"Development",id:"development",level:2},{value:"Extras Components",id:"extras-components",level:2},{value:"History",id:"history",level:3},{value:"Stability",id:"stability",level:3},{value:"FAQ",id:"faq",level:3},{value:"Running Tests",id:"running-tests",level:2}];function u(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"website-contributing-guidelines",children:"Website Contributing Guidelines"}),"\n",(0,t.jsxs)(n.p,{children:["This website is built using ",(0,t.jsx)(n.a,{href:"https://docusaurus.io/",children:"Docusaurus 3"}),", a modern static website generator."]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"environment",children:"Environment"}),"\n",(0,t.jsx)(n.p,{children:"You will need these tools installed on your system:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"https://nodejs.org/",children:"Node.js (18.x or higher)"})}),"\n"]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"development",children:"Development"}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:["Fork the ",(0,t.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2",children:"MySQL2"})," repository."]}),"\n",(0,t.jsxs)(n.li,{children:["Download your forked repository locally. The website's workspace is the \"",(0,t.jsx)(n.em,{children:"website"}),'" directory in ',(0,t.jsx)(n.strong,{children:"node-mysql2"})," root."]}),"\n",(0,t.jsxs)(n.li,{children:["Create a new branch from ",(0,t.jsx)(n.code,{children:"master"})," (optional)."]}),"\n",(0,t.jsxs)(n.li,{children:["Run ",(0,t.jsx)(n.code,{children:"cd website"})," to enter the website workspace."]}),"\n",(0,t.jsxs)(n.li,{children:["Run ",(0,t.jsx)(n.code,{children:"npm ci"})," to install the dependecies from ",(0,t.jsx)(n.em,{children:"package-lock.json"}),"."]}),"\n",(0,t.jsxs)(n.li,{children:["Run ",(0,t.jsx)(n.code,{children:"npm start"})," to starting the local development."]}),"\n"]}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:"It will start a local development server and opens up a browser window. Most changes are reflected live without having to restart the server."}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.strong,{children:"Docusaurus"})," complete documentation, please ",(0,t.jsx)(n.a,{href:"https://docusaurus.io/docs",children:"see here"}),"."]}),"\n",(0,t.jsx)(r.Z,{title:"CLI example",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/sidorares/node-mysql2.git\ngit checkout -b website # optional\ncd /path-to/node-mysql2/website\nnpm ci\nnpm start\n"})})}),"\n",(0,t.jsxs)(n.p,{children:["Documentation is auto-generated from ",(0,t.jsx)(n.strong,{children:"MDX"})," files placed in these directories:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.em,{children:"./docs/documentation"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.em,{children:"./docs/examples"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.em,{children:"./docs/faq"})}),"\n"]}),"\n",(0,t.jsxs)(n.admonition,{title:"Caution",type:"danger",children:[(0,t.jsxs)(n.p,{children:["Note that the website has its own ",(0,t.jsx)(n.em,{children:"package.json"}),"."]}),(0,t.jsxs)(n.p,{children:["Please, do not install dependencies for the website in ",(0,t.jsx)(n.strong,{children:"node-mysql2"})," root."]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"extras-components",children:"Extras Components"}),"\n",(0,t.jsx)(n.p,{children:"Every extra component is thoroughly documented with complete typings descriptions."}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://docusaurus.io/docs/markdown-features",children:(0,t.jsx)(n.strong,{children:"Docusaurus Markdown Features:"})})," The MDX compiler transforms Markdown files to React components, and allows you to use JSX in your Markdown content. This enables you to easily interleave React components within your content, and create delightful learning experiences."]}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"history",children:"History"}),"\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"History"})," component displays version changes in a table format, listing version numbers alongside their changes."]}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { History } from '@site/src/components/History';\n\n<History\n records={[\n {\n version: '1.0.0',\n changes: ['Some change message.'],\n },\n ]}\n/>\n"})}),"\n","\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["You can also utilize React components in the ",(0,t.jsx)(n.code,{children:"changes"})," option."]})}),"\n",(0,t.jsx)(r.Z,{title:"Example",children:(0,t.jsx)(l.A,{records:[{version:"1.0.0",changes:["Some change message."]}]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"stability",children:"Stability"}),"\n",(0,t.jsxs)(n.p,{children:["See the ",(0,t.jsx)(n.a,{href:"/docs/stability-badges",children:"Stability Badges"})," for more detais."]}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { Stability } from '@site/src/components/Stability';\n\n<Stability level={2} />\n<Stability level={2} message='Some message' />\n"})}),"\n","\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["You can also utilize React components in the ",(0,t.jsx)(n.code,{children:"message"})," option."]})}),"\n",(0,t.jsxs)(n.p,{children:["Available levels: ",(0,t.jsx)(n.code,{children:"0"}),", ",(0,t.jsx)(n.code,{children:"1"}),", ",(0,t.jsx)(n.code,{children:"1.1"}),", ",(0,t.jsx)(n.code,{children:"1.2"}),", ",(0,t.jsx)(n.code,{children:"2"})," and ",(0,t.jsx)(n.code,{children:"3"}),"."]}),"\n",(0,t.jsxs)(r.Z,{title:"Example",children:[(0,t.jsx)(o.X,{level:2}),(0,t.jsx)(o.X,{level:2,message:"Some message."})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"faq",children:"FAQ"}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { FAQ } from '@site/src/components/FAQ';\n\n<FAQ title='Title'>\n\n > Some markdown (**MDX**) content.\n\n</FAQ>\n"})}),"\n","\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["The ",(0,t.jsx)(n.strong,{children:"FAQ"})," component can be utilized in any section or page."]}),"\n",(0,t.jsxs)(n.li,{children:["Code blocks are compatible and can be used within the ",(0,t.jsx)(n.strong,{children:"FAQ"})," component."]}),"\n"]})}),"\n",(0,t.jsx)(r.Z,{title:"Example",children:(0,t.jsx)(r.Z,{title:"Title",children:(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["Some markdown (",(0,t.jsx)(n.strong,{children:"MDX"}),") content."]}),"\n"]})})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"running-tests",children:"Running Tests"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run test\n"})}),"\n",(0,t.jsxs)(r.Z,{title:"Check Prettier and ESLint rules for compliance",children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run lintcheck\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]}),"\n",(0,t.jsxs)(r.Z,{title:"Check for typings errors",children:[(0,t.jsx)(o.X,{level:1,message:(0,t.jsxs)(t.Fragment,{children:["Checks for ",(0,t.jsx)(n.strong,{children:"MDX"})," components are missing."]})}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run typecheck\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]}),"\n",(0,t.jsxs)(r.Z,{title:"Clear and build the website",children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run clear\nnpm run build\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]}),"\n",(0,t.jsxs)(r.Z,{title:"Fix issues from Prettier and ESLint rules",open:!0,children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run lint\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"To prevent lint issues, it is recommended to execute this command before creating your commit."}),"\n",(0,t.jsxs)(n.li,{children:["Not included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]})]})}function x(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}},4673:(e,n,s)=>{s.d(n,{Z:()=>x});var t=s(7294),i=s(512),r=s(2389),l=s(6043);const o={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var c=s(5893);function a(e){return!!e&&("SUMMARY"===e.tagName||a(e.parentElement))}function d(e,n){return!!e&&(e===n||d(e.parentElement,n))}function h(e){let{summary:n,children:s,...h}=e;const p=(0,r.Z)(),u=(0,t.useRef)(null),{collapsed:x,setCollapsed:m}=(0,l.u)({initialState:!h.open}),[j,g]=(0,t.useState)(h.open),y=t.isValidElement(n)?n:(0,c.jsx)("summary",{children:n??"Details"});return(0,c.jsxs)("details",{...h,ref:u,open:j,"data-collapsed":x,className:(0,i.Z)(o.details,p&&o.isBrowser,h.className),onMouseDown:e=>{a(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const n=e.target;a(n)&&d(n,u.current)&&(e.preventDefault(),x?(m(!1),g(!0)):m(!0))},children:[y,(0,c.jsx)(l.z,{lazy:!1,collapsed:x,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{m(e),g(!e)},children:(0,c.jsx)("div",{className:o.collapsibleContent,children:s})})]})}const p={details:"details_b_Ee"},u="alert alert--info";function x(e){let{...n}=e;return(0,c.jsx)(h,{...n,className:(0,i.Z)(u,p.details,n.className)})}},6393:(e,n,s)=>{s.d(n,{Z:()=>r});var t=s(4673),i=s(5893);const r=e=>{let{children:n,open:s,title:r}=e;return(0,i.jsx)(t.Z,{open:s,className:"faq",summary:(0,i.jsx)("summary",{children:(0,i.jsx)("strong",{children:r})}),children:(0,i.jsx)("section",{children:n})})}},8609:(e,n,s)=>{s.d(n,{A:()=>l});var t=s(4673);const i=(0,s(4297).Z)("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]);var r=s(5893);const l=e=>{let{records:n,open:s}=e;return(0,r.jsx)(t.Z,{open:s,summary:(0,r.jsxs)("summary",{children:[(0,r.jsx)(i,{})," History"]}),className:"history",children:(0,r.jsxs)("table",{children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Version"}),(0,r.jsx)("th",{children:"Changes"})]})}),(0,r.jsx)("tbody",{children:n.map(((e,n)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsxs)("strong",{children:["v",e.version.replace(/[^0-9.]/g,"")]})}),(0,r.jsx)("td",{children:(0,r.jsx)("div",{className:"changes",children:e.changes.map(((e,n)=>(0,r.jsx)("section",{children:e},`change:${n}`)))})})]},`record:${n}`)))})]})})}},3901:(e,n,s)=>{s.d(n,{X:()=>p});var t=s(9960),i=s(4297);const r=(0,i.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),l=(0,i.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),o=(0,i.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),c=(0,i.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),a=(0,i.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),d=(0,i.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var h=s(5893);const p=e=>{let{level:n,message:s}=e;const i={0:{title:"Deprecated",icon:(0,h.jsx)(r,{})},1:{title:"Experimental",icon:(0,h.jsx)(l,{})},1.1:{title:"Early Development",icon:(0,h.jsx)(o,{})},1.2:{title:"Release Candidate",icon:(0,h.jsx)(c,{})},2:{title:"Stable",icon:(0,h.jsx)(a,{})},3:{title:"Legacy",icon:(0,h.jsx)(d,{})}};return(0,h.jsxs)("section",{className:"stability","data-level":n,children:[(0,h.jsx)(t.Z,{to:"/docs/stability-badges",children:(0,h.jsxs)("header",{children:[(0,h.jsx)("strong",{children:n}),(0,h.jsx)("span",{children:i[n].title}),i[n].icon]})}),s?(0,h.jsx)("p",{children:s}):null]})}},4297:(e,n,s)=>{s.d(n,{Z:()=>r});var t=s(7294),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const r=(e,n)=>{const s=(0,t.forwardRef)((({color:s="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:c="",children:a,...d},h)=>{return(0,t.createElement)("svg",{ref:h,...i,width:r,height:r,stroke:s,strokeWidth:o?24*Number(l)/Number(r):l,className:["lucide",`lucide-${p=e,p.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,c].join(" "),...d},[...n.map((([e,n])=>(0,t.createElement)(e,n))),...Array.isArray(a)?a:[a]]);var p}));return s.displayName=`${e}`,s}},1151:(e,n,s)=>{s.d(n,{Z:()=>o,a:()=>l});var t=s(7294);const i={},r=t.createContext(i);function l(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:l(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/f8d74a12.474379e2.js.LICENSE.txt b/pt-BR/assets/js/f8d74a12.474379e2.js.LICENSE.txt deleted file mode 100644 index 4b1ddb7671..0000000000 --- a/pt-BR/assets/js/f8d74a12.474379e2.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/** - * @license lucide-react v0.303.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ diff --git a/pt-BR/assets/js/f8d74a12.a66d492d.js b/pt-BR/assets/js/f8d74a12.a66d492d.js new file mode 100644 index 0000000000..84ce9d58a5 --- /dev/null +++ b/pt-BR/assets/js/f8d74a12.a66d492d.js @@ -0,0 +1,2 @@ +/*! For license information please see f8d74a12.a66d492d.js.LICENSE.txt */ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5807],{7330:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>x,contentTitle:()=>d,default:()=>p,frontMatter:()=>a,metadata:()=>h,toc:()=>m});var t=s(5893),i=s(1151),r=s(6393),l=s(8609),o=s(3901),c=s(4379);const a={title:"Documentation Site"},d="Website Contributing Guidelines",h={id:"contributing/website",title:"Documentation Site",description:"This website is built using Docusaurus 3, a modern static website generator.",source:"@site/docs/contributing/website.mdx",sourceDirName:"contributing",slug:"/contributing/website",permalink:"/node-mysql2/pt-BR/docs/contributing/website",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/contributing/website.mdx",tags:[],version:"current",frontMatter:{title:"Documentation Site"},sidebar:"docs",previous:{title:"MySQL2",permalink:"/node-mysql2/pt-BR/docs/contributing"}},x={},m=[{value:"Environment",id:"environment",level:2},{value:"Development",id:"development",level:2},{value:"Extras Components",id:"extras-components",level:2},{value:"History",id:"history",level:3},{value:"Stability",id:"stability",level:3},{value:"FAQ",id:"faq",level:3},{value:"ExternalCodeEmbed",id:"externalcodeembed",level:3},{value:"Running Tests",id:"running-tests",level:2}];function u(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"website-contributing-guidelines",children:"Website Contributing Guidelines"}),"\n",(0,t.jsxs)(n.p,{children:["This website is built using ",(0,t.jsx)(n.a,{href:"https://docusaurus.io/",children:"Docusaurus 3"}),", a modern static website generator."]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"environment",children:"Environment"}),"\n",(0,t.jsx)(n.p,{children:"You will need these tools installed on your system:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"https://nodejs.org/",children:"Node.js (18.x or higher)"})}),"\n"]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"development",children:"Development"}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:["Fork the ",(0,t.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2",children:"MySQL2"})," repository."]}),"\n",(0,t.jsxs)(n.li,{children:["Download your forked repository locally. The website's workspace is the \"",(0,t.jsx)(n.em,{children:"website"}),'" directory in ',(0,t.jsx)(n.strong,{children:"node-mysql2"})," root."]}),"\n",(0,t.jsxs)(n.li,{children:["Create a new branch from ",(0,t.jsx)(n.code,{children:"master"})," (optional)."]}),"\n",(0,t.jsxs)(n.li,{children:["Run ",(0,t.jsx)(n.code,{children:"cd website"})," to enter the website workspace."]}),"\n",(0,t.jsxs)(n.li,{children:["Run ",(0,t.jsx)(n.code,{children:"npm ci"})," to install the dependecies from ",(0,t.jsx)(n.em,{children:"package-lock.json"}),"."]}),"\n",(0,t.jsxs)(n.li,{children:["Run ",(0,t.jsx)(n.code,{children:"npm start"})," to starting the local development."]}),"\n"]}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:"It will start a local development server and opens up a browser window. Most changes are reflected live without having to restart the server."}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.strong,{children:"Docusaurus"})," complete documentation, please ",(0,t.jsx)(n.a,{href:"https://docusaurus.io/docs",children:"see here"}),"."]}),"\n",(0,t.jsx)(r.Z,{title:"CLI example",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/sidorares/node-mysql2.git\ngit checkout -b website # optional\ncd /path-to/node-mysql2/website\nnpm ci\nnpm start\n"})})}),"\n",(0,t.jsxs)(n.p,{children:["Documentation is auto-generated from ",(0,t.jsx)(n.strong,{children:"MDX"})," files placed in these directories:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.em,{children:"./docs/documentation"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.em,{children:"./docs/examples"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.em,{children:"./docs/faq"})}),"\n"]}),"\n",(0,t.jsxs)(n.admonition,{title:"Caution",type:"danger",children:[(0,t.jsxs)(n.p,{children:["Note that the website has its own ",(0,t.jsx)(n.em,{children:"package.json"}),"."]}),(0,t.jsxs)(n.p,{children:["Please, do not install dependencies for the website in ",(0,t.jsx)(n.strong,{children:"node-mysql2"})," root."]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"extras-components",children:"Extras Components"}),"\n",(0,t.jsx)(n.p,{children:"Every extra component is thoroughly documented with complete typings descriptions."}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://docusaurus.io/docs/markdown-features",children:(0,t.jsx)(n.strong,{children:"Docusaurus Markdown Features:"})})," The MDX compiler transforms Markdown files to React components, and allows you to use JSX in your Markdown content. This enables you to easily interleave React components within your content, and create delightful learning experiences."]}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"history",children:"History"}),"\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"History"})," component displays version changes in a table format, listing version numbers alongside their changes."]}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { History } from '@site/src/components/History';\n\n<History\n records={[\n {\n version: '1.0.0',\n changes: ['Some change message.'],\n },\n ]}\n/>\n"})}),"\n","\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["You can also utilize React components in the ",(0,t.jsx)(n.code,{children:"changes"})," option."]})}),"\n",(0,t.jsx)(r.Z,{title:"Example",children:(0,t.jsx)(l.A,{records:[{version:"1.0.0",changes:["Some change message."]}]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"stability",children:"Stability"}),"\n",(0,t.jsxs)(n.p,{children:["See the ",(0,t.jsx)(n.a,{href:"/docs/stability-badges",children:"Stability Badges"})," for more detais."]}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { Stability } from '@site/src/components/Stability';\n\n<Stability level={2} />\n<Stability level={2} message='Some message' />\n"})}),"\n","\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["You can also utilize React components in the ",(0,t.jsx)(n.code,{children:"message"})," option."]})}),"\n",(0,t.jsxs)(n.p,{children:["Available levels: ",(0,t.jsx)(n.code,{children:"0"}),", ",(0,t.jsx)(n.code,{children:"1"}),", ",(0,t.jsx)(n.code,{children:"1.1"}),", ",(0,t.jsx)(n.code,{children:"1.2"}),", ",(0,t.jsx)(n.code,{children:"2"})," and ",(0,t.jsx)(n.code,{children:"3"}),"."]}),"\n",(0,t.jsxs)(r.Z,{title:"Example",children:[(0,t.jsx)(o.X,{level:2}),(0,t.jsx)(o.X,{level:2,message:"Some message."})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"faq",children:"FAQ"}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { FAQ } from '@site/src/components/FAQ';\n\n<FAQ title='Title'>\n\n > Some markdown (**MDX**) content.\n\n</FAQ>\n"})}),"\n","\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["The ",(0,t.jsx)(n.strong,{children:"FAQ"})," component can be utilized in any section or page."]}),"\n",(0,t.jsxs)(n.li,{children:["Code blocks are compatible and can be used within the ",(0,t.jsx)(n.strong,{children:"FAQ"})," component."]}),"\n"]})}),"\n",(0,t.jsx)(r.Z,{title:"Example",children:(0,t.jsx)(r.Z,{title:"Title",children:(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["Some markdown (",(0,t.jsx)(n.strong,{children:"MDX"}),") content."]}),"\n"]})})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"externalcodeembed",children:"ExternalCodeEmbed"}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { ExternalCodeEmbed } from '@site/src/components/ExternalCodeEmbed';\n\n<ExternalCodeEmbed\n url='https://github.com/sidorares/node-mysql2/blob/75b05f0765c9edd0c0be8f18d85be05618770cca/.prettierrc'\n language='json'\n/>\n\n<ExternalCodeEmbed\n url='https://raw.githubusercontent.com/sidorares/node-mysql2/master/tools/parse-row.js'\n language='js'\n extractMethod='parseC'\n methodType='function'\n/>\n"})}),"\n","\n",(0,t.jsxs)(r.Z,{title:"Example",children:[(0,t.jsx)(c.I,{url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/.prettierrc",language:"json"}),(0,t.jsx)(c.I,{url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/tools/parse-row.js",language:"js",extractMethod:"parseC",methodType:"function"})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"running-tests",children:"Running Tests"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run test\n"})}),"\n",(0,t.jsxs)(r.Z,{title:"Check Prettier and ESLint rules for compliance",children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run lintcheck\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]}),"\n",(0,t.jsxs)(r.Z,{title:"Check for typings errors",children:[(0,t.jsx)(o.X,{level:1,message:(0,t.jsxs)(t.Fragment,{children:["Checks for ",(0,t.jsx)(n.strong,{children:"MDX"})," components are missing."]})}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run typecheck\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]}),"\n",(0,t.jsxs)(r.Z,{title:"Clear and build the website",children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run clear\nnpm run build\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]}),"\n",(0,t.jsxs)(r.Z,{title:"Fix issues from Prettier and ESLint rules",open:!0,children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run lint\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"To prevent lint issues, it is recommended to execute this command before creating your commit."}),"\n",(0,t.jsxs)(n.li,{children:["Not included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]})]})}function p(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}},4379:(e,n,s)=>{s.d(n,{I:()=>c});var t=s(7294),i=s(2263),r=s(9286),l=s(5893);const o=()=>(0,l.jsx)("span",{className:"loader"}),c=e=>{let{url:n,language:s,extractMethod:c,methodType:a}=e;const[d,h]=(0,t.useState)(""),[x,m]=(0,t.useState)(!0),[u,p]=(0,t.useState)(!0),{siteConfig:j}=(0,i.Z)(),g=j.baseUrl.replace(/\/$/,""),b=/^\//.test(n)?`${g}${n}`:n;return(0,t.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(b,{signal:n}).then((e=>e.text())).then((e=>{const n=c&&a?((e,n,s)=>{const t=e.split("\n"),i=`${s} ${n}`;let r=!1,l=0,o="";for(const c of t)if(c.includes(i)&&(r=!0),r&&(c.includes("{")&&l++,o+=c+"\n",c.includes("}")&&(l--,0===l)))break;return o.trim()||e})(e,c,a):e;h(n||e),m(!1),p(!1)})).catch((()=>{p(!0),m(!1)})),()=>{e.abort()}}),[b,c,a]),(0,l.jsx)(l.Fragment,{children:x?(0,l.jsx)(o,{}):(0,l.jsx)(l.Fragment,{children:u?(0,l.jsxs)("div",{children:["Unable to access the requested link: ",(0,l.jsx)("code",{children:b}),". Please verify the link or try again later."]}):(0,l.jsx)(r.Z,{className:`language-${s}`,children:d})})})}},6393:(e,n,s)=>{s.d(n,{Z:()=>r});var t=s(4673),i=s(5893);const r=e=>{let{children:n,open:s,title:r}=e;return(0,i.jsx)(t.Z,{open:s,className:"faq",summary:(0,i.jsx)("summary",{children:(0,i.jsx)("strong",{children:r})}),children:(0,i.jsx)("section",{children:n})})}},8609:(e,n,s)=>{s.d(n,{A:()=>l});var t=s(4673);const i=(0,s(4297).Z)("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]);var r=s(5893);const l=e=>{let{records:n,open:s}=e;return(0,r.jsx)(t.Z,{open:s,summary:(0,r.jsxs)("summary",{children:[(0,r.jsx)(i,{})," History"]}),className:"history",children:(0,r.jsxs)("table",{children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Version"}),(0,r.jsx)("th",{children:"Changes"})]})}),(0,r.jsx)("tbody",{children:n.map(((e,n)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsxs)("strong",{children:["v",e.version.replace(/[^0-9.]/g,"")]})}),(0,r.jsx)("td",{children:(0,r.jsx)("div",{className:"changes",children:e.changes.map(((e,n)=>(0,r.jsx)("section",{children:e},`change:${n}`)))})})]},`record:${n}`)))})]})})}},3901:(e,n,s)=>{s.d(n,{X:()=>x});var t=s(3692),i=s(4297);const r=(0,i.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),l=(0,i.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),o=(0,i.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),c=(0,i.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),a=(0,i.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),d=(0,i.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var h=s(5893);const x=e=>{let{level:n,message:s}=e;const i={0:{title:"Deprecated",icon:(0,h.jsx)(r,{})},1:{title:"Experimental",icon:(0,h.jsx)(l,{})},1.1:{title:"Early Development",icon:(0,h.jsx)(o,{})},1.2:{title:"Release Candidate",icon:(0,h.jsx)(c,{})},2:{title:"Stable",icon:(0,h.jsx)(a,{})},3:{title:"Legacy",icon:(0,h.jsx)(d,{})}};return(0,h.jsxs)("section",{className:"stability","data-level":n,children:[(0,h.jsx)(t.Z,{to:"/docs/stability-badges",children:(0,h.jsxs)("header",{children:[(0,h.jsx)("strong",{children:n}),(0,h.jsx)("span",{children:i[n].title}),i[n].icon]})}),s?(0,h.jsx)("p",{children:s}):null]})}},4297:(e,n,s)=>{s.d(n,{Z:()=>r});var t=s(7294),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const r=(e,n)=>{const s=(0,t.forwardRef)((({color:s="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:c="",children:a,...d},h)=>{return(0,t.createElement)("svg",{ref:h,...i,width:r,height:r,stroke:s,strokeWidth:o?24*Number(l)/Number(r):l,className:["lucide",`lucide-${x=e,x.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,c].join(" "),...d},[...n.map((([e,n])=>(0,t.createElement)(e,n))),...Array.isArray(a)?a:[a]]);var x}));return s.displayName=`${e}`,s}}}]); \ No newline at end of file diff --git a/pt-BR/assets/js/f8d74a12.a66d492d.js.LICENSE.txt b/pt-BR/assets/js/f8d74a12.a66d492d.js.LICENSE.txt new file mode 100644 index 0000000000..3d48b22d31 --- /dev/null +++ b/pt-BR/assets/js/f8d74a12.a66d492d.js.LICENSE.txt @@ -0,0 +1,6 @@ +/** + * @license lucide-react v0.306.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */ diff --git a/pt-BR/assets/js/main.93488f79.js b/pt-BR/assets/js/main.93488f79.js deleted file mode 100644 index b2be67347d..0000000000 --- a/pt-BR/assets/js/main.93488f79.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see main.93488f79.js.LICENSE.txt */ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[179],{1728:(e,t,n)=>{"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}n.d(t,{Z:()=>a});const a=function(){for(var e,t,n=0,a="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}},723:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});n(7294);var r=n(8356),a=n.n(r),o=n(6887);const i={"10c30137":[()=>Promise.all([n.e(532),n.e(8193)]).then(n.bind(n,6161)),"@site/docs/examples/connect-over-socks.mdx",6161],"13833ed5":[()=>Promise.all([n.e(532),n.e(2496)]).then(n.bind(n,2215)),"@site/docs/examples/typescript/row-data/02-multi-statements.mdx",2215],"14eb3368":[()=>Promise.all([n.e(532),n.e(9817)]).then(n.bind(n,4228)),"@theme/DocCategoryGeneratedIndexPage",4228],17896441:[()=>Promise.all([n.e(532),n.e(7918)]).then(n.bind(n,9678)),"@theme/DocItem",9678],"1a4e3797":[()=>Promise.all([n.e(532),n.e(7920)]).then(n.bind(n,2027)),"@theme/SearchPage",2027],"1cee01a7":[()=>Promise.all([n.e(532),n.e(384)]).then(n.bind(n,5235)),"@site/docs/examples/typescript/row-data/03-row-as-array-multi-statements.mdx",5235],"1df93b7f":[()=>n.e(3237).then(n.bind(n,9754)),"@site/src/pages/index.tsx",9754],"1f08bd40":[()=>Promise.all([n.e(532),n.e(312)]).then(n.bind(n,5467)),"@site/docs/examples/typescript/row-data/00-row-data-packet.mdx",5467],"2bc14e22":[()=>Promise.all([n.e(532),n.e(2839)]).then(n.bind(n,4760)),"@site/docs/documentation/typescript-examples.mdx",4760],"3945bec1":[()=>n.e(8882).then(n.bind(n,1889)),"@site/docs/documentation/authentication-switch.mdx",1889],"3be0564c":[()=>Promise.all([n.e(532),n.e(9594)]).then(n.bind(n,3034)),"@site/docs/examples/binlog-watcher.mdx",3034],"3bea1af6":[()=>Promise.all([n.e(532),n.e(9264)]).then(n.bind(n,3006)),"@site/docs/examples/execute.mdx",3006],"3f11ce5f":[()=>n.e(2817).then(n.t.bind(n,4077,19)),"~docs/default/category-node-mysql-2-pt-brdocs-examples-category-row-data-packet-a42.json",4077],"406c6f1b":[()=>n.e(6879).then(n.bind(n,684)),"@site/i18n/pt-BR/docusaurus-plugin-content-docs/current/acknowledgements.mdx",684],"43758d02":[()=>Promise.all([n.e(532),n.e(764)]).then(n.bind(n,3230)),"@site/docs/examples/pool-test.mdx",3230],"4e547710":[()=>Promise.all([n.e(532),n.e(1449)]).then(n.bind(n,9393)),"@site/docs/examples/promise-co-await.mdx",9393],"4e92b6b6":[()=>n.e(3586).then(n.bind(n,3769)),"@site/docs/faq/00-index.mdx",3769],"546b1c5f":[()=>n.e(8263).then(n.bind(n,403)),"@site/docs/documentation/promise-wrapper.mdx",403],"54dbd6f3":[()=>Promise.all([n.e(532),n.e(4917)]).then(n.bind(n,929)),"@site/docs/examples/queries/select.mdx",929],"5748a325":[()=>Promise.all([n.e(532),n.e(1647)]).then(n.bind(n,4444)),"@site/docs/examples/server.mdx",4444],57495183:[()=>n.e(5003).then(n.bind(n,4304)),"@site/docs/documentation/mysql-server.mdx",4304],"5814edec":[()=>Promise.all([n.e(532),n.e(3561)]).then(n.bind(n,3788)),"@site/docs/examples/typescript/row-data/01-row-as-array.mdx",3788],"5e95c892":[()=>n.e(9661).then(n.bind(n,1892)),"@theme/DocsRoot",1892],"5e9f5e1a":[()=>Promise.resolve().then(n.bind(n,6809)),"@generated/docusaurus.config",6809],"75b440d9":[()=>Promise.all([n.e(532),n.e(9521)]).then(n.bind(n,3083)),"@site/docs/examples/ssl/select-over-ssl.mdx",3083],"76dfa484":[()=>Promise.all([n.e(532),n.e(3433)]).then(n.bind(n,7345)),"@site/docs/examples/00-index.mdx",7345],"7c434f9a":[()=>n.e(5575).then(n.bind(n,4539)),"@site/i18n/pt-BR/docusaurus-plugin-content-docs/current/contributing/00-index.mdx",4539],"8a8506f8":[()=>n.e(7467).then(n.t.bind(n,3698,19)),"~docs/default/category-node-mysql-2-pt-brdocs-examples-category-ssl-ca6.json",3698],"8b718d68":[()=>n.e(5717).then(n.t.bind(n,462,19)),"~docs/default/category-node-mysql-2-pt-brdocs-examples-category-typescript-cfc.json",462],"9318259a":[()=>Promise.all([n.e(532),n.e(4503)]).then(n.bind(n,7122)),"@site/i18n/pt-BR/docusaurus-plugin-content-docs/current/index.mdx",7122],"935f2afb":[()=>n.e(53).then(n.t.bind(n,1109,19)),"~docs/default/version-current-metadata-prop-751.json",1109],"93f3cbcf":[()=>Promise.all([n.e(532),n.e(1883)]).then(n.bind(n,4972)),"@site/docs/examples/mysqlproxy.mdx",4972],"940eccaa":[()=>n.e(2155).then(n.bind(n,7722)),"@site/i18n/pt-BR/docusaurus-plugin-content-docs/current/history-and-why-mysq2.mdx",7722],"9e767aa9":[()=>n.e(8806).then(n.bind(n,7372)),"@site/docs/documentation/00-index.mdx",7372],a7bd4aaa:[()=>n.e(8518).then(n.bind(n,8564)),"@theme/DocVersionRoot",8564],a94703ab:[()=>Promise.all([n.e(532),n.e(4368)]).then(n.bind(n,2674)),"@theme/DocRoot",2674],ac5f2e4a:[()=>n.e(9380).then(n.t.bind(n,2776,19)),"/home/runner/work/node-mysql2/node-mysql2/website/.docusaurus/@easyops-cn/docusaurus-search-local/default/plugin-route-context-module-100.json",2776],bc31cbdb:[()=>Promise.all([n.e(532),n.e(1437)]).then(n.bind(n,861)),"@site/docs/examples/typescript/procedure-call/01-row-as-array.mdx",861],bc868b95:[()=>n.e(2423).then(n.t.bind(n,6224,19)),"~docs/default/category-node-mysql-2-pt-brdocs-examples-category-queries-0ec.json",6224],c3c9efa4:[()=>n.e(1683).then(n.t.bind(n,6419,19)),"~docs/default/category-node-mysql-2-pt-brdocs-examples-category-procedure-call-packet-ea3.json",6419],c84c75a7:[()=>n.e(1233).then(n.t.bind(n,9822,19)),"/home/runner/work/node-mysql2/node-mysql2/website/.docusaurus/docusaurus-plugin-content-docs/default/plugin-route-context-module-100.json",9822],cdbda324:[()=>Promise.all([n.e(532),n.e(4116)]).then(n.bind(n,1851)),"@site/docs/faq/how-to-handle-errors.mdx",1851],d2002d6f:[()=>Promise.all([n.e(532),n.e(7184)]).then(n.bind(n,1185)),"@site/docs/examples/pass-sha.mdx",1185],db044f71:[()=>n.e(6159).then(n.bind(n,8009)),"@site/docs/stability-badges.mdx",8009],dcf552eb:[()=>Promise.all([n.e(532),n.e(4338)]).then(n.bind(n,6259)),"@site/docs/examples/ssl/rds-ssl.mdx",6259],e3a2ad82:[()=>Promise.all([n.e(532),n.e(5775)]).then(n.bind(n,2017)),"@site/docs/examples/typescript/procedure-call/00-procedure-call-packet.mdx",2017],e9842ab8:[()=>Promise.all([n.e(532),n.e(8218)]).then(n.bind(n,492)),"@site/docs/examples/prepare.mdx",492],ed06a4b6:[()=>n.e(2991).then(n.bind(n,1639)),"@site/docs/documentation/extras.mdx",1639],f10670c6:[()=>n.e(8055).then(n.bind(n,643)),"@site/i18n/pt-BR/docusaurus-plugin-content-docs/current/api-and-configurations.mdx",643],f43af5ae:[()=>Promise.all([n.e(532),n.e(5909)]).then(n.bind(n,104)),"@site/docs/examples/typescript/basic-custom-class.mdx",104],f54f1246:[()=>n.e(630).then(n.bind(n,4990)),"@site/docs/documentation/prepared-statements.mdx",4990],f8d74a12:[()=>Promise.all([n.e(532),n.e(5807)]).then(n.bind(n,7330)),"@site/docs/contributing/website.mdx",7330],fb880757:[()=>n.e(1465).then(n.t.bind(n,5745,19)),"/home/runner/work/node-mysql2/node-mysql2/website/.docusaurus/docusaurus-plugin-content-pages/default/plugin-route-context-module-100.json",5745]};var s=n(5893);function l(e){let{error:t,retry:n,pastDelay:r}=e;return t?(0,s.jsxs)("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"},children:[(0,s.jsx)("p",{children:String(t)}),(0,s.jsx)("div",{children:(0,s.jsx)("button",{type:"button",onClick:n,children:"Retry"})})]}):r?(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:(0,s.jsx)("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb",children:(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2",children:[(0,s.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,s.jsx)("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,s.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,s.jsx)("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,s.jsx)("circle",{cx:"22",cy:"22",r:"8",children:(0,s.jsx)("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})})]})})}):null}var c=n(9670),u=n(226);function d(e,t){if("*"===e)return a()({loading:l,loader:()=>n.e(1772).then(n.bind(n,1772)),modules:["@theme/NotFound"],webpack:()=>[1772],render(e,t){const n=e.default;return(0,s.jsx)(u.z,{value:{plugin:{name:"native",id:"default"}},children:(0,s.jsx)(n,{...t})})}});const r=o[`${e}-${t}`],d={},p=[],f=[],m=(0,c.Z)(r);return Object.entries(m).forEach((e=>{let[t,n]=e;const r=i[n];r&&(d[t]=r[0],p.push(r[1]),f.push(r[2]))})),a().Map({loading:l,loader:d,modules:p,webpack:()=>f,render(t,n){const a=JSON.parse(JSON.stringify(r));Object.entries(t).forEach((t=>{let[n,r]=t;const o=r.default;if(!o)throw new Error(`The page component at ${e} doesn't have a default export. This makes it impossible to render anything. Consider default-exporting a React component.`);"object"!=typeof o&&"function"!=typeof o||Object.keys(r).filter((e=>"default"!==e)).forEach((e=>{o[e]=r[e]}));let i=a;const s=n.split(".");s.slice(0,-1).forEach((e=>{i=i[e]})),i[s[s.length-1]]=o}));const o=a.__comp;delete a.__comp;const i=a.__context;return delete a.__context,(0,s.jsx)(u.z,{value:i,children:(0,s.jsx)(o,{...a,...n})})}})}const p=[{path:"/node-mysql2/pt-BR/search",component:d("/node-mysql2/pt-BR/search","c30"),exact:!0},{path:"/node-mysql2/pt-BR/docs",component:d("/node-mysql2/pt-BR/docs","cc1"),routes:[{path:"/node-mysql2/pt-BR/docs",component:d("/node-mysql2/pt-BR/docs","d4b"),routes:[{path:"/node-mysql2/pt-BR/docs",component:d("/node-mysql2/pt-BR/docs","b2f"),routes:[{path:"/node-mysql2/pt-BR/docs",component:d("/node-mysql2/pt-BR/docs","94c"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/acknowledgements",component:d("/node-mysql2/pt-BR/docs/acknowledgements","10e"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/api-and-configurations",component:d("/node-mysql2/pt-BR/docs/api-and-configurations","36d"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/category/procedure-call-packet",component:d("/node-mysql2/pt-BR/docs/category/procedure-call-packet","49e"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/category/queries",component:d("/node-mysql2/pt-BR/docs/category/queries","5c7"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/category/row-data-packet",component:d("/node-mysql2/pt-BR/docs/category/row-data-packet","8bd"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/category/ssl",component:d("/node-mysql2/pt-BR/docs/category/ssl","f2f"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/category/typescript",component:d("/node-mysql2/pt-BR/docs/category/typescript","d8b"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/contributing",component:d("/node-mysql2/pt-BR/docs/contributing","349"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/contributing/website",component:d("/node-mysql2/pt-BR/docs/contributing/website","2f7"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/documentation",component:d("/node-mysql2/pt-BR/docs/documentation","2a3"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/documentation/authentication-switch",component:d("/node-mysql2/pt-BR/docs/documentation/authentication-switch","5d1"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/documentation/extras",component:d("/node-mysql2/pt-BR/docs/documentation/extras","de6"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/documentation/mysql-server",component:d("/node-mysql2/pt-BR/docs/documentation/mysql-server","d9f"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/documentation/prepared-statements",component:d("/node-mysql2/pt-BR/docs/documentation/prepared-statements","833"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/documentation/promise-wrapper",component:d("/node-mysql2/pt-BR/docs/documentation/promise-wrapper","9ef"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/documentation/typescript-examples",component:d("/node-mysql2/pt-BR/docs/documentation/typescript-examples","a05"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/examples",component:d("/node-mysql2/pt-BR/docs/examples","a0f"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/binlog-watcher",component:d("/node-mysql2/pt-BR/docs/examples/binlog-watcher","eb5"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/connect-over-socks",component:d("/node-mysql2/pt-BR/docs/examples/connect-over-socks","b73"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/execute",component:d("/node-mysql2/pt-BR/docs/examples/execute","1b7"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/mysqlproxy",component:d("/node-mysql2/pt-BR/docs/examples/mysqlproxy","226"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/pass-sha",component:d("/node-mysql2/pt-BR/docs/examples/pass-sha","a82"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/pool-test",component:d("/node-mysql2/pt-BR/docs/examples/pool-test","200"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/prepare",component:d("/node-mysql2/pt-BR/docs/examples/prepare","64c"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/promise-co-await",component:d("/node-mysql2/pt-BR/docs/examples/promise-co-await","845"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/queries/select",component:d("/node-mysql2/pt-BR/docs/examples/queries/select","ac7"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/server",component:d("/node-mysql2/pt-BR/docs/examples/server","53f"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/ssl/rds-ssl",component:d("/node-mysql2/pt-BR/docs/examples/ssl/rds-ssl","ab2"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/ssl/select-over-ssl",component:d("/node-mysql2/pt-BR/docs/examples/ssl/select-over-ssl","a68"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-class",component:d("/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-class","dfc"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/procedure-call-packet",component:d("/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/procedure-call-packet","d98"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-array",component:d("/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-array","7cf"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/typescript/row-data/multi-statements",component:d("/node-mysql2/pt-BR/docs/examples/typescript/row-data/multi-statements","f38"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array",component:d("/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array","4b8"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array-multi-statements",component:d("/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array-multi-statements","b47"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-data-packet",component:d("/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-data-packet","ebf"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/faq",component:d("/node-mysql2/pt-BR/docs/faq","47a"),exact:!0,sidebar:"faq"},{path:"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors",component:d("/node-mysql2/pt-BR/docs/faq/how-to-handle-errors","e71"),exact:!0,sidebar:"faq"},{path:"/node-mysql2/pt-BR/docs/history-and-why-mysq2",component:d("/node-mysql2/pt-BR/docs/history-and-why-mysq2","4f5"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/stability-badges",component:d("/node-mysql2/pt-BR/docs/stability-badges","ca1"),exact:!0,sidebar:"docs"}]}]}]},{path:"/node-mysql2/pt-BR/",component:d("/node-mysql2/pt-BR/","567"),exact:!0},{path:"*",component:d("*")}]},8934:(e,t,n)=>{"use strict";n.d(t,{_:()=>o,t:()=>i});var r=n(7294),a=n(5893);const o=r.createContext(!1);function i(e){let{children:t}=e;const[n,i]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{i(!0)}),[]),(0,a.jsx)(o.Provider,{value:n,children:t})}},7221:(e,t,n)=>{"use strict";var r=n(7294),a=n(745),o=n(3727),i=n(405),s=n(412);const l=[n(2497),n(3310),n(8320),n(3395)];var c=n(723),u=n(6550),d=n(8790),p=n(5893);function f(e){let{children:t}=e;return(0,p.jsx)(p.Fragment,{children:t})}var m=n(5742),h=n(2263),g=n(4996),y=n(6668),b=n(1944),v=n(4711),x=n(9727),w=n(3320),k=n(8780),S=n(197);function E(){const{i18n:{currentLocale:e,defaultLocale:t,localeConfigs:n}}=(0,h.Z)(),r=(0,v.l)(),a=n[e].htmlLang,o=e=>e.replace("-","_");return(0,p.jsxs)(m.Z,{children:[Object.entries(n).map((e=>{let[t,{htmlLang:n}]=e;return(0,p.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:n},t)})),(0,p.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:"x-default"}),(0,p.jsx)("meta",{property:"og:locale",content:o(a)}),Object.values(n).filter((e=>a!==e.htmlLang)).map((e=>(0,p.jsx)("meta",{property:"og:locale:alternate",content:o(e.htmlLang)},`meta-og-${e.htmlLang}`)))]})}function _(e){let{permalink:t}=e;const{siteConfig:{url:n}}=(0,h.Z)(),r=function(){const{siteConfig:{url:e,baseUrl:t,trailingSlash:n}}=(0,h.Z)(),{pathname:r}=(0,u.TH)();return e+(0,k.applyTrailingSlash)((0,g.Z)(r),{trailingSlash:n,baseUrl:t})}(),a=t?`${n}${t}`:r;return(0,p.jsxs)(m.Z,{children:[(0,p.jsx)("meta",{property:"og:url",content:a}),(0,p.jsx)("link",{rel:"canonical",href:a})]})}function C(){const{i18n:{currentLocale:e}}=(0,h.Z)(),{metadata:t,image:n}=(0,y.L)();return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(m.Z,{children:[(0,p.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,p.jsx)("body",{className:x.h})]}),n&&(0,p.jsx)(b.d,{image:n}),(0,p.jsx)(_,{}),(0,p.jsx)(E,{}),(0,p.jsx)(S.Z,{tag:w.HX,locale:e}),(0,p.jsx)(m.Z,{children:t.map(((e,t)=>(0,p.jsx)("meta",{...e},t)))})]})}const T=new Map;function R(e){if(T.has(e.pathname))return{...e,pathname:T.get(e.pathname)};if((0,d.f)(c.Z,e.pathname).some((e=>{let{route:t}=e;return!0===t.exact})))return T.set(e.pathname,e.pathname),e;const t=e.pathname.trim().replace(/(?:\/index)?\.html$/,"")||"/";return T.set(e.pathname,t),{...e,pathname:t}}var L=n(8934),N=n(8940),P=n(469);function A(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const a=l.map((t=>{const r=t.default?.[e]??t[e];return r?.(...n)}));return()=>a.forEach((e=>e?.()))}const O=function(e){let{children:t,location:n,previousLocation:r}=e;return(0,P.Z)((()=>{r!==n&&(!function(e){let{location:t,previousLocation:n}=e;if(!n)return;const r=t.pathname===n.pathname,a=t.hash===n.hash,o=t.search===n.search;if(r&&a&&!o)return;const{hash:i}=t;if(i){const e=decodeURIComponent(i.substring(1)),t=document.getElementById(e);t?.scrollIntoView()}else window.scrollTo(0,0)}({location:n,previousLocation:r}),A("onRouteDidUpdate",{previousLocation:r,location:n}))}),[r,n]),t};function j(e){const t=Array.from(new Set([e,decodeURI(e)])).map((e=>(0,d.f)(c.Z,e))).flat();return Promise.all(t.map((e=>e.route.component.preload?.())))}class I extends r.Component{previousLocation;routeUpdateCleanupCb;constructor(e){super(e),this.previousLocation=null,this.routeUpdateCleanupCb=s.Z.canUseDOM?A("onRouteUpdate",{previousLocation:null,location:this.props.location}):()=>{},this.state={nextRouteHasLoaded:!0}}shouldComponentUpdate(e,t){if(e.location===this.props.location)return t.nextRouteHasLoaded;const n=e.location;return this.previousLocation=this.props.location,this.setState({nextRouteHasLoaded:!1}),this.routeUpdateCleanupCb=A("onRouteUpdate",{previousLocation:this.previousLocation,location:n}),j(n.pathname).then((()=>{this.routeUpdateCleanupCb(),this.setState({nextRouteHasLoaded:!0})})).catch((e=>{console.warn(e),window.location.reload()})),!1}render(){const{children:e,location:t}=this.props;return(0,p.jsx)(O,{previousLocation:this.previousLocation,location:t,children:(0,p.jsx)(u.AW,{location:t,render:()=>e})})}}const B=I,F="__docusaurus-base-url-issue-banner-container",D="__docusaurus-base-url-issue-banner",M="__docusaurus-base-url-issue-banner-suggestion-container";function z(e){return`\ndocument.addEventListener('DOMContentLoaded', function maybeInsertBanner() {\n var shouldInsert = typeof window['docusaurus'] === 'undefined';\n shouldInsert && insertBanner();\n});\n\nfunction insertBanner() {\n var bannerContainer = document.createElement('div');\n bannerContainer.id = '${F}';\n var bannerHtml = ${JSON.stringify(function(e){return`\n<div id="${D}" style="border: thick solid red; background-color: rgb(255, 230, 179); margin: 20px; padding: 20px; font-size: 20px;">\n <p style="font-weight: bold; font-size: 30px;">Your Docusaurus site did not load properly.</p>\n <p>A very common reason is a wrong site <a href="https://docusaurus.io/docs/docusaurus.config.js/#baseUrl" style="font-weight: bold;">baseUrl configuration</a>.</p>\n <p>Current configured baseUrl = <span style="font-weight: bold; color: red;">${e}</span> ${"/"===e?" (default value)":""}</p>\n <p>We suggest trying baseUrl = <span id="${M}" style="font-weight: bold; color: green;"></span></p>\n</div>\n`}(e)).replace(/</g,"\\<")};\n bannerContainer.innerHTML = bannerHtml;\n document.body.prepend(bannerContainer);\n var suggestionContainer = document.getElementById('${M}');\n var actualHomePagePath = window.location.pathname;\n var suggestedBaseUrl = actualHomePagePath.substr(-1) === '/'\n ? actualHomePagePath\n : actualHomePagePath + '/';\n suggestionContainer.innerHTML = suggestedBaseUrl;\n}\n`}function $(){const{siteConfig:{baseUrl:e}}=(0,h.Z)();return(0,p.jsx)(p.Fragment,{children:!s.Z.canUseDOM&&(0,p.jsx)(m.Z,{children:(0,p.jsx)("script",{children:z(e)})})})}function q(){const{siteConfig:{baseUrl:e,baseUrlIssueBanner:t}}=(0,h.Z)(),{pathname:n}=(0,u.TH)();return t&&n===e?(0,p.jsx)($,{}):null}function U(){const{siteConfig:{favicon:e,title:t,noIndex:n},i18n:{currentLocale:r,localeConfigs:a}}=(0,h.Z)(),o=(0,g.Z)(e),{htmlLang:i,direction:s}=a[r];return(0,p.jsxs)(m.Z,{children:[(0,p.jsx)("html",{lang:i,dir:s}),(0,p.jsx)("title",{children:t}),(0,p.jsx)("meta",{property:"og:title",content:t}),(0,p.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),n&&(0,p.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),e&&(0,p.jsx)("link",{rel:"icon",href:o})]})}var H=n(4763),Q=n(2389);function Z(){const e=(0,Q.Z)();return(0,p.jsx)(m.Z,{children:(0,p.jsx)("html",{"data-has-hydrated":e})})}function V(){const e=(0,d.H)(c.Z),t=(0,u.TH)();return(0,p.jsx)(H.Z,{children:(0,p.jsx)(N.M,{children:(0,p.jsxs)(L.t,{children:[(0,p.jsxs)(f,{children:[(0,p.jsx)(U,{}),(0,p.jsx)(C,{}),(0,p.jsx)(q,{}),(0,p.jsx)(B,{location:R(t),children:e})]}),(0,p.jsx)(Z,{})]})})})}var W=n(6887);const G=function(e){try{return document.createElement("link").relList.supports(e)}catch{return!1}}("prefetch")?function(e){return new Promise(((t,n)=>{if("undefined"==typeof document)return void n();const r=document.createElement("link");r.setAttribute("rel","prefetch"),r.setAttribute("href",e),r.onload=()=>t(),r.onerror=()=>n();const a=document.getElementsByTagName("head")[0]??document.getElementsByName("script")[0]?.parentNode;a?.appendChild(r)}))}:function(e){return new Promise(((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.withCredentials=!0,r.onload=()=>{200===r.status?t():n()},r.send(null)}))};var Y=n(9670);const K=new Set,X=new Set,J=()=>navigator.connection?.effectiveType.includes("2g")||navigator.connection?.saveData,ee={prefetch(e){if(!(e=>!J()&&!X.has(e)&&!K.has(e))(e))return!1;K.add(e);const t=(0,d.f)(c.Z,e).flatMap((e=>{return t=e.route.path,Object.entries(W).filter((e=>{let[n]=e;return n.replace(/-[^-]+$/,"")===t})).flatMap((e=>{let[,t]=e;return Object.values((0,Y.Z)(t))}));var t}));return Promise.all(t.map((e=>{const t=n.gca(e);return t&&!t.includes("undefined")?G(t).catch((()=>{})):Promise.resolve()})))},preload:e=>!!(e=>!J()&&!X.has(e))(e)&&(X.add(e),j(e))},te=Object.freeze(ee),ne=Boolean(!0);if(s.Z.canUseDOM){window.docusaurus=te;const e=document.getElementById("__docusaurus"),t=(0,p.jsx)(i.B6,{children:(0,p.jsx)(o.VK,{children:(0,p.jsx)(V,{})})}),n=(e,t)=>{console.error("Docusaurus React Root onRecoverableError:",e,t)},s=()=>{if(ne)r.startTransition((()=>{a.hydrateRoot(e,t,{onRecoverableError:n})}));else{const o=a.createRoot(e,{onRecoverableError:n});r.startTransition((()=>{o.render(t)}))}};j(window.location.pathname).then(s)}},8940:(e,t,n)=>{"use strict";n.d(t,{_:()=>d,M:()=>p});var r=n(7294),a=n(6809);const o=JSON.parse('{"navbar-locale-plugin":{"default":{}},"docusaurus-plugin-content-docs":{"default":{"path":"/node-mysql2/pt-BR/docs","versions":[{"name":"current","label":"Next","isLast":true,"path":"/node-mysql2/pt-BR/docs","mainDocId":"index","docs":[{"id":"acknowledgements","path":"/node-mysql2/pt-BR/docs/acknowledgements","sidebar":"docs"},{"id":"api-and-configurations","path":"/node-mysql2/pt-BR/docs/api-and-configurations","sidebar":"docs"},{"id":"contributing/index","path":"/node-mysql2/pt-BR/docs/contributing","sidebar":"docs"},{"id":"contributing/website","path":"/node-mysql2/pt-BR/docs/contributing/website","sidebar":"docs"},{"id":"documentation/authentication-switch","path":"/node-mysql2/pt-BR/docs/documentation/authentication-switch","sidebar":"docs"},{"id":"documentation/extras","path":"/node-mysql2/pt-BR/docs/documentation/extras","sidebar":"docs"},{"id":"documentation/index","path":"/node-mysql2/pt-BR/docs/documentation","sidebar":"docs"},{"id":"documentation/mysql-server","path":"/node-mysql2/pt-BR/docs/documentation/mysql-server","sidebar":"docs"},{"id":"documentation/prepared-statements","path":"/node-mysql2/pt-BR/docs/documentation/prepared-statements","sidebar":"docs"},{"id":"documentation/promise-wrapper","path":"/node-mysql2/pt-BR/docs/documentation/promise-wrapper","sidebar":"docs"},{"id":"documentation/typescript-examples","path":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","sidebar":"docs"},{"id":"examples/binlog-watcher","path":"/node-mysql2/pt-BR/docs/examples/binlog-watcher","sidebar":"examples"},{"id":"examples/connect-over-socks","path":"/node-mysql2/pt-BR/docs/examples/connect-over-socks","sidebar":"examples"},{"id":"examples/execute","path":"/node-mysql2/pt-BR/docs/examples/execute","sidebar":"examples"},{"id":"examples/index","path":"/node-mysql2/pt-BR/docs/examples","sidebar":"examples"},{"id":"examples/mysqlproxy","path":"/node-mysql2/pt-BR/docs/examples/mysqlproxy","sidebar":"examples"},{"id":"examples/pass-sha","path":"/node-mysql2/pt-BR/docs/examples/pass-sha","sidebar":"examples"},{"id":"examples/pool-test","path":"/node-mysql2/pt-BR/docs/examples/pool-test","sidebar":"examples"},{"id":"examples/prepare","path":"/node-mysql2/pt-BR/docs/examples/prepare","sidebar":"examples"},{"id":"examples/promise-co-await","path":"/node-mysql2/pt-BR/docs/examples/promise-co-await","sidebar":"examples"},{"id":"examples/queries/select","path":"/node-mysql2/pt-BR/docs/examples/queries/select","sidebar":"examples"},{"id":"examples/server","path":"/node-mysql2/pt-BR/docs/examples/server","sidebar":"examples"},{"id":"examples/ssl/rds-ssl","path":"/node-mysql2/pt-BR/docs/examples/ssl/rds-ssl","sidebar":"examples"},{"id":"examples/ssl/select-over-ssl","path":"/node-mysql2/pt-BR/docs/examples/ssl/select-over-ssl","sidebar":"examples"},{"id":"examples/typescript/basic-custom-class","path":"/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-class","sidebar":"examples"},{"id":"examples/typescript/procedure-call/procedure-call-packet","path":"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/procedure-call-packet","sidebar":"examples"},{"id":"examples/typescript/procedure-call/row-as-array","path":"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-array","sidebar":"examples"},{"id":"examples/typescript/row-data/multi-statements","path":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/multi-statements","sidebar":"examples"},{"id":"examples/typescript/row-data/row-as-array","path":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array","sidebar":"examples"},{"id":"examples/typescript/row-data/row-as-array-multi-statements","path":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array-multi-statements","sidebar":"examples"},{"id":"examples/typescript/row-data/row-data-packet","path":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-data-packet","sidebar":"examples"},{"id":"faq/how-to-handle-errors","path":"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors","sidebar":"faq"},{"id":"faq/index","path":"/node-mysql2/pt-BR/docs/faq","sidebar":"faq"},{"id":"history-and-why-mysq2","path":"/node-mysql2/pt-BR/docs/history-and-why-mysq2","sidebar":"docs"},{"id":"index","path":"/node-mysql2/pt-BR/docs/","sidebar":"docs"},{"id":"stability-badges","path":"/node-mysql2/pt-BR/docs/stability-badges","sidebar":"docs"},{"id":"/category/queries","path":"/node-mysql2/pt-BR/docs/category/queries","sidebar":"examples"},{"id":"/category/ssl","path":"/node-mysql2/pt-BR/docs/category/ssl","sidebar":"examples"},{"id":"/category/typescript","path":"/node-mysql2/pt-BR/docs/category/typescript","sidebar":"examples"},{"id":"/category/procedure-call-packet","path":"/node-mysql2/pt-BR/docs/category/procedure-call-packet","sidebar":"examples"},{"id":"/category/row-data-packet","path":"/node-mysql2/pt-BR/docs/category/row-data-packet","sidebar":"examples"}],"draftIds":[],"sidebars":{"docs":{"link":{"path":"/node-mysql2/pt-BR/docs/","label":"index"}},"examples":{"link":{"path":"/node-mysql2/pt-BR/docs/examples","label":"examples/index"}},"faq":{"link":{"path":"/node-mysql2/pt-BR/docs/faq","label":"faq/index"}}}}],"breadcrumbs":true}}}'),i=JSON.parse('{"defaultLocale":"en","locales":["en","zh-CN","pt-BR"],"path":"i18n","currentLocale":"pt-BR","localeConfigs":{"en":{"label":"\ud83c\uddfa\ud83c\uddf8 English","direction":"ltr","htmlLang":"en","calendar":"gregory","path":"en"},"zh-CN":{"label":"\ud83c\udde8\ud83c\uddf3 \u7b80\u4f53\u4e2d\u6587","direction":"ltr","htmlLang":"zh-CN","calendar":"gregory","path":"zh-CN"},"pt-BR":{"label":"\ud83c\udde7\ud83c\uddf7 Portugu\xeas (Brasil)","direction":"ltr","htmlLang":"pt-BR","calendar":"gregory","path":"pt-BR"}}}');var s=n(7529);const l=JSON.parse('{"docusaurusVersion":"3.0.1","siteVersion":"0.0.0","pluginVersions":{"docusaurus-plugin-content-docs":{"type":"package","name":"@docusaurus/plugin-content-docs","version":"3.0.1"},"docusaurus-plugin-content-pages":{"type":"package","name":"@docusaurus/plugin-content-pages","version":"3.0.1"},"docusaurus-plugin-sitemap":{"type":"package","name":"@docusaurus/plugin-sitemap","version":"3.0.1"},"docusaurus-theme-classic":{"type":"package","name":"@docusaurus/theme-classic","version":"3.0.1"},"docusaurus-plugin-sass":{"type":"package","name":"docusaurus-plugin-sass","version":"0.2.5"},"@easyops-cn/docusaurus-search-local":{"type":"package","name":"@easyops-cn/docusaurus-search-local","version":"0.40.1"},"navbar-locale-plugin":{"type":"local"}}}');var c=n(5893);const u={siteConfig:a.default,siteMetadata:l,globalData:o,i18n:i,codeTranslations:s},d=r.createContext(u);function p(e){let{children:t}=e;return(0,c.jsx)(d.Provider,{value:u,children:t})}},4763:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(7294),a=n(412),o=n(5742),i=n(8780),s=n(8862),l=n(5893);function c(e){let{error:t,tryAgain:n}=e;return(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",minHeight:"100vh",width:"100%",maxWidth:"80ch",fontSize:"20px",margin:"0 auto",padding:"1rem"},children:[(0,l.jsx)("h1",{style:{fontSize:"3rem"},children:"This page crashed"}),(0,l.jsx)("button",{type:"button",onClick:n,style:{margin:"1rem 0",fontSize:"2rem",cursor:"pointer",borderRadius:20,padding:"1rem"},children:"Try again"}),(0,l.jsx)(u,{error:t})]})}function u(e){let{error:t}=e;const n=(0,i.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,l.jsx)("p",{style:{whiteSpace:"pre-wrap"},children:n})}function d(e){let{error:t,tryAgain:n}=e;return(0,l.jsxs)(f,{fallback:()=>(0,l.jsx)(c,{error:t,tryAgain:n}),children:[(0,l.jsx)(o.Z,{children:(0,l.jsx)("title",{children:"Page Error"})}),(0,l.jsx)(s.Z,{children:(0,l.jsx)(c,{error:t,tryAgain:n})})]})}const p=e=>(0,l.jsx)(d,{...e});class f extends r.Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){a.Z.canUseDOM&&this.setState({error:e})}render(){const{children:e}=this.props,{error:t}=this.state;if(t){const e={error:t,tryAgain:()=>this.setState({error:null})};return(this.props.fallback??p)(e)}return e??null}}},412:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r="undefined"!=typeof window&&"document"in window&&"createElement"in window.document,a={canUseDOM:r,canUseEventListeners:r&&("addEventListener"in window||"attachEvent"in window),canUseIntersectionObserver:r&&"IntersectionObserver"in window,canUseViewport:r&&"screen"in window}},5742:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(7294);var r=n(405),a=n(5893);function o(e){return(0,a.jsx)(r.ql,{...e})}},9960:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(7294),a=n(3727),o=n(8780),i=n(2263),s=n(3919),l=n(412),c=n(5893);const u=r.createContext({collectLink:()=>{}});var d=n(4996);function p(e,t){let{isNavLink:n,to:p,href:f,activeClassName:m,isActive:h,"data-noBrokenLinkCheck":g,autoAddBaseUrl:y=!0,...b}=e;const{siteConfig:{trailingSlash:v,baseUrl:x}}=(0,i.Z)(),{withBaseUrl:w}=(0,d.C)(),k=(0,r.useContext)(u),S=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(()=>S.current));const E=p||f;const _=(0,s.Z)(E),C=E?.replace("pathname://","");let T=void 0!==C?(R=C,y&&(e=>e.startsWith("/"))(R)?w(R):R):void 0;var R;T&&_&&(T=(0,o.applyTrailingSlash)(T,{trailingSlash:v,baseUrl:x}));const L=(0,r.useRef)(!1),N=n?a.OL:a.rU,P=l.Z.canUseIntersectionObserver,A=(0,r.useRef)(),O=()=>{L.current||null==T||(window.docusaurus.preload(T),L.current=!0)};(0,r.useEffect)((()=>(!P&&_&&null!=T&&window.docusaurus.prefetch(T),()=>{P&&A.current&&A.current.disconnect()})),[A,T,P,_]);const j=T?.startsWith("#")??!1,I=!T||!_||j;return I||g||k.collectLink(T),I?(0,c.jsx)("a",{ref:S,href:T,...E&&!_&&{target:"_blank",rel:"noopener noreferrer"},...b}):(0,c.jsx)(N,{...b,onMouseEnter:O,onTouchStart:O,innerRef:e=>{S.current=e,P&&e&&_&&(A.current=new window.IntersectionObserver((t=>{t.forEach((t=>{e===t.target&&(t.isIntersecting||t.intersectionRatio>0)&&(A.current.unobserve(e),A.current.disconnect(),null!=T&&window.docusaurus.prefetch(T))}))})),A.current.observe(e))},to:T,...n&&{isActive:h,activeClassName:m}})}const f=r.forwardRef(p)},5999:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,I:()=>l});var r=n(7294),a=n(5893);function o(e,t){const n=e.split(/(\{\w+\})/).map(((e,n)=>{if(n%2==1){const n=t?.[e.slice(1,-1)];if(void 0!==n)return n}return e}));return n.some((e=>(0,r.isValidElement)(e)))?n.map(((e,t)=>(0,r.isValidElement)(e)?r.cloneElement(e,{key:t}):e)).filter((e=>""!==e)):n.join("")}var i=n(7529);function s(e){let{id:t,message:n}=e;if(void 0===t&&void 0===n)throw new Error("Docusaurus translation declarations must have at least a translation id or a default translation message");return i[t??n]??n??t}function l(e,t){let{message:n,id:r}=e;return o(s({message:n,id:r}),t)}function c(e){let{children:t,id:n,values:r}=e;if(t&&"string"!=typeof t)throw console.warn("Illegal <Translate> children",t),new Error("The Docusaurus <Translate> component only accept simple string values");const i=s({message:t,id:n});return(0,a.jsx)(a.Fragment,{children:o(i,r)})}},9935:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});const r="default"},3919:(e,t,n)=>{"use strict";function r(e){return/^(?:\w*:|\/\/)/.test(e)}function a(e){return void 0!==e&&!r(e)}n.d(t,{Z:()=>a,b:()=>r})},4996:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,Z:()=>s});var r=n(7294),a=n(2263),o=n(3919);function i(){const{siteConfig:{baseUrl:e,url:t}}=(0,a.Z)(),n=(0,r.useCallback)(((n,r)=>function(e,t,n,r){let{forcePrependBaseUrl:a=!1,absolute:i=!1}=void 0===r?{}:r;if(!n||n.startsWith("#")||(0,o.b)(n))return n;if(a)return t+n.replace(/^\//,"");if(n===t.replace(/\/$/,""))return t;const s=n.startsWith(t)?n:t+n.replace(/^\//,"");return i?e+s:s}(t,e,n,r)),[t,e]);return{withBaseUrl:n}}function s(e,t){void 0===t&&(t={});const{withBaseUrl:n}=i();return n(e,t)}},2263:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(8940);function o(){return(0,r.useContext)(a._)}},2389:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(8934);function o(){return(0,r.useContext)(a._)}},469:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7294);const a=n(412).Z.canUseDOM?r.useLayoutEffect:r.useEffect},9670:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r=e=>"object"==typeof e&&!!e&&Object.keys(e).length>0;function a(e){const t={};return function e(n,a){Object.entries(n).forEach((n=>{let[o,i]=n;const s=a?`${a}.${o}`:o;r(i)?e(i,s):t[s]=i}))}(e),t}},226:(e,t,n)=>{"use strict";n.d(t,{_:()=>o,z:()=>i});var r=n(7294),a=n(5893);const o=r.createContext(null);function i(e){let{children:t,value:n}=e;const i=r.useContext(o),s=(0,r.useMemo)((()=>function(e){let{parent:t,value:n}=e;if(!t){if(!n)throw new Error("Unexpected: no Docusaurus route context found");if(!("plugin"in n))throw new Error("Unexpected: Docusaurus topmost route context has no `plugin` attribute");return n}const r={...t.data,...n?.data};return{plugin:t.plugin,data:r}}({parent:i,value:n})),[i,n]);return(0,a.jsx)(o.Provider,{value:s,children:t})}},143:(e,t,n)=>{"use strict";n.d(t,{Iw:()=>h,gA:()=>p,_r:()=>u,Jo:()=>g,zh:()=>d,yW:()=>m,gB:()=>f});var r=n(6550),a=n(2263),o=n(9935);function i(e,t){void 0===t&&(t={});const n=function(){const{globalData:e}=(0,a.Z)();return e}()[e];if(!n&&t.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin.`);return n}const s=e=>e.versions.find((e=>e.isLast));function l(e,t){const n=function(e,t){const n=s(e);return[...e.versions.filter((e=>e!==n)),n].find((e=>!!(0,r.LX)(t,{path:e.path,exact:!1,strict:!1})))}(e,t),a=n?.docs.find((e=>!!(0,r.LX)(t,{path:e.path,exact:!0,strict:!1})));return{activeVersion:n,activeDoc:a,alternateDocVersions:a?function(t){const n={};return e.versions.forEach((e=>{e.docs.forEach((r=>{r.id===t&&(n[e.name]=r)}))})),n}(a.id):{}}}const c={},u=()=>i("docusaurus-plugin-content-docs")??c,d=e=>function(e,t,n){void 0===t&&(t=o.m),void 0===n&&(n={});const r=i(e),a=r?.[t];if(!a&&n.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin with id "${t}".`);return a}("docusaurus-plugin-content-docs",e,{failfast:!0});function p(e){void 0===e&&(e={});const t=u(),{pathname:n}=(0,r.TH)();return function(e,t,n){void 0===n&&(n={});const a=Object.entries(e).sort(((e,t)=>t[1].path.localeCompare(e[1].path))).find((e=>{let[,n]=e;return!!(0,r.LX)(t,{path:n.path,exact:!1,strict:!1})})),o=a?{pluginId:a[0],pluginData:a[1]}:void 0;if(!o&&n.failfast)throw new Error(`Can't find active docs plugin for "${t}" pathname, while it was expected to be found. Maybe you tried to use a docs feature that can only be used on a docs-related page? Existing docs plugin paths are: ${Object.values(e).map((e=>e.path)).join(", ")}`);return o}(t,n,e)}function f(e){return d(e).versions}function m(e){const t=d(e);return s(t)}function h(e){const t=d(e),{pathname:n}=(0,r.TH)();return l(t,n)}function g(e){const t=d(e),{pathname:n}=(0,r.TH)();return function(e,t){const n=s(e);return{latestDocSuggestion:l(e,t).alternateDocVersions[n.name],latestVersionSuggestion:n}}(t,n)}},8320:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4865),a=n.n(r);a().configure({showSpinner:!1});const o={onRouteUpdate(e){let{location:t,previousLocation:n}=e;if(n&&t.pathname!==n.pathname){const e=window.setTimeout((()=>{a().start()}),200);return()=>window.clearTimeout(e)}},onRouteDidUpdate(){a().done()}}},3310:(e,t,n)=>{"use strict";n.r(t);var r=n(2573),a=n(6809);!function(e){const{themeConfig:{prism:t}}=a.default,{additionalLanguages:r}=t;globalThis.Prism=e,r.forEach((e=>{"php"===e&&n(6854),n(5897)(`./prism-${e}`)})),delete globalThis.Prism}(r.p1)},2503:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});n(7294);var r=n(512),a=n(5999),o=n(6668),i=n(9960);const s={anchorWithStickyNavbar:"anchorWithStickyNavbar_LWe7",anchorWithHideOnScrollNavbar:"anchorWithHideOnScrollNavbar_WYt5"};var l=n(5893);function c(e){let{as:t,id:n,...c}=e;const{navbar:{hideOnScroll:u}}=(0,o.L)();if("h1"===t||!n)return(0,l.jsx)(t,{...c,id:void 0});const d=(0,a.I)({id:"theme.common.headingLinkTitle",message:"Direct link to {heading}",description:"Title for link to heading"},{heading:"string"==typeof c.children?c.children:n});return(0,l.jsxs)(t,{...c,className:(0,r.Z)("anchor",u?s.anchorWithHideOnScrollNavbar:s.anchorWithStickyNavbar,c.className),id:n,children:[c.children,(0,l.jsx)(i.Z,{className:"hash-link",to:`#${n}`,"aria-label":d,title:d,children:"\u200b"})]})}},9471:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(7294);const r={iconExternalLink:"iconExternalLink_nPIU"};var a=n(5893);function o(e){let{width:t=13.5,height:n=13.5}=e;return(0,a.jsx)("svg",{width:t,height:n,"aria-hidden":"true",viewBox:"0 0 24 24",className:r.iconExternalLink,children:(0,a.jsx)("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"})})}},8862:(e,t,n)=>{"use strict";n.d(t,{Z:()=>It});var r=n(7294),a=n(512),o=n(4763),i=n(1944),s=n(6550),l=n(5999),c=n(5936),u=n(5893);const d="__docusaurus_skipToContent_fallback";function p(e){e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")}function f(){const e=(0,r.useRef)(null),{action:t}=(0,s.k6)(),n=(0,r.useCallback)((e=>{e.preventDefault();const t=document.querySelector("main:first-of-type")??document.getElementById(d);t&&p(t)}),[]);return(0,c.S)((n=>{let{location:r}=n;e.current&&!r.hash&&"PUSH"===t&&p(e.current)})),{containerRef:e,onClick:n}}const m=(0,l.I)({id:"theme.common.skipToMainContent",description:"The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",message:"Skip to main content"});function h(e){const t=e.children??m,{containerRef:n,onClick:r}=f();return(0,u.jsx)("div",{ref:n,role:"region","aria-label":m,children:(0,u.jsx)("a",{...e,href:`#${d}`,onClick:r,children:t})})}var g=n(5281),y=n(9727);const b={skipToContent:"skipToContent_fXgn"};function v(){return(0,u.jsx)(h,{className:b.skipToContent})}var x=n(6668),w=n(9689);function k(e){let{width:t=21,height:n=21,color:r="currentColor",strokeWidth:a=1.2,className:o,...i}=e;return(0,u.jsx)("svg",{viewBox:"0 0 15 15",width:t,height:n,...i,children:(0,u.jsx)("g",{stroke:r,strokeWidth:a,children:(0,u.jsx)("path",{d:"M.75.75l13.5 13.5M14.25.75L.75 14.25"})})})}const S={closeButton:"closeButton_CVFx"};function E(e){return(0,u.jsx)("button",{type:"button","aria-label":(0,l.I)({id:"theme.AnnouncementBar.closeButtonAriaLabel",message:"Close",description:"The ARIA label for close button of announcement bar"}),...e,className:(0,a.Z)("clean-btn close",S.closeButton,e.className),children:(0,u.jsx)(k,{width:14,height:14,strokeWidth:3.1})})}const _={content:"content_knG7"};function C(e){const{announcementBar:t}=(0,x.L)(),{content:n}=t;return(0,u.jsx)("div",{...e,className:(0,a.Z)(_.content,e.className),dangerouslySetInnerHTML:{__html:n}})}const T={announcementBar:"announcementBar_mb4j",announcementBarPlaceholder:"announcementBarPlaceholder_vyr4",announcementBarClose:"announcementBarClose_gvF7",announcementBarContent:"announcementBarContent_xLdY"};function R(){const{announcementBar:e}=(0,x.L)(),{isActive:t,close:n}=(0,w.nT)();if(!t)return null;const{backgroundColor:r,textColor:a,isCloseable:o}=e;return(0,u.jsxs)("div",{className:T.announcementBar,style:{backgroundColor:r,color:a},role:"banner",children:[o&&(0,u.jsx)("div",{className:T.announcementBarPlaceholder}),(0,u.jsx)(C,{className:T.announcementBarContent}),o&&(0,u.jsx)(E,{onClick:n,className:T.announcementBarClose})]})}var L=n(3163),N=n(2466);var P=n(902),A=n(3102);const O=r.createContext(null);function j(e){let{children:t}=e;const n=function(){const e=(0,L.e)(),t=(0,A.HY)(),[n,a]=(0,r.useState)(!1),o=null!==t.component,i=(0,P.D9)(o);return(0,r.useEffect)((()=>{o&&!i&&a(!0)}),[o,i]),(0,r.useEffect)((()=>{o?e.shown||a(!0):a(!1)}),[e.shown,o]),(0,r.useMemo)((()=>[n,a]),[n])}();return(0,u.jsx)(O.Provider,{value:n,children:t})}function I(e){if(e.component){const t=e.component;return(0,u.jsx)(t,{...e.props})}}function B(){const e=(0,r.useContext)(O);if(!e)throw new P.i6("NavbarSecondaryMenuDisplayProvider");const[t,n]=e,a=(0,r.useCallback)((()=>n(!1)),[n]),o=(0,A.HY)();return(0,r.useMemo)((()=>({shown:t,hide:a,content:I(o)})),[a,o,t])}function F(e){let{header:t,primaryMenu:n,secondaryMenu:r}=e;const{shown:o}=B();return(0,u.jsxs)("div",{className:"navbar-sidebar",children:[t,(0,u.jsxs)("div",{className:(0,a.Z)("navbar-sidebar__items",{"navbar-sidebar__items--show-secondary":o}),children:[(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:n}),(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:r})]})]})}var D=n(2949),M=n(2389);function z(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"})})}function $(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"})})}const q={toggle:"toggle_vylO",toggleButton:"toggleButton_gllP",darkToggleIcon:"darkToggleIcon_wfgR",lightToggleIcon:"lightToggleIcon_pyhR",toggleButtonDisabled:"toggleButtonDisabled_aARS"};function U(e){let{className:t,buttonClassName:n,value:r,onChange:o}=e;const i=(0,M.Z)(),s=(0,l.I)({message:"Switch between dark and light mode (currently {mode})",id:"theme.colorToggle.ariaLabel",description:"The ARIA label for the navbar color mode toggle"},{mode:"dark"===r?(0,l.I)({message:"dark mode",id:"theme.colorToggle.ariaLabel.mode.dark",description:"The name for the dark color mode"}):(0,l.I)({message:"light mode",id:"theme.colorToggle.ariaLabel.mode.light",description:"The name for the light color mode"})});return(0,u.jsx)("div",{className:(0,a.Z)(q.toggle,t),children:(0,u.jsxs)("button",{className:(0,a.Z)("clean-btn",q.toggleButton,!i&&q.toggleButtonDisabled,n),type:"button",onClick:()=>o("dark"===r?"light":"dark"),disabled:!i,title:s,"aria-label":s,"aria-live":"polite",children:[(0,u.jsx)(z,{className:(0,a.Z)(q.toggleIcon,q.lightToggleIcon)}),(0,u.jsx)($,{className:(0,a.Z)(q.toggleIcon,q.darkToggleIcon)})]})})}const H=r.memo(U),Q={darkNavbarColorModeToggle:"darkNavbarColorModeToggle_X3D1"};function Z(e){let{className:t}=e;const n=(0,x.L)().navbar.style,r=(0,x.L)().colorMode.disableSwitch,{colorMode:a,setColorMode:o}=(0,D.I)();return r?null:(0,u.jsx)(H,{className:t,buttonClassName:"dark"===n?Q.darkNavbarColorModeToggle:void 0,value:a,onChange:o})}var V=n(1327);function W(){return(0,u.jsx)(V.Z,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:"navbar__title text--truncate"})}function G(){const e=(0,L.e)();return(0,u.jsx)("button",{type:"button","aria-label":(0,l.I)({id:"theme.docs.sidebar.closeSidebarButtonAriaLabel",message:"Close navigation bar",description:"The ARIA label for close button of mobile sidebar"}),className:"clean-btn navbar-sidebar__close",onClick:()=>e.toggle(),children:(0,u.jsx)(k,{color:"var(--ifm-color-emphasis-600)"})})}function Y(){return(0,u.jsxs)("div",{className:"navbar-sidebar__brand",children:[(0,u.jsx)(W,{}),(0,u.jsx)(Z,{className:"margin-right--md"}),(0,u.jsx)(G,{})]})}var K=n(9960),X=n(4996),J=n(3919);function ee(e,t){return void 0!==e&&void 0!==t&&new RegExp(e,"gi").test(t)}var te=n(9471);function ne(e){let{activeBasePath:t,activeBaseRegex:n,to:r,href:a,label:o,html:i,isDropdownLink:s,prependBaseUrlToHref:l,...c}=e;const d=(0,X.Z)(r),p=(0,X.Z)(t),f=(0,X.Z)(a,{forcePrependBaseUrl:!0}),m=o&&a&&!(0,J.Z)(a),h=i?{dangerouslySetInnerHTML:{__html:i}}:{children:(0,u.jsxs)(u.Fragment,{children:[o,m&&(0,u.jsx)(te.Z,{...s&&{width:12,height:12}})]})};return a?(0,u.jsx)(K.Z,{href:l?f:a,...c,...h}):(0,u.jsx)(K.Z,{to:d,isNavLink:!0,...(t||n)&&{isActive:(e,t)=>n?ee(n,t.pathname):t.pathname.startsWith(p)},...c,...h})}function re(e){let{className:t,isDropdownItem:n=!1,...r}=e;const o=(0,u.jsx)(ne,{className:(0,a.Z)(n?"dropdown__link":"navbar__item navbar__link",t),isDropdownLink:n,...r});return n?(0,u.jsx)("li",{children:o}):o}function ae(e){let{className:t,isDropdownItem:n,...r}=e;return(0,u.jsx)("li",{className:"menu__list-item",children:(0,u.jsx)(ne,{className:(0,a.Z)("menu__link",t),...r})})}function oe(e){let{mobile:t=!1,position:n,...r}=e;const a=t?ae:re;return(0,u.jsx)(a,{...r,activeClassName:r.activeClassName??(t?"menu__link--active":"navbar__link--active")})}var ie=n(6043),se=n(8596),le=n(2263);const ce={dropdownNavbarItemMobile:"dropdownNavbarItemMobile_S0Fm"};function ue(e,t){return e.some((e=>function(e,t){return!!(0,se.Mg)(e.to,t)||!!ee(e.activeBaseRegex,t)||!(!e.activeBasePath||!t.startsWith(e.activeBasePath))}(e,t)))}function de(e){let{items:t,position:n,className:o,onClick:i,...s}=e;const l=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=e=>{l.current&&!l.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("focusin",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("focusin",e)}}),[l]),(0,u.jsxs)("div",{ref:l,className:(0,a.Z)("navbar__item","dropdown","dropdown--hoverable",{"dropdown--right":"right"===n,"dropdown--show":c}),children:[(0,u.jsx)(ne,{"aria-haspopup":"true","aria-expanded":c,role:"button",href:s.to?void 0:"#",className:(0,a.Z)("navbar__link",o),...s,onClick:s.to?void 0:e=>e.preventDefault(),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),d(!c))},children:s.children??s.label}),(0,u.jsx)("ul",{className:"dropdown__menu",children:t.map(((e,t)=>(0,r.createElement)(Ve,{isDropdownItem:!0,activeClassName:"dropdown__link--active",...e,key:t})))})]})}function pe(e){let{items:t,className:n,position:o,onClick:i,...l}=e;const c=function(){const{siteConfig:{baseUrl:e}}=(0,le.Z)(),{pathname:t}=(0,s.TH)();return t.replace(e,"/")}(),d=ue(t,c),{collapsed:p,toggleCollapsed:f,setCollapsed:m}=(0,ie.u)({initialState:()=>!d});return(0,r.useEffect)((()=>{d&&m(!d)}),[c,d,m]),(0,u.jsxs)("li",{className:(0,a.Z)("menu__list-item",{"menu__list-item--collapsed":p}),children:[(0,u.jsx)(ne,{role:"button",className:(0,a.Z)(ce.dropdownNavbarItemMobile,"menu__link menu__link--sublist menu__link--sublist-caret",n),...l,onClick:e=>{e.preventDefault(),f()},children:l.children??l.label}),(0,u.jsx)(ie.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:p,children:t.map(((e,t)=>(0,r.createElement)(Ve,{mobile:!0,isDropdownItem:!0,onClick:i,activeClassName:"menu__link--active",...e,key:t})))})]})}function fe(e){let{mobile:t=!1,...n}=e;const r=t?pe:de;return(0,u.jsx)(r,{...n})}var me=n(4711);function he(e){let{width:t=20,height:n=20,...r}=e;return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:t,height:n,"aria-hidden":!0,...r,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"})})}const ge="iconLanguage_nlXk";var ye=n(8087),be=n(1728),ve=n(373),xe=n(143),we=n(22),ke=n(8202),Se=n(3926),Ee=n(1073),_e=n(2539),Ce=n(726);const Te='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M17 6v12c0 .52-.2 1-1 1H4c-.7 0-1-.33-1-1V2c0-.55.42-1 1-1h8l5 5zM14 8h-3.13c-.51 0-.87-.34-.87-.87V4" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linejoin="round"></path></svg>',Re='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M13 13h4-4V8H7v5h6v4-4H7V8H3h4V3v5h6V3v5h4-4v5zm-6 0v4-4H3h4z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path></svg>',Le='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M17 5H3h14zm0 5H3h14zm0 5H3h14z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linejoin="round"></path></svg>',Ne='<svg width="20" height="20" viewBox="0 0 20 20"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M18 3v4c0 2-2 4-4 4H2"></path><path d="M8 17l-6-6 6-6"></path></g></svg>',Pe='<svg width="40" height="40" viewBox="0 0 20 20" fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 4.8c2 3 1.7 7-1 9.7h0l4.3 4.3-4.3-4.3a7.8 7.8 0 01-9.8 1m-2.2-2.2A7.8 7.8 0 0113.2 2.4M2 18L18 2"></path></svg>',Ae='<svg viewBox="0 0 24 54"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6v42M20 27H8.3"></path></g></svg>',Oe='<svg viewBox="0 0 24 54"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6v21M20 27H8.3"></path></g></svg>',je={searchBar:"searchBar_RVTs",dropdownMenu:"dropdownMenu_qbY6",searchBarLeft:"searchBarLeft_MXDe",suggestion:"suggestion_fB_2",cursor:"cursor_eG29",hitTree:"hitTree_kk6K",hitIcon:"hitIcon_a7Zy",hitPath:"hitPath_ieM4",noResultsIcon:"noResultsIcon_EBY5",hitFooter:"hitFooter_E9YW",hitWrapper:"hitWrapper_sAK8",hitTitle:"hitTitle_vyVt",hitAction:"hitAction_NqkB",hideAction:"hideAction_vcyE",noResults:"noResults_l6Q3",searchBarContainer:"searchBarContainer_NW3z",searchBarLoadingRing:"searchBarLoadingRing_YnHq",searchClearButton:"searchClearButton_qk4g",searchIndexLoading:"searchIndexLoading_EJ1f",searchHintContainer:"searchHintContainer_Pkmr",searchHint:"searchHint_iIMx",focused:"focused_OWtg",input:"input_FOTf",hint:"hint_URu1",suggestions:"suggestions_X8XU",dataset:"dataset_QiCy",empty:"empty_eITn"};function Ie(e){let{document:t,type:n,page:r,metadata:a,tokens:o,isInterOfTree:i,isLastOfTree:s}=e;const l=0===n,c=1===n,u=[];i?u.push(Ae):s&&u.push(Oe);const d=u.map((e=>`<span class="${je.hitTree}">${e}</span>`)),p=`<span class="${je.hitIcon}">${l?Te:c?Re:Le}</span>`,f=[`<span class="${je.hitTitle}">${(0,Ce.o)(t.t,(0,Ee.m)(a,"t"),o)}</span>`];if(!i&&!s&&ye.H6){const e=r?(r.b??[]).concat(r.t).concat(t.s&&t.s!==r.t?t.s:[]):t.b;f.push(`<span class="${je.hitPath}">${(0,Se.e)(e??[])}</span>`)}else l||f.push(`<span class="${je.hitPath}">${(0,_e.C)(r.t||(t.u.startsWith("/docs/api-reference/")?"API Reference":""),o)}</span>`);const m=`<span class="${je.hitAction}">${Ne}</span>`;return[...d,p,`<span class="${je.hitWrapper}">`,...f,"</span>",m].join("")}function Be(){return`<span class="${je.noResults}"><span class="${je.noResultsIcon}">${Pe}</span><span>${(0,l.I)({id:"theme.SearchBar.noResultsText",message:"No results"})}</span></span>`}var Fe=n(311),De=n(51);async function Me(){const e=await Promise.all([n.e(8443),n.e(5525)]).then(n.t.bind(n,8443,23)),t=e.default;return t.noConflict?t.noConflict():e.noConflict&&e.noConflict(),t}const ze="_highlight";const $e=function(e){let{handleSearchBarToggle:t}=e;const n=(0,M.Z)(),{siteConfig:{baseUrl:a},i18n:{currentLocale:o}}=(0,le.Z)(),i=(0,xe.gA)();let c=a;try{const{preferredVersion:e}=(0,ve.J)(i?.pluginId??ye.gQ);e&&!e.isLast&&(c=e.path+"/")}catch(F){if(ye.l9&&!(F instanceof P.i6))throw F}const d=(0,s.k6)(),p=(0,s.TH)(),f=(0,r.useRef)(null),m=(0,r.useRef)(new Map),h=(0,r.useRef)(!1),[g,y]=(0,r.useState)(!1),[b,v]=(0,r.useState)(!1),[x,w]=(0,r.useState)(""),k=(0,r.useRef)(null),S=(0,r.useRef)(""),[E,_]=(0,r.useState)("");(0,r.useEffect)((()=>{if(!Array.isArray(ye.Kc))return;let e="";if(p.pathname.startsWith(c)){const t=p.pathname.substring(c.length);let n;for(const e of ye.Kc){const r="string"==typeof e?e:e.path;if(t===r||t.startsWith(`${r}/`)){n=r;break}}n&&(e=n)}S.current!==e&&(m.current.delete(e),S.current=e),_(e)}),[p.pathname,c]);const C=!!ye.hG&&Array.isArray(ye.Kc)&&""===E,T=(0,r.useCallback)((async()=>{if(C||m.current.get(E))return;m.current.set(E,"loading"),k.current?.autocomplete.destroy(),y(!0);const[{wrappedIndexes:e,zhDictionary:t},n]=await Promise.all([(0,we.w)(c,E),Me()]);if(k.current=n(f.current,{hint:!1,autoselect:!0,openOnFocus:!0,cssClasses:{root:(0,be.Z)(je.searchBar,{[je.searchBarLeft]:"left"===ye.pu}),noPrefix:!0,dropdownMenu:je.dropdownMenu,input:je.input,hint:je.hint,suggestions:je.suggestions,suggestion:je.suggestion,cursor:je.cursor,dataset:je.dataset,empty:je.empty}},[{source:(0,ke.v)(e,t,ye.qo),templates:{suggestion:Ie,empty:Be,footer:e=>{let{query:t,isEmpty:n}=e;if(n&&(!E||!ye.pQ))return;const r=(e=>{let{query:t,isEmpty:n}=e;const r=document.createElement("a"),i=new URLSearchParams;let s;if(i.set("q",t),E){const e=E&&Array.isArray(ye.Kc)?ye.Kc.find((e=>"string"==typeof e?e===E:e.path===E)):E,t=e?(0,De._)(e,o).label:E;s=ye.pQ&&n?(0,l.I)({id:"theme.SearchBar.seeAllOutsideContext",message:"See results outside {context}"},{context:t}):(0,l.I)({id:"theme.SearchBar.searchInContext",message:"See all results in {context}"},{context:t})}else s=(0,l.I)({id:"theme.SearchBar.seeAll",message:"See all results"});if(!E||!Array.isArray(ye.Kc)||ye.pQ&&n||i.set("ctx",E),c!==a){if(!c.startsWith(a))throw new Error(`Version url '${c}' does not start with base url '${a}', this is a bug of \`@easyops-cn/docusaurus-search-local\`, please report it.`);i.set("version",c.substring(a.length))}const u=`${a}search?${i.toString()}`;return r.href=u,r.textContent=s,r.addEventListener("click",(e=>{e.ctrlKey||e.metaKey||(e.preventDefault(),k.current?.autocomplete.close(),d.push(u))})),r})({query:t,isEmpty:n}),i=document.createElement("div");return i.className=je.hitFooter,i.appendChild(r),i}}}]).on("autocomplete:selected",(function(e,t){let{document:{u:n,h:r},tokens:a}=t;f.current?.blur();let o=n;if(ye.vc&&a.length>0){const e=new URLSearchParams;for(const t of a)e.append(ze,t);o+=`?${e.toString()}`}r&&(o+=r),d.push(o)})).on("autocomplete:closed",(()=>{f.current?.blur()})),m.current.set(E,"done"),y(!1),h.current){const e=f.current;e.value&&k.current?.autocomplete.open(),e.focus()}}),[C,E,c,a,d]);(0,r.useEffect)((()=>{if(!ye.vc)return;const e=n?new URLSearchParams(p.search).getAll(ze):[];setTimeout((()=>{const t=document.querySelector("article");if(!t)return;const n=new ye.vc(t);n.unmark(),0!==e.length&&n.mark(e),w(e.join(" ")),k.current?.autocomplete.setVal(e.join(" "))}))}),[n,p.search,p.pathname]);const[R,L]=(0,r.useState)(!1),N=(0,r.useCallback)((()=>{h.current=!0,T(),L(!0),t?.(!0)}),[t,T]),A=(0,r.useCallback)((()=>{L(!1),t?.(!1)}),[t]),O=(0,r.useCallback)((()=>{T()}),[T]),j=(0,r.useCallback)((e=>{w(e.target.value),e.target.value&&v(!0)}),[]),I=!!n&&/mac/i.test(navigator.userAgentData?.platform??navigator.platform);(0,r.useEffect)((()=>{if(!ye.AY)return;const e=e=>{!(I?e.metaKey:e.ctrlKey)||"k"!==e.key&&"K"!==e.key||(e.preventDefault(),f.current?.focus(),N())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[I,N]);const B=(0,r.useCallback)((()=>{const e=new URLSearchParams(p.search);e.delete(ze);const t=e.toString(),n=p.pathname+(""!=t?`?${t}`:"")+p.hash;n!=p.pathname+p.search+p.hash&&d.push(n),w(""),k.current?.autocomplete.setVal("")}),[p.pathname,p.search,p.hash,d]);return(0,u.jsxs)("div",{className:(0,be.Z)("navbar__search",je.searchBarContainer,{[je.searchIndexLoading]:g&&b,[je.focused]:R}),hidden:C,children:[(0,u.jsx)("input",{placeholder:(0,l.I)({id:"theme.SearchBar.label",message:"Search",description:"The ARIA label and placeholder for search button"}),"aria-label":"Search",className:"navbar__search-input",onMouseEnter:O,onFocus:N,onBlur:A,onChange:j,ref:f,value:x}),(0,u.jsx)(Fe.Z,{className:je.searchBarLoadingRing}),ye.AY&&ye.t_&&(""!==x?(0,u.jsx)("button",{className:je.searchClearButton,onClick:B,children:"\u2715"}):n&&(0,u.jsxs)("div",{className:je.searchHintContainer,children:[(0,u.jsx)("kbd",{className:je.searchHint,children:I?"\u2318":"ctrl"}),(0,u.jsx)("kbd",{className:je.searchHint,children:"K"})]}))]})},qe={navbarSearchContainer:"navbarSearchContainer_Bca1"};function Ue(e){let{children:t,className:n}=e;return(0,u.jsx)("div",{className:(0,a.Z)(n,qe.navbarSearchContainer),children:t})}var He=n(3438);const Qe=e=>e.docs.find((t=>t.id===e.mainDocId));const Ze={default:oe,localeDropdown:function(e){let{mobile:t,dropdownItemsBefore:n,dropdownItemsAfter:r,queryString:a="",...o}=e;const{i18n:{currentLocale:i,locales:c,localeConfigs:d}}=(0,le.Z)(),p=(0,me.l)(),{search:f,hash:m}=(0,s.TH)(),h=[...n,...c.map((e=>{const n=`${`pathname://${p.createUrl({locale:e,fullyQualified:!1})}`}${f}${m}${a}`;return{label:d[e].label,lang:d[e].htmlLang,to:n,target:"_self",autoAddBaseUrl:!1,className:e===i?t?"menu__link--active":"dropdown__link--active":""}})),...r],g=t?(0,l.I)({message:"Languages",id:"theme.navbar.mobileLanguageDropdown.label",description:"The label for the mobile language switcher dropdown"}):d[i].label;return(0,u.jsx)(fe,{...o,mobile:t,label:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(he,{className:ge}),g]}),items:h})},search:function(e){let{mobile:t,className:n}=e;return t?null:(0,u.jsx)(Ue,{className:n,children:(0,u.jsx)($e,{})})},dropdown:fe,html:function(e){let{value:t,className:n,mobile:r=!1,isDropdownItem:o=!1}=e;const i=o?"li":"div";return(0,u.jsx)(i,{className:(0,a.Z)({navbar__item:!r&&!o,"menu__list-item":r},n),dangerouslySetInnerHTML:{__html:t}})},doc:function(e){let{docId:t,label:n,docsPluginId:r,...a}=e;const{activeDoc:o}=(0,xe.Iw)(r),i=(0,He.vY)(t,r),s=o?.path===i?.path;return null===i||i.unlisted&&!s?null:(0,u.jsx)(oe,{exact:!0,...a,isActive:()=>s||!!o?.sidebar&&o.sidebar===i.sidebar,label:n??i.id,to:i.path})},docSidebar:function(e){let{sidebarId:t,label:n,docsPluginId:r,...a}=e;const{activeDoc:o}=(0,xe.Iw)(r),i=(0,He.oz)(t,r).link;if(!i)throw new Error(`DocSidebarNavbarItem: Sidebar with ID "${t}" doesn't have anything to be linked to.`);return(0,u.jsx)(oe,{exact:!0,...a,isActive:()=>o?.sidebar===t,label:n??i.label,to:i.path})},docsVersion:function(e){let{label:t,to:n,docsPluginId:r,...a}=e;const o=(0,He.lO)(r)[0],i=t??o.label,s=n??(e=>e.docs.find((t=>t.id===e.mainDocId)))(o).path;return(0,u.jsx)(oe,{...a,label:i,to:s})},docsVersionDropdown:function(e){let{mobile:t,docsPluginId:n,dropdownActiveClassDisabled:r,dropdownItemsBefore:a,dropdownItemsAfter:o,...i}=e;const{search:c,hash:d}=(0,s.TH)(),p=(0,xe.Iw)(n),f=(0,xe.gB)(n),{savePreferredVersionName:m}=(0,ve.J)(n),h=[...a,...f.map((e=>{const t=p.alternateDocVersions[e.name]??Qe(e);return{label:e.label,to:`${t.path}${c}${d}`,isActive:()=>e===p.activeVersion,onClick:()=>m(e.name)}})),...o],g=(0,He.lO)(n)[0],y=t&&h.length>1?(0,l.I)({id:"theme.navbar.mobileVersionsDropdown.label",message:"Versions",description:"The label for the navbar versions dropdown on mobile view"}):g.label,b=t&&h.length>1?void 0:Qe(g).path;return h.length<=1?(0,u.jsx)(oe,{...i,mobile:t,label:y,to:b,isActive:r?()=>!1:void 0}):(0,u.jsx)(fe,{...i,mobile:t,label:y,to:b,items:h,isActive:r?()=>!1:void 0})}};function Ve(e){let{type:t,...n}=e;const r=function(e,t){return e&&"default"!==e?e:"items"in t?"dropdown":"default"}(t,n),a=Ze[r];if(!a)throw new Error(`No NavbarItem component found for type "${t}".`);return(0,u.jsx)(a,{...n})}function We(){const e=(0,L.e)(),t=(0,x.L)().navbar.items;return(0,u.jsx)("ul",{className:"menu__list",children:t.map(((t,n)=>(0,r.createElement)(Ve,{mobile:!0,...t,onClick:()=>e.toggle(),key:n})))})}function Ge(e){return(0,u.jsx)("button",{...e,type:"button",className:"clean-btn navbar-sidebar__back",children:(0,u.jsx)(l.Z,{id:"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel",description:"The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)",children:"\u2190 Back to main menu"})})}function Ye(){const e=0===(0,x.L)().navbar.items.length,t=B();return(0,u.jsxs)(u.Fragment,{children:[!e&&(0,u.jsx)(Ge,{onClick:()=>t.hide()}),t.content]})}function Ke(){const e=(0,L.e)();var t;return void 0===(t=e.shown)&&(t=!0),(0,r.useEffect)((()=>(document.body.style.overflow=t?"hidden":"visible",()=>{document.body.style.overflow="visible"})),[t]),e.shouldRender?(0,u.jsx)(F,{header:(0,u.jsx)(Y,{}),primaryMenu:(0,u.jsx)(We,{}),secondaryMenu:(0,u.jsx)(Ye,{})}):null}const Xe={navbarHideable:"navbarHideable_m1mJ",navbarHidden:"navbarHidden_jGov"};function Je(e){return(0,u.jsx)("div",{role:"presentation",...e,className:(0,a.Z)("navbar-sidebar__backdrop",e.className)})}function et(e){let{children:t}=e;const{navbar:{hideOnScroll:n,style:o}}=(0,x.L)(),i=(0,L.e)(),{navbarRef:s,isNavbarVisible:d}=function(e){const[t,n]=(0,r.useState)(e),a=(0,r.useRef)(!1),o=(0,r.useRef)(0),i=(0,r.useCallback)((e=>{null!==e&&(o.current=e.getBoundingClientRect().height)}),[]);return(0,N.RF)(((t,r)=>{let{scrollY:i}=t;if(!e)return;if(i<o.current)return void n(!0);if(a.current)return void(a.current=!1);const s=r?.scrollY,l=document.documentElement.scrollHeight-o.current,c=window.innerHeight;s&&i>=s?n(!1):i+c<l&&n(!0)})),(0,c.S)((t=>{if(!e)return;const r=t.location.hash;if(r?document.getElementById(r.substring(1)):void 0)return a.current=!0,void n(!1);n(!0)})),{navbarRef:i,isNavbarVisible:t}}(n);return(0,u.jsxs)("nav",{ref:s,"aria-label":(0,l.I)({id:"theme.NavBar.navAriaLabel",message:"Main",description:"The ARIA label for the main navigation"}),className:(0,a.Z)("navbar","navbar--fixed-top",n&&[Xe.navbarHideable,!d&&Xe.navbarHidden],{"navbar--dark":"dark"===o,"navbar--primary":"primary"===o,"navbar-sidebar--show":i.shown}),children:[t,(0,u.jsx)(Je,{onClick:i.toggle}),(0,u.jsx)(Ke,{})]})}var tt=n(8780);const nt={errorBoundaryError:"errorBoundaryError_a6uf",errorBoundaryFallback:"errorBoundaryFallback_VBag"};function rt(e){return(0,u.jsx)("button",{type:"button",...e,children:(0,u.jsx)(l.Z,{id:"theme.ErrorPageContent.tryAgain",description:"The label of the button to try again rendering when the React error boundary captures an error",children:"Try again"})})}function at(e){let{error:t}=e;const n=(0,tt.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,u.jsx)("p",{className:nt.errorBoundaryError,children:n})}class ot extends r.Component{componentDidCatch(e,t){throw this.props.onError(e,t)}render(){return this.props.children}}const it="right";function st(e){let{width:t=30,height:n=30,className:r,...a}=e;return(0,u.jsx)("svg",{className:r,width:t,height:n,viewBox:"0 0 30 30","aria-hidden":"true",...a,children:(0,u.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"})})}function lt(){const{toggle:e,shown:t}=(0,L.e)();return(0,u.jsx)("button",{onClick:e,"aria-label":(0,l.I)({id:"theme.docs.sidebar.toggleSidebarButtonAriaLabel",message:"Toggle navigation bar",description:"The ARIA label for hamburger menu button of mobile navigation"}),"aria-expanded":t,className:"navbar__toggle clean-btn",type:"button",children:(0,u.jsx)(st,{})})}const ct={colorModeToggle:"colorModeToggle_DEke"};function ut(e){let{items:t}=e;return(0,u.jsx)(u.Fragment,{children:t.map(((e,t)=>(0,u.jsx)(ot,{onError:t=>new Error(`A theme navbar item failed to render.\nPlease double-check the following navbar item (themeConfig.navbar.items) of your Docusaurus config:\n${JSON.stringify(e,null,2)}`,{cause:t}),children:(0,u.jsx)(Ve,{...e})},t)))})}function dt(e){let{left:t,right:n}=e;return(0,u.jsxs)("div",{className:"navbar__inner",children:[(0,u.jsx)("div",{className:"navbar__items",children:t}),(0,u.jsx)("div",{className:"navbar__items navbar__items--right",children:n})]})}function pt(){const e=(0,L.e)(),t=(0,x.L)().navbar.items,[n,r]=function(e){function t(e){return"left"===(e.position??it)}return[e.filter(t),e.filter((e=>!t(e)))]}(t),a=t.find((e=>"search"===e.type));return(0,u.jsx)(dt,{left:(0,u.jsxs)(u.Fragment,{children:[!e.disabled&&(0,u.jsx)(lt,{}),(0,u.jsx)(W,{}),(0,u.jsx)(ut,{items:n})]}),right:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ut,{items:r}),(0,u.jsx)(Z,{className:ct.colorModeToggle}),!a&&(0,u.jsx)(Ue,{children:(0,u.jsx)($e,{})})]})})}function ft(){return(0,u.jsx)(et,{children:(0,u.jsx)(pt,{})})}function mt(e){let{item:t}=e;const{to:n,href:r,label:a,prependBaseUrlToHref:o,...i}=t,s=(0,X.Z)(n),l=(0,X.Z)(r,{forcePrependBaseUrl:!0});return(0,u.jsxs)(K.Z,{className:"footer__link-item",...r?{href:o?l:r}:{to:s},...i,children:[a,r&&!(0,J.Z)(r)&&(0,u.jsx)(te.Z,{})]})}function ht(e){let{item:t}=e;return t.html?(0,u.jsx)("li",{className:"footer__item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)("li",{className:"footer__item",children:(0,u.jsx)(mt,{item:t})},t.href??t.to)}function gt(e){let{column:t}=e;return(0,u.jsxs)("div",{className:"col footer__col",children:[(0,u.jsx)("div",{className:"footer__title",children:t.title}),(0,u.jsx)("ul",{className:"footer__items clean-list",children:t.items.map(((e,t)=>(0,u.jsx)(ht,{item:e},t)))})]})}function yt(e){let{columns:t}=e;return(0,u.jsx)("div",{className:"row footer__links",children:t.map(((e,t)=>(0,u.jsx)(gt,{column:e},t)))})}function bt(){return(0,u.jsx)("span",{className:"footer__link-separator",children:"\xb7"})}function vt(e){let{item:t}=e;return t.html?(0,u.jsx)("span",{className:"footer__link-item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)(mt,{item:t})}function xt(e){let{links:t}=e;return(0,u.jsx)("div",{className:"footer__links text--center",children:(0,u.jsx)("div",{className:"footer__links",children:t.map(((e,n)=>(0,u.jsxs)(r.Fragment,{children:[(0,u.jsx)(vt,{item:e}),t.length!==n+1&&(0,u.jsx)(bt,{})]},n)))})})}function wt(e){let{links:t}=e;return function(e){return"title"in e[0]}(t)?(0,u.jsx)(yt,{columns:t}):(0,u.jsx)(xt,{links:t})}var kt=n(9965);const St={footerLogoLink:"footerLogoLink_BH7S"};function Et(e){let{logo:t}=e;const{withBaseUrl:n}=(0,X.C)(),r={light:n(t.src),dark:n(t.srcDark??t.src)};return(0,u.jsx)(kt.Z,{className:(0,a.Z)("footer__logo",t.className),alt:t.alt,sources:r,width:t.width,height:t.height,style:t.style})}function _t(e){let{logo:t}=e;return t.href?(0,u.jsx)(K.Z,{href:t.href,className:St.footerLogoLink,target:t.target,children:(0,u.jsx)(Et,{logo:t})}):(0,u.jsx)(Et,{logo:t})}function Ct(e){let{copyright:t}=e;return(0,u.jsx)("div",{className:"footer__copyright",dangerouslySetInnerHTML:{__html:t}})}function Tt(e){let{style:t,links:n,logo:r,copyright:o}=e;return(0,u.jsx)("footer",{className:(0,a.Z)("footer",{"footer--dark":"dark"===t}),children:(0,u.jsxs)("div",{className:"container container-fluid",children:[n,(r||o)&&(0,u.jsxs)("div",{className:"footer__bottom text--center",children:[r&&(0,u.jsx)("div",{className:"margin-bottom--sm",children:r}),o]})]})})}function Rt(){const{footer:e}=(0,x.L)();if(!e)return null;const{copyright:t,links:n,logo:r,style:a}=e;return(0,u.jsx)(Tt,{style:a,links:n&&n.length>0&&(0,u.jsx)(wt,{links:n}),logo:r&&(0,u.jsx)(_t,{logo:r}),copyright:t&&(0,u.jsx)(Ct,{copyright:t})})}const Lt=r.memo(Rt),Nt=(0,P.Qc)([D.S,w.pl,N.OC,ve.L5,i.VC,function(e){let{children:t}=e;return(0,u.jsx)(A.n2,{children:(0,u.jsx)(L.M,{children:(0,u.jsx)(j,{children:t})})})}]);function Pt(e){let{children:t}=e;return(0,u.jsx)(Nt,{children:t})}var At=n(2503);function Ot(e){let{error:t,tryAgain:n}=e;return(0,u.jsx)("main",{className:"container margin-vert--xl",children:(0,u.jsx)("div",{className:"row",children:(0,u.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,u.jsx)(At.Z,{as:"h1",className:"hero__title",children:(0,u.jsx)(l.Z,{id:"theme.ErrorPageContent.title",description:"The title of the fallback page when the page crashed",children:"This page crashed."})}),(0,u.jsx)("div",{className:"margin-vert--lg",children:(0,u.jsx)(rt,{onClick:n,className:"button button--primary shadow--lw"})}),(0,u.jsx)("hr",{}),(0,u.jsx)("div",{className:"margin-vert--md",children:(0,u.jsx)(at,{error:t})})]})})})}const jt={mainWrapper:"mainWrapper_z2l0"};function It(e){const{children:t,noFooter:n,wrapperClassName:r,title:s,description:l}=e;return(0,y.t)(),(0,u.jsxs)(Pt,{children:[(0,u.jsx)(i.d,{title:s,description:l}),(0,u.jsx)(v,{}),(0,u.jsx)(R,{}),(0,u.jsx)(ft,{}),(0,u.jsx)("div",{id:d,className:(0,a.Z)(g.k.wrapper.main,jt.mainWrapper,r),children:(0,u.jsx)(o.Z,{fallback:e=>(0,u.jsx)(Ot,{...e}),children:t})}),!n&&(0,u.jsx)(Lt,{})]})}},1327:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(7294);var r=n(9960),a=n(4996),o=n(2263),i=n(6668),s=n(9965),l=n(5893);function c(e){let{logo:t,alt:n,imageClassName:r}=e;const o={light:(0,a.Z)(t.src),dark:(0,a.Z)(t.srcDark||t.src)},i=(0,l.jsx)(s.Z,{className:t.className,sources:o,height:t.height,width:t.width,alt:n,style:t.style});return r?(0,l.jsx)("div",{className:r,children:i}):i}function u(e){const{siteConfig:{title:t}}=(0,o.Z)(),{navbar:{title:n,logo:s}}=(0,i.L)(),{imageClassName:u,titleClassName:d,...p}=e,f=(0,a.Z)(s?.href||"/"),m=n?"":t,h=s?.alt??m;return(0,l.jsxs)(r.Z,{to:f,...p,...s?.target&&{target:s.target},children:[s&&(0,l.jsx)(c,{logo:s,alt:h,imageClassName:u}),null!=n&&(0,l.jsx)("b",{className:d,children:n})]})}},197:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(7294);var r=n(5742),a=n(5893);function o(e){let{locale:t,version:n,tag:o}=e;const i=t;return(0,a.jsxs)(r.Z,{children:[t&&(0,a.jsx)("meta",{name:"docusaurus_locale",content:t}),n&&(0,a.jsx)("meta",{name:"docusaurus_version",content:n}),o&&(0,a.jsx)("meta",{name:"docusaurus_tag",content:o}),i&&(0,a.jsx)("meta",{name:"docsearch:language",content:i}),n&&(0,a.jsx)("meta",{name:"docsearch:version",content:n}),o&&(0,a.jsx)("meta",{name:"docsearch:docusaurus_tag",content:o})]})}},9965:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(7294),a=n(512),o=n(2389),i=n(2949);const s={themedComponent:"themedComponent_mlkZ","themedComponent--light":"themedComponent--light_NVdE","themedComponent--dark":"themedComponent--dark_xIcU"};var l=n(5893);function c(e){let{className:t,children:n}=e;const c=(0,o.Z)(),{colorMode:u}=(0,i.I)();return(0,l.jsx)(l.Fragment,{children:(c?"dark"===u?["dark"]:["light"]:["light","dark"]).map((e=>{const o=n({theme:e,className:(0,a.Z)(t,s.themedComponent,s[`themedComponent--${e}`])});return(0,l.jsx)(r.Fragment,{children:o},e)}))})}function u(e){const{sources:t,className:n,alt:r,...a}=e;return(0,l.jsx)(c,{className:n,children:e=>{let{theme:n,className:o}=e;return(0,l.jsx)("img",{src:t[n],alt:r,className:o,...a})}})}},6043:(e,t,n)=>{"use strict";n.d(t,{u:()=>c,z:()=>y});var r=n(7294),a=n(412),o=n(469),i=n(1442),s=n(5893);const l="ease-in-out";function c(e){let{initialState:t}=e;const[n,a]=(0,r.useState)(t??!1),o=(0,r.useCallback)((()=>{a((e=>!e))}),[]);return{collapsed:n,setCollapsed:a,toggleCollapsed:o}}const u={display:"none",overflow:"hidden",height:"0px"},d={display:"block",overflow:"visible",height:"auto"};function p(e,t){const n=t?u:d;e.style.display=n.display,e.style.overflow=n.overflow,e.style.height=n.height}function f(e){let{collapsibleRef:t,collapsed:n,animation:a}=e;const o=(0,r.useRef)(!1);(0,r.useEffect)((()=>{const e=t.current;function r(){const t=e.scrollHeight,n=a?.duration??function(e){if((0,i.n)())return 1;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}(t);return{transition:`height ${n}ms ${a?.easing??l}`,height:`${t}px`}}function s(){const t=r();e.style.transition=t.transition,e.style.height=t.height}if(!o.current)return p(e,n),void(o.current=!0);return e.style.willChange="height",function(){const t=requestAnimationFrame((()=>{n?(s(),requestAnimationFrame((()=>{e.style.height=u.height,e.style.overflow=u.overflow}))):(e.style.display="block",requestAnimationFrame((()=>{s()})))}));return()=>cancelAnimationFrame(t)}()}),[t,n,a])}function m(e){if(!a.Z.canUseDOM)return e?u:d}function h(e){let{as:t="div",collapsed:n,children:a,animation:o,onCollapseTransitionEnd:i,className:l,disableSSRStyle:c}=e;const u=(0,r.useRef)(null);return f({collapsibleRef:u,collapsed:n,animation:o}),(0,s.jsx)(t,{ref:u,style:c?void 0:m(n),onTransitionEnd:e=>{"height"===e.propertyName&&(p(u.current,n),i?.(n))},className:l,children:a})}function g(e){let{collapsed:t,...n}=e;const[a,i]=(0,r.useState)(!t),[l,c]=(0,r.useState)(t);return(0,o.Z)((()=>{t||i(!0)}),[t]),(0,o.Z)((()=>{a&&c(t)}),[a,t]),a?(0,s.jsx)(h,{...n,collapsed:l}):null}function y(e){let{lazy:t,...n}=e;const r=t?g:h;return(0,s.jsx)(r,{...n})}},9689:(e,t,n)=>{"use strict";n.d(t,{nT:()=>h,pl:()=>m});var r=n(7294),a=n(2389),o=n(12),i=n(902),s=n(6668),l=n(5893);const c=(0,o.WA)("docusaurus.announcement.dismiss"),u=(0,o.WA)("docusaurus.announcement.id"),d=()=>"true"===c.get(),p=e=>c.set(String(e)),f=r.createContext(null);function m(e){let{children:t}=e;const n=function(){const{announcementBar:e}=(0,s.L)(),t=(0,a.Z)(),[n,o]=(0,r.useState)((()=>!!t&&d()));(0,r.useEffect)((()=>{o(d())}),[]);const i=(0,r.useCallback)((()=>{p(!0),o(!0)}),[]);return(0,r.useEffect)((()=>{if(!e)return;const{id:t}=e;let n=u.get();"annoucement-bar"===n&&(n="announcement-bar");const r=t!==n;u.set(t),r&&p(!1),!r&&d()||o(!1)}),[e]),(0,r.useMemo)((()=>({isActive:!!e&&!n,close:i})),[e,n,i])}();return(0,l.jsx)(f.Provider,{value:n,children:t})}function h(){const e=(0,r.useContext)(f);if(!e)throw new i.i6("AnnouncementBarProvider");return e}},2949:(e,t,n)=>{"use strict";n.d(t,{I:()=>y,S:()=>g});var r=n(7294),a=n(412),o=n(902),i=n(12),s=n(6668),l=n(5893);const c=r.createContext(void 0),u="theme",d=(0,i.WA)(u),p={light:"light",dark:"dark"},f=e=>e===p.dark?p.dark:p.light,m=e=>a.Z.canUseDOM?f(document.documentElement.getAttribute("data-theme")):f(e),h=e=>{d.set(f(e))};function g(e){let{children:t}=e;const n=function(){const{colorMode:{defaultMode:e,disableSwitch:t,respectPrefersColorScheme:n}}=(0,s.L)(),[a,o]=(0,r.useState)(m(e));(0,r.useEffect)((()=>{t&&d.del()}),[t]);const i=(0,r.useCallback)((function(t,r){void 0===r&&(r={});const{persist:a=!0}=r;t?(o(t),a&&h(t)):(o(n?window.matchMedia("(prefers-color-scheme: dark)").matches?p.dark:p.light:e),d.del())}),[n,e]);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-theme",f(a))}),[a]),(0,r.useEffect)((()=>{if(t)return;const e=e=>{if(e.key!==u)return;const t=d.get();null!==t&&i(f(t))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[t,i]);const l=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{if(t&&!n)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>{window.matchMedia("print").matches||l.current?l.current=window.matchMedia("print").matches:i(null)};return e.addListener(r),()=>e.removeListener(r)}),[i,t,n]),(0,r.useMemo)((()=>({colorMode:a,setColorMode:i,get isDarkTheme(){return a===p.dark},setLightTheme(){i(p.light)},setDarkTheme(){i(p.dark)}})),[a,i])}();return(0,l.jsx)(c.Provider,{value:n,children:t})}function y(){const e=(0,r.useContext)(c);if(null==e)throw new o.i6("ColorModeProvider","Please see https://docusaurus.io/docs/api/themes/configuration#use-color-mode.");return e}},373:(e,t,n)=>{"use strict";n.d(t,{J:()=>v,L5:()=>y});var r=n(7294),a=n(143),o=n(9935),i=n(6668),s=n(3438),l=n(902),c=n(12),u=n(5893);const d=e=>`docs-preferred-version-${e}`,p={save:(e,t,n)=>{(0,c.WA)(d(e),{persistence:t}).set(n)},read:(e,t)=>(0,c.WA)(d(e),{persistence:t}).get(),clear:(e,t)=>{(0,c.WA)(d(e),{persistence:t}).del()}},f=e=>Object.fromEntries(e.map((e=>[e,{preferredVersionName:null}])));const m=r.createContext(null);function h(){const e=(0,a._r)(),t=(0,i.L)().docs.versionPersistence,n=(0,r.useMemo)((()=>Object.keys(e)),[e]),[o,s]=(0,r.useState)((()=>f(n)));(0,r.useEffect)((()=>{s(function(e){let{pluginIds:t,versionPersistence:n,allDocsData:r}=e;function a(e){const t=p.read(e,n);return r[e].versions.some((e=>e.name===t))?{preferredVersionName:t}:(p.clear(e,n),{preferredVersionName:null})}return Object.fromEntries(t.map((e=>[e,a(e)])))}({allDocsData:e,versionPersistence:t,pluginIds:n}))}),[e,t,n]);return[o,(0,r.useMemo)((()=>({savePreferredVersion:function(e,n){p.save(e,t,n),s((t=>({...t,[e]:{preferredVersionName:n}})))}})),[t])]}function g(e){let{children:t}=e;const n=h();return(0,u.jsx)(m.Provider,{value:n,children:t})}function y(e){let{children:t}=e;return s.cE?(0,u.jsx)(g,{children:t}):(0,u.jsx)(u.Fragment,{children:t})}function b(){const e=(0,r.useContext)(m);if(!e)throw new l.i6("DocsPreferredVersionContextProvider");return e}function v(e){void 0===e&&(e=o.m);const t=(0,a.zh)(e),[n,i]=b(),{preferredVersionName:s}=n[e];return{preferredVersion:t.versions.find((e=>e.name===s))??null,savePreferredVersionName:(0,r.useCallback)((t=>{i.savePreferredVersion(e,t)}),[i,e])}}},1116:(e,t,n)=>{"use strict";n.d(t,{V:()=>c,b:()=>l});var r=n(7294),a=n(902),o=n(5893);const i=Symbol("EmptyContext"),s=r.createContext(i);function l(e){let{children:t,name:n,items:a}=e;const i=(0,r.useMemo)((()=>n&&a?{name:n,items:a}:null),[n,a]);return(0,o.jsx)(s.Provider,{value:i,children:t})}function c(){const e=(0,r.useContext)(s);if(e===i)throw new a.i6("DocsSidebarProvider");return e}},4477:(e,t,n)=>{"use strict";n.d(t,{E:()=>l,q:()=>s});var r=n(7294),a=n(902),o=n(5893);const i=r.createContext(null);function s(e){let{children:t,version:n}=e;return(0,o.jsx)(i.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(i);if(null===e)throw new a.i6("DocsVersionProvider");return e}},3163:(e,t,n)=>{"use strict";n.d(t,{M:()=>p,e:()=>f});var r=n(7294),a=n(3102),o=n(7524),i=n(1980),s=n(6668),l=n(902),c=n(5893);const u=r.createContext(void 0);function d(){const e=function(){const e=(0,a.HY)(),{items:t}=(0,s.L)().navbar;return 0===t.length&&!e.component}(),t=(0,o.i)(),n=!e&&"mobile"===t,[l,c]=(0,r.useState)(!1);(0,i.Rb)((()=>{if(l)return c(!1),!1}));const u=(0,r.useCallback)((()=>{c((e=>!e))}),[]);return(0,r.useEffect)((()=>{"desktop"===t&&c(!1)}),[t]),(0,r.useMemo)((()=>({disabled:e,shouldRender:n,toggle:u,shown:l})),[e,n,u,l])}function p(e){let{children:t}=e;const n=d();return(0,c.jsx)(u.Provider,{value:n,children:t})}function f(){const e=r.useContext(u);if(void 0===e)throw new l.i6("NavbarMobileSidebarProvider");return e}},3102:(e,t,n)=>{"use strict";n.d(t,{HY:()=>l,Zo:()=>c,n2:()=>s});var r=n(7294),a=n(902),o=n(5893);const i=r.createContext(null);function s(e){let{children:t}=e;const n=(0,r.useState)({component:null,props:null});return(0,o.jsx)(i.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(i);if(!e)throw new a.i6("NavbarSecondaryMenuContentProvider");return e[0]}function c(e){let{component:t,props:n}=e;const o=(0,r.useContext)(i);if(!o)throw new a.i6("NavbarSecondaryMenuContentProvider");const[,s]=o,l=(0,a.Ql)(n);return(0,r.useEffect)((()=>{s({component:t,props:l})}),[s,t,l]),(0,r.useEffect)((()=>()=>s({component:null,props:null})),[s]),null}},9727:(e,t,n)=>{"use strict";n.d(t,{h:()=>a,t:()=>o});var r=n(7294);const a="navigation-with-keyboard";function o(){(0,r.useEffect)((()=>{function e(e){"keydown"===e.type&&"Tab"===e.key&&document.body.classList.add(a),"mousedown"===e.type&&document.body.classList.remove(a)}return document.addEventListener("keydown",e),document.addEventListener("mousedown",e),()=>{document.body.classList.remove(a),document.removeEventListener("keydown",e),document.removeEventListener("mousedown",e)}}),[])}},7524:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r=n(7294),a=n(412);const o={desktop:"desktop",mobile:"mobile",ssr:"ssr"},i=996;function s(){const[e,t]=(0,r.useState)((()=>"ssr"));return(0,r.useEffect)((()=>{function e(){t(function(){if(!a.Z.canUseDOM)throw new Error("getWindowSize() should only be called after React hydration");return window.innerWidth>i?o.desktop:o.mobile}())}return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),e}},5281:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});const r={page:{blogListPage:"blog-list-page",blogPostPage:"blog-post-page",blogTagsListPage:"blog-tags-list-page",blogTagPostListPage:"blog-tags-post-list-page",docsDocPage:"docs-doc-page",docsTagsListPage:"docs-tags-list-page",docsTagDocListPage:"docs-tags-doc-list-page",mdxPage:"mdx-page"},wrapper:{main:"main-wrapper",blogPages:"blog-wrapper",docsPages:"docs-wrapper",mdxPages:"mdx-wrapper"},common:{editThisPage:"theme-edit-this-page",lastUpdated:"theme-last-updated",backToTopButton:"theme-back-to-top-button",codeBlock:"theme-code-block",admonition:"theme-admonition",unlistedBanner:"theme-unlisted-banner",admonitionType:e=>`theme-admonition-${e}`},layout:{},docs:{docVersionBanner:"theme-doc-version-banner",docVersionBadge:"theme-doc-version-badge",docBreadcrumbs:"theme-doc-breadcrumbs",docMarkdown:"theme-doc-markdown",docTocMobile:"theme-doc-toc-mobile",docTocDesktop:"theme-doc-toc-desktop",docFooter:"theme-doc-footer",docFooterTagsRow:"theme-doc-footer-tags-row",docFooterEditMetaRow:"theme-doc-footer-edit-meta-row",docSidebarContainer:"theme-doc-sidebar-container",docSidebarMenu:"theme-doc-sidebar-menu",docSidebarItemCategory:"theme-doc-sidebar-item-category",docSidebarItemLink:"theme-doc-sidebar-item-link",docSidebarItemCategoryLevel:e=>`theme-doc-sidebar-item-category-level-${e}`,docSidebarItemLinkLevel:e=>`theme-doc-sidebar-item-link-level-${e}`},blog:{}}},1442:(e,t,n)=>{"use strict";function r(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}n.d(t,{n:()=>r})},3438:(e,t,n)=>{"use strict";n.d(t,{LM:()=>m,MN:()=>T,SN:()=>C,_F:()=>b,cE:()=>p,f:()=>x,jA:()=>h,lO:()=>S,oz:()=>E,s1:()=>k,vY:()=>_,xz:()=>f});var r=n(7294),a=n(6550),o=n(8790),i=n(143),s=n(373),l=n(4477),c=n(1116),u=n(7392),d=n(8596);const p=!!i._r;function f(e){const t=(0,l.E)();if(!e)return;const n=t.docs[e];if(!n)throw new Error(`no version doc found by id=${e}`);return n}function m(e){return"link"!==e.type||e.unlisted?"category"===e.type?function(e){if(e.href&&!e.linkUnlisted)return e.href;for(const t of e.items){const e=m(t);if(e)return e}}(e):void 0:e.href}function h(){const{pathname:e}=(0,a.TH)(),t=(0,c.V)();if(!t)throw new Error("Unexpected: cant find current sidebar in context");const n=w({sidebarItems:t.items,pathname:e,onlyCategories:!0}).slice(-1)[0];if(!n)throw new Error(`${e} is not associated with a category. useCurrentSidebarCategory() should only be used on category index pages.`);return n}const g=(e,t)=>void 0!==e&&(0,d.Mg)(e,t),y=(e,t)=>e.some((e=>b(e,t)));function b(e,t){return"link"===e.type?g(e.href,t):"category"===e.type&&(g(e.href,t)||y(e.items,t))}function v(e,t){switch(e.type){case"category":return b(e,t)||e.items.some((e=>v(e,t)));case"link":return!e.unlisted||b(e,t);default:return!0}}function x(e,t){return(0,r.useMemo)((()=>e.filter((e=>v(e,t)))),[e,t])}function w(e){let{sidebarItems:t,pathname:n,onlyCategories:r=!1}=e;const a=[];return function e(t){for(const o of t)if("category"===o.type&&((0,d.Mg)(o.href,n)||e(o.items))||"link"===o.type&&(0,d.Mg)(o.href,n)){return r&&"category"!==o.type||a.unshift(o),!0}return!1}(t),a}function k(){const e=(0,c.V)(),{pathname:t}=(0,a.TH)(),n=(0,i.gA)()?.pluginData.breadcrumbs;return!1!==n&&e?w({sidebarItems:e.items,pathname:t}):null}function S(e){const{activeVersion:t}=(0,i.Iw)(e),{preferredVersion:n}=(0,s.J)(e),a=(0,i.yW)(e);return(0,r.useMemo)((()=>(0,u.j)([t,n,a].filter(Boolean))),[t,n,a])}function E(e,t){const n=S(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.sidebars?Object.entries(e.sidebars):[])),r=t.find((t=>t[0]===e));if(!r)throw new Error(`Can't find any sidebar with id "${e}" in version${n.length>1?"s":""} ${n.map((e=>e.name)).join(", ")}".\nAvailable sidebar ids are:\n- ${t.map((e=>e[0])).join("\n- ")}`);return r[1]}),[e,n])}function _(e,t){const n=S(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.docs)),r=t.find((t=>t.id===e));if(!r){if(n.flatMap((e=>e.draftIds)).includes(e))return null;throw new Error(`Couldn't find any doc with id "${e}" in version${n.length>1?"s":""} "${n.map((e=>e.name)).join(", ")}".\nAvailable doc ids are:\n- ${(0,u.j)(t.map((e=>e.id))).join("\n- ")}`)}return r}),[e,n])}function C(e){let{route:t}=e;const n=(0,a.TH)(),r=(0,l.E)(),i=t.routes,s=i.find((e=>(0,a.LX)(n.pathname,e)));if(!s)return null;const c=s.sidebar,u=c?r.docsSidebars[c]:void 0;return{docElement:(0,o.H)(i),sidebarName:c,sidebarItems:u}}function T(e){return e.filter((e=>!("category"===e.type||"link"===e.type)||!!m(e)))}},1980:(e,t,n)=>{"use strict";n.d(t,{Rb:()=>i,_X:()=>s});var r=n(7294),a=n(6550),o=n(902);function i(e){!function(e){const t=(0,a.k6)(),n=(0,o.zX)(e);(0,r.useEffect)((()=>t.block(((e,t)=>n(e,t)))),[t,n])}(((t,n)=>{if("POP"===n)return e(t,n)}))}function s(e){return function(e){const t=(0,a.k6)();return(0,r.useSyncExternalStore)(t.listen,(()=>e(t)),(()=>e(t)))}((t=>null===e?null:new URLSearchParams(t.location.search).get(e)))}},7392:(e,t,n)=>{"use strict";function r(e,t){return void 0===t&&(t=(e,t)=>e===t),e.filter(((n,r)=>e.findIndex((e=>t(e,n)))!==r))}function a(e){return Array.from(new Set(e))}n.d(t,{j:()=>a,l:()=>r})},1944:(e,t,n)=>{"use strict";n.d(t,{FG:()=>f,d:()=>d,VC:()=>m});var r=n(7294),a=n(512),o=n(5742),i=n(226);function s(){const e=r.useContext(i._);if(!e)throw new Error("Unexpected: no Docusaurus route context found");return e}var l=n(4996),c=n(2263);var u=n(5893);function d(e){let{title:t,description:n,keywords:r,image:a,children:i}=e;const s=function(e){const{siteConfig:t}=(0,c.Z)(),{title:n,titleDelimiter:r}=t;return e?.trim().length?`${e.trim()} ${r} ${n}`:n}(t),{withBaseUrl:d}=(0,l.C)(),p=a?d(a,{absolute:!0}):void 0;return(0,u.jsxs)(o.Z,{children:[t&&(0,u.jsx)("title",{children:s}),t&&(0,u.jsx)("meta",{property:"og:title",content:s}),n&&(0,u.jsx)("meta",{name:"description",content:n}),n&&(0,u.jsx)("meta",{property:"og:description",content:n}),r&&(0,u.jsx)("meta",{name:"keywords",content:Array.isArray(r)?r.join(","):r}),p&&(0,u.jsx)("meta",{property:"og:image",content:p}),p&&(0,u.jsx)("meta",{name:"twitter:image",content:p}),i]})}const p=r.createContext(void 0);function f(e){let{className:t,children:n}=e;const i=r.useContext(p),s=(0,a.Z)(i,t);return(0,u.jsxs)(p.Provider,{value:s,children:[(0,u.jsx)(o.Z,{children:(0,u.jsx)("html",{className:s})}),n]})}function m(e){let{children:t}=e;const n=s(),r=`plugin-${n.plugin.name.replace(/docusaurus-(?:plugin|theme)-(?:content-)?/gi,"")}`;const o=`plugin-id-${n.plugin.id}`;return(0,u.jsx)(f,{className:(0,a.Z)(r,o),children:t})}},902:(e,t,n)=>{"use strict";n.d(t,{D9:()=>s,Qc:()=>u,Ql:()=>c,i6:()=>l,zX:()=>i});var r=n(7294),a=n(469),o=n(5893);function i(e){const t=(0,r.useRef)(e);return(0,a.Z)((()=>{t.current=e}),[e]),(0,r.useCallback)((function(){return t.current(...arguments)}),[])}function s(e){const t=(0,r.useRef)();return(0,a.Z)((()=>{t.current=e})),t.current}class l extends Error{constructor(e,t){super(),this.name="ReactContextError",this.message=`Hook ${this.stack?.split("\n")[1]?.match(/at (?:\w+\.)?(?<name>\w+)/)?.groups.name??""} is called outside the <${e}>. ${t??""}`}}function c(e){const t=Object.entries(e);return t.sort(((e,t)=>e[0].localeCompare(t[0]))),(0,r.useMemo)((()=>e),t.flat())}function u(e){return t=>{let{children:n}=t;return(0,o.jsx)(o.Fragment,{children:e.reduceRight(((e,t)=>(0,o.jsx)(t,{children:e})),n)})}}},8596:(e,t,n)=>{"use strict";n.d(t,{Mg:()=>i,Ns:()=>s});var r=n(7294),a=n(723),o=n(2263);function i(e,t){const n=e=>(!e||e.endsWith("/")?e:`${e}/`)?.toLowerCase();return n(e)===n(t)}function s(){const{baseUrl:e}=(0,o.Z)().siteConfig;return(0,r.useMemo)((()=>function(e){let{baseUrl:t,routes:n}=e;function r(e){return e.path===t&&!0===e.exact}function a(e){return e.path===t&&!e.exact}return function e(t){if(0===t.length)return;return t.find(r)||e(t.filter(a).flatMap((e=>e.routes??[])))}(n)}({routes:a.Z,baseUrl:e})),[e])}},2466:(e,t,n)=>{"use strict";n.d(t,{Ct:()=>h,OC:()=>u,RF:()=>f,o5:()=>m});var r=n(7294),a=n(412),o=n(2389),i=n(469),s=n(902),l=n(5893);const c=r.createContext(void 0);function u(e){let{children:t}=e;const n=function(){const e=(0,r.useRef)(!0);return(0,r.useMemo)((()=>({scrollEventsEnabledRef:e,enableScrollEvents:()=>{e.current=!0},disableScrollEvents:()=>{e.current=!1}})),[])}();return(0,l.jsx)(c.Provider,{value:n,children:t})}function d(){const e=(0,r.useContext)(c);if(null==e)throw new s.i6("ScrollControllerProvider");return e}const p=()=>a.Z.canUseDOM?{scrollX:window.pageXOffset,scrollY:window.pageYOffset}:null;function f(e,t){void 0===t&&(t=[]);const{scrollEventsEnabledRef:n}=d(),a=(0,r.useRef)(p()),o=(0,s.zX)(e);(0,r.useEffect)((()=>{const e=()=>{if(!n.current)return;const e=p();o(e,a.current),a.current=e},t={passive:!0};return e(),window.addEventListener("scroll",e,t),()=>window.removeEventListener("scroll",e,t)}),[o,n,...t])}function m(){const e=d(),t=function(){const e=(0,r.useRef)({elem:null,top:0}),t=(0,r.useCallback)((t=>{e.current={elem:t,top:t.getBoundingClientRect().top}}),[]),n=(0,r.useCallback)((()=>{const{current:{elem:t,top:n}}=e;if(!t)return{restored:!1};const r=t.getBoundingClientRect().top-n;return r&&window.scrollBy({left:0,top:r}),e.current={elem:null,top:0},{restored:0!==r}}),[]);return(0,r.useMemo)((()=>({save:t,restore:n})),[n,t])}(),n=(0,r.useRef)(void 0),a=(0,r.useCallback)((r=>{t.save(r),e.disableScrollEvents(),n.current=()=>{const{restored:r}=t.restore();if(n.current=void 0,r){const t=()=>{e.enableScrollEvents(),window.removeEventListener("scroll",t)};window.addEventListener("scroll",t)}else e.enableScrollEvents()}}),[e,t]);return(0,i.Z)((()=>{queueMicrotask((()=>n.current?.()))})),{blockElementScrollPositionUntilNextRender:a}}function h(){const e=(0,r.useRef)(null),t=(0,o.Z)()&&"smooth"===getComputedStyle(document.documentElement).scrollBehavior;return{startScroll:n=>{e.current=t?function(e){return window.scrollTo({top:e,behavior:"smooth"}),()=>{}}(n):function(e){let t=null;const n=document.documentElement.scrollTop>e;return function r(){const a=document.documentElement.scrollTop;(n&&a>e||!n&&a<e)&&(t=requestAnimationFrame(r),window.scrollTo(0,Math.floor(.85*(a-e))+e))}(),()=>t&&cancelAnimationFrame(t)}(n)},cancelScroll:()=>e.current?.()}}},3320:(e,t,n)=>{"use strict";n.d(t,{HX:()=>r,os:()=>a});n(2263);const r="default";function a(e,t){return`docs-${e}-${t}`}},12:(e,t,n)=>{"use strict";n.d(t,{Nk:()=>u,WA:()=>c});var r=n(7294);const a="localStorage";function o(e){let{key:t,oldValue:n,newValue:r,storage:a}=e;if(n===r)return;const o=document.createEvent("StorageEvent");o.initStorageEvent("storage",!1,!1,t,n,r,window.location.href,a),window.dispatchEvent(o)}function i(e){if(void 0===e&&(e=a),"undefined"==typeof window)throw new Error("Browser storage is not available on Node.js/Docusaurus SSR process.");if("none"===e)return null;try{return window[e]}catch(n){return t=n,s||(console.warn("Docusaurus browser storage is not available.\nPossible reasons: running Docusaurus in an iframe, in an incognito browser session, or using too strict browser privacy settings.",t),s=!0),null}var t}let s=!1;const l={get:()=>null,set:()=>{},del:()=>{},listen:()=>()=>{}};function c(e,t){if("undefined"==typeof window)return function(e){function t(){throw new Error(`Illegal storage API usage for storage key "${e}".\nDocusaurus storage APIs are not supposed to be called on the server-rendering process.\nPlease only call storage APIs in effects and event handlers.`)}return{get:t,set:t,del:t,listen:t}}(e);const n=i(t?.persistence);return null===n?l:{get:()=>{try{return n.getItem(e)}catch(t){return console.error(`Docusaurus storage error, can't get key=${e}`,t),null}},set:t=>{try{const r=n.getItem(e);n.setItem(e,t),o({key:e,oldValue:r,newValue:t,storage:n})}catch(r){console.error(`Docusaurus storage error, can't set ${e}=${t}`,r)}},del:()=>{try{const t=n.getItem(e);n.removeItem(e),o({key:e,oldValue:t,newValue:null,storage:n})}catch(t){console.error(`Docusaurus storage error, can't delete key=${e}`,t)}},listen:t=>{try{const r=r=>{r.storageArea===n&&r.key===e&&t(r)};return window.addEventListener("storage",r),()=>window.removeEventListener("storage",r)}catch(r){return console.error(`Docusaurus storage error, can't listen for changes of key=${e}`,r),()=>{}}}}}function u(e,t){const n=(0,r.useRef)((()=>null===e?l:c(e,t))).current(),a=(0,r.useCallback)((e=>"undefined"==typeof window?()=>{}:n.listen(e)),[n]);return[(0,r.useSyncExternalStore)(a,(()=>"undefined"==typeof window?null:n.get()),(()=>null)),n]}},4711:(e,t,n)=>{"use strict";n.d(t,{l:()=>i});var r=n(2263),a=n(6550),o=n(8780);function i(){const{siteConfig:{baseUrl:e,url:t,trailingSlash:n},i18n:{defaultLocale:i,currentLocale:s}}=(0,r.Z)(),{pathname:l}=(0,a.TH)(),c=(0,o.applyTrailingSlash)(l,{trailingSlash:n,baseUrl:e}),u=s===i?e:e.replace(`/${s}/`,"/"),d=c.replace(e,"");return{createUrl:function(e){let{locale:n,fullyQualified:r}=e;return`${r?t:""}${function(e){return e===i?`${u}`:`${u}${e}/`}(n)}${d}`}}}},5936:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(7294),a=n(6550),o=n(902);function i(e){const t=(0,a.TH)(),n=(0,o.D9)(t),i=(0,o.zX)(e);(0,r.useEffect)((()=>{n&&t!==n&&i({location:t,previousLocation:n})}),[i,t,n])}},6668:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(2263);function a(){return(0,r.Z)().siteConfig.themeConfig}},8802:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const{trailingSlash:n,baseUrl:r}=t;if(e.startsWith("#"))return e;if(void 0===n)return e;const[a]=e.split(/[#?]/),o="/"===a||a===r?a:(i=a,n?function(e){return e.endsWith("/")?e:`${e}/`}(i):function(e){return e.endsWith("/")?e.slice(0,-1):e}(i));var i;return e.replace(a,o)}},4143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=void 0,t.getErrorCausalChain=function e(t){return t.cause?[t,...e(t.cause)]:[t]}},8780:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=t.applyTrailingSlash=t.blogPostContainerID=void 0,t.blogPostContainerID="__blog-post-container";var a=n(8802);Object.defineProperty(t,"applyTrailingSlash",{enumerable:!0,get:function(){return r(a).default}});var o=n(4143);Object.defineProperty(t,"getErrorCausalChain",{enumerable:!0,get:function(){return o.getErrorCausalChain}})},311:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});n(7294);var r=n(1728);const a={loadingRing:"loadingRing_RJI3","loading-ring":"loading-ring_FB5o"};var o=n(5893);function i(e){let{className:t}=e;return(0,o.jsxs)("div",{className:(0,r.Z)(a.loadingRing,t),children:[(0,o.jsx)("div",{}),(0,o.jsx)("div",{}),(0,o.jsx)("div",{}),(0,o.jsx)("div",{})]})}},22:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});var r=n(1336),a=n.n(r),o=n(8087);const i=new Map;function s(e,t){const n=`${e}${t}`;let r=i.get(n);return r||(r=async function(e,t){{const n=`${e}${o.J.replace("{dir}",t?`-${t.replace(/\//g,"-")}`:"")}`;if(new URL(n,location.origin).origin!==location.origin)throw new Error("Unexpected version url");const r=await(await fetch(n)).json(),i=r.map(((e,t)=>{let{documents:n,index:r}=e;return{type:t,documents:n,index:a().Index.load(r)}})),s=r.reduce(((e,t)=>{for(const n of t.index.invertedIndex)/\p{Unified_Ideograph}/u.test(n[0][0])&&e.add(n[0]);return e}),new Set);return{wrappedIndexes:i,zhDictionary:Array.from(s)}}return{wrappedIndexes:[],zhDictionary:[]}}(e,t),i.set(n,r)),r}},8202:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var r=n(1336),a=n.n(r);var o=n(8087);function i(e){return s(e).concat(s(e.filter((e=>{const t=e[e.length-1];return!t.trailing&&t.maybeTyping})),!0))}function s(e,t){return e.map((e=>({tokens:e.map((e=>e.value)),term:e.map((e=>({value:e.value,presence:a().Query.presence.REQUIRED,wildcard:(t?e.trailing||e.maybeTyping:e.trailing)?a().Query.wildcard.TRAILING:a().Query.wildcard.NONE})))})))}function l(e,t,n){return function(r,s){const l=function(e,t){if(1===t.length&&["ja","jp","th"].includes(t[0]))return a()[t[0]].tokenizer(e).map((e=>e.toString()));let n=/[^-\s]+/g;return t.includes("zh")&&(n=/\w+|\p{Unified_Ideograph}+/gu),e.toLowerCase().match(n)||[]}(r,o.dK);if(0===l.length)return void s([]);const c=function(e,t){const n=function(e,t){const n=[];return function e(r,a){if(0===r.length)return void n.push(a);const o=r[0];if(/\p{Unified_Ideograph}/u.test(o)){const n=function(e,t){const n=[];return function e(r,a){let o=0,i=!1;for(const s of t)if(r.substr(0,s.length)===s){const t={missed:a.missed,term:a.term.concat({value:s})};r.length>s.length?e(r.substr(s.length),t):n.push(t),i=!0}else for(let t=s.length-1;t>o;t-=1){const l=s.substr(0,t);if(r.substr(0,t)===l){o=t;const s={missed:a.missed,term:a.term.concat({value:l,trailing:!0})};r.length>t?e(r.substr(t),s):n.push(s),i=!0;break}}i||(r.length>0?e(r.substr(1),{missed:a.missed+1,term:a.term}):a.term.length>0&&n.push(a))}(e,{missed:0,term:[]}),n.sort(((e,t)=>{const n=e.missed>0?1:0,r=t.missed>0?1:0;return n!==r?n-r:e.term.length-t.term.length})).map((e=>e.term))}(o,t);for(const t of n){const n=a.concat(...t);e(r.slice(1),n)}}else{const t=a.concat({value:o});e(r.slice(1),t)}}(e,[]),n}(e,t);if(0===n.length)return[{tokens:e,term:e.map((e=>({value:e,presence:a().Query.presence.REQUIRED,wildcard:a().Query.wildcard.LEADING|a().Query.wildcard.TRAILING})))}];for(const a of n)a[a.length-1].maybeTyping=!0;const r=[];for(const i of o.dK)if("en"===i)o._k||r.unshift(a().stopWordFilter);else{const e=a()[i];e.stopWordFilter&&r.unshift(e.stopWordFilter)}let s;if(r.length>0){const e=e=>r.reduce(((e,t)=>e.filter((e=>t(e.value)))),e);s=[];const t=[];for(const r of n){const n=e(r);s.push(n),n.length<r.length&&n.length>0&&t.push(n)}n.push(...t)}else s=n.slice();const l=[];for(const a of s)if(a.length>2)for(let e=a.length-1;e>=0;e-=1)l.push(a.slice(0,e).concat(a.slice(e+1)));return i(n).concat(i(l))}(l,t),u=[];e:for(const{term:t,tokens:a}of c)for(const{documents:r,index:o,type:i}of e)if(u.push(...o.query((e=>{for(const n of t)e.term(n.value,{wildcard:n.wildcard,presence:n.presence})})).slice(0,n).filter((e=>!u.some((t=>t.document.i.toString()===e.ref)))).slice(0,n-u.length).map((t=>{const n=r.find((e=>e.i.toString()===t.ref));return{document:n,type:i,page:0!==i&&e[0].documents.find((e=>e.i===n.p)),metadata:t.matchData.metadata,tokens:a,score:t.score}}))),u.length>=n)break e;!function(e){e.forEach(((e,t)=>{e.index=t})),e.sort(((t,n)=>{let r=t.type>0&&t.page?e.findIndex((e=>e.document===t.page)):t.index,a=n.type>0&&n.page?e.findIndex((e=>e.document===n.page)):n.index;return-1===r&&(r=t.index),-1===a&&(a=n.index),r===a?0===t.type?-1:0===n.type?1:t.index-n.index:r-a}))}(u),function(e){e.forEach(((t,n)=>{n>0&&t.page&&e.some((e=>e.document===t.page))&&(n<e.length-1&&e[n+1].page===t.page?t.isInterOfTree=!0:t.isLastOfTree=!0)}))}(u),s(u)}}},3926:(e,t,n)=>{"use strict";function r(e){return e.join(" \u203a ")}n.d(t,{e:()=>r})},1690:(e,t,n)=>{"use strict";function r(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}n.d(t,{X:()=>r})},1073:(e,t,n)=>{"use strict";function r(e,t){const n=[];for(const r of Object.values(e))r[t]&&n.push(...r[t].position);return n.sort(((e,t)=>e[0]-t[0]||t[1]-e[1]))}n.d(t,{m:()=>r})},2539:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var r=n(1690);function a(e,t,n){const o=[];for(const i of t){const n=e.toLowerCase().indexOf(i);if(n>=0){n>0&&o.push(a(e.substr(0,n),t)),o.push(`<mark>${(0,r.X)(e.substr(n,i.length))}</mark>`);const s=n+i.length;s<e.length&&o.push(a(e.substr(s),t));break}}return 0===o.length?n?`<mark>${(0,r.X)(e)}</mark>`:(0,r.X)(e):o.join("")}},726:(e,t,n)=>{"use strict";n.d(t,{o:()=>l});var r=n(1690),a=n(2539);const o=/\w+|\p{Unified_Ideograph}/u;function i(e){const t=[];let n=0,r=e;for(;r.length>0;){const a=r.match(o);if(!a){t.push(r);break}a.index>0&&t.push(r.substring(0,a.index)),t.push(a[0]),n+=a.index+a[0].length,r=e.substring(n)}return t}var s=n(8087);function l(e,t,n,o){void 0===o&&(o=s.Hk);const{chunkIndex:l,chunks:c}=function(e,t,n){const o=[];let s=0,l=0,c=-1;for(;s<t.length;){const[u,d]=t[s];if(s+=1,!(u<l)){if(u>l){const t=i(e.substring(l,u)).map((e=>({html:(0,r.X)(e),textLength:e.length})));for(const e of t)o.push(e)}-1===c&&(c=o.length),l=u+d,o.push({html:(0,a.C)(e.substring(u,l),n,!0),textLength:d})}}if(l<e.length){const t=i(e.substring(l)).map((e=>({html:(0,r.X)(e),textLength:e.length})));for(const e of t)o.push(e)}return{chunkIndex:c,chunks:o}}(e,t,n),u=c.slice(0,l),d=c[l],p=[d.html],f=c.slice(l+1);let m=d.textLength,h=0,g=0,y=!1,b=!1;for(;m<o;)if((h<=g||0===f.length)&&u.length>0){const e=u.pop();m+e.textLength<=o?(p.unshift(e.html),h+=e.textLength,m+=e.textLength):(y=!0,u.length=0)}else{if(!(f.length>0))break;{const e=f.shift();m+e.textLength<=o?(p.push(e.html),g+=e.textLength,m+=e.textLength):(b=!0,f.length=0)}}return(y||u.length>0)&&p.unshift("\u2026"),(b||f.length>0)&&p.push("\u2026"),p.join("")}},51:(e,t,n)=>{"use strict";function r(e,t){if("string"==typeof e)return{label:e,path:e};{const{label:n,path:r}=e;return"string"==typeof n?{label:n,path:r}:Object.prototype.hasOwnProperty.call(n,t)?{label:n[t],path:r}:{label:r,path:r}}}n.d(t,{_:()=>r})},8087:(e,t,n)=>{"use strict";n.d(t,{vc:()=>o,gQ:()=>f,H6:()=>c,hG:()=>g,l9:()=>m,dK:()=>r,_k:()=>a,pu:()=>p,AY:()=>u,t_:()=>d,Kc:()=>h,J:()=>i,Hk:()=>l,qo:()=>s,pQ:()=>y});n(1336);const r=["en"],a=!1,o=null,i="search-index{dir}.json",s=8,l=50,c=!1,u=!0,d=!0,p="right",f=void 0,m=!0,h=null,g=!1,y=!1},2358:(e,t,n)=>{"use strict";n.d(t,{lX:()=>S,q_:()=>L,ob:()=>h,PP:()=>P,Ep:()=>m,Hp:()=>g});var r=n(7462);function a(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,a=e.length;r<a;n+=1,r+=1)e[n]=e[r];e.pop()}const i=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],s=e&&a(e),l=t&&a(t),c=s||l;if(e&&a(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var u=i[i.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,p=i.length;p>=0;p--){var f=i[p];"."===f?o(i,p):".."===f?(o(i,p),d++):d&&(o(i,p),d--)}if(!c)for(;d--;d)i.unshift("..");!c||""===i[0]||i[0]&&a(i[0])||i.unshift("");var m=i.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=s(t),a=s(n);return r!==t||a!==n?e(r,a):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var c=n(8776);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function m(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a}function h(e,t,n,a){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),a?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=i(o.pathname,a.pathname)):o.pathname=a.pathname:o.pathname||(o.pathname="/"),o}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function y(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,a){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,a):a(!0):a(!1!==o)}else a(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var b=!("undefined"==typeof window||!window.document||!window.document.createElement);function v(e,t){t(window.confirm(e))}var x="popstate",w="hashchange";function k(){try{return window.history.state||{}}catch(e){return{}}}function S(e){void 0===e&&(e={}),b||(0,c.Z)(!1);var t,n=window.history,a=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,s=i.forceRefresh,l=void 0!==s&&s,d=i.getUserConfirmation,g=void 0===d?v:d,S=i.keyLength,E=void 0===S?6:S,_=e.basename?f(u(e.basename)):"";function C(e){var t=e||{},n=t.key,r=t.state,a=window.location,o=a.pathname+a.search+a.hash;return _&&(o=p(o,_)),h(o,r,n)}function T(){return Math.random().toString(36).substr(2,E)}var R=y();function L(e){(0,r.Z)($,e),$.length=n.length,R.notifyListeners($.location,$.action)}function N(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||O(C(e.state))}function P(){O(C(k()))}var A=!1;function O(e){if(A)A=!1,L();else{R.confirmTransitionTo(e,"POP",g,(function(t){t?L({action:"POP",location:e}):function(e){var t=$.location,n=I.indexOf(t.key);-1===n&&(n=0);var r=I.indexOf(e.key);-1===r&&(r=0);var a=n-r;a&&(A=!0,F(a))}(e)}))}}var j=C(k()),I=[j.key];function B(e){return _+m(e)}function F(e){n.go(e)}var D=0;function M(e){1===(D+=e)&&1===e?(window.addEventListener(x,N),o&&window.addEventListener(w,P)):0===D&&(window.removeEventListener(x,N),o&&window.removeEventListener(w,P))}var z=!1;var $={length:n.length,action:"POP",location:j,createHref:B,push:function(e,t){var r="PUSH",o=h(e,t,T(),$.location);R.confirmTransitionTo(o,r,g,(function(e){if(e){var t=B(o),i=o.key,s=o.state;if(a)if(n.pushState({key:i,state:s},null,t),l)window.location.href=t;else{var c=I.indexOf($.location.key),u=I.slice(0,c+1);u.push(o.key),I=u,L({action:r,location:o})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",o=h(e,t,T(),$.location);R.confirmTransitionTo(o,r,g,(function(e){if(e){var t=B(o),i=o.key,s=o.state;if(a)if(n.replaceState({key:i,state:s},null,t),l)window.location.replace(t);else{var c=I.indexOf($.location.key);-1!==c&&(I[c]=o.key),L({action:r,location:o})}else window.location.replace(t)}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=R.setPrompt(e);return z||(M(1),z=!0),function(){return z&&(z=!1,M(-1)),t()}},listen:function(e){var t=R.appendListener(e);return M(1),function(){M(-1),t()}}};return $}var E="hashchange",_={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function C(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function T(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function R(e){window.location.replace(C(window.location.href)+"#"+e)}function L(e){void 0===e&&(e={}),b||(0,c.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),a=n.getUserConfirmation,o=void 0===a?v:a,i=n.hashType,s=void 0===i?"slash":i,l=e.basename?f(u(e.basename)):"",d=_[s],g=d.encodePath,x=d.decodePath;function w(){var e=x(T());return l&&(e=p(e,l)),h(e)}var k=y();function S(e){(0,r.Z)(z,e),z.length=t.length,k.notifyListeners(z.location,z.action)}var L=!1,N=null;function P(){var e,t,n=T(),r=g(n);if(n!==r)R(r);else{var a=w(),i=z.location;if(!L&&(t=a,(e=i).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(N===m(a))return;N=null,function(e){if(L)L=!1,S();else{var t="POP";k.confirmTransitionTo(e,t,o,(function(n){n?S({action:t,location:e}):function(e){var t=z.location,n=I.lastIndexOf(m(t));-1===n&&(n=0);var r=I.lastIndexOf(m(e));-1===r&&(r=0);var a=n-r;a&&(L=!0,B(a))}(e)}))}}(a)}}var A=T(),O=g(A);A!==O&&R(O);var j=w(),I=[m(j)];function B(e){t.go(e)}var F=0;function D(e){1===(F+=e)&&1===e?window.addEventListener(E,P):0===F&&window.removeEventListener(E,P)}var M=!1;var z={length:t.length,action:"POP",location:j,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=C(window.location.href)),n+"#"+g(l+m(e))},push:function(e,t){var n="PUSH",r=h(e,void 0,void 0,z.location);k.confirmTransitionTo(r,n,o,(function(e){if(e){var t=m(r),a=g(l+t);if(T()!==a){N=t,function(e){window.location.hash=e}(a);var o=I.lastIndexOf(m(z.location)),i=I.slice(0,o+1);i.push(t),I=i,S({action:n,location:r})}else S()}}))},replace:function(e,t){var n="REPLACE",r=h(e,void 0,void 0,z.location);k.confirmTransitionTo(r,n,o,(function(e){if(e){var t=m(r),a=g(l+t);T()!==a&&(N=t,R(a));var o=I.indexOf(m(z.location));-1!==o&&(I[o]=t),S({action:n,location:r})}}))},go:B,goBack:function(){B(-1)},goForward:function(){B(1)},block:function(e){void 0===e&&(e=!1);var t=k.setPrompt(e);return M||(D(1),M=!0),function(){return M&&(M=!1,D(-1)),t()}},listen:function(e){var t=k.appendListener(e);return D(1),function(){D(-1),t()}}};return z}function N(e,t,n){return Math.min(Math.max(e,t),n)}function P(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,a=t.initialEntries,o=void 0===a?["/"]:a,i=t.initialIndex,s=void 0===i?0:i,l=t.keyLength,c=void 0===l?6:l,u=y();function d(e){(0,r.Z)(x,e),x.length=x.entries.length,u.notifyListeners(x.location,x.action)}function p(){return Math.random().toString(36).substr(2,c)}var f=N(s,0,o.length-1),g=o.map((function(e){return h(e,void 0,"string"==typeof e?p():e.key||p())})),b=m;function v(e){var t=N(x.index+e,0,x.entries.length-1),r=x.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var x={length:g.length,action:"POP",location:g[f],index:f,entries:g,createHref:b,push:function(e,t){var r="PUSH",a=h(e,t,p(),x.location);u.confirmTransitionTo(a,r,n,(function(e){if(e){var t=x.index+1,n=x.entries.slice(0);n.length>t?n.splice(t,n.length-t,a):n.push(a),d({action:r,location:a,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",a=h(e,t,p(),x.location);u.confirmTransitionTo(a,r,n,(function(e){e&&(x.entries[x.index]=a,d({action:r,location:a}))}))},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(e){var t=x.index+e;return t>=0&&t<x.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return x}},8679:(e,t,n)=>{"use strict";var r=n(9864),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var a=f(n);a&&a!==m&&e(t,a,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),h=l(n),g=0;g<i.length;++g){var y=i[g];if(!(o[y]||r&&r[y]||h&&h[y]||s&&s[y])){var b=p(n,y);try{c(t,y,b)}catch(v){}}}}return t}},1143:e=>{"use strict";e.exports=function(e,t,n,r,a,o,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,o,i,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},5826:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},1336:(e,t,n)=>{var r,a;!function(){var o,i,s,l,c,u,d,p,f,m,h,g,y,b,v,x,w,k,S,E,_,C,T,R,L,N,P,A,O,j,I=function(e){var t=new I.Builder;return t.pipeline.add(I.trimmer,I.stopWordFilter,I.stemmer),t.searchPipeline.add(I.stemmer),e.call(t,t),t.build()};I.version="2.3.9",I.utils={},I.utils.warn=(o=this,function(e){o.console&&console.warn&&console.warn(e)}),I.utils.asString=function(e){return null==e?"":e.toString()},I.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),n=Object.keys(e),r=0;r<n.length;r++){var a=n[r],o=e[a];if(Array.isArray(o))t[a]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");t[a]=o}}return t},I.FieldRef=function(e,t,n){this.docRef=e,this.fieldName=t,this._stringValue=n},I.FieldRef.joiner="/",I.FieldRef.fromString=function(e){var t=e.indexOf(I.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var n=e.slice(0,t),r=e.slice(t+1);return new I.FieldRef(r,n,e)},I.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+I.FieldRef.joiner+this.docRef),this._stringValue},I.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},I.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},I.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},I.Set.prototype.contains=function(e){return!!this.elements[e]},I.Set.prototype.intersect=function(e){var t,n,r,a=[];if(e===I.Set.complete)return this;if(e===I.Set.empty)return e;this.length<e.length?(t=this,n=e):(t=e,n=this),r=Object.keys(t.elements);for(var o=0;o<r.length;o++){var i=r[o];i in n.elements&&a.push(i)}return new I.Set(a)},I.Set.prototype.union=function(e){return e===I.Set.complete?I.Set.complete:e===I.Set.empty?this:new I.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},I.idf=function(e,t){var n=0;for(var r in e)"_index"!=r&&(n+=Object.keys(e[r]).length);var a=(t-n+.5)/(n+.5);return Math.log(1+Math.abs(a))},I.Token=function(e,t){this.str=e||"",this.metadata=t||{}},I.Token.prototype.toString=function(){return this.str},I.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},I.Token.prototype.clone=function(e){return e=e||function(e){return e},new I.Token(e(this.str,this.metadata),this.metadata)},I.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new I.Token(I.utils.asString(e).toLowerCase(),I.utils.clone(t))}));for(var n=e.toString().toLowerCase(),r=n.length,a=[],o=0,i=0;o<=r;o++){var s=o-i;if(n.charAt(o).match(I.tokenizer.separator)||o==r){if(s>0){var l=I.utils.clone(t)||{};l.position=[i,s],l.index=a.length,a.push(new I.Token(n.slice(i,o),l))}i=o+1}}return a},I.tokenizer.separator=/[\s\-]+/,I.Pipeline=function(){this._stack=[]},I.Pipeline.registeredFunctions=Object.create(null),I.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&I.utils.warn("Overwriting existing registered function: "+t),e.label=t,I.Pipeline.registeredFunctions[e.label]=e},I.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||I.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},I.Pipeline.load=function(e){var t=new I.Pipeline;return e.forEach((function(e){var n=I.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)})),t},I.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(e){I.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},I.Pipeline.prototype.after=function(e,t){I.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},I.Pipeline.prototype.before=function(e,t){I.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},I.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},I.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n<t;n++){for(var r=this._stack[n],a=[],o=0;o<e.length;o++){var i=r(e[o],o,e);if(null!=i&&""!==i)if(Array.isArray(i))for(var s=0;s<i.length;s++)a.push(i[s]);else a.push(i)}e=a}return e},I.Pipeline.prototype.runString=function(e,t){var n=new I.Token(e,t);return this.run([n]).map((function(e){return e.toString()}))},I.Pipeline.prototype.reset=function(){this._stack=[]},I.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return I.Pipeline.warnIfFunctionNotRegistered(e),e.label}))},I.Vector=function(e){this._magnitude=0,this.elements=e||[]},I.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,n=this.elements.length/2,r=n-t,a=Math.floor(r/2),o=this.elements[2*a];r>1&&(o<e&&(t=a),o>e&&(n=a),o!=e);)r=n-t,a=t+Math.floor(r/2),o=this.elements[2*a];return o==e||o>e?2*a:o<e?2*(a+1):void 0},I.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},I.Vector.prototype.upsert=function(e,t,n){this._magnitude=0;var r=this.positionForIndex(e);this.elements[r]==e?this.elements[r+1]=n(this.elements[r+1],t):this.elements.splice(r,0,e,t)},I.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,n=1;n<t;n+=2){var r=this.elements[n];e+=r*r}return this._magnitude=Math.sqrt(e)},I.Vector.prototype.dot=function(e){for(var t=0,n=this.elements,r=e.elements,a=n.length,o=r.length,i=0,s=0,l=0,c=0;l<a&&c<o;)(i=n[l])<(s=r[c])?l+=2:i>s?c+=2:i==s&&(t+=n[l+1]*r[c+1],l+=2,c+=2);return t},I.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},I.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t<this.elements.length;t+=2,n++)e[n]=this.elements[t];return e},I.Vector.prototype.toJSON=function(){return this.elements},I.stemmer=(i={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},s={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},d="^("+(c="[^aeiou][^aeiouy]*")+")?"+(u=(l="[aeiouy]")+"[aeiou]*")+c+"("+u+")?$",p="^("+c+")?"+u+c+u+c,f="^("+c+")?"+l,m=new RegExp("^("+c+")?"+u+c),h=new RegExp(p),g=new RegExp(d),y=new RegExp(f),b=/^(.+?)(ss|i)es$/,v=/^(.+?)([^s])s$/,x=/^(.+?)eed$/,w=/^(.+?)(ed|ing)$/,k=/.$/,S=/(at|bl|iz)$/,E=new RegExp("([^aeiouylsz])\\1$"),_=new RegExp("^"+c+l+"[^aeiouwxy]$"),C=/^(.+?[^aeiou])y$/,T=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,R=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,L=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,N=/^(.+?)(s|t)(ion)$/,P=/^(.+?)e$/,A=/ll$/,O=new RegExp("^"+c+l+"[^aeiouwxy]$"),j=function(e){var t,n,r,a,o,l,c;if(e.length<3)return e;if("y"==(r=e.substr(0,1))&&(e=r.toUpperCase()+e.substr(1)),o=v,(a=b).test(e)?e=e.replace(a,"$1$2"):o.test(e)&&(e=e.replace(o,"$1$2")),o=w,(a=x).test(e)){var u=a.exec(e);(a=m).test(u[1])&&(a=k,e=e.replace(a,""))}else o.test(e)&&(t=(u=o.exec(e))[1],(o=y).test(t)&&(l=E,c=_,(o=S).test(e=t)?e+="e":l.test(e)?(a=k,e=e.replace(a,"")):c.test(e)&&(e+="e")));return(a=C).test(e)&&(e=(t=(u=a.exec(e))[1])+"i"),(a=T).test(e)&&(t=(u=a.exec(e))[1],n=u[2],(a=m).test(t)&&(e=t+i[n])),(a=R).test(e)&&(t=(u=a.exec(e))[1],n=u[2],(a=m).test(t)&&(e=t+s[n])),o=N,(a=L).test(e)?(t=(u=a.exec(e))[1],(a=h).test(t)&&(e=t)):o.test(e)&&(t=(u=o.exec(e))[1]+u[2],(o=h).test(t)&&(e=t)),(a=P).test(e)&&(t=(u=a.exec(e))[1],o=g,l=O,((a=h).test(t)||o.test(t)&&!l.test(t))&&(e=t)),o=h,(a=A).test(e)&&o.test(e)&&(a=k,e=e.replace(a,"")),"y"==r&&(e=r.toLowerCase()+e.substr(1)),e},function(e){return e.update(j)}),I.Pipeline.registerFunction(I.stemmer,"stemmer"),I.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},I.stopWordFilter=I.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),I.Pipeline.registerFunction(I.stopWordFilter,"stopWordFilter"),I.trimmer=function(e){return e.update((function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")}))},I.Pipeline.registerFunction(I.trimmer,"trimmer"),I.TokenSet=function(){this.final=!1,this.edges={},this.id=I.TokenSet._nextId,I.TokenSet._nextId+=1},I.TokenSet._nextId=1,I.TokenSet.fromArray=function(e){for(var t=new I.TokenSet.Builder,n=0,r=e.length;n<r;n++)t.insert(e[n]);return t.finish(),t.root},I.TokenSet.fromClause=function(e){return"editDistance"in e?I.TokenSet.fromFuzzyString(e.term,e.editDistance):I.TokenSet.fromString(e.term)},I.TokenSet.fromFuzzyString=function(e,t){for(var n=new I.TokenSet,r=[{node:n,editsRemaining:t,str:e}];r.length;){var a=r.pop();if(a.str.length>0){var o,i=a.str.charAt(0);i in a.node.edges?o=a.node.edges[i]:(o=new I.TokenSet,a.node.edges[i]=o),1==a.str.length&&(o.final=!0),r.push({node:o,editsRemaining:a.editsRemaining,str:a.str.slice(1)})}if(0!=a.editsRemaining){if("*"in a.node.edges)var s=a.node.edges["*"];else{s=new I.TokenSet;a.node.edges["*"]=s}if(0==a.str.length&&(s.final=!0),r.push({node:s,editsRemaining:a.editsRemaining-1,str:a.str}),a.str.length>1&&r.push({node:a.node,editsRemaining:a.editsRemaining-1,str:a.str.slice(1)}),1==a.str.length&&(a.node.final=!0),a.str.length>=1){if("*"in a.node.edges)var l=a.node.edges["*"];else{l=new I.TokenSet;a.node.edges["*"]=l}1==a.str.length&&(l.final=!0),r.push({node:l,editsRemaining:a.editsRemaining-1,str:a.str.slice(1)})}if(a.str.length>1){var c,u=a.str.charAt(0),d=a.str.charAt(1);d in a.node.edges?c=a.node.edges[d]:(c=new I.TokenSet,a.node.edges[d]=c),1==a.str.length&&(c.final=!0),r.push({node:c,editsRemaining:a.editsRemaining-1,str:u+a.str.slice(2)})}}}return n},I.TokenSet.fromString=function(e){for(var t=new I.TokenSet,n=t,r=0,a=e.length;r<a;r++){var o=e[r],i=r==a-1;if("*"==o)t.edges[o]=t,t.final=i;else{var s=new I.TokenSet;s.final=i,t.edges[o]=s,t=s}}return n},I.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var n=t.pop(),r=Object.keys(n.node.edges),a=r.length;n.node.final&&(n.prefix.charAt(0),e.push(n.prefix));for(var o=0;o<a;o++){var i=r[o];t.push({prefix:n.prefix.concat(i),node:n.node.edges[i]})}}return e},I.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),n=t.length,r=0;r<n;r++){var a=t[r];e=e+a+this.edges[a].id}return e},I.TokenSet.prototype.intersect=function(e){for(var t=new I.TokenSet,n=void 0,r=[{qNode:e,output:t,node:this}];r.length;){n=r.pop();for(var a=Object.keys(n.qNode.edges),o=a.length,i=Object.keys(n.node.edges),s=i.length,l=0;l<o;l++)for(var c=a[l],u=0;u<s;u++){var d=i[u];if(d==c||"*"==c){var p=n.node.edges[d],f=n.qNode.edges[c],m=p.final&&f.final,h=void 0;d in n.output.edges?(h=n.output.edges[d]).final=h.final||m:((h=new I.TokenSet).final=m,n.output.edges[d]=h),r.push({qNode:f,output:h,node:p})}}}return t},I.TokenSet.Builder=function(){this.previousWord="",this.root=new I.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},I.TokenSet.Builder.prototype.insert=function(e){var t,n=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var r=0;r<e.length&&r<this.previousWord.length&&e[r]==this.previousWord[r];r++)n++;this.minimize(n),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(r=n;r<e.length;r++){var a=new I.TokenSet,o=e[r];t.edges[o]=a,this.uncheckedNodes.push({parent:t,char:o,child:a}),t=a}t.final=!0,this.previousWord=e},I.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},I.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var n=this.uncheckedNodes[t],r=n.child.toString();r in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[r]:(n.child._str=r,this.minimizedNodes[r]=n.child),this.uncheckedNodes.pop()}},I.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},I.Index.prototype.search=function(e){return this.query((function(t){new I.QueryParser(e,t).parse()}))},I.Index.prototype.query=function(e){for(var t=new I.Query(this.fields),n=Object.create(null),r=Object.create(null),a=Object.create(null),o=Object.create(null),i=Object.create(null),s=0;s<this.fields.length;s++)r[this.fields[s]]=new I.Vector;e.call(t,t);for(s=0;s<t.clauses.length;s++){var l=t.clauses[s],c=null,u=I.Set.empty;c=l.usePipeline?this.pipeline.runString(l.term,{fields:l.fields}):[l.term];for(var d=0;d<c.length;d++){var p=c[d];l.term=p;var f=I.TokenSet.fromClause(l),m=this.tokenSet.intersect(f).toArray();if(0===m.length&&l.presence===I.Query.presence.REQUIRED){for(var h=0;h<l.fields.length;h++){o[P=l.fields[h]]=I.Set.empty}break}for(var g=0;g<m.length;g++){var y=m[g],b=this.invertedIndex[y],v=b._index;for(h=0;h<l.fields.length;h++){var x=b[P=l.fields[h]],w=Object.keys(x),k=y+"/"+P,S=new I.Set(w);if(l.presence==I.Query.presence.REQUIRED&&(u=u.union(S),void 0===o[P]&&(o[P]=I.Set.complete)),l.presence!=I.Query.presence.PROHIBITED){if(r[P].upsert(v,l.boost,(function(e,t){return e+t})),!a[k]){for(var E=0;E<w.length;E++){var _,C=w[E],T=new I.FieldRef(C,P),R=x[C];void 0===(_=n[T])?n[T]=new I.MatchData(y,P,R):_.add(y,P,R)}a[k]=!0}}else void 0===i[P]&&(i[P]=I.Set.empty),i[P]=i[P].union(S)}}}if(l.presence===I.Query.presence.REQUIRED)for(h=0;h<l.fields.length;h++){o[P=l.fields[h]]=o[P].intersect(u)}}var L=I.Set.complete,N=I.Set.empty;for(s=0;s<this.fields.length;s++){var P;o[P=this.fields[s]]&&(L=L.intersect(o[P])),i[P]&&(N=N.union(i[P]))}var A=Object.keys(n),O=[],j=Object.create(null);if(t.isNegated()){A=Object.keys(this.fieldVectors);for(s=0;s<A.length;s++){T=A[s];var B=I.FieldRef.fromString(T);n[T]=new I.MatchData}}for(s=0;s<A.length;s++){var F=(B=I.FieldRef.fromString(A[s])).docRef;if(L.contains(F)&&!N.contains(F)){var D,M=this.fieldVectors[B],z=r[B.fieldName].similarity(M);if(void 0!==(D=j[F]))D.score+=z,D.matchData.combine(n[B]);else{var $={ref:F,score:z,matchData:n[B]};j[F]=$,O.push($)}}}return O.sort((function(e,t){return t.score-e.score}))},I.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:I.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},I.Index.load=function(e){var t={},n={},r=e.fieldVectors,a=Object.create(null),o=e.invertedIndex,i=new I.TokenSet.Builder,s=I.Pipeline.load(e.pipeline);e.version!=I.version&&I.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+I.version+"' does not match serialized index '"+e.version+"'");for(var l=0;l<r.length;l++){var c=(d=r[l])[0],u=d[1];n[c]=new I.Vector(u)}for(l=0;l<o.length;l++){var d,p=(d=o[l])[0],f=d[1];i.insert(p),a[p]=f}return i.finish(),t.fields=e.fields,t.fieldVectors=n,t.invertedIndex=a,t.tokenSet=i.root,t.pipeline=s,new I.Index(t)},I.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=I.tokenizer,this.pipeline=new I.Pipeline,this.searchPipeline=new I.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},I.Builder.prototype.ref=function(e){this._ref=e},I.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},I.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},I.Builder.prototype.k1=function(e){this._k1=e},I.Builder.prototype.add=function(e,t){var n=e[this._ref],r=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var a=0;a<r.length;a++){var o=r[a],i=this._fields[o].extractor,s=i?i(e):e[o],l=this.tokenizer(s,{fields:[o]}),c=this.pipeline.run(l),u=new I.FieldRef(n,o),d=Object.create(null);this.fieldTermFrequencies[u]=d,this.fieldLengths[u]=0,this.fieldLengths[u]+=c.length;for(var p=0;p<c.length;p++){var f=c[p];if(null==d[f]&&(d[f]=0),d[f]+=1,null==this.invertedIndex[f]){var m=Object.create(null);m._index=this.termIndex,this.termIndex+=1;for(var h=0;h<r.length;h++)m[r[h]]=Object.create(null);this.invertedIndex[f]=m}null==this.invertedIndex[f][o][n]&&(this.invertedIndex[f][o][n]=Object.create(null));for(var g=0;g<this.metadataWhitelist.length;g++){var y=this.metadataWhitelist[g],b=f.metadata[y];null==this.invertedIndex[f][o][n][y]&&(this.invertedIndex[f][o][n][y]=[]),this.invertedIndex[f][o][n][y].push(b)}}}},I.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,n={},r={},a=0;a<t;a++){var o=I.FieldRef.fromString(e[a]),i=o.fieldName;r[i]||(r[i]=0),r[i]+=1,n[i]||(n[i]=0),n[i]+=this.fieldLengths[o]}var s=Object.keys(this._fields);for(a=0;a<s.length;a++){var l=s[a];n[l]=n[l]/r[l]}this.averageFieldLength=n},I.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),n=t.length,r=Object.create(null),a=0;a<n;a++){for(var o=I.FieldRef.fromString(t[a]),i=o.fieldName,s=this.fieldLengths[o],l=new I.Vector,c=this.fieldTermFrequencies[o],u=Object.keys(c),d=u.length,p=this._fields[i].boost||1,f=this._documents[o.docRef].boost||1,m=0;m<d;m++){var h,g,y,b=u[m],v=c[b],x=this.invertedIndex[b]._index;void 0===r[b]?(h=I.idf(this.invertedIndex[b],this.documentCount),r[b]=h):h=r[b],g=h*((this._k1+1)*v)/(this._k1*(1-this._b+this._b*(s/this.averageFieldLength[i]))+v),g*=p,g*=f,y=Math.round(1e3*g)/1e3,l.insert(x,y)}e[o]=l}this.fieldVectors=e},I.Builder.prototype.createTokenSet=function(){this.tokenSet=I.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},I.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new I.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},I.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},I.MatchData=function(e,t,n){for(var r=Object.create(null),a=Object.keys(n||{}),o=0;o<a.length;o++){var i=a[o];r[i]=n[i].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=r)},I.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),n=0;n<t.length;n++){var r=t[n],a=Object.keys(e.metadata[r]);null==this.metadata[r]&&(this.metadata[r]=Object.create(null));for(var o=0;o<a.length;o++){var i=a[o],s=Object.keys(e.metadata[r][i]);null==this.metadata[r][i]&&(this.metadata[r][i]=Object.create(null));for(var l=0;l<s.length;l++){var c=s[l];null==this.metadata[r][i][c]?this.metadata[r][i][c]=e.metadata[r][i][c]:this.metadata[r][i][c]=this.metadata[r][i][c].concat(e.metadata[r][i][c])}}}},I.MatchData.prototype.add=function(e,t,n){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=n);if(t in this.metadata[e])for(var r=Object.keys(n),a=0;a<r.length;a++){var o=r[a];o in this.metadata[e][t]?this.metadata[e][t][o]=this.metadata[e][t][o].concat(n[o]):this.metadata[e][t][o]=n[o]}else this.metadata[e][t]=n},I.Query=function(e){this.clauses=[],this.allFields=e},I.Query.wildcard=new String("*"),I.Query.wildcard.NONE=0,I.Query.wildcard.LEADING=1,I.Query.wildcard.TRAILING=2,I.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},I.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=I.Query.wildcard.NONE),e.wildcard&I.Query.wildcard.LEADING&&e.term.charAt(0)!=I.Query.wildcard&&(e.term="*"+e.term),e.wildcard&I.Query.wildcard.TRAILING&&e.term.slice(-1)!=I.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=I.Query.presence.OPTIONAL),this.clauses.push(e),this},I.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=I.Query.presence.PROHIBITED)return!1;return!0},I.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,I.utils.clone(t))}),this),this;var n=t||{};return n.term=e.toString(),this.clause(n),this},I.QueryParseError=function(e,t,n){this.name="QueryParseError",this.message=e,this.start=t,this.end=n},I.QueryParseError.prototype=new Error,I.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},I.QueryLexer.prototype.run=function(){for(var e=I.QueryLexer.lexText;e;)e=e(this)},I.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,n=this.pos,r=0;r<this.escapeCharPositions.length;r++)n=this.escapeCharPositions[r],e.push(this.str.slice(t,n)),t=n+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},I.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},I.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},I.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return I.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},I.QueryLexer.prototype.width=function(){return this.pos-this.start},I.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},I.QueryLexer.prototype.backup=function(){this.pos-=1},I.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=I.QueryLexer.EOS&&this.backup()},I.QueryLexer.prototype.more=function(){return this.pos<this.length},I.QueryLexer.EOS="EOS",I.QueryLexer.FIELD="FIELD",I.QueryLexer.TERM="TERM",I.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",I.QueryLexer.BOOST="BOOST",I.QueryLexer.PRESENCE="PRESENCE",I.QueryLexer.lexField=function(e){return e.backup(),e.emit(I.QueryLexer.FIELD),e.ignore(),I.QueryLexer.lexText},I.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(I.QueryLexer.TERM)),e.ignore(),e.more())return I.QueryLexer.lexText},I.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(I.QueryLexer.EDIT_DISTANCE),I.QueryLexer.lexText},I.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(I.QueryLexer.BOOST),I.QueryLexer.lexText},I.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(I.QueryLexer.TERM)},I.QueryLexer.termSeparator=I.tokenizer.separator,I.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==I.QueryLexer.EOS)return I.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return I.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(I.QueryLexer.TERM),I.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(I.QueryLexer.TERM),I.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(I.QueryLexer.PRESENCE),I.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(I.QueryLexer.PRESENCE),I.QueryLexer.lexText;if(t.match(I.QueryLexer.termSeparator))return I.QueryLexer.lexTerm}else e.escapeCharacter()}},I.QueryParser=function(e,t){this.lexer=new I.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},I.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=I.QueryParser.parseClause;e;)e=e(this);return this.query},I.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},I.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},I.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},I.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case I.QueryLexer.PRESENCE:return I.QueryParser.parsePresence;case I.QueryLexer.FIELD:return I.QueryParser.parseField;case I.QueryLexer.TERM:return I.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new I.QueryParseError(n,t.start,t.end)}},I.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=I.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=I.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new I.QueryParseError(n,t.start,t.end)}var r=e.peekLexeme();if(null==r){n="expecting term or field, found nothing";throw new I.QueryParseError(n,t.start,t.end)}switch(r.type){case I.QueryLexer.FIELD:return I.QueryParser.parseField;case I.QueryLexer.TERM:return I.QueryParser.parseTerm;default:n="expecting term or field, found '"+r.type+"'";throw new I.QueryParseError(n,r.start,r.end)}}},I.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),r="unrecognised field '"+t.str+"', possible fields: "+n;throw new I.QueryParseError(r,t.start,t.end)}e.currentClause.fields=[t.str];var a=e.peekLexeme();if(null==a){r="expecting term, found nothing";throw new I.QueryParseError(r,t.start,t.end)}if(a.type===I.QueryLexer.TERM)return I.QueryParser.parseTerm;r="expecting term, found '"+a.type+"'";throw new I.QueryParseError(r,a.start,a.end)}},I.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(null!=n)switch(n.type){case I.QueryLexer.TERM:return e.nextClause(),I.QueryParser.parseTerm;case I.QueryLexer.FIELD:return e.nextClause(),I.QueryParser.parseField;case I.QueryLexer.EDIT_DISTANCE:return I.QueryParser.parseEditDistance;case I.QueryLexer.BOOST:return I.QueryParser.parseBoost;case I.QueryLexer.PRESENCE:return e.nextClause(),I.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+n.type+"'";throw new I.QueryParseError(r,n.start,n.end)}else e.nextClause()}},I.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="edit distance must be numeric";throw new I.QueryParseError(r,t.start,t.end)}e.currentClause.editDistance=n;var a=e.peekLexeme();if(null!=a)switch(a.type){case I.QueryLexer.TERM:return e.nextClause(),I.QueryParser.parseTerm;case I.QueryLexer.FIELD:return e.nextClause(),I.QueryParser.parseField;case I.QueryLexer.EDIT_DISTANCE:return I.QueryParser.parseEditDistance;case I.QueryLexer.BOOST:return I.QueryParser.parseBoost;case I.QueryLexer.PRESENCE:return e.nextClause(),I.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+a.type+"'";throw new I.QueryParseError(r,a.start,a.end)}else e.nextClause()}},I.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="boost must be numeric";throw new I.QueryParseError(r,t.start,t.end)}e.currentClause.boost=n;var a=e.peekLexeme();if(null!=a)switch(a.type){case I.QueryLexer.TERM:return e.nextClause(),I.QueryParser.parseTerm;case I.QueryLexer.FIELD:return e.nextClause(),I.QueryParser.parseField;case I.QueryLexer.EDIT_DISTANCE:return I.QueryParser.parseEditDistance;case I.QueryLexer.BOOST:return I.QueryParser.parseBoost;case I.QueryLexer.PRESENCE:return e.nextClause(),I.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+a.type+"'";throw new I.QueryParseError(r,a.start,a.end)}else e.nextClause()}},void 0===(a="function"==typeof(r=function(){return I})?r.call(t,n,t,e):r)||(e.exports=a)}()},3395:(e,t,n)=>{"use strict";n.r(t)},2497:(e,t,n)=>{"use strict";n.r(t)},4865:function(e,t,n){var r,a;r=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function a(e,t,n){return e<t?t:e>n?n:e}function o(e){return 100*(-1+e)}function i(e,t,n){var a;return(a="translate3d"===r.positionUsing?{transform:"translate3d("+o(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+o(e)+"%,0)"}:{"margin-left":o(e)+"%"}).transition="all "+t+"ms "+n,a}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=a(e,r.minimum,1),n.status=1===e?null:e;var o=n.render(!t),c=o.querySelector(r.barSelector),u=r.speed,d=r.easing;return o.offsetWidth,s((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),l(c,i(e,u,d)),1===e?(l(o,{transition:"none",opacity:1}),o.offsetWidth,setTimeout((function(){l(o,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),u)}),u)):setTimeout(t,u)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*a(Math.random()*t,.1,.95)),t=a(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var a,i=t.querySelector(r.barSelector),s=e?"-100":o(n.status||0),c=document.querySelector(r.parent);return l(i,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),r.showSpinner||(a=t.querySelector(r.spinnerSelector))&&f(a),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var s=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,a=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);a--;)if((r=e[a]+o)in n)return r;return t}function a(e){return e=n(e),t[e]||(t[e]=r(e))}function o(e,t,n){t=a(t),e.style[t]=n}return function(e,t){var n,r,a=arguments;if(2==a.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&o(e,n,r);else o(e,a[1],a[2])}}();function c(e,t){return("string"==typeof e?e:p(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=p(e),r=n+t;c(n,t)||(e.className=r.substring(1))}function d(e,t){var n,r=p(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function p(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},void 0===(a="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=a)},4779:(e,t,n)=>{var r=n(5826);e.exports=f,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=p;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,i=0,s="",u=t&&t.delimiter||"/";null!=(n=a.exec(e));){var d=n[0],p=n[1],f=n.index;if(s+=e.slice(i,f),i=f+d.length,p)s+=p[1];else{var m=e[i],h=n[2],g=n[3],y=n[4],b=n[5],v=n[6],x=n[7];s&&(r.push(s),s="");var w=null!=h&&null!=m&&m!==h,k="+"===v||"*"===v,S="?"===v||"*"===v,E=n[2]||u,_=y||b;r.push({name:g||o++,prefix:h||"",delimiter:E,optional:S,repeat:k,partial:w,asterisk:!!x,pattern:_?c(_):x?".*":"[^"+l(E)+"]+?"})}}return i<e.length&&(s+=e.substr(i)),s&&r.push(s),r}function i(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),a=0;a<e.length;a++)"object"==typeof e[a]&&(n[a]=new RegExp("^(?:"+e[a].pattern+")$",d(t)));return function(t,a){for(var o="",s=t||{},l=(a||{}).pretty?i:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var d,p=s[u.name];if(null==p){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(d=l(p[f]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===f?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var a=(n=n||{}).strict,o=!1!==n.end,i="",s=0;s<e.length;s++){var c=e[s];if("string"==typeof c)i+=l(c);else{var p=l(c.prefix),f="(?:"+c.pattern+")";t.push(c),c.repeat&&(f+="(?:"+p+f+")*"),i+=f=c.optional?c.partial?p+"("+f+")?":"(?:"+p+"("+f+"))?":p+"("+f+")"}}var m=l(n.delimiter||"/"),h=i.slice(-m.length)===m;return a||(i=(h?i.slice(0,-m.length):i)+"(?:"+m+"(?=$))?"),i+=o?"$":a&&h?"":"(?="+m+"|$)",u(new RegExp("^"+i,d(n)),t)}function f(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],a=0;a<e.length;a++)r.push(f(e[a],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return p(o(e,n),t,n)}(e,t,n)}},7874:()=>{!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,i=0;i<a.length;i++)o[a[i]]=e.languages.bash[a[i]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism)},4277:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},6854:()=>{!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,a,o){if(n.language===r){var i=n.tokenStack=[];n.code=n.code.replace(a,(function(e){if("function"==typeof o&&!o(e))return e;for(var a,s=i.length;-1!==n.code.indexOf(a=t(r,s));)++s;return i[s]=e,a})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,o=Object.keys(n.tokenStack);!function i(s){for(var l=0;l<s.length&&!(a>=o.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=o[a],d=n.tokenStack[u],p="string"==typeof c?c:c.content,f=t(r,u),m=p.indexOf(f);if(m>-1){++a;var h=p.substring(0,m),g=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),y=p.substring(m+f.length),b=[];h&&b.push.apply(b,i([h])),b.push(g),y&&b.push.apply(b,i([y])),"string"==typeof c?s.splice.apply(s,[l,1].concat(b)):c.content=b}}else c.content&&i(c.content)}return s}(n.tokens)}}}})}(Prism)},1029:()=>{!function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism)},5897:(e,t,n)=>{var r={"./prism-bash":7874,"./prism-json":4277,"./prism-tsx":1029};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=5897},2703:(e,t,n)=>{"use strict";var r=n(414);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4448:(e,t,n)=>{"use strict";var r=n(7294),a=n(3840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},m={};function h(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function v(e,t,n,r){var a=g.hasOwnProperty(t)?g[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!d.call(m,e)||!d.call(f,e)&&(p.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),T=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),A=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var O=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var j=Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=j&&e[j]||e["@@iterator"])?e:null}var B,F=Object.assign;function D(e){if(void 0===B)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var M=!1;function z(e,t){if(!e||M)return"";M=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(var a=c.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,s=o.length-1;1<=i&&0<=s&&a[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(a[i]!==o[s]){if(1!==i||1!==s)do{if(i--,0>--s||a[i]!==o[s]){var l="\n"+a[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{M=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function $(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case _:return"Profiler";case E:return"StrictMode";case L:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case A:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Z(e){e._valueTracker||(e._valueTracker=function(e){var t=Q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function V(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function W(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function X(e,t){K(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&W(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function oe(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=he(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(fe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ye=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Se=null,Ee=null;function _e(e){if(e=va(e)){if("function"!=typeof ke)throw Error(o(280));var t=e.stateNode;t&&(t=wa(t),ke(e.stateNode,e.type,t))}}function Ce(e){Se?Ee?Ee.push(e):Ee=[e]:Se=e}function Te(){if(Se){var e=Se,t=Ee;if(Ee=Se=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function Re(e,t){return e(t)}function Le(){}var Ne=!1;function Pe(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return Re(e,t,n)}finally{Ne=!1,(null!==Se||null!==Ee)&&(Le(),Te())}}function Ae(e,t){var n=e.stateNode;if(null===n)return null;var r=wa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Oe=!1;if(u)try{var je={};Object.defineProperty(je,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",je,je),window.removeEventListener("test",je,je)}catch(ue){Oe=!1}function Ie(e,t,n,r,a,o,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Be=!1,Fe=null,De=!1,Me=null,ze={onError:function(e){Be=!0,Fe=e}};function $e(e,t,n,r,a,o,i,s,l){Be=!1,Fe=null,Ie.apply(ze,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(qe(e)!==e)throw Error(o(188))}function Qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return He(a),e;if(i===r)return He(a),t;i=i.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=i;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ze(e):null}function Ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ze(e);if(null!==t)return t;e=e.sibling}return null}var Ve=a.unstable_scheduleCallback,We=a.unstable_cancelCallback,Ge=a.unstable_shouldYield,Ye=a.unstable_requestPaint,Ke=a.unstable_now,Xe=a.unstable_getCurrentPriorityLevel,Je=a.unstable_ImmediatePriority,et=a.unstable_UserBlockingPriority,tt=a.unstable_NormalPriority,nt=a.unstable_LowPriority,rt=a.unstable_IdlePriority,at=null,ot=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=268435455&n;if(0!==i){var s=i&~a;0!==s?r=dt(s):0!==(o&=i)&&(r=dt(o))}else 0!==(i=n&~a)?r=dt(i):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-it(t)),r|=e[n],t&=~a;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ht(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var vt=0;function xt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,kt,St,Et,_t,Ct=!1,Tt=[],Rt=null,Lt=null,Nt=null,Pt=new Map,At=new Map,Ot=[],jt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function It(e,t){switch(e){case"focusin":case"focusout":Rt=null;break;case"dragenter":case"dragleave":Lt=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":At.delete(t.pointerId)}}function Bt(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=va(t))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Ft(e){var t=ba(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ue(n)))return e.blockedOn=t,void _t(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=va(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Mt(e,t,n){Dt(e)&&n.delete(t)}function zt(){Ct=!1,null!==Rt&&Dt(Rt)&&(Rt=null),null!==Lt&&Dt(Lt)&&(Lt=null),null!==Nt&&Dt(Nt)&&(Nt=null),Pt.forEach(Mt),At.forEach(Mt)}function $t(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,zt)))}function qt(e){function t(t){return $t(t,e)}if(0<Tt.length){$t(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Rt&&$t(Rt,e),null!==Lt&&$t(Lt,e),null!==Nt&&$t(Nt,e),Pt.forEach(t),At.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)Ft(n),null===n.blockedOn&&Ot.shift()}var Ut=x.ReactCurrentBatchConfig,Ht=!0;function Qt(e,t,n,r){var a=vt,o=Ut.transition;Ut.transition=null;try{vt=1,Vt(e,t,n,r)}finally{vt=a,Ut.transition=o}}function Zt(e,t,n,r){var a=vt,o=Ut.transition;Ut.transition=null;try{vt=4,Vt(e,t,n,r)}finally{vt=a,Ut.transition=o}}function Vt(e,t,n,r){if(Ht){var a=Gt(e,t,n,r);if(null===a)Hr(e,t,r,Wt,n),It(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Rt=Bt(Rt,e,t,n,r,a),!0;case"dragenter":return Lt=Bt(Lt,e,t,n,r,a),!0;case"mouseover":return Nt=Bt(Nt,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return Pt.set(o,Bt(Pt.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,At.set(o,Bt(At.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<jt.indexOf(e)){for(;null!==a;){var o=va(a);if(null!==o&&wt(o),null===(o=Gt(e,t,n,r))&&Hr(e,t,r,Wt,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Wt=null;function Gt(e,t,n,r){if(Wt=null,null!==(e=ba(e=we(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Kt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,a="value"in Kt?Kt.value:Kt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return Jt=a.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=an(cn),dn=F({},cn,{view:0,detail:0}),pn=an(dn),fn=F({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_n,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(on=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=on=0,ln=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),mn=an(fn),hn=an(F({},fn,{dataTransfer:0})),gn=an(F({},dn,{relatedTarget:0})),yn=an(F({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=F({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=an(bn),xn=an(F({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function _n(){return En}var Cn=F({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_n,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=an(Cn),Rn=an(F({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ln=an(F({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_n})),Nn=an(F({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=F({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),An=an(Pn),On=[9,13,27,32],jn=u&&"CompositionEvent"in window,In=null;u&&"documentMode"in document&&(In=document.documentMode);var Bn=u&&"TextEvent"in window&&!In,Fn=u&&(!jn||In&&8<In&&11>=In),Dn=String.fromCharCode(32),Mn=!1;function zn(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Qn(e,t,n,r){Ce(r),0<(t=Zr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zn=null,Vn=null;function Wn(e){Dr(e,0)}function Gn(e){if(V(xa(e)))return e}function Yn(e,t){if("change"===e)return t}var Kn=!1;if(u){var Xn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Xn=Jn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Zn&&(Zn.detachEvent("onpropertychange",nr),Vn=Zn=null)}function nr(e){if("value"===e.propertyName&&Gn(Vn)){var t=[];Qn(t,Vn,e,we(e)),Pe(Wn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Vn=n,(Zn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Vn)}function or(e,t){if("click"===e)return Gn(t)}function ir(e,t){if("input"===e||"change"===e)return Gn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!d.call(t,a)||!sr(e[a],t[a]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=W();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=W((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=ur(n,o);var i=ur(n,r);a&&i&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,br=null,vr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==gr||gr!==W(r)||("selectionStart"in(r=gr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&lr(br,r)||(br=r,0<(r=Zr(yr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},Er={};function _r(e){if(Sr[e])return Sr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Sr[e]=n[t];return e}u&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Cr=_r("animationend"),Tr=_r("animationiteration"),Rr=_r("animationstart"),Lr=_r("transitionend"),Nr=new Map,Pr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ar(e,t){Nr.set(e,t),l(t,[e])}for(var Or=0;Or<Pr.length;Or++){var jr=Pr[Or];Ar(jr.toLowerCase(),"on"+(jr[0].toUpperCase()+jr.slice(1)))}Ar(Cr,"onAnimationEnd"),Ar(Tr,"onAnimationIteration"),Ar(Rr,"onAnimationStart"),Ar("dblclick","onDoubleClick"),Ar("focusin","onFocus"),Ar("focusout","onBlur"),Ar(Lr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Br=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function Fr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,i,s,l,c){if($e.apply(this,arguments),Be){if(!Be)throw Error(o(198));var u=Fe;Be=!1,Fe=null,De||(De=!0,Me=u)}}(r,t,void 0,e),e.currentTarget=null}function Dr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&a.isPropagationStopped())break e;Fr(a,s,c),o=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,c=s.currentTarget,s=s.listener,l!==o&&a.isPropagationStopped())break e;Fr(a,s,c),o=l}}}if(De)throw e=Me,De=!1,Me=null,e}function Mr(e,t){var n=t[ha];void 0===n&&(n=t[ha]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[$r]){e[$r]=!0,i.forEach((function(t){"selectionchange"!==t&&(Br.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,zr("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Yt(t)){case 1:var a=Qt;break;case 4:a=Zt;break;default:a=Vt}n=a.bind(null,t,n,e),a=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,a){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;i=i.return}for(;null!==s;){if(null===(i=ba(s)))return;if(5===(l=i.tag)||6===l){r=o=i;continue e}s=s.parentNode}}r=r.return}Pe((function(){var r=o,a=we(n),i=[];e:{var s=Nr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Ln;break;case Cr:case Tr:case Rr:l=yn;break;case Lr:l=Nn;break;case"scroll":l=pn;break;case"wheel":l=An;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Rn}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,m=r;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&(null!=(h=Ae(m,p))&&u.push(Qr(m,h,f)))),d)break;m=m.return}0<u.length&&(s=new l(s,c,null,n,a),i.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!ba(c)&&!c[ma])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ba(c):null)&&(c!==(d=qe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=mn,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=Rn,h="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==l?s:xa(l),f=null==c?s:xa(c),(s=new u(h,m+"leave",l,n,a)).target=d,s.relatedTarget=f,h=null,ba(a)===r&&((u=new u(p,m+"enter",c,n,a)).target=f,u.relatedTarget=d,h=u),d=h,l&&c)e:{for(p=c,m=0,f=u=l;f;f=Vr(f))m++;for(f=0,h=p;h;h=Vr(h))f++;for(;0<m-f;)u=Vr(u),m--;for(;0<f-m;)p=Vr(p),f--;for(;m--;){if(u===p||null!==p&&u===p.alternate)break e;u=Vr(u),p=Vr(p)}u=null}else u=null;null!==l&&Wr(i,s,l,u,!1),null!==c&&null!==d&&Wr(i,d,c,u,!0)}if("select"===(l=(s=r?xa(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Yn;else if(Hn(s))if(Kn)g=ir;else{g=ar;var y=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Qn(i,g,n,a):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ee(s,"number",s.value)),y=r?xa(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,br=null);break;case"focusout":br=yr=gr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,xr(i,n,a);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":xr(i,n,a)}var b;if(jn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else qn?zn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Fn&&"ko"!==n.locale&&(qn||"onCompositionStart"!==v?"onCompositionEnd"===v&&qn&&(b=en()):(Xt="value"in(Kt=a)?Kt.value:Kt.textContent,qn=!0)),0<(y=Zr(r,v)).length&&(v=new xn(v,e,null,n,a),i.push({event:v,listeners:y}),b?v.data=b:null!==(b=$n(n))&&(v.data=b))),(b=Bn?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(Mn=!0,Dn);case"textInput":return(e=t.data)===Dn&&Mn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!jn&&zn(e,t)?(e=en(),Jt=Xt=Kt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Zr(r,"onBeforeInput")).length&&(a=new xn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=b))}Dr(i,t)}))}function Qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Ae(e,n))&&r.unshift(Qr(e,o,a)),null!=(o=Ae(e,t))&&r.push(Qr(e,o,a))),e=e.return}return r}function Vr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,a?null!=(l=Ae(n,o))&&i.unshift(Qr(n,l,s)):a||null!=(l=Ae(n,o))&&i.push(Qr(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Gr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Yr,"")}function Xr(e,t,n){if(t=Kr(t),Kr(e)!==t&&n)throw Error(o(425))}function Jr(){}var ea=null,ta=null;function na(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ra="function"==typeof setTimeout?setTimeout:void 0,aa="function"==typeof clearTimeout?clearTimeout:void 0,oa="function"==typeof Promise?Promise:void 0,ia="function"==typeof queueMicrotask?queueMicrotask:void 0!==oa?function(e){return oa.resolve(null).then(e).catch(sa)}:ra;function sa(e){setTimeout((function(){throw e}))}function la(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);qt(t)}function ca(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ua(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var da=Math.random().toString(36).slice(2),pa="__reactFiber$"+da,fa="__reactProps$"+da,ma="__reactContainer$"+da,ha="__reactEvents$"+da,ga="__reactListeners$"+da,ya="__reactHandles$"+da;function ba(e){var t=e[pa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ma]||n[pa]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ua(e);null!==e;){if(n=e[pa])return n;e=ua(e)}return t}n=(e=n).parentNode}return null}function va(e){return!(e=e[pa]||e[ma])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wa(e){return e[fa]||null}var ka=[],Sa=-1;function Ea(e){return{current:e}}function _a(e){0>Sa||(e.current=ka[Sa],ka[Sa]=null,Sa--)}function Ca(e,t){Sa++,ka[Sa]=e.current,e.current=t}var Ta={},Ra=Ea(Ta),La=Ea(!1),Na=Ta;function Pa(e,t){var n=e.type.contextTypes;if(!n)return Ta;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Aa(e){return null!=(e=e.childContextTypes)}function Oa(){_a(La),_a(Ra)}function ja(e,t,n){if(Ra.current!==Ta)throw Error(o(168));Ca(Ra,t),Ca(La,n)}function Ia(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(o(108,U(e)||"Unknown",a));return F({},n,r)}function Ba(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ta,Na=Ra.current,Ca(Ra,e),Ca(La,La.current),!0}function Fa(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ia(e,t,Na),r.__reactInternalMemoizedMergedChildContext=e,_a(La),_a(Ra),Ca(Ra,e)):_a(La),Ca(La,n)}var Da=null,Ma=!1,za=!1;function $a(e){null===Da?Da=[e]:Da.push(e)}function qa(){if(!za&&null!==Da){za=!0;var e=0,t=vt;try{var n=Da;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Da=null,Ma=!1}catch(a){throw null!==Da&&(Da=Da.slice(e+1)),Ve(Je,qa),a}finally{vt=t,za=!1}}return null}var Ua=[],Ha=0,Qa=null,Za=0,Va=[],Wa=0,Ga=null,Ya=1,Ka="";function Xa(e,t){Ua[Ha++]=Za,Ua[Ha++]=Qa,Qa=e,Za=t}function Ja(e,t,n){Va[Wa++]=Ya,Va[Wa++]=Ka,Va[Wa++]=Ga,Ga=e;var r=Ya;e=Ka;var a=32-it(r)-1;r&=~(1<<a),n+=1;var o=32-it(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Ya=1<<32-it(t)+a|n<<a|r,Ka=o+e}else Ya=1<<o|n<<a|r,Ka=e}function eo(e){null!==e.return&&(Xa(e,1),Ja(e,1,0))}function to(e){for(;e===Qa;)Qa=Ua[--Ha],Ua[Ha]=null,Za=Ua[--Ha],Ua[Ha]=null;for(;e===Ga;)Ga=Va[--Wa],Va[Wa]=null,Ka=Va[--Wa],Va[Wa]=null,Ya=Va[--Wa],Va[Wa]=null}var no=null,ro=null,ao=!1,oo=null;function io(e,t){var n=Ac(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ca(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ga?{id:Ya,overflow:Ka}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ac(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function co(e){if(ao){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ca(n.nextSibling);var r=no;t&&so(e,t)?io(r,n):(e.flags=-4097&e.flags|2,ao=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,ao=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function po(e){if(e!==no)return!1;if(!ao)return uo(e),ao=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!na(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw fo(),Error(o(418));for(;t;)io(e,t),t=ca(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ca(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ca(e.stateNode.nextSibling):null;return!0}function fo(){for(var e=ro;e;)e=ca(e.nextSibling)}function mo(){ro=no=null,ao=!1}function ho(e){null===oo?oo=[e]:oo.push(e)}var go=x.ReactCurrentBatchConfig;function yo(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var bo=Ea(null),vo=null,xo=null,wo=null;function ko(){wo=xo=vo=null}function So(e){var t=bo.current;_a(bo),e._currentValue=t}function Eo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _o(e,t){vo=e,wo=xo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(xs=!0),e.firstContext=null)}function Co(e){var t=e._currentValue;if(wo!==e)if(e={context:e,memoizedValue:t,next:null},null===xo){if(null===vo)throw Error(o(308));xo=e,vo.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var To=null;function Ro(e){null===To?To=[e]:To.push(e)}function Lo(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Ro(t)):(n.next=a.next,a.next=n),t.interleaved=n,No(e,r)}function No(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Po=!1;function Ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Oo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function jo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Io(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ll)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,No(e,n)}return null===(a=r.interleaved)?(t.next=t,Ro(r)):(t.next=a.next,a.next=t),r.interleaved=t,No(e,n)}function Bo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Fo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Do(e,t,n,r){var a=e.updateQueue;Po=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?o=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=a.baseState;for(i=0,u=c=l=null,s=o;;){var p=s.lane,f=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,h=s;switch(p=t,f=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=h.payload)?m.call(f,d,p):m))break e;d=F({},d,p);break e;case 2:Po=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=a.effects)?a.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,i|=p;if(null===(s=s.next)){if(null===(s=a.shared.pending))break;s=(p=s).next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}if(null===u&&(l=d),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=u,null!==(t=a.shared.interleaved)){a=t;do{i|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);Fl|=i,e.lanes=i,e.memoizedState=d}}function Mo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(o(191,a));a.call(r)}}}var zo=(new r.Component).refs;function $o(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var qo={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),a=nc(e),o=jo(r,a);o.payload=t,null!=n&&(o.callback=n),null!==(t=Io(e,o,a))&&(rc(t,e,a,r),Bo(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),a=nc(e),o=jo(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Io(e,o,a))&&(rc(t,e,a,r),Bo(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),a=jo(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Io(e,a,r))&&(rc(t,e,r,n),Bo(t,e,r))}};function Uo(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(a,o))}function Ho(e,t,n){var r=!1,a=Ta,o=t.contextType;return"object"==typeof o&&null!==o?o=Co(o):(a=Aa(t)?Na:Ra.current,o=(r=null!=(r=t.contextTypes))?Pa(e,a):Ta),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=qo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Qo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&qo.enqueueReplaceState(t,t.state,null)}function Zo(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=zo,Ao(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=Co(o):(o=Aa(t)?Na:Ra.current,a.context=Pa(e,o)),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&($o(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&qo.enqueueReplaceState(a,a.state,null),Do(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function Vo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var a=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=a.refs;t===zo&&(t=a.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Wo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Go(e){return(0,e._init)(e._payload)}function Yo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=jc(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Dc(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===A&&Go(o)===t.type)?((r=a(t,n.props)).ref=Vo(e,t,n),r.return=e,r):((r=Ic(n.type,n.key,n.props,null,e.mode,r)).ref=Vo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Mc(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Bc(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Dc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Ic(t.type,t.key,t.props,null,e.mode,n)).ref=Vo(e,null,t),n.return=e,n;case k:return(t=Mc(t,e.mode,n)).return=e,t;case A:return p(e,(0,t._init)(t._payload),n)}if(te(t)||I(t))return(t=Bc(t,e.mode,n,null)).return=e,t;Wo(e,t)}return null}function f(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===a?c(e,t,n,r):null;case k:return n.key===a?u(e,t,n,r):null;case A:return f(e,t,(a=n._init)(n._payload),r)}if(te(n)||I(n))return null!==a?null:d(e,t,n,r,null);Wo(e,n)}return null}function m(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case A:return m(e,t,n,(0,r._init)(r._payload),a)}if(te(r)||I(r))return d(t,e=e.get(n)||null,r,a,null);Wo(t,r)}return null}function h(a,o,s,l){for(var c=null,u=null,d=o,h=o=0,g=null;null!==d&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var y=f(a,d,s[h],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(a,d),o=i(y,o,h),null===u?c=y:u.sibling=y,u=y,d=g}if(h===s.length)return n(a,d),ao&&Xa(a,h),c;if(null===d){for(;h<s.length;h++)null!==(d=p(a,s[h],l))&&(o=i(d,o,h),null===u?c=d:u.sibling=d,u=d);return ao&&Xa(a,h),c}for(d=r(a,d);h<s.length;h++)null!==(g=m(d,a,h,s[h],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?h:g.key),o=i(g,o,h),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(a,e)})),ao&&Xa(a,h),c}function g(a,s,l,c){var u=I(l);if("function"!=typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,h=s,g=s=0,y=null,b=l.next();null!==h&&!b.done;g++,b=l.next()){h.index>g?(y=h,h=null):y=h.sibling;var v=f(a,h,b.value,c);if(null===v){null===h&&(h=y);break}e&&h&&null===v.alternate&&t(a,h),s=i(v,s,g),null===d?u=v:d.sibling=v,d=v,h=y}if(b.done)return n(a,h),ao&&Xa(a,g),u;if(null===h){for(;!b.done;g++,b=l.next())null!==(b=p(a,b.value,c))&&(s=i(b,s,g),null===d?u=b:d.sibling=b,d=b);return ao&&Xa(a,g),u}for(h=r(a,h);!b.done;g++,b=l.next())null!==(b=m(h,a,g,b.value,c))&&(e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),s=i(b,s,g),null===d?u=b:d.sibling=b,d=b);return e&&h.forEach((function(e){return t(a,e)})),ao&&Xa(a,g),u}return function e(r,o,i,l){if("object"==typeof i&&null!==i&&i.type===S&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case w:e:{for(var c=i.key,u=o;null!==u;){if(u.key===c){if((c=i.type)===S){if(7===u.tag){n(r,u.sibling),(o=a(u,i.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===A&&Go(c)===u.type){n(r,u.sibling),(o=a(u,i.props)).ref=Vo(r,u,i),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}i.type===S?((o=Bc(i.props.children,r.mode,l,i.key)).return=r,r=o):((l=Ic(i.type,i.key,i.props,null,r.mode,l)).ref=Vo(r,o,i),l.return=r,r=l)}return s(r);case k:e:{for(u=i.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(r,o.sibling),(o=a(o,i.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Mc(i,r.mode,l)).return=r,r=o}return s(r);case A:return e(r,o,(u=i._init)(i._payload),l)}if(te(i))return h(r,o,i,l);if(I(i))return g(r,o,i,l);Wo(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==o&&6===o.tag?(n(r,o.sibling),(o=a(o,i)).return=r,r=o):(n(r,o),(o=Dc(i,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var Ko=Yo(!0),Xo=Yo(!1),Jo={},ei=Ea(Jo),ti=Ea(Jo),ni=Ea(Jo);function ri(e){if(e===Jo)throw Error(o(174));return e}function ai(e,t){switch(Ca(ni,t),Ca(ti,e),Ca(ei,Jo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_a(ei),Ca(ei,t)}function oi(){_a(ei),_a(ti),_a(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=le(t,e.type);t!==n&&(Ca(ti,e),Ca(ei,n))}function si(e){ti.current===e&&(_a(ei),_a(ti))}var li=Ea(0);function ci(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function di(){for(var e=0;e<ui.length;e++)ui[e]._workInProgressVersionPrimary=null;ui.length=0}var pi=x.ReactCurrentDispatcher,fi=x.ReactCurrentBatchConfig,mi=0,hi=null,gi=null,yi=null,bi=!1,vi=!1,xi=0,wi=0;function ki(){throw Error(o(321))}function Si(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Ei(e,t,n,r,a,i){if(mi=i,hi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pi.current=null===e||null===e.memoizedState?ss:ls,e=n(r,a),vi){i=0;do{if(vi=!1,xi=0,25<=i)throw Error(o(301));i+=1,yi=gi=null,t.updateQueue=null,pi.current=cs,e=n(r,a)}while(vi)}if(pi.current=is,t=null!==gi&&null!==gi.next,mi=0,yi=gi=hi=null,bi=!1,t)throw Error(o(300));return e}function _i(){var e=0!==xi;return xi=0,e}function Ci(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===yi?hi.memoizedState=yi=e:yi=yi.next=e,yi}function Ti(){if(null===gi){var e=hi.alternate;e=null!==e?e.memoizedState:null}else e=gi.next;var t=null===yi?hi.memoizedState:yi.next;if(null!==t)yi=t,gi=e;else{if(null===e)throw Error(o(310));e={memoizedState:(gi=e).memoizedState,baseState:gi.baseState,baseQueue:gi.baseQueue,queue:gi.queue,next:null},null===yi?hi.memoizedState=yi=e:yi=yi.next=e}return yi}function Ri(e,t){return"function"==typeof t?t(e):t}function Li(e){var t=Ti(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=gi,a=r.baseQueue,i=n.pending;if(null!==i){if(null!==a){var s=a.next;a.next=i.next,i.next=s}r.baseQueue=a=i,n.pending=null}if(null!==a){i=a.next,r=r.baseState;var l=s=null,c=null,u=i;do{var d=u.lane;if((mi&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=r):c=c.next=p,hi.lanes|=d,Fl|=d}u=u.next}while(null!==u&&u!==i);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(xs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{i=a.lane,hi.lanes|=i,Fl|=i,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ni(e){var t=Ti(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{i=e(i,s.action),s=s.next}while(s!==a);sr(i,t.memoizedState)||(xs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Pi(){}function Ai(e,t){var n=hi,r=Ti(),a=t(),i=!sr(r.memoizedState,a);if(i&&(r.memoizedState=a,xs=!0),r=r.queue,Hi(Ii.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==yi&&1&yi.memoizedState.tag){if(n.flags|=2048,Mi(9,ji.bind(null,n,r,a,t),void 0,null),null===Nl)throw Error(o(349));0!=(30&mi)||Oi(n,t,a)}return a}function Oi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=hi.updateQueue)?(t={lastEffect:null,stores:null},hi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ji(e,t,n,r){t.value=n,t.getSnapshot=r,Bi(t)&&Fi(e)}function Ii(e,t,n){return n((function(){Bi(t)&&Fi(e)}))}function Bi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Fi(e){var t=No(e,1);null!==t&&rc(t,e,1,-1)}function Di(e){var t=Ci();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,hi,e),[t.memoizedState,e]}function Mi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=hi.updateQueue)?(t={lastEffect:null,stores:null},hi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function zi(){return Ti().memoizedState}function $i(e,t,n,r){var a=Ci();hi.flags|=e,a.memoizedState=Mi(1|t,n,void 0,void 0===r?null:r)}function qi(e,t,n,r){var a=Ti();r=void 0===r?null:r;var o=void 0;if(null!==gi){var i=gi.memoizedState;if(o=i.destroy,null!==r&&Si(r,i.deps))return void(a.memoizedState=Mi(t,n,o,r))}hi.flags|=e,a.memoizedState=Mi(1|t,n,o,r)}function Ui(e,t){return $i(8390656,8,e,t)}function Hi(e,t){return qi(2048,8,e,t)}function Qi(e,t){return qi(4,2,e,t)}function Zi(e,t){return qi(4,4,e,t)}function Vi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Wi(e,t,n){return n=null!=n?n.concat([e]):null,qi(4,4,Vi.bind(null,t,e),n)}function Gi(){}function Yi(e,t){var n=Ti();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ki(e,t){var n=Ti();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xi(e,t,n){return 0==(21&mi)?(e.baseState&&(e.baseState=!1,xs=!0),e.memoizedState=n):(sr(n,t)||(n=ht(),hi.lanes|=n,Fl|=n,e.baseState=!0),t)}function Ji(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=fi.transition;fi.transition={};try{e(!1),t()}finally{vt=n,fi.transition=r}}function es(){return Ti().memoizedState}function ts(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))as(t,n);else if(null!==(n=Lo(e,t,n,r))){rc(n,e,r,tc()),os(n,t,r)}}function ns(e,t,n){var r=nc(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))as(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=o(i,n);if(a.hasEagerState=!0,a.eagerState=s,sr(s,i)){var l=t.interleaved;return null===l?(a.next=a,Ro(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}}catch(c){}null!==(n=Lo(e,t,a,r))&&(rc(n,e,r,a=tc()),os(n,t,r))}}function rs(e){var t=e.alternate;return e===hi||null!==t&&t===hi}function as(e,t){vi=bi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var is={readContext:Co,useCallback:ki,useContext:ki,useEffect:ki,useImperativeHandle:ki,useInsertionEffect:ki,useLayoutEffect:ki,useMemo:ki,useReducer:ki,useRef:ki,useState:ki,useDebugValue:ki,useDeferredValue:ki,useTransition:ki,useMutableSource:ki,useSyncExternalStore:ki,useId:ki,unstable_isNewReconciler:!1},ss={readContext:Co,useCallback:function(e,t){return Ci().memoizedState=[e,void 0===t?null:t],e},useContext:Co,useEffect:Ui,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,$i(4194308,4,Vi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $i(4194308,4,e,t)},useInsertionEffect:function(e,t){return $i(4,2,e,t)},useMemo:function(e,t){var n=Ci();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ci();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,hi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ci().memoizedState=e},useState:Di,useDebugValue:Gi,useDeferredValue:function(e){return Ci().memoizedState=e},useTransition:function(){var e=Di(!1),t=e[0];return e=Ji.bind(null,e[1]),Ci().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=hi,a=Ci();if(ao){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Nl)throw Error(o(349));0!=(30&mi)||Oi(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Ui(Ii.bind(null,r,i,e),[e]),r.flags|=2048,Mi(9,ji.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ci(),t=Nl.identifierPrefix;if(ao){var n=Ka;t=":"+t+"R"+(n=(Ya&~(1<<32-it(Ya)-1)).toString(32)+n),0<(n=xi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:Co,useCallback:Yi,useContext:Co,useEffect:Hi,useImperativeHandle:Wi,useInsertionEffect:Qi,useLayoutEffect:Zi,useMemo:Ki,useReducer:Li,useRef:zi,useState:function(){return Li(Ri)},useDebugValue:Gi,useDeferredValue:function(e){return Xi(Ti(),gi.memoizedState,e)},useTransition:function(){return[Li(Ri)[0],Ti().memoizedState]},useMutableSource:Pi,useSyncExternalStore:Ai,useId:es,unstable_isNewReconciler:!1},cs={readContext:Co,useCallback:Yi,useContext:Co,useEffect:Hi,useImperativeHandle:Wi,useInsertionEffect:Qi,useLayoutEffect:Zi,useMemo:Ki,useReducer:Ni,useRef:zi,useState:function(){return Ni(Ri)},useDebugValue:Gi,useDeferredValue:function(e){var t=Ti();return null===gi?t.memoizedState=e:Xi(t,gi.memoizedState,e)},useTransition:function(){return[Ni(Ri)[0],Ti().memoizedState]},useMutableSource:Pi,useSyncExternalStore:Ai,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:a,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ps(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function ms(e,t,n){(n=jo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ql||(Ql=!0,Zl=r),ps(0,t)},n}function hs(e,t,n){(n=jo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){ps(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){ps(0,t),"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function ys(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bs(e,t,n,r,a){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=jo(-1,1)).tag=2,Io(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var vs=x.ReactCurrentOwner,xs=!1;function ws(e,t,n,r){t.child=null===e?Xo(t,null,n,r):Ko(t,e.child,n,r)}function ks(e,t,n,r,a){n=n.render;var o=t.ref;return _o(t,a),r=Ei(e,t,n,r,o,a),n=_i(),null===e||xs?(ao&&n&&eo(t),t.flags|=1,ws(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Qs(e,t,a))}function Ss(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||Oc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ic(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Es(e,t,o,r,a))}if(o=e.child,0==(e.lanes&a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)return Qs(e,t,a)}return t.flags|=1,(e=jc(o,r)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(xs=!1,t.pendingProps=r=o,0==(e.lanes&a))return t.lanes=e.lanes,Qs(e,t,a);0!=(131072&e.flags)&&(xs=!0)}}return Ts(e,t,n,r,a)}function _s(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ca(jl,Ol),Ol|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ca(jl,Ol),Ol|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ca(jl,Ol),Ol|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ca(jl,Ol),Ol|=r;return ws(e,t,a,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,r,a){var o=Aa(n)?Na:Ra.current;return o=Pa(t,o),_o(t,a),n=Ei(e,t,n,r,o,a),r=_i(),null===e||xs?(ao&&r&&eo(t),t.flags|=1,ws(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Qs(e,t,a))}function Rs(e,t,n,r,a){if(Aa(n)){var o=!0;Ba(t)}else o=!1;if(_o(t,a),null===t.stateNode)Hs(e,t),Ho(t,n,r),Zo(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=n.contextType;"object"==typeof c&&null!==c?c=Co(c):c=Pa(t,c=Aa(n)?Na:Ra.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||l!==c)&&Qo(t,i,r,c),Po=!1;var p=t.memoizedState;i.state=p,Do(t,r,i,a),l=t.memoizedState,s!==r||p!==l||La.current||Po?("function"==typeof u&&($o(t,n,u,r),l=t.memoizedState),(s=Po||Uo(t,n,s,r,p,l,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Oo(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:yo(t.type,s),i.props=c,d=t.pendingProps,p=i.context,"object"==typeof(l=n.contextType)&&null!==l?l=Co(l):l=Pa(t,l=Aa(n)?Na:Ra.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||p!==l)&&Qo(t,i,r,l),Po=!1,p=t.memoizedState,i.state=p,Do(t,r,i,a);var m=t.memoizedState;s!==d||p!==m||La.current||Po?("function"==typeof f&&($o(t,n,f,r),m=t.memoizedState),(c=Po||Uo(t,n,c,r,p,m,l)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=l,r=c):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ls(e,t,n,r,o,a)}function Ls(e,t,n,r,a,o){Cs(e,t);var i=0!=(128&t.flags);if(!r&&!i)return a&&Fa(t,n,!1),Qs(e,t,o);r=t.stateNode,vs.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ko(t,e.child,null,o),t.child=Ko(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,a&&Fa(t,n,!0),t.child}function Ns(e){var t=e.stateNode;t.pendingContext?ja(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ja(0,t.context,!1),ai(e,t.containerInfo)}function Ps(e,t,n,r,a){return mo(),ho(a),t.flags|=256,ws(e,t,n,r),t.child}var As,Os,js,Is,Bs={dehydrated:null,treeContext:null,retryLane:0};function Fs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ds(e,t,n){var r,a=t.pendingProps,i=li.current,s=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Ca(li,1&i),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=a.children,e=a.fallback,s?(a=t.mode,s=t.child,l={mode:"hidden",children:l},0==(1&a)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Fc(l,a,0,null),e=Bc(e,a,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Fs(n),t.memoizedState=Bs,e):Ms(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,a,i,s){if(n)return 256&t.flags?(t.flags&=-257,zs(e,t,s,r=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,a=t.mode,r=Fc({mode:"visible",children:r.children},a,0,null),(i=Bc(i,a,s,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&Ko(t,e.child,null,s),t.child.memoizedState=Fs(s),t.memoizedState=Bs,i);if(0==(1&t.mode))return zs(e,t,s,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var l=r.dgst;return r=l,zs(e,t,s,r=ds(i=Error(o(419)),r,void 0))}if(l=0!=(s&e.childLanes),xs||l){if(null!==(r=Nl)){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!=(a&(r.suspendedLanes|s))?0:a)&&a!==i.retryLane&&(i.retryLane=a,No(e,a),rc(r,e,a,-1))}return gc(),zs(e,t,s,r=ds(Error(o(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Rc.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,ro=ca(a.nextSibling),no=t,ao=!0,oo=null,null!==e&&(Va[Wa++]=Ya,Va[Wa++]=Ka,Va[Wa++]=Ga,Ya=e.id,Ka=e.overflow,Ga=t),t=Ms(t,r.children),t.flags|=4096,t)}(e,t,l,a,r,i,n);if(s){s=a.fallback,l=t.mode,r=(i=e.child).sibling;var c={mode:"hidden",children:a.children};return 0==(1&l)&&t.child!==i?((a=t.child).childLanes=0,a.pendingProps=c,t.deletions=null):(a=jc(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==r?s=jc(r,s):(s=Bc(s,l,n,null)).flags|=2,s.return=t,a.return=t,a.sibling=s,t.child=a,a=s,s=t.child,l=null===(l=e.child.memoizedState)?Fs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Bs,a}return e=(s=e.child).sibling,a=jc(s,{mode:"visible",children:a.children}),0==(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function Ms(e,t){return(t=Fc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zs(e,t,n,r){return null!==r&&ho(r),Ko(t,e.child,null,n),(e=Ms(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function $s(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Eo(e.return,t,n)}function qs(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Us(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),0!=(2&(r=li.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$s(e,n,t);else if(19===e.tag)$s(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ca(li,r),0==(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===ci(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),qs(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===ci(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}qs(t,!0,n,null,o);break;case"together":qs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hs(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fl|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=jc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=jc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zs(e,t){if(!ao)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ws(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:case 17:return Aa(t.type)&&Oa(),Vs(t),null;case 3:return r=t.stateNode,oi(),_a(La),_a(Ra),di(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(po(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==oo&&(sc(oo),oo=null))),Os(e,t),Vs(t),null;case 5:si(t);var a=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)js(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Vs(t),null}if(e=ri(ei.current),po(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[pa]=t,r[fa]=i,e=0!=(1&t.mode),n){case"dialog":Mr("cancel",r),Mr("close",r);break;case"iframe":case"object":case"embed":Mr("load",r);break;case"video":case"audio":for(a=0;a<Ir.length;a++)Mr(Ir[a],r);break;case"source":Mr("error",r);break;case"img":case"image":case"link":Mr("error",r),Mr("load",r);break;case"details":Mr("toggle",r);break;case"input":Y(r,i),Mr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Mr("invalid",r);break;case"textarea":ae(r,i),Mr("invalid",r)}for(var l in be(n,i),a=null,i)if(i.hasOwnProperty(l)){var c=i[l];"children"===l?"string"==typeof c?r.textContent!==c&&(!0!==i.suppressHydrationWarning&&Xr(r.textContent,c,e),a=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Xr(r.textContent,c,e),a=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Mr("scroll",r)}switch(n){case"input":Z(r),J(r,i,!0);break;case"textarea":Z(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Jr)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[pa]=t,e[fa]=r,As(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(n,r),n){case"dialog":Mr("cancel",e),Mr("close",e),a=r;break;case"iframe":case"object":case"embed":Mr("load",e),a=r;break;case"video":case"audio":for(a=0;a<Ir.length;a++)Mr(Ir[a],e);a=r;break;case"source":Mr("error",e),a=r;break;case"img":case"image":case"link":Mr("error",e),Mr("load",e),a=r;break;case"details":Mr("toggle",e),a=r;break;case"input":Y(e,r),a=G(e,r),Mr("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=F({},r,{value:void 0}),Mr("invalid",e);break;case"textarea":ae(e,r),a=re(e,r),Mr("invalid",e)}for(i in be(n,a),c=a)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?ge(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===i?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=u&&"onScroll"===i&&Mr("scroll",e):null!=u&&v(e,i,u,l))}switch(n){case"input":Z(e),J(e,r,!1);break;case"textarea":Z(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vs(t),null;case 6:if(e&&null!=t.stateNode)Is(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=ri(ni.current),ri(ei.current),po(t)){if(r=t.stateNode,n=t.memoizedProps,r[pa]=t,(i=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Xr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[pa]=t,t.stateNode=r}return Vs(t),null;case 13:if(_a(li),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ao&&null!==ro&&0!=(1&t.mode)&&0==(128&t.flags))fo(),mo(),t.flags|=98560,i=!1;else if(i=po(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(o(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(o(317));i[pa]=t}else mo(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vs(t),i=!1}else null!==oo&&(sc(oo),oo=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&li.current)?0===Il&&(Il=3):gc())),null!==t.updateQueue&&(t.flags|=4),Vs(t),null);case 4:return oi(),Os(e,t),null===e&&qr(t.stateNode.containerInfo),Vs(t),null;case 10:return So(t.type._context),Vs(t),null;case 19:if(_a(li),null===(i=t.memoizedState))return Vs(t),null;if(r=0!=(128&t.flags),null===(l=i.rendering))if(r)Zs(i,!1);else{if(0!==Il||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ci(e))){for(t.flags|=128,Zs(i,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ca(li,1&li.current|2),t.child}e=e.sibling}null!==i.tail&&Ke()>Ul&&(t.flags|=128,r=!0,Zs(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ci(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Zs(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!ao)return Vs(t),null}else 2*Ke()-i.renderingStartTime>Ul&&1073741824!==n&&(t.flags|=128,r=!0,Zs(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=i.last)?n.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ke(),t.sibling=null,n=li.current,Ca(li,r?1&n|2:1&n),t):(Vs(t),null);case 22:case 23:return pc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Ol)&&(Vs(t),6&t.subtreeFlags&&(t.flags|=8192)):Vs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Gs(e,t){switch(to(t),t.tag){case 1:return Aa(t.type)&&Oa(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oi(),_a(La),_a(Ra),di(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return si(t),null;case 13:if(_a(li),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));mo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _a(li),null;case 4:return oi(),null;case 10:return So(t.type._context),null;case 22:case 23:return pc(),null;default:return null}}As=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Os=function(){},js=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,ri(ei.current);var o,i=null;switch(n){case"input":a=G(e,a),r=G(e,r),i=[];break;case"select":a=F({},a,{value:void 0}),r=F({},r,{value:void 0}),i=[];break;case"textarea":a=re(e,a),r=re(e,r),i=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(u in be(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u){var l=a[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(i||(i=[]),i.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(i=i||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(i=i||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Mr("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Is=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Ks=!1,Xs="function"==typeof WeakSet?WeakSet:Set,Js=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){_c(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){_c(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&tl(t,n,o)}a=a.next}while(a!==r)}}function al(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pa],delete t[fa],delete t[ha],delete t[ga],delete t[ya])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var dl=null,pl=!1;function fl(e,t,n){for(n=n.child;null!==n;)ml(e,t,n),n=n.sibling}function ml(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(at,n)}catch(s){}switch(n.tag){case 5:Ks||el(n,t);case 6:var r=dl,a=pl;dl=null,fl(e,t,n),pl=a,null!==(dl=r)&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?la(e.parentNode,n):1===e.nodeType&&la(e,n),qt(e)):la(dl,n.stateNode));break;case 4:r=dl,a=pl,dl=n.stateNode.containerInfo,pl=!0,fl(e,t,n),dl=r,pl=a;break;case 0:case 11:case 14:case 15:if(!Ks&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,void 0!==i&&(0!=(2&o)||0!=(4&o))&&tl(n,t,i),a=a.next}while(a!==r)}fl(e,t,n);break;case 1:if(!Ks&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){_c(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ks=(r=Ks)||null!==n.memoizedState,fl(e,t,n),Ks=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach((function(t){var r=Lc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,pl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,pl=!0;break e}l=l.return}if(null===dl)throw Error(o(160));ml(i,s,a),dl=null,pl=!1;var c=a.alternate;null!==c&&(c.return=null),a.return=null}catch(u){_c(a,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)yl(t,e),t=t.sibling}function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),bl(e),4&r){try{rl(3,e,e.return),al(3,e)}catch(g){_c(e,e.return,g)}try{rl(5,e,e.return)}catch(g){_c(e,e.return,g)}}break;case 1:gl(t,e),bl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(gl(t,e),bl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var a=e.stateNode;try{pe(a,"")}catch(g){_c(e,e.return,g)}}if(4&r&&null!=(a=e.stateNode)){var i=e.memoizedProps,s=null!==n?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===i.type&&null!=i.name&&K(a,i),ve(l,s);var u=ve(l,i);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?ge(a,p):"dangerouslySetInnerHTML"===d?de(a,p):"children"===d?pe(a,p):v(a,d,p,u)}switch(l){case"input":X(a,i);break;case"textarea":oe(a,i);break;case"select":var f=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var m=i.value;null!=m?ne(a,!!i.multiple,m,!1):f!==!!i.multiple&&(null!=i.defaultValue?ne(a,!!i.multiple,i.defaultValue,!0):ne(a,!!i.multiple,i.multiple?[]:"",!1))}a[fa]=i}catch(g){_c(e,e.return,g)}}break;case 6:if(gl(t,e),bl(e),4&r){if(null===e.stateNode)throw Error(o(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(g){_c(e,e.return,g)}}break;case 3:if(gl(t,e),bl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(g){_c(e,e.return,g)}break;case 4:default:gl(t,e),bl(e);break;case 13:gl(t,e),bl(e),8192&(a=e.child).flags&&(i=null!==a.memoizedState,a.stateNode.isHidden=i,!i||null!==a.alternate&&null!==a.alternate.memoizedState||(ql=Ke())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ks=(u=Ks)||d,gl(t,e),Ks=u):gl(t,e),bl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Js=e,d=e.child;null!==d;){for(p=Js=d;null!==Js;){switch(m=(f=Js).child,f.tag){case 0:case 11:case 14:case 15:rl(4,f,f.return);break;case 1:el(f,f.return);var h=f.stateNode;if("function"==typeof h.componentWillUnmount){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(g){_c(r,n,g)}}break;case 5:el(f,f.return);break;case 22:if(null!==f.memoizedState){kl(p);continue}}null!==m?(m.return=f,Js=m):kl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{a=p.stateNode,u?"function"==typeof(i=a.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=p.stateNode,s=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=he("display",s))}catch(g){_c(e,e.return,g)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(g){_c(e,e.return,g)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:gl(t,e),bl(e),4&r&&hl(e);case 21:}}function bl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(pe(a,""),r.flags&=-33),ul(e,ll(e),a);break;case 3:case 4:var i=r.stateNode.containerInfo;cl(e,ll(e),i);break;default:throw Error(o(161))}}catch(s){_c(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Js=e,xl(e,t,n)}function xl(e,t,n){for(var r=0!=(1&e.mode);null!==Js;){var a=Js,o=a.child;if(22===a.tag&&r){var i=null!==a.memoizedState||Ys;if(!i){var s=a.alternate,l=null!==s&&null!==s.memoizedState||Ks;s=Ys;var c=Ks;if(Ys=i,(Ks=l)&&!c)for(Js=a;null!==Js;)l=(i=Js).child,22===i.tag&&null!==i.memoizedState?Sl(a):null!==l?(l.return=i,Js=l):Sl(a);for(;null!==o;)Js=o,xl(o,t,n),o=o.sibling;Js=a,Ys=s,Ks=c}wl(e)}else 0!=(8772&a.subtreeFlags)&&null!==o?(o.return=a,Js=o):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ks||al(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ks)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:yo(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Mo(t,i,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Mo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&qt(p)}}}break;default:throw Error(o(163))}Ks||512&t.flags&&ol(t)}catch(f){_c(t,t.return,f)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function kl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{al(4,t)}catch(l){_c(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(l){_c(t,a,l)}}var o=t.return;try{ol(t)}catch(l){_c(t,o,l)}break;case 5:var i=t.return;try{ol(t)}catch(l){_c(t,i,l)}}}catch(l){_c(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var El,_l=Math.ceil,Cl=x.ReactCurrentDispatcher,Tl=x.ReactCurrentOwner,Rl=x.ReactCurrentBatchConfig,Ll=0,Nl=null,Pl=null,Al=0,Ol=0,jl=Ea(0),Il=0,Bl=null,Fl=0,Dl=0,Ml=0,zl=null,$l=null,ql=0,Ul=1/0,Hl=null,Ql=!1,Zl=null,Vl=null,Wl=!1,Gl=null,Yl=0,Kl=0,Xl=null,Jl=-1,ec=0;function tc(){return 0!=(6&Ll)?Ke():-1!==Jl?Jl:Jl=Ke()}function nc(e){return 0==(1&e.mode)?1:0!=(2&Ll)&&0!==Al?Al&-Al:null!==go.transition?(0===ec&&(ec=ht()),ec):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function rc(e,t,n,r){if(50<Kl)throw Kl=0,Xl=null,Error(o(185));yt(e,n,r),0!=(2&Ll)&&e===Nl||(e===Nl&&(0==(2&Ll)&&(Dl|=n),4===Il&&lc(e,Al)),ac(e,r),1===n&&0===Ll&&0==(1&t.mode)&&(Ul=Ke()+500,Ma&&qa()))}function ac(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-it(o),s=1<<i,l=a[i];-1===l?0!=(s&n)&&0==(s&r)||(a[i]=ft(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=pt(e,e===Nl?Al:0);if(0===r)null!==n&&We(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&We(n),1===t)0===e.tag?function(e){Ma=!0,$a(e)}(cc.bind(null,e)):$a(cc.bind(null,e)),ia((function(){0==(6&Ll)&&qa()})),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Nc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Jl=-1,ec=0,0!=(6&Ll))throw Error(o(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=pt(e,e===Nl?Al:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=yc(e,r);else{t=r;var a=Ll;Ll|=2;var i=hc();for(Nl===e&&Al===t||(Hl=null,Ul=Ke()+500,fc(e,t));;)try{vc();break}catch(l){mc(e,l)}ko(),Cl.current=i,Ll=a,null!==Pl?t=0:(Nl=null,Al=0,t=Il)}if(0!==t){if(2===t&&(0!==(a=mt(e))&&(r=a,t=ic(e,a))),1===t)throw n=Bl,fc(e,0),lc(e,r),ac(e,Ke()),n;if(6===t)lc(e,r);else{if(a=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!sr(o(),a))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)&&(2===(t=yc(e,r))&&(0!==(i=mt(e))&&(r=i,t=ic(e,i))),1===t))throw n=Bl,fc(e,0),lc(e,r),ac(e,Ke()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:kc(e,$l,Hl);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=ql+500-Ke())){if(0!==pt(e,0))break;if(((a=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ra(kc.bind(null,e,$l,Hl),t);break}kc(e,$l,Hl);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var s=31-it(r);i=1<<s,(s=t[s])>a&&(a=s),r&=~i}if(r=a,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_l(r/1960))-r)){e.timeoutHandle=ra(kc.bind(null,e,$l,Hl),r);break}kc(e,$l,Hl);break;default:throw Error(o(329))}}}return ac(e,Ke()),e.callbackNode===n?oc.bind(null,e):null}function ic(e,t){var n=zl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=yc(e,t))&&(t=$l,$l=n,null!==t&&sc(t)),e}function sc(e){null===$l?$l=e:$l.push.apply($l,e)}function lc(e,t){for(t&=~Ml,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!=(6&Ll))throw Error(o(327));Sc();var t=pt(e,0);if(0==(1&t))return ac(e,Ke()),null;var n=yc(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=Bl,fc(e,0),lc(e,t),ac(e,Ke()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kc(e,$l,Hl),ac(e,Ke()),null}function uc(e,t){var n=Ll;Ll|=1;try{return e(t)}finally{0===(Ll=n)&&(Ul=Ke()+500,Ma&&qa())}}function dc(e){null!==Gl&&0===Gl.tag&&0==(6&Ll)&&Sc();var t=Ll;Ll|=1;var n=Rl.transition,r=vt;try{if(Rl.transition=null,vt=1,e)return e()}finally{vt=r,Rl.transition=n,0==(6&(Ll=t))&&qa()}}function pc(){Ol=jl.current,_a(jl)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==Pl)for(n=Pl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Oa();break;case 3:oi(),_a(La),_a(Ra),di();break;case 5:si(r);break;case 4:oi();break;case 13:case 19:_a(li);break;case 10:So(r.type._context);break;case 22:case 23:pc()}n=n.return}if(Nl=e,Pl=e=jc(e.current,null),Al=Ol=t,Il=0,Bl=null,Ml=Dl=Fl=0,$l=zl=null,null!==To){for(t=0;t<To.length;t++)if(null!==(r=(n=To[t]).interleaved)){n.interleaved=null;var a=r.next,o=n.pending;if(null!==o){var i=o.next;o.next=a,r.next=i}n.pending=r}To=null}return e}function mc(e,t){for(;;){var n=Pl;try{if(ko(),pi.current=is,bi){for(var r=hi.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}bi=!1}if(mi=0,yi=gi=hi=null,vi=!1,xi=0,Tl.current=null,null===n||null===n.return){Il=1,Bl=t,Pl=null;break}e:{var i=e,s=n.return,l=n,c=t;if(t=Al,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(0==(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=ys(s);if(null!==m){m.flags&=-257,bs(m,s,l,0,t),1&m.mode&&gs(i,u,t),c=u;var h=(t=m).updateQueue;if(null===h){var g=new Set;g.add(c),t.updateQueue=g}else h.add(c);break e}if(0==(1&t)){gs(i,u,t),gc();break e}c=Error(o(426))}else if(ao&&1&l.mode){var y=ys(s);if(null!==y){0==(65536&y.flags)&&(y.flags|=256),bs(y,s,l,0,t),ho(us(c,l));break e}}i=c=us(c,l),4!==Il&&(Il=2),null===zl?zl=[i]:zl.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Fo(i,ms(0,c,t));break e;case 1:l=c;var b=i.type,v=i.stateNode;if(0==(128&i.flags)&&("function"==typeof b.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===Vl||!Vl.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t,Fo(i,hs(i,l,t));break e}}i=i.return}while(null!==i)}wc(n)}catch(x){t=x,Pl===n&&null!==n&&(Pl=n=n.return);continue}break}}function hc(){var e=Cl.current;return Cl.current=is,null===e?is:e}function gc(){0!==Il&&3!==Il&&2!==Il||(Il=4),null===Nl||0==(268435455&Fl)&&0==(268435455&Dl)||lc(Nl,Al)}function yc(e,t){var n=Ll;Ll|=2;var r=hc();for(Nl===e&&Al===t||(Hl=null,fc(e,t));;)try{bc();break}catch(a){mc(e,a)}if(ko(),Ll=n,Cl.current=r,null!==Pl)throw Error(o(261));return Nl=null,Al=0,Il}function bc(){for(;null!==Pl;)xc(Pl)}function vc(){for(;null!==Pl&&!Ge();)xc(Pl)}function xc(e){var t=El(e.alternate,e,Ol);e.memoizedProps=e.pendingProps,null===t?wc(e):Pl=t,Tl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ws(n,t,Ol)))return void(Pl=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Pl=n);if(null===e)return Il=6,void(Pl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Pl=t);Pl=t=e}while(null!==t);0===Il&&(Il=5)}function kc(e,t,n){var r=vt,a=Rl.transition;try{Rl.transition=null,vt=1,function(e,t,n,r){do{Sc()}while(null!==Gl);if(0!=(6&Ll))throw Error(o(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-it(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(e,i),e===Nl&&(Pl=Nl=null,Al=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Wl||(Wl=!0,Nc(tt,(function(){return Sc(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Rl.transition,Rl.transition=null;var s=vt;vt=1;var l=Ll;Ll|=4,Tl.current=null,function(e,t){if(ea=Ht,fr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(w){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var m;p!==n||0!==a&&3!==p.nodeType||(l=s+a),p!==i||0!==r&&3!==p.nodeType||(c=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(m=p.firstChild);)f=p,p=m;for(;;){if(p===e)break t;if(f===n&&++u===a&&(l=s),f===i&&++d===r&&(c=s),null!==(m=p.nextSibling))break;f=(p=f).parentNode}p=m}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ta={focusedElem:e,selectionRange:n},Ht=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var h=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var g=h.memoizedProps,y=h.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:yo(t.type,g),y);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(o(163))}}catch(w){_c(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}h=nl,nl=!1}(e,n),yl(n,e),mr(ta),Ht=!!ea,ta=ea=null,e.current=n,vl(n,e,a),Ye(),Ll=l,vt=s,Rl.transition=i}else e.current=n;if(Wl&&(Wl=!1,Gl=e,Yl=a),i=e.pendingLanes,0===i&&(Vl=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(at,e,void 0,128==(128&e.current.flags))}catch(t){}}(n.stateNode),ac(e,Ke()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(Ql)throw Ql=!1,e=Zl,Zl=null,e;0!=(1&Yl)&&0!==e.tag&&Sc(),i=e.pendingLanes,0!=(1&i)?e===Xl?Kl++:(Kl=0,Xl=e):Kl=0,qa()}(e,t,n,r)}finally{Rl.transition=a,vt=r}return null}function Sc(){if(null!==Gl){var e=xt(Yl),t=Rl.transition,n=vt;try{if(Rl.transition=null,vt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Yl=0,0!=(6&Ll))throw Error(o(331));var a=Ll;for(Ll|=4,Js=e.current;null!==Js;){var i=Js,s=i.child;if(0!=(16&Js.flags)){var l=i.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:rl(8,d,i)}var p=d.child;if(null!==p)p.return=d,Js=p;else for(;null!==Js;){var f=(d=Js).sibling,m=d.return;if(il(d),d===u){Js=null;break}if(null!==f){f.return=m,Js=f;break}Js=m}}}var h=i.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Js=i}}if(0!=(2064&i.subtreeFlags)&&null!==s)s.return=i,Js=s;else e:for(;null!==Js;){if(0!=(2048&(i=Js).flags))switch(i.tag){case 0:case 11:case 15:rl(9,i,i.return)}var b=i.sibling;if(null!==b){b.return=i.return,Js=b;break e}Js=i.return}}var v=e.current;for(Js=v;null!==Js;){var x=(s=Js).child;if(0!=(2064&s.subtreeFlags)&&null!==x)x.return=s,Js=x;else e:for(s=v;null!==Js;){if(0!=(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:al(9,l)}}catch(k){_c(l,l.return,k)}if(l===s){Js=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Js=w;break e}Js=l.return}}if(Ll=a,qa(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(at,e)}catch(k){}r=!0}return r}finally{vt=n,Rl.transition=t}}return!1}function Ec(e,t,n){e=Io(e,t=ms(0,t=us(n,t),1),1),t=tc(),null!==e&&(yt(e,1,t),ac(e,t))}function _c(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){t=Io(t,e=hs(t,e=us(n,e),1),1),e=tc(),null!==t&&(yt(t,1,e),ac(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Nl===e&&(Al&n)===n&&(4===Il||3===Il&&(130023424&Al)===Al&&500>Ke()-ql?fc(e,0):Ml|=n),ac(e,t)}function Tc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=tc();null!==(e=No(e,t))&&(yt(e,t,n),ac(e,n))}function Rc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function Lc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Tc(e,n)}function Nc(e,t){return Ve(e,t)}function Pc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ac(e,t,n,r){return new Pc(e,t,n,r)}function Oc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function jc(e,t){var n=e.alternate;return null===n?((n=Ac(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ic(e,t,n,r,a,i){var s=2;if(r=e,"function"==typeof e)Oc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Bc(n.children,a,i,t);case E:s=8,a|=8;break;case _:return(e=Ac(12,n,t,2|a)).elementType=_,e.lanes=i,e;case L:return(e=Ac(13,n,t,a)).elementType=L,e.lanes=i,e;case N:return(e=Ac(19,n,t,a)).elementType=N,e.lanes=i,e;case O:return Fc(n,a,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case T:s=9;break e;case R:s=11;break e;case P:s=14;break e;case A:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ac(s,n,t,a)).elementType=e,t.type=r,t.lanes=i,t}function Bc(e,t,n,r){return(e=Ac(7,e,r,t)).lanes=n,e}function Fc(e,t,n,r){return(e=Ac(22,e,r,t)).elementType=O,e.lanes=n,e.stateNode={isHidden:!1},e}function Dc(e,t,n){return(e=Ac(6,e,null,t)).lanes=n,e}function Mc(e,t,n){return(t=Ac(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zc(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function $c(e,t,n,r,a,o,i,s,l){return e=new zc(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ac(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ao(o),e}function qc(e){if(!e)return Ta;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Aa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Aa(n))return Ia(e,n,t)}return t}function Uc(e,t,n,r,a,o,i,s,l){return(e=$c(n,r,!0,e,0,o,0,s,l)).context=qc(null),n=e.current,(o=jo(r=tc(),a=nc(n))).callback=null!=t?t:null,Io(n,o,a),e.current.lanes=a,yt(e,a,r),ac(e,r),e}function Hc(e,t,n,r){var a=t.current,o=tc(),i=nc(a);return n=qc(n),null===t.context?t.context=n:t.pendingContext=n,(t=jo(o,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Io(a,t,i))&&(rc(e,a,i,o),Bo(e,a,i)),i}function Qc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){Zc(e,t),(e=e.alternate)&&Zc(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||La.current)xs=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return xs=!1,function(e,t,n){switch(t.tag){case 3:Ns(t),mo();break;case 5:ii(t);break;case 1:Aa(t.type)&&Ba(t);break;case 4:ai(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Ca(bo,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ca(li,1&li.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Ds(e,t,n):(Ca(li,1&li.current),null!==(e=Qs(e,t,n))?e.sibling:null);Ca(li,1&li.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Us(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ca(li,li.current),r)break;return null;case 22:case 23:return t.lanes=0,_s(e,t,n)}return Qs(e,t,n)}(e,t,n);xs=0!=(131072&e.flags)}else xs=!1,ao&&0!=(1048576&t.flags)&&Ja(t,Za,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hs(e,t),e=t.pendingProps;var a=Pa(t,Ra.current);_o(t,n),a=Ei(null,t,r,e,a,n);var i=_i();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Aa(r)?(i=!0,Ba(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Ao(t),a.updater=qo,t.stateNode=a,a._reactInternals=t,Zo(t,r,e,n),t=Ls(null,t,r,!0,i,n)):(t.tag=0,ao&&i&&eo(t),ws(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,r=(a=r._init)(r._payload),t.type=r,a=t.tag=function(e){if("function"==typeof e)return Oc(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===P)return 14}return 2}(r),e=yo(r,e),a){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=Rs(null,t,r,e,n);break e;case 11:t=ks(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,yo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,Ts(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 1:return r=t.type,a=t.pendingProps,Rs(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 3:e:{if(Ns(t),null===e)throw Error(o(387));r=t.pendingProps,a=(i=t.memoizedState).element,Oo(e,t),Do(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Ps(e,t,r,n,a=us(Error(o(423)),t));break e}if(r!==a){t=Ps(e,t,r,n,a=us(Error(o(424)),t));break e}for(ro=ca(t.stateNode.containerInfo.firstChild),no=t,ao=!0,oo=null,n=Xo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(mo(),r===a){t=Qs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return ii(t),null===e&&co(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,s=a.children,na(r,a)?s=null:null!==i&&na(r,i)&&(t.flags|=32),Cs(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&co(t),null;case 13:return Ds(e,t,n);case 4:return ai(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ko(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,ks(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,s=a.value,Ca(bo,r._currentValue),r._currentValue=s,null!==i)if(sr(i.value,s)){if(i.children===a.children&&!La.current){t=Qs(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){s=i.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===i.tag){(c=jo(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),Eo(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Eo(s,n,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}ws(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,_o(t,n),r=r(a=Co(a)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return a=yo(r=t.type,t.pendingProps),Ss(e,t,r,a=yo(r.type,a),n);case 15:return Es(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:yo(r,a),Hs(e,t),t.tag=1,Aa(r)?(e=!0,Ba(t)):e=!1,_o(t,n),Ho(t,r,a),Zo(t,r,a,n),Ls(null,t,r,!0,e,n);case 19:return Us(e,t,n);case 22:return _s(e,t,n)}throw Error(o(156,t.tag))};var Wc="function"==typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Kc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function eu(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o;if("function"==typeof a){var s=a;a=function(){var e=Qc(i);s.call(e)}}Hc(t,i,e,a)}else i=function(e,t,n,r,a){if(a){if("function"==typeof r){var o=r;r=function(){var e=Qc(i);o.call(e)}}var i=Uc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=i,e[ma]=i.current,qr(8===e.nodeType?e.parentNode:e),dc(),i}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var s=r;r=function(){var e=Qc(l);s.call(e)}}var l=$c(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[ma]=l.current,qr(8===e.nodeType?e.parentNode:e),dc((function(){Hc(t,l,n,r)})),l}(n,t,e,a,r);return Qc(i)}Yc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Hc(e,t,null,null)},Yc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Hc(null,e,null,null)})),t[ma]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&Ft(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),ac(t,Ke()),0==(6&Ll)&&(Ul=Ke()+500,qa()))}break;case 13:dc((function(){var t=No(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Vc(e,1)}},kt=function(e){if(13===e.tag){var t=No(e,134217728);if(null!==t)rc(t,e,134217728,tc());Vc(e,134217728)}},St=function(e){if(13===e.tag){var t=nc(e),n=No(e,t);if(null!==n)rc(n,e,t,tc());Vc(e,t)}},Et=function(){return vt},_t=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},ke=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=wa(r);if(!a)throw Error(o(90));V(r),X(r,a)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Re=uc,Le=dc;var tu={usingClientEntryPoint:!1,Events:[va,xa,wa,Ce,Te,uc]},nu={findFiberByHostInstance:ba,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qe(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!au.isDisabled&&au.supportsFiber)try{at=au.inject(ru),ot=au}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Kc(e))throw Error(o(299));var n=!1,r="",a=Wc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=$c(e,1,!1,null,0,n,0,r,a),e[ma]=t.current,qr(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Qe(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(o(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Kc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,a=!1,i="",s=Wc;if(null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Uc(t,null,e,1,null!=n?n:null,a,0,i,s),e[ma]=t.current,qr(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Yc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(o(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(o(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[ma]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},745:(e,t,n)=>{"use strict";var r=n(3935);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},3935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4448)},9590:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=i.length)return!1;for(l=s;0!=l--;)if(!o(e[l],i[l]))return!1;return!0}if(n&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!o(l.value[1],i.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((s=e.length)!=i.length)return!1;for(l=s;0!=l--;)if(e[l]!==i[l])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof i.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof i.toString)return e.toString()===i.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(i,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!o(e[c[l]],i[c[l]]))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},405:(e,t,n)=>{"use strict";n.d(t,{B6:()=>Q,ql:()=>J});var r=n(7294),a=n(5697),o=n.n(a),i=n(9590),s=n.n(i),l=n(1143),c=n.n(l),u=n(6774),d=n.n(u);function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function h(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},y={rel:["amphtml","canonical","alternate"]},b={type:["application/ld+json"]},v={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},x=Object.keys(g).map((function(e){return g[e]})),w={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},k=Object.keys(w).reduce((function(e,t){return e[w[t]]=t,e}),{}),S=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},E=function(e){var t=S(e,g.TITLE),n=S(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=S(e,"defaultTitle");return t||r||void 0},_=function(e){return S(e,"onChangeClientState")||function(){}},C=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return p({},e,t)}),{})},T=function(e,t){return t.filter((function(e){return void 0!==e[g.BASE]})).map((function(e){return e[g.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a<r.length;a+=1){var o=r[a].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},R=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var a={};n.filter((function(e){for(var n,o=Object.keys(e),i=0;i<o.length;i+=1){var s=o[i],l=s.toLowerCase();-1===t.indexOf(l)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===l&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),a[n]||(a[n]={}),!r[n][c]&&(a[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(a),i=0;i<o.length;i+=1){var s=o[i],l=p({},r[s],a[s]);r[s]=l}return e}),[]).reverse()},L=function(e,t){if(Array.isArray(e)&&e.length)for(var n=0;n<e.length;n+=1)if(e[n][t])return!0;return!1},N=function(e){return Array.isArray(e)?e.join(""):e},P=function(e,t){return Array.isArray(e)?e.reduce((function(e,n){return function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1}(n,t)?e.priority.push(n):e.default.push(n),e}),{priority:[],default:[]}):{default:e}},A=function(e,t){var n;return p({},e,((n={})[t]=void 0,n))},O=[g.NOSCRIPT,g.SCRIPT,g.STYLE],j=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},I=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},B=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[w[n]||n]=e[n],t}),t)},F=function(e,t){return t.map((function(t,n){var a,o=((a={key:n})["data-rh"]=!0,a);return Object.keys(t).forEach((function(e){var n=w[e]||e;"innerHTML"===n||"cssText"===n?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[n]=t[e]})),r.createElement(e,o)}))},D=function(e,t,n){switch(e){case g.TITLE:return{toComponent:function(){return n=t.titleAttributes,(a={key:e=t.title})["data-rh"]=!0,o=B(n,a),[r.createElement(g.TITLE,o,e)];var e,n,a,o},toString:function(){return function(e,t,n,r){var a=I(n),o=N(t);return a?"<"+e+' data-rh="true" '+a+">"+j(o,r)+"</"+e+">":"<"+e+' data-rh="true">'+j(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return B(t)},toString:function(){return I(t)}};default:return{toComponent:function(){return F(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var a=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var a=void 0===r[t]?t:t+'="'+j(r[t],n)+'"';return e?e+" "+a:a}),""),o=r.innerHTML||r.cssText||"",i=-1===O.indexOf(e);return t+"<"+e+' data-rh="true" '+a+(i?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}},M=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,a=e.htmlAttributes,o=e.noscriptTags,i=e.styleTags,s=e.title,l=void 0===s?"":s,c=e.titleAttributes,u=e.linkTags,d=e.metaTags,p=e.scriptTags,f={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var m=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,a=P(e.metaTags,v),o=P(t,y),i=P(n,b);return{priorityMethods:{toComponent:function(){return[].concat(F(g.META,a.priority),F(g.LINK,o.priority),F(g.SCRIPT,i.priority))},toString:function(){return D(g.META,a.priority,r)+" "+D(g.LINK,o.priority,r)+" "+D(g.SCRIPT,i.priority,r)}},metaTags:a.default,linkTags:o.default,scriptTags:i.default}}(e);f=m.priorityMethods,u=m.linkTags,d=m.metaTags,p=m.scriptTags}return{priority:f,base:D(g.BASE,t,r),bodyAttributes:D("bodyAttributes",n,r),htmlAttributes:D("htmlAttributes",a,r),link:D(g.LINK,u,r),meta:D(g.META,d,r),noscript:D(g.NOSCRIPT,o,r),script:D(g.SCRIPT,p,r),style:D(g.STYLE,i,r),title:D(g.TITLE,{title:l,titleAttributes:c},r)}},z=[],$=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?z:n.instances},add:function(e){(n.canUseDOM?z:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?z:n.instances).indexOf(e);(n.canUseDOM?z:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=M({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},q=r.createContext({}),U=o().shape({setHelmet:o().func,helmetInstances:o().shape({get:o().func,add:o().func,remove:o().func})}),H="undefined"!=typeof document,Q=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new $(r.props.context,t.canUseDOM),r}return f(t,e),t.prototype.render=function(){return r.createElement(q.Provider,{value:this.helmetData.value},this.props.children)},t}(r.Component);Q.canUseDOM=H,Q.propTypes={context:o().shape({helmet:o().shape()}),children:o().node.isRequired},Q.defaultProps={context:{}},Q.displayName="HelmetProvider";var Z=function(e,t){var n,r=document.head||document.querySelector(g.HEAD),a=r.querySelectorAll(e+"[data-rh]"),o=[].slice.call(a),i=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&("innerHTML"===a?r.innerHTML=t.innerHTML:"cssText"===a?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(a,void 0===t[a]?"":t[a]));r.setAttribute("data-rh","true"),o.some((function(e,t){return n=t,r.isEqualNode(e)}))?o.splice(n,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:i}},V=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),a=r?r.split(","):[],o=[].concat(a),i=Object.keys(t),s=0;s<i.length;s+=1){var l=i[s],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===a.indexOf(l)&&a.push(l);var u=o.indexOf(l);-1!==u&&o.splice(u,1)}for(var d=o.length-1;d>=0;d-=1)n.removeAttribute(o[d]);a.length===o.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==i.join(",")&&n.setAttribute("data-rh",i.join(","))}},W=function(e,t){var n=e.baseTag,r=e.htmlAttributes,a=e.linkTags,o=e.metaTags,i=e.noscriptTags,s=e.onChangeClientState,l=e.scriptTags,c=e.styleTags,u=e.title,d=e.titleAttributes;V(g.BODY,e.bodyAttributes),V(g.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=N(e)),V(g.TITLE,t)}(u,d);var p={baseTag:Z(g.BASE,n),linkTags:Z(g.LINK,a),metaTags:Z(g.META,o),noscriptTags:Z(g.NOSCRIPT,i),scriptTags:Z(g.SCRIPT,l),styleTags:Z(g.STYLE,c)},f={},m={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(f[e]=n),r.length&&(m[e]=p[e].oldTags)})),t&&t(),s(e,f,m)},G=null,Y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).rendered=!1,t}f(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!d()(e,this.props)},n.componentDidUpdate=function(){this.emitChange()},n.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},n.emitChange=function(){var e,t,n=this.props.context,r=n.setHelmet,a=null,o=(e=n.helmetInstances.get().map((function(e){var t=p({},e.props);return delete t.context,t})),{baseTag:T(["href"],e),bodyAttributes:C("bodyAttributes",e),defer:S(e,"defer"),encode:S(e,"encodeSpecialCharacters"),htmlAttributes:C("htmlAttributes",e),linkTags:R(g.LINK,["rel","href"],e),metaTags:R(g.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:R(g.NOSCRIPT,["innerHTML"],e),onChangeClientState:_(e),scriptTags:R(g.SCRIPT,["src","innerHTML"],e),styleTags:R(g.STYLE,["cssText"],e),title:E(e),titleAttributes:C("titleAttributes",e),prioritizeSeoTags:L(e,"prioritizeSeoTags")});Q.canUseDOM?(t=o,G&&cancelAnimationFrame(G),t.defer?G=requestAnimationFrame((function(){W(t,(function(){G=null}))})):(W(t),G=null)):M&&(a=M(o)),r(a)},n.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},n.render=function(){return this.init(),null},t}(r.Component);Y.propTypes={context:U.isRequired},Y.displayName="HelmetDispatcher";var K=["children"],X=["children"],J=function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!s()(A(this.props,"helmetData"),A(e,"helmetData"))},n.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:t};case g.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return p({},r,((t={})[n.type]=[].concat(r[n.type]||[],[p({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,a=e.newProps,o=e.newChildProps,i=e.nestedChildren;switch(r.type){case g.TITLE:return p({},a,((t={})[r.type]=i,t.titleAttributes=p({},o),t));case g.BODY:return p({},a,{bodyAttributes:p({},o)});case g.HTML:return p({},a,{htmlAttributes:p({},o)});default:return p({},a,((n={})[r.type]=p({},o),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=p({},t);return Object.keys(e).forEach((function(t){var r;n=p({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return c()(x.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+x.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),c()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,a={};return r.Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,o=r.children,i=h(r,K),s=Object.keys(i).reduce((function(e,t){return e[k[t]||t]=i[t],e}),{}),l=e.type;switch("symbol"==typeof l?l=l.toString():n.warnOnInvalidChildren(e,o),l){case g.FRAGMENT:t=n.mapChildrenToProps(o,t);break;case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:a=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:a,newChildProps:s,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(a,t)},n.render=function(){var e=this.props,t=e.children,n=h(e,X),a=p({},n),o=n.helmetData;return t&&(a=this.mapChildrenToProps(t,a)),!o||o instanceof $||(o=new $(o.context,o.instances)),o?r.createElement(Y,p({},a,{context:o.value,helmetData:void 0})):r.createElement(q.Consumer,null,(function(e){return r.createElement(Y,p({},a,{context:e}))}))},t}(r.Component);J.propTypes={base:o().object,bodyAttributes:o().object,children:o().oneOfType([o().arrayOf(o().node),o().node]),defaultTitle:o().string,defer:o().bool,encodeSpecialCharacters:o().bool,htmlAttributes:o().object,link:o().arrayOf(o().object),meta:o().arrayOf(o().object),noscript:o().arrayOf(o().object),onChangeClientState:o().func,script:o().arrayOf(o().object),style:o().arrayOf(o().object),title:o().string,titleAttributes:o().object,titleTemplate:o().string,prioritizeSeoTags:o().bool,helmetData:o().object},J.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},J.displayName="Helmet"},9921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case h:case l:return e;default:return t}}case a:return t}}}function k(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=h,t.Portal=a,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||w(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===i||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===v||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},9864:(e,t,n)=>{"use strict";e.exports=n(9921)},8356:(e,t,n)=>{"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var s=n(7294),l=n(5697),c=[],u=[];function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function p(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var a=d(e[r]);a.loading?t.loading=!0:(t.loaded[r]=a.loaded,t.error=a.error),n.push(a.promise),a.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function f(e,t){return s.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function m(e,t){var d,p;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var m=i({loader:null,loading:null,delay:200,timeout:null,render:f,webpack:null,modules:null},t),h=null;function g(){return h||(h=e(m.loader)),h.promise}return c.push(g),"function"==typeof m.webpack&&u.push((function(){if((0,m.webpack)().every((function(e){return void 0!==e&&void 0!==n.m[e]})))return g()})),p=d=function(t){function n(n){var r;return o(a(a(r=t.call(this,n)||this)),"retry",(function(){r.setState({error:null,loading:!0,timedOut:!1}),h=e(m.loader),r._loadModule()})),g(),r.state={error:h.error,pastDelay:!1,timedOut:!1,loading:h.loading,loaded:h.loaded},r}r(n,t),n.preload=function(){return g()};var i=n.prototype;return i.UNSAFE_componentWillMount=function(){this._loadModule()},i.componentDidMount=function(){this._mounted=!0},i._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(m.modules)&&m.modules.forEach((function(t){e.context.loadable.report(t)})),h.loading){var t=function(t){e._mounted&&e.setState(t)};"number"==typeof m.delay&&(0===m.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){t({pastDelay:!0})}),m.delay)),"number"==typeof m.timeout&&(this._timeout=setTimeout((function(){t({timedOut:!0})}),m.timeout));var n=function(){t({error:h.error,loaded:h.loaded,loading:h.loading}),e._clearTimeouts()};h.promise.then((function(){return n(),null})).catch((function(e){return n(),null}))}},i.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},i._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},i.render=function(){return this.state.loading||this.state.error?s.createElement(m.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?m.render(this.state.loaded,this.props):null},n}(s.Component),o(d,"contextTypes",{loadable:l.shape({report:l.func.isRequired})}),p}function h(e){return m(d,e)}h.Map=function(e){if("function"!=typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return m(p,e)};var g=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.getChildContext=function(){return{loadable:{report:this.props.report}}},n.render=function(){return s.Children.only(this.props.children)},t}(s.Component);function y(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then((function(){if(e.length)return y(e)}))}o(g,"propTypes",{report:l.func.isRequired}),o(g,"childContextTypes",{loadable:l.shape({report:l.func.isRequired}).isRequired}),h.Capture=g,h.preloadAll=function(){return new Promise((function(e,t){y(c).then(e,t)}))},h.preloadReady=function(){return new Promise((function(e,t){y(u).then(e,e)}))},e.exports=h},8790:(e,t,n)=>{"use strict";n.d(t,{H:()=>s,f:()=>i});var r=n(6550),a=n(7462),o=n(7294);function i(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var a=e.path?(0,r.LX)(t,e):n.length?n[n.length-1].match:r.F0.computeRootMatch(t);return a&&(n.push({route:e,match:a}),e.routes&&i(e.routes,t,n)),a})),n}function s(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?o.createElement(r.rs,n,e.map((function(e,n){return o.createElement(r.AW,{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render((0,a.Z)({},n,{},t,{route:e})):o.createElement(e.component,(0,a.Z)({},n,t,{route:e}))}})}))):null}},3727:(e,t,n)=>{"use strict";n.d(t,{OL:()=>v,VK:()=>u,rU:()=>g});var r=n(6550),a=n(5068),o=n(7294),i=n(2358),s=n(7462),l=n(3366),c=n(8776),u=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,i.lX)(t.props),t}return(0,a.Z)(t,e),t.prototype.render=function(){return o.createElement(r.F0,{history:this.history,children:this.props.children})},t}(o.Component);o.Component;var d=function(e,t){return"function"==typeof e?e(t):e},p=function(e,t){return"string"==typeof e?(0,i.ob)(e,null,null,t):e},f=function(e){return e},m=o.forwardRef;void 0===m&&(m=f);var h=m((function(e,t){var n=e.innerRef,r=e.navigate,a=e.onClick,i=(0,l.Z)(e,["innerRef","navigate","onClick"]),c=i.target,u=(0,s.Z)({},i,{onClick:function(e){try{a&&a(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=f!==m&&t||n,o.createElement("a",u)}));var g=m((function(e,t){var n=e.component,a=void 0===n?h:n,u=e.replace,g=e.to,y=e.innerRef,b=(0,l.Z)(e,["component","replace","to","innerRef"]);return o.createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=e.history,r=p(d(g,e.location),e.location),l=r?n.createHref(r):"",h=(0,s.Z)({},b,{href:l,navigate:function(){var t=d(g,e.location),r=(0,i.Ep)(e.location)===(0,i.Ep)(p(t));(u||r?n.replace:n.push)(t)}});return f!==m?h.ref=t||y:h.innerRef=y,o.createElement(a,h)}))})),y=function(e){return e},b=o.forwardRef;void 0===b&&(b=y);var v=b((function(e,t){var n=e["aria-current"],a=void 0===n?"page":n,i=e.activeClassName,u=void 0===i?"active":i,f=e.activeStyle,m=e.className,h=e.exact,v=e.isActive,x=e.location,w=e.sensitive,k=e.strict,S=e.style,E=e.to,_=e.innerRef,C=(0,l.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=x||e.location,i=p(d(E,n),n),l=i.pathname,T=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),R=T?(0,r.LX)(n.pathname,{path:T,exact:h,sensitive:w,strict:k}):null,L=!!(v?v(R,n):R),N="function"==typeof m?m(L):m,P="function"==typeof S?S(L):S;L&&(N=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(N,u),P=(0,s.Z)({},P,f));var A=(0,s.Z)({"aria-current":L&&a||null,className:N,style:P,to:i},C);return y!==b?A.ref=t||_:A.innerRef=_,o.createElement(g,A)}))}))},6550:(e,t,n)=>{"use strict";n.d(t,{AW:()=>N,F0:()=>v,LX:()=>L,TH:()=>M,k6:()=>D,l_:()=>_,rs:()=>B,s6:()=>b});var r=n(5068),a=n(7294),o=n(5697),i=n.n(o),s=n(2358),l=n(8776),c=n(7462),u=n(4779),d=n.n(u),p=(n(9864),n(3366)),f=(n(8679),1073741823),m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};var h=a.createContext||function(e,t){var n,o,s="__create-react-context-"+function(){var e="__global_unique_id__";return m[e]=(m[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n,r,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}(0,r.Z)(n,e);var a=n.prototype;return a.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},a.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,a=e.value;((o=r)===(i=a)?0!==o||1/o==1/i:o!=o&&i!=i)?n=0:(n="function"==typeof t?t(r,a):f,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,i},a.render=function(){return this.props.children},n}(a.Component);l.childContextTypes=((n={})[s]=i().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.Z)(n,t);var a=n.prototype;return a.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?f:t},a.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?f:e},a.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},a.getValue=function(){return this.context[s]?this.context[s].get():e},a.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(a.Component);return c.contextTypes=((o={})[s]=i().object,o),{Provider:l,Consumer:c}},g=function(e){var t=h();return t.displayName=e,t},y=g("Router-History"),b=g("Router"),v=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return a.createElement(b.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a.createElement(y.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a.Component);a.Component;var x=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(a.Component);var w={},k=1e4,S=0;function E(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(w[e])return w[e];var t=d().compile(e);return S<k&&(w[e]=t,S++),t}(e)(t,{pretty:!0})}function _(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return a.createElement(b.Consumer,null,(function(e){e||(0,l.Z)(!1);var r=e.history,i=e.staticContext,u=o?r.push:r.replace,d=(0,s.ob)(t?"string"==typeof n?E(n,t.params):(0,c.Z)({},n,{pathname:E(n.pathname,t.params)}):n);return i?(u(d),null):a.createElement(x,{onMount:function(){u(d)},onUpdate:function(e,t){var n=(0,s.ob)(t.to);(0,s.Hp)(n,(0,c.Z)({},d,{key:n.key}))||u(d)},to:n})}))}var C={},T=1e4,R=0;function L(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,a=n.exact,o=void 0!==a&&a,i=n.strict,s=void 0!==i&&i,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=C[n]||(C[n]={});if(r[e])return r[e];var a=[],o={regexp:d()(e,a,t),keys:a};return R<T&&(r[e]=o,R++),o}(n,{end:o,strict:s,sensitive:c}),a=r.regexp,i=r.keys,l=a.exec(e);if(!l)return null;var u=l[0],p=l.slice(1),f=e===u;return o&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:i.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}var N=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a.createElement(b.Consumer,null,(function(t){t||(0,l.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?L(n.pathname,e.props):t.match,o=(0,c.Z)({},t,{location:n,match:r}),i=e.props,s=i.children,u=i.component,d=i.render;return Array.isArray(s)&&function(e){return 0===a.Children.count(e)}(s)&&(s=null),a.createElement(b.Provider,{value:o},o.match?s?"function"==typeof s?s(o):s:u?a.createElement(u,o):d?d(o):null:"function"==typeof s?s(o):null)}))},t}(a.Component);function P(e){return"/"===e.charAt(0)?e:"/"+e}function A(e,t){if(!e)return t;var n=P(e);return 0!==t.pathname.indexOf(n)?t:(0,c.Z)({},t,{pathname:t.pathname.substr(n.length)})}function O(e){return"string"==typeof e?e:(0,s.Ep)(e)}function j(e){return function(){(0,l.Z)(!1)}}function I(){}a.Component;var B=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a.createElement(b.Consumer,null,(function(t){t||(0,l.Z)(!1);var n,r,o=e.props.location||t.location;return a.Children.forEach(e.props.children,(function(e){if(null==r&&a.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?L(o.pathname,(0,c.Z)({},e.props,{path:i})):t.match}})),r?a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(a.Component);var F=a.useContext;function D(){return F(y)}function M(){return F(b).location}},5251:(e,t,n)=>{"use strict";var r=n(7294),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:a,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},2408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var x=v.prototype=new b;x.constructor=v,h(x,y.prototype),x.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r){var a,o={},i=null,s=null;if(null!=t)for(a in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)k.call(t,a)&&!E.hasOwnProperty(a)&&(o[a]=t[a]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(a in l=e.defaultProps)void 0===o[a]&&(o[a]=l[a]);return{$$typeof:n,type:e,key:i,ref:s,props:o,_owner:S.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function L(e,t,a,o,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return i=i(l=e),e=""===o?"."+R(l,0):o,w(i)?(a="",null!=e&&(a=e.replace(T,"$&/")+"/"),L(i,t,a,"",(function(e){return e}))):null!=i&&(C(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,a+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(T,"$&/")+"/")+e)),t.push(i)),1;if(l=0,o=""===o?".":o+":",w(e))for(var c=0;c<e.length;c++){var u=o+R(s=e[c],c);l+=L(s,t,a,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=L(s=s.value,t,a,u=o+R(s,c++),i);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function N(e,t,n){if(null==e)return e;var r=[],a=0;return L(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A={current:null},O={transition:null},j={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:O,ReactCurrentOwner:S};t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=a,t.Profiler=i,t.PureComponent=v,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=h({},e.props),o=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=S.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)k.call(t,c)&&!E.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}return{$$typeof:n,type:e.type,key:o,ref:i,props:a,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return A.current.useCallback(e,t)},t.useContext=function(e){return A.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return A.current.useDeferredValue(e)},t.useEffect=function(e,t){return A.current.useEffect(e,t)},t.useId=function(){return A.current.useId()},t.useImperativeHandle=function(e,t,n){return A.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return A.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return A.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return A.current.useMemo(e,t)},t.useReducer=function(e,t,n){return A.current.useReducer(e,t,n)},t.useRef=function(e){return A.current.useRef(e)},t.useState=function(e){return A.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return A.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return A.current.useTransition()},t.version="18.2.0"},7294:(e,t,n)=>{"use strict";e.exports=n(2408)},5893:(e,t,n)=>{"use strict";e.exports=n(5251)},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<a&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<a&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,f=3,m=!1,h=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)a(u);else{if(!(t.startTime<=e))break;a(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(g=!1,x(e),!h)if(null!==r(c))h=!0,O(k);else{var t=r(u);null!==t&&j(w,t.startTime-e)}}function k(e,n){h=!1,g&&(g=!1,b(C),C=-1),m=!0;var o=f;try{for(x(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!L());){var i=p.callback;if("function"==typeof i){p.callback=null,f=p.priorityLevel;var s=i(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===r(c)&&a(c),x(n)}else a(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&j(w,d.startTime-n),l=!1}return l}finally{p=null,f=o,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,E=!1,_=null,C=-1,T=5,R=-1;function L(){return!(t.unstable_now()-R<T)}function N(){if(null!==_){var e=t.unstable_now();R=e;var n=!0;try{n=_(!0,e)}finally{n?S():(E=!1,_=null)}}else E=!1}if("function"==typeof v)S=function(){v(N)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,A=P.port2;P.port1.onmessage=N,S=function(){A.postMessage(null)}}else S=function(){y(N,0)};function O(e){_=e,E||(E=!0,S())}function j(e,n){C=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){h||m||(h=!0,O(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,a,o){var i=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?i+o:i:o=i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:a,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>i?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(b(C),C=-1):g=!0,j(w,o-i))):(e.sortIndex=s,n(c,e),h||m||(h=!0,O(k))),e},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},3840:(e,t,n)=>{"use strict";e.exports=n(53)},6774:e=>{e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(a=n?n.call(r,u,d,c):void 0)||void 0===a&&u!==d)return!1}return!0}},6809:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={title:"Quickstart",url:"https://sidorares.github.io",baseUrl:"/node-mysql2/pt-BR/",organizationName:"sidorares",projectName:"node-mysql2",trailingSlash:!1,favicon:"img/favicon.svg",onBrokenLinks:"throw",onBrokenMarkdownLinks:"warn",i18n:{defaultLocale:"en",locales:["en","zh-CN","pt-BR"],localeConfigs:{en:{label:"\ud83c\uddfa\ud83c\uddf8 English",direction:"ltr"},"zh-CN":{label:"\ud83c\udde8\ud83c\uddf3 \u7b80\u4f53\u4e2d\u6587",direction:"ltr"},"pt-BR":{label:"\ud83c\udde7\ud83c\uddf7 Portugu\xeas (Brasil)",direction:"ltr"}},path:"i18n"},presets:[["classic",{docs:{sidebarPath:"./sidebars.ts",editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/"},theme:{customCss:"./src/css/custom.scss"},blog:!1}]],themeConfig:{navbar:{items:[{to:"/docs",label:"MySQL2",position:"left",className:"navbar__brand navbar__manual--title text--truncate",activeBaseRegex:"^/$"},{to:"/docs/documentation",label:"Docs",position:"left"},{to:"/docs/examples",label:"Examples",position:"left"},{to:"/docs/faq",label:"FAQ",position:"left"},{href:"https://github.com/sidorares/node-mysql2",label:"GitHub",position:"right"},{href:"https://stackoverflow.com/questions/tagged/mysql2",label:"Stack Overflow",position:"right"},{href:"https://github.com/sponsors/sidorares",label:"Donate",position:"right"},{type:"search",position:"right"},{type:"localeDropdown",position:"right",dropdownItemsBefore:[],dropdownItemsAfter:[]}],hideOnScroll:!1},prism:{theme:{plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},darkTheme:{plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},additionalLanguages:["json","bash","tsx"],magicComments:[{className:"theme-code-block-highlighted-line",line:"highlight-next-line",block:{start:"highlight-start",end:"highlight-end"}}]},colorMode:{defaultMode:"light",disableSwitch:!1,respectPrefersColorScheme:!1},docs:{versionPersistence:"localStorage",sidebar:{hideable:!1,autoCollapseCategories:!1}},metadata:[],tableOfContents:{minHeadingLevel:2,maxHeadingLevel:3}},plugins:["docusaurus-plugin-sass","@easyops-cn/docusaurus-search-local",null],baseUrlIssueBanner:!0,onDuplicateRoutes:"warn",staticDirectories:["static"],customFields:{},themes:[],scripts:[],headTags:[],stylesheets:[],clientModules:[],tagline:"",titleDelimiter:"|",noIndex:!1,markdown:{format:"mdx",mermaid:!1,mdx1Compat:{comments:!0,admonitions:!0,headingIds:!0}}}},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},5068:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>a})},3366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}n.d(t,{Z:()=>r})},512:(e,t,n)=>{"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}n.d(t,{Z:()=>a});const a=function(){for(var e,t,n=0,a="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}},2573:(e,t,n)=>{"use strict";n.d(t,{p1:()=>T,y$:()=>ee});var r,a,o,i,s,l,c,u=n(7294),d=n(512),p=Object.create,f=Object.defineProperty,m=Object.defineProperties,h=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertyNames,b=Object.getOwnPropertySymbols,v=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,k=(e,t,n)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S=(e,t)=>{for(var n in t||(t={}))x.call(t,n)&&k(e,n,t[n]);if(b)for(var n of b(t))w.call(t,n)&&k(e,n,t[n]);return e},E=(e,t)=>m(e,g(t)),_=(e,t)=>{var n={};for(var r in e)x.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&b)for(var r of b(e))t.indexOf(r)<0&&w.call(e,r)&&(n[r]=e[r]);return n},C=(r={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var a,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var i in a={},n[o]=a,t)t.hasOwnProperty(i)&&(a[i]=e(t[i],n));return a;case"Array":return o=r.util.objId(t),n[o]?n[o]:(a=[],n[o]=a,t.forEach((function(t,r){a[r]=e(t,n)})),a);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var o=(a=a||r.languages)[e],i={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(i[l]=n[l]);n.hasOwnProperty(s)||(i[s]=o[s])}var c=a[e];return a[e]=i,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=i)})),i},DFS:function e(t,n,a,o){o=o||{};var i=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],a||s);var l=t[s],c=r.util.type(l);"Object"!==c||o[i(l)]?"Array"!==c||o[i(l)]||(o[i(l)]=!0,e(l,n,s,o)):(o[i(l)]=!0,e(l,n,null,o))}}},plugins:{},highlight:function(e,t,n){var o={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",o),!o.grammar)throw new Error('The language "'+o.language+'" has no grammar.');return o.tokens=r.tokenize(o.code,o.grammar),r.hooks.run("after-tokenize",o),a.stringify(r.util.encode(o.tokens),o.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new s;return l(a,a.head,e),i(e,a,t,a.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,o=0;a=n[o++];)a(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function i(e,t,n,s,u,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var m=0;m<f.length;++m){if(d&&d.cause==p+","+m)return;var h=f[m],g=h.inside,y=!!h.lookbehind,b=!!h.greedy,v=h.alias;if(b&&!h.pattern.global){var x=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,x+"g")}for(var w=h.pattern||h,k=s.next,S=u;k!==t.tail&&!(d&&S>=d.reach);S+=k.value.length,k=k.next){var E=k.value;if(t.length>e.length)return;if(!(E instanceof a)){var _,C=1;if(b){if(!(_=o(w,S,e,y))||_.index>=e.length)break;var T=_.index,R=_.index+_[0].length,L=S;for(L+=k.value.length;T>=L;)L+=(k=k.next).value.length;if(S=L-=k.value.length,k.value instanceof a)continue;for(var N=k;N!==t.tail&&(L<R||"string"==typeof N.value);N=N.next)C++,L+=N.value.length;C--,E=e.slice(S,L),_.index-=S}else if(!(_=o(w,0,E,y)))continue;T=_.index;var P=_[0],A=E.slice(0,T),O=E.slice(T+P.length),j=S+E.length;d&&j>d.reach&&(d.reach=j);var I=k.prev;if(A&&(I=l(t,I,A),S+=A.length),c(t,I,C),k=l(t,I,new a(p,g?r.tokenize(P,g):P,v,P)),O&&l(t,k,O),C>1){var B={cause:p+","+m,reach:j};i(e,t,n,k.prev,S,B),d&&B.reach>d.reach&&(d.reach=B.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function c(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}return a.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(o.classes,i):o.classes.push(i)),r.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},r}();t.exports=n,n.default=n}},function(){return a||(0,r[y(r)[0]])((a={exports:{}}).exports,a),a.exports}),T=((e,t,n)=>(n=null!=e?p(v(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of y(t))x.call(e,a)||a===n||f(e,a,{get:()=>t[a],enumerable:!(r=h(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?n:f(n,"default",{value:e,enumerable:!0}),e)))(C());T.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},T.languages.markup.tag.inside["attr-value"].inside.entity=T.languages.markup.entity,T.languages.markup.doctype.inside["internal-subset"].inside=T.languages.markup,T.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(T.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:T.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:T.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},T.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(T.languages.markup.tag,"addAttribute",{value:function(e,t){T.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:T.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),T.languages.html=T.languages.markup,T.languages.mathml=T.languages.markup,T.languages.svg=T.languages.markup,T.languages.xml=T.languages.extend("markup",{}),T.languages.ssml=T.languages.xml,T.languages.atom=T.languages.xml,T.languages.rss=T.languages.xml,o=T,i={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},l="(?:[^\\\\-]|"+(s=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")",l=RegExp(l+"-"+l),c={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},o.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":i,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:s}},"special-escape":i,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":c}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:s,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":c}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}},T.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},T.languages.javascript=T.languages.extend("clike",{"class-name":[T.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),T.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,T.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:T.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:T.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:T.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:T.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:T.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),T.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:T.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),T.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),T.languages.markup&&(T.languages.markup.tag.addInlined("script","javascript"),T.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),T.languages.js=T.languages.javascript,T.languages.actionscript=T.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),T.languages.actionscript["class-name"].alias="function",delete T.languages.actionscript.parameter,delete T.languages.actionscript["literal-property"],T.languages.markup&&T.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:T.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(T),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},a="doc-comment";if(o=e.languages[t]){var o,i=o[a];if((i=i||(o=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[a])instanceof RegExp&&(i=o[a]={pattern:i}),Array.isArray(i))for(var s=0,l=i.length;s<l;s++)i[s]instanceof RegExp&&(i[s]={pattern:i[s]}),r(i[s]);else r(i)}}))}}),t.addSupport(["java","javascript","php"],t)}(T),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(T),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(T),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(T),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,i=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var a,o=t[n];"code"!==o.type?e(o.content):(a=o.content[1],o=o.content[3],a&&o&&"code-language"===a.type&&"code-block"===o.type&&"string"==typeof a.content&&(a=a.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),a="language-"+(a=(/[a-z][\w-]*/i.exec(a)||[""])[0].toLowerCase()),o.alias?"string"==typeof o.alias?o.alias=[o.alias,a]:o.alias.push(a):o.alias=[a]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,a=t.classes.length;r<a;r++){var o=t.classes[r];if(o=/language-(.+)/.exec(o)){n=o[1];break}}var c,u=e.languages[n];u?t.content=e.highlight(t.content.replace(i,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n)):s[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(c="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(T),T.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:T.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},T.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var a=[];if(d(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var o=p(/^\($/,/^\)$/);if(-1===o)continue;for(;n<o;n++){var i=u(0);"variable"===i.type&&(f(i,"variable-input"),a.push(i.content))}n=o+1}if(d(["punctuation","property-query"])&&"{"===u(0).content&&(n++,f(u(0),"property-mutation"),0<a.length)){var s=p(/^\{$/,/^\}$/);if(-1!==s)for(var l=n;l<s;l++){var c=t[l];"variable"===c.type&&0<=a.indexOf(c.content)&&f(c,"variable-input")}}}}function u(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function p(e,r){for(var a=1,o=n;o<t.length;o++){var i=t[o],s=i.content;if("punctuation"===i.type&&"string"==typeof s)if(e.test(s))a++;else if(r.test(s)&&0==--a)return o}return-1}function f(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),T.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,a=r.inside["interpolation-punctuation"],o=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function l(t,n,i){var l=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),c=0,u={},d=(l=s(l.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=c++,n="___"+i.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,i),Object.keys(u));return c=0,function t(n){for(var o=0;o<n.length;o++){if(c>=d.length)return;var i,l,p,f,m,h,g,y=n[o];"string"==typeof y||"string"==typeof y.content?(i=d[c],-1!==(g=(h="string"==typeof y?y:y.content).indexOf(i))&&(++c,l=h.substring(0,g),m=u[i],p=void 0,(f={})["interpolation-punctuation"]=a,3===(f=e.tokenize(m,f)).length&&((p=[1,1]).push.apply(p,s(f[1],e.languages.javascript,"javascript")),f.splice.apply(f,p)),p=new e.Token("interpolation",f,r.alias,m),f=h.substring(g+i.length),m=[],l&&m.push(l),m.push(p),f&&(t(h=[f]),m.push.apply(m,h)),"string"==typeof y?(n.splice.apply(n,[o,1].concat(m)),o+=m.length-1):y.content=m)):(g=y.content,Array.isArray(g)?t(g):t([g]))}}(l),new e.Token(i,l,"language-"+i,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in c&&function t(n){for(var r=0,a=n.length;r<a;r++){var o,i,s,c=n[r];"string"!=typeof c&&(o=c.content,Array.isArray(o)?"template-string"===c.type?(c=o[1],3===o.length&&"string"!=typeof c&&"embedded-code"===c.type&&(i=u(c),c=c.alias,c=Array.isArray(c)?c[0]:c,s=e.languages[c])&&(o[1]=l(i,s,c))):t(o):"string"!=typeof o&&t([o]))}}(t.tokens)}))}(T),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(T),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(T),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(T),T.languages.n4js=T.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),T.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),T.languages.n4jsd=T.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var a=n[r],o=e.languages.javascript[a];a=(o="RegExp"===e.util.type(o)?e.languages.javascript[a]={pattern:o}:o).inside||{};(o.inside=a)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(T),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return a})),RegExp(e,t)}function i(t){for(var n=[],r=0;r<t.length;r++){var a=t[r],o=!1;"string"!=typeof a&&("tag"===a.type&&a.content[0]&&"tag"===a.content[0].type?"</"===a.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(a.content[0].content[1])&&n.pop():"/>"!==a.content[a.content.length-1].content&&n.push({tagName:s(a.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof a)&&0<n.length&&0===n[n.length-1].openedBraces&&(o=s(a),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(o+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(o=s(t[r-1])+o,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",o,null,o)),a.content&&"string"!=typeof a.content&&i(a.content)}}a=o(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||i(e.tokens)}))}(T),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(T),T.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},T.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=T.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(T),T.languages.c=T.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),T.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),T.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},T.languages.c.string],char:T.languages.c.char,comment:T.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:T.languages.c}}}}),T.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete T.languages.c.boolean,T.languages.objectivec=T.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete T.languages.objectivec["class-name"],T.languages.objc=T.languages.objectivec,T.languages.reason=T.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),T.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete T.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(T),T.languages.go=T.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),T.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete T.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(T),T.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},T.languages.python["string-interpolation"].inside.interpolation.inside.rest=T.languages.python,T.languages.py=T.languages.python;((e,t)=>{for(var n in t)f(e,n,{get:t[n],enumerable:!0})})({},{dracula:()=>R,duotoneDark:()=>L,duotoneLight:()=>N,github:()=>P,jettwaveDark:()=>H,jettwaveLight:()=>Q,nightOwl:()=>A,nightOwlLight:()=>O,oceanicNext:()=>B,okaidia:()=>F,oneDark:()=>Z,oneLight:()=>V,palenight:()=>D,shadesOfPurple:()=>M,synthwave84:()=>z,ultramin:()=>$,vsDark:()=>q,vsLight:()=>U});var R={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},L={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},N={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},P={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},A={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},O={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},j="#c5a5c5",I="#8dc891",B={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:j}},{types:["attr-value"],style:{color:I}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:I}},{types:["punctuation"],style:{color:I}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:j}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},F={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},D={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},M={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},z={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},$={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},q={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},U={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},H={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Q={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Z={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},V={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},W=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:a}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=S(S({},e[t]),a);e[t]=n})),e}),{});return r.root=n,r.plain=E(S({},n),{backgroundColor:void 0}),r},G=/\r\n|\r|\n/,Y=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},K=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},X=e=>{const t=[[]],n=[e],r=[0],a=[e.length];let o=0,i=0,s=[];const l=[s];for(;i>-1;){for(;(o=r[i]++)<a[i];){let e,c=t[i];const u=n[i][o];if("string"==typeof u?(c=i>0?c:["plain"],e=u):(c=K(c,u.type),u.alias&&(c=K(c,u.alias)),e=u.content),"string"!=typeof e){i++,t.push(c),n.push(e),r.push(0),a.push(e.length);continue}const d=e.split(G),p=d.length;s.push({types:c,content:d[0]});for(let t=1;t<p;t++)Y(s),l.push(s=[]),s.push({types:c,content:d[t]})}i--,t.pop(),n.pop(),r.pop(),a.pop()}return Y(s),l},J=({children:e,language:t,code:n,theme:r,prism:a})=>{const o=t.toLowerCase(),i=((e,t)=>{const[n,r]=(0,u.useState)(W(t,e)),a=(0,u.useRef)(),o=(0,u.useRef)();return(0,u.useEffect)((()=>{t===a.current&&e===o.current||(a.current=t,o.current=e,r(W(t,e)))}),[e,t]),n})(o,r),s=(e=>(0,u.useCallback)((t=>{var n=t,{className:r,style:a,line:o}=n,i=_(n,["className","style","line"]);const s=E(S({},i),{className:(0,d.Z)("token-line",r)});return"object"==typeof e&&"plain"in e&&(s.style=e.plain),"object"==typeof a&&(s.style=S(S({},s.style||{}),a)),s}),[e]))(i),l=(e=>{const t=(0,u.useCallback)((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return(0,u.useCallback)((e=>{var n=e,{token:r,className:a,style:o}=n,i=_(n,["token","className","style"]);const s=E(S({},i),{className:(0,d.Z)("token",...r.types,a),children:r.content,style:t(r)});return null!=o&&(s.style=S(S({},s.style||{}),o)),s}),[t])})(i),c=(({prism:e,code:t,grammar:n,language:r})=>{const a=(0,u.useRef)(e);return(0,u.useMemo)((()=>{if(null==n)return X([t]);const e={code:t,grammar:n,language:r,tokens:[]};return a.current.hooks.run("before-tokenize",e),e.tokens=a.current.tokenize(t,n),a.current.hooks.run("after-tokenize",e),X(e.tokens)}),[t,n,r])})({prism:a,language:o,code:n,grammar:a.languages[o]});return e({tokens:c,className:`prism-code language-${o}`,style:null!=i?i.root:{},getLineProps:s,getTokenProps:l})},ee=e=>(0,u.createElement)(J,E(S({},e),{prism:e.prism||T,theme:e.theme||q,code:e.code,language:e.language}))},8776:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=!0,a="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(a);var n="function"==typeof t?t():t,o=n?"".concat(a,": ").concat(n):a;throw new Error(o)}}},7529:e=>{"use strict";e.exports=JSON.parse('{"theme.AnnouncementBar.closeButtonAriaLabel":"Fechar","theme.BackToTopButton.buttonAriaLabel":"Volte para o topo","theme.CodeBlock.copied":"Copiado","theme.CodeBlock.copy":"Copiar","theme.CodeBlock.copyButtonAriaLabel":"Copiar c\xf3digo para a \xe1rea de transfer\xeancia","theme.CodeBlock.wordWrapToggle":"Toggle word wrap","theme.DocSidebarItem.collapseCategoryAriaLabel":"Collapse sidebar category \'{label}\'","theme.DocSidebarItem.expandCategoryAriaLabel":"Expand sidebar category \'{label}\'","theme.ErrorPageContent.title":"This page crashed.","theme.ErrorPageContent.tryAgain":"Try again","theme.NavBar.navAriaLabel":"Main","theme.NotFound.p1":"N\xe3o foi poss\xedvel encontrar o que voc\xea est\xe1 procurando.","theme.NotFound.p2":"Entre em contato com o propriet\xe1rio do site que lhe trouxe para c\xe1 e lhe informe que o link est\xe1 quebrado.","theme.NotFound.title":"P\xe1gina n\xe3o encontrada","theme.TOCCollapsible.toggleButtonLabel":"Nessa p\xe1gina","theme.admonition.caution":"caution","theme.admonition.danger":"danger","theme.admonition.info":"info","theme.admonition.note":"note","theme.admonition.tip":"tip","theme.admonition.warning":"warning","theme.blog.archive.description":"Arquivo","theme.blog.archive.title":"Arquivo","theme.blog.paginator.navAriaLabel":"Navega\xe7\xe3o da p\xe1gina de listagem do blog","theme.blog.paginator.newerEntries":"Conte\xfado mais novo","theme.blog.paginator.olderEntries":"Conte\xfado mais antigo","theme.blog.post.paginator.navAriaLabel":"Navega\xe7\xe3o da p\xe1gina de postagem do blog","theme.blog.post.paginator.newerPost":"Postagem mais nova","theme.blog.post.paginator.olderPost":"Postagem mais antiga","theme.blog.post.plurals":"Uma postagem|{count} postagens","theme.blog.post.readMore":"Leia Mais","theme.blog.post.readMoreLabel":"Read more about {title}","theme.blog.post.readingTime.plurals":"Leitura de um minuto|Leitura de {readingTime} minutos","theme.blog.sidebar.navAriaLabel":"Blog recent posts navigation","theme.blog.tagTitle":"{nPosts} marcadas com \\"{tagName}\\"","theme.colorToggle.ariaLabel":"Switch between dark and light mode (currently {mode})","theme.colorToggle.ariaLabel.mode.dark":"dark mode","theme.colorToggle.ariaLabel.mode.light":"light mode","theme.common.editThisPage":"Editar essa p\xe1gina","theme.common.headingLinkTitle":"Link direto para {heading}","theme.common.skipToMainContent":"Pular para o conte\xfado principal","theme.docs.DocCard.categoryDescription":"{count} items","theme.docs.breadcrumbs.home":"Home page","theme.docs.breadcrumbs.navAriaLabel":"Breadcrumbs","theme.docs.paginator.navAriaLabel":"P\xe1ginas de documenta\xe7\xe3o","theme.docs.paginator.next":"Pr\xf3xima","theme.docs.paginator.previous":"Anterior","theme.docs.sidebar.closeSidebarButtonAriaLabel":"Close navigation bar","theme.docs.sidebar.collapseButtonAriaLabel":"Fechar painel lateral","theme.docs.sidebar.collapseButtonTitle":"Fechar painel lateral","theme.docs.sidebar.expandButtonAriaLabel":"Expandir painel lateral","theme.docs.sidebar.expandButtonTitle":"Expandir painel lateral","theme.docs.sidebar.navAriaLabel":"Docs sidebar","theme.docs.sidebar.toggleSidebarButtonAriaLabel":"Toggle navigation bar","theme.docs.tagDocListPageTitle":"{nDocsTagged} com \\"{tagName}\\"","theme.docs.tagDocListPageTitle.nDocsTagged":"Um documento selecionado|{count} documentos selecionados","theme.docs.versionBadge.label":"Version: {versionLabel}","theme.docs.versions.latestVersionLinkLabel":"\xfaltima vers\xe3o","theme.docs.versions.latestVersionSuggestionLabel":"Para a documenta\xe7\xe3o atualizada, veja: {latestVersionLink} ({versionLabel}).","theme.docs.versions.unmaintainedVersionLabel":"Esta \xe9 a documenta\xe7\xe3o para {siteTitle} {versionLabel}, que n\xe3o \xe9 mais mantida ativamente.","theme.docs.versions.unreleasedVersionLabel":"Esta \xe9 uma documenta\xe7\xe3o n\xe3o lan\xe7ada para {siteTitle} {versionLabel}.","theme.lastUpdated.atDate":" em {date}","theme.lastUpdated.byUser":" por {user}","theme.lastUpdated.lastUpdatedAtBy":"\xdaltima atualiza\xe7\xe3o {atDate}{byUser}","theme.navbar.mobileLanguageDropdown.label":"Languages","theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel":"\u2190 Voltar para o menu principal","theme.navbar.mobileVersionsDropdown.label":"Versions","theme.tags.tagsListLabel":"Marcadores:","theme.tags.tagsPageLink":"Ver todas os Marcadores","theme.tags.tagsPageTitle":"Marcadores","theme.unlistedContent.message":"This page is unlisted. Search engines will not index it, and only users having a direct link can access it.","theme.unlistedContent.title":"Unlisted page"}')},6887:e=>{"use strict";e.exports=JSON.parse('{"/node-mysql2/pt-BR/search-c30":{"__comp":"1a4e3797","__context":{"plugin":"ac5f2e4a"}},"/node-mysql2/pt-BR/docs-cc1":{"__comp":"5e95c892","__context":{"plugin":"c84c75a7"}},"/node-mysql2/pt-BR/docs-d4b":{"__comp":"a7bd4aaa","version":"935f2afb"},"/node-mysql2/pt-BR/docs-b2f":{"__comp":"a94703ab"},"/node-mysql2/pt-BR/docs-94c":{"__comp":"17896441","content":"9318259a"},"/node-mysql2/pt-BR/docs/acknowledgements-10e":{"__comp":"17896441","content":"406c6f1b"},"/node-mysql2/pt-BR/docs/api-and-configurations-36d":{"__comp":"17896441","content":"f10670c6"},"/node-mysql2/pt-BR/docs/category/procedure-call-packet-49e":{"__comp":"14eb3368","categoryGeneratedIndex":"c3c9efa4"},"/node-mysql2/pt-BR/docs/category/queries-5c7":{"__comp":"14eb3368","categoryGeneratedIndex":"bc868b95"},"/node-mysql2/pt-BR/docs/category/row-data-packet-8bd":{"__comp":"14eb3368","categoryGeneratedIndex":"3f11ce5f"},"/node-mysql2/pt-BR/docs/category/ssl-f2f":{"__comp":"14eb3368","categoryGeneratedIndex":"8a8506f8"},"/node-mysql2/pt-BR/docs/category/typescript-d8b":{"__comp":"14eb3368","categoryGeneratedIndex":"8b718d68"},"/node-mysql2/pt-BR/docs/contributing-349":{"__comp":"17896441","content":"7c434f9a"},"/node-mysql2/pt-BR/docs/contributing/website-2f7":{"__comp":"17896441","content":"f8d74a12"},"/node-mysql2/pt-BR/docs/documentation-2a3":{"__comp":"17896441","content":"9e767aa9"},"/node-mysql2/pt-BR/docs/documentation/authentication-switch-5d1":{"__comp":"17896441","content":"3945bec1"},"/node-mysql2/pt-BR/docs/documentation/extras-de6":{"__comp":"17896441","content":"ed06a4b6"},"/node-mysql2/pt-BR/docs/documentation/mysql-server-d9f":{"__comp":"17896441","content":"57495183"},"/node-mysql2/pt-BR/docs/documentation/prepared-statements-833":{"__comp":"17896441","content":"f54f1246"},"/node-mysql2/pt-BR/docs/documentation/promise-wrapper-9ef":{"__comp":"17896441","content":"546b1c5f"},"/node-mysql2/pt-BR/docs/documentation/typescript-examples-a05":{"__comp":"17896441","content":"2bc14e22"},"/node-mysql2/pt-BR/docs/examples-a0f":{"__comp":"17896441","content":"76dfa484"},"/node-mysql2/pt-BR/docs/examples/binlog-watcher-eb5":{"__comp":"17896441","content":"3be0564c"},"/node-mysql2/pt-BR/docs/examples/connect-over-socks-b73":{"__comp":"17896441","content":"10c30137"},"/node-mysql2/pt-BR/docs/examples/execute-1b7":{"__comp":"17896441","content":"3bea1af6"},"/node-mysql2/pt-BR/docs/examples/mysqlproxy-226":{"__comp":"17896441","content":"93f3cbcf"},"/node-mysql2/pt-BR/docs/examples/pass-sha-a82":{"__comp":"17896441","content":"d2002d6f"},"/node-mysql2/pt-BR/docs/examples/pool-test-200":{"__comp":"17896441","content":"43758d02"},"/node-mysql2/pt-BR/docs/examples/prepare-64c":{"__comp":"17896441","content":"e9842ab8"},"/node-mysql2/pt-BR/docs/examples/promise-co-await-845":{"__comp":"17896441","content":"4e547710"},"/node-mysql2/pt-BR/docs/examples/queries/select-ac7":{"__comp":"17896441","content":"54dbd6f3"},"/node-mysql2/pt-BR/docs/examples/server-53f":{"__comp":"17896441","content":"5748a325"},"/node-mysql2/pt-BR/docs/examples/ssl/rds-ssl-ab2":{"__comp":"17896441","content":"dcf552eb"},"/node-mysql2/pt-BR/docs/examples/ssl/select-over-ssl-a68":{"__comp":"17896441","content":"75b440d9"},"/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-class-dfc":{"__comp":"17896441","content":"f43af5ae"},"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/procedure-call-packet-d98":{"__comp":"17896441","content":"e3a2ad82"},"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-array-7cf":{"__comp":"17896441","content":"bc31cbdb"},"/node-mysql2/pt-BR/docs/examples/typescript/row-data/multi-statements-f38":{"__comp":"17896441","content":"13833ed5"},"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array-4b8":{"__comp":"17896441","content":"5814edec"},"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array-multi-statements-b47":{"__comp":"17896441","content":"1cee01a7"},"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-data-packet-ebf":{"__comp":"17896441","content":"1f08bd40"},"/node-mysql2/pt-BR/docs/faq-47a":{"__comp":"17896441","content":"4e92b6b6"},"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors-e71":{"__comp":"17896441","content":"cdbda324"},"/node-mysql2/pt-BR/docs/history-and-why-mysq2-4f5":{"__comp":"17896441","content":"940eccaa"},"/node-mysql2/pt-BR/docs/stability-badges-ca1":{"__comp":"17896441","content":"db044f71"},"/node-mysql2/pt-BR/-567":{"__comp":"1df93b7f","__context":{"plugin":"fb880757"},"config":"5e9f5e1a"}}')}},e=>{e.O(0,[532],(()=>{return t=7221,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/pt-BR/assets/js/main.a3da04d3.js b/pt-BR/assets/js/main.a3da04d3.js new file mode 100644 index 0000000000..7df172c41e --- /dev/null +++ b/pt-BR/assets/js/main.a3da04d3.js @@ -0,0 +1,2 @@ +/*! For license information please see main.a3da04d3.js.LICENSE.txt */ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[179],{1728:(e,t,n)=>{"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}n.d(t,{Z:()=>a});const a=function(){for(var e,t,n=0,a="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}},723:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});n(7294);var r=n(8356),a=n.n(r),o=n(6887);const s={"024f605e":[()=>n.e(9534).then(n.t.bind(n,3526,19)),"~docs/default/tag-node-mysql-2-pt-br-docs-tags-create-connection-1f5.json",3526],"0e27d5d9":[()=>Promise.all([n.e(532),n.e(5072)]).then(n.bind(n,9247)),"@site/docs/examples/typescript/row-data/00-index.mdx",9247],"11e11f3b":[()=>Promise.all([n.e(532),n.e(5020),n.e(8625)]).then(n.bind(n,3463)),"@site/docs/examples/connections/create-connection.mdx",3463],"13833ed5":[()=>Promise.all([n.e(532),n.e(2496)]).then(n.bind(n,2215)),"@site/docs/examples/typescript/row-data/02-multi-statements.mdx",2215],"1568425c":[()=>n.e(9458).then(n.bind(n,904)),"@site/docs/examples/queries/simple-queries/index.mdx",904],17896441:[()=>Promise.all([n.e(532),n.e(5020),n.e(7918)]).then(n.bind(n,4758)),"@theme/DocItem",4758],"1a4e3797":[()=>Promise.all([n.e(532),n.e(7920)]).then(n.bind(n,1473)),"@theme/SearchPage",1473],"1cee01a7":[()=>Promise.all([n.e(532),n.e(384)]).then(n.bind(n,5235)),"@site/docs/examples/typescript/row-data/03-row-as-array-multi-statements.mdx",5235],"1df93b7f":[()=>n.e(3237).then(n.bind(n,9754)),"@site/src/pages/index.tsx",9754],22161331:[()=>Promise.all([n.e(532),n.e(556)]).then(n.bind(n,7165)),"@site/docs/examples/tests/mysql-proxy.mdx",7165],"2bc14e22":[()=>Promise.all([n.e(532),n.e(2839)]).then(n.bind(n,4760)),"@site/docs/documentation/typescript-examples.mdx",4760],"3720c009":[()=>Promise.all([n.e(532),n.e(3751)]).then(n.bind(n,9861)),"@theme/DocTagsListPage",9861],"3945bec1":[()=>n.e(8882).then(n.bind(n,1889)),"@site/docs/documentation/authentication-switch.mdx",1889],"3be0564c":[()=>Promise.all([n.e(532),n.e(9594)]).then(n.bind(n,3034)),"@site/docs/examples/binlog-watcher.mdx",3034],"406c6f1b":[()=>n.e(6879).then(n.bind(n,684)),"@site/i18n/pt-BR/docusaurus-plugin-content-docs/current/acknowledgements.mdx",684],"4098ceee":[()=>n.e(7182).then(n.t.bind(n,3261,19)),"~docs/default/tag-node-mysql-2-pt-br-docs-tags-placeholders-93a.json",3261],"40c51f74":[()=>n.e(7341).then(n.t.bind(n,2323,19)),"~docs/default/tag-node-mysql-2-pt-br-docs-tags-sha-1-a73.json",2323],"45b16189":[()=>n.e(9469).then(n.t.bind(n,6575,19)),"~docs/default/tag-node-mysql-2-pt-br-docs-tags-ssl-d30.json",6575],"464e933c":[()=>n.e(1649).then(n.t.bind(n,4696,19)),"~docs/default/tag-node-mysql-2-pt-br-docs-tags-rds-ee7.json",4696],"4e92b6b6":[()=>n.e(3586).then(n.bind(n,3769)),"@site/docs/faq/00-index.mdx",3769],"546b1c5f":[()=>n.e(8263).then(n.bind(n,403)),"@site/docs/documentation/promise-wrapper.mdx",403],54768732:[()=>Promise.all([n.e(532),n.e(5020),n.e(576)]).then(n.bind(n,3990)),"@site/docs/examples/queries/simple-queries/update.mdx",3990],"54eaaaae":[()=>Promise.all([n.e(532),n.e(5020),n.e(1420)]).then(n.bind(n,1)),"@site/docs/examples/connections/create-pool.mdx",1],"55960ee5":[()=>n.e(4121).then(n.t.bind(n,8070,19)),"~docs/default/tags-list-current-prop-15a.json",8070],57495183:[()=>n.e(5003).then(n.bind(n,4304)),"@site/docs/documentation/mysql-server.mdx",4304],"5814edec":[()=>Promise.all([n.e(532),n.e(3561)]).then(n.bind(n,3788)),"@site/docs/examples/typescript/row-data/01-row-as-array.mdx",3788],"59e52bc2":[()=>Promise.all([n.e(532),n.e(5020),n.e(641)]).then(n.bind(n,8602)),"@site/docs/examples/queries/simple-queries/delete.mdx",8602],"5e95c892":[()=>n.e(9661).then(n.bind(n,1892)),"@theme/DocsRoot",1892],"5e9f5e1a":[()=>Promise.resolve().then(n.bind(n,6809)),"@generated/docusaurus.config",6809],"68f13ba5":[()=>n.e(7342).then(n.t.bind(n,8464,19)),"~docs/default/tag-node-mysql-2-pt-br-docs-tags-prepared-statements-cf9.json",8464],"76dfa484":[()=>Promise.all([n.e(532),n.e(3433)]).then(n.bind(n,7345)),"@site/docs/examples/00-index.mdx",7345],"7c434f9a":[()=>n.e(5575).then(n.bind(n,4539)),"@site/i18n/pt-BR/docusaurus-plugin-content-docs/current/contributing/00-index.mdx",4539],"7ccab252":[()=>n.e(8054).then(n.bind(n,3467)),"@site/docs/examples/queries/prepared-statements/index.mdx",3467],"7fbd6b3a":[()=>Promise.all([n.e(532),n.e(5020),n.e(9964)]).then(n.bind(n,8937)),"@site/docs/examples/queries/prepared-statements/select.mdx",8937],"8b8ccc10":[()=>Promise.all([n.e(532),n.e(5020),n.e(8534)]).then(n.bind(n,3961)),"@site/docs/examples/queries/prepared-statements/delete.mdx",3961],"8fcb4d7f":[()=>Promise.all([n.e(532),n.e(5020),n.e(81)]).then(n.bind(n,3050)),"@site/docs/examples/queries/simple-queries/select.mdx",3050],"9318259a":[()=>Promise.all([n.e(532),n.e(4503)]).then(n.bind(n,7122)),"@site/i18n/pt-BR/docusaurus-plugin-content-docs/current/index.mdx",7122],"935f2afb":[()=>n.e(53).then(n.t.bind(n,1109,19)),"~docs/default/version-current-metadata-prop-751.json",1109],"940eccaa":[()=>n.e(2155).then(n.bind(n,7722)),"@site/i18n/pt-BR/docusaurus-plugin-content-docs/current/history-and-why-mysq2.mdx",7722],"9e767aa9":[()=>n.e(8806).then(n.bind(n,7372)),"@site/docs/documentation/00-index.mdx",7372],a55c4658:[()=>Promise.all([n.e(532),n.e(5020),n.e(452)]).then(n.bind(n,9547)),"@site/docs/examples/queries/simple-queries/insert.mdx",9547],a74a0c51:[()=>n.e(9085).then(n.t.bind(n,1774,19)),"~docs/default/tag-node-mysql-2-pt-br-docs-tags-uri-743.json",1774],a7bd4aaa:[()=>n.e(8518).then(n.bind(n,8564)),"@theme/DocVersionRoot",8564],a94703ab:[()=>Promise.all([n.e(532),n.e(4368)]).then(n.bind(n,2674)),"@theme/DocRoot",2674],ac5f2e4a:[()=>n.e(9380).then(n.t.bind(n,2776,19)),"/home/runner/work/node-mysql2/node-mysql2/website/.docusaurus/@easyops-cn/docusaurus-search-local/default/plugin-route-context-module-100.json",2776],ac9dff0b:[()=>n.e(2242).then(n.t.bind(n,5030,19)),"~docs/default/tag-node-mysql-2-pt-br-docs-tags-create-pool-6af.json",5030],ad7b17cf:[()=>Promise.all([n.e(532),n.e(2030)]).then(n.bind(n,923)),"@site/docs/examples/promise-wrapper/co-await.mdx",923],b07748b5:[()=>Promise.all([n.e(532),n.e(5020),n.e(4403)]).then(n.bind(n,214)),"@site/docs/examples/connections/createPoolCluster.mdx",214],b5d213ed:[()=>n.e(1990).then(n.t.bind(n,3774,19)),"~docs/default/tag-node-mysql-2-pt-br-docs-tags-socks-32f.json",3774],b80d201b:[()=>Promise.all([n.e(532),n.e(5020),n.e(6061)]).then(n.bind(n,1384)),"@site/docs/examples/queries/prepared-statements/update.mdx",1384],b814814f:[()=>n.e(881).then(n.t.bind(n,9117,19)),"~docs/default/tag-node-mysql-2-pt-br-docs-tags-execute-37e.json",9117],bc31cbdb:[()=>Promise.all([n.e(532),n.e(1437)]).then(n.bind(n,861)),"@site/docs/examples/typescript/procedure-call/01-row-as-array.mdx",861],c84c75a7:[()=>n.e(1233).then(n.t.bind(n,9822,19)),"/home/runner/work/node-mysql2/node-mysql2/website/.docusaurus/docusaurus-plugin-content-docs/default/plugin-route-context-module-100.json",9822],cdbda324:[()=>Promise.all([n.e(532),n.e(4116)]).then(n.bind(n,1851)),"@site/docs/faq/how-to-handle-errors.mdx",1851],cffacdf0:[()=>Promise.all([n.e(532),n.e(8406)]).then(n.bind(n,5721)),"@site/docs/examples/tests/server.mdx",5721],d04b867d:[()=>n.e(3699).then(n.t.bind(n,7134,19)),"~docs/default/tag-node-mysql-2-pt-br-docs-tags-parameters-2d1.json",7134],db044f71:[()=>n.e(6159).then(n.bind(n,8009)),"@site/docs/stability-badges.mdx",8009],df04d3c8:[()=>Promise.all([n.e(532),n.e(9140)]).then(n.bind(n,107)),"@site/docs/examples/typescript/procedure-call/00-index.mdx",107],df203c0f:[()=>Promise.all([n.e(532),n.e(9924)]).then(n.bind(n,491)),"@theme/DocTagDocListPage",491],e19cd79a:[()=>Promise.all([n.e(532),n.e(5020),n.e(1429)]).then(n.bind(n,2998)),"@site/docs/examples/queries/prepared-statements/insert.mdx",2998],e951ea44:[()=>n.e(3213).then(n.t.bind(n,7697,19)),"~docs/default/tag-node-mysql-2-pt-br-docs-tags-query-1e2.json",7697],ed06a4b6:[()=>n.e(2991).then(n.bind(n,1639)),"@site/docs/documentation/extras.mdx",1639],f08329ad:[()=>n.e(4819).then(n.t.bind(n,3026,19)),"~docs/default/tag-node-mysql-2-pt-br-docs-tags-create-pool-cluster-483.json",3026],f10670c6:[()=>n.e(8055).then(n.bind(n,643)),"@site/i18n/pt-BR/docusaurus-plugin-content-docs/current/api-and-configurations.mdx",643],f43af5ae:[()=>Promise.all([n.e(532),n.e(5909)]).then(n.bind(n,104)),"@site/docs/examples/typescript/basic-custom-class.mdx",104],f54f1246:[()=>n.e(630).then(n.bind(n,4990)),"@site/docs/documentation/prepared-statements.mdx",4990],f76f5ab7:[()=>Promise.all([n.e(532),n.e(3776)]).then(n.bind(n,7153)),"@site/docs/examples/tests/pool.mdx",7153],f8d74a12:[()=>Promise.all([n.e(532),n.e(5020),n.e(5807)]).then(n.bind(n,7330)),"@site/docs/contributing/website.mdx",7330],fb880757:[()=>n.e(1465).then(n.t.bind(n,5745,19)),"/home/runner/work/node-mysql2/node-mysql2/website/.docusaurus/docusaurus-plugin-content-pages/default/plugin-route-context-module-100.json",5745]};var i=n(5893);function l(e){let{error:t,retry:n,pastDelay:r}=e;return t?(0,i.jsxs)("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"},children:[(0,i.jsx)("p",{children:String(t)}),(0,i.jsx)("div",{children:(0,i.jsx)("button",{type:"button",onClick:n,children:"Retry"})})]}):r?(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:(0,i.jsx)("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb",children:(0,i.jsxs)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2",children:[(0,i.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,i.jsx)("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,i.jsx)("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,i.jsx)("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,i.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,i.jsx)("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,i.jsx)("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,i.jsx)("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,i.jsx)("circle",{cx:"22",cy:"22",r:"8",children:(0,i.jsx)("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})})]})})}):null}var c=n(9670),u=n(226);function d(e,t){if("*"===e)return a()({loading:l,loader:()=>n.e(1772).then(n.bind(n,1772)),modules:["@theme/NotFound"],webpack:()=>[1772],render(e,t){const n=e.default;return(0,i.jsx)(u.z,{value:{plugin:{name:"native",id:"default"}},children:(0,i.jsx)(n,{...t})})}});const r=o[`${e}-${t}`],d={},p=[],f=[],m=(0,c.Z)(r);return Object.entries(m).forEach((e=>{let[t,n]=e;const r=s[n];r&&(d[t]=r[0],p.push(r[1]),f.push(r[2]))})),a().Map({loading:l,loader:d,modules:p,webpack:()=>f,render(t,n){const a=JSON.parse(JSON.stringify(r));Object.entries(t).forEach((t=>{let[n,r]=t;const o=r.default;if(!o)throw new Error(`The page component at ${e} doesn't have a default export. This makes it impossible to render anything. Consider default-exporting a React component.`);"object"!=typeof o&&"function"!=typeof o||Object.keys(r).filter((e=>"default"!==e)).forEach((e=>{o[e]=r[e]}));let s=a;const i=n.split(".");i.slice(0,-1).forEach((e=>{s=s[e]})),s[i[i.length-1]]=o}));const o=a.__comp;delete a.__comp;const s=a.__context;return delete a.__context,(0,i.jsx)(u.z,{value:s,children:(0,i.jsx)(o,{...a,...n})})}})}const p=[{path:"/node-mysql2/pt-BR/search",component:d("/node-mysql2/pt-BR/search","c30"),exact:!0},{path:"/node-mysql2/pt-BR/docs",component:d("/node-mysql2/pt-BR/docs","f44"),routes:[{path:"/node-mysql2/pt-BR/docs",component:d("/node-mysql2/pt-BR/docs","bd1"),routes:[{path:"/node-mysql2/pt-BR/docs/tags",component:d("/node-mysql2/pt-BR/docs/tags","790"),exact:!0},{path:"/node-mysql2/pt-BR/docs/tags/create-connection",component:d("/node-mysql2/pt-BR/docs/tags/create-connection","31b"),exact:!0},{path:"/node-mysql2/pt-BR/docs/tags/create-pool",component:d("/node-mysql2/pt-BR/docs/tags/create-pool","ef6"),exact:!0},{path:"/node-mysql2/pt-BR/docs/tags/create-pool-cluster",component:d("/node-mysql2/pt-BR/docs/tags/create-pool-cluster","ded"),exact:!0},{path:"/node-mysql2/pt-BR/docs/tags/execute",component:d("/node-mysql2/pt-BR/docs/tags/execute","0dd"),exact:!0},{path:"/node-mysql2/pt-BR/docs/tags/parameters",component:d("/node-mysql2/pt-BR/docs/tags/parameters","af3"),exact:!0},{path:"/node-mysql2/pt-BR/docs/tags/placeholders",component:d("/node-mysql2/pt-BR/docs/tags/placeholders","b4d"),exact:!0},{path:"/node-mysql2/pt-BR/docs/tags/prepared-statements",component:d("/node-mysql2/pt-BR/docs/tags/prepared-statements","382"),exact:!0},{path:"/node-mysql2/pt-BR/docs/tags/query",component:d("/node-mysql2/pt-BR/docs/tags/query","f56"),exact:!0},{path:"/node-mysql2/pt-BR/docs/tags/rds",component:d("/node-mysql2/pt-BR/docs/tags/rds","845"),exact:!0},{path:"/node-mysql2/pt-BR/docs/tags/sha-1",component:d("/node-mysql2/pt-BR/docs/tags/sha-1","04c"),exact:!0},{path:"/node-mysql2/pt-BR/docs/tags/socks",component:d("/node-mysql2/pt-BR/docs/tags/socks","504"),exact:!0},{path:"/node-mysql2/pt-BR/docs/tags/ssl",component:d("/node-mysql2/pt-BR/docs/tags/ssl","413"),exact:!0},{path:"/node-mysql2/pt-BR/docs/tags/uri",component:d("/node-mysql2/pt-BR/docs/tags/uri","2d2"),exact:!0},{path:"/node-mysql2/pt-BR/docs",component:d("/node-mysql2/pt-BR/docs","50c"),routes:[{path:"/node-mysql2/pt-BR/docs",component:d("/node-mysql2/pt-BR/docs","94c"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/acknowledgements",component:d("/node-mysql2/pt-BR/docs/acknowledgements","10e"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/api-and-configurations",component:d("/node-mysql2/pt-BR/docs/api-and-configurations","36d"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/contributing",component:d("/node-mysql2/pt-BR/docs/contributing","349"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/contributing/website",component:d("/node-mysql2/pt-BR/docs/contributing/website","2f7"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/documentation",component:d("/node-mysql2/pt-BR/docs/documentation","2a3"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/documentation/authentication-switch",component:d("/node-mysql2/pt-BR/docs/documentation/authentication-switch","5d1"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/documentation/extras",component:d("/node-mysql2/pt-BR/docs/documentation/extras","de6"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/documentation/mysql-server",component:d("/node-mysql2/pt-BR/docs/documentation/mysql-server","d9f"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/documentation/prepared-statements",component:d("/node-mysql2/pt-BR/docs/documentation/prepared-statements","833"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/documentation/promise-wrapper",component:d("/node-mysql2/pt-BR/docs/documentation/promise-wrapper","9ef"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/documentation/typescript-examples",component:d("/node-mysql2/pt-BR/docs/documentation/typescript-examples","a05"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/examples",component:d("/node-mysql2/pt-BR/docs/examples","a0f"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/binlog-watcher",component:d("/node-mysql2/pt-BR/docs/examples/binlog-watcher","eb5"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/connections/create-connection",component:d("/node-mysql2/pt-BR/docs/examples/connections/create-connection","d6a"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/connections/create-pool",component:d("/node-mysql2/pt-BR/docs/examples/connections/create-pool","d83"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster",component:d("/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster","9ad"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/promise-wrapper/co-await",component:d("/node-mysql2/pt-BR/docs/examples/promise-wrapper/co-await","6a6"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements",component:d("/node-mysql2/pt-BR/docs/examples/queries/prepared-statements","9d1"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/delete",component:d("/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/delete","5c4"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/insert",component:d("/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/insert","3a7"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/select",component:d("/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/select","06e"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/update",component:d("/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/update","189"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries",component:d("/node-mysql2/pt-BR/docs/examples/queries/simple-queries","107"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/delete",component:d("/node-mysql2/pt-BR/docs/examples/queries/simple-queries/delete","2a3"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/insert",component:d("/node-mysql2/pt-BR/docs/examples/queries/simple-queries/insert","f2e"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/select",component:d("/node-mysql2/pt-BR/docs/examples/queries/simple-queries/select","3c0"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/update",component:d("/node-mysql2/pt-BR/docs/examples/queries/simple-queries/update","3c4"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/tests/mysql-proxy",component:d("/node-mysql2/pt-BR/docs/examples/tests/mysql-proxy","0ed"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/tests/pool",component:d("/node-mysql2/pt-BR/docs/examples/tests/pool","d1e"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/tests/server",component:d("/node-mysql2/pt-BR/docs/examples/tests/server","3e5"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-class",component:d("/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-class","dfc"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/index",component:d("/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/index","e46"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-array",component:d("/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-array","7cf"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/typescript/row-data/index",component:d("/node-mysql2/pt-BR/docs/examples/typescript/row-data/index","229"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/typescript/row-data/multi-statements",component:d("/node-mysql2/pt-BR/docs/examples/typescript/row-data/multi-statements","f38"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array",component:d("/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array","4b8"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array-multi-statements",component:d("/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array-multi-statements","b47"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/pt-BR/docs/faq",component:d("/node-mysql2/pt-BR/docs/faq","47a"),exact:!0,sidebar:"faq"},{path:"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors",component:d("/node-mysql2/pt-BR/docs/faq/how-to-handle-errors","e71"),exact:!0,sidebar:"faq"},{path:"/node-mysql2/pt-BR/docs/history-and-why-mysq2",component:d("/node-mysql2/pt-BR/docs/history-and-why-mysq2","4f5"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/pt-BR/docs/stability-badges",component:d("/node-mysql2/pt-BR/docs/stability-badges","ca1"),exact:!0,sidebar:"docs"}]}]}]},{path:"/node-mysql2/pt-BR/",component:d("/node-mysql2/pt-BR/","567"),exact:!0},{path:"*",component:d("*")}]},8934:(e,t,n)=>{"use strict";n.d(t,{_:()=>o,t:()=>s});var r=n(7294),a=n(5893);const o=r.createContext(!1);function s(e){let{children:t}=e;const[n,s]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{s(!0)}),[]),(0,a.jsx)(o.Provider,{value:n,children:t})}},7221:(e,t,n)=>{"use strict";var r=n(7294),a=n(745),o=n(3727),s=n(405),i=n(412);const l=[n(2497),n(3310),n(8320),n(3395)];var c=n(723),u=n(6550),d=n(8790),p=n(5893);function f(e){let{children:t}=e;return(0,p.jsx)(p.Fragment,{children:t})}var m=n(5742),h=n(2263),g=n(4996),y=n(6668),b=n(1944),v=n(4711),x=n(9727),w=n(3320),k=n(8780),S=n(197);function E(){const{i18n:{currentLocale:e,defaultLocale:t,localeConfigs:n}}=(0,h.Z)(),r=(0,v.l)(),a=n[e].htmlLang,o=e=>e.replace("-","_");return(0,p.jsxs)(m.Z,{children:[Object.entries(n).map((e=>{let[t,{htmlLang:n}]=e;return(0,p.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:n},t)})),(0,p.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:"x-default"}),(0,p.jsx)("meta",{property:"og:locale",content:o(a)}),Object.values(n).filter((e=>a!==e.htmlLang)).map((e=>(0,p.jsx)("meta",{property:"og:locale:alternate",content:o(e.htmlLang)},`meta-og-${e.htmlLang}`)))]})}function _(e){let{permalink:t}=e;const{siteConfig:{url:n}}=(0,h.Z)(),r=function(){const{siteConfig:{url:e,baseUrl:t,trailingSlash:n}}=(0,h.Z)(),{pathname:r}=(0,u.TH)();return e+(0,k.applyTrailingSlash)((0,g.Z)(r),{trailingSlash:n,baseUrl:t})}(),a=t?`${n}${t}`:r;return(0,p.jsxs)(m.Z,{children:[(0,p.jsx)("meta",{property:"og:url",content:a}),(0,p.jsx)("link",{rel:"canonical",href:a})]})}function C(){const{i18n:{currentLocale:e}}=(0,h.Z)(),{metadata:t,image:n}=(0,y.L)();return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(m.Z,{children:[(0,p.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,p.jsx)("body",{className:x.h})]}),n&&(0,p.jsx)(b.d,{image:n}),(0,p.jsx)(_,{}),(0,p.jsx)(E,{}),(0,p.jsx)(S.Z,{tag:w.HX,locale:e}),(0,p.jsx)(m.Z,{children:t.map(((e,t)=>(0,p.jsx)("meta",{...e},t)))})]})}const T=new Map;function R(e){if(T.has(e.pathname))return{...e,pathname:T.get(e.pathname)};if((0,d.f)(c.Z,e.pathname).some((e=>{let{route:t}=e;return!0===t.exact})))return T.set(e.pathname,e.pathname),e;const t=e.pathname.trim().replace(/(?:\/index)?\.html$/,"")||"/";return T.set(e.pathname,t),{...e,pathname:t}}var L=n(8934),P=n(8940),N=n(469);function A(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const a=l.map((t=>{const r=t.default?.[e]??t[e];return r?.(...n)}));return()=>a.forEach((e=>e?.()))}const O=function(e){let{children:t,location:n,previousLocation:r}=e;return(0,N.Z)((()=>{r!==n&&(!function(e){let{location:t,previousLocation:n}=e;if(!n)return;const r=t.pathname===n.pathname,a=t.hash===n.hash,o=t.search===n.search;if(r&&a&&!o)return;const{hash:s}=t;if(s){const e=decodeURIComponent(s.substring(1)),t=document.getElementById(e);t?.scrollIntoView()}else window.scrollTo(0,0)}({location:n,previousLocation:r}),A("onRouteDidUpdate",{previousLocation:r,location:n}))}),[r,n]),t};function j(e){const t=Array.from(new Set([e,decodeURI(e)])).map((e=>(0,d.f)(c.Z,e))).flat();return Promise.all(t.map((e=>e.route.component.preload?.())))}class I extends r.Component{previousLocation;routeUpdateCleanupCb;constructor(e){super(e),this.previousLocation=null,this.routeUpdateCleanupCb=i.Z.canUseDOM?A("onRouteUpdate",{previousLocation:null,location:this.props.location}):()=>{},this.state={nextRouteHasLoaded:!0}}shouldComponentUpdate(e,t){if(e.location===this.props.location)return t.nextRouteHasLoaded;const n=e.location;return this.previousLocation=this.props.location,this.setState({nextRouteHasLoaded:!1}),this.routeUpdateCleanupCb=A("onRouteUpdate",{previousLocation:this.previousLocation,location:n}),j(n.pathname).then((()=>{this.routeUpdateCleanupCb(),this.setState({nextRouteHasLoaded:!0})})).catch((e=>{console.warn(e),window.location.reload()})),!1}render(){const{children:e,location:t}=this.props;return(0,p.jsx)(O,{previousLocation:this.previousLocation,location:t,children:(0,p.jsx)(u.AW,{location:t,render:()=>e})})}}const B=I,F="__docusaurus-base-url-issue-banner-container",D="__docusaurus-base-url-issue-banner",M="__docusaurus-base-url-issue-banner-suggestion-container";function q(e){return`\ndocument.addEventListener('DOMContentLoaded', function maybeInsertBanner() {\n var shouldInsert = typeof window['docusaurus'] === 'undefined';\n shouldInsert && insertBanner();\n});\n\nfunction insertBanner() {\n var bannerContainer = document.createElement('div');\n bannerContainer.id = '${F}';\n var bannerHtml = ${JSON.stringify(function(e){return`\n<div id="${D}" style="border: thick solid red; background-color: rgb(255, 230, 179); margin: 20px; padding: 20px; font-size: 20px;">\n <p style="font-weight: bold; font-size: 30px;">Your Docusaurus site did not load properly.</p>\n <p>A very common reason is a wrong site <a href="https://docusaurus.io/docs/docusaurus.config.js/#baseUrl" style="font-weight: bold;">baseUrl configuration</a>.</p>\n <p>Current configured baseUrl = <span style="font-weight: bold; color: red;">${e}</span> ${"/"===e?" (default value)":""}</p>\n <p>We suggest trying baseUrl = <span id="${M}" style="font-weight: bold; color: green;"></span></p>\n</div>\n`}(e)).replace(/</g,"\\<")};\n bannerContainer.innerHTML = bannerHtml;\n document.body.prepend(bannerContainer);\n var suggestionContainer = document.getElementById('${M}');\n var actualHomePagePath = window.location.pathname;\n var suggestedBaseUrl = actualHomePagePath.substr(-1) === '/'\n ? actualHomePagePath\n : actualHomePagePath + '/';\n suggestionContainer.innerHTML = suggestedBaseUrl;\n}\n`}function z(){const{siteConfig:{baseUrl:e}}=(0,h.Z)();return(0,p.jsx)(p.Fragment,{children:!i.Z.canUseDOM&&(0,p.jsx)(m.Z,{children:(0,p.jsx)("script",{children:q(e)})})})}function $(){const{siteConfig:{baseUrl:e,baseUrlIssueBanner:t}}=(0,h.Z)(),{pathname:n}=(0,u.TH)();return t&&n===e?(0,p.jsx)(z,{}):null}function U(){const{siteConfig:{favicon:e,title:t,noIndex:n},i18n:{currentLocale:r,localeConfigs:a}}=(0,h.Z)(),o=(0,g.Z)(e),{htmlLang:s,direction:i}=a[r];return(0,p.jsxs)(m.Z,{children:[(0,p.jsx)("html",{lang:s,dir:i}),(0,p.jsx)("title",{children:t}),(0,p.jsx)("meta",{property:"og:title",content:t}),(0,p.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),n&&(0,p.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),e&&(0,p.jsx)("link",{rel:"icon",href:o})]})}var H=n(4763),Q=n(2389);function Z(){const e=(0,Q.Z)();return(0,p.jsx)(m.Z,{children:(0,p.jsx)("html",{"data-has-hydrated":e})})}function V(){const e=(0,d.H)(c.Z),t=(0,u.TH)();return(0,p.jsx)(H.Z,{children:(0,p.jsx)(P.M,{children:(0,p.jsxs)(L.t,{children:[(0,p.jsxs)(f,{children:[(0,p.jsx)(U,{}),(0,p.jsx)(C,{}),(0,p.jsx)($,{}),(0,p.jsx)(B,{location:R(t),children:e})]}),(0,p.jsx)(Z,{})]})})})}var W=n(6887);const G=function(e){try{return document.createElement("link").relList.supports(e)}catch{return!1}}("prefetch")?function(e){return new Promise(((t,n)=>{if("undefined"==typeof document)return void n();const r=document.createElement("link");r.setAttribute("rel","prefetch"),r.setAttribute("href",e),r.onload=()=>t(),r.onerror=()=>n();const a=document.getElementsByTagName("head")[0]??document.getElementsByName("script")[0]?.parentNode;a?.appendChild(r)}))}:function(e){return new Promise(((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.withCredentials=!0,r.onload=()=>{200===r.status?t():n()},r.send(null)}))};var Y=n(9670);const K=new Set,X=new Set,J=()=>navigator.connection?.effectiveType.includes("2g")||navigator.connection?.saveData,ee={prefetch(e){if(!(e=>!J()&&!X.has(e)&&!K.has(e))(e))return!1;K.add(e);const t=(0,d.f)(c.Z,e).flatMap((e=>{return t=e.route.path,Object.entries(W).filter((e=>{let[n]=e;return n.replace(/-[^-]+$/,"")===t})).flatMap((e=>{let[,t]=e;return Object.values((0,Y.Z)(t))}));var t}));return Promise.all(t.map((e=>{const t=n.gca(e);return t&&!t.includes("undefined")?G(t).catch((()=>{})):Promise.resolve()})))},preload:e=>!!(e=>!J()&&!X.has(e))(e)&&(X.add(e),j(e))},te=Object.freeze(ee),ne=Boolean(!0);if(i.Z.canUseDOM){window.docusaurus=te;const e=document.getElementById("__docusaurus"),t=(0,p.jsx)(s.B6,{children:(0,p.jsx)(o.VK,{children:(0,p.jsx)(V,{})})}),n=(e,t)=>{console.error("Docusaurus React Root onRecoverableError:",e,t)},i=()=>{if(ne)r.startTransition((()=>{a.hydrateRoot(e,t,{onRecoverableError:n})}));else{const o=a.createRoot(e,{onRecoverableError:n});r.startTransition((()=>{o.render(t)}))}};j(window.location.pathname).then(i)}},8940:(e,t,n)=>{"use strict";n.d(t,{_:()=>d,M:()=>p});var r=n(7294),a=n(6809);const o=JSON.parse('{"navbar-locale-plugin":{"default":{}},"docusaurus-plugin-content-docs":{"default":{"path":"/node-mysql2/pt-BR/docs","versions":[{"name":"current","label":"Next","isLast":true,"path":"/node-mysql2/pt-BR/docs","mainDocId":"index","docs":[{"id":"acknowledgements","path":"/node-mysql2/pt-BR/docs/acknowledgements","sidebar":"docs"},{"id":"api-and-configurations","path":"/node-mysql2/pt-BR/docs/api-and-configurations","sidebar":"docs"},{"id":"contributing/index","path":"/node-mysql2/pt-BR/docs/contributing","sidebar":"docs"},{"id":"contributing/website","path":"/node-mysql2/pt-BR/docs/contributing/website","sidebar":"docs"},{"id":"documentation/authentication-switch","path":"/node-mysql2/pt-BR/docs/documentation/authentication-switch","sidebar":"docs"},{"id":"documentation/extras","path":"/node-mysql2/pt-BR/docs/documentation/extras","sidebar":"docs"},{"id":"documentation/index","path":"/node-mysql2/pt-BR/docs/documentation","sidebar":"docs"},{"id":"documentation/mysql-server","path":"/node-mysql2/pt-BR/docs/documentation/mysql-server","sidebar":"docs"},{"id":"documentation/prepared-statements","path":"/node-mysql2/pt-BR/docs/documentation/prepared-statements","sidebar":"docs"},{"id":"documentation/promise-wrapper","path":"/node-mysql2/pt-BR/docs/documentation/promise-wrapper","sidebar":"docs"},{"id":"documentation/typescript-examples","path":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","sidebar":"docs"},{"id":"examples/binlog-watcher","path":"/node-mysql2/pt-BR/docs/examples/binlog-watcher","sidebar":"examples"},{"id":"examples/connections/create-connection","path":"/node-mysql2/pt-BR/docs/examples/connections/create-connection","sidebar":"examples"},{"id":"examples/connections/create-pool","path":"/node-mysql2/pt-BR/docs/examples/connections/create-pool","sidebar":"examples"},{"id":"examples/connections/createPoolCluster","path":"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster","sidebar":"examples"},{"id":"examples/index","path":"/node-mysql2/pt-BR/docs/examples","sidebar":"examples"},{"id":"examples/promise-wrapper/co-await","path":"/node-mysql2/pt-BR/docs/examples/promise-wrapper/co-await","sidebar":"examples"},{"id":"examples/queries/prepared-statements/delete","path":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/delete","sidebar":"examples"},{"id":"examples/queries/prepared-statements/index","path":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/","sidebar":"examples"},{"id":"examples/queries/prepared-statements/insert","path":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/insert","sidebar":"examples"},{"id":"examples/queries/prepared-statements/select","path":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/select","sidebar":"examples"},{"id":"examples/queries/prepared-statements/update","path":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/update","sidebar":"examples"},{"id":"examples/queries/simple-queries/delete","path":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/delete","sidebar":"examples"},{"id":"examples/queries/simple-queries/index","path":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/","sidebar":"examples"},{"id":"examples/queries/simple-queries/insert","path":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/insert","sidebar":"examples"},{"id":"examples/queries/simple-queries/select","path":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/select","sidebar":"examples"},{"id":"examples/queries/simple-queries/update","path":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/update","sidebar":"examples"},{"id":"examples/tests/mysql-proxy","path":"/node-mysql2/pt-BR/docs/examples/tests/mysql-proxy","sidebar":"examples"},{"id":"examples/tests/pool","path":"/node-mysql2/pt-BR/docs/examples/tests/pool","sidebar":"examples"},{"id":"examples/tests/server","path":"/node-mysql2/pt-BR/docs/examples/tests/server","sidebar":"examples"},{"id":"examples/typescript/basic-custom-class","path":"/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-class","sidebar":"examples"},{"id":"examples/typescript/procedure-call/index","path":"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/index","sidebar":"examples"},{"id":"examples/typescript/procedure-call/row-as-array","path":"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-array","sidebar":"examples"},{"id":"examples/typescript/row-data/index","path":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/index","sidebar":"examples"},{"id":"examples/typescript/row-data/multi-statements","path":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/multi-statements","sidebar":"examples"},{"id":"examples/typescript/row-data/row-as-array","path":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array","sidebar":"examples"},{"id":"examples/typescript/row-data/row-as-array-multi-statements","path":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array-multi-statements","sidebar":"examples"},{"id":"faq/how-to-handle-errors","path":"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors","sidebar":"faq"},{"id":"faq/index","path":"/node-mysql2/pt-BR/docs/faq","sidebar":"faq"},{"id":"history-and-why-mysq2","path":"/node-mysql2/pt-BR/docs/history-and-why-mysq2","sidebar":"docs"},{"id":"index","path":"/node-mysql2/pt-BR/docs/","sidebar":"docs"},{"id":"stability-badges","path":"/node-mysql2/pt-BR/docs/stability-badges","sidebar":"docs"}],"draftIds":[],"sidebars":{"docs":{"link":{"path":"/node-mysql2/pt-BR/docs/","label":"index"}},"examples":{"link":{"path":"/node-mysql2/pt-BR/docs/examples","label":"examples/index"}},"faq":{"link":{"path":"/node-mysql2/pt-BR/docs/faq","label":"faq/index"}}}}],"breadcrumbs":true}}}'),s=JSON.parse('{"defaultLocale":"en","locales":["en","zh-CN","pt-BR"],"path":"i18n","currentLocale":"pt-BR","localeConfigs":{"en":{"label":"\ud83c\uddfa\ud83c\uddf8 English","direction":"ltr","htmlLang":"en","calendar":"gregory","path":"en"},"zh-CN":{"label":"\ud83c\udde8\ud83c\uddf3 \u7b80\u4f53\u4e2d\u6587","direction":"ltr","htmlLang":"zh-CN","calendar":"gregory","path":"zh-CN"},"pt-BR":{"label":"\ud83c\udde7\ud83c\uddf7 Portugu\xeas (Brasil)","direction":"ltr","htmlLang":"pt-BR","calendar":"gregory","path":"pt-BR"}}}');var i=n(7529);const l=JSON.parse('{"docusaurusVersion":"3.1.0","siteVersion":"0.0.0","pluginVersions":{"docusaurus-plugin-content-docs":{"type":"package","name":"@docusaurus/plugin-content-docs","version":"3.1.0"},"docusaurus-plugin-content-pages":{"type":"package","name":"@docusaurus/plugin-content-pages","version":"3.1.0"},"docusaurus-plugin-sitemap":{"type":"package","name":"@docusaurus/plugin-sitemap","version":"3.1.0"},"docusaurus-theme-classic":{"type":"package","name":"@docusaurus/theme-classic","version":"3.1.0"},"docusaurus-plugin-sass":{"type":"package","name":"docusaurus-plugin-sass","version":"0.2.5"},"@easyops-cn/docusaurus-search-local":{"type":"package","name":"@easyops-cn/docusaurus-search-local","version":"0.40.1"},"navbar-locale-plugin":{"type":"local"}}}');var c=n(5893);const u={siteConfig:a.default,siteMetadata:l,globalData:o,i18n:s,codeTranslations:i},d=r.createContext(u);function p(e){let{children:t}=e;return(0,c.jsx)(d.Provider,{value:u,children:t})}},4763:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(7294),a=n(412),o=n(5742),s=n(8780),i=n(8862),l=n(5893);function c(e){let{error:t,tryAgain:n}=e;return(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",minHeight:"100vh",width:"100%",maxWidth:"80ch",fontSize:"20px",margin:"0 auto",padding:"1rem"},children:[(0,l.jsx)("h1",{style:{fontSize:"3rem"},children:"This page crashed"}),(0,l.jsx)("button",{type:"button",onClick:n,style:{margin:"1rem 0",fontSize:"2rem",cursor:"pointer",borderRadius:20,padding:"1rem"},children:"Try again"}),(0,l.jsx)(u,{error:t})]})}function u(e){let{error:t}=e;const n=(0,s.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,l.jsx)("p",{style:{whiteSpace:"pre-wrap"},children:n})}function d(e){let{error:t,tryAgain:n}=e;return(0,l.jsxs)(f,{fallback:()=>(0,l.jsx)(c,{error:t,tryAgain:n}),children:[(0,l.jsx)(o.Z,{children:(0,l.jsx)("title",{children:"Page Error"})}),(0,l.jsx)(i.Z,{children:(0,l.jsx)(c,{error:t,tryAgain:n})})]})}const p=e=>(0,l.jsx)(d,{...e});class f extends r.Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){a.Z.canUseDOM&&this.setState({error:e})}render(){const{children:e}=this.props,{error:t}=this.state;if(t){const e={error:t,tryAgain:()=>this.setState({error:null})};return(this.props.fallback??p)(e)}return e??null}}},412:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r="undefined"!=typeof window&&"document"in window&&"createElement"in window.document,a={canUseDOM:r,canUseEventListeners:r&&("addEventListener"in window||"attachEvent"in window),canUseIntersectionObserver:r&&"IntersectionObserver"in window,canUseViewport:r&&"screen"in window}},5742:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(7294);var r=n(405),a=n(5893);function o(e){return(0,a.jsx)(r.ql,{...e})}},3692:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(7294),a=n(3727),o=n(8780),s=n(2263),i=n(3919),l=n(412),c=n(8138),u=n(4996),d=n(5893);function p(e,t){let{isNavLink:n,to:p,href:f,activeClassName:m,isActive:h,"data-noBrokenLinkCheck":g,autoAddBaseUrl:y=!0,...b}=e;const{siteConfig:{trailingSlash:v,baseUrl:x}}=(0,s.Z)(),{withBaseUrl:w}=(0,u.C)(),k=(0,c.Z)(),S=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(()=>S.current));const E=p||f;const _=(0,i.Z)(E),C=E?.replace("pathname://","");let T=void 0!==C?(R=C,y&&(e=>e.startsWith("/"))(R)?w(R):R):void 0;var R;T&&_&&(T=(0,o.applyTrailingSlash)(T,{trailingSlash:v,baseUrl:x}));const L=(0,r.useRef)(!1),P=n?a.OL:a.rU,N=l.Z.canUseIntersectionObserver,A=(0,r.useRef)(),O=()=>{L.current||null==T||(window.docusaurus.preload(T),L.current=!0)};(0,r.useEffect)((()=>(!N&&_&&null!=T&&window.docusaurus.prefetch(T),()=>{N&&A.current&&A.current.disconnect()})),[A,T,N,_]);const j=T?.startsWith("#")??!1,I=!T||!_||j;return I||g||k.collectLink(T),I?(0,d.jsx)("a",{ref:S,href:T,...E&&!_&&{target:"_blank",rel:"noopener noreferrer"},...b}):(0,d.jsx)(P,{...b,onMouseEnter:O,onTouchStart:O,innerRef:e=>{S.current=e,N&&e&&_&&(A.current=new window.IntersectionObserver((t=>{t.forEach((t=>{e===t.target&&(t.isIntersecting||t.intersectionRatio>0)&&(A.current.unobserve(e),A.current.disconnect(),null!=T&&window.docusaurus.prefetch(T))}))})),A.current.observe(e))},to:T,...n&&{isActive:h,activeClassName:m}})}const f=r.forwardRef(p)},5999:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,I:()=>l});var r=n(7294),a=n(5893);function o(e,t){const n=e.split(/(\{\w+\})/).map(((e,n)=>{if(n%2==1){const n=t?.[e.slice(1,-1)];if(void 0!==n)return n}return e}));return n.some((e=>(0,r.isValidElement)(e)))?n.map(((e,t)=>(0,r.isValidElement)(e)?r.cloneElement(e,{key:t}):e)).filter((e=>""!==e)):n.join("")}var s=n(7529);function i(e){let{id:t,message:n}=e;if(void 0===t&&void 0===n)throw new Error("Docusaurus translation declarations must have at least a translation id or a default translation message");return s[t??n]??n??t}function l(e,t){let{message:n,id:r}=e;return o(i({message:n,id:r}),t)}function c(e){let{children:t,id:n,values:r}=e;if(t&&"string"!=typeof t)throw console.warn("Illegal <Translate> children",t),new Error("The Docusaurus <Translate> component only accept simple string values");const s=i({message:t,id:n});return(0,a.jsx)(a.Fragment,{children:o(s,r)})}},9935:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});const r="default"},3919:(e,t,n)=>{"use strict";function r(e){return/^(?:\w*:|\/\/)/.test(e)}function a(e){return void 0!==e&&!r(e)}n.d(t,{Z:()=>a,b:()=>r})},4996:(e,t,n)=>{"use strict";n.d(t,{C:()=>s,Z:()=>i});var r=n(7294),a=n(2263),o=n(3919);function s(){const{siteConfig:{baseUrl:e,url:t}}=(0,a.Z)(),n=(0,r.useCallback)(((n,r)=>function(e,t,n,r){let{forcePrependBaseUrl:a=!1,absolute:s=!1}=void 0===r?{}:r;if(!n||n.startsWith("#")||(0,o.b)(n))return n;if(a)return t+n.replace(/^\//,"");if(n===t.replace(/\/$/,""))return t;const i=n.startsWith(t)?n:t+n.replace(/^\//,"");return s?e+i:i}(t,e,n,r)),[t,e]);return{withBaseUrl:n}}function i(e,t){void 0===t&&(t={});const{withBaseUrl:n}=s();return n(e,t)}},8138:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7294);n(5893);const a=r.createContext({collectAnchor:()=>{},collectLink:()=>{}}),o=()=>(0,r.useContext)(a);function s(){return o()}},2263:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(8940);function o(){return(0,r.useContext)(a._)}},2389:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(8934);function o(){return(0,r.useContext)(a._)}},469:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7294);const a=n(412).Z.canUseDOM?r.useLayoutEffect:r.useEffect},9670:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r=e=>"object"==typeof e&&!!e&&Object.keys(e).length>0;function a(e){const t={};return function e(n,a){Object.entries(n).forEach((n=>{let[o,s]=n;const i=a?`${a}.${o}`:o;r(s)?e(s,i):t[i]=s}))}(e),t}},226:(e,t,n)=>{"use strict";n.d(t,{_:()=>o,z:()=>s});var r=n(7294),a=n(5893);const o=r.createContext(null);function s(e){let{children:t,value:n}=e;const s=r.useContext(o),i=(0,r.useMemo)((()=>function(e){let{parent:t,value:n}=e;if(!t){if(!n)throw new Error("Unexpected: no Docusaurus route context found");if(!("plugin"in n))throw new Error("Unexpected: Docusaurus topmost route context has no `plugin` attribute");return n}const r={...t.data,...n?.data};return{plugin:t.plugin,data:r}}({parent:s,value:n})),[s,n]);return(0,a.jsx)(o.Provider,{value:i,children:t})}},143:(e,t,n)=>{"use strict";n.d(t,{Iw:()=>h,gA:()=>p,_r:()=>u,Jo:()=>g,zh:()=>d,yW:()=>m,gB:()=>f});var r=n(6550),a=n(2263),o=n(9935);function s(e,t){void 0===t&&(t={});const n=function(){const{globalData:e}=(0,a.Z)();return e}()[e];if(!n&&t.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin.`);return n}const i=e=>e.versions.find((e=>e.isLast));function l(e,t){const n=function(e,t){const n=i(e);return[...e.versions.filter((e=>e!==n)),n].find((e=>!!(0,r.LX)(t,{path:e.path,exact:!1,strict:!1})))}(e,t),a=n?.docs.find((e=>!!(0,r.LX)(t,{path:e.path,exact:!0,strict:!1})));return{activeVersion:n,activeDoc:a,alternateDocVersions:a?function(t){const n={};return e.versions.forEach((e=>{e.docs.forEach((r=>{r.id===t&&(n[e.name]=r)}))})),n}(a.id):{}}}const c={},u=()=>s("docusaurus-plugin-content-docs")??c,d=e=>function(e,t,n){void 0===t&&(t=o.m),void 0===n&&(n={});const r=s(e),a=r?.[t];if(!a&&n.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin with id "${t}".`);return a}("docusaurus-plugin-content-docs",e,{failfast:!0});function p(e){void 0===e&&(e={});const t=u(),{pathname:n}=(0,r.TH)();return function(e,t,n){void 0===n&&(n={});const a=Object.entries(e).sort(((e,t)=>t[1].path.localeCompare(e[1].path))).find((e=>{let[,n]=e;return!!(0,r.LX)(t,{path:n.path,exact:!1,strict:!1})})),o=a?{pluginId:a[0],pluginData:a[1]}:void 0;if(!o&&n.failfast)throw new Error(`Can't find active docs plugin for "${t}" pathname, while it was expected to be found. Maybe you tried to use a docs feature that can only be used on a docs-related page? Existing docs plugin paths are: ${Object.values(e).map((e=>e.path)).join(", ")}`);return o}(t,n,e)}function f(e){return d(e).versions}function m(e){const t=d(e);return i(t)}function h(e){const t=d(e),{pathname:n}=(0,r.TH)();return l(t,n)}function g(e){const t=d(e),{pathname:n}=(0,r.TH)();return function(e,t){const n=i(e);return{latestDocSuggestion:l(e,t).alternateDocVersions[n.name],latestVersionSuggestion:n}}(t,n)}},8320:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4865),a=n.n(r);a().configure({showSpinner:!1});const o={onRouteUpdate(e){let{location:t,previousLocation:n}=e;if(n&&t.pathname!==n.pathname){const e=window.setTimeout((()=>{a().start()}),200);return()=>window.clearTimeout(e)}},onRouteDidUpdate(){a().done()}}},3310:(e,t,n)=>{"use strict";n.r(t);var r=n(2573),a=n(6809);!function(e){const{themeConfig:{prism:t}}=a.default,{additionalLanguages:r}=t;globalThis.Prism=e,r.forEach((e=>{"php"===e&&n(6854),n(5897)(`./prism-${e}`)})),delete globalThis.Prism}(r.p1)},2503:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(7294);var r=n(512),a=n(5999),o=n(6668),s=n(3692),i=n(8138);const l={anchorWithStickyNavbar:"anchorWithStickyNavbar_LWe7",anchorWithHideOnScrollNavbar:"anchorWithHideOnScrollNavbar_WYt5"};var c=n(5893);function u(e){let{as:t,id:n,...u}=e;const d=(0,i.Z)(),{navbar:{hideOnScroll:p}}=(0,o.L)();if("h1"===t||!n)return(0,c.jsx)(t,{...u,id:void 0});d.collectAnchor(n);const f=(0,a.I)({id:"theme.common.headingLinkTitle",message:"Direct link to {heading}",description:"Title for link to heading"},{heading:"string"==typeof u.children?u.children:n});return(0,c.jsxs)(t,{...u,className:(0,r.Z)("anchor",p?l.anchorWithHideOnScrollNavbar:l.anchorWithStickyNavbar,u.className),id:n,children:[u.children,(0,c.jsx)(s.Z,{className:"hash-link",to:`#${n}`,"aria-label":f,title:f,children:"\u200b"})]})}},9471:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(7294);const r={iconExternalLink:"iconExternalLink_nPIU"};var a=n(5893);function o(e){let{width:t=13.5,height:n=13.5}=e;return(0,a.jsx)("svg",{width:t,height:n,"aria-hidden":"true",viewBox:"0 0 24 24",className:r.iconExternalLink,children:(0,a.jsx)("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"})})}},8862:(e,t,n)=>{"use strict";n.d(t,{Z:()=>It});var r=n(7294),a=n(512),o=n(4763),s=n(1944),i=n(6550),l=n(5999),c=n(5936),u=n(5893);const d="__docusaurus_skipToContent_fallback";function p(e){e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")}function f(){const e=(0,r.useRef)(null),{action:t}=(0,i.k6)(),n=(0,r.useCallback)((e=>{e.preventDefault();const t=document.querySelector("main:first-of-type")??document.getElementById(d);t&&p(t)}),[]);return(0,c.S)((n=>{let{location:r}=n;e.current&&!r.hash&&"PUSH"===t&&p(e.current)})),{containerRef:e,onClick:n}}const m=(0,l.I)({id:"theme.common.skipToMainContent",description:"The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",message:"Skip to main content"});function h(e){const t=e.children??m,{containerRef:n,onClick:r}=f();return(0,u.jsx)("div",{ref:n,role:"region","aria-label":m,children:(0,u.jsx)("a",{...e,href:`#${d}`,onClick:r,children:t})})}var g=n(5281),y=n(9727);const b={skipToContent:"skipToContent_fXgn"};function v(){return(0,u.jsx)(h,{className:b.skipToContent})}var x=n(6668),w=n(9689);function k(e){let{width:t=21,height:n=21,color:r="currentColor",strokeWidth:a=1.2,className:o,...s}=e;return(0,u.jsx)("svg",{viewBox:"0 0 15 15",width:t,height:n,...s,children:(0,u.jsx)("g",{stroke:r,strokeWidth:a,children:(0,u.jsx)("path",{d:"M.75.75l13.5 13.5M14.25.75L.75 14.25"})})})}const S={closeButton:"closeButton_CVFx"};function E(e){return(0,u.jsx)("button",{type:"button","aria-label":(0,l.I)({id:"theme.AnnouncementBar.closeButtonAriaLabel",message:"Close",description:"The ARIA label for close button of announcement bar"}),...e,className:(0,a.Z)("clean-btn close",S.closeButton,e.className),children:(0,u.jsx)(k,{width:14,height:14,strokeWidth:3.1})})}const _={content:"content_knG7"};function C(e){const{announcementBar:t}=(0,x.L)(),{content:n}=t;return(0,u.jsx)("div",{...e,className:(0,a.Z)(_.content,e.className),dangerouslySetInnerHTML:{__html:n}})}const T={announcementBar:"announcementBar_mb4j",announcementBarPlaceholder:"announcementBarPlaceholder_vyr4",announcementBarClose:"announcementBarClose_gvF7",announcementBarContent:"announcementBarContent_xLdY"};function R(){const{announcementBar:e}=(0,x.L)(),{isActive:t,close:n}=(0,w.nT)();if(!t)return null;const{backgroundColor:r,textColor:a,isCloseable:o}=e;return(0,u.jsxs)("div",{className:T.announcementBar,style:{backgroundColor:r,color:a},role:"banner",children:[o&&(0,u.jsx)("div",{className:T.announcementBarPlaceholder}),(0,u.jsx)(C,{className:T.announcementBarContent}),o&&(0,u.jsx)(E,{onClick:n,className:T.announcementBarClose})]})}var L=n(3163),P=n(2466);var N=n(902),A=n(3102);const O=r.createContext(null);function j(e){let{children:t}=e;const n=function(){const e=(0,L.e)(),t=(0,A.HY)(),[n,a]=(0,r.useState)(!1),o=null!==t.component,s=(0,N.D9)(o);return(0,r.useEffect)((()=>{o&&!s&&a(!0)}),[o,s]),(0,r.useEffect)((()=>{o?e.shown||a(!0):a(!1)}),[e.shown,o]),(0,r.useMemo)((()=>[n,a]),[n])}();return(0,u.jsx)(O.Provider,{value:n,children:t})}function I(e){if(e.component){const t=e.component;return(0,u.jsx)(t,{...e.props})}}function B(){const e=(0,r.useContext)(O);if(!e)throw new N.i6("NavbarSecondaryMenuDisplayProvider");const[t,n]=e,a=(0,r.useCallback)((()=>n(!1)),[n]),o=(0,A.HY)();return(0,r.useMemo)((()=>({shown:t,hide:a,content:I(o)})),[a,o,t])}function F(e){let{header:t,primaryMenu:n,secondaryMenu:r}=e;const{shown:o}=B();return(0,u.jsxs)("div",{className:"navbar-sidebar",children:[t,(0,u.jsxs)("div",{className:(0,a.Z)("navbar-sidebar__items",{"navbar-sidebar__items--show-secondary":o}),children:[(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:n}),(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:r})]})]})}var D=n(2949),M=n(2389);function q(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"})})}function z(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"})})}const $={toggle:"toggle_vylO",toggleButton:"toggleButton_gllP",darkToggleIcon:"darkToggleIcon_wfgR",lightToggleIcon:"lightToggleIcon_pyhR",toggleButtonDisabled:"toggleButtonDisabled_aARS"};function U(e){let{className:t,buttonClassName:n,value:r,onChange:o}=e;const s=(0,M.Z)(),i=(0,l.I)({message:"Switch between dark and light mode (currently {mode})",id:"theme.colorToggle.ariaLabel",description:"The ARIA label for the navbar color mode toggle"},{mode:"dark"===r?(0,l.I)({message:"dark mode",id:"theme.colorToggle.ariaLabel.mode.dark",description:"The name for the dark color mode"}):(0,l.I)({message:"light mode",id:"theme.colorToggle.ariaLabel.mode.light",description:"The name for the light color mode"})});return(0,u.jsx)("div",{className:(0,a.Z)($.toggle,t),children:(0,u.jsxs)("button",{className:(0,a.Z)("clean-btn",$.toggleButton,!s&&$.toggleButtonDisabled,n),type:"button",onClick:()=>o("dark"===r?"light":"dark"),disabled:!s,title:i,"aria-label":i,"aria-live":"polite",children:[(0,u.jsx)(q,{className:(0,a.Z)($.toggleIcon,$.lightToggleIcon)}),(0,u.jsx)(z,{className:(0,a.Z)($.toggleIcon,$.darkToggleIcon)})]})})}const H=r.memo(U),Q={darkNavbarColorModeToggle:"darkNavbarColorModeToggle_X3D1"};function Z(e){let{className:t}=e;const n=(0,x.L)().navbar.style,r=(0,x.L)().colorMode.disableSwitch,{colorMode:a,setColorMode:o}=(0,D.I)();return r?null:(0,u.jsx)(H,{className:t,buttonClassName:"dark"===n?Q.darkNavbarColorModeToggle:void 0,value:a,onChange:o})}var V=n(1327);function W(){return(0,u.jsx)(V.Z,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:"navbar__title text--truncate"})}function G(){const e=(0,L.e)();return(0,u.jsx)("button",{type:"button","aria-label":(0,l.I)({id:"theme.docs.sidebar.closeSidebarButtonAriaLabel",message:"Close navigation bar",description:"The ARIA label for close button of mobile sidebar"}),className:"clean-btn navbar-sidebar__close",onClick:()=>e.toggle(),children:(0,u.jsx)(k,{color:"var(--ifm-color-emphasis-600)"})})}function Y(){return(0,u.jsxs)("div",{className:"navbar-sidebar__brand",children:[(0,u.jsx)(W,{}),(0,u.jsx)(Z,{className:"margin-right--md"}),(0,u.jsx)(G,{})]})}var K=n(3692),X=n(4996),J=n(3919);function ee(e,t){return void 0!==e&&void 0!==t&&new RegExp(e,"gi").test(t)}var te=n(9471);function ne(e){let{activeBasePath:t,activeBaseRegex:n,to:r,href:a,label:o,html:s,isDropdownLink:i,prependBaseUrlToHref:l,...c}=e;const d=(0,X.Z)(r),p=(0,X.Z)(t),f=(0,X.Z)(a,{forcePrependBaseUrl:!0}),m=o&&a&&!(0,J.Z)(a),h=s?{dangerouslySetInnerHTML:{__html:s}}:{children:(0,u.jsxs)(u.Fragment,{children:[o,m&&(0,u.jsx)(te.Z,{...i&&{width:12,height:12}})]})};return a?(0,u.jsx)(K.Z,{href:l?f:a,...c,...h}):(0,u.jsx)(K.Z,{to:d,isNavLink:!0,...(t||n)&&{isActive:(e,t)=>n?ee(n,t.pathname):t.pathname.startsWith(p)},...c,...h})}function re(e){let{className:t,isDropdownItem:n=!1,...r}=e;const o=(0,u.jsx)(ne,{className:(0,a.Z)(n?"dropdown__link":"navbar__item navbar__link",t),isDropdownLink:n,...r});return n?(0,u.jsx)("li",{children:o}):o}function ae(e){let{className:t,isDropdownItem:n,...r}=e;return(0,u.jsx)("li",{className:"menu__list-item",children:(0,u.jsx)(ne,{className:(0,a.Z)("menu__link",t),...r})})}function oe(e){let{mobile:t=!1,position:n,...r}=e;const a=t?ae:re;return(0,u.jsx)(a,{...r,activeClassName:r.activeClassName??(t?"menu__link--active":"navbar__link--active")})}var se=n(6043),ie=n(8596),le=n(2263);const ce={dropdownNavbarItemMobile:"dropdownNavbarItemMobile_S0Fm"};function ue(e,t){return e.some((e=>function(e,t){return!!(0,ie.Mg)(e.to,t)||!!ee(e.activeBaseRegex,t)||!(!e.activeBasePath||!t.startsWith(e.activeBasePath))}(e,t)))}function de(e){let{items:t,position:n,className:o,onClick:s,...i}=e;const l=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=e=>{l.current&&!l.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("focusin",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("focusin",e)}}),[l]),(0,u.jsxs)("div",{ref:l,className:(0,a.Z)("navbar__item","dropdown","dropdown--hoverable",{"dropdown--right":"right"===n,"dropdown--show":c}),children:[(0,u.jsx)(ne,{"aria-haspopup":"true","aria-expanded":c,role:"button",href:i.to?void 0:"#",className:(0,a.Z)("navbar__link",o),...i,onClick:i.to?void 0:e=>e.preventDefault(),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),d(!c))},children:i.children??i.label}),(0,u.jsx)("ul",{className:"dropdown__menu",children:t.map(((e,t)=>(0,r.createElement)(Ve,{isDropdownItem:!0,activeClassName:"dropdown__link--active",...e,key:t})))})]})}function pe(e){let{items:t,className:n,position:o,onClick:s,...l}=e;const c=function(){const{siteConfig:{baseUrl:e}}=(0,le.Z)(),{pathname:t}=(0,i.TH)();return t.replace(e,"/")}(),d=ue(t,c),{collapsed:p,toggleCollapsed:f,setCollapsed:m}=(0,se.u)({initialState:()=>!d});return(0,r.useEffect)((()=>{d&&m(!d)}),[c,d,m]),(0,u.jsxs)("li",{className:(0,a.Z)("menu__list-item",{"menu__list-item--collapsed":p}),children:[(0,u.jsx)(ne,{role:"button",className:(0,a.Z)(ce.dropdownNavbarItemMobile,"menu__link menu__link--sublist menu__link--sublist-caret",n),...l,onClick:e=>{e.preventDefault(),f()},children:l.children??l.label}),(0,u.jsx)(se.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:p,children:t.map(((e,t)=>(0,r.createElement)(Ve,{mobile:!0,isDropdownItem:!0,onClick:s,activeClassName:"menu__link--active",...e,key:t})))})]})}function fe(e){let{mobile:t=!1,...n}=e;const r=t?pe:de;return(0,u.jsx)(r,{...n})}var me=n(4711);function he(e){let{width:t=20,height:n=20,...r}=e;return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:t,height:n,"aria-hidden":!0,...r,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"})})}const ge="iconLanguage_nlXk";var ye=n(8087),be=n(1728),ve=n(373),xe=n(143),we=n(22),ke=n(8202),Se=n(3926),Ee=n(1073),_e=n(2539),Ce=n(726);const Te='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M17 6v12c0 .52-.2 1-1 1H4c-.7 0-1-.33-1-1V2c0-.55.42-1 1-1h8l5 5zM14 8h-3.13c-.51 0-.87-.34-.87-.87V4" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linejoin="round"></path></svg>',Re='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M13 13h4-4V8H7v5h6v4-4H7V8H3h4V3v5h6V3v5h4-4v5zm-6 0v4-4H3h4z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path></svg>',Le='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M17 5H3h14zm0 5H3h14zm0 5H3h14z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linejoin="round"></path></svg>',Pe='<svg width="20" height="20" viewBox="0 0 20 20"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M18 3v4c0 2-2 4-4 4H2"></path><path d="M8 17l-6-6 6-6"></path></g></svg>',Ne='<svg width="40" height="40" viewBox="0 0 20 20" fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 4.8c2 3 1.7 7-1 9.7h0l4.3 4.3-4.3-4.3a7.8 7.8 0 01-9.8 1m-2.2-2.2A7.8 7.8 0 0113.2 2.4M2 18L18 2"></path></svg>',Ae='<svg viewBox="0 0 24 54"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6v42M20 27H8.3"></path></g></svg>',Oe='<svg viewBox="0 0 24 54"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6v21M20 27H8.3"></path></g></svg>',je={searchBar:"searchBar_RVTs",dropdownMenu:"dropdownMenu_qbY6",searchBarLeft:"searchBarLeft_MXDe",suggestion:"suggestion_fB_2",cursor:"cursor_eG29",hitTree:"hitTree_kk6K",hitIcon:"hitIcon_a7Zy",hitPath:"hitPath_ieM4",noResultsIcon:"noResultsIcon_EBY5",hitFooter:"hitFooter_E9YW",hitWrapper:"hitWrapper_sAK8",hitTitle:"hitTitle_vyVt",hitAction:"hitAction_NqkB",hideAction:"hideAction_vcyE",noResults:"noResults_l6Q3",searchBarContainer:"searchBarContainer_NW3z",searchBarLoadingRing:"searchBarLoadingRing_YnHq",searchClearButton:"searchClearButton_qk4g",searchIndexLoading:"searchIndexLoading_EJ1f",searchHintContainer:"searchHintContainer_Pkmr",searchHint:"searchHint_iIMx",focused:"focused_OWtg",input:"input_FOTf",hint:"hint_URu1",suggestions:"suggestions_X8XU",dataset:"dataset_QiCy",empty:"empty_eITn"};function Ie(e){let{document:t,type:n,page:r,metadata:a,tokens:o,isInterOfTree:s,isLastOfTree:i}=e;const l=0===n,c=1===n,u=[];s?u.push(Ae):i&&u.push(Oe);const d=u.map((e=>`<span class="${je.hitTree}">${e}</span>`)),p=`<span class="${je.hitIcon}">${l?Te:c?Re:Le}</span>`,f=[`<span class="${je.hitTitle}">${(0,Ce.o)(t.t,(0,Ee.m)(a,"t"),o)}</span>`];if(!s&&!i&&ye.H6){const e=r?(r.b??[]).concat(r.t).concat(t.s&&t.s!==r.t?t.s:[]):t.b;f.push(`<span class="${je.hitPath}">${(0,Se.e)(e??[])}</span>`)}else l||f.push(`<span class="${je.hitPath}">${(0,_e.C)(r.t||(t.u.startsWith("/docs/api-reference/")?"API Reference":""),o)}</span>`);const m=`<span class="${je.hitAction}">${Pe}</span>`;return[...d,p,`<span class="${je.hitWrapper}">`,...f,"</span>",m].join("")}function Be(){return`<span class="${je.noResults}"><span class="${je.noResultsIcon}">${Ne}</span><span>${(0,l.I)({id:"theme.SearchBar.noResultsText",message:"No results"})}</span></span>`}var Fe=n(311),De=n(51);async function Me(){const e=await Promise.all([n.e(8443),n.e(5525)]).then(n.t.bind(n,8443,23)),t=e.default;return t.noConflict?t.noConflict():e.noConflict&&e.noConflict(),t}const qe="_highlight";const ze=function(e){let{handleSearchBarToggle:t}=e;const n=(0,M.Z)(),{siteConfig:{baseUrl:a},i18n:{currentLocale:o}}=(0,le.Z)(),s=(0,xe.gA)();let c=a;try{const{preferredVersion:e}=(0,ve.J)(s?.pluginId??ye.gQ);e&&!e.isLast&&(c=e.path+"/")}catch(F){if(ye.l9&&!(F instanceof N.i6))throw F}const d=(0,i.k6)(),p=(0,i.TH)(),f=(0,r.useRef)(null),m=(0,r.useRef)(new Map),h=(0,r.useRef)(!1),[g,y]=(0,r.useState)(!1),[b,v]=(0,r.useState)(!1),[x,w]=(0,r.useState)(""),k=(0,r.useRef)(null),S=(0,r.useRef)(""),[E,_]=(0,r.useState)("");(0,r.useEffect)((()=>{if(!Array.isArray(ye.Kc))return;let e="";if(p.pathname.startsWith(c)){const t=p.pathname.substring(c.length);let n;for(const e of ye.Kc){const r="string"==typeof e?e:e.path;if(t===r||t.startsWith(`${r}/`)){n=r;break}}n&&(e=n)}S.current!==e&&(m.current.delete(e),S.current=e),_(e)}),[p.pathname,c]);const C=!!ye.hG&&Array.isArray(ye.Kc)&&""===E,T=(0,r.useCallback)((async()=>{if(C||m.current.get(E))return;m.current.set(E,"loading"),k.current?.autocomplete.destroy(),y(!0);const[{wrappedIndexes:e,zhDictionary:t},n]=await Promise.all([(0,we.w)(c,E),Me()]);if(k.current=n(f.current,{hint:!1,autoselect:!0,openOnFocus:!0,cssClasses:{root:(0,be.Z)(je.searchBar,{[je.searchBarLeft]:"left"===ye.pu}),noPrefix:!0,dropdownMenu:je.dropdownMenu,input:je.input,hint:je.hint,suggestions:je.suggestions,suggestion:je.suggestion,cursor:je.cursor,dataset:je.dataset,empty:je.empty}},[{source:(0,ke.v)(e,t,ye.qo),templates:{suggestion:Ie,empty:Be,footer:e=>{let{query:t,isEmpty:n}=e;if(n&&(!E||!ye.pQ))return;const r=(e=>{let{query:t,isEmpty:n}=e;const r=document.createElement("a"),s=new URLSearchParams;let i;if(s.set("q",t),E){const e=E&&Array.isArray(ye.Kc)?ye.Kc.find((e=>"string"==typeof e?e===E:e.path===E)):E,t=e?(0,De._)(e,o).label:E;i=ye.pQ&&n?(0,l.I)({id:"theme.SearchBar.seeAllOutsideContext",message:"See results outside {context}"},{context:t}):(0,l.I)({id:"theme.SearchBar.searchInContext",message:"See all results in {context}"},{context:t})}else i=(0,l.I)({id:"theme.SearchBar.seeAll",message:"See all results"});if(!E||!Array.isArray(ye.Kc)||ye.pQ&&n||s.set("ctx",E),c!==a){if(!c.startsWith(a))throw new Error(`Version url '${c}' does not start with base url '${a}', this is a bug of \`@easyops-cn/docusaurus-search-local\`, please report it.`);s.set("version",c.substring(a.length))}const u=`${a}search?${s.toString()}`;return r.href=u,r.textContent=i,r.addEventListener("click",(e=>{e.ctrlKey||e.metaKey||(e.preventDefault(),k.current?.autocomplete.close(),d.push(u))})),r})({query:t,isEmpty:n}),s=document.createElement("div");return s.className=je.hitFooter,s.appendChild(r),s}}}]).on("autocomplete:selected",(function(e,t){let{document:{u:n,h:r},tokens:a}=t;f.current?.blur();let o=n;if(ye.vc&&a.length>0){const e=new URLSearchParams;for(const t of a)e.append(qe,t);o+=`?${e.toString()}`}r&&(o+=r),d.push(o)})).on("autocomplete:closed",(()=>{f.current?.blur()})),m.current.set(E,"done"),y(!1),h.current){const e=f.current;e.value&&k.current?.autocomplete.open(),e.focus()}}),[C,E,c,a,d]);(0,r.useEffect)((()=>{if(!ye.vc)return;const e=n?new URLSearchParams(p.search).getAll(qe):[];setTimeout((()=>{const t=document.querySelector("article");if(!t)return;const n=new ye.vc(t);n.unmark(),0!==e.length&&n.mark(e),w(e.join(" ")),k.current?.autocomplete.setVal(e.join(" "))}))}),[n,p.search,p.pathname]);const[R,L]=(0,r.useState)(!1),P=(0,r.useCallback)((()=>{h.current=!0,T(),L(!0),t?.(!0)}),[t,T]),A=(0,r.useCallback)((()=>{L(!1),t?.(!1)}),[t]),O=(0,r.useCallback)((()=>{T()}),[T]),j=(0,r.useCallback)((e=>{w(e.target.value),e.target.value&&v(!0)}),[]),I=!!n&&/mac/i.test(navigator.userAgentData?.platform??navigator.platform);(0,r.useEffect)((()=>{if(!ye.AY)return;const e=e=>{!(I?e.metaKey:e.ctrlKey)||"k"!==e.key&&"K"!==e.key||(e.preventDefault(),f.current?.focus(),P())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[I,P]);const B=(0,r.useCallback)((()=>{const e=new URLSearchParams(p.search);e.delete(qe);const t=e.toString(),n=p.pathname+(""!=t?`?${t}`:"")+p.hash;n!=p.pathname+p.search+p.hash&&d.push(n),w(""),k.current?.autocomplete.setVal("")}),[p.pathname,p.search,p.hash,d]);return(0,u.jsxs)("div",{className:(0,be.Z)("navbar__search",je.searchBarContainer,{[je.searchIndexLoading]:g&&b,[je.focused]:R}),hidden:C,children:[(0,u.jsx)("input",{placeholder:(0,l.I)({id:"theme.SearchBar.label",message:"Search",description:"The ARIA label and placeholder for search button"}),"aria-label":"Search",className:"navbar__search-input",onMouseEnter:O,onFocus:P,onBlur:A,onChange:j,ref:f,value:x}),(0,u.jsx)(Fe.Z,{className:je.searchBarLoadingRing}),ye.AY&&ye.t_&&(""!==x?(0,u.jsx)("button",{className:je.searchClearButton,onClick:B,children:"\u2715"}):n&&(0,u.jsxs)("div",{className:je.searchHintContainer,children:[(0,u.jsx)("kbd",{className:je.searchHint,children:I?"\u2318":"ctrl"}),(0,u.jsx)("kbd",{className:je.searchHint,children:"K"})]}))]})},$e={navbarSearchContainer:"navbarSearchContainer_Bca1"};function Ue(e){let{children:t,className:n}=e;return(0,u.jsx)("div",{className:(0,a.Z)(n,$e.navbarSearchContainer),children:t})}var He=n(3438);const Qe=e=>e.docs.find((t=>t.id===e.mainDocId));const Ze={default:oe,localeDropdown:function(e){let{mobile:t,dropdownItemsBefore:n,dropdownItemsAfter:r,queryString:a="",...o}=e;const{i18n:{currentLocale:s,locales:c,localeConfigs:d}}=(0,le.Z)(),p=(0,me.l)(),{search:f,hash:m}=(0,i.TH)(),h=[...n,...c.map((e=>{const n=`${`pathname://${p.createUrl({locale:e,fullyQualified:!1})}`}${f}${m}${a}`;return{label:d[e].label,lang:d[e].htmlLang,to:n,target:"_self",autoAddBaseUrl:!1,className:e===s?t?"menu__link--active":"dropdown__link--active":""}})),...r],g=t?(0,l.I)({message:"Languages",id:"theme.navbar.mobileLanguageDropdown.label",description:"The label for the mobile language switcher dropdown"}):d[s].label;return(0,u.jsx)(fe,{...o,mobile:t,label:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(he,{className:ge}),g]}),items:h})},search:function(e){let{mobile:t,className:n}=e;return t?null:(0,u.jsx)(Ue,{className:n,children:(0,u.jsx)(ze,{})})},dropdown:fe,html:function(e){let{value:t,className:n,mobile:r=!1,isDropdownItem:o=!1}=e;const s=o?"li":"div";return(0,u.jsx)(s,{className:(0,a.Z)({navbar__item:!r&&!o,"menu__list-item":r},n),dangerouslySetInnerHTML:{__html:t}})},doc:function(e){let{docId:t,label:n,docsPluginId:r,...a}=e;const{activeDoc:o}=(0,xe.Iw)(r),s=(0,He.vY)(t,r),i=o?.path===s?.path;return null===s||s.unlisted&&!i?null:(0,u.jsx)(oe,{exact:!0,...a,isActive:()=>i||!!o?.sidebar&&o.sidebar===s.sidebar,label:n??s.id,to:s.path})},docSidebar:function(e){let{sidebarId:t,label:n,docsPluginId:r,...a}=e;const{activeDoc:o}=(0,xe.Iw)(r),s=(0,He.oz)(t,r).link;if(!s)throw new Error(`DocSidebarNavbarItem: Sidebar with ID "${t}" doesn't have anything to be linked to.`);return(0,u.jsx)(oe,{exact:!0,...a,isActive:()=>o?.sidebar===t,label:n??s.label,to:s.path})},docsVersion:function(e){let{label:t,to:n,docsPluginId:r,...a}=e;const o=(0,He.lO)(r)[0],s=t??o.label,i=n??(e=>e.docs.find((t=>t.id===e.mainDocId)))(o).path;return(0,u.jsx)(oe,{...a,label:s,to:i})},docsVersionDropdown:function(e){let{mobile:t,docsPluginId:n,dropdownActiveClassDisabled:r,dropdownItemsBefore:a,dropdownItemsAfter:o,...s}=e;const{search:c,hash:d}=(0,i.TH)(),p=(0,xe.Iw)(n),f=(0,xe.gB)(n),{savePreferredVersionName:m}=(0,ve.J)(n),h=[...a,...f.map((e=>{const t=p.alternateDocVersions[e.name]??Qe(e);return{label:e.label,to:`${t.path}${c}${d}`,isActive:()=>e===p.activeVersion,onClick:()=>m(e.name)}})),...o],g=(0,He.lO)(n)[0],y=t&&h.length>1?(0,l.I)({id:"theme.navbar.mobileVersionsDropdown.label",message:"Versions",description:"The label for the navbar versions dropdown on mobile view"}):g.label,b=t&&h.length>1?void 0:Qe(g).path;return h.length<=1?(0,u.jsx)(oe,{...s,mobile:t,label:y,to:b,isActive:r?()=>!1:void 0}):(0,u.jsx)(fe,{...s,mobile:t,label:y,to:b,items:h,isActive:r?()=>!1:void 0})}};function Ve(e){let{type:t,...n}=e;const r=function(e,t){return e&&"default"!==e?e:"items"in t?"dropdown":"default"}(t,n),a=Ze[r];if(!a)throw new Error(`No NavbarItem component found for type "${t}".`);return(0,u.jsx)(a,{...n})}function We(){const e=(0,L.e)(),t=(0,x.L)().navbar.items;return(0,u.jsx)("ul",{className:"menu__list",children:t.map(((t,n)=>(0,r.createElement)(Ve,{mobile:!0,...t,onClick:()=>e.toggle(),key:n})))})}function Ge(e){return(0,u.jsx)("button",{...e,type:"button",className:"clean-btn navbar-sidebar__back",children:(0,u.jsx)(l.Z,{id:"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel",description:"The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)",children:"\u2190 Back to main menu"})})}function Ye(){const e=0===(0,x.L)().navbar.items.length,t=B();return(0,u.jsxs)(u.Fragment,{children:[!e&&(0,u.jsx)(Ge,{onClick:()=>t.hide()}),t.content]})}function Ke(){const e=(0,L.e)();var t;return void 0===(t=e.shown)&&(t=!0),(0,r.useEffect)((()=>(document.body.style.overflow=t?"hidden":"visible",()=>{document.body.style.overflow="visible"})),[t]),e.shouldRender?(0,u.jsx)(F,{header:(0,u.jsx)(Y,{}),primaryMenu:(0,u.jsx)(We,{}),secondaryMenu:(0,u.jsx)(Ye,{})}):null}const Xe={navbarHideable:"navbarHideable_m1mJ",navbarHidden:"navbarHidden_jGov"};function Je(e){return(0,u.jsx)("div",{role:"presentation",...e,className:(0,a.Z)("navbar-sidebar__backdrop",e.className)})}function et(e){let{children:t}=e;const{navbar:{hideOnScroll:n,style:o}}=(0,x.L)(),s=(0,L.e)(),{navbarRef:i,isNavbarVisible:d}=function(e){const[t,n]=(0,r.useState)(e),a=(0,r.useRef)(!1),o=(0,r.useRef)(0),s=(0,r.useCallback)((e=>{null!==e&&(o.current=e.getBoundingClientRect().height)}),[]);return(0,P.RF)(((t,r)=>{let{scrollY:s}=t;if(!e)return;if(s<o.current)return void n(!0);if(a.current)return void(a.current=!1);const i=r?.scrollY,l=document.documentElement.scrollHeight-o.current,c=window.innerHeight;i&&s>=i?n(!1):s+c<l&&n(!0)})),(0,c.S)((t=>{if(!e)return;const r=t.location.hash;if(r?document.getElementById(r.substring(1)):void 0)return a.current=!0,void n(!1);n(!0)})),{navbarRef:s,isNavbarVisible:t}}(n);return(0,u.jsxs)("nav",{ref:i,"aria-label":(0,l.I)({id:"theme.NavBar.navAriaLabel",message:"Main",description:"The ARIA label for the main navigation"}),className:(0,a.Z)("navbar","navbar--fixed-top",n&&[Xe.navbarHideable,!d&&Xe.navbarHidden],{"navbar--dark":"dark"===o,"navbar--primary":"primary"===o,"navbar-sidebar--show":s.shown}),children:[t,(0,u.jsx)(Je,{onClick:s.toggle}),(0,u.jsx)(Ke,{})]})}var tt=n(8780);const nt={errorBoundaryError:"errorBoundaryError_a6uf",errorBoundaryFallback:"errorBoundaryFallback_VBag"};function rt(e){return(0,u.jsx)("button",{type:"button",...e,children:(0,u.jsx)(l.Z,{id:"theme.ErrorPageContent.tryAgain",description:"The label of the button to try again rendering when the React error boundary captures an error",children:"Try again"})})}function at(e){let{error:t}=e;const n=(0,tt.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,u.jsx)("p",{className:nt.errorBoundaryError,children:n})}class ot extends r.Component{componentDidCatch(e,t){throw this.props.onError(e,t)}render(){return this.props.children}}const st="right";function it(e){let{width:t=30,height:n=30,className:r,...a}=e;return(0,u.jsx)("svg",{className:r,width:t,height:n,viewBox:"0 0 30 30","aria-hidden":"true",...a,children:(0,u.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"})})}function lt(){const{toggle:e,shown:t}=(0,L.e)();return(0,u.jsx)("button",{onClick:e,"aria-label":(0,l.I)({id:"theme.docs.sidebar.toggleSidebarButtonAriaLabel",message:"Toggle navigation bar",description:"The ARIA label for hamburger menu button of mobile navigation"}),"aria-expanded":t,className:"navbar__toggle clean-btn",type:"button",children:(0,u.jsx)(it,{})})}const ct={colorModeToggle:"colorModeToggle_DEke"};function ut(e){let{items:t}=e;return(0,u.jsx)(u.Fragment,{children:t.map(((e,t)=>(0,u.jsx)(ot,{onError:t=>new Error(`A theme navbar item failed to render.\nPlease double-check the following navbar item (themeConfig.navbar.items) of your Docusaurus config:\n${JSON.stringify(e,null,2)}`,{cause:t}),children:(0,u.jsx)(Ve,{...e})},t)))})}function dt(e){let{left:t,right:n}=e;return(0,u.jsxs)("div",{className:"navbar__inner",children:[(0,u.jsx)("div",{className:"navbar__items",children:t}),(0,u.jsx)("div",{className:"navbar__items navbar__items--right",children:n})]})}function pt(){const e=(0,L.e)(),t=(0,x.L)().navbar.items,[n,r]=function(e){function t(e){return"left"===(e.position??st)}return[e.filter(t),e.filter((e=>!t(e)))]}(t),a=t.find((e=>"search"===e.type));return(0,u.jsx)(dt,{left:(0,u.jsxs)(u.Fragment,{children:[!e.disabled&&(0,u.jsx)(lt,{}),(0,u.jsx)(W,{}),(0,u.jsx)(ut,{items:n})]}),right:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ut,{items:r}),(0,u.jsx)(Z,{className:ct.colorModeToggle}),!a&&(0,u.jsx)(Ue,{children:(0,u.jsx)(ze,{})})]})})}function ft(){return(0,u.jsx)(et,{children:(0,u.jsx)(pt,{})})}function mt(e){let{item:t}=e;const{to:n,href:r,label:a,prependBaseUrlToHref:o,...s}=t,i=(0,X.Z)(n),l=(0,X.Z)(r,{forcePrependBaseUrl:!0});return(0,u.jsxs)(K.Z,{className:"footer__link-item",...r?{href:o?l:r}:{to:i},...s,children:[a,r&&!(0,J.Z)(r)&&(0,u.jsx)(te.Z,{})]})}function ht(e){let{item:t}=e;return t.html?(0,u.jsx)("li",{className:"footer__item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)("li",{className:"footer__item",children:(0,u.jsx)(mt,{item:t})},t.href??t.to)}function gt(e){let{column:t}=e;return(0,u.jsxs)("div",{className:"col footer__col",children:[(0,u.jsx)("div",{className:"footer__title",children:t.title}),(0,u.jsx)("ul",{className:"footer__items clean-list",children:t.items.map(((e,t)=>(0,u.jsx)(ht,{item:e},t)))})]})}function yt(e){let{columns:t}=e;return(0,u.jsx)("div",{className:"row footer__links",children:t.map(((e,t)=>(0,u.jsx)(gt,{column:e},t)))})}function bt(){return(0,u.jsx)("span",{className:"footer__link-separator",children:"\xb7"})}function vt(e){let{item:t}=e;return t.html?(0,u.jsx)("span",{className:"footer__link-item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)(mt,{item:t})}function xt(e){let{links:t}=e;return(0,u.jsx)("div",{className:"footer__links text--center",children:(0,u.jsx)("div",{className:"footer__links",children:t.map(((e,n)=>(0,u.jsxs)(r.Fragment,{children:[(0,u.jsx)(vt,{item:e}),t.length!==n+1&&(0,u.jsx)(bt,{})]},n)))})})}function wt(e){let{links:t}=e;return function(e){return"title"in e[0]}(t)?(0,u.jsx)(yt,{columns:t}):(0,u.jsx)(xt,{links:t})}var kt=n(9965);const St={footerLogoLink:"footerLogoLink_BH7S"};function Et(e){let{logo:t}=e;const{withBaseUrl:n}=(0,X.C)(),r={light:n(t.src),dark:n(t.srcDark??t.src)};return(0,u.jsx)(kt.Z,{className:(0,a.Z)("footer__logo",t.className),alt:t.alt,sources:r,width:t.width,height:t.height,style:t.style})}function _t(e){let{logo:t}=e;return t.href?(0,u.jsx)(K.Z,{href:t.href,className:St.footerLogoLink,target:t.target,children:(0,u.jsx)(Et,{logo:t})}):(0,u.jsx)(Et,{logo:t})}function Ct(e){let{copyright:t}=e;return(0,u.jsx)("div",{className:"footer__copyright",dangerouslySetInnerHTML:{__html:t}})}function Tt(e){let{style:t,links:n,logo:r,copyright:o}=e;return(0,u.jsx)("footer",{className:(0,a.Z)("footer",{"footer--dark":"dark"===t}),children:(0,u.jsxs)("div",{className:"container container-fluid",children:[n,(r||o)&&(0,u.jsxs)("div",{className:"footer__bottom text--center",children:[r&&(0,u.jsx)("div",{className:"margin-bottom--sm",children:r}),o]})]})})}function Rt(){const{footer:e}=(0,x.L)();if(!e)return null;const{copyright:t,links:n,logo:r,style:a}=e;return(0,u.jsx)(Tt,{style:a,links:n&&n.length>0&&(0,u.jsx)(wt,{links:n}),logo:r&&(0,u.jsx)(_t,{logo:r}),copyright:t&&(0,u.jsx)(Ct,{copyright:t})})}const Lt=r.memo(Rt),Pt=(0,N.Qc)([D.S,w.pl,P.OC,ve.L5,s.VC,function(e){let{children:t}=e;return(0,u.jsx)(A.n2,{children:(0,u.jsx)(L.M,{children:(0,u.jsx)(j,{children:t})})})}]);function Nt(e){let{children:t}=e;return(0,u.jsx)(Pt,{children:t})}var At=n(2503);function Ot(e){let{error:t,tryAgain:n}=e;return(0,u.jsx)("main",{className:"container margin-vert--xl",children:(0,u.jsx)("div",{className:"row",children:(0,u.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,u.jsx)(At.Z,{as:"h1",className:"hero__title",children:(0,u.jsx)(l.Z,{id:"theme.ErrorPageContent.title",description:"The title of the fallback page when the page crashed",children:"This page crashed."})}),(0,u.jsx)("div",{className:"margin-vert--lg",children:(0,u.jsx)(rt,{onClick:n,className:"button button--primary shadow--lw"})}),(0,u.jsx)("hr",{}),(0,u.jsx)("div",{className:"margin-vert--md",children:(0,u.jsx)(at,{error:t})})]})})})}const jt={mainWrapper:"mainWrapper_z2l0"};function It(e){const{children:t,noFooter:n,wrapperClassName:r,title:i,description:l}=e;return(0,y.t)(),(0,u.jsxs)(Nt,{children:[(0,u.jsx)(s.d,{title:i,description:l}),(0,u.jsx)(v,{}),(0,u.jsx)(R,{}),(0,u.jsx)(ft,{}),(0,u.jsx)("div",{id:d,className:(0,a.Z)(g.k.wrapper.main,jt.mainWrapper,r),children:(0,u.jsx)(o.Z,{fallback:e=>(0,u.jsx)(Ot,{...e}),children:t})}),!n&&(0,u.jsx)(Lt,{})]})}},1327:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(7294);var r=n(3692),a=n(4996),o=n(2263),s=n(6668),i=n(9965),l=n(5893);function c(e){let{logo:t,alt:n,imageClassName:r}=e;const o={light:(0,a.Z)(t.src),dark:(0,a.Z)(t.srcDark||t.src)},s=(0,l.jsx)(i.Z,{className:t.className,sources:o,height:t.height,width:t.width,alt:n,style:t.style});return r?(0,l.jsx)("div",{className:r,children:s}):s}function u(e){const{siteConfig:{title:t}}=(0,o.Z)(),{navbar:{title:n,logo:i}}=(0,s.L)(),{imageClassName:u,titleClassName:d,...p}=e,f=(0,a.Z)(i?.href||"/"),m=n?"":t,h=i?.alt??m;return(0,l.jsxs)(r.Z,{to:f,...p,...i?.target&&{target:i.target},children:[i&&(0,l.jsx)(c,{logo:i,alt:h,imageClassName:u}),null!=n&&(0,l.jsx)("b",{className:d,children:n})]})}},197:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(7294);var r=n(5742),a=n(5893);function o(e){let{locale:t,version:n,tag:o}=e;const s=t;return(0,a.jsxs)(r.Z,{children:[t&&(0,a.jsx)("meta",{name:"docusaurus_locale",content:t}),n&&(0,a.jsx)("meta",{name:"docusaurus_version",content:n}),o&&(0,a.jsx)("meta",{name:"docusaurus_tag",content:o}),s&&(0,a.jsx)("meta",{name:"docsearch:language",content:s}),n&&(0,a.jsx)("meta",{name:"docsearch:version",content:n}),o&&(0,a.jsx)("meta",{name:"docsearch:docusaurus_tag",content:o})]})}},9965:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(7294),a=n(512),o=n(2389),s=n(2949);const i={themedComponent:"themedComponent_mlkZ","themedComponent--light":"themedComponent--light_NVdE","themedComponent--dark":"themedComponent--dark_xIcU"};var l=n(5893);function c(e){let{className:t,children:n}=e;const c=(0,o.Z)(),{colorMode:u}=(0,s.I)();return(0,l.jsx)(l.Fragment,{children:(c?"dark"===u?["dark"]:["light"]:["light","dark"]).map((e=>{const o=n({theme:e,className:(0,a.Z)(t,i.themedComponent,i[`themedComponent--${e}`])});return(0,l.jsx)(r.Fragment,{children:o},e)}))})}function u(e){const{sources:t,className:n,alt:r,...a}=e;return(0,l.jsx)(c,{className:n,children:e=>{let{theme:n,className:o}=e;return(0,l.jsx)("img",{src:t[n],alt:r,className:o,...a})}})}},6043:(e,t,n)=>{"use strict";n.d(t,{u:()=>c,z:()=>y});var r=n(7294),a=n(412),o=n(469),s=n(1442),i=n(5893);const l="ease-in-out";function c(e){let{initialState:t}=e;const[n,a]=(0,r.useState)(t??!1),o=(0,r.useCallback)((()=>{a((e=>!e))}),[]);return{collapsed:n,setCollapsed:a,toggleCollapsed:o}}const u={display:"none",overflow:"hidden",height:"0px"},d={display:"block",overflow:"visible",height:"auto"};function p(e,t){const n=t?u:d;e.style.display=n.display,e.style.overflow=n.overflow,e.style.height=n.height}function f(e){let{collapsibleRef:t,collapsed:n,animation:a}=e;const o=(0,r.useRef)(!1);(0,r.useEffect)((()=>{const e=t.current;function r(){const t=e.scrollHeight,n=a?.duration??function(e){if((0,s.n)())return 1;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}(t);return{transition:`height ${n}ms ${a?.easing??l}`,height:`${t}px`}}function i(){const t=r();e.style.transition=t.transition,e.style.height=t.height}if(!o.current)return p(e,n),void(o.current=!0);return e.style.willChange="height",function(){const t=requestAnimationFrame((()=>{n?(i(),requestAnimationFrame((()=>{e.style.height=u.height,e.style.overflow=u.overflow}))):(e.style.display="block",requestAnimationFrame((()=>{i()})))}));return()=>cancelAnimationFrame(t)}()}),[t,n,a])}function m(e){if(!a.Z.canUseDOM)return e?u:d}function h(e){let{as:t="div",collapsed:n,children:a,animation:o,onCollapseTransitionEnd:s,className:l,disableSSRStyle:c}=e;const u=(0,r.useRef)(null);return f({collapsibleRef:u,collapsed:n,animation:o}),(0,i.jsx)(t,{ref:u,style:c?void 0:m(n),onTransitionEnd:e=>{"height"===e.propertyName&&(p(u.current,n),s?.(n))},className:l,children:a})}function g(e){let{collapsed:t,...n}=e;const[a,s]=(0,r.useState)(!t),[l,c]=(0,r.useState)(t);return(0,o.Z)((()=>{t||s(!0)}),[t]),(0,o.Z)((()=>{a&&c(t)}),[a,t]),a?(0,i.jsx)(h,{...n,collapsed:l}):null}function y(e){let{lazy:t,...n}=e;const r=t?g:h;return(0,i.jsx)(r,{...n})}},9689:(e,t,n)=>{"use strict";n.d(t,{nT:()=>h,pl:()=>m});var r=n(7294),a=n(2389),o=n(12),s=n(902),i=n(6668),l=n(5893);const c=(0,o.WA)("docusaurus.announcement.dismiss"),u=(0,o.WA)("docusaurus.announcement.id"),d=()=>"true"===c.get(),p=e=>c.set(String(e)),f=r.createContext(null);function m(e){let{children:t}=e;const n=function(){const{announcementBar:e}=(0,i.L)(),t=(0,a.Z)(),[n,o]=(0,r.useState)((()=>!!t&&d()));(0,r.useEffect)((()=>{o(d())}),[]);const s=(0,r.useCallback)((()=>{p(!0),o(!0)}),[]);return(0,r.useEffect)((()=>{if(!e)return;const{id:t}=e;let n=u.get();"annoucement-bar"===n&&(n="announcement-bar");const r=t!==n;u.set(t),r&&p(!1),!r&&d()||o(!1)}),[e]),(0,r.useMemo)((()=>({isActive:!!e&&!n,close:s})),[e,n,s])}();return(0,l.jsx)(f.Provider,{value:n,children:t})}function h(){const e=(0,r.useContext)(f);if(!e)throw new s.i6("AnnouncementBarProvider");return e}},2949:(e,t,n)=>{"use strict";n.d(t,{I:()=>y,S:()=>g});var r=n(7294),a=n(412),o=n(902),s=n(12),i=n(6668),l=n(5893);const c=r.createContext(void 0),u="theme",d=(0,s.WA)(u),p={light:"light",dark:"dark"},f=e=>e===p.dark?p.dark:p.light,m=e=>a.Z.canUseDOM?f(document.documentElement.getAttribute("data-theme")):f(e),h=e=>{d.set(f(e))};function g(e){let{children:t}=e;const n=function(){const{colorMode:{defaultMode:e,disableSwitch:t,respectPrefersColorScheme:n}}=(0,i.L)(),[a,o]=(0,r.useState)(m(e));(0,r.useEffect)((()=>{t&&d.del()}),[t]);const s=(0,r.useCallback)((function(t,r){void 0===r&&(r={});const{persist:a=!0}=r;t?(o(t),a&&h(t)):(o(n?window.matchMedia("(prefers-color-scheme: dark)").matches?p.dark:p.light:e),d.del())}),[n,e]);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-theme",f(a))}),[a]),(0,r.useEffect)((()=>{if(t)return;const e=e=>{if(e.key!==u)return;const t=d.get();null!==t&&s(f(t))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[t,s]);const l=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{if(t&&!n)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>{window.matchMedia("print").matches||l.current?l.current=window.matchMedia("print").matches:s(null)};return e.addListener(r),()=>e.removeListener(r)}),[s,t,n]),(0,r.useMemo)((()=>({colorMode:a,setColorMode:s,get isDarkTheme(){return a===p.dark},setLightTheme(){s(p.light)},setDarkTheme(){s(p.dark)}})),[a,s])}();return(0,l.jsx)(c.Provider,{value:n,children:t})}function y(){const e=(0,r.useContext)(c);if(null==e)throw new o.i6("ColorModeProvider","Please see https://docusaurus.io/docs/api/themes/configuration#use-color-mode.");return e}},373:(e,t,n)=>{"use strict";n.d(t,{J:()=>v,L5:()=>y});var r=n(7294),a=n(143),o=n(9935),s=n(6668),i=n(3438),l=n(902),c=n(12),u=n(5893);const d=e=>`docs-preferred-version-${e}`,p={save:(e,t,n)=>{(0,c.WA)(d(e),{persistence:t}).set(n)},read:(e,t)=>(0,c.WA)(d(e),{persistence:t}).get(),clear:(e,t)=>{(0,c.WA)(d(e),{persistence:t}).del()}},f=e=>Object.fromEntries(e.map((e=>[e,{preferredVersionName:null}])));const m=r.createContext(null);function h(){const e=(0,a._r)(),t=(0,s.L)().docs.versionPersistence,n=(0,r.useMemo)((()=>Object.keys(e)),[e]),[o,i]=(0,r.useState)((()=>f(n)));(0,r.useEffect)((()=>{i(function(e){let{pluginIds:t,versionPersistence:n,allDocsData:r}=e;function a(e){const t=p.read(e,n);return r[e].versions.some((e=>e.name===t))?{preferredVersionName:t}:(p.clear(e,n),{preferredVersionName:null})}return Object.fromEntries(t.map((e=>[e,a(e)])))}({allDocsData:e,versionPersistence:t,pluginIds:n}))}),[e,t,n]);return[o,(0,r.useMemo)((()=>({savePreferredVersion:function(e,n){p.save(e,t,n),i((t=>({...t,[e]:{preferredVersionName:n}})))}})),[t])]}function g(e){let{children:t}=e;const n=h();return(0,u.jsx)(m.Provider,{value:n,children:t})}function y(e){let{children:t}=e;return i.cE?(0,u.jsx)(g,{children:t}):(0,u.jsx)(u.Fragment,{children:t})}function b(){const e=(0,r.useContext)(m);if(!e)throw new l.i6("DocsPreferredVersionContextProvider");return e}function v(e){void 0===e&&(e=o.m);const t=(0,a.zh)(e),[n,s]=b(),{preferredVersionName:i}=n[e];return{preferredVersion:t.versions.find((e=>e.name===i))??null,savePreferredVersionName:(0,r.useCallback)((t=>{s.savePreferredVersion(e,t)}),[s,e])}}},1116:(e,t,n)=>{"use strict";n.d(t,{V:()=>c,b:()=>l});var r=n(7294),a=n(902),o=n(5893);const s=Symbol("EmptyContext"),i=r.createContext(s);function l(e){let{children:t,name:n,items:a}=e;const s=(0,r.useMemo)((()=>n&&a?{name:n,items:a}:null),[n,a]);return(0,o.jsx)(i.Provider,{value:s,children:t})}function c(){const e=(0,r.useContext)(i);if(e===s)throw new a.i6("DocsSidebarProvider");return e}},4477:(e,t,n)=>{"use strict";n.d(t,{E:()=>l,q:()=>i});var r=n(7294),a=n(902),o=n(5893);const s=r.createContext(null);function i(e){let{children:t,version:n}=e;return(0,o.jsx)(s.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(s);if(null===e)throw new a.i6("DocsVersionProvider");return e}},3163:(e,t,n)=>{"use strict";n.d(t,{M:()=>p,e:()=>f});var r=n(7294),a=n(3102),o=n(7524),s=n(1980),i=n(6668),l=n(902),c=n(5893);const u=r.createContext(void 0);function d(){const e=function(){const e=(0,a.HY)(),{items:t}=(0,i.L)().navbar;return 0===t.length&&!e.component}(),t=(0,o.i)(),n=!e&&"mobile"===t,[l,c]=(0,r.useState)(!1);(0,s.Rb)((()=>{if(l)return c(!1),!1}));const u=(0,r.useCallback)((()=>{c((e=>!e))}),[]);return(0,r.useEffect)((()=>{"desktop"===t&&c(!1)}),[t]),(0,r.useMemo)((()=>({disabled:e,shouldRender:n,toggle:u,shown:l})),[e,n,u,l])}function p(e){let{children:t}=e;const n=d();return(0,c.jsx)(u.Provider,{value:n,children:t})}function f(){const e=r.useContext(u);if(void 0===e)throw new l.i6("NavbarMobileSidebarProvider");return e}},3102:(e,t,n)=>{"use strict";n.d(t,{HY:()=>l,Zo:()=>c,n2:()=>i});var r=n(7294),a=n(902),o=n(5893);const s=r.createContext(null);function i(e){let{children:t}=e;const n=(0,r.useState)({component:null,props:null});return(0,o.jsx)(s.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(s);if(!e)throw new a.i6("NavbarSecondaryMenuContentProvider");return e[0]}function c(e){let{component:t,props:n}=e;const o=(0,r.useContext)(s);if(!o)throw new a.i6("NavbarSecondaryMenuContentProvider");const[,i]=o,l=(0,a.Ql)(n);return(0,r.useEffect)((()=>{i({component:t,props:l})}),[i,t,l]),(0,r.useEffect)((()=>()=>i({component:null,props:null})),[i]),null}},9727:(e,t,n)=>{"use strict";n.d(t,{h:()=>a,t:()=>o});var r=n(7294);const a="navigation-with-keyboard";function o(){(0,r.useEffect)((()=>{function e(e){"keydown"===e.type&&"Tab"===e.key&&document.body.classList.add(a),"mousedown"===e.type&&document.body.classList.remove(a)}return document.addEventListener("keydown",e),document.addEventListener("mousedown",e),()=>{document.body.classList.remove(a),document.removeEventListener("keydown",e),document.removeEventListener("mousedown",e)}}),[])}},7524:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(7294),a=n(412);const o={desktop:"desktop",mobile:"mobile",ssr:"ssr"},s=996;function i(e){let{desktopBreakpoint:t=s}=void 0===e?{}:e;const[n,i]=(0,r.useState)((()=>"ssr"));return(0,r.useEffect)((()=>{function e(){i(function(e){if(!a.Z.canUseDOM)throw new Error("getWindowSize() should only be called after React hydration");return window.innerWidth>e?o.desktop:o.mobile}(t))}return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[t]),n}},5281:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});const r={page:{blogListPage:"blog-list-page",blogPostPage:"blog-post-page",blogTagsListPage:"blog-tags-list-page",blogTagPostListPage:"blog-tags-post-list-page",docsDocPage:"docs-doc-page",docsTagsListPage:"docs-tags-list-page",docsTagDocListPage:"docs-tags-doc-list-page",mdxPage:"mdx-page"},wrapper:{main:"main-wrapper",blogPages:"blog-wrapper",docsPages:"docs-wrapper",mdxPages:"mdx-wrapper"},common:{editThisPage:"theme-edit-this-page",lastUpdated:"theme-last-updated",backToTopButton:"theme-back-to-top-button",codeBlock:"theme-code-block",admonition:"theme-admonition",unlistedBanner:"theme-unlisted-banner",admonitionType:e=>`theme-admonition-${e}`},layout:{},docs:{docVersionBanner:"theme-doc-version-banner",docVersionBadge:"theme-doc-version-badge",docBreadcrumbs:"theme-doc-breadcrumbs",docMarkdown:"theme-doc-markdown",docTocMobile:"theme-doc-toc-mobile",docTocDesktop:"theme-doc-toc-desktop",docFooter:"theme-doc-footer",docFooterTagsRow:"theme-doc-footer-tags-row",docFooterEditMetaRow:"theme-doc-footer-edit-meta-row",docSidebarContainer:"theme-doc-sidebar-container",docSidebarMenu:"theme-doc-sidebar-menu",docSidebarItemCategory:"theme-doc-sidebar-item-category",docSidebarItemLink:"theme-doc-sidebar-item-link",docSidebarItemCategoryLevel:e=>`theme-doc-sidebar-item-category-level-${e}`,docSidebarItemLinkLevel:e=>`theme-doc-sidebar-item-link-level-${e}`},blog:{}}},1442:(e,t,n)=>{"use strict";function r(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}n.d(t,{n:()=>r})},3438:(e,t,n)=>{"use strict";n.d(t,{LM:()=>f,SN:()=>E,_F:()=>g,cE:()=>p,f:()=>b,lO:()=>w,oz:()=>k,s1:()=>x,vY:()=>S});var r=n(7294),a=n(6550),o=n(8790),s=n(143),i=n(373),l=n(4477),c=n(1116),u=n(7392),d=n(8596);const p=!!s._r;function f(e){return"link"!==e.type||e.unlisted?"category"===e.type?function(e){if(e.href&&!e.linkUnlisted)return e.href;for(const t of e.items){const e=f(t);if(e)return e}}(e):void 0:e.href}const m=(e,t)=>void 0!==e&&(0,d.Mg)(e,t),h=(e,t)=>e.some((e=>g(e,t)));function g(e,t){return"link"===e.type?m(e.href,t):"category"===e.type&&(m(e.href,t)||h(e.items,t))}function y(e,t){switch(e.type){case"category":return g(e,t)||e.items.some((e=>y(e,t)));case"link":return!e.unlisted||g(e,t);default:return!0}}function b(e,t){return(0,r.useMemo)((()=>e.filter((e=>y(e,t)))),[e,t])}function v(e){let{sidebarItems:t,pathname:n,onlyCategories:r=!1}=e;const a=[];return function e(t){for(const o of t)if("category"===o.type&&((0,d.Mg)(o.href,n)||e(o.items))||"link"===o.type&&(0,d.Mg)(o.href,n)){return r&&"category"!==o.type||a.unshift(o),!0}return!1}(t),a}function x(){const e=(0,c.V)(),{pathname:t}=(0,a.TH)(),n=(0,s.gA)()?.pluginData.breadcrumbs;return!1!==n&&e?v({sidebarItems:e.items,pathname:t}):null}function w(e){const{activeVersion:t}=(0,s.Iw)(e),{preferredVersion:n}=(0,i.J)(e),a=(0,s.yW)(e);return(0,r.useMemo)((()=>(0,u.j)([t,n,a].filter(Boolean))),[t,n,a])}function k(e,t){const n=w(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.sidebars?Object.entries(e.sidebars):[])),r=t.find((t=>t[0]===e));if(!r)throw new Error(`Can't find any sidebar with id "${e}" in version${n.length>1?"s":""} ${n.map((e=>e.name)).join(", ")}".\nAvailable sidebar ids are:\n- ${t.map((e=>e[0])).join("\n- ")}`);return r[1]}),[e,n])}function S(e,t){const n=w(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.docs)),r=t.find((t=>t.id===e));if(!r){if(n.flatMap((e=>e.draftIds)).includes(e))return null;throw new Error(`Couldn't find any doc with id "${e}" in version${n.length>1?"s":""} "${n.map((e=>e.name)).join(", ")}".\nAvailable doc ids are:\n- ${(0,u.j)(t.map((e=>e.id))).join("\n- ")}`)}return r}),[e,n])}function E(e){let{route:t}=e;const n=(0,a.TH)(),r=(0,l.E)(),s=t.routes,i=s.find((e=>(0,a.LX)(n.pathname,e)));if(!i)return null;const c=i.sidebar,u=c?r.docsSidebars[c]:void 0;return{docElement:(0,o.H)(s),sidebarName:c,sidebarItems:u}}},1980:(e,t,n)=>{"use strict";n.d(t,{Rb:()=>s,_X:()=>i});var r=n(7294),a=n(6550),o=n(902);function s(e){!function(e){const t=(0,a.k6)(),n=(0,o.zX)(e);(0,r.useEffect)((()=>t.block(((e,t)=>n(e,t)))),[t,n])}(((t,n)=>{if("POP"===n)return e(t,n)}))}function i(e){return function(e){const t=(0,a.k6)();return(0,r.useSyncExternalStore)(t.listen,(()=>e(t)),(()=>e(t)))}((t=>null===e?null:new URLSearchParams(t.location.search).get(e)))}},7392:(e,t,n)=>{"use strict";function r(e,t){return void 0===t&&(t=(e,t)=>e===t),e.filter(((n,r)=>e.findIndex((e=>t(e,n)))!==r))}function a(e){return Array.from(new Set(e))}n.d(t,{j:()=>a,l:()=>r})},1944:(e,t,n)=>{"use strict";n.d(t,{FG:()=>f,d:()=>d,VC:()=>m});var r=n(7294),a=n(512),o=n(5742),s=n(226);function i(){const e=r.useContext(s._);if(!e)throw new Error("Unexpected: no Docusaurus route context found");return e}var l=n(4996),c=n(2263);var u=n(5893);function d(e){let{title:t,description:n,keywords:r,image:a,children:s}=e;const i=function(e){const{siteConfig:t}=(0,c.Z)(),{title:n,titleDelimiter:r}=t;return e?.trim().length?`${e.trim()} ${r} ${n}`:n}(t),{withBaseUrl:d}=(0,l.C)(),p=a?d(a,{absolute:!0}):void 0;return(0,u.jsxs)(o.Z,{children:[t&&(0,u.jsx)("title",{children:i}),t&&(0,u.jsx)("meta",{property:"og:title",content:i}),n&&(0,u.jsx)("meta",{name:"description",content:n}),n&&(0,u.jsx)("meta",{property:"og:description",content:n}),r&&(0,u.jsx)("meta",{name:"keywords",content:Array.isArray(r)?r.join(","):r}),p&&(0,u.jsx)("meta",{property:"og:image",content:p}),p&&(0,u.jsx)("meta",{name:"twitter:image",content:p}),s]})}const p=r.createContext(void 0);function f(e){let{className:t,children:n}=e;const s=r.useContext(p),i=(0,a.Z)(s,t);return(0,u.jsxs)(p.Provider,{value:i,children:[(0,u.jsx)(o.Z,{children:(0,u.jsx)("html",{className:i})}),n]})}function m(e){let{children:t}=e;const n=i(),r=`plugin-${n.plugin.name.replace(/docusaurus-(?:plugin|theme)-(?:content-)?/gi,"")}`;const o=`plugin-id-${n.plugin.id}`;return(0,u.jsx)(f,{className:(0,a.Z)(r,o),children:t})}},902:(e,t,n)=>{"use strict";n.d(t,{D9:()=>i,Qc:()=>u,Ql:()=>c,i6:()=>l,zX:()=>s});var r=n(7294),a=n(469),o=n(5893);function s(e){const t=(0,r.useRef)(e);return(0,a.Z)((()=>{t.current=e}),[e]),(0,r.useCallback)((function(){return t.current(...arguments)}),[])}function i(e){const t=(0,r.useRef)();return(0,a.Z)((()=>{t.current=e})),t.current}class l extends Error{constructor(e,t){super(),this.name="ReactContextError",this.message=`Hook ${this.stack?.split("\n")[1]?.match(/at (?:\w+\.)?(?<name>\w+)/)?.groups.name??""} is called outside the <${e}>. ${t??""}`}}function c(e){const t=Object.entries(e);return t.sort(((e,t)=>e[0].localeCompare(t[0]))),(0,r.useMemo)((()=>e),t.flat())}function u(e){return t=>{let{children:n}=t;return(0,o.jsx)(o.Fragment,{children:e.reduceRight(((e,t)=>(0,o.jsx)(t,{children:e})),n)})}}},8596:(e,t,n)=>{"use strict";n.d(t,{Mg:()=>s,Ns:()=>i});var r=n(7294),a=n(723),o=n(2263);function s(e,t){const n=e=>(!e||e.endsWith("/")?e:`${e}/`)?.toLowerCase();return n(e)===n(t)}function i(){const{baseUrl:e}=(0,o.Z)().siteConfig;return(0,r.useMemo)((()=>function(e){let{baseUrl:t,routes:n}=e;function r(e){return e.path===t&&!0===e.exact}function a(e){return e.path===t&&!e.exact}return function e(t){if(0===t.length)return;return t.find(r)||e(t.filter(a).flatMap((e=>e.routes??[])))}(n)}({routes:a.Z,baseUrl:e})),[e])}},2466:(e,t,n)=>{"use strict";n.d(t,{Ct:()=>h,OC:()=>u,RF:()=>f,o5:()=>m});var r=n(7294),a=n(412),o=n(2389),s=n(469),i=n(902),l=n(5893);const c=r.createContext(void 0);function u(e){let{children:t}=e;const n=function(){const e=(0,r.useRef)(!0);return(0,r.useMemo)((()=>({scrollEventsEnabledRef:e,enableScrollEvents:()=>{e.current=!0},disableScrollEvents:()=>{e.current=!1}})),[])}();return(0,l.jsx)(c.Provider,{value:n,children:t})}function d(){const e=(0,r.useContext)(c);if(null==e)throw new i.i6("ScrollControllerProvider");return e}const p=()=>a.Z.canUseDOM?{scrollX:window.pageXOffset,scrollY:window.pageYOffset}:null;function f(e,t){void 0===t&&(t=[]);const{scrollEventsEnabledRef:n}=d(),a=(0,r.useRef)(p()),o=(0,i.zX)(e);(0,r.useEffect)((()=>{const e=()=>{if(!n.current)return;const e=p();o(e,a.current),a.current=e},t={passive:!0};return e(),window.addEventListener("scroll",e,t),()=>window.removeEventListener("scroll",e,t)}),[o,n,...t])}function m(){const e=d(),t=function(){const e=(0,r.useRef)({elem:null,top:0}),t=(0,r.useCallback)((t=>{e.current={elem:t,top:t.getBoundingClientRect().top}}),[]),n=(0,r.useCallback)((()=>{const{current:{elem:t,top:n}}=e;if(!t)return{restored:!1};const r=t.getBoundingClientRect().top-n;return r&&window.scrollBy({left:0,top:r}),e.current={elem:null,top:0},{restored:0!==r}}),[]);return(0,r.useMemo)((()=>({save:t,restore:n})),[n,t])}(),n=(0,r.useRef)(void 0),a=(0,r.useCallback)((r=>{t.save(r),e.disableScrollEvents(),n.current=()=>{const{restored:r}=t.restore();if(n.current=void 0,r){const t=()=>{e.enableScrollEvents(),window.removeEventListener("scroll",t)};window.addEventListener("scroll",t)}else e.enableScrollEvents()}}),[e,t]);return(0,s.Z)((()=>{queueMicrotask((()=>n.current?.()))})),{blockElementScrollPositionUntilNextRender:a}}function h(){const e=(0,r.useRef)(null),t=(0,o.Z)()&&"smooth"===getComputedStyle(document.documentElement).scrollBehavior;return{startScroll:n=>{e.current=t?function(e){return window.scrollTo({top:e,behavior:"smooth"}),()=>{}}(n):function(e){let t=null;const n=document.documentElement.scrollTop>e;return function r(){const a=document.documentElement.scrollTop;(n&&a>e||!n&&a<e)&&(t=requestAnimationFrame(r),window.scrollTo(0,Math.floor(.85*(a-e))+e))}(),()=>t&&cancelAnimationFrame(t)}(n)},cancelScroll:()=>e.current?.()}}},3320:(e,t,n)=>{"use strict";n.d(t,{HX:()=>r,os:()=>a});n(2263);const r="default";function a(e,t){return`docs-${e}-${t}`}},12:(e,t,n)=>{"use strict";n.d(t,{Nk:()=>u,WA:()=>c});var r=n(7294);const a="localStorage";function o(e){let{key:t,oldValue:n,newValue:r,storage:a}=e;if(n===r)return;const o=document.createEvent("StorageEvent");o.initStorageEvent("storage",!1,!1,t,n,r,window.location.href,a),window.dispatchEvent(o)}function s(e){if(void 0===e&&(e=a),"undefined"==typeof window)throw new Error("Browser storage is not available on Node.js/Docusaurus SSR process.");if("none"===e)return null;try{return window[e]}catch(n){return t=n,i||(console.warn("Docusaurus browser storage is not available.\nPossible reasons: running Docusaurus in an iframe, in an incognito browser session, or using too strict browser privacy settings.",t),i=!0),null}var t}let i=!1;const l={get:()=>null,set:()=>{},del:()=>{},listen:()=>()=>{}};function c(e,t){if("undefined"==typeof window)return function(e){function t(){throw new Error(`Illegal storage API usage for storage key "${e}".\nDocusaurus storage APIs are not supposed to be called on the server-rendering process.\nPlease only call storage APIs in effects and event handlers.`)}return{get:t,set:t,del:t,listen:t}}(e);const n=s(t?.persistence);return null===n?l:{get:()=>{try{return n.getItem(e)}catch(t){return console.error(`Docusaurus storage error, can't get key=${e}`,t),null}},set:t=>{try{const r=n.getItem(e);n.setItem(e,t),o({key:e,oldValue:r,newValue:t,storage:n})}catch(r){console.error(`Docusaurus storage error, can't set ${e}=${t}`,r)}},del:()=>{try{const t=n.getItem(e);n.removeItem(e),o({key:e,oldValue:t,newValue:null,storage:n})}catch(t){console.error(`Docusaurus storage error, can't delete key=${e}`,t)}},listen:t=>{try{const r=r=>{r.storageArea===n&&r.key===e&&t(r)};return window.addEventListener("storage",r),()=>window.removeEventListener("storage",r)}catch(r){return console.error(`Docusaurus storage error, can't listen for changes of key=${e}`,r),()=>{}}}}}function u(e,t){const n=(0,r.useRef)((()=>null===e?l:c(e,t))).current(),a=(0,r.useCallback)((e=>"undefined"==typeof window?()=>{}:n.listen(e)),[n]);return[(0,r.useSyncExternalStore)(a,(()=>"undefined"==typeof window?null:n.get()),(()=>null)),n]}},4711:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});var r=n(2263),a=n(6550),o=n(8780);function s(){const{siteConfig:{baseUrl:e,url:t,trailingSlash:n},i18n:{defaultLocale:s,currentLocale:i}}=(0,r.Z)(),{pathname:l}=(0,a.TH)(),c=(0,o.applyTrailingSlash)(l,{trailingSlash:n,baseUrl:e}),u=i===s?e:e.replace(`/${i}/`,"/"),d=c.replace(e,"");return{createUrl:function(e){let{locale:n,fullyQualified:r}=e;return`${r?t:""}${function(e){return e===s?`${u}`:`${u}${e}/`}(n)}${d}`}}}},5936:(e,t,n)=>{"use strict";n.d(t,{S:()=>s});var r=n(7294),a=n(6550),o=n(902);function s(e){const t=(0,a.TH)(),n=(0,o.D9)(t),s=(0,o.zX)(e);(0,r.useEffect)((()=>{n&&t!==n&&s({location:t,previousLocation:n})}),[s,t,n])}},6668:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(2263);function a(){return(0,r.Z)().siteConfig.themeConfig}},8802:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const{trailingSlash:n,baseUrl:r}=t;if(e.startsWith("#"))return e;if(void 0===n)return e;const[a]=e.split(/[#?]/),o="/"===a||a===r?a:(s=a,n?function(e){return e.endsWith("/")?e:`${e}/`}(s):function(e){return e.endsWith("/")?e.slice(0,-1):e}(s));var s;return e.replace(a,o)}},4143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=void 0,t.getErrorCausalChain=function e(t){return t.cause?[t,...e(t.cause)]:[t]}},8780:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=t.applyTrailingSlash=t.blogPostContainerID=void 0,t.blogPostContainerID="__blog-post-container";var a=n(8802);Object.defineProperty(t,"applyTrailingSlash",{enumerable:!0,get:function(){return r(a).default}});var o=n(4143);Object.defineProperty(t,"getErrorCausalChain",{enumerable:!0,get:function(){return o.getErrorCausalChain}})},311:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});n(7294);var r=n(1728);const a={loadingRing:"loadingRing_RJI3","loading-ring":"loading-ring_FB5o"};var o=n(5893);function s(e){let{className:t}=e;return(0,o.jsxs)("div",{className:(0,r.Z)(a.loadingRing,t),children:[(0,o.jsx)("div",{}),(0,o.jsx)("div",{}),(0,o.jsx)("div",{}),(0,o.jsx)("div",{})]})}},22:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(1336),a=n.n(r),o=n(8087);const s=new Map;function i(e,t){const n=`${e}${t}`;let r=s.get(n);return r||(r=async function(e,t){{const n=`${e}${o.J.replace("{dir}",t?`-${t.replace(/\//g,"-")}`:"")}`;if(new URL(n,location.origin).origin!==location.origin)throw new Error("Unexpected version url");const r=await(await fetch(n)).json(),s=r.map(((e,t)=>{let{documents:n,index:r}=e;return{type:t,documents:n,index:a().Index.load(r)}})),i=r.reduce(((e,t)=>{for(const n of t.index.invertedIndex)/\p{Unified_Ideograph}/u.test(n[0][0])&&e.add(n[0]);return e}),new Set);return{wrappedIndexes:s,zhDictionary:Array.from(i)}}return{wrappedIndexes:[],zhDictionary:[]}}(e,t),s.set(n,r)),r}},8202:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var r=n(1336),a=n.n(r);var o=n(8087);function s(e){return i(e).concat(i(e.filter((e=>{const t=e[e.length-1];return!t.trailing&&t.maybeTyping})),!0))}function i(e,t){return e.map((e=>({tokens:e.map((e=>e.value)),term:e.map((e=>({value:e.value,presence:a().Query.presence.REQUIRED,wildcard:(t?e.trailing||e.maybeTyping:e.trailing)?a().Query.wildcard.TRAILING:a().Query.wildcard.NONE})))})))}function l(e,t,n){return function(r,i){const l=function(e,t){if(1===t.length&&["ja","jp","th"].includes(t[0]))return a()[t[0]].tokenizer(e).map((e=>e.toString()));let n=/[^-\s]+/g;return t.includes("zh")&&(n=/\w+|\p{Unified_Ideograph}+/gu),e.toLowerCase().match(n)||[]}(r,o.dK);if(0===l.length)return void i([]);const c=function(e,t){const n=function(e,t){const n=[];return function e(r,a){if(0===r.length)return void n.push(a);const o=r[0];if(/\p{Unified_Ideograph}/u.test(o)){const n=function(e,t){const n=[];return function e(r,a){let o=0,s=!1;for(const i of t)if(r.substr(0,i.length)===i){const t={missed:a.missed,term:a.term.concat({value:i})};r.length>i.length?e(r.substr(i.length),t):n.push(t),s=!0}else for(let t=i.length-1;t>o;t-=1){const l=i.substr(0,t);if(r.substr(0,t)===l){o=t;const i={missed:a.missed,term:a.term.concat({value:l,trailing:!0})};r.length>t?e(r.substr(t),i):n.push(i),s=!0;break}}s||(r.length>0?e(r.substr(1),{missed:a.missed+1,term:a.term}):a.term.length>0&&n.push(a))}(e,{missed:0,term:[]}),n.sort(((e,t)=>{const n=e.missed>0?1:0,r=t.missed>0?1:0;return n!==r?n-r:e.term.length-t.term.length})).map((e=>e.term))}(o,t);for(const t of n){const n=a.concat(...t);e(r.slice(1),n)}}else{const t=a.concat({value:o});e(r.slice(1),t)}}(e,[]),n}(e,t);if(0===n.length)return[{tokens:e,term:e.map((e=>({value:e,presence:a().Query.presence.REQUIRED,wildcard:a().Query.wildcard.LEADING|a().Query.wildcard.TRAILING})))}];for(const a of n)a[a.length-1].maybeTyping=!0;const r=[];for(const s of o.dK)if("en"===s)o._k||r.unshift(a().stopWordFilter);else{const e=a()[s];e.stopWordFilter&&r.unshift(e.stopWordFilter)}let i;if(r.length>0){const e=e=>r.reduce(((e,t)=>e.filter((e=>t(e.value)))),e);i=[];const t=[];for(const r of n){const n=e(r);i.push(n),n.length<r.length&&n.length>0&&t.push(n)}n.push(...t)}else i=n.slice();const l=[];for(const a of i)if(a.length>2)for(let e=a.length-1;e>=0;e-=1)l.push(a.slice(0,e).concat(a.slice(e+1)));return s(n).concat(s(l))}(l,t),u=[];e:for(const{term:t,tokens:a}of c)for(const{documents:r,index:o,type:s}of e)if(u.push(...o.query((e=>{for(const n of t)e.term(n.value,{wildcard:n.wildcard,presence:n.presence})})).slice(0,n).filter((e=>!u.some((t=>t.document.i.toString()===e.ref)))).slice(0,n-u.length).map((t=>{const n=r.find((e=>e.i.toString()===t.ref));return{document:n,type:s,page:0!==s&&e[0].documents.find((e=>e.i===n.p)),metadata:t.matchData.metadata,tokens:a,score:t.score}}))),u.length>=n)break e;!function(e){e.forEach(((e,t)=>{e.index=t})),e.sort(((t,n)=>{let r=t.type>0&&t.page?e.findIndex((e=>e.document===t.page)):t.index,a=n.type>0&&n.page?e.findIndex((e=>e.document===n.page)):n.index;return-1===r&&(r=t.index),-1===a&&(a=n.index),r===a?0===t.type?-1:0===n.type?1:t.index-n.index:r-a}))}(u),function(e){e.forEach(((t,n)=>{n>0&&t.page&&e.some((e=>e.document===t.page))&&(n<e.length-1&&e[n+1].page===t.page?t.isInterOfTree=!0:t.isLastOfTree=!0)}))}(u),i(u)}}},3926:(e,t,n)=>{"use strict";function r(e){return e.join(" \u203a ")}n.d(t,{e:()=>r})},1690:(e,t,n)=>{"use strict";function r(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}n.d(t,{X:()=>r})},1073:(e,t,n)=>{"use strict";function r(e,t){const n=[];for(const r of Object.values(e))r[t]&&n.push(...r[t].position);return n.sort(((e,t)=>e[0]-t[0]||t[1]-e[1]))}n.d(t,{m:()=>r})},2539:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var r=n(1690);function a(e,t,n){const o=[];for(const s of t){const n=e.toLowerCase().indexOf(s);if(n>=0){n>0&&o.push(a(e.substr(0,n),t)),o.push(`<mark>${(0,r.X)(e.substr(n,s.length))}</mark>`);const i=n+s.length;i<e.length&&o.push(a(e.substr(i),t));break}}return 0===o.length?n?`<mark>${(0,r.X)(e)}</mark>`:(0,r.X)(e):o.join("")}},726:(e,t,n)=>{"use strict";n.d(t,{o:()=>l});var r=n(1690),a=n(2539);const o=/\w+|\p{Unified_Ideograph}/u;function s(e){const t=[];let n=0,r=e;for(;r.length>0;){const a=r.match(o);if(!a){t.push(r);break}a.index>0&&t.push(r.substring(0,a.index)),t.push(a[0]),n+=a.index+a[0].length,r=e.substring(n)}return t}var i=n(8087);function l(e,t,n,o){void 0===o&&(o=i.Hk);const{chunkIndex:l,chunks:c}=function(e,t,n){const o=[];let i=0,l=0,c=-1;for(;i<t.length;){const[u,d]=t[i];if(i+=1,!(u<l)){if(u>l){const t=s(e.substring(l,u)).map((e=>({html:(0,r.X)(e),textLength:e.length})));for(const e of t)o.push(e)}-1===c&&(c=o.length),l=u+d,o.push({html:(0,a.C)(e.substring(u,l),n,!0),textLength:d})}}if(l<e.length){const t=s(e.substring(l)).map((e=>({html:(0,r.X)(e),textLength:e.length})));for(const e of t)o.push(e)}return{chunkIndex:c,chunks:o}}(e,t,n),u=c.slice(0,l),d=c[l],p=[d.html],f=c.slice(l+1);let m=d.textLength,h=0,g=0,y=!1,b=!1;for(;m<o;)if((h<=g||0===f.length)&&u.length>0){const e=u.pop();m+e.textLength<=o?(p.unshift(e.html),h+=e.textLength,m+=e.textLength):(y=!0,u.length=0)}else{if(!(f.length>0))break;{const e=f.shift();m+e.textLength<=o?(p.push(e.html),g+=e.textLength,m+=e.textLength):(b=!0,f.length=0)}}return(y||u.length>0)&&p.unshift("\u2026"),(b||f.length>0)&&p.push("\u2026"),p.join("")}},51:(e,t,n)=>{"use strict";function r(e,t){if("string"==typeof e)return{label:e,path:e};{const{label:n,path:r}=e;return"string"==typeof n?{label:n,path:r}:Object.prototype.hasOwnProperty.call(n,t)?{label:n[t],path:r}:{label:r,path:r}}}n.d(t,{_:()=>r})},8087:(e,t,n)=>{"use strict";n.d(t,{vc:()=>o,gQ:()=>f,H6:()=>c,hG:()=>g,l9:()=>m,dK:()=>r,_k:()=>a,pu:()=>p,AY:()=>u,t_:()=>d,Kc:()=>h,J:()=>s,Hk:()=>l,qo:()=>i,pQ:()=>y});n(1336);const r=["en"],a=!1,o=null,s="search-index{dir}.json",i=8,l=50,c=!1,u=!0,d=!0,p="right",f=void 0,m=!0,h=null,g=!1,y=!1},2358:(e,t,n)=>{"use strict";n.d(t,{lX:()=>S,q_:()=>L,ob:()=>h,PP:()=>N,Ep:()=>m,Hp:()=>g});var r=n(7462);function a(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,a=e.length;r<a;n+=1,r+=1)e[n]=e[r];e.pop()}const s=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],s=t&&t.split("/")||[],i=e&&a(e),l=t&&a(t),c=i||l;if(e&&a(e)?s=r:r.length&&(s.pop(),s=s.concat(r)),!s.length)return"/";if(s.length){var u=s[s.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,p=s.length;p>=0;p--){var f=s[p];"."===f?o(s,p):".."===f?(o(s,p),d++):d&&(o(s,p),d--)}if(!c)for(;d--;d)s.unshift("..");!c||""===s[0]||s[0]&&a(s[0])||s.unshift("");var m=s.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m};function i(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=i(t),a=i(n);return r!==t||a!==n?e(r,a):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var c=n(8776);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function m(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a}function h(e,t,n,a){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return n&&(o.key=n),a?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=s(o.pathname,a.pathname)):o.pathname=a.pathname:o.pathname||(o.pathname="/"),o}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function y(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,a){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,a):a(!0):a(!1!==o)}else a(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var b=!("undefined"==typeof window||!window.document||!window.document.createElement);function v(e,t){t(window.confirm(e))}var x="popstate",w="hashchange";function k(){try{return window.history.state||{}}catch(e){return{}}}function S(e){void 0===e&&(e={}),b||(0,c.Z)(!1);var t,n=window.history,a=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),s=e,i=s.forceRefresh,l=void 0!==i&&i,d=s.getUserConfirmation,g=void 0===d?v:d,S=s.keyLength,E=void 0===S?6:S,_=e.basename?f(u(e.basename)):"";function C(e){var t=e||{},n=t.key,r=t.state,a=window.location,o=a.pathname+a.search+a.hash;return _&&(o=p(o,_)),h(o,r,n)}function T(){return Math.random().toString(36).substr(2,E)}var R=y();function L(e){(0,r.Z)(z,e),z.length=n.length,R.notifyListeners(z.location,z.action)}function P(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||O(C(e.state))}function N(){O(C(k()))}var A=!1;function O(e){if(A)A=!1,L();else{R.confirmTransitionTo(e,"POP",g,(function(t){t?L({action:"POP",location:e}):function(e){var t=z.location,n=I.indexOf(t.key);-1===n&&(n=0);var r=I.indexOf(e.key);-1===r&&(r=0);var a=n-r;a&&(A=!0,F(a))}(e)}))}}var j=C(k()),I=[j.key];function B(e){return _+m(e)}function F(e){n.go(e)}var D=0;function M(e){1===(D+=e)&&1===e?(window.addEventListener(x,P),o&&window.addEventListener(w,N)):0===D&&(window.removeEventListener(x,P),o&&window.removeEventListener(w,N))}var q=!1;var z={length:n.length,action:"POP",location:j,createHref:B,push:function(e,t){var r="PUSH",o=h(e,t,T(),z.location);R.confirmTransitionTo(o,r,g,(function(e){if(e){var t=B(o),s=o.key,i=o.state;if(a)if(n.pushState({key:s,state:i},null,t),l)window.location.href=t;else{var c=I.indexOf(z.location.key),u=I.slice(0,c+1);u.push(o.key),I=u,L({action:r,location:o})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",o=h(e,t,T(),z.location);R.confirmTransitionTo(o,r,g,(function(e){if(e){var t=B(o),s=o.key,i=o.state;if(a)if(n.replaceState({key:s,state:i},null,t),l)window.location.replace(t);else{var c=I.indexOf(z.location.key);-1!==c&&(I[c]=o.key),L({action:r,location:o})}else window.location.replace(t)}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=R.setPrompt(e);return q||(M(1),q=!0),function(){return q&&(q=!1,M(-1)),t()}},listen:function(e){var t=R.appendListener(e);return M(1),function(){M(-1),t()}}};return z}var E="hashchange",_={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function C(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function T(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function R(e){window.location.replace(C(window.location.href)+"#"+e)}function L(e){void 0===e&&(e={}),b||(0,c.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),a=n.getUserConfirmation,o=void 0===a?v:a,s=n.hashType,i=void 0===s?"slash":s,l=e.basename?f(u(e.basename)):"",d=_[i],g=d.encodePath,x=d.decodePath;function w(){var e=x(T());return l&&(e=p(e,l)),h(e)}var k=y();function S(e){(0,r.Z)(q,e),q.length=t.length,k.notifyListeners(q.location,q.action)}var L=!1,P=null;function N(){var e,t,n=T(),r=g(n);if(n!==r)R(r);else{var a=w(),s=q.location;if(!L&&(t=a,(e=s).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(P===m(a))return;P=null,function(e){if(L)L=!1,S();else{var t="POP";k.confirmTransitionTo(e,t,o,(function(n){n?S({action:t,location:e}):function(e){var t=q.location,n=I.lastIndexOf(m(t));-1===n&&(n=0);var r=I.lastIndexOf(m(e));-1===r&&(r=0);var a=n-r;a&&(L=!0,B(a))}(e)}))}}(a)}}var A=T(),O=g(A);A!==O&&R(O);var j=w(),I=[m(j)];function B(e){t.go(e)}var F=0;function D(e){1===(F+=e)&&1===e?window.addEventListener(E,N):0===F&&window.removeEventListener(E,N)}var M=!1;var q={length:t.length,action:"POP",location:j,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=C(window.location.href)),n+"#"+g(l+m(e))},push:function(e,t){var n="PUSH",r=h(e,void 0,void 0,q.location);k.confirmTransitionTo(r,n,o,(function(e){if(e){var t=m(r),a=g(l+t);if(T()!==a){P=t,function(e){window.location.hash=e}(a);var o=I.lastIndexOf(m(q.location)),s=I.slice(0,o+1);s.push(t),I=s,S({action:n,location:r})}else S()}}))},replace:function(e,t){var n="REPLACE",r=h(e,void 0,void 0,q.location);k.confirmTransitionTo(r,n,o,(function(e){if(e){var t=m(r),a=g(l+t);T()!==a&&(P=t,R(a));var o=I.indexOf(m(q.location));-1!==o&&(I[o]=t),S({action:n,location:r})}}))},go:B,goBack:function(){B(-1)},goForward:function(){B(1)},block:function(e){void 0===e&&(e=!1);var t=k.setPrompt(e);return M||(D(1),M=!0),function(){return M&&(M=!1,D(-1)),t()}},listen:function(e){var t=k.appendListener(e);return D(1),function(){D(-1),t()}}};return q}function P(e,t,n){return Math.min(Math.max(e,t),n)}function N(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,a=t.initialEntries,o=void 0===a?["/"]:a,s=t.initialIndex,i=void 0===s?0:s,l=t.keyLength,c=void 0===l?6:l,u=y();function d(e){(0,r.Z)(x,e),x.length=x.entries.length,u.notifyListeners(x.location,x.action)}function p(){return Math.random().toString(36).substr(2,c)}var f=P(i,0,o.length-1),g=o.map((function(e){return h(e,void 0,"string"==typeof e?p():e.key||p())})),b=m;function v(e){var t=P(x.index+e,0,x.entries.length-1),r=x.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var x={length:g.length,action:"POP",location:g[f],index:f,entries:g,createHref:b,push:function(e,t){var r="PUSH",a=h(e,t,p(),x.location);u.confirmTransitionTo(a,r,n,(function(e){if(e){var t=x.index+1,n=x.entries.slice(0);n.length>t?n.splice(t,n.length-t,a):n.push(a),d({action:r,location:a,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",a=h(e,t,p(),x.location);u.confirmTransitionTo(a,r,n,(function(e){e&&(x.entries[x.index]=a,d({action:r,location:a}))}))},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(e){var t=x.index+e;return t>=0&&t<x.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return x}},8679:(e,t,n)=>{"use strict";var r=n(9864),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function l(e){return r.isMemo(e)?s:i[e.$$typeof]||a}i[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var a=f(n);a&&a!==m&&e(t,a,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var i=l(t),h=l(n),g=0;g<s.length;++g){var y=s[g];if(!(o[y]||r&&r[y]||h&&h[y]||i&&i[y])){var b=p(n,y);try{c(t,y,b)}catch(v){}}}}return t}},1143:e=>{"use strict";e.exports=function(e,t,n,r,a,o,s,i){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,o,s,i],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},5826:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},1336:(e,t,n)=>{var r,a;!function(){var o,s,i,l,c,u,d,p,f,m,h,g,y,b,v,x,w,k,S,E,_,C,T,R,L,P,N,A,O,j,I=function(e){var t=new I.Builder;return t.pipeline.add(I.trimmer,I.stopWordFilter,I.stemmer),t.searchPipeline.add(I.stemmer),e.call(t,t),t.build()};I.version="2.3.9",I.utils={},I.utils.warn=(o=this,function(e){o.console&&console.warn&&console.warn(e)}),I.utils.asString=function(e){return null==e?"":e.toString()},I.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),n=Object.keys(e),r=0;r<n.length;r++){var a=n[r],o=e[a];if(Array.isArray(o))t[a]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");t[a]=o}}return t},I.FieldRef=function(e,t,n){this.docRef=e,this.fieldName=t,this._stringValue=n},I.FieldRef.joiner="/",I.FieldRef.fromString=function(e){var t=e.indexOf(I.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var n=e.slice(0,t),r=e.slice(t+1);return new I.FieldRef(r,n,e)},I.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+I.FieldRef.joiner+this.docRef),this._stringValue},I.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},I.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},I.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},I.Set.prototype.contains=function(e){return!!this.elements[e]},I.Set.prototype.intersect=function(e){var t,n,r,a=[];if(e===I.Set.complete)return this;if(e===I.Set.empty)return e;this.length<e.length?(t=this,n=e):(t=e,n=this),r=Object.keys(t.elements);for(var o=0;o<r.length;o++){var s=r[o];s in n.elements&&a.push(s)}return new I.Set(a)},I.Set.prototype.union=function(e){return e===I.Set.complete?I.Set.complete:e===I.Set.empty?this:new I.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},I.idf=function(e,t){var n=0;for(var r in e)"_index"!=r&&(n+=Object.keys(e[r]).length);var a=(t-n+.5)/(n+.5);return Math.log(1+Math.abs(a))},I.Token=function(e,t){this.str=e||"",this.metadata=t||{}},I.Token.prototype.toString=function(){return this.str},I.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},I.Token.prototype.clone=function(e){return e=e||function(e){return e},new I.Token(e(this.str,this.metadata),this.metadata)},I.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new I.Token(I.utils.asString(e).toLowerCase(),I.utils.clone(t))}));for(var n=e.toString().toLowerCase(),r=n.length,a=[],o=0,s=0;o<=r;o++){var i=o-s;if(n.charAt(o).match(I.tokenizer.separator)||o==r){if(i>0){var l=I.utils.clone(t)||{};l.position=[s,i],l.index=a.length,a.push(new I.Token(n.slice(s,o),l))}s=o+1}}return a},I.tokenizer.separator=/[\s\-]+/,I.Pipeline=function(){this._stack=[]},I.Pipeline.registeredFunctions=Object.create(null),I.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&I.utils.warn("Overwriting existing registered function: "+t),e.label=t,I.Pipeline.registeredFunctions[e.label]=e},I.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||I.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},I.Pipeline.load=function(e){var t=new I.Pipeline;return e.forEach((function(e){var n=I.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)})),t},I.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(e){I.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},I.Pipeline.prototype.after=function(e,t){I.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},I.Pipeline.prototype.before=function(e,t){I.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},I.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},I.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n<t;n++){for(var r=this._stack[n],a=[],o=0;o<e.length;o++){var s=r(e[o],o,e);if(null!=s&&""!==s)if(Array.isArray(s))for(var i=0;i<s.length;i++)a.push(s[i]);else a.push(s)}e=a}return e},I.Pipeline.prototype.runString=function(e,t){var n=new I.Token(e,t);return this.run([n]).map((function(e){return e.toString()}))},I.Pipeline.prototype.reset=function(){this._stack=[]},I.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return I.Pipeline.warnIfFunctionNotRegistered(e),e.label}))},I.Vector=function(e){this._magnitude=0,this.elements=e||[]},I.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,n=this.elements.length/2,r=n-t,a=Math.floor(r/2),o=this.elements[2*a];r>1&&(o<e&&(t=a),o>e&&(n=a),o!=e);)r=n-t,a=t+Math.floor(r/2),o=this.elements[2*a];return o==e||o>e?2*a:o<e?2*(a+1):void 0},I.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},I.Vector.prototype.upsert=function(e,t,n){this._magnitude=0;var r=this.positionForIndex(e);this.elements[r]==e?this.elements[r+1]=n(this.elements[r+1],t):this.elements.splice(r,0,e,t)},I.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,n=1;n<t;n+=2){var r=this.elements[n];e+=r*r}return this._magnitude=Math.sqrt(e)},I.Vector.prototype.dot=function(e){for(var t=0,n=this.elements,r=e.elements,a=n.length,o=r.length,s=0,i=0,l=0,c=0;l<a&&c<o;)(s=n[l])<(i=r[c])?l+=2:s>i?c+=2:s==i&&(t+=n[l+1]*r[c+1],l+=2,c+=2);return t},I.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},I.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t<this.elements.length;t+=2,n++)e[n]=this.elements[t];return e},I.Vector.prototype.toJSON=function(){return this.elements},I.stemmer=(s={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},i={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},d="^("+(c="[^aeiou][^aeiouy]*")+")?"+(u=(l="[aeiouy]")+"[aeiou]*")+c+"("+u+")?$",p="^("+c+")?"+u+c+u+c,f="^("+c+")?"+l,m=new RegExp("^("+c+")?"+u+c),h=new RegExp(p),g=new RegExp(d),y=new RegExp(f),b=/^(.+?)(ss|i)es$/,v=/^(.+?)([^s])s$/,x=/^(.+?)eed$/,w=/^(.+?)(ed|ing)$/,k=/.$/,S=/(at|bl|iz)$/,E=new RegExp("([^aeiouylsz])\\1$"),_=new RegExp("^"+c+l+"[^aeiouwxy]$"),C=/^(.+?[^aeiou])y$/,T=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,R=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,L=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,P=/^(.+?)(s|t)(ion)$/,N=/^(.+?)e$/,A=/ll$/,O=new RegExp("^"+c+l+"[^aeiouwxy]$"),j=function(e){var t,n,r,a,o,l,c;if(e.length<3)return e;if("y"==(r=e.substr(0,1))&&(e=r.toUpperCase()+e.substr(1)),o=v,(a=b).test(e)?e=e.replace(a,"$1$2"):o.test(e)&&(e=e.replace(o,"$1$2")),o=w,(a=x).test(e)){var u=a.exec(e);(a=m).test(u[1])&&(a=k,e=e.replace(a,""))}else o.test(e)&&(t=(u=o.exec(e))[1],(o=y).test(t)&&(l=E,c=_,(o=S).test(e=t)?e+="e":l.test(e)?(a=k,e=e.replace(a,"")):c.test(e)&&(e+="e")));return(a=C).test(e)&&(e=(t=(u=a.exec(e))[1])+"i"),(a=T).test(e)&&(t=(u=a.exec(e))[1],n=u[2],(a=m).test(t)&&(e=t+s[n])),(a=R).test(e)&&(t=(u=a.exec(e))[1],n=u[2],(a=m).test(t)&&(e=t+i[n])),o=P,(a=L).test(e)?(t=(u=a.exec(e))[1],(a=h).test(t)&&(e=t)):o.test(e)&&(t=(u=o.exec(e))[1]+u[2],(o=h).test(t)&&(e=t)),(a=N).test(e)&&(t=(u=a.exec(e))[1],o=g,l=O,((a=h).test(t)||o.test(t)&&!l.test(t))&&(e=t)),o=h,(a=A).test(e)&&o.test(e)&&(a=k,e=e.replace(a,"")),"y"==r&&(e=r.toLowerCase()+e.substr(1)),e},function(e){return e.update(j)}),I.Pipeline.registerFunction(I.stemmer,"stemmer"),I.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},I.stopWordFilter=I.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),I.Pipeline.registerFunction(I.stopWordFilter,"stopWordFilter"),I.trimmer=function(e){return e.update((function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")}))},I.Pipeline.registerFunction(I.trimmer,"trimmer"),I.TokenSet=function(){this.final=!1,this.edges={},this.id=I.TokenSet._nextId,I.TokenSet._nextId+=1},I.TokenSet._nextId=1,I.TokenSet.fromArray=function(e){for(var t=new I.TokenSet.Builder,n=0,r=e.length;n<r;n++)t.insert(e[n]);return t.finish(),t.root},I.TokenSet.fromClause=function(e){return"editDistance"in e?I.TokenSet.fromFuzzyString(e.term,e.editDistance):I.TokenSet.fromString(e.term)},I.TokenSet.fromFuzzyString=function(e,t){for(var n=new I.TokenSet,r=[{node:n,editsRemaining:t,str:e}];r.length;){var a=r.pop();if(a.str.length>0){var o,s=a.str.charAt(0);s in a.node.edges?o=a.node.edges[s]:(o=new I.TokenSet,a.node.edges[s]=o),1==a.str.length&&(o.final=!0),r.push({node:o,editsRemaining:a.editsRemaining,str:a.str.slice(1)})}if(0!=a.editsRemaining){if("*"in a.node.edges)var i=a.node.edges["*"];else{i=new I.TokenSet;a.node.edges["*"]=i}if(0==a.str.length&&(i.final=!0),r.push({node:i,editsRemaining:a.editsRemaining-1,str:a.str}),a.str.length>1&&r.push({node:a.node,editsRemaining:a.editsRemaining-1,str:a.str.slice(1)}),1==a.str.length&&(a.node.final=!0),a.str.length>=1){if("*"in a.node.edges)var l=a.node.edges["*"];else{l=new I.TokenSet;a.node.edges["*"]=l}1==a.str.length&&(l.final=!0),r.push({node:l,editsRemaining:a.editsRemaining-1,str:a.str.slice(1)})}if(a.str.length>1){var c,u=a.str.charAt(0),d=a.str.charAt(1);d in a.node.edges?c=a.node.edges[d]:(c=new I.TokenSet,a.node.edges[d]=c),1==a.str.length&&(c.final=!0),r.push({node:c,editsRemaining:a.editsRemaining-1,str:u+a.str.slice(2)})}}}return n},I.TokenSet.fromString=function(e){for(var t=new I.TokenSet,n=t,r=0,a=e.length;r<a;r++){var o=e[r],s=r==a-1;if("*"==o)t.edges[o]=t,t.final=s;else{var i=new I.TokenSet;i.final=s,t.edges[o]=i,t=i}}return n},I.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var n=t.pop(),r=Object.keys(n.node.edges),a=r.length;n.node.final&&(n.prefix.charAt(0),e.push(n.prefix));for(var o=0;o<a;o++){var s=r[o];t.push({prefix:n.prefix.concat(s),node:n.node.edges[s]})}}return e},I.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),n=t.length,r=0;r<n;r++){var a=t[r];e=e+a+this.edges[a].id}return e},I.TokenSet.prototype.intersect=function(e){for(var t=new I.TokenSet,n=void 0,r=[{qNode:e,output:t,node:this}];r.length;){n=r.pop();for(var a=Object.keys(n.qNode.edges),o=a.length,s=Object.keys(n.node.edges),i=s.length,l=0;l<o;l++)for(var c=a[l],u=0;u<i;u++){var d=s[u];if(d==c||"*"==c){var p=n.node.edges[d],f=n.qNode.edges[c],m=p.final&&f.final,h=void 0;d in n.output.edges?(h=n.output.edges[d]).final=h.final||m:((h=new I.TokenSet).final=m,n.output.edges[d]=h),r.push({qNode:f,output:h,node:p})}}}return t},I.TokenSet.Builder=function(){this.previousWord="",this.root=new I.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},I.TokenSet.Builder.prototype.insert=function(e){var t,n=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var r=0;r<e.length&&r<this.previousWord.length&&e[r]==this.previousWord[r];r++)n++;this.minimize(n),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(r=n;r<e.length;r++){var a=new I.TokenSet,o=e[r];t.edges[o]=a,this.uncheckedNodes.push({parent:t,char:o,child:a}),t=a}t.final=!0,this.previousWord=e},I.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},I.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var n=this.uncheckedNodes[t],r=n.child.toString();r in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[r]:(n.child._str=r,this.minimizedNodes[r]=n.child),this.uncheckedNodes.pop()}},I.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},I.Index.prototype.search=function(e){return this.query((function(t){new I.QueryParser(e,t).parse()}))},I.Index.prototype.query=function(e){for(var t=new I.Query(this.fields),n=Object.create(null),r=Object.create(null),a=Object.create(null),o=Object.create(null),s=Object.create(null),i=0;i<this.fields.length;i++)r[this.fields[i]]=new I.Vector;e.call(t,t);for(i=0;i<t.clauses.length;i++){var l=t.clauses[i],c=null,u=I.Set.empty;c=l.usePipeline?this.pipeline.runString(l.term,{fields:l.fields}):[l.term];for(var d=0;d<c.length;d++){var p=c[d];l.term=p;var f=I.TokenSet.fromClause(l),m=this.tokenSet.intersect(f).toArray();if(0===m.length&&l.presence===I.Query.presence.REQUIRED){for(var h=0;h<l.fields.length;h++){o[N=l.fields[h]]=I.Set.empty}break}for(var g=0;g<m.length;g++){var y=m[g],b=this.invertedIndex[y],v=b._index;for(h=0;h<l.fields.length;h++){var x=b[N=l.fields[h]],w=Object.keys(x),k=y+"/"+N,S=new I.Set(w);if(l.presence==I.Query.presence.REQUIRED&&(u=u.union(S),void 0===o[N]&&(o[N]=I.Set.complete)),l.presence!=I.Query.presence.PROHIBITED){if(r[N].upsert(v,l.boost,(function(e,t){return e+t})),!a[k]){for(var E=0;E<w.length;E++){var _,C=w[E],T=new I.FieldRef(C,N),R=x[C];void 0===(_=n[T])?n[T]=new I.MatchData(y,N,R):_.add(y,N,R)}a[k]=!0}}else void 0===s[N]&&(s[N]=I.Set.empty),s[N]=s[N].union(S)}}}if(l.presence===I.Query.presence.REQUIRED)for(h=0;h<l.fields.length;h++){o[N=l.fields[h]]=o[N].intersect(u)}}var L=I.Set.complete,P=I.Set.empty;for(i=0;i<this.fields.length;i++){var N;o[N=this.fields[i]]&&(L=L.intersect(o[N])),s[N]&&(P=P.union(s[N]))}var A=Object.keys(n),O=[],j=Object.create(null);if(t.isNegated()){A=Object.keys(this.fieldVectors);for(i=0;i<A.length;i++){T=A[i];var B=I.FieldRef.fromString(T);n[T]=new I.MatchData}}for(i=0;i<A.length;i++){var F=(B=I.FieldRef.fromString(A[i])).docRef;if(L.contains(F)&&!P.contains(F)){var D,M=this.fieldVectors[B],q=r[B.fieldName].similarity(M);if(void 0!==(D=j[F]))D.score+=q,D.matchData.combine(n[B]);else{var z={ref:F,score:q,matchData:n[B]};j[F]=z,O.push(z)}}}return O.sort((function(e,t){return t.score-e.score}))},I.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:I.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},I.Index.load=function(e){var t={},n={},r=e.fieldVectors,a=Object.create(null),o=e.invertedIndex,s=new I.TokenSet.Builder,i=I.Pipeline.load(e.pipeline);e.version!=I.version&&I.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+I.version+"' does not match serialized index '"+e.version+"'");for(var l=0;l<r.length;l++){var c=(d=r[l])[0],u=d[1];n[c]=new I.Vector(u)}for(l=0;l<o.length;l++){var d,p=(d=o[l])[0],f=d[1];s.insert(p),a[p]=f}return s.finish(),t.fields=e.fields,t.fieldVectors=n,t.invertedIndex=a,t.tokenSet=s.root,t.pipeline=i,new I.Index(t)},I.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=I.tokenizer,this.pipeline=new I.Pipeline,this.searchPipeline=new I.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},I.Builder.prototype.ref=function(e){this._ref=e},I.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},I.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},I.Builder.prototype.k1=function(e){this._k1=e},I.Builder.prototype.add=function(e,t){var n=e[this._ref],r=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var a=0;a<r.length;a++){var o=r[a],s=this._fields[o].extractor,i=s?s(e):e[o],l=this.tokenizer(i,{fields:[o]}),c=this.pipeline.run(l),u=new I.FieldRef(n,o),d=Object.create(null);this.fieldTermFrequencies[u]=d,this.fieldLengths[u]=0,this.fieldLengths[u]+=c.length;for(var p=0;p<c.length;p++){var f=c[p];if(null==d[f]&&(d[f]=0),d[f]+=1,null==this.invertedIndex[f]){var m=Object.create(null);m._index=this.termIndex,this.termIndex+=1;for(var h=0;h<r.length;h++)m[r[h]]=Object.create(null);this.invertedIndex[f]=m}null==this.invertedIndex[f][o][n]&&(this.invertedIndex[f][o][n]=Object.create(null));for(var g=0;g<this.metadataWhitelist.length;g++){var y=this.metadataWhitelist[g],b=f.metadata[y];null==this.invertedIndex[f][o][n][y]&&(this.invertedIndex[f][o][n][y]=[]),this.invertedIndex[f][o][n][y].push(b)}}}},I.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,n={},r={},a=0;a<t;a++){var o=I.FieldRef.fromString(e[a]),s=o.fieldName;r[s]||(r[s]=0),r[s]+=1,n[s]||(n[s]=0),n[s]+=this.fieldLengths[o]}var i=Object.keys(this._fields);for(a=0;a<i.length;a++){var l=i[a];n[l]=n[l]/r[l]}this.averageFieldLength=n},I.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),n=t.length,r=Object.create(null),a=0;a<n;a++){for(var o=I.FieldRef.fromString(t[a]),s=o.fieldName,i=this.fieldLengths[o],l=new I.Vector,c=this.fieldTermFrequencies[o],u=Object.keys(c),d=u.length,p=this._fields[s].boost||1,f=this._documents[o.docRef].boost||1,m=0;m<d;m++){var h,g,y,b=u[m],v=c[b],x=this.invertedIndex[b]._index;void 0===r[b]?(h=I.idf(this.invertedIndex[b],this.documentCount),r[b]=h):h=r[b],g=h*((this._k1+1)*v)/(this._k1*(1-this._b+this._b*(i/this.averageFieldLength[s]))+v),g*=p,g*=f,y=Math.round(1e3*g)/1e3,l.insert(x,y)}e[o]=l}this.fieldVectors=e},I.Builder.prototype.createTokenSet=function(){this.tokenSet=I.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},I.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new I.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},I.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},I.MatchData=function(e,t,n){for(var r=Object.create(null),a=Object.keys(n||{}),o=0;o<a.length;o++){var s=a[o];r[s]=n[s].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=r)},I.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),n=0;n<t.length;n++){var r=t[n],a=Object.keys(e.metadata[r]);null==this.metadata[r]&&(this.metadata[r]=Object.create(null));for(var o=0;o<a.length;o++){var s=a[o],i=Object.keys(e.metadata[r][s]);null==this.metadata[r][s]&&(this.metadata[r][s]=Object.create(null));for(var l=0;l<i.length;l++){var c=i[l];null==this.metadata[r][s][c]?this.metadata[r][s][c]=e.metadata[r][s][c]:this.metadata[r][s][c]=this.metadata[r][s][c].concat(e.metadata[r][s][c])}}}},I.MatchData.prototype.add=function(e,t,n){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=n);if(t in this.metadata[e])for(var r=Object.keys(n),a=0;a<r.length;a++){var o=r[a];o in this.metadata[e][t]?this.metadata[e][t][o]=this.metadata[e][t][o].concat(n[o]):this.metadata[e][t][o]=n[o]}else this.metadata[e][t]=n},I.Query=function(e){this.clauses=[],this.allFields=e},I.Query.wildcard=new String("*"),I.Query.wildcard.NONE=0,I.Query.wildcard.LEADING=1,I.Query.wildcard.TRAILING=2,I.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},I.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=I.Query.wildcard.NONE),e.wildcard&I.Query.wildcard.LEADING&&e.term.charAt(0)!=I.Query.wildcard&&(e.term="*"+e.term),e.wildcard&I.Query.wildcard.TRAILING&&e.term.slice(-1)!=I.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=I.Query.presence.OPTIONAL),this.clauses.push(e),this},I.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=I.Query.presence.PROHIBITED)return!1;return!0},I.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,I.utils.clone(t))}),this),this;var n=t||{};return n.term=e.toString(),this.clause(n),this},I.QueryParseError=function(e,t,n){this.name="QueryParseError",this.message=e,this.start=t,this.end=n},I.QueryParseError.prototype=new Error,I.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},I.QueryLexer.prototype.run=function(){for(var e=I.QueryLexer.lexText;e;)e=e(this)},I.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,n=this.pos,r=0;r<this.escapeCharPositions.length;r++)n=this.escapeCharPositions[r],e.push(this.str.slice(t,n)),t=n+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},I.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},I.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},I.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return I.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},I.QueryLexer.prototype.width=function(){return this.pos-this.start},I.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},I.QueryLexer.prototype.backup=function(){this.pos-=1},I.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=I.QueryLexer.EOS&&this.backup()},I.QueryLexer.prototype.more=function(){return this.pos<this.length},I.QueryLexer.EOS="EOS",I.QueryLexer.FIELD="FIELD",I.QueryLexer.TERM="TERM",I.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",I.QueryLexer.BOOST="BOOST",I.QueryLexer.PRESENCE="PRESENCE",I.QueryLexer.lexField=function(e){return e.backup(),e.emit(I.QueryLexer.FIELD),e.ignore(),I.QueryLexer.lexText},I.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(I.QueryLexer.TERM)),e.ignore(),e.more())return I.QueryLexer.lexText},I.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(I.QueryLexer.EDIT_DISTANCE),I.QueryLexer.lexText},I.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(I.QueryLexer.BOOST),I.QueryLexer.lexText},I.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(I.QueryLexer.TERM)},I.QueryLexer.termSeparator=I.tokenizer.separator,I.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==I.QueryLexer.EOS)return I.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return I.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(I.QueryLexer.TERM),I.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(I.QueryLexer.TERM),I.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(I.QueryLexer.PRESENCE),I.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(I.QueryLexer.PRESENCE),I.QueryLexer.lexText;if(t.match(I.QueryLexer.termSeparator))return I.QueryLexer.lexTerm}else e.escapeCharacter()}},I.QueryParser=function(e,t){this.lexer=new I.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},I.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=I.QueryParser.parseClause;e;)e=e(this);return this.query},I.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},I.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},I.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},I.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case I.QueryLexer.PRESENCE:return I.QueryParser.parsePresence;case I.QueryLexer.FIELD:return I.QueryParser.parseField;case I.QueryLexer.TERM:return I.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new I.QueryParseError(n,t.start,t.end)}},I.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=I.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=I.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new I.QueryParseError(n,t.start,t.end)}var r=e.peekLexeme();if(null==r){n="expecting term or field, found nothing";throw new I.QueryParseError(n,t.start,t.end)}switch(r.type){case I.QueryLexer.FIELD:return I.QueryParser.parseField;case I.QueryLexer.TERM:return I.QueryParser.parseTerm;default:n="expecting term or field, found '"+r.type+"'";throw new I.QueryParseError(n,r.start,r.end)}}},I.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),r="unrecognised field '"+t.str+"', possible fields: "+n;throw new I.QueryParseError(r,t.start,t.end)}e.currentClause.fields=[t.str];var a=e.peekLexeme();if(null==a){r="expecting term, found nothing";throw new I.QueryParseError(r,t.start,t.end)}if(a.type===I.QueryLexer.TERM)return I.QueryParser.parseTerm;r="expecting term, found '"+a.type+"'";throw new I.QueryParseError(r,a.start,a.end)}},I.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(null!=n)switch(n.type){case I.QueryLexer.TERM:return e.nextClause(),I.QueryParser.parseTerm;case I.QueryLexer.FIELD:return e.nextClause(),I.QueryParser.parseField;case I.QueryLexer.EDIT_DISTANCE:return I.QueryParser.parseEditDistance;case I.QueryLexer.BOOST:return I.QueryParser.parseBoost;case I.QueryLexer.PRESENCE:return e.nextClause(),I.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+n.type+"'";throw new I.QueryParseError(r,n.start,n.end)}else e.nextClause()}},I.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="edit distance must be numeric";throw new I.QueryParseError(r,t.start,t.end)}e.currentClause.editDistance=n;var a=e.peekLexeme();if(null!=a)switch(a.type){case I.QueryLexer.TERM:return e.nextClause(),I.QueryParser.parseTerm;case I.QueryLexer.FIELD:return e.nextClause(),I.QueryParser.parseField;case I.QueryLexer.EDIT_DISTANCE:return I.QueryParser.parseEditDistance;case I.QueryLexer.BOOST:return I.QueryParser.parseBoost;case I.QueryLexer.PRESENCE:return e.nextClause(),I.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+a.type+"'";throw new I.QueryParseError(r,a.start,a.end)}else e.nextClause()}},I.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="boost must be numeric";throw new I.QueryParseError(r,t.start,t.end)}e.currentClause.boost=n;var a=e.peekLexeme();if(null!=a)switch(a.type){case I.QueryLexer.TERM:return e.nextClause(),I.QueryParser.parseTerm;case I.QueryLexer.FIELD:return e.nextClause(),I.QueryParser.parseField;case I.QueryLexer.EDIT_DISTANCE:return I.QueryParser.parseEditDistance;case I.QueryLexer.BOOST:return I.QueryParser.parseBoost;case I.QueryLexer.PRESENCE:return e.nextClause(),I.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+a.type+"'";throw new I.QueryParseError(r,a.start,a.end)}else e.nextClause()}},void 0===(a="function"==typeof(r=function(){return I})?r.call(t,n,t,e):r)||(e.exports=a)}()},3395:(e,t,n)=>{"use strict";n.r(t)},2497:(e,t,n)=>{"use strict";n.r(t)},4865:function(e,t,n){var r,a;r=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function a(e,t,n){return e<t?t:e>n?n:e}function o(e){return 100*(-1+e)}function s(e,t,n){var a;return(a="translate3d"===r.positionUsing?{transform:"translate3d("+o(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+o(e)+"%,0)"}:{"margin-left":o(e)+"%"}).transition="all "+t+"ms "+n,a}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=a(e,r.minimum,1),n.status=1===e?null:e;var o=n.render(!t),c=o.querySelector(r.barSelector),u=r.speed,d=r.easing;return o.offsetWidth,i((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),l(c,s(e,u,d)),1===e?(l(o,{transition:"none",opacity:1}),o.offsetWidth,setTimeout((function(){l(o,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),u)}),u)):setTimeout(t,u)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*a(Math.random()*t,.1,.95)),t=a(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var a,s=t.querySelector(r.barSelector),i=e?"-100":o(n.status||0),c=document.querySelector(r.parent);return l(s,{transition:"all 0 linear",transform:"translate3d("+i+"%,0,0)"}),r.showSpinner||(a=t.querySelector(r.spinnerSelector))&&f(a),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var i=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,a=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);a--;)if((r=e[a]+o)in n)return r;return t}function a(e){return e=n(e),t[e]||(t[e]=r(e))}function o(e,t,n){t=a(t),e.style[t]=n}return function(e,t){var n,r,a=arguments;if(2==a.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&o(e,n,r);else o(e,a[1],a[2])}}();function c(e,t){return("string"==typeof e?e:p(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=p(e),r=n+t;c(n,t)||(e.className=r.substring(1))}function d(e,t){var n,r=p(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function p(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},void 0===(a="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=a)},4779:(e,t,n)=>{var r=n(5826);e.exports=f,e.exports.parse=o,e.exports.compile=function(e,t){return i(o(e,t),t)},e.exports.tokensToFunction=i,e.exports.tokensToRegExp=p;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,s=0,i="",u=t&&t.delimiter||"/";null!=(n=a.exec(e));){var d=n[0],p=n[1],f=n.index;if(i+=e.slice(s,f),s=f+d.length,p)i+=p[1];else{var m=e[s],h=n[2],g=n[3],y=n[4],b=n[5],v=n[6],x=n[7];i&&(r.push(i),i="");var w=null!=h&&null!=m&&m!==h,k="+"===v||"*"===v,S="?"===v||"*"===v,E=n[2]||u,_=y||b;r.push({name:g||o++,prefix:h||"",delimiter:E,optional:S,repeat:k,partial:w,asterisk:!!x,pattern:_?c(_):x?".*":"[^"+l(E)+"]+?"})}}return s<e.length&&(i+=e.substr(s)),i&&r.push(i),r}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function i(e,t){for(var n=new Array(e.length),a=0;a<e.length;a++)"object"==typeof e[a]&&(n[a]=new RegExp("^(?:"+e[a].pattern+")$",d(t)));return function(t,a){for(var o="",i=t||{},l=(a||{}).pretty?s:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var d,p=i[u.name];if(null==p){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(d=l(p[f]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===f?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var a=(n=n||{}).strict,o=!1!==n.end,s="",i=0;i<e.length;i++){var c=e[i];if("string"==typeof c)s+=l(c);else{var p=l(c.prefix),f="(?:"+c.pattern+")";t.push(c),c.repeat&&(f+="(?:"+p+f+")*"),s+=f=c.optional?c.partial?p+"("+f+")?":"(?:"+p+"("+f+"))?":p+"("+f+")"}}var m=l(n.delimiter||"/"),h=s.slice(-m.length)===m;return a||(s=(h?s.slice(0,-m.length):s)+"(?:"+m+"(?=$))?"),s+=o?"$":a&&h?"":"(?="+m+"|$)",u(new RegExp("^"+s,d(n)),t)}function f(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],a=0;a<e.length;a++)r.push(f(e[a],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return p(o(e,n),t,n)}(e,t,n)}},7874:()=>{!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,s=0;s<a.length;s++)o[a[s]]=e.languages.bash[a[s]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism)},4277:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},6854:()=>{!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,a,o){if(n.language===r){var s=n.tokenStack=[];n.code=n.code.replace(a,(function(e){if("function"==typeof o&&!o(e))return e;for(var a,i=s.length;-1!==n.code.indexOf(a=t(r,i));)++i;return s[i]=e,a})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,o=Object.keys(n.tokenStack);!function s(i){for(var l=0;l<i.length&&!(a>=o.length);l++){var c=i[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=o[a],d=n.tokenStack[u],p="string"==typeof c?c:c.content,f=t(r,u),m=p.indexOf(f);if(m>-1){++a;var h=p.substring(0,m),g=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),y=p.substring(m+f.length),b=[];h&&b.push.apply(b,s([h])),b.push(g),y&&b.push.apply(b,s([y])),"string"==typeof c?i.splice.apply(i,[l,1].concat(b)):c.content=b}}else c.content&&s(c.content)}return i}(n.tokens)}}}})}(Prism)},1029:()=>{!function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism)},5897:(e,t,n)=>{var r={"./prism-bash":7874,"./prism-json":4277,"./prism-tsx":1029};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=5897},2703:(e,t,n)=>{"use strict";var r=n(414);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,s){if(s!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4448:(e,t,n)=>{"use strict";var r=n(7294),a=n(3840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,i={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(i[e]=t,e=0;e<t.length;e++)s.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},m={};function h(e,t,n,r,a,o,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function v(e,t,n,r){var a=g.hasOwnProperty(t)?g[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!d.call(m,e)||!d.call(f,e)&&(p.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),T=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),A=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var O=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var j=Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=j&&e[j]||e["@@iterator"])?e:null}var B,F=Object.assign;function D(e){if(void 0===B)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var M=!1;function q(e,t){if(!e||M)return"";M=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(var a=c.stack.split("\n"),o=r.stack.split("\n"),s=a.length-1,i=o.length-1;1<=s&&0<=i&&a[s]!==o[i];)i--;for(;1<=s&&0<=i;s--,i--)if(a[s]!==o[i]){if(1!==s||1!==i)do{if(s--,0>--i||a[s]!==o[i]){var l="\n"+a[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=i);break}}}finally{M=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function z(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=q(e.type,!1);case 11:return e=q(e.type.render,!1);case 1:return e=q(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case _:return"Profiler";case E:return"StrictMode";case L:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case A:t=e._payload,e=e._init;try{return $(e(t))}catch(n){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Z(e){e._valueTracker||(e._valueTracker=function(e){var t=Q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function V(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function W(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function X(e,t){K(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&W(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function oe(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ie(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ie(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=he(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(fe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ye=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Se=null,Ee=null;function _e(e){if(e=va(e)){if("function"!=typeof ke)throw Error(o(280));var t=e.stateNode;t&&(t=wa(t),ke(e.stateNode,e.type,t))}}function Ce(e){Se?Ee?Ee.push(e):Ee=[e]:Se=e}function Te(){if(Se){var e=Se,t=Ee;if(Ee=Se=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function Re(e,t){return e(t)}function Le(){}var Pe=!1;function Ne(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Re(e,t,n)}finally{Pe=!1,(null!==Se||null!==Ee)&&(Le(),Te())}}function Ae(e,t){var n=e.stateNode;if(null===n)return null;var r=wa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Oe=!1;if(u)try{var je={};Object.defineProperty(je,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",je,je),window.removeEventListener("test",je,je)}catch(ue){Oe=!1}function Ie(e,t,n,r,a,o,s,i,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Be=!1,Fe=null,De=!1,Me=null,qe={onError:function(e){Be=!0,Fe=e}};function ze(e,t,n,r,a,o,s,i,l){Be=!1,Fe=null,Ie.apply(qe,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if($e(e)!==e)throw Error(o(188))}function Qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var s=a.alternate;if(null===s){if(null!==(r=a.return)){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return He(a),e;if(s===r)return He(a),t;s=s.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=s;else{for(var i=!1,l=a.child;l;){if(l===n){i=!0,n=a,r=s;break}if(l===r){i=!0,r=a,n=s;break}l=l.sibling}if(!i){for(l=s.child;l;){if(l===n){i=!0,n=s,r=a;break}if(l===r){i=!0,r=s,n=a;break}l=l.sibling}if(!i)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ze(e):null}function Ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ze(e);if(null!==t)return t;e=e.sibling}return null}var Ve=a.unstable_scheduleCallback,We=a.unstable_cancelCallback,Ge=a.unstable_shouldYield,Ye=a.unstable_requestPaint,Ke=a.unstable_now,Xe=a.unstable_getCurrentPriorityLevel,Je=a.unstable_ImmediatePriority,et=a.unstable_UserBlockingPriority,tt=a.unstable_NormalPriority,nt=a.unstable_LowPriority,rt=a.unstable_IdlePriority,at=null,ot=null;var st=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(it(e)/lt|0)|0},it=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,s=268435455&n;if(0!==s){var i=s&~a;0!==i?r=dt(i):0!==(o&=s)&&(r=dt(o))}else 0!==(s=n&~a)?r=dt(s):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-st(t)),r|=e[n],t&=~a;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ht(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var vt=0;function xt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,kt,St,Et,_t,Ct=!1,Tt=[],Rt=null,Lt=null,Pt=null,Nt=new Map,At=new Map,Ot=[],jt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function It(e,t){switch(e){case"focusin":case"focusout":Rt=null;break;case"dragenter":case"dragleave":Lt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":At.delete(t.pointerId)}}function Bt(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=va(t))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Ft(e){var t=ba(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ue(n)))return e.blockedOn=t,void _t(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=va(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Mt(e,t,n){Dt(e)&&n.delete(t)}function qt(){Ct=!1,null!==Rt&&Dt(Rt)&&(Rt=null),null!==Lt&&Dt(Lt)&&(Lt=null),null!==Pt&&Dt(Pt)&&(Pt=null),Nt.forEach(Mt),At.forEach(Mt)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,qt)))}function $t(e){function t(t){return zt(t,e)}if(0<Tt.length){zt(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Rt&&zt(Rt,e),null!==Lt&&zt(Lt,e),null!==Pt&&zt(Pt,e),Nt.forEach(t),At.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)Ft(n),null===n.blockedOn&&Ot.shift()}var Ut=x.ReactCurrentBatchConfig,Ht=!0;function Qt(e,t,n,r){var a=vt,o=Ut.transition;Ut.transition=null;try{vt=1,Vt(e,t,n,r)}finally{vt=a,Ut.transition=o}}function Zt(e,t,n,r){var a=vt,o=Ut.transition;Ut.transition=null;try{vt=4,Vt(e,t,n,r)}finally{vt=a,Ut.transition=o}}function Vt(e,t,n,r){if(Ht){var a=Gt(e,t,n,r);if(null===a)Hr(e,t,r,Wt,n),It(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Rt=Bt(Rt,e,t,n,r,a),!0;case"dragenter":return Lt=Bt(Lt,e,t,n,r,a),!0;case"mouseover":return Pt=Bt(Pt,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return Nt.set(o,Bt(Nt.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,At.set(o,Bt(At.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<jt.indexOf(e)){for(;null!==a;){var o=va(a);if(null!==o&&wt(o),null===(o=Gt(e,t,n,r))&&Hr(e,t,r,Wt,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Wt=null;function Gt(e,t,n,r){if(Wt=null,null!==(e=ba(e=we(r))))if(null===(t=$e(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Kt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,a="value"in Kt?Kt.value:Kt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===a[o-t];t++);return Jt=a.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,a,o){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(a):a[s]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=an(cn),dn=F({},cn,{view:0,detail:0}),pn=an(dn),fn=F({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_n,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(on=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=on=0,ln=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),mn=an(fn),hn=an(F({},fn,{dataTransfer:0})),gn=an(F({},dn,{relatedTarget:0})),yn=an(F({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=F({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=an(bn),xn=an(F({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function _n(){return En}var Cn=F({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_n,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=an(Cn),Rn=an(F({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ln=an(F({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_n})),Pn=an(F({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=F({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),An=an(Nn),On=[9,13,27,32],jn=u&&"CompositionEvent"in window,In=null;u&&"documentMode"in document&&(In=document.documentMode);var Bn=u&&"TextEvent"in window&&!In,Fn=u&&(!jn||In&&8<In&&11>=In),Dn=String.fromCharCode(32),Mn=!1;function qn(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1;var Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Qn(e,t,n,r){Ce(r),0<(t=Zr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zn=null,Vn=null;function Wn(e){Dr(e,0)}function Gn(e){if(V(xa(e)))return e}function Yn(e,t){if("change"===e)return t}var Kn=!1;if(u){var Xn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Xn=Jn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Zn&&(Zn.detachEvent("onpropertychange",nr),Vn=Zn=null)}function nr(e){if("value"===e.propertyName&&Gn(Vn)){var t=[];Qn(t,Vn,e,we(e)),Ne(Wn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Vn=n,(Zn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Vn)}function or(e,t){if("click"===e)return Gn(t)}function sr(e,t){if("input"===e||"change"===e)return Gn(t)}var ir="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(ir(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!d.call(t,a)||!ir(e[a],t[a]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=W();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=W((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=ur(n,o);var s=ur(n,r);a&&s&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,br=null,vr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==gr||gr!==W(r)||("selectionStart"in(r=gr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&lr(br,r)||(br=r,0<(r=Zr(yr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},Er={};function _r(e){if(Sr[e])return Sr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Sr[e]=n[t];return e}u&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Cr=_r("animationend"),Tr=_r("animationiteration"),Rr=_r("animationstart"),Lr=_r("transitionend"),Pr=new Map,Nr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ar(e,t){Pr.set(e,t),l(t,[e])}for(var Or=0;Or<Nr.length;Or++){var jr=Nr[Or];Ar(jr.toLowerCase(),"on"+(jr[0].toUpperCase()+jr.slice(1)))}Ar(Cr,"onAnimationEnd"),Ar(Tr,"onAnimationIteration"),Ar(Rr,"onAnimationStart"),Ar("dblclick","onDoubleClick"),Ar("focusin","onFocus"),Ar("focusout","onBlur"),Ar(Lr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Br=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function Fr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,s,i,l,c){if(ze.apply(this,arguments),Be){if(!Be)throw Error(o(198));var u=Fe;Be=!1,Fe=null,De||(De=!0,Me=u)}}(r,t,void 0,e),e.currentTarget=null}function Dr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var i=r[s],l=i.instance,c=i.currentTarget;if(i=i.listener,l!==o&&a.isPropagationStopped())break e;Fr(a,i,c),o=l}else for(s=0;s<r.length;s++){if(l=(i=r[s]).instance,c=i.currentTarget,i=i.listener,l!==o&&a.isPropagationStopped())break e;Fr(a,i,c),o=l}}}if(De)throw e=Me,De=!1,Me=null,e}function Mr(e,t){var n=t[ha];void 0===n&&(n=t[ha]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function qr(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function $r(e){if(!e[zr]){e[zr]=!0,s.forEach((function(t){"selectionchange"!==t&&(Br.has(t)||qr(t,!1,e),qr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,qr("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Yt(t)){case 1:var a=Qt;break;case 4:a=Zt;break;default:a=Vt}n=a.bind(null,t,n,e),a=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,a){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var i=r.stateNode.containerInfo;if(i===a||8===i.nodeType&&i.parentNode===a)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;s=s.return}for(;null!==i;){if(null===(s=ba(i)))return;if(5===(l=s.tag)||6===l){r=o=s;continue e}i=i.parentNode}}r=r.return}Ne((function(){var r=o,a=we(n),s=[];e:{var i=Pr.get(e);if(void 0!==i){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Ln;break;case Cr:case Tr:case Rr:l=yn;break;case Lr:l=Pn;break;case"scroll":l=pn;break;case"wheel":l=An;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Rn}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==i?i+"Capture":null:i;u=[];for(var f,m=r;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&(null!=(h=Ae(m,p))&&u.push(Qr(m,h,f)))),d)break;m=m.return}0<u.length&&(i=new l(i,c,null,n,a),s.push({event:i,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(i="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!ba(c)&&!c[ma])&&(l||i)&&(i=a.window===a?a:(i=a.ownerDocument)?i.defaultView||i.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ba(c):null)&&(c!==(d=$e(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=mn,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=Rn,h="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==l?i:xa(l),f=null==c?i:xa(c),(i=new u(h,m+"leave",l,n,a)).target=d,i.relatedTarget=f,h=null,ba(a)===r&&((u=new u(p,m+"enter",c,n,a)).target=f,u.relatedTarget=d,h=u),d=h,l&&c)e:{for(p=c,m=0,f=u=l;f;f=Vr(f))m++;for(f=0,h=p;h;h=Vr(h))f++;for(;0<m-f;)u=Vr(u),m--;for(;0<f-m;)p=Vr(p),f--;for(;m--;){if(u===p||null!==p&&u===p.alternate)break e;u=Vr(u),p=Vr(p)}u=null}else u=null;null!==l&&Wr(s,i,l,u,!1),null!==c&&null!==d&&Wr(s,d,c,u,!0)}if("select"===(l=(i=r?xa(r):window).nodeName&&i.nodeName.toLowerCase())||"input"===l&&"file"===i.type)var g=Yn;else if(Hn(i))if(Kn)g=sr;else{g=ar;var y=rr}else(l=i.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(g=or);switch(g&&(g=g(e,r))?Qn(s,g,n,a):(y&&y(e,i,r),"focusout"===e&&(y=i._wrapperState)&&y.controlled&&"number"===i.type&&ee(i,"number",i.value)),y=r?xa(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,br=null);break;case"focusout":br=yr=gr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,xr(s,n,a);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":xr(s,n,a)}var b;if(jn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else $n?qn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Fn&&"ko"!==n.locale&&($n||"onCompositionStart"!==v?"onCompositionEnd"===v&&$n&&(b=en()):(Xt="value"in(Kt=a)?Kt.value:Kt.textContent,$n=!0)),0<(y=Zr(r,v)).length&&(v=new xn(v,e,null,n,a),s.push({event:v,listeners:y}),b?v.data=b:null!==(b=zn(n))&&(v.data=b))),(b=Bn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Mn=!0,Dn);case"textInput":return(e=t.data)===Dn&&Mn?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!jn&&qn(e,t)?(e=en(),Jt=Xt=Kt=null,$n=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Zr(r,"onBeforeInput")).length&&(a=new xn("onBeforeInput","beforeinput",null,n,a),s.push({event:a,listeners:r}),a.data=b))}Dr(s,t)}))}function Qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Ae(e,n))&&r.unshift(Qr(e,o,a)),null!=(o=Ae(e,t))&&r.push(Qr(e,o,a))),e=e.return}return r}function Vr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,a){for(var o=t._reactName,s=[];null!==n&&n!==r;){var i=n,l=i.alternate,c=i.stateNode;if(null!==l&&l===r)break;5===i.tag&&null!==c&&(i=c,a?null!=(l=Ae(n,o))&&s.unshift(Qr(n,l,i)):a||null!=(l=Ae(n,o))&&s.push(Qr(n,l,i))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Gr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Yr,"")}function Xr(e,t,n){if(t=Kr(t),Kr(e)!==t&&n)throw Error(o(425))}function Jr(){}var ea=null,ta=null;function na(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ra="function"==typeof setTimeout?setTimeout:void 0,aa="function"==typeof clearTimeout?clearTimeout:void 0,oa="function"==typeof Promise?Promise:void 0,sa="function"==typeof queueMicrotask?queueMicrotask:void 0!==oa?function(e){return oa.resolve(null).then(e).catch(ia)}:ra;function ia(e){setTimeout((function(){throw e}))}function la(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void $t(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);$t(t)}function ca(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ua(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var da=Math.random().toString(36).slice(2),pa="__reactFiber$"+da,fa="__reactProps$"+da,ma="__reactContainer$"+da,ha="__reactEvents$"+da,ga="__reactListeners$"+da,ya="__reactHandles$"+da;function ba(e){var t=e[pa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ma]||n[pa]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ua(e);null!==e;){if(n=e[pa])return n;e=ua(e)}return t}n=(e=n).parentNode}return null}function va(e){return!(e=e[pa]||e[ma])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wa(e){return e[fa]||null}var ka=[],Sa=-1;function Ea(e){return{current:e}}function _a(e){0>Sa||(e.current=ka[Sa],ka[Sa]=null,Sa--)}function Ca(e,t){Sa++,ka[Sa]=e.current,e.current=t}var Ta={},Ra=Ea(Ta),La=Ea(!1),Pa=Ta;function Na(e,t){var n=e.type.contextTypes;if(!n)return Ta;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Aa(e){return null!=(e=e.childContextTypes)}function Oa(){_a(La),_a(Ra)}function ja(e,t,n){if(Ra.current!==Ta)throw Error(o(168));Ca(Ra,t),Ca(La,n)}function Ia(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(o(108,U(e)||"Unknown",a));return F({},n,r)}function Ba(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ta,Pa=Ra.current,Ca(Ra,e),Ca(La,La.current),!0}function Fa(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ia(e,t,Pa),r.__reactInternalMemoizedMergedChildContext=e,_a(La),_a(Ra),Ca(Ra,e)):_a(La),Ca(La,n)}var Da=null,Ma=!1,qa=!1;function za(e){null===Da?Da=[e]:Da.push(e)}function $a(){if(!qa&&null!==Da){qa=!0;var e=0,t=vt;try{var n=Da;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Da=null,Ma=!1}catch(a){throw null!==Da&&(Da=Da.slice(e+1)),Ve(Je,$a),a}finally{vt=t,qa=!1}}return null}var Ua=[],Ha=0,Qa=null,Za=0,Va=[],Wa=0,Ga=null,Ya=1,Ka="";function Xa(e,t){Ua[Ha++]=Za,Ua[Ha++]=Qa,Qa=e,Za=t}function Ja(e,t,n){Va[Wa++]=Ya,Va[Wa++]=Ka,Va[Wa++]=Ga,Ga=e;var r=Ya;e=Ka;var a=32-st(r)-1;r&=~(1<<a),n+=1;var o=32-st(t)+a;if(30<o){var s=a-a%5;o=(r&(1<<s)-1).toString(32),r>>=s,a-=s,Ya=1<<32-st(t)+a|n<<a|r,Ka=o+e}else Ya=1<<o|n<<a|r,Ka=e}function eo(e){null!==e.return&&(Xa(e,1),Ja(e,1,0))}function to(e){for(;e===Qa;)Qa=Ua[--Ha],Ua[Ha]=null,Za=Ua[--Ha],Ua[Ha]=null;for(;e===Ga;)Ga=Va[--Wa],Va[Wa]=null,Ka=Va[--Wa],Va[Wa]=null,Ya=Va[--Wa],Va[Wa]=null}var no=null,ro=null,ao=!1,oo=null;function so(e,t){var n=Ac(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function io(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ca(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ga?{id:Ya,overflow:Ka}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ac(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function co(e){if(ao){var t=ro;if(t){var n=t;if(!io(e,t)){if(lo(e))throw Error(o(418));t=ca(n.nextSibling);var r=no;t&&io(e,t)?so(r,n):(e.flags=-4097&e.flags|2,ao=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,ao=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function po(e){if(e!==no)return!1;if(!ao)return uo(e),ao=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!na(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw fo(),Error(o(418));for(;t;)so(e,t),t=ca(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ca(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ca(e.stateNode.nextSibling):null;return!0}function fo(){for(var e=ro;e;)e=ca(e.nextSibling)}function mo(){ro=no=null,ao=!1}function ho(e){null===oo?oo=[e]:oo.push(e)}var go=x.ReactCurrentBatchConfig;function yo(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var bo=Ea(null),vo=null,xo=null,wo=null;function ko(){wo=xo=vo=null}function So(e){var t=bo.current;_a(bo),e._currentValue=t}function Eo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _o(e,t){vo=e,wo=xo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(xi=!0),e.firstContext=null)}function Co(e){var t=e._currentValue;if(wo!==e)if(e={context:e,memoizedValue:t,next:null},null===xo){if(null===vo)throw Error(o(308));xo=e,vo.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var To=null;function Ro(e){null===To?To=[e]:To.push(e)}function Lo(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Ro(t)):(n.next=a.next,a.next=n),t.interleaved=n,Po(e,r)}function Po(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var No=!1;function Ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Oo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function jo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Io(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ll)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Po(e,n)}return null===(a=r.interleaved)?(t.next=t,Ro(r)):(t.next=a.next,a.next=t),r.interleaved=t,Po(e,n)}function Bo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Fo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=s:o=o.next=s,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Do(e,t,n,r){var a=e.updateQueue;No=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,i=a.shared.pending;if(null!==i){a.shared.pending=null;var l=i,c=l.next;l.next=null,null===s?o=c:s.next=c,s=l;var u=e.alternate;null!==u&&((i=(u=u.updateQueue).lastBaseUpdate)!==s&&(null===i?u.firstBaseUpdate=c:i.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=a.baseState;for(s=0,u=c=l=null,i=o;;){var p=i.lane,f=i.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var m=e,h=i;switch(p=t,f=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=h.payload)?m.call(f,d,p):m))break e;d=F({},d,p);break e;case 2:No=!0}}null!==i.callback&&0!==i.lane&&(e.flags|=64,null===(p=a.effects)?a.effects=[i]:p.push(i))}else f={eventTime:f,lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,s|=p;if(null===(i=i.next)){if(null===(i=a.shared.pending))break;i=(p=i).next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}if(null===u&&(l=d),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=u,null!==(t=a.shared.interleaved)){a=t;do{s|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);Fl|=s,e.lanes=s,e.memoizedState=d}}function Mo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(o(191,a));a.call(r)}}}var qo=(new r.Component).refs;function zo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var $o={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),a=nc(e),o=jo(r,a);o.payload=t,null!=n&&(o.callback=n),null!==(t=Io(e,o,a))&&(rc(t,e,a,r),Bo(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),a=nc(e),o=jo(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Io(e,o,a))&&(rc(t,e,a,r),Bo(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),a=jo(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Io(e,a,r))&&(rc(t,e,r,n),Bo(t,e,r))}};function Uo(e,t,n,r,a,o,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,s):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(a,o))}function Ho(e,t,n){var r=!1,a=Ta,o=t.contextType;return"object"==typeof o&&null!==o?o=Co(o):(a=Aa(t)?Pa:Ra.current,o=(r=null!=(r=t.contextTypes))?Na(e,a):Ta),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=$o,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Qo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&$o.enqueueReplaceState(t,t.state,null)}function Zo(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=qo,Ao(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=Co(o):(o=Aa(t)?Pa:Ra.current,a.context=Na(e,o)),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(zo(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&$o.enqueueReplaceState(a,a.state,null),Do(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function Vo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var a=r,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=a.refs;t===qo&&(t=a.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Wo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Go(e){return(0,e._init)(e._payload)}function Yo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=jc(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Dc(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===A&&Go(o)===t.type)?((r=a(t,n.props)).ref=Vo(e,t,n),r.return=e,r):((r=Ic(n.type,n.key,n.props,null,e.mode,r)).ref=Vo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Mc(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Bc(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Dc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Ic(t.type,t.key,t.props,null,e.mode,n)).ref=Vo(e,null,t),n.return=e,n;case k:return(t=Mc(t,e.mode,n)).return=e,t;case A:return p(e,(0,t._init)(t._payload),n)}if(te(t)||I(t))return(t=Bc(t,e.mode,n,null)).return=e,t;Wo(e,t)}return null}function f(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===a?c(e,t,n,r):null;case k:return n.key===a?u(e,t,n,r):null;case A:return f(e,t,(a=n._init)(n._payload),r)}if(te(n)||I(n))return null!==a?null:d(e,t,n,r,null);Wo(e,n)}return null}function m(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case A:return m(e,t,n,(0,r._init)(r._payload),a)}if(te(r)||I(r))return d(t,e=e.get(n)||null,r,a,null);Wo(t,r)}return null}function h(a,o,i,l){for(var c=null,u=null,d=o,h=o=0,g=null;null!==d&&h<i.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var y=f(a,d,i[h],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(a,d),o=s(y,o,h),null===u?c=y:u.sibling=y,u=y,d=g}if(h===i.length)return n(a,d),ao&&Xa(a,h),c;if(null===d){for(;h<i.length;h++)null!==(d=p(a,i[h],l))&&(o=s(d,o,h),null===u?c=d:u.sibling=d,u=d);return ao&&Xa(a,h),c}for(d=r(a,d);h<i.length;h++)null!==(g=m(d,a,h,i[h],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?h:g.key),o=s(g,o,h),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(a,e)})),ao&&Xa(a,h),c}function g(a,i,l,c){var u=I(l);if("function"!=typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,h=i,g=i=0,y=null,b=l.next();null!==h&&!b.done;g++,b=l.next()){h.index>g?(y=h,h=null):y=h.sibling;var v=f(a,h,b.value,c);if(null===v){null===h&&(h=y);break}e&&h&&null===v.alternate&&t(a,h),i=s(v,i,g),null===d?u=v:d.sibling=v,d=v,h=y}if(b.done)return n(a,h),ao&&Xa(a,g),u;if(null===h){for(;!b.done;g++,b=l.next())null!==(b=p(a,b.value,c))&&(i=s(b,i,g),null===d?u=b:d.sibling=b,d=b);return ao&&Xa(a,g),u}for(h=r(a,h);!b.done;g++,b=l.next())null!==(b=m(h,a,g,b.value,c))&&(e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),i=s(b,i,g),null===d?u=b:d.sibling=b,d=b);return e&&h.forEach((function(e){return t(a,e)})),ao&&Xa(a,g),u}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===S&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case w:e:{for(var c=s.key,u=o;null!==u;){if(u.key===c){if((c=s.type)===S){if(7===u.tag){n(r,u.sibling),(o=a(u,s.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===A&&Go(c)===u.type){n(r,u.sibling),(o=a(u,s.props)).ref=Vo(r,u,s),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===S?((o=Bc(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=Ic(s.type,s.key,s.props,null,r.mode,l)).ref=Vo(r,o,s),l.return=r,r=l)}return i(r);case k:e:{for(u=s.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=a(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Mc(s,r.mode,l)).return=r,r=o}return i(r);case A:return e(r,o,(u=s._init)(s._payload),l)}if(te(s))return h(r,o,s,l);if(I(s))return g(r,o,s,l);Wo(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=a(o,s)).return=r,r=o):(n(r,o),(o=Dc(s,r.mode,l)).return=r,r=o),i(r)):n(r,o)}}var Ko=Yo(!0),Xo=Yo(!1),Jo={},es=Ea(Jo),ts=Ea(Jo),ns=Ea(Jo);function rs(e){if(e===Jo)throw Error(o(174));return e}function as(e,t){switch(Ca(ns,t),Ca(ts,e),Ca(es,Jo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_a(es),Ca(es,t)}function os(){_a(es),_a(ts),_a(ns)}function ss(e){rs(ns.current);var t=rs(es.current),n=le(t,e.type);t!==n&&(Ca(ts,e),Ca(es,n))}function is(e){ts.current===e&&(_a(es),_a(ts))}var ls=Ea(0);function cs(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var us=[];function ds(){for(var e=0;e<us.length;e++)us[e]._workInProgressVersionPrimary=null;us.length=0}var ps=x.ReactCurrentDispatcher,fs=x.ReactCurrentBatchConfig,ms=0,hs=null,gs=null,ys=null,bs=!1,vs=!1,xs=0,ws=0;function ks(){throw Error(o(321))}function Ss(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ir(e[n],t[n]))return!1;return!0}function Es(e,t,n,r,a,s){if(ms=s,hs=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ps.current=null===e||null===e.memoizedState?ii:li,e=n(r,a),vs){s=0;do{if(vs=!1,xs=0,25<=s)throw Error(o(301));s+=1,ys=gs=null,t.updateQueue=null,ps.current=ci,e=n(r,a)}while(vs)}if(ps.current=si,t=null!==gs&&null!==gs.next,ms=0,ys=gs=hs=null,bs=!1,t)throw Error(o(300));return e}function _s(){var e=0!==xs;return xs=0,e}function Cs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ys?hs.memoizedState=ys=e:ys=ys.next=e,ys}function Ts(){if(null===gs){var e=hs.alternate;e=null!==e?e.memoizedState:null}else e=gs.next;var t=null===ys?hs.memoizedState:ys.next;if(null!==t)ys=t,gs=e;else{if(null===e)throw Error(o(310));e={memoizedState:(gs=e).memoizedState,baseState:gs.baseState,baseQueue:gs.baseQueue,queue:gs.queue,next:null},null===ys?hs.memoizedState=ys=e:ys=ys.next=e}return ys}function Rs(e,t){return"function"==typeof t?t(e):t}function Ls(e){var t=Ts(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=gs,a=r.baseQueue,s=n.pending;if(null!==s){if(null!==a){var i=a.next;a.next=s.next,s.next=i}r.baseQueue=a=s,n.pending=null}if(null!==a){s=a.next,r=r.baseState;var l=i=null,c=null,u=s;do{var d=u.lane;if((ms&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,i=r):c=c.next=p,hs.lanes|=d,Fl|=d}u=u.next}while(null!==u&&u!==s);null===c?i=r:c.next=l,ir(r,t.memoizedState)||(xi=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{s=a.lane,hs.lanes|=s,Fl|=s,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ps(e){var t=Ts(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,s=t.memoizedState;if(null!==a){n.pending=null;var i=a=a.next;do{s=e(s,i.action),i=i.next}while(i!==a);ir(s,t.memoizedState)||(xi=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Ns(){}function As(e,t){var n=hs,r=Ts(),a=t(),s=!ir(r.memoizedState,a);if(s&&(r.memoizedState=a,xi=!0),r=r.queue,Hs(Is.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||null!==ys&&1&ys.memoizedState.tag){if(n.flags|=2048,Ms(9,js.bind(null,n,r,a,t),void 0,null),null===Pl)throw Error(o(349));0!=(30&ms)||Os(n,t,a)}return a}function Os(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=hs.updateQueue)?(t={lastEffect:null,stores:null},hs.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function js(e,t,n,r){t.value=n,t.getSnapshot=r,Bs(t)&&Fs(e)}function Is(e,t,n){return n((function(){Bs(t)&&Fs(e)}))}function Bs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ir(e,n)}catch(r){return!0}}function Fs(e){var t=Po(e,1);null!==t&&rc(t,e,1,-1)}function Ds(e){var t=Cs();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Rs,lastRenderedState:e},t.queue=e,e=e.dispatch=ni.bind(null,hs,e),[t.memoizedState,e]}function Ms(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=hs.updateQueue)?(t={lastEffect:null,stores:null},hs.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function qs(){return Ts().memoizedState}function zs(e,t,n,r){var a=Cs();hs.flags|=e,a.memoizedState=Ms(1|t,n,void 0,void 0===r?null:r)}function $s(e,t,n,r){var a=Ts();r=void 0===r?null:r;var o=void 0;if(null!==gs){var s=gs.memoizedState;if(o=s.destroy,null!==r&&Ss(r,s.deps))return void(a.memoizedState=Ms(t,n,o,r))}hs.flags|=e,a.memoizedState=Ms(1|t,n,o,r)}function Us(e,t){return zs(8390656,8,e,t)}function Hs(e,t){return $s(2048,8,e,t)}function Qs(e,t){return $s(4,2,e,t)}function Zs(e,t){return $s(4,4,e,t)}function Vs(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ws(e,t,n){return n=null!=n?n.concat([e]):null,$s(4,4,Vs.bind(null,t,e),n)}function Gs(){}function Ys(e,t){var n=Ts();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ss(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ks(e,t){var n=Ts();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ss(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xs(e,t,n){return 0==(21&ms)?(e.baseState&&(e.baseState=!1,xi=!0),e.memoizedState=n):(ir(n,t)||(n=ht(),hs.lanes|=n,Fl|=n,e.baseState=!0),t)}function Js(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=fs.transition;fs.transition={};try{e(!1),t()}finally{vt=n,fs.transition=r}}function ei(){return Ts().memoizedState}function ti(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ri(e))ai(t,n);else if(null!==(n=Lo(e,t,n,r))){rc(n,e,r,tc()),oi(n,t,r)}}function ni(e,t,n){var r=nc(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ri(e))ai(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,i=o(s,n);if(a.hasEagerState=!0,a.eagerState=i,ir(i,s)){var l=t.interleaved;return null===l?(a.next=a,Ro(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}}catch(c){}null!==(n=Lo(e,t,a,r))&&(rc(n,e,r,a=tc()),oi(n,t,r))}}function ri(e){var t=e.alternate;return e===hs||null!==t&&t===hs}function ai(e,t){vs=bs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oi(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var si={readContext:Co,useCallback:ks,useContext:ks,useEffect:ks,useImperativeHandle:ks,useInsertionEffect:ks,useLayoutEffect:ks,useMemo:ks,useReducer:ks,useRef:ks,useState:ks,useDebugValue:ks,useDeferredValue:ks,useTransition:ks,useMutableSource:ks,useSyncExternalStore:ks,useId:ks,unstable_isNewReconciler:!1},ii={readContext:Co,useCallback:function(e,t){return Cs().memoizedState=[e,void 0===t?null:t],e},useContext:Co,useEffect:Us,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,zs(4194308,4,Vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zs(4194308,4,e,t)},useInsertionEffect:function(e,t){return zs(4,2,e,t)},useMemo:function(e,t){var n=Cs();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Cs();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ti.bind(null,hs,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Cs().memoizedState=e},useState:Ds,useDebugValue:Gs,useDeferredValue:function(e){return Cs().memoizedState=e},useTransition:function(){var e=Ds(!1),t=e[0];return e=Js.bind(null,e[1]),Cs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=hs,a=Cs();if(ao){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Pl)throw Error(o(349));0!=(30&ms)||Os(r,t,n)}a.memoizedState=n;var s={value:n,getSnapshot:t};return a.queue=s,Us(Is.bind(null,r,s,e),[e]),r.flags|=2048,Ms(9,js.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Cs(),t=Pl.identifierPrefix;if(ao){var n=Ka;t=":"+t+"R"+(n=(Ya&~(1<<32-st(Ya)-1)).toString(32)+n),0<(n=xs++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ws++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},li={readContext:Co,useCallback:Ys,useContext:Co,useEffect:Hs,useImperativeHandle:Ws,useInsertionEffect:Qs,useLayoutEffect:Zs,useMemo:Ks,useReducer:Ls,useRef:qs,useState:function(){return Ls(Rs)},useDebugValue:Gs,useDeferredValue:function(e){return Xs(Ts(),gs.memoizedState,e)},useTransition:function(){return[Ls(Rs)[0],Ts().memoizedState]},useMutableSource:Ns,useSyncExternalStore:As,useId:ei,unstable_isNewReconciler:!1},ci={readContext:Co,useCallback:Ys,useContext:Co,useEffect:Hs,useImperativeHandle:Ws,useInsertionEffect:Qs,useLayoutEffect:Zs,useMemo:Ks,useReducer:Ps,useRef:qs,useState:function(){return Ps(Rs)},useDebugValue:Gs,useDeferredValue:function(e){var t=Ts();return null===gs?t.memoizedState=e:Xs(t,gs.memoizedState,e)},useTransition:function(){return[Ps(Rs)[0],Ts().memoizedState]},useMutableSource:Ns,useSyncExternalStore:As,useId:ei,unstable_isNewReconciler:!1};function ui(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:a,digest:null}}function di(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function pi(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fi="function"==typeof WeakMap?WeakMap:Map;function mi(e,t,n){(n=jo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ql||(Ql=!0,Zl=r),pi(0,t)},n}function hi(e,t,n){(n=jo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){pi(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){pi(0,t),"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gi(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fi;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function yi(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bi(e,t,n,r,a){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=jo(-1,1)).tag=2,Io(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var vi=x.ReactCurrentOwner,xi=!1;function wi(e,t,n,r){t.child=null===e?Xo(t,null,n,r):Ko(t,e.child,n,r)}function ki(e,t,n,r,a){n=n.render;var o=t.ref;return _o(t,a),r=Es(e,t,n,r,o,a),n=_s(),null===e||xi?(ao&&n&&eo(t),t.flags|=1,wi(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Qi(e,t,a))}function Si(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||Oc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ic(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ei(e,t,o,r,a))}if(o=e.child,0==(e.lanes&a)){var s=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(s,r)&&e.ref===t.ref)return Qi(e,t,a)}return t.flags|=1,(e=jc(o,r)).ref=t.ref,e.return=t,t.child=e}function Ei(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(xi=!1,t.pendingProps=r=o,0==(e.lanes&a))return t.lanes=e.lanes,Qi(e,t,a);0!=(131072&e.flags)&&(xi=!0)}}return Ti(e,t,n,r,a)}function _i(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ca(jl,Ol),Ol|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ca(jl,Ol),Ol|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ca(jl,Ol),Ol|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ca(jl,Ol),Ol|=r;return wi(e,t,a,n),t.child}function Ci(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ti(e,t,n,r,a){var o=Aa(n)?Pa:Ra.current;return o=Na(t,o),_o(t,a),n=Es(e,t,n,r,o,a),r=_s(),null===e||xi?(ao&&r&&eo(t),t.flags|=1,wi(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Qi(e,t,a))}function Ri(e,t,n,r,a){if(Aa(n)){var o=!0;Ba(t)}else o=!1;if(_o(t,a),null===t.stateNode)Hi(e,t),Ho(t,n,r),Zo(t,n,r,a),r=!0;else if(null===e){var s=t.stateNode,i=t.memoizedProps;s.props=i;var l=s.context,c=n.contextType;"object"==typeof c&&null!==c?c=Co(c):c=Na(t,c=Aa(n)?Pa:Ra.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof s.getSnapshotBeforeUpdate;d||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(i!==r||l!==c)&&Qo(t,s,r,c),No=!1;var p=t.memoizedState;s.state=p,Do(t,r,s,a),l=t.memoizedState,i!==r||p!==l||La.current||No?("function"==typeof u&&(zo(t,n,u,r),l=t.memoizedState),(i=No||Uo(t,n,i,r,p,l,c))?(d||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=i):("function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Oo(e,t),i=t.memoizedProps,c=t.type===t.elementType?i:yo(t.type,i),s.props=c,d=t.pendingProps,p=s.context,"object"==typeof(l=n.contextType)&&null!==l?l=Co(l):l=Na(t,l=Aa(n)?Pa:Ra.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(i!==d||p!==l)&&Qo(t,s,r,l),No=!1,p=t.memoizedState,s.state=p,Do(t,r,s,a);var m=t.memoizedState;i!==d||p!==m||La.current||No?("function"==typeof f&&(zo(t,n,f,r),m=t.memoizedState),(c=No||Uo(t,n,c,r,p,m,l)||!1)?(u||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,m,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,m,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),s.props=r,s.state=m,s.context=l,r=c):("function"!=typeof s.componentDidUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Li(e,t,n,r,o,a)}function Li(e,t,n,r,a,o){Ci(e,t);var s=0!=(128&t.flags);if(!r&&!s)return a&&Fa(t,n,!1),Qi(e,t,o);r=t.stateNode,vi.current=t;var i=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=Ko(t,e.child,null,o),t.child=Ko(t,null,i,o)):wi(e,t,i,o),t.memoizedState=r.state,a&&Fa(t,n,!0),t.child}function Pi(e){var t=e.stateNode;t.pendingContext?ja(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ja(0,t.context,!1),as(e,t.containerInfo)}function Ni(e,t,n,r,a){return mo(),ho(a),t.flags|=256,wi(e,t,n,r),t.child}var Ai,Oi,ji,Ii,Bi={dehydrated:null,treeContext:null,retryLane:0};function Fi(e){return{baseLanes:e,cachePool:null,transitions:null}}function Di(e,t,n){var r,a=t.pendingProps,s=ls.current,i=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&s)),r?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Ca(ls,1&s),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=a.children,e=a.fallback,i?(a=t.mode,i=t.child,l={mode:"hidden",children:l},0==(1&a)&&null!==i?(i.childLanes=0,i.pendingProps=l):i=Fc(l,a,0,null),e=Bc(e,a,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Fi(n),t.memoizedState=Bi,e):Mi(t,l));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,a,s,i){if(n)return 256&t.flags?(t.flags&=-257,qi(e,t,i,r=di(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,a=t.mode,r=Fc({mode:"visible",children:r.children},a,0,null),(s=Bc(s,a,i,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,0!=(1&t.mode)&&Ko(t,e.child,null,i),t.child.memoizedState=Fi(i),t.memoizedState=Bi,s);if(0==(1&t.mode))return qi(e,t,i,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var l=r.dgst;return r=l,qi(e,t,i,r=di(s=Error(o(419)),r,void 0))}if(l=0!=(i&e.childLanes),xi||l){if(null!==(r=Pl)){switch(i&-i){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!=(a&(r.suspendedLanes|i))?0:a)&&a!==s.retryLane&&(s.retryLane=a,Po(e,a),rc(r,e,a,-1))}return gc(),qi(e,t,i,r=di(Error(o(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Rc.bind(null,e),a._reactRetry=t,null):(e=s.treeContext,ro=ca(a.nextSibling),no=t,ao=!0,oo=null,null!==e&&(Va[Wa++]=Ya,Va[Wa++]=Ka,Va[Wa++]=Ga,Ya=e.id,Ka=e.overflow,Ga=t),t=Mi(t,r.children),t.flags|=4096,t)}(e,t,l,a,r,s,n);if(i){i=a.fallback,l=t.mode,r=(s=e.child).sibling;var c={mode:"hidden",children:a.children};return 0==(1&l)&&t.child!==s?((a=t.child).childLanes=0,a.pendingProps=c,t.deletions=null):(a=jc(s,c)).subtreeFlags=14680064&s.subtreeFlags,null!==r?i=jc(r,i):(i=Bc(i,l,n,null)).flags|=2,i.return=t,a.return=t,a.sibling=i,t.child=a,a=i,i=t.child,l=null===(l=e.child.memoizedState)?Fi(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Bi,a}return e=(i=e.child).sibling,a=jc(i,{mode:"visible",children:a.children}),0==(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function Mi(e,t){return(t=Fc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function qi(e,t,n,r){return null!==r&&ho(r),Ko(t,e.child,null,n),(e=Mi(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zi(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Eo(e.return,t,n)}function $i(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Ui(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(wi(e,t,r.children,n),0!=(2&(r=ls.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zi(e,n,t);else if(19===e.tag)zi(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ca(ls,r),0==(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===cs(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),$i(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===cs(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}$i(t,!0,n,null,o);break;case"together":$i(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hi(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qi(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fl|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=jc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=jc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zi(e,t){if(!ao)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vi(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Wi(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vi(t),null;case 1:case 17:return Aa(t.type)&&Oa(),Vi(t),null;case 3:return r=t.stateNode,os(),_a(La),_a(Ra),ds(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(po(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==oo&&(ic(oo),oo=null))),Oi(e,t),Vi(t),null;case 5:is(t);var a=rs(ns.current);if(n=t.type,null!==e&&null!=t.stateNode)ji(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Vi(t),null}if(e=rs(es.current),po(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[pa]=t,r[fa]=s,e=0!=(1&t.mode),n){case"dialog":Mr("cancel",r),Mr("close",r);break;case"iframe":case"object":case"embed":Mr("load",r);break;case"video":case"audio":for(a=0;a<Ir.length;a++)Mr(Ir[a],r);break;case"source":Mr("error",r);break;case"img":case"image":case"link":Mr("error",r),Mr("load",r);break;case"details":Mr("toggle",r);break;case"input":Y(r,s),Mr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Mr("invalid",r);break;case"textarea":ae(r,s),Mr("invalid",r)}for(var l in be(n,s),a=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?r.textContent!==c&&(!0!==s.suppressHydrationWarning&&Xr(r.textContent,c,e),a=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==s.suppressHydrationWarning&&Xr(r.textContent,c,e),a=["children",""+c]):i.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Mr("scroll",r)}switch(n){case"input":Z(r),J(r,s,!0);break;case"textarea":Z(r),se(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Jr)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ie(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[pa]=t,e[fa]=r,Ai(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(n,r),n){case"dialog":Mr("cancel",e),Mr("close",e),a=r;break;case"iframe":case"object":case"embed":Mr("load",e),a=r;break;case"video":case"audio":for(a=0;a<Ir.length;a++)Mr(Ir[a],e);a=r;break;case"source":Mr("error",e),a=r;break;case"img":case"image":case"link":Mr("error",e),Mr("load",e),a=r;break;case"details":Mr("toggle",e),a=r;break;case"input":Y(e,r),a=G(e,r),Mr("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=F({},r,{value:void 0}),Mr("invalid",e);break;case"textarea":ae(e,r),a=re(e,r),Mr("invalid",e)}for(s in be(n,a),c=a)if(c.hasOwnProperty(s)){var u=c[s];"style"===s?ge(e,u):"dangerouslySetInnerHTML"===s?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===s?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(i.hasOwnProperty(s)?null!=u&&"onScroll"===s&&Mr("scroll",e):null!=u&&v(e,s,u,l))}switch(n){case"input":Z(e),J(e,r,!1);break;case"textarea":Z(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ne(e,!!r.multiple,s,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vi(t),null;case 6:if(e&&null!=t.stateNode)Ii(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=rs(ns.current),rs(es.current),po(t)){if(r=t.stateNode,n=t.memoizedProps,r[pa]=t,(s=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Xr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!=(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[pa]=t,t.stateNode=r}return Vi(t),null;case 13:if(_a(ls),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ao&&null!==ro&&0!=(1&t.mode)&&0==(128&t.flags))fo(),mo(),t.flags|=98560,s=!1;else if(s=po(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(o(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(o(317));s[pa]=t}else mo(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vi(t),s=!1}else null!==oo&&(ic(oo),oo=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ls.current)?0===Il&&(Il=3):gc())),null!==t.updateQueue&&(t.flags|=4),Vi(t),null);case 4:return os(),Oi(e,t),null===e&&$r(t.stateNode.containerInfo),Vi(t),null;case 10:return So(t.type._context),Vi(t),null;case 19:if(_a(ls),null===(s=t.memoizedState))return Vi(t),null;if(r=0!=(128&t.flags),null===(l=s.rendering))if(r)Zi(s,!1);else{if(0!==Il||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=cs(e))){for(t.flags|=128,Zi(s,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ca(ls,1&ls.current|2),t.child}e=e.sibling}null!==s.tail&&Ke()>Ul&&(t.flags|=128,r=!0,Zi(s,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=cs(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Zi(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ao)return Vi(t),null}else 2*Ke()-s.renderingStartTime>Ul&&1073741824!==n&&(t.flags|=128,r=!0,Zi(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ke(),t.sibling=null,n=ls.current,Ca(ls,r?1&n|2:1&n),t):(Vi(t),null);case 22:case 23:return pc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Ol)&&(Vi(t),6&t.subtreeFlags&&(t.flags|=8192)):Vi(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Gi(e,t){switch(to(t),t.tag){case 1:return Aa(t.type)&&Oa(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return os(),_a(La),_a(Ra),ds(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return is(t),null;case 13:if(_a(ls),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));mo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _a(ls),null;case 4:return os(),null;case 10:return So(t.type._context),null;case 22:case 23:return pc(),null;default:return null}}Ai=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Oi=function(){},ji=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,rs(es.current);var o,s=null;switch(n){case"input":a=G(e,a),r=G(e,r),s=[];break;case"select":a=F({},a,{value:void 0}),r=F({},r,{value:void 0}),s=[];break;case"textarea":a=re(e,a),r=re(e,r),s=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(u in be(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u){var l=a[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(i.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(s||(s=[]),s.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(i.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Mr("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},Ii=function(e,t,n,r){n!==r&&(t.flags|=4)};var Yi=!1,Ki=!1,Xi="function"==typeof WeakSet?WeakSet:Set,Ji=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){_c(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){_c(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&tl(t,n,o)}a=a.next}while(a!==r)}}function al(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function sl(e){var t=e.alternate;null!==t&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pa],delete t[fa],delete t[ha],delete t[ga],delete t[ya])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function il(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||il(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var dl=null,pl=!1;function fl(e,t,n){for(n=n.child;null!==n;)ml(e,t,n),n=n.sibling}function ml(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(at,n)}catch(i){}switch(n.tag){case 5:Ki||el(n,t);case 6:var r=dl,a=pl;dl=null,fl(e,t,n),pl=a,null!==(dl=r)&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?la(e.parentNode,n):1===e.nodeType&&la(e,n),$t(e)):la(dl,n.stateNode));break;case 4:r=dl,a=pl,dl=n.stateNode.containerInfo,pl=!0,fl(e,t,n),dl=r,pl=a;break;case 0:case 11:case 14:case 15:if(!Ki&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var o=a,s=o.destroy;o=o.tag,void 0!==s&&(0!=(2&o)||0!=(4&o))&&tl(n,t,s),a=a.next}while(a!==r)}fl(e,t,n);break;case 1:if(!Ki&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){_c(n,t,i)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ki=(r=Ki)||null!==n.memoizedState,fl(e,t,n),Ki=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xi),t.forEach((function(t){var r=Lc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var s=e,i=t,l=i;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,pl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,pl=!0;break e}l=l.return}if(null===dl)throw Error(o(160));ml(s,i,a),dl=null,pl=!1;var c=a.alternate;null!==c&&(c.return=null),a.return=null}catch(u){_c(a,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)yl(t,e),t=t.sibling}function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),bl(e),4&r){try{rl(3,e,e.return),al(3,e)}catch(g){_c(e,e.return,g)}try{rl(5,e,e.return)}catch(g){_c(e,e.return,g)}}break;case 1:gl(t,e),bl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(gl(t,e),bl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var a=e.stateNode;try{pe(a,"")}catch(g){_c(e,e.return,g)}}if(4&r&&null!=(a=e.stateNode)){var s=e.memoizedProps,i=null!==n?n.memoizedProps:s,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===s.type&&null!=s.name&&K(a,s),ve(l,i);var u=ve(l,s);for(i=0;i<c.length;i+=2){var d=c[i],p=c[i+1];"style"===d?ge(a,p):"dangerouslySetInnerHTML"===d?de(a,p):"children"===d?pe(a,p):v(a,d,p,u)}switch(l){case"input":X(a,s);break;case"textarea":oe(a,s);break;case"select":var f=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!s.multiple;var m=s.value;null!=m?ne(a,!!s.multiple,m,!1):f!==!!s.multiple&&(null!=s.defaultValue?ne(a,!!s.multiple,s.defaultValue,!0):ne(a,!!s.multiple,s.multiple?[]:"",!1))}a[fa]=s}catch(g){_c(e,e.return,g)}}break;case 6:if(gl(t,e),bl(e),4&r){if(null===e.stateNode)throw Error(o(162));a=e.stateNode,s=e.memoizedProps;try{a.nodeValue=s}catch(g){_c(e,e.return,g)}}break;case 3:if(gl(t,e),bl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{$t(t.containerInfo)}catch(g){_c(e,e.return,g)}break;case 4:default:gl(t,e),bl(e);break;case 13:gl(t,e),bl(e),8192&(a=e.child).flags&&(s=null!==a.memoizedState,a.stateNode.isHidden=s,!s||null!==a.alternate&&null!==a.alternate.memoizedState||($l=Ke())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ki=(u=Ki)||d,gl(t,e),Ki=u):gl(t,e),bl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Ji=e,d=e.child;null!==d;){for(p=Ji=d;null!==Ji;){switch(m=(f=Ji).child,f.tag){case 0:case 11:case 14:case 15:rl(4,f,f.return);break;case 1:el(f,f.return);var h=f.stateNode;if("function"==typeof h.componentWillUnmount){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(g){_c(r,n,g)}}break;case 5:el(f,f.return);break;case 22:if(null!==f.memoizedState){kl(p);continue}}null!==m?(m.return=f,Ji=m):kl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{a=p.stateNode,u?"function"==typeof(s=a.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=p.stateNode,i=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=he("display",i))}catch(g){_c(e,e.return,g)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(g){_c(e,e.return,g)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:gl(t,e),bl(e),4&r&&hl(e);case 21:}}function bl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(il(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(pe(a,""),r.flags&=-33),ul(e,ll(e),a);break;case 3:case 4:var s=r.stateNode.containerInfo;cl(e,ll(e),s);break;default:throw Error(o(161))}}catch(i){_c(e,e.return,i)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Ji=e,xl(e,t,n)}function xl(e,t,n){for(var r=0!=(1&e.mode);null!==Ji;){var a=Ji,o=a.child;if(22===a.tag&&r){var s=null!==a.memoizedState||Yi;if(!s){var i=a.alternate,l=null!==i&&null!==i.memoizedState||Ki;i=Yi;var c=Ki;if(Yi=s,(Ki=l)&&!c)for(Ji=a;null!==Ji;)l=(s=Ji).child,22===s.tag&&null!==s.memoizedState?Sl(a):null!==l?(l.return=s,Ji=l):Sl(a);for(;null!==o;)Ji=o,xl(o,t,n),o=o.sibling;Ji=a,Yi=i,Ki=c}wl(e)}else 0!=(8772&a.subtreeFlags)&&null!==o?(o.return=a,Ji=o):wl(e)}}function wl(e){for(;null!==Ji;){var t=Ji;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ki||al(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ki)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:yo(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Mo(t,s,r);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Mo(t,i,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&$t(p)}}}break;default:throw Error(o(163))}Ki||512&t.flags&&ol(t)}catch(f){_c(t,t.return,f)}}if(t===e){Ji=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ji=n;break}Ji=t.return}}function kl(e){for(;null!==Ji;){var t=Ji;if(t===e){Ji=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ji=n;break}Ji=t.return}}function Sl(e){for(;null!==Ji;){var t=Ji;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{al(4,t)}catch(l){_c(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(l){_c(t,a,l)}}var o=t.return;try{ol(t)}catch(l){_c(t,o,l)}break;case 5:var s=t.return;try{ol(t)}catch(l){_c(t,s,l)}}}catch(l){_c(t,t.return,l)}if(t===e){Ji=null;break}var i=t.sibling;if(null!==i){i.return=t.return,Ji=i;break}Ji=t.return}}var El,_l=Math.ceil,Cl=x.ReactCurrentDispatcher,Tl=x.ReactCurrentOwner,Rl=x.ReactCurrentBatchConfig,Ll=0,Pl=null,Nl=null,Al=0,Ol=0,jl=Ea(0),Il=0,Bl=null,Fl=0,Dl=0,Ml=0,ql=null,zl=null,$l=0,Ul=1/0,Hl=null,Ql=!1,Zl=null,Vl=null,Wl=!1,Gl=null,Yl=0,Kl=0,Xl=null,Jl=-1,ec=0;function tc(){return 0!=(6&Ll)?Ke():-1!==Jl?Jl:Jl=Ke()}function nc(e){return 0==(1&e.mode)?1:0!=(2&Ll)&&0!==Al?Al&-Al:null!==go.transition?(0===ec&&(ec=ht()),ec):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function rc(e,t,n,r){if(50<Kl)throw Kl=0,Xl=null,Error(o(185));yt(e,n,r),0!=(2&Ll)&&e===Pl||(e===Pl&&(0==(2&Ll)&&(Dl|=n),4===Il&&lc(e,Al)),ac(e,r),1===n&&0===Ll&&0==(1&t.mode)&&(Ul=Ke()+500,Ma&&$a()))}function ac(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-st(o),i=1<<s,l=a[s];-1===l?0!=(i&n)&&0==(i&r)||(a[s]=ft(i,t)):l<=t&&(e.expiredLanes|=i),o&=~i}}(e,t);var r=pt(e,e===Pl?Al:0);if(0===r)null!==n&&We(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&We(n),1===t)0===e.tag?function(e){Ma=!0,za(e)}(cc.bind(null,e)):za(cc.bind(null,e)),sa((function(){0==(6&Ll)&&$a()})),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Pc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Jl=-1,ec=0,0!=(6&Ll))throw Error(o(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=pt(e,e===Pl?Al:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=yc(e,r);else{t=r;var a=Ll;Ll|=2;var s=hc();for(Pl===e&&Al===t||(Hl=null,Ul=Ke()+500,fc(e,t));;)try{vc();break}catch(l){mc(e,l)}ko(),Cl.current=s,Ll=a,null!==Nl?t=0:(Pl=null,Al=0,t=Il)}if(0!==t){if(2===t&&(0!==(a=mt(e))&&(r=a,t=sc(e,a))),1===t)throw n=Bl,fc(e,0),lc(e,r),ac(e,Ke()),n;if(6===t)lc(e,r);else{if(a=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!ir(o(),a))return!1}catch(i){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)&&(2===(t=yc(e,r))&&(0!==(s=mt(e))&&(r=s,t=sc(e,s))),1===t))throw n=Bl,fc(e,0),lc(e,r),ac(e,Ke()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:kc(e,zl,Hl);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=$l+500-Ke())){if(0!==pt(e,0))break;if(((a=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ra(kc.bind(null,e,zl,Hl),t);break}kc(e,zl,Hl);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var i=31-st(r);s=1<<i,(i=t[i])>a&&(a=i),r&=~s}if(r=a,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_l(r/1960))-r)){e.timeoutHandle=ra(kc.bind(null,e,zl,Hl),r);break}kc(e,zl,Hl);break;default:throw Error(o(329))}}}return ac(e,Ke()),e.callbackNode===n?oc.bind(null,e):null}function sc(e,t){var n=ql;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=yc(e,t))&&(t=zl,zl=n,null!==t&&ic(t)),e}function ic(e){null===zl?zl=e:zl.push.apply(zl,e)}function lc(e,t){for(t&=~Ml,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!=(6&Ll))throw Error(o(327));Sc();var t=pt(e,0);if(0==(1&t))return ac(e,Ke()),null;var n=yc(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=sc(e,r))}if(1===n)throw n=Bl,fc(e,0),lc(e,t),ac(e,Ke()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kc(e,zl,Hl),ac(e,Ke()),null}function uc(e,t){var n=Ll;Ll|=1;try{return e(t)}finally{0===(Ll=n)&&(Ul=Ke()+500,Ma&&$a())}}function dc(e){null!==Gl&&0===Gl.tag&&0==(6&Ll)&&Sc();var t=Ll;Ll|=1;var n=Rl.transition,r=vt;try{if(Rl.transition=null,vt=1,e)return e()}finally{vt=r,Rl.transition=n,0==(6&(Ll=t))&&$a()}}function pc(){Ol=jl.current,_a(jl)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==Nl)for(n=Nl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Oa();break;case 3:os(),_a(La),_a(Ra),ds();break;case 5:is(r);break;case 4:os();break;case 13:case 19:_a(ls);break;case 10:So(r.type._context);break;case 22:case 23:pc()}n=n.return}if(Pl=e,Nl=e=jc(e.current,null),Al=Ol=t,Il=0,Bl=null,Ml=Dl=Fl=0,zl=ql=null,null!==To){for(t=0;t<To.length;t++)if(null!==(r=(n=To[t]).interleaved)){n.interleaved=null;var a=r.next,o=n.pending;if(null!==o){var s=o.next;o.next=a,r.next=s}n.pending=r}To=null}return e}function mc(e,t){for(;;){var n=Nl;try{if(ko(),ps.current=si,bs){for(var r=hs.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}bs=!1}if(ms=0,ys=gs=hs=null,vs=!1,xs=0,Tl.current=null,null===n||null===n.return){Il=1,Bl=t,Nl=null;break}e:{var s=e,i=n.return,l=n,c=t;if(t=Al,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(0==(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=yi(i);if(null!==m){m.flags&=-257,bi(m,i,l,0,t),1&m.mode&&gi(s,u,t),c=u;var h=(t=m).updateQueue;if(null===h){var g=new Set;g.add(c),t.updateQueue=g}else h.add(c);break e}if(0==(1&t)){gi(s,u,t),gc();break e}c=Error(o(426))}else if(ao&&1&l.mode){var y=yi(i);if(null!==y){0==(65536&y.flags)&&(y.flags|=256),bi(y,i,l,0,t),ho(ui(c,l));break e}}s=c=ui(c,l),4!==Il&&(Il=2),null===ql?ql=[s]:ql.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,Fo(s,mi(0,c,t));break e;case 1:l=c;var b=s.type,v=s.stateNode;if(0==(128&s.flags)&&("function"==typeof b.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===Vl||!Vl.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t,Fo(s,hi(s,l,t));break e}}s=s.return}while(null!==s)}wc(n)}catch(x){t=x,Nl===n&&null!==n&&(Nl=n=n.return);continue}break}}function hc(){var e=Cl.current;return Cl.current=si,null===e?si:e}function gc(){0!==Il&&3!==Il&&2!==Il||(Il=4),null===Pl||0==(268435455&Fl)&&0==(268435455&Dl)||lc(Pl,Al)}function yc(e,t){var n=Ll;Ll|=2;var r=hc();for(Pl===e&&Al===t||(Hl=null,fc(e,t));;)try{bc();break}catch(a){mc(e,a)}if(ko(),Ll=n,Cl.current=r,null!==Nl)throw Error(o(261));return Pl=null,Al=0,Il}function bc(){for(;null!==Nl;)xc(Nl)}function vc(){for(;null!==Nl&&!Ge();)xc(Nl)}function xc(e){var t=El(e.alternate,e,Ol);e.memoizedProps=e.pendingProps,null===t?wc(e):Nl=t,Tl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Wi(n,t,Ol)))return void(Nl=n)}else{if(null!==(n=Gi(n,t)))return n.flags&=32767,void(Nl=n);if(null===e)return Il=6,void(Nl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Nl=t);Nl=t=e}while(null!==t);0===Il&&(Il=5)}function kc(e,t,n){var r=vt,a=Rl.transition;try{Rl.transition=null,vt=1,function(e,t,n,r){do{Sc()}while(null!==Gl);if(0!=(6&Ll))throw Error(o(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-st(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(e,s),e===Pl&&(Nl=Pl=null,Al=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Wl||(Wl=!0,Pc(tt,(function(){return Sc(),null}))),s=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||s){s=Rl.transition,Rl.transition=null;var i=vt;vt=1;var l=Ll;Ll|=4,Tl.current=null,function(e,t){if(ea=Ht,fr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(w){n=null;break e}var i=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var m;p!==n||0!==a&&3!==p.nodeType||(l=i+a),p!==s||0!==r&&3!==p.nodeType||(c=i+r),3===p.nodeType&&(i+=p.nodeValue.length),null!==(m=p.firstChild);)f=p,p=m;for(;;){if(p===e)break t;if(f===n&&++u===a&&(l=i),f===s&&++d===r&&(c=i),null!==(m=p.nextSibling))break;f=(p=f).parentNode}p=m}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ta={focusedElem:e,selectionRange:n},Ht=!1,Ji=t;null!==Ji;)if(e=(t=Ji).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Ji=e;else for(;null!==Ji;){t=Ji;try{var h=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var g=h.memoizedProps,y=h.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:yo(t.type,g),y);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(o(163))}}catch(w){_c(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Ji=e;break}Ji=t.return}h=nl,nl=!1}(e,n),yl(n,e),mr(ta),Ht=!!ea,ta=ea=null,e.current=n,vl(n,e,a),Ye(),Ll=l,vt=i,Rl.transition=s}else e.current=n;if(Wl&&(Wl=!1,Gl=e,Yl=a),s=e.pendingLanes,0===s&&(Vl=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(at,e,void 0,128==(128&e.current.flags))}catch(t){}}(n.stateNode),ac(e,Ke()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(Ql)throw Ql=!1,e=Zl,Zl=null,e;0!=(1&Yl)&&0!==e.tag&&Sc(),s=e.pendingLanes,0!=(1&s)?e===Xl?Kl++:(Kl=0,Xl=e):Kl=0,$a()}(e,t,n,r)}finally{Rl.transition=a,vt=r}return null}function Sc(){if(null!==Gl){var e=xt(Yl),t=Rl.transition,n=vt;try{if(Rl.transition=null,vt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Yl=0,0!=(6&Ll))throw Error(o(331));var a=Ll;for(Ll|=4,Ji=e.current;null!==Ji;){var s=Ji,i=s.child;if(0!=(16&Ji.flags)){var l=s.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Ji=u;null!==Ji;){var d=Ji;switch(d.tag){case 0:case 11:case 15:rl(8,d,s)}var p=d.child;if(null!==p)p.return=d,Ji=p;else for(;null!==Ji;){var f=(d=Ji).sibling,m=d.return;if(sl(d),d===u){Ji=null;break}if(null!==f){f.return=m,Ji=f;break}Ji=m}}}var h=s.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Ji=s}}if(0!=(2064&s.subtreeFlags)&&null!==i)i.return=s,Ji=i;else e:for(;null!==Ji;){if(0!=(2048&(s=Ji).flags))switch(s.tag){case 0:case 11:case 15:rl(9,s,s.return)}var b=s.sibling;if(null!==b){b.return=s.return,Ji=b;break e}Ji=s.return}}var v=e.current;for(Ji=v;null!==Ji;){var x=(i=Ji).child;if(0!=(2064&i.subtreeFlags)&&null!==x)x.return=i,Ji=x;else e:for(i=v;null!==Ji;){if(0!=(2048&(l=Ji).flags))try{switch(l.tag){case 0:case 11:case 15:al(9,l)}}catch(k){_c(l,l.return,k)}if(l===i){Ji=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Ji=w;break e}Ji=l.return}}if(Ll=a,$a(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(at,e)}catch(k){}r=!0}return r}finally{vt=n,Rl.transition=t}}return!1}function Ec(e,t,n){e=Io(e,t=mi(0,t=ui(n,t),1),1),t=tc(),null!==e&&(yt(e,1,t),ac(e,t))}function _c(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){t=Io(t,e=hi(t,e=ui(n,e),1),1),e=tc(),null!==t&&(yt(t,1,e),ac(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Pl===e&&(Al&n)===n&&(4===Il||3===Il&&(130023424&Al)===Al&&500>Ke()-$l?fc(e,0):Ml|=n),ac(e,t)}function Tc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=tc();null!==(e=Po(e,t))&&(yt(e,t,n),ac(e,n))}function Rc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function Lc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Tc(e,n)}function Pc(e,t){return Ve(e,t)}function Nc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ac(e,t,n,r){return new Nc(e,t,n,r)}function Oc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function jc(e,t){var n=e.alternate;return null===n?((n=Ac(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ic(e,t,n,r,a,s){var i=2;if(r=e,"function"==typeof e)Oc(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case S:return Bc(n.children,a,s,t);case E:i=8,a|=8;break;case _:return(e=Ac(12,n,t,2|a)).elementType=_,e.lanes=s,e;case L:return(e=Ac(13,n,t,a)).elementType=L,e.lanes=s,e;case P:return(e=Ac(19,n,t,a)).elementType=P,e.lanes=s,e;case O:return Fc(n,a,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:i=10;break e;case T:i=9;break e;case R:i=11;break e;case N:i=14;break e;case A:i=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ac(i,n,t,a)).elementType=e,t.type=r,t.lanes=s,t}function Bc(e,t,n,r){return(e=Ac(7,e,r,t)).lanes=n,e}function Fc(e,t,n,r){return(e=Ac(22,e,r,t)).elementType=O,e.lanes=n,e.stateNode={isHidden:!1},e}function Dc(e,t,n){return(e=Ac(6,e,null,t)).lanes=n,e}function Mc(e,t,n){return(t=Ac(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qc(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function zc(e,t,n,r,a,o,s,i,l){return e=new qc(e,t,n,i,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ac(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ao(o),e}function $c(e){if(!e)return Ta;e:{if($e(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Aa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Aa(n))return Ia(e,n,t)}return t}function Uc(e,t,n,r,a,o,s,i,l){return(e=zc(n,r,!0,e,0,o,0,i,l)).context=$c(null),n=e.current,(o=jo(r=tc(),a=nc(n))).callback=null!=t?t:null,Io(n,o,a),e.current.lanes=a,yt(e,a,r),ac(e,r),e}function Hc(e,t,n,r){var a=t.current,o=tc(),s=nc(a);return n=$c(n),null===t.context?t.context=n:t.pendingContext=n,(t=jo(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Io(a,t,s))&&(rc(e,a,s,o),Bo(e,a,s)),s}function Qc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){Zc(e,t),(e=e.alternate)&&Zc(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||La.current)xi=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return xi=!1,function(e,t,n){switch(t.tag){case 3:Pi(t),mo();break;case 5:ss(t);break;case 1:Aa(t.type)&&Ba(t);break;case 4:as(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Ca(bo,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ca(ls,1&ls.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Di(e,t,n):(Ca(ls,1&ls.current),null!==(e=Qi(e,t,n))?e.sibling:null);Ca(ls,1&ls.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Ui(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ca(ls,ls.current),r)break;return null;case 22:case 23:return t.lanes=0,_i(e,t,n)}return Qi(e,t,n)}(e,t,n);xi=0!=(131072&e.flags)}else xi=!1,ao&&0!=(1048576&t.flags)&&Ja(t,Za,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hi(e,t),e=t.pendingProps;var a=Na(t,Ra.current);_o(t,n),a=Es(null,t,r,e,a,n);var s=_s();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Aa(r)?(s=!0,Ba(t)):s=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Ao(t),a.updater=$o,t.stateNode=a,a._reactInternals=t,Zo(t,r,e,n),t=Li(null,t,r,!0,s,n)):(t.tag=0,ao&&s&&eo(t),wi(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hi(e,t),e=t.pendingProps,r=(a=r._init)(r._payload),t.type=r,a=t.tag=function(e){if("function"==typeof e)return Oc(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===N)return 14}return 2}(r),e=yo(r,e),a){case 0:t=Ti(null,t,r,e,n);break e;case 1:t=Ri(null,t,r,e,n);break e;case 11:t=ki(null,t,r,e,n);break e;case 14:t=Si(null,t,r,yo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,Ti(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 1:return r=t.type,a=t.pendingProps,Ri(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 3:e:{if(Pi(t),null===e)throw Error(o(387));r=t.pendingProps,a=(s=t.memoizedState).element,Oo(e,t),Do(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Ni(e,t,r,n,a=ui(Error(o(423)),t));break e}if(r!==a){t=Ni(e,t,r,n,a=ui(Error(o(424)),t));break e}for(ro=ca(t.stateNode.containerInfo.firstChild),no=t,ao=!0,oo=null,n=Xo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(mo(),r===a){t=Qi(e,t,n);break e}wi(e,t,r,n)}t=t.child}return t;case 5:return ss(t),null===e&&co(t),r=t.type,a=t.pendingProps,s=null!==e?e.memoizedProps:null,i=a.children,na(r,a)?i=null:null!==s&&na(r,s)&&(t.flags|=32),Ci(e,t),wi(e,t,i,n),t.child;case 6:return null===e&&co(t),null;case 13:return Di(e,t,n);case 4:return as(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ko(t,null,r,n):wi(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,ki(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 7:return wi(e,t,t.pendingProps,n),t.child;case 8:case 12:return wi(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,s=t.memoizedProps,i=a.value,Ca(bo,r._currentValue),r._currentValue=i,null!==s)if(ir(s.value,i)){if(s.children===a.children&&!La.current){t=Qi(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){i=s.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===s.tag){(c=jo(-1,n&-n)).tag=2;var u=s.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),Eo(s.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===s.tag)i=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(i=s.return))throw Error(o(341));i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),Eo(i,n,t),i=s.sibling}else i=s.child;if(null!==i)i.return=s;else for(i=s;null!==i;){if(i===t){i=null;break}if(null!==(s=i.sibling)){s.return=i.return,i=s;break}i=i.return}s=i}wi(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,_o(t,n),r=r(a=Co(a)),t.flags|=1,wi(e,t,r,n),t.child;case 14:return a=yo(r=t.type,t.pendingProps),Si(e,t,r,a=yo(r.type,a),n);case 15:return Ei(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:yo(r,a),Hi(e,t),t.tag=1,Aa(r)?(e=!0,Ba(t)):e=!1,_o(t,n),Ho(t,r,a),Zo(t,r,a,n),Li(null,t,r,!0,e,n);case 19:return Ui(e,t,n);case 22:return _i(e,t,n)}throw Error(o(156,t.tag))};var Wc="function"==typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Kc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function eu(e,t,n,r,a){var o=n._reactRootContainer;if(o){var s=o;if("function"==typeof a){var i=a;a=function(){var e=Qc(s);i.call(e)}}Hc(t,s,e,a)}else s=function(e,t,n,r,a){if(a){if("function"==typeof r){var o=r;r=function(){var e=Qc(s);o.call(e)}}var s=Uc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=s,e[ma]=s.current,$r(8===e.nodeType?e.parentNode:e),dc(),s}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var i=r;r=function(){var e=Qc(l);i.call(e)}}var l=zc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[ma]=l.current,$r(8===e.nodeType?e.parentNode:e),dc((function(){Hc(t,l,n,r)})),l}(n,t,e,a,r);return Qc(s)}Yc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Hc(e,t,null,null)},Yc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Hc(null,e,null,null)})),t[ma]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&Ft(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),ac(t,Ke()),0==(6&Ll)&&(Ul=Ke()+500,$a()))}break;case 13:dc((function(){var t=Po(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Vc(e,1)}},kt=function(e){if(13===e.tag){var t=Po(e,134217728);if(null!==t)rc(t,e,134217728,tc());Vc(e,134217728)}},St=function(e){if(13===e.tag){var t=nc(e),n=Po(e,t);if(null!==n)rc(n,e,t,tc());Vc(e,t)}},Et=function(){return vt},_t=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},ke=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=wa(r);if(!a)throw Error(o(90));V(r),X(r,a)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Re=uc,Le=dc;var tu={usingClientEntryPoint:!1,Events:[va,xa,wa,Ce,Te,uc]},nu={findFiberByHostInstance:ba,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qe(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!au.isDisabled&&au.supportsFiber)try{at=au.inject(ru),ot=au}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Kc(e))throw Error(o(299));var n=!1,r="",a=Wc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=zc(e,1,!1,null,0,n,0,r,a),e[ma]=t.current,$r(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Qe(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(o(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Kc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,a=!1,s="",i=Wc;if(null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=Uc(t,null,e,1,null!=n?n:null,a,0,s,i),e[ma]=t.current,$r(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Yc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(o(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(o(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[ma]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},745:(e,t,n)=>{"use strict";var r=n(3935);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},3935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4448)},9590:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var i,l,c,u;if(Array.isArray(e)){if((i=e.length)!=s.length)return!1;for(l=i;0!=l--;)if(!o(e[l],s[l]))return!1;return!0}if(n&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!s.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!o(l.value[1],s.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!s.has(l.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((i=e.length)!=s.length)return!1;for(l=i;0!=l--;)if(e[l]!==s[l])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof s.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof s.toString)return e.toString()===s.toString();if((i=(c=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(l=i;0!=l--;)if(!Object.prototype.hasOwnProperty.call(s,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=i;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!o(e[c[l]],s[c[l]]))return!1;return!0}return e!=e&&s!=s}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},405:(e,t,n)=>{"use strict";n.d(t,{B6:()=>Q,ql:()=>J});var r=n(7294),a=n(5697),o=n.n(a),s=n(9590),i=n.n(s),l=n(1143),c=n.n(l),u=n(6774),d=n.n(u);function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function h(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},y={rel:["amphtml","canonical","alternate"]},b={type:["application/ld+json"]},v={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},x=Object.keys(g).map((function(e){return g[e]})),w={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},k=Object.keys(w).reduce((function(e,t){return e[w[t]]=t,e}),{}),S=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},E=function(e){var t=S(e,g.TITLE),n=S(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=S(e,"defaultTitle");return t||r||void 0},_=function(e){return S(e,"onChangeClientState")||function(){}},C=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return p({},e,t)}),{})},T=function(e,t){return t.filter((function(e){return void 0!==e[g.BASE]})).map((function(e){return e[g.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a<r.length;a+=1){var o=r[a].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},R=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var a={};n.filter((function(e){for(var n,o=Object.keys(e),s=0;s<o.length;s+=1){var i=o[s],l=i.toLowerCase();-1===t.indexOf(l)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===l&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(i)||"innerHTML"!==i&&"cssText"!==i&&"itemprop"!==i||(n=i)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),a[n]||(a[n]={}),!r[n][c]&&(a[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(a),s=0;s<o.length;s+=1){var i=o[s],l=p({},r[i],a[i]);r[i]=l}return e}),[]).reverse()},L=function(e,t){if(Array.isArray(e)&&e.length)for(var n=0;n<e.length;n+=1)if(e[n][t])return!0;return!1},P=function(e){return Array.isArray(e)?e.join(""):e},N=function(e,t){return Array.isArray(e)?e.reduce((function(e,n){return function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1}(n,t)?e.priority.push(n):e.default.push(n),e}),{priority:[],default:[]}):{default:e}},A=function(e,t){var n;return p({},e,((n={})[t]=void 0,n))},O=[g.NOSCRIPT,g.SCRIPT,g.STYLE],j=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},I=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},B=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[w[n]||n]=e[n],t}),t)},F=function(e,t){return t.map((function(t,n){var a,o=((a={key:n})["data-rh"]=!0,a);return Object.keys(t).forEach((function(e){var n=w[e]||e;"innerHTML"===n||"cssText"===n?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[n]=t[e]})),r.createElement(e,o)}))},D=function(e,t,n){switch(e){case g.TITLE:return{toComponent:function(){return n=t.titleAttributes,(a={key:e=t.title})["data-rh"]=!0,o=B(n,a),[r.createElement(g.TITLE,o,e)];var e,n,a,o},toString:function(){return function(e,t,n,r){var a=I(n),o=P(t);return a?"<"+e+' data-rh="true" '+a+">"+j(o,r)+"</"+e+">":"<"+e+' data-rh="true">'+j(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return B(t)},toString:function(){return I(t)}};default:return{toComponent:function(){return F(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var a=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var a=void 0===r[t]?t:t+'="'+j(r[t],n)+'"';return e?e+" "+a:a}),""),o=r.innerHTML||r.cssText||"",s=-1===O.indexOf(e);return t+"<"+e+' data-rh="true" '+a+(s?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}},M=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,a=e.htmlAttributes,o=e.noscriptTags,s=e.styleTags,i=e.title,l=void 0===i?"":i,c=e.titleAttributes,u=e.linkTags,d=e.metaTags,p=e.scriptTags,f={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var m=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,a=N(e.metaTags,v),o=N(t,y),s=N(n,b);return{priorityMethods:{toComponent:function(){return[].concat(F(g.META,a.priority),F(g.LINK,o.priority),F(g.SCRIPT,s.priority))},toString:function(){return D(g.META,a.priority,r)+" "+D(g.LINK,o.priority,r)+" "+D(g.SCRIPT,s.priority,r)}},metaTags:a.default,linkTags:o.default,scriptTags:s.default}}(e);f=m.priorityMethods,u=m.linkTags,d=m.metaTags,p=m.scriptTags}return{priority:f,base:D(g.BASE,t,r),bodyAttributes:D("bodyAttributes",n,r),htmlAttributes:D("htmlAttributes",a,r),link:D(g.LINK,u,r),meta:D(g.META,d,r),noscript:D(g.NOSCRIPT,o,r),script:D(g.SCRIPT,p,r),style:D(g.STYLE,s,r),title:D(g.TITLE,{title:l,titleAttributes:c},r)}},q=[],z=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?q:n.instances},add:function(e){(n.canUseDOM?q:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?q:n.instances).indexOf(e);(n.canUseDOM?q:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=M({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},$=r.createContext({}),U=o().shape({setHelmet:o().func,helmetInstances:o().shape({get:o().func,add:o().func,remove:o().func})}),H="undefined"!=typeof document,Q=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new z(r.props.context,t.canUseDOM),r}return f(t,e),t.prototype.render=function(){return r.createElement($.Provider,{value:this.helmetData.value},this.props.children)},t}(r.Component);Q.canUseDOM=H,Q.propTypes={context:o().shape({helmet:o().shape()}),children:o().node.isRequired},Q.defaultProps={context:{}},Q.displayName="HelmetProvider";var Z=function(e,t){var n,r=document.head||document.querySelector(g.HEAD),a=r.querySelectorAll(e+"[data-rh]"),o=[].slice.call(a),s=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&("innerHTML"===a?r.innerHTML=t.innerHTML:"cssText"===a?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(a,void 0===t[a]?"":t[a]));r.setAttribute("data-rh","true"),o.some((function(e,t){return n=t,r.isEqualNode(e)}))?o.splice(n,1):s.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),s.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:s}},V=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),a=r?r.split(","):[],o=[].concat(a),s=Object.keys(t),i=0;i<s.length;i+=1){var l=s[i],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===a.indexOf(l)&&a.push(l);var u=o.indexOf(l);-1!==u&&o.splice(u,1)}for(var d=o.length-1;d>=0;d-=1)n.removeAttribute(o[d]);a.length===o.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==s.join(",")&&n.setAttribute("data-rh",s.join(","))}},W=function(e,t){var n=e.baseTag,r=e.htmlAttributes,a=e.linkTags,o=e.metaTags,s=e.noscriptTags,i=e.onChangeClientState,l=e.scriptTags,c=e.styleTags,u=e.title,d=e.titleAttributes;V(g.BODY,e.bodyAttributes),V(g.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=P(e)),V(g.TITLE,t)}(u,d);var p={baseTag:Z(g.BASE,n),linkTags:Z(g.LINK,a),metaTags:Z(g.META,o),noscriptTags:Z(g.NOSCRIPT,s),scriptTags:Z(g.SCRIPT,l),styleTags:Z(g.STYLE,c)},f={},m={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(f[e]=n),r.length&&(m[e]=p[e].oldTags)})),t&&t(),i(e,f,m)},G=null,Y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).rendered=!1,t}f(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!d()(e,this.props)},n.componentDidUpdate=function(){this.emitChange()},n.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},n.emitChange=function(){var e,t,n=this.props.context,r=n.setHelmet,a=null,o=(e=n.helmetInstances.get().map((function(e){var t=p({},e.props);return delete t.context,t})),{baseTag:T(["href"],e),bodyAttributes:C("bodyAttributes",e),defer:S(e,"defer"),encode:S(e,"encodeSpecialCharacters"),htmlAttributes:C("htmlAttributes",e),linkTags:R(g.LINK,["rel","href"],e),metaTags:R(g.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:R(g.NOSCRIPT,["innerHTML"],e),onChangeClientState:_(e),scriptTags:R(g.SCRIPT,["src","innerHTML"],e),styleTags:R(g.STYLE,["cssText"],e),title:E(e),titleAttributes:C("titleAttributes",e),prioritizeSeoTags:L(e,"prioritizeSeoTags")});Q.canUseDOM?(t=o,G&&cancelAnimationFrame(G),t.defer?G=requestAnimationFrame((function(){W(t,(function(){G=null}))})):(W(t),G=null)):M&&(a=M(o)),r(a)},n.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},n.render=function(){return this.init(),null},t}(r.Component);Y.propTypes={context:U.isRequired},Y.displayName="HelmetDispatcher";var K=["children"],X=["children"],J=function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!i()(A(this.props,"helmetData"),A(e,"helmetData"))},n.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:t};case g.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return p({},r,((t={})[n.type]=[].concat(r[n.type]||[],[p({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,a=e.newProps,o=e.newChildProps,s=e.nestedChildren;switch(r.type){case g.TITLE:return p({},a,((t={})[r.type]=s,t.titleAttributes=p({},o),t));case g.BODY:return p({},a,{bodyAttributes:p({},o)});case g.HTML:return p({},a,{htmlAttributes:p({},o)});default:return p({},a,((n={})[r.type]=p({},o),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=p({},t);return Object.keys(e).forEach((function(t){var r;n=p({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return c()(x.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+x.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),c()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,a={};return r.Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,o=r.children,s=h(r,K),i=Object.keys(s).reduce((function(e,t){return e[k[t]||t]=s[t],e}),{}),l=e.type;switch("symbol"==typeof l?l=l.toString():n.warnOnInvalidChildren(e,o),l){case g.FRAGMENT:t=n.mapChildrenToProps(o,t);break;case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:a=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:a,newChildProps:i,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:i,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(a,t)},n.render=function(){var e=this.props,t=e.children,n=h(e,X),a=p({},n),o=n.helmetData;return t&&(a=this.mapChildrenToProps(t,a)),!o||o instanceof z||(o=new z(o.context,o.instances)),o?r.createElement(Y,p({},a,{context:o.value,helmetData:void 0})):r.createElement($.Consumer,null,(function(e){return r.createElement(Y,p({},a,{context:e}))}))},t}(r.Component);J.propTypes={base:o().object,bodyAttributes:o().object,children:o().oneOfType([o().arrayOf(o().node),o().node]),defaultTitle:o().string,defer:o().bool,encodeSpecialCharacters:o().bool,htmlAttributes:o().object,link:o().arrayOf(o().object),meta:o().arrayOf(o().object),noscript:o().arrayOf(o().object),onChangeClientState:o().func,script:o().arrayOf(o().object),style:o().arrayOf(o().object),title:o().string,titleAttributes:o().object,titleTemplate:o().string,prioritizeSeoTags:o().bool,helmetData:o().object},J.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},J.displayName="Helmet"},9921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,i=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case i:case s:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case h:case l:return e;default:return t}}case a:return t}}}function k(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=h,t.Portal=a,t.Profiler=i,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||w(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===i},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===i||e===s||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===v||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},9864:(e,t,n)=>{"use strict";e.exports=n(9921)},8356:(e,t,n)=>{"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}var i=n(7294),l=n(5697),c=[],u=[];function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function p(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var a=d(e[r]);a.loading?t.loading=!0:(t.loaded[r]=a.loaded,t.error=a.error),n.push(a.promise),a.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function f(e,t){return i.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function m(e,t){var d,p;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var m=s({loader:null,loading:null,delay:200,timeout:null,render:f,webpack:null,modules:null},t),h=null;function g(){return h||(h=e(m.loader)),h.promise}return c.push(g),"function"==typeof m.webpack&&u.push((function(){if((0,m.webpack)().every((function(e){return void 0!==e&&void 0!==n.m[e]})))return g()})),p=d=function(t){function n(n){var r;return o(a(a(r=t.call(this,n)||this)),"retry",(function(){r.setState({error:null,loading:!0,timedOut:!1}),h=e(m.loader),r._loadModule()})),g(),r.state={error:h.error,pastDelay:!1,timedOut:!1,loading:h.loading,loaded:h.loaded},r}r(n,t),n.preload=function(){return g()};var s=n.prototype;return s.UNSAFE_componentWillMount=function(){this._loadModule()},s.componentDidMount=function(){this._mounted=!0},s._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(m.modules)&&m.modules.forEach((function(t){e.context.loadable.report(t)})),h.loading){var t=function(t){e._mounted&&e.setState(t)};"number"==typeof m.delay&&(0===m.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){t({pastDelay:!0})}),m.delay)),"number"==typeof m.timeout&&(this._timeout=setTimeout((function(){t({timedOut:!0})}),m.timeout));var n=function(){t({error:h.error,loaded:h.loaded,loading:h.loading}),e._clearTimeouts()};h.promise.then((function(){return n(),null})).catch((function(e){return n(),null}))}},s.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},s._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},s.render=function(){return this.state.loading||this.state.error?i.createElement(m.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?m.render(this.state.loaded,this.props):null},n}(i.Component),o(d,"contextTypes",{loadable:l.shape({report:l.func.isRequired})}),p}function h(e){return m(d,e)}h.Map=function(e){if("function"!=typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return m(p,e)};var g=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.getChildContext=function(){return{loadable:{report:this.props.report}}},n.render=function(){return i.Children.only(this.props.children)},t}(i.Component);function y(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then((function(){if(e.length)return y(e)}))}o(g,"propTypes",{report:l.func.isRequired}),o(g,"childContextTypes",{loadable:l.shape({report:l.func.isRequired}).isRequired}),h.Capture=g,h.preloadAll=function(){return new Promise((function(e,t){y(c).then(e,t)}))},h.preloadReady=function(){return new Promise((function(e,t){y(u).then(e,e)}))},e.exports=h},8790:(e,t,n)=>{"use strict";n.d(t,{H:()=>i,f:()=>s});var r=n(6550),a=n(7462),o=n(7294);function s(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var a=e.path?(0,r.LX)(t,e):n.length?n[n.length-1].match:r.F0.computeRootMatch(t);return a&&(n.push({route:e,match:a}),e.routes&&s(e.routes,t,n)),a})),n}function i(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?o.createElement(r.rs,n,e.map((function(e,n){return o.createElement(r.AW,{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render((0,a.Z)({},n,{},t,{route:e})):o.createElement(e.component,(0,a.Z)({},n,t,{route:e}))}})}))):null}},3727:(e,t,n)=>{"use strict";n.d(t,{OL:()=>v,VK:()=>u,rU:()=>g});var r=n(6550),a=n(5068),o=n(7294),s=n(2358),i=n(7462),l=n(3366),c=n(8776),u=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,s.lX)(t.props),t}return(0,a.Z)(t,e),t.prototype.render=function(){return o.createElement(r.F0,{history:this.history,children:this.props.children})},t}(o.Component);o.Component;var d=function(e,t){return"function"==typeof e?e(t):e},p=function(e,t){return"string"==typeof e?(0,s.ob)(e,null,null,t):e},f=function(e){return e},m=o.forwardRef;void 0===m&&(m=f);var h=m((function(e,t){var n=e.innerRef,r=e.navigate,a=e.onClick,s=(0,l.Z)(e,["innerRef","navigate","onClick"]),c=s.target,u=(0,i.Z)({},s,{onClick:function(e){try{a&&a(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=f!==m&&t||n,o.createElement("a",u)}));var g=m((function(e,t){var n=e.component,a=void 0===n?h:n,u=e.replace,g=e.to,y=e.innerRef,b=(0,l.Z)(e,["component","replace","to","innerRef"]);return o.createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=e.history,r=p(d(g,e.location),e.location),l=r?n.createHref(r):"",h=(0,i.Z)({},b,{href:l,navigate:function(){var t=d(g,e.location),r=(0,s.Ep)(e.location)===(0,s.Ep)(p(t));(u||r?n.replace:n.push)(t)}});return f!==m?h.ref=t||y:h.innerRef=y,o.createElement(a,h)}))})),y=function(e){return e},b=o.forwardRef;void 0===b&&(b=y);var v=b((function(e,t){var n=e["aria-current"],a=void 0===n?"page":n,s=e.activeClassName,u=void 0===s?"active":s,f=e.activeStyle,m=e.className,h=e.exact,v=e.isActive,x=e.location,w=e.sensitive,k=e.strict,S=e.style,E=e.to,_=e.innerRef,C=(0,l.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=x||e.location,s=p(d(E,n),n),l=s.pathname,T=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),R=T?(0,r.LX)(n.pathname,{path:T,exact:h,sensitive:w,strict:k}):null,L=!!(v?v(R,n):R),P="function"==typeof m?m(L):m,N="function"==typeof S?S(L):S;L&&(P=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(P,u),N=(0,i.Z)({},N,f));var A=(0,i.Z)({"aria-current":L&&a||null,className:P,style:N,to:s},C);return y!==b?A.ref=t||_:A.innerRef=_,o.createElement(g,A)}))}))},6550:(e,t,n)=>{"use strict";n.d(t,{AW:()=>P,F0:()=>v,LX:()=>L,TH:()=>M,k6:()=>D,l_:()=>_,rs:()=>B,s6:()=>b});var r=n(5068),a=n(7294),o=n(5697),s=n.n(o),i=n(2358),l=n(8776),c=n(7462),u=n(4779),d=n.n(u),p=(n(9864),n(3366)),f=(n(8679),1073741823),m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};var h=a.createContext||function(e,t){var n,o,i="__create-react-context-"+function(){var e="__global_unique_id__";return m[e]=(m[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n,r,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return(t=e.call.apply(e,[this].concat(o))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}(0,r.Z)(n,e);var a=n.prototype;return a.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},a.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,a=e.value;((o=r)===(s=a)?0!==o||1/o==1/s:o!=o&&s!=s)?n=0:(n="function"==typeof t?t(r,a):f,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,s},a.render=function(){return this.props.children},n}(a.Component);l.childContextTypes=((n={})[i]=s().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.Z)(n,t);var a=n.prototype;return a.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?f:t},a.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?f:e},a.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},a.getValue=function(){return this.context[i]?this.context[i].get():e},a.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(a.Component);return c.contextTypes=((o={})[i]=s().object,o),{Provider:l,Consumer:c}},g=function(e){var t=h();return t.displayName=e,t},y=g("Router-History"),b=g("Router"),v=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return a.createElement(b.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a.createElement(y.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a.Component);a.Component;var x=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(a.Component);var w={},k=1e4,S=0;function E(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(w[e])return w[e];var t=d().compile(e);return S<k&&(w[e]=t,S++),t}(e)(t,{pretty:!0})}function _(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return a.createElement(b.Consumer,null,(function(e){e||(0,l.Z)(!1);var r=e.history,s=e.staticContext,u=o?r.push:r.replace,d=(0,i.ob)(t?"string"==typeof n?E(n,t.params):(0,c.Z)({},n,{pathname:E(n.pathname,t.params)}):n);return s?(u(d),null):a.createElement(x,{onMount:function(){u(d)},onUpdate:function(e,t){var n=(0,i.ob)(t.to);(0,i.Hp)(n,(0,c.Z)({},d,{key:n.key}))||u(d)},to:n})}))}var C={},T=1e4,R=0;function L(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,a=n.exact,o=void 0!==a&&a,s=n.strict,i=void 0!==s&&s,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=C[n]||(C[n]={});if(r[e])return r[e];var a=[],o={regexp:d()(e,a,t),keys:a};return R<T&&(r[e]=o,R++),o}(n,{end:o,strict:i,sensitive:c}),a=r.regexp,s=r.keys,l=a.exec(e);if(!l)return null;var u=l[0],p=l.slice(1),f=e===u;return o&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:s.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}var P=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a.createElement(b.Consumer,null,(function(t){t||(0,l.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?L(n.pathname,e.props):t.match,o=(0,c.Z)({},t,{location:n,match:r}),s=e.props,i=s.children,u=s.component,d=s.render;return Array.isArray(i)&&function(e){return 0===a.Children.count(e)}(i)&&(i=null),a.createElement(b.Provider,{value:o},o.match?i?"function"==typeof i?i(o):i:u?a.createElement(u,o):d?d(o):null:"function"==typeof i?i(o):null)}))},t}(a.Component);function N(e){return"/"===e.charAt(0)?e:"/"+e}function A(e,t){if(!e)return t;var n=N(e);return 0!==t.pathname.indexOf(n)?t:(0,c.Z)({},t,{pathname:t.pathname.substr(n.length)})}function O(e){return"string"==typeof e?e:(0,i.Ep)(e)}function j(e){return function(){(0,l.Z)(!1)}}function I(){}a.Component;var B=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a.createElement(b.Consumer,null,(function(t){t||(0,l.Z)(!1);var n,r,o=e.props.location||t.location;return a.Children.forEach(e.props.children,(function(e){if(null==r&&a.isValidElement(e)){n=e;var s=e.props.path||e.props.from;r=s?L(o.pathname,(0,c.Z)({},e.props,{path:s})):t.match}})),r?a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(a.Component);var F=a.useContext;function D(){return F(y)}function M(){return F(b).location}},5251:(e,t,n)=>{"use strict";var r=n(7294),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:a,type:e,key:c,ref:u,props:o,_owner:i.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},2408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var x=v.prototype=new b;x.constructor=v,h(x,y.prototype),x.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r){var a,o={},s=null,i=null;if(null!=t)for(a in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(s=""+t.key),t)k.call(t,a)&&!E.hasOwnProperty(a)&&(o[a]=t[a]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(a in l=e.defaultProps)void 0===o[a]&&(o[a]=l[a]);return{$$typeof:n,type:e,key:s,ref:i,props:o,_owner:S.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function L(e,t,a,o,s){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var l=!1;if(null===e)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return s=s(l=e),e=""===o?"."+R(l,0):o,w(s)?(a="",null!=e&&(a=e.replace(T,"$&/")+"/"),L(s,t,a,"",(function(e){return e}))):null!=s&&(C(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,a+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(T,"$&/")+"/")+e)),t.push(s)),1;if(l=0,o=""===o?".":o+":",w(e))for(var c=0;c<e.length;c++){var u=o+R(i=e[c],c);l+=L(i,t,a,u,s)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(i=e.next()).done;)l+=L(i=i.value,t,a,u=o+R(i,c++),s);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],a=0;return L(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A={current:null},O={transition:null},j={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:O,ReactCurrentOwner:S};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=a,t.Profiler=s,t.PureComponent=v,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=h({},e.props),o=e.key,s=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,i=S.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)k.call(t,c)&&!E.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}return{$$typeof:n,type:e.type,key:o,ref:s,props:a,_owner:i}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return A.current.useCallback(e,t)},t.useContext=function(e){return A.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return A.current.useDeferredValue(e)},t.useEffect=function(e,t){return A.current.useEffect(e,t)},t.useId=function(){return A.current.useId()},t.useImperativeHandle=function(e,t,n){return A.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return A.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return A.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return A.current.useMemo(e,t)},t.useReducer=function(e,t,n){return A.current.useReducer(e,t,n)},t.useRef=function(e){return A.current.useRef(e)},t.useState=function(e){return A.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return A.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return A.current.useTransition()},t.version="18.2.0"},7294:(e,t,n)=>{"use strict";e.exports=n(2408)},5893:(e,t,n)=>{"use strict";e.exports=n(5251)},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,s=a>>>1;r<s;){var i=2*(r+1)-1,l=e[i],c=i+1,u=e[c];if(0>o(l,n))c<a&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[i]=n,r=i);else{if(!(c<a&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();t.unstable_now=function(){return i.now()-l}}var c=[],u=[],d=1,p=null,f=3,m=!1,h=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)a(u);else{if(!(t.startTime<=e))break;a(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(g=!1,x(e),!h)if(null!==r(c))h=!0,O(k);else{var t=r(u);null!==t&&j(w,t.startTime-e)}}function k(e,n){h=!1,g&&(g=!1,b(C),C=-1),m=!0;var o=f;try{for(x(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!L());){var s=p.callback;if("function"==typeof s){p.callback=null,f=p.priorityLevel;var i=s(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof i?p.callback=i:p===r(c)&&a(c),x(n)}else a(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&j(w,d.startTime-n),l=!1}return l}finally{p=null,f=o,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,E=!1,_=null,C=-1,T=5,R=-1;function L(){return!(t.unstable_now()-R<T)}function P(){if(null!==_){var e=t.unstable_now();R=e;var n=!0;try{n=_(!0,e)}finally{n?S():(E=!1,_=null)}}else E=!1}if("function"==typeof v)S=function(){v(P)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,A=N.port2;N.port1.onmessage=P,S=function(){A.postMessage(null)}}else S=function(){y(P,0)};function O(e){_=e,E||(E=!0,S())}function j(e,n){C=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){h||m||(h=!0,O(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,a,o){var s=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?s+o:s:o=s,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return e={id:d++,callback:a,priorityLevel:e,startTime:o,expirationTime:i=o+i,sortIndex:-1},o>s?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(b(C),C=-1):g=!0,j(w,o-s))):(e.sortIndex=i,n(c,e),h||m||(h=!0,O(k))),e},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},3840:(e,t,n)=>{"use strict";e.exports=n(53)},6774:e=>{e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!i(c))return!1;var u=e[c],d=t[c];if(!1===(a=n?n.call(r,u,d,c):void 0)||void 0===a&&u!==d)return!1}return!0}},6809:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={title:"Quickstart",url:"https://sidorares.github.io",baseUrl:"/node-mysql2/pt-BR/",organizationName:"sidorares",projectName:"node-mysql2",trailingSlash:!1,favicon:"img/favicon.svg",onBrokenLinks:"throw",onBrokenMarkdownLinks:"throw",onBrokenAnchors:"throw",i18n:{defaultLocale:"en",locales:["en","zh-CN","pt-BR"],localeConfigs:{en:{label:"\ud83c\uddfa\ud83c\uddf8 English",direction:"ltr"},"zh-CN":{label:"\ud83c\udde8\ud83c\uddf3 \u7b80\u4f53\u4e2d\u6587",direction:"ltr"},"pt-BR":{label:"\ud83c\udde7\ud83c\uddf7 Portugu\xeas (Brasil)",direction:"ltr"}},path:"i18n"},presets:[["classic",{docs:{sidebarPath:"./sidebars.ts",editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/"},theme:{customCss:"./src/css/custom.scss"},blog:!1}]],themeConfig:{navbar:{items:[{to:"/docs",label:"MySQL2",position:"left",className:"navbar__brand navbar__manual--title text--truncate",activeBaseRegex:"^/$"},{to:"/docs/documentation",label:"Docs",position:"left"},{to:"/docs/examples",label:"Examples",position:"left"},{to:"/docs/faq",label:"FAQ",position:"left"},{href:"https://github.com/sidorares/node-mysql2",label:"GitHub",position:"right"},{href:"https://stackoverflow.com/questions/tagged/mysql2",label:"Stack Overflow",position:"right"},{href:"https://github.com/sponsors/sidorares",label:"Donate",position:"right"},{type:"search",position:"right"},{type:"localeDropdown",position:"right",dropdownItemsBefore:[],dropdownItemsAfter:[]}],hideOnScroll:!1},prism:{theme:{plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},darkTheme:{plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},additionalLanguages:["json","bash","tsx"],magicComments:[{className:"theme-code-block-highlighted-line",line:"highlight-next-line",block:{start:"highlight-start",end:"highlight-end"}}]},colorMode:{defaultMode:"light",disableSwitch:!1,respectPrefersColorScheme:!1},docs:{versionPersistence:"localStorage",sidebar:{hideable:!1,autoCollapseCategories:!1}},metadata:[],tableOfContents:{minHeadingLevel:2,maxHeadingLevel:3}},plugins:["docusaurus-plugin-sass","@easyops-cn/docusaurus-search-local",null],baseUrlIssueBanner:!0,onDuplicateRoutes:"warn",staticDirectories:["static"],customFields:{},themes:[],scripts:[],headTags:[],stylesheets:[],clientModules:[],tagline:"",titleDelimiter:"|",noIndex:!1,markdown:{format:"mdx",mermaid:!1,mdx1Compat:{comments:!0,admonitions:!0,headingIds:!0}}}},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},5068:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>a})},3366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}n.d(t,{Z:()=>r})},512:(e,t,n)=>{"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}n.d(t,{Z:()=>a});const a=function(){for(var e,t,n=0,a="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}},2573:(e,t,n)=>{"use strict";n.d(t,{p1:()=>T,y$:()=>ee});var r,a,o,s,i,l,c,u=n(7294),d=n(512),p=Object.create,f=Object.defineProperty,m=Object.defineProperties,h=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertyNames,b=Object.getOwnPropertySymbols,v=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,k=(e,t,n)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S=(e,t)=>{for(var n in t||(t={}))x.call(t,n)&&k(e,n,t[n]);if(b)for(var n of b(t))w.call(t,n)&&k(e,n,t[n]);return e},E=(e,t)=>m(e,g(t)),_=(e,t)=>{var n={};for(var r in e)x.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&b)for(var r of b(e))t.indexOf(r)<0&&w.call(e,r)&&(n[r]=e[r]);return n},C=(r={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var a,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var s in a={},n[o]=a,t)t.hasOwnProperty(s)&&(a[s]=e(t[s],n));return a;case"Array":return o=r.util.objId(t),n[o]?n[o]:(a=[],n[o]=a,t.forEach((function(t,r){a[r]=e(t,n)})),a);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var o=(a=a||r.languages)[e],s={};for(var i in o)if(o.hasOwnProperty(i)){if(i==t)for(var l in n)n.hasOwnProperty(l)&&(s[l]=n[l]);n.hasOwnProperty(i)||(s[i]=o[i])}var c=a[e];return a[e]=s,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=s)})),s},DFS:function e(t,n,a,o){o=o||{};var s=r.util.objId;for(var i in t)if(t.hasOwnProperty(i)){n.call(t,i,t[i],a||i);var l=t[i],c=r.util.type(l);"Object"!==c||o[s(l)]?"Array"!==c||o[s(l)]||(o[s(l)]=!0,e(l,n,i,o)):(o[s(l)]=!0,e(l,n,null,o))}}},plugins:{},highlight:function(e,t,n){var o={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",o),!o.grammar)throw new Error('The language "'+o.language+'" has no grammar.');return o.tokens=r.tokenize(o.code,o.grammar),r.hooks.run("after-tokenize",o),a.stringify(r.util.encode(o.tokens),o.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new i;return l(a,a.head,e),s(e,a,t,a.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,o=0;a=n[o++];)a(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function s(e,t,n,i,u,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var m=0;m<f.length;++m){if(d&&d.cause==p+","+m)return;var h=f[m],g=h.inside,y=!!h.lookbehind,b=!!h.greedy,v=h.alias;if(b&&!h.pattern.global){var x=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,x+"g")}for(var w=h.pattern||h,k=i.next,S=u;k!==t.tail&&!(d&&S>=d.reach);S+=k.value.length,k=k.next){var E=k.value;if(t.length>e.length)return;if(!(E instanceof a)){var _,C=1;if(b){if(!(_=o(w,S,e,y))||_.index>=e.length)break;var T=_.index,R=_.index+_[0].length,L=S;for(L+=k.value.length;T>=L;)L+=(k=k.next).value.length;if(S=L-=k.value.length,k.value instanceof a)continue;for(var P=k;P!==t.tail&&(L<R||"string"==typeof P.value);P=P.next)C++,L+=P.value.length;C--,E=e.slice(S,L),_.index-=S}else if(!(_=o(w,0,E,y)))continue;T=_.index;var N=_[0],A=E.slice(0,T),O=E.slice(T+N.length),j=S+E.length;d&&j>d.reach&&(d.reach=j);var I=k.prev;if(A&&(I=l(t,I,A),S+=A.length),c(t,I,C),k=l(t,I,new a(p,g?r.tokenize(N,g):N,v,N)),O&&l(t,k,O),C>1){var B={cause:p+","+m,reach:j};s(e,t,n,k.prev,S,B),d&&B.reach>d.reach&&(d.reach=B.reach)}}}}}}function i(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function c(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}return a.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},s=t.alias;s&&(Array.isArray(s)?Array.prototype.push.apply(o.classes,s):o.classes.push(s)),r.hooks.run("wrap",o);var i="";for(var l in o.attributes)i+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+i+">"+o.content+"</"+o.tag+">"},r}();t.exports=n,n.default=n}},function(){return a||(0,r[y(r)[0]])((a={exports:{}}).exports,a),a.exports}),T=((e,t,n)=>(n=null!=e?p(v(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of y(t))x.call(e,a)||a===n||f(e,a,{get:()=>t[a],enumerable:!(r=h(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?n:f(n,"default",{value:e,enumerable:!0}),e)))(C());T.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},T.languages.markup.tag.inside["attr-value"].inside.entity=T.languages.markup.entity,T.languages.markup.doctype.inside["internal-subset"].inside=T.languages.markup,T.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(T.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:T.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:T.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},T.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(T.languages.markup.tag,"addAttribute",{value:function(e,t){T.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:T.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),T.languages.html=T.languages.markup,T.languages.mathml=T.languages.markup,T.languages.svg=T.languages.markup,T.languages.xml=T.languages.extend("markup",{}),T.languages.ssml=T.languages.xml,T.languages.atom=T.languages.xml,T.languages.rss=T.languages.xml,o=T,s={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},l="(?:[^\\\\-]|"+(i=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")",l=RegExp(l+"-"+l),c={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},o.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:i,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":s,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:i}},"special-escape":s,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":c}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:i,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":c}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}},T.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},T.languages.javascript=T.languages.extend("clike",{"class-name":[T.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),T.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,T.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:T.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:T.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:T.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:T.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:T.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),T.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:T.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),T.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),T.languages.markup&&(T.languages.markup.tag.addInlined("script","javascript"),T.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),T.languages.js=T.languages.javascript,T.languages.actionscript=T.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),T.languages.actionscript["class-name"].alias="function",delete T.languages.actionscript.parameter,delete T.languages.actionscript["literal-property"],T.languages.markup&&T.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:T.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(T),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},a="doc-comment";if(o=e.languages[t]){var o,s=o[a];if((s=s||(o=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[a])instanceof RegExp&&(s=o[a]={pattern:s}),Array.isArray(s))for(var i=0,l=s.length;i<l;i++)s[i]instanceof RegExp&&(s[i]={pattern:s[i]}),r(s[i]);else r(s)}}))}}),t.addSupport(["java","javascript","php"],t)}(T),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(T),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(T),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(o),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(T),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,s=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var a,o=t[n];"code"!==o.type?e(o.content):(a=o.content[1],o=o.content[3],a&&o&&"code-language"===a.type&&"code-block"===o.type&&"string"==typeof a.content&&(a=a.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),a="language-"+(a=(/[a-z][\w-]*/i.exec(a)||[""])[0].toLowerCase()),o.alias?"string"==typeof o.alias?o.alias=[o.alias,a]:o.alias.push(a):o.alias=[a]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,a=t.classes.length;r<a;r++){var o=t.classes[r];if(o=/language-(.+)/.exec(o)){n=o[1];break}}var c,u=e.languages[n];u?t.content=e.highlight(t.content.replace(s,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n)):i[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(c="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),i={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(T),T.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:T.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},T.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var a=[];if(d(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var o=p(/^\($/,/^\)$/);if(-1===o)continue;for(;n<o;n++){var s=u(0);"variable"===s.type&&(f(s,"variable-input"),a.push(s.content))}n=o+1}if(d(["punctuation","property-query"])&&"{"===u(0).content&&(n++,f(u(0),"property-mutation"),0<a.length)){var i=p(/^\{$/,/^\}$/);if(-1!==i)for(var l=n;l<i;l++){var c=t[l];"variable"===c.type&&0<=a.indexOf(c.content)&&f(c,"variable-input")}}}}function u(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function p(e,r){for(var a=1,o=n;o<t.length;o++){var s=t[o],i=s.content;if("punctuation"===s.type&&"string"==typeof i)if(e.test(i))a++;else if(r.test(i)&&0==--a)return o}return-1}function f(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),T.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,a=r.inside["interpolation-punctuation"],o=r.pattern.source;function s(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function i(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function l(t,n,s){var l=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),c=0,u={},d=(l=i(l.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=c++,n="___"+s.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,s),Object.keys(u));return c=0,function t(n){for(var o=0;o<n.length;o++){if(c>=d.length)return;var s,l,p,f,m,h,g,y=n[o];"string"==typeof y||"string"==typeof y.content?(s=d[c],-1!==(g=(h="string"==typeof y?y:y.content).indexOf(s))&&(++c,l=h.substring(0,g),m=u[s],p=void 0,(f={})["interpolation-punctuation"]=a,3===(f=e.tokenize(m,f)).length&&((p=[1,1]).push.apply(p,i(f[1],e.languages.javascript,"javascript")),f.splice.apply(f,p)),p=new e.Token("interpolation",f,r.alias,m),f=h.substring(g+s.length),m=[],l&&m.push(l),m.push(p),f&&(t(h=[f]),m.push.apply(m,h)),"string"==typeof y?(n.splice.apply(n,[o,1].concat(m)),o+=m.length-1):y.content=m)):(g=y.content,Array.isArray(g)?t(g):t([g]))}}(l),new e.Token(s,l,"language-"+s,t)}e.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),t].filter(Boolean);var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in c&&function t(n){for(var r=0,a=n.length;r<a;r++){var o,s,i,c=n[r];"string"!=typeof c&&(o=c.content,Array.isArray(o)?"template-string"===c.type?(c=o[1],3===o.length&&"string"!=typeof c&&"embedded-code"===c.type&&(s=u(c),c=c.alias,c=Array.isArray(c)?c[0]:c,i=e.languages[c])&&(o[1]=l(s,i,c))):t(o):"string"!=typeof o&&t([o]))}}(t.tokens)}))}(T),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(T),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(T),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(T),T.languages.n4js=T.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),T.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),T.languages.n4jsd=T.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var a=n[r],o=e.languages.javascript[a];a=(o="RegExp"===e.util.type(o)?e.languages.javascript[a]={pattern:o}:o).inside||{};(o.inside=a)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(T),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return a})),RegExp(e,t)}function s(t){for(var n=[],r=0;r<t.length;r++){var a=t[r],o=!1;"string"!=typeof a&&("tag"===a.type&&a.content[0]&&"tag"===a.content[0].type?"</"===a.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===i(a.content[0].content[1])&&n.pop():"/>"!==a.content[a.content.length-1].content&&n.push({tagName:i(a.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof a)&&0<n.length&&0===n[n.length-1].openedBraces&&(o=i(a),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(o+=i(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(o=i(t[r-1])+o,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",o,null,o)),a.content&&"string"!=typeof a.content&&s(a.content)}}a=o(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var i=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(i).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(T),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(T),T.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},T.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=T.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(T),T.languages.c=T.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),T.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),T.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},T.languages.c.string],char:T.languages.c.char,comment:T.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:T.languages.c}}}}),T.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete T.languages.c.boolean,T.languages.objectivec=T.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete T.languages.objectivec["class-name"],T.languages.objc=T.languages.objectivec,T.languages.reason=T.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),T.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete T.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(T),T.languages.go=T.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),T.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete T.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(T),T.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},T.languages.python["string-interpolation"].inside.interpolation.inside.rest=T.languages.python,T.languages.py=T.languages.python;((e,t)=>{for(var n in t)f(e,n,{get:t[n],enumerable:!0})})({},{dracula:()=>R,duotoneDark:()=>L,duotoneLight:()=>P,github:()=>N,jettwaveDark:()=>H,jettwaveLight:()=>Q,nightOwl:()=>A,nightOwlLight:()=>O,oceanicNext:()=>B,okaidia:()=>F,oneDark:()=>Z,oneLight:()=>V,palenight:()=>D,shadesOfPurple:()=>M,synthwave84:()=>q,ultramin:()=>z,vsDark:()=>$,vsLight:()=>U});var R={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},L={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},P={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},N={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},A={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},O={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},j="#c5a5c5",I="#8dc891",B={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:j}},{types:["attr-value"],style:{color:I}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:I}},{types:["punctuation"],style:{color:I}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:j}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},F={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},D={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},M={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},q={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},z={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},$={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},U={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},H={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Q={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Z={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},V={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},W=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:a}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=S(S({},e[t]),a);e[t]=n})),e}),{});return r.root=n,r.plain=E(S({},n),{backgroundColor:void 0}),r},G=/\r\n|\r|\n/,Y=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},K=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},X=e=>{const t=[[]],n=[e],r=[0],a=[e.length];let o=0,s=0,i=[];const l=[i];for(;s>-1;){for(;(o=r[s]++)<a[s];){let e,c=t[s];const u=n[s][o];if("string"==typeof u?(c=s>0?c:["plain"],e=u):(c=K(c,u.type),u.alias&&(c=K(c,u.alias)),e=u.content),"string"!=typeof e){s++,t.push(c),n.push(e),r.push(0),a.push(e.length);continue}const d=e.split(G),p=d.length;i.push({types:c,content:d[0]});for(let t=1;t<p;t++)Y(i),l.push(i=[]),i.push({types:c,content:d[t]})}s--,t.pop(),n.pop(),r.pop(),a.pop()}return Y(i),l},J=({children:e,language:t,code:n,theme:r,prism:a})=>{const o=t.toLowerCase(),s=((e,t)=>{const[n,r]=(0,u.useState)(W(t,e)),a=(0,u.useRef)(),o=(0,u.useRef)();return(0,u.useEffect)((()=>{t===a.current&&e===o.current||(a.current=t,o.current=e,r(W(t,e)))}),[e,t]),n})(o,r),i=(e=>(0,u.useCallback)((t=>{var n=t,{className:r,style:a,line:o}=n,s=_(n,["className","style","line"]);const i=E(S({},s),{className:(0,d.Z)("token-line",r)});return"object"==typeof e&&"plain"in e&&(i.style=e.plain),"object"==typeof a&&(i.style=S(S({},i.style||{}),a)),i}),[e]))(s),l=(e=>{const t=(0,u.useCallback)((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return(0,u.useCallback)((e=>{var n=e,{token:r,className:a,style:o}=n,s=_(n,["token","className","style"]);const i=E(S({},s),{className:(0,d.Z)("token",...r.types,a),children:r.content,style:t(r)});return null!=o&&(i.style=S(S({},i.style||{}),o)),i}),[t])})(s),c=(({prism:e,code:t,grammar:n,language:r})=>{const a=(0,u.useRef)(e);return(0,u.useMemo)((()=>{if(null==n)return X([t]);const e={code:t,grammar:n,language:r,tokens:[]};return a.current.hooks.run("before-tokenize",e),e.tokens=a.current.tokenize(t,n),a.current.hooks.run("after-tokenize",e),X(e.tokens)}),[t,n,r])})({prism:a,language:o,code:n,grammar:a.languages[o]});return e({tokens:c,className:`prism-code language-${o}`,style:null!=s?s.root:{},getLineProps:i,getTokenProps:l})},ee=e=>(0,u.createElement)(J,E(S({},e),{prism:e.prism||T,theme:e.theme||$,code:e.code,language:e.language}))},8776:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=!0,a="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(a);var n="function"==typeof t?t():t,o=n?"".concat(a,": ").concat(n):a;throw new Error(o)}}},7529:e=>{"use strict";e.exports=JSON.parse('{"theme.AnnouncementBar.closeButtonAriaLabel":"Fechar","theme.BackToTopButton.buttonAriaLabel":"Volte para o topo","theme.CodeBlock.copied":"Copiado","theme.CodeBlock.copy":"Copiar","theme.CodeBlock.copyButtonAriaLabel":"Copiar c\xf3digo para a \xe1rea de transfer\xeancia","theme.CodeBlock.wordWrapToggle":"Alternar quebra de linha","theme.DocSidebarItem.collapseCategoryAriaLabel":"Fechar a categoria lateral \'{label}\'","theme.DocSidebarItem.expandCategoryAriaLabel":"Expandir a categoria lateral \'{label}\'","theme.ErrorPageContent.title":"Esta p\xe1gina deu erro.","theme.ErrorPageContent.tryAgain":"Tente novamente","theme.NavBar.navAriaLabel":"Main","theme.NotFound.p1":"N\xe3o foi poss\xedvel encontrar o que voc\xea est\xe1 procurando.","theme.NotFound.p2":"Entre em contato com o propriet\xe1rio do site que lhe trouxe para c\xe1 e lhe informe que o link est\xe1 quebrado.","theme.NotFound.title":"P\xe1gina n\xe3o encontrada","theme.TOCCollapsible.toggleButtonLabel":"Nessa p\xe1gina","theme.admonition.caution":"cuidado","theme.admonition.danger":"perigo","theme.admonition.info":"info","theme.admonition.note":"nota","theme.admonition.tip":"dica","theme.admonition.warning":"aten\xe7\xe3o","theme.blog.archive.description":"Arquivo","theme.blog.archive.title":"Arquivo","theme.blog.paginator.navAriaLabel":"Navega\xe7\xe3o da p\xe1gina de listagem do blog","theme.blog.paginator.newerEntries":"Conte\xfado mais novo","theme.blog.paginator.olderEntries":"Conte\xfado mais antigo","theme.blog.post.paginator.navAriaLabel":"Navega\xe7\xe3o da p\xe1gina de postagem do blog","theme.blog.post.paginator.newerPost":"Postagem mais nova","theme.blog.post.paginator.olderPost":"Postagem mais antiga","theme.blog.post.plurals":"Uma postagem|{count} postagens","theme.blog.post.readMore":"Leia Mais","theme.blog.post.readMoreLabel":"Ler mais sobre {title}","theme.blog.post.readingTime.plurals":"Leitura de um minuto|Leitura de {readingTime} minutos","theme.blog.sidebar.navAriaLabel":"Blog recent posts navigation","theme.blog.tagTitle":"{nPosts} marcadas com \\"{tagName}\\"","theme.colorToggle.ariaLabel":"Alterar entre os modos claro e escuro (modo {mode} ativado)","theme.colorToggle.ariaLabel.mode.dark":"modo escuro","theme.colorToggle.ariaLabel.mode.light":"modo claro","theme.common.editThisPage":"Editar essa p\xe1gina","theme.common.headingLinkTitle":"Link direto para {heading}","theme.common.skipToMainContent":"Pular para o conte\xfado principal","theme.docs.DocCard.categoryDescription":"{count} items","theme.docs.breadcrumbs.home":"P\xe1gina Inicial","theme.docs.breadcrumbs.navAriaLabel":"Breadcrumbs","theme.docs.paginator.navAriaLabel":"P\xe1ginas de documenta\xe7\xe3o","theme.docs.paginator.next":"Pr\xf3xima","theme.docs.paginator.previous":"Anterior","theme.docs.sidebar.closeSidebarButtonAriaLabel":"Fechar barra de navega\xe7\xe3o","theme.docs.sidebar.collapseButtonAriaLabel":"Fechar painel lateral","theme.docs.sidebar.collapseButtonTitle":"Fechar painel lateral","theme.docs.sidebar.expandButtonAriaLabel":"Expandir painel lateral","theme.docs.sidebar.expandButtonTitle":"Expandir painel lateral","theme.docs.sidebar.navAriaLabel":"Docs sidebar","theme.docs.sidebar.toggleSidebarButtonAriaLabel":"Alternar a barra de navega\xe7\xe3o","theme.docs.tagDocListPageTitle":"{nDocsTagged} com \\"{tagName}\\"","theme.docs.tagDocListPageTitle.nDocsTagged":"Um documento selecionado|{count} documentos selecionados","theme.docs.versionBadge.label":"Vers\xe3o: {versionLabel}","theme.docs.versions.latestVersionLinkLabel":"\xfaltima vers\xe3o","theme.docs.versions.latestVersionSuggestionLabel":"Para a documenta\xe7\xe3o atualizada, veja: {latestVersionLink} ({versionLabel}).","theme.docs.versions.unmaintainedVersionLabel":"Esta \xe9 a documenta\xe7\xe3o para {siteTitle} {versionLabel}, que n\xe3o \xe9 mais mantida ativamente.","theme.docs.versions.unreleasedVersionLabel":"Esta \xe9 uma documenta\xe7\xe3o n\xe3o lan\xe7ada para {siteTitle} {versionLabel}.","theme.lastUpdated.atDate":" em {date}","theme.lastUpdated.byUser":" por {user}","theme.lastUpdated.lastUpdatedAtBy":"\xdaltima atualiza\xe7\xe3o {atDate}{byUser}","theme.navbar.mobileLanguageDropdown.label":"Linguagens","theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel":"\u2190 Voltar para o menu principal","theme.navbar.mobileVersionsDropdown.label":"Vers\xf5es","theme.tags.tagsListLabel":"Marcadores:","theme.tags.tagsPageLink":"Ver todas os Marcadores","theme.tags.tagsPageTitle":"Marcadores","theme.unlistedContent.message":"This page is unlisted. Search engines will not index it, and only users having a direct link can access it.","theme.unlistedContent.title":"P\xe1gina n\xe3o listada"}')},6887:e=>{"use strict";e.exports=JSON.parse('{"/node-mysql2/pt-BR/search-c30":{"__comp":"1a4e3797","__context":{"plugin":"ac5f2e4a"}},"/node-mysql2/pt-BR/docs-f44":{"__comp":"5e95c892","__context":{"plugin":"c84c75a7"}},"/node-mysql2/pt-BR/docs-bd1":{"__comp":"a7bd4aaa","version":"935f2afb"},"/node-mysql2/pt-BR/docs/tags-790":{"__comp":"3720c009","tags":"55960ee5"},"/node-mysql2/pt-BR/docs/tags/create-connection-31b":{"__comp":"df203c0f","tag":"024f605e"},"/node-mysql2/pt-BR/docs/tags/create-pool-ef6":{"__comp":"df203c0f","tag":"ac9dff0b"},"/node-mysql2/pt-BR/docs/tags/create-pool-cluster-ded":{"__comp":"df203c0f","tag":"f08329ad"},"/node-mysql2/pt-BR/docs/tags/execute-0dd":{"__comp":"df203c0f","tag":"b814814f"},"/node-mysql2/pt-BR/docs/tags/parameters-af3":{"__comp":"df203c0f","tag":"d04b867d"},"/node-mysql2/pt-BR/docs/tags/placeholders-b4d":{"__comp":"df203c0f","tag":"4098ceee"},"/node-mysql2/pt-BR/docs/tags/prepared-statements-382":{"__comp":"df203c0f","tag":"68f13ba5"},"/node-mysql2/pt-BR/docs/tags/query-f56":{"__comp":"df203c0f","tag":"e951ea44"},"/node-mysql2/pt-BR/docs/tags/rds-845":{"__comp":"df203c0f","tag":"464e933c"},"/node-mysql2/pt-BR/docs/tags/sha-1-04c":{"__comp":"df203c0f","tag":"40c51f74"},"/node-mysql2/pt-BR/docs/tags/socks-504":{"__comp":"df203c0f","tag":"b5d213ed"},"/node-mysql2/pt-BR/docs/tags/ssl-413":{"__comp":"df203c0f","tag":"45b16189"},"/node-mysql2/pt-BR/docs/tags/uri-2d2":{"__comp":"df203c0f","tag":"a74a0c51"},"/node-mysql2/pt-BR/docs-50c":{"__comp":"a94703ab"},"/node-mysql2/pt-BR/docs-94c":{"__comp":"17896441","content":"9318259a"},"/node-mysql2/pt-BR/docs/acknowledgements-10e":{"__comp":"17896441","content":"406c6f1b"},"/node-mysql2/pt-BR/docs/api-and-configurations-36d":{"__comp":"17896441","content":"f10670c6"},"/node-mysql2/pt-BR/docs/contributing-349":{"__comp":"17896441","content":"7c434f9a"},"/node-mysql2/pt-BR/docs/contributing/website-2f7":{"__comp":"17896441","content":"f8d74a12"},"/node-mysql2/pt-BR/docs/documentation-2a3":{"__comp":"17896441","content":"9e767aa9"},"/node-mysql2/pt-BR/docs/documentation/authentication-switch-5d1":{"__comp":"17896441","content":"3945bec1"},"/node-mysql2/pt-BR/docs/documentation/extras-de6":{"__comp":"17896441","content":"ed06a4b6"},"/node-mysql2/pt-BR/docs/documentation/mysql-server-d9f":{"__comp":"17896441","content":"57495183"},"/node-mysql2/pt-BR/docs/documentation/prepared-statements-833":{"__comp":"17896441","content":"f54f1246"},"/node-mysql2/pt-BR/docs/documentation/promise-wrapper-9ef":{"__comp":"17896441","content":"546b1c5f"},"/node-mysql2/pt-BR/docs/documentation/typescript-examples-a05":{"__comp":"17896441","content":"2bc14e22"},"/node-mysql2/pt-BR/docs/examples-a0f":{"__comp":"17896441","content":"76dfa484"},"/node-mysql2/pt-BR/docs/examples/binlog-watcher-eb5":{"__comp":"17896441","content":"3be0564c"},"/node-mysql2/pt-BR/docs/examples/connections/create-connection-d6a":{"__comp":"17896441","content":"11e11f3b"},"/node-mysql2/pt-BR/docs/examples/connections/create-pool-d83":{"__comp":"17896441","content":"54eaaaae"},"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster-9ad":{"__comp":"17896441","content":"b07748b5"},"/node-mysql2/pt-BR/docs/examples/promise-wrapper/co-await-6a6":{"__comp":"17896441","content":"ad7b17cf"},"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements-9d1":{"__comp":"17896441","content":"7ccab252"},"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/delete-5c4":{"__comp":"17896441","content":"8b8ccc10"},"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/insert-3a7":{"__comp":"17896441","content":"e19cd79a"},"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/select-06e":{"__comp":"17896441","content":"7fbd6b3a"},"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/update-189":{"__comp":"17896441","content":"b80d201b"},"/node-mysql2/pt-BR/docs/examples/queries/simple-queries-107":{"__comp":"17896441","content":"1568425c"},"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/delete-2a3":{"__comp":"17896441","content":"59e52bc2"},"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/insert-f2e":{"__comp":"17896441","content":"a55c4658"},"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/select-3c0":{"__comp":"17896441","content":"8fcb4d7f"},"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/update-3c4":{"__comp":"17896441","content":"54768732"},"/node-mysql2/pt-BR/docs/examples/tests/mysql-proxy-0ed":{"__comp":"17896441","content":"22161331"},"/node-mysql2/pt-BR/docs/examples/tests/pool-d1e":{"__comp":"17896441","content":"f76f5ab7"},"/node-mysql2/pt-BR/docs/examples/tests/server-3e5":{"__comp":"17896441","content":"cffacdf0"},"/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-class-dfc":{"__comp":"17896441","content":"f43af5ae"},"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/index-e46":{"__comp":"17896441","content":"df04d3c8"},"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-array-7cf":{"__comp":"17896441","content":"bc31cbdb"},"/node-mysql2/pt-BR/docs/examples/typescript/row-data/index-229":{"__comp":"17896441","content":"0e27d5d9"},"/node-mysql2/pt-BR/docs/examples/typescript/row-data/multi-statements-f38":{"__comp":"17896441","content":"13833ed5"},"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array-4b8":{"__comp":"17896441","content":"5814edec"},"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array-multi-statements-b47":{"__comp":"17896441","content":"1cee01a7"},"/node-mysql2/pt-BR/docs/faq-47a":{"__comp":"17896441","content":"4e92b6b6"},"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors-e71":{"__comp":"17896441","content":"cdbda324"},"/node-mysql2/pt-BR/docs/history-and-why-mysq2-4f5":{"__comp":"17896441","content":"940eccaa"},"/node-mysql2/pt-BR/docs/stability-badges-ca1":{"__comp":"17896441","content":"db044f71"},"/node-mysql2/pt-BR/-567":{"__comp":"1df93b7f","__context":{"plugin":"fb880757"},"config":"5e9f5e1a"}}')}},e=>{e.O(0,[532],(()=>{return t=7221,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/pt-BR/assets/js/main.93488f79.js.LICENSE.txt b/pt-BR/assets/js/main.a3da04d3.js.LICENSE.txt similarity index 100% rename from pt-BR/assets/js/main.93488f79.js.LICENSE.txt rename to pt-BR/assets/js/main.a3da04d3.js.LICENSE.txt diff --git a/pt-BR/assets/js/runtime~main.6adf88a8.js b/pt-BR/assets/js/runtime~main.6adf88a8.js new file mode 100644 index 0000000000..f457c39806 --- /dev/null +++ b/pt-BR/assets/js/runtime~main.6adf88a8.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,a,c,f,b,t={},d={};function r(e){var a=d[e];if(void 0!==a)return a.exports;var c=d[e]={exports:{}};return t[e].call(c.exports,c,c.exports,r),c.exports}r.m=t,e=[],r.O=(a,c,f,b)=>{if(!c){var t=1/0;for(i=0;i<e.length;i++){c=e[i][0],f=e[i][1],b=e[i][2];for(var d=!0,o=0;o<c.length;o++)(!1&b||t>=b)&&Object.keys(r.O).every((e=>r.O[e](c[o])))?c.splice(o--,1):(d=!1,b<t&&(t=b));if(d){e.splice(i--,1);var n=f();void 0!==n&&(a=n)}}return a}b=b||0;for(var i=e.length;i>0&&e[i-1][2]>b;i--)e[i]=e[i-1];e[i]=[c,f,b]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a:a}),a},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,f){if(1&f&&(e=this(e)),8&f)return e;if("object"==typeof e&&e){if(4&f&&e.__esModule)return e;if(16&f&&"function"==typeof e.then)return e}var b=Object.create(null);r.r(b);var t={};a=a||[null,c({}),c([]),c(c)];for(var d=2&f&&e;"object"==typeof d&&!~a.indexOf(d);d=c(d))Object.getOwnPropertyNames(d).forEach((a=>t[a]=()=>e[a]));return t.default=()=>e,r.d(b,t),b},r.d=(e,a)=>{for(var c in a)r.o(a,c)&&!r.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((a,c)=>(r.f[c](e,a),a)),[])),r.u=e=>"assets/js/"+({53:"935f2afb",81:"8fcb4d7f",384:"1cee01a7",452:"a55c4658",556:"22161331",576:"54768732",630:"f54f1246",641:"59e52bc2",881:"b814814f",1233:"c84c75a7",1420:"54eaaaae",1429:"e19cd79a",1437:"bc31cbdb",1465:"fb880757",1649:"464e933c",1990:"b5d213ed",2030:"ad7b17cf",2155:"940eccaa",2242:"ac9dff0b",2496:"13833ed5",2839:"2bc14e22",2991:"ed06a4b6",3213:"e951ea44",3237:"1df93b7f",3433:"76dfa484",3561:"5814edec",3586:"4e92b6b6",3699:"d04b867d",3751:"3720c009",3776:"f76f5ab7",4116:"cdbda324",4121:"55960ee5",4368:"a94703ab",4403:"b07748b5",4503:"9318259a",4819:"f08329ad",5003:"57495183",5072:"0e27d5d9",5575:"7c434f9a",5807:"f8d74a12",5909:"f43af5ae",6061:"b80d201b",6159:"db044f71",6879:"406c6f1b",7182:"4098ceee",7341:"40c51f74",7342:"68f13ba5",7918:"17896441",7920:"1a4e3797",8054:"7ccab252",8055:"f10670c6",8263:"546b1c5f",8406:"cffacdf0",8518:"a7bd4aaa",8534:"8b8ccc10",8625:"11e11f3b",8806:"9e767aa9",8882:"3945bec1",9085:"a74a0c51",9140:"df04d3c8",9380:"ac5f2e4a",9458:"1568425c",9469:"45b16189",9534:"024f605e",9594:"3be0564c",9661:"5e95c892",9924:"df203c0f",9964:"7fbd6b3a"}[e]||e)+"."+{53:"bd1d6d5a",81:"dee6a17c",384:"21a70fca",452:"e08657d5",556:"0db19980",576:"6f6e93f3",630:"fd168542",641:"9882cb29",881:"c23e4fb0",1233:"bc5502d7",1420:"54e2107b",1429:"094a2d6c",1437:"4185e6db",1465:"7c9dd290",1649:"aa7e1dfd",1772:"b0ede415",1990:"8c98da4e",2030:"85432187",2155:"832154fd",2242:"2f6ac220",2496:"fb385c68",2839:"2670f877",2991:"8935b1ed",3213:"bd25b291",3237:"8f7e93f0",3433:"23d18ade",3561:"0c288116",3586:"3e5fc9fc",3699:"6b2db20e",3751:"8c42b22a",3776:"ab07c468",4116:"81a5c23b",4121:"038c4e5f",4368:"265346fe",4403:"60633ba4",4503:"52119974",4819:"057c8a34",5003:"fdaa1077",5020:"614bd897",5072:"208f4727",5525:"36b2ab15",5575:"5312e04b",5807:"a66d492d",5909:"a254a8a9",6061:"d80a38d2",6159:"8b33f69d",6879:"b91bc01f",7182:"fb3d5e14",7341:"f52d5f10",7342:"e98ebdb3",7918:"569c1c67",7920:"b37fdfae",8054:"3b4472b4",8055:"f002896e",8263:"78cfd167",8406:"ee115849",8443:"30345cef",8518:"687d6c08",8534:"ee5a2e4c",8625:"42b7b568",8806:"9d5004a2",8882:"693ca362",9085:"07cdad9e",9140:"e0eb28cb",9380:"75c0af2a",9458:"21df2514",9469:"5240074e",9534:"086729fb",9594:"87587873",9661:"5a7f2413",9924:"56844b1b",9964:"d6db5b07"}[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),f={},b="website:",r.l=(e,a,c,t)=>{if(f[e])f[e].push(a);else{var d,o;if(void 0!==c)for(var n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var u=n[i];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==b+c){d=u;break}}d||(o=!0,(d=document.createElement("script")).charset="utf-8",d.timeout=120,r.nc&&d.setAttribute("nonce",r.nc),d.setAttribute("data-webpack",b+c),d.src=e),f[e]=[a];var l=(a,c)=>{d.onerror=d.onload=null,clearTimeout(s);var b=f[e];if(delete f[e],d.parentNode&&d.parentNode.removeChild(d),b&&b.forEach((e=>e(c))),a)return a(c)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:d}),12e4);d.onerror=l.bind(null,d.onerror),d.onload=l.bind(null,d.onload),o&&document.head.appendChild(d)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="/node-mysql2/pt-BR/",r.gca=function(e){return e={17896441:"7918",22161331:"556",54768732:"576",57495183:"5003","935f2afb":"53","8fcb4d7f":"81","1cee01a7":"384",a55c4658:"452",f54f1246:"630","59e52bc2":"641",b814814f:"881",c84c75a7:"1233","54eaaaae":"1420",e19cd79a:"1429",bc31cbdb:"1437",fb880757:"1465","464e933c":"1649",b5d213ed:"1990",ad7b17cf:"2030","940eccaa":"2155",ac9dff0b:"2242","13833ed5":"2496","2bc14e22":"2839",ed06a4b6:"2991",e951ea44:"3213","1df93b7f":"3237","76dfa484":"3433","5814edec":"3561","4e92b6b6":"3586",d04b867d:"3699","3720c009":"3751",f76f5ab7:"3776",cdbda324:"4116","55960ee5":"4121",a94703ab:"4368",b07748b5:"4403","9318259a":"4503",f08329ad:"4819","0e27d5d9":"5072","7c434f9a":"5575",f8d74a12:"5807",f43af5ae:"5909",b80d201b:"6061",db044f71:"6159","406c6f1b":"6879","4098ceee":"7182","40c51f74":"7341","68f13ba5":"7342","1a4e3797":"7920","7ccab252":"8054",f10670c6:"8055","546b1c5f":"8263",cffacdf0:"8406",a7bd4aaa:"8518","8b8ccc10":"8534","11e11f3b":"8625","9e767aa9":"8806","3945bec1":"8882",a74a0c51:"9085",df04d3c8:"9140",ac5f2e4a:"9380","1568425c":"9458","45b16189":"9469","024f605e":"9534","3be0564c":"9594","5e95c892":"9661",df203c0f:"9924","7fbd6b3a":"9964"}[e]||e,r.p+r.u(e)},(()=>{var e={1303:0,532:0};r.f.j=(a,c)=>{var f=r.o(e,a)?e[a]:void 0;if(0!==f)if(f)c.push(f[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var b=new Promise(((c,b)=>f=e[a]=[c,b]));c.push(f[2]=b);var t=r.p+r.u(a),d=new Error;r.l(t,(c=>{if(r.o(e,a)&&(0!==(f=e[a])&&(e[a]=void 0),f)){var b=c&&("load"===c.type?"missing":c.type),t=c&&c.target&&c.target.src;d.message="Loading chunk "+a+" failed.\n("+b+": "+t+")",d.name="ChunkLoadError",d.type=b,d.request=t,f[1](d)}}),"chunk-"+a,a)}},r.O.j=a=>0===e[a];var a=(a,c)=>{var f,b,t=c[0],d=c[1],o=c[2],n=0;if(t.some((a=>0!==e[a]))){for(f in d)r.o(d,f)&&(r.m[f]=d[f]);if(o)var i=o(r)}for(a&&a(c);n<t.length;n++)b=t[n],r.o(e,b)&&e[b]&&e[b][0](),e[b]=0;return r.O(i)},c=self.webpackChunkwebsite=self.webpackChunkwebsite||[];c.forEach(a.bind(null,0)),c.push=a.bind(null,c.push.bind(c))})()})(); \ No newline at end of file diff --git a/pt-BR/assets/js/runtime~main.ec1d2f22.js b/pt-BR/assets/js/runtime~main.ec1d2f22.js deleted file mode 100644 index b802867ad6..0000000000 --- a/pt-BR/assets/js/runtime~main.ec1d2f22.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,a,t,c,f,r={},b={};function d(e){var a=b[e];if(void 0!==a)return a.exports;var t=b[e]={exports:{}};return r[e].call(t.exports,t,t.exports,d),t.exports}d.m=r,e=[],d.O=(a,t,c,f)=>{if(!t){var r=1/0;for(i=0;i<e.length;i++){t=e[i][0],c=e[i][1],f=e[i][2];for(var b=!0,o=0;o<t.length;o++)(!1&f||r>=f)&&Object.keys(d.O).every((e=>d.O[e](t[o])))?t.splice(o--,1):(b=!1,f<r&&(r=f));if(b){e.splice(i--,1);var n=c();void 0!==n&&(a=n)}}return a}f=f||0;for(var i=e.length;i>0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[t,c,f]},d.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return d.d(a,{a:a}),a},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,d.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var f=Object.create(null);d.r(f);var r={};a=a||[null,t({}),t([]),t(t)];for(var b=2&c&&e;"object"==typeof b&&!~a.indexOf(b);b=t(b))Object.getOwnPropertyNames(b).forEach((a=>r[a]=()=>e[a]));return r.default=()=>e,d.d(f,r),f},d.d=(e,a)=>{for(var t in a)d.o(a,t)&&!d.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},d.f={},d.e=e=>Promise.all(Object.keys(d.f).reduce(((a,t)=>(d.f[t](e,a),a)),[])),d.u=e=>"assets/js/"+({53:"935f2afb",312:"1f08bd40",384:"1cee01a7",630:"f54f1246",764:"43758d02",1233:"c84c75a7",1437:"bc31cbdb",1449:"4e547710",1465:"fb880757",1647:"5748a325",1683:"c3c9efa4",1883:"93f3cbcf",2155:"940eccaa",2423:"bc868b95",2496:"13833ed5",2817:"3f11ce5f",2839:"2bc14e22",2991:"ed06a4b6",3237:"1df93b7f",3433:"76dfa484",3561:"5814edec",3586:"4e92b6b6",4116:"cdbda324",4338:"dcf552eb",4368:"a94703ab",4503:"9318259a",4917:"54dbd6f3",5003:"57495183",5575:"7c434f9a",5717:"8b718d68",5775:"e3a2ad82",5807:"f8d74a12",5909:"f43af5ae",6159:"db044f71",6879:"406c6f1b",7184:"d2002d6f",7467:"8a8506f8",7918:"17896441",7920:"1a4e3797",8055:"f10670c6",8193:"10c30137",8218:"e9842ab8",8263:"546b1c5f",8518:"a7bd4aaa",8806:"9e767aa9",8882:"3945bec1",9264:"3bea1af6",9380:"ac5f2e4a",9521:"75b440d9",9594:"3be0564c",9661:"5e95c892",9817:"14eb3368"}[e]||e)+"."+{53:"aa918750",312:"dd243496",384:"21a70fca",630:"d7eee5da",764:"9ac7a52a",1233:"bc5502d7",1437:"228ea185",1449:"20753e9d",1465:"7c9dd290",1647:"a2e111f5",1683:"c54a85a0",1772:"b0ede415",1883:"ba8765bf",2155:"832154fd",2423:"779d37c2",2496:"fb385c68",2817:"8b6a6dda",2839:"ccc314be",2991:"8935b1ed",3237:"8f7e93f0",3433:"d5a66fe5",3561:"53868910",3586:"3e5fc9fc",4116:"83dea7a7",4338:"7e1bb0c2",4368:"10844fc8",4503:"74964f81",4917:"4539762c",5003:"fdaa1077",5525:"36b2ab15",5575:"5312e04b",5717:"845097d8",5775:"cf1b2ba0",5807:"474379e2",5909:"903f4dda",6159:"7bc8a626",6879:"b91bc01f",7184:"d73ca65b",7467:"5b7bc212",7918:"6fafa0da",7920:"5fb5e418",8055:"f002896e",8193:"584148f6",8218:"fda7f835",8263:"c11bc71b",8443:"30345cef",8518:"687d6c08",8806:"9d5004a2",8882:"693ca362",9264:"77aeb577",9380:"75c0af2a",9521:"1a702608",9594:"ff91f30d",9661:"5a7f2413",9817:"a0a1fb1b"}[e]+".js",d.miniCssF=e=>{},d.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),d.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),c={},f="website:",d.l=(e,a,t,r)=>{if(c[e])c[e].push(a);else{var b,o;if(void 0!==t)for(var n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var u=n[i];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==f+t){b=u;break}}b||(o=!0,(b=document.createElement("script")).charset="utf-8",b.timeout=120,d.nc&&b.setAttribute("nonce",d.nc),b.setAttribute("data-webpack",f+t),b.src=e),c[e]=[a];var l=(a,t)=>{b.onerror=b.onload=null,clearTimeout(s);var f=c[e];if(delete c[e],b.parentNode&&b.parentNode.removeChild(b),f&&f.forEach((e=>e(t))),a)return a(t)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:b}),12e4);b.onerror=l.bind(null,b.onerror),b.onload=l.bind(null,b.onload),o&&document.head.appendChild(b)}},d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.p="/node-mysql2/pt-BR/",d.gca=function(e){return e={17896441:"7918",57495183:"5003","935f2afb":"53","1f08bd40":"312","1cee01a7":"384",f54f1246:"630","43758d02":"764",c84c75a7:"1233",bc31cbdb:"1437","4e547710":"1449",fb880757:"1465","5748a325":"1647",c3c9efa4:"1683","93f3cbcf":"1883","940eccaa":"2155",bc868b95:"2423","13833ed5":"2496","3f11ce5f":"2817","2bc14e22":"2839",ed06a4b6:"2991","1df93b7f":"3237","76dfa484":"3433","5814edec":"3561","4e92b6b6":"3586",cdbda324:"4116",dcf552eb:"4338",a94703ab:"4368","9318259a":"4503","54dbd6f3":"4917","7c434f9a":"5575","8b718d68":"5717",e3a2ad82:"5775",f8d74a12:"5807",f43af5ae:"5909",db044f71:"6159","406c6f1b":"6879",d2002d6f:"7184","8a8506f8":"7467","1a4e3797":"7920",f10670c6:"8055","10c30137":"8193",e9842ab8:"8218","546b1c5f":"8263",a7bd4aaa:"8518","9e767aa9":"8806","3945bec1":"8882","3bea1af6":"9264",ac5f2e4a:"9380","75b440d9":"9521","3be0564c":"9594","5e95c892":"9661","14eb3368":"9817"}[e]||e,d.p+d.u(e)},(()=>{var e={1303:0,532:0};d.f.j=(a,t)=>{var c=d.o(e,a)?e[a]:void 0;if(0!==c)if(c)t.push(c[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var f=new Promise(((t,f)=>c=e[a]=[t,f]));t.push(c[2]=f);var r=d.p+d.u(a),b=new Error;d.l(r,(t=>{if(d.o(e,a)&&(0!==(c=e[a])&&(e[a]=void 0),c)){var f=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;b.message="Loading chunk "+a+" failed.\n("+f+": "+r+")",b.name="ChunkLoadError",b.type=f,b.request=r,c[1](b)}}),"chunk-"+a,a)}},d.O.j=a=>0===e[a];var a=(a,t)=>{var c,f,r=t[0],b=t[1],o=t[2],n=0;if(r.some((a=>0!==e[a]))){for(c in b)d.o(b,c)&&(d.m[c]=b[c]);if(o)var i=o(d)}for(a&&a(t);n<r.length;n++)f=r[n],d.o(e,f)&&e[f]&&e[f][0](),e[f]=0;return d.O(i)},t=self.webpackChunkwebsite=self.webpackChunkwebsite||[];t.forEach(a.bind(null,0)),t.push=a.bind(null,t.push.bind(t))})()})(); \ No newline at end of file diff --git a/pt-BR/docs.html b/pt-BR/docs.html index 6f879150e0..851c934a33 100644 --- a/pt-BR/docs.html +++ b/pt-BR/docs.html @@ -2,13 +2,13 @@ <html lang="pt-BR" dir="ltr" class="docs-wrapper plugin-docs plugin-id-default docs-version-current docs-doc-page docs-doc-id-index" data-has-hydrated="false"> <head> <meta charset="UTF-8"> -<meta name="generator" content="Docusaurus v3.0.1"> -<title data-rh="true">MySQL2 | Guia Rápido - - + +MySQL2 | Guia Rápido + + -
    +

    MySQL2

    Cliente MySQL para Node.js com foco em performance. Suporta instruções preparadas (prepared statements), Codificações non-utf8, protocolo de log binário (binary log protocol), compressão, SSL e muito mais.

    @@ -21,6 +21,9 @@

    Instalação


    Primeira Consulta (Query)

    +
    +

    Para explorar mais exemplos de consulta (queries), visite a seção de exemplos Consultas Simples e Instruções Preparadas (Prepared Statements).

    +
    // Obtém o cliente
    import mysql from 'mysql2/promise';

    // Cria a conexão com o Banco de Dados
    const connection = await mysql.createConnection({
    host: 'localhost',
    user: 'root',
    database: 'test',
    });

    // Consulta simples
    try {
    const [results, fields] = await connection.query(
    'SELECT * FROM `table` WHERE `name` = "Page" AND `age` > 45'
    );

    console.log(results); // "results" contêm as linhas retornadas pelo servidor
    console.log(fields); // "fields" contêm metadados adicionais sobre os resultados, quando disponíveis
    } catch (err) {
    console.log(err);
    }

    // Utilizando espaços reservados (placeholders)
    try {
    const [results] = await connection.query(
    'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',
    ['Page', 45]
    );

    console.log(results);
    } catch (err) {
    console.log(err);
    }

    Usando Instruções Preparadas (Prepared Statements)

    @@ -29,14 +32,20 @@

    Como as instruções preparadas (prepared statements) podem proteger contra ataques de injeção SQL

    O MySQL2 fornece o método auxiliar execute que irá preparar e consultar as declarações (statements) SQL. Além disso, você também pode usar os métodos prepare e unprepare para preparar ou desfazer a preparação de declarações (statements) manualmente, se necessário.

    +
    +

    Para explorar mais exemplos de Instruções Preparadas (Prepared Statements), visite a seção de exemplos Instruções Preparadas (Prepared Statements).

    +
    import mysql from 'mysql2/promise';

    try {
    // Cria a conexão com o Banco de Dados
    const connection = await mysql.createConnection({
    host: 'localhost',
    user: 'root',
    database: 'test',
    });

    // "execute" irá chamar internamente a preparação e a consulta (query)
    const [results, fields] = await connection.execute(
    'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',
    ['Rick C-137', 53]
    );

    console.log(results); // "results" contêm as linhas retornadas pelo servidor
    console.log(fields); // "fields" contêm metadados adicionais sobre os resultados, quando disponíveis
    } catch (err) {
    console.log(err);
    }
    -
    tip

    Se você executar a mesma declaração novamente, ela será selecionada a partir do LRU Cache, o que economizará tempo de preparação da consulta e proporcionará melhor desempenho.

    +
    dica

    Se você executar a mesma declaração novamente, ela será selecionada a partir do LRU Cache, o que economizará tempo de preparação da consulta e proporcionará melhor desempenho.


    -

    Usando Conjunto de Conexões (pools)

    +

    Usando Conjunto de Conexões (pools)

    O conjunto de conexões (pools) ajuda a reduzir o tempo gasto na conexão com o servidor MySQL, reutilizando uma conexão anterior e deixando-as abertas ao invés de fechá-las quando você termina de usá-las.

    Isto melhora a latência das consultas (queries), pois evita toda a sobrecarga associada à criação de uma nova conexão.

    +
    +

    Para explorar mais exemplos de Conjunto de Conexões (pools), visite a seção de exemplos createPool.

    +
    import mysql from 'mysql2/promise';

    // Cria a conexão (pool). As definições específicadas do "createPool" são as predefinições padrões
    const pool = mysql.createPool({
    host: 'localhost',
    user: 'root',
    database: 'test',
    waitForConnections: true,
    connectionLimit: 10,
    maxIdle: 10, // Máximo de conexões inativas; o valor padrão é o mesmo que "connectionLimit"
    idleTimeout: 60000, // Tempo limite das conexões inativas em milissegundos; o valor padrão é "60000"
    queueLimit: 0,
    enableKeepAlive: true,
    keepAliveInitialDelay: 0,
    });
    -
    note

    O pool não estabelece todas as conexões previamente, mas as cria sob demanda até que o limite de conexões seja atingido.

    +
    nota

    O pool não estabelece todas as conexões previamente, mas as cria sob demanda até que o limite de conexões seja atingido.


    Você pode usar o pool da mesma maneira como em uma conexão (usando pool.query() e pool.execute()):

    try {
    // Para a inicialização do "pool", veja acima
    const [rows, fields] = await pool.query('SELECT `field` FROM `table`');
    // A conexão é automaticamente liberada quando a consulta (query) é resolvida
    } catch (err) {
    console.log(err);
    }
    @@ -69,6 +78,6 @@

    Query Level
    try {
    const [results, fields] = await conn.query({
    sql: 'SELECT 1 AS `foo`, 2 AS `foo`',
    rowsAsArray: true,
    });

    console.log(results); // nessa consulta, "results" contêm um array de arrays ao invés de um array de objetos
    console.log(fields); // "fields" mantêm-se inalterados
    } catch (err) {
    console.log(err);
    }


    +Se você encontrou um erro, registre-o no GitHub.

    \ No newline at end of file diff --git a/pt-BR/docs/acknowledgements.html b/pt-BR/docs/acknowledgements.html index c82c223e5e..635794e5d6 100644 --- a/pt-BR/docs/acknowledgements.html +++ b/pt-BR/docs/acknowledgements.html @@ -2,13 +2,13 @@ - -Agradecimentos | Quickstart - - + +Agradecimentos | Quickstart + + -

    Agradecimentos

    +

    Agradecimentos

    \ No newline at end of file diff --git a/pt-BR/docs/documentation.html b/pt-BR/docs/documentation.html index d34c0171c0..e5d22a2998 100644 --- a/pt-BR/docs/documentation.html +++ b/pt-BR/docs/documentation.html @@ -2,16 +2,16 @@ - -Documentation - - + +Documentation + + -
    +

    Documentation

    MySQL2 aims to be a drop in replacement for Node MySQL.

    -
    note

    If you see any API incompatibilities with Node MySQL, please report via github issue.

    +
    nota

    If you see any API incompatibilities with Node MySQL, please report via github issue.

    Not only MySQL2 offers better performance over Node MySQL, we also support these additional features:

    -
    note

    This option could lose precision on the number as Javascript Number is a Float!

    +
    nota

    This option could lose precision on the number as Javascript Number is a Float!


    Other Resources

      diff --git a/pt-BR/docs/documentation/authentication-switch.html b/pt-BR/docs/documentation/authentication-switch.html index ade4b0ec70..d645af9a33 100644 --- a/pt-BR/docs/documentation/authentication-switch.html +++ b/pt-BR/docs/documentation/authentication-switch.html @@ -2,13 +2,13 @@ - -Authentication Switch Request | Quickstart - - + +Authentication Switch Request | Quickstart + + -

      Authentication Switch Request

      +

      Authentication Switch Request

      During the connection phase the server may ask the client to switch to a different auth method. If the authPlugins connection config option is set, it must be an object where each key is the name of a potential authentication plugin requested by the server, and the corresponding diff --git a/pt-BR/docs/documentation/extras.html b/pt-BR/docs/documentation/extras.html index 81c61ae4c8..35316e7b93 100644 --- a/pt-BR/docs/documentation/extras.html +++ b/pt-BR/docs/documentation/extras.html @@ -2,13 +2,13 @@ - -Extra Features | Quickstart - - + +Extra Features | Quickstart + + -

      Extra Features

      +

      Extra Features

      Named placeholders

      You can use named placeholders for parameters by setting namedPlaceholders config value or query/execute time option. Named placeholders are converted to unnamed ? on the client (mysql protocol does not support named parameters). If you reference parameter multiple times under the same name it is sent to server multiple times. Unnamed placeholders can still be used by providing the values as an array instead of an object.

      connection.config.namedPlaceholders = true;
      connection.execute('select :x + :y as z', { x: 1, y: 2 }, (err, rows) => {
      // statement prepared as "select ? + ? as z" and executed with [1,2] values
      // rows returned: [ { z: 3 } ]
      });

      connection.execute('select :x + :x as z', { x: 1 }, (err, rows) => {
      // select ? + ? as z, execute with [1, 1]
      });

      connection.query('select :x + :x as z', { x: 1 }, (err, rows) => {
      // query select 1 + 1 as z
      });

      // unnamed placeholders are still valid if the values are provided in an array
      connection.query('select ? + ? as z', [1, 1], (err, rows) => {
      // query select 1 + 1 as z
      });
      diff --git a/pt-BR/docs/documentation/mysql-server.html b/pt-BR/docs/documentation/mysql-server.html index c397d3f4dd..ebddb7e5e2 100644 --- a/pt-BR/docs/documentation/mysql-server.html +++ b/pt-BR/docs/documentation/mysql-server.html @@ -2,13 +2,13 @@ - -MySQL Server API | Quickstart - - + +MySQL Server API | Quickstart + + -

      MySQL Server API

      +

      MySQL Server API

      Server

      \ No newline at end of file diff --git a/pt-BR/docs/examples/binlog-watcher.html b/pt-BR/docs/examples/binlog-watcher.html index 597e7740b2..599df9b35a 100644 --- a/pt-BR/docs/examples/binlog-watcher.html +++ b/pt-BR/docs/examples/binlog-watcher.html @@ -2,13 +2,13 @@ - -Binlog Watcher | Quickstart - - + +Binlog Watcher | Quickstart + + -

      Binlog Watcher

      -
      'use strict';

      const mysql = require('mysql2');
      const through2 = require('through2');

      const binlogStream = mysql.createBinlogStream({
      serverId: 123, // slave ID, first field in "show slave hosts" sql response
      // you can also specify slave host, username, password and port
      masterId: 0,
      filename: 'mysql-bin.000007',
      binlogPos: 120,
      flags: 1, // 1 = "non-blocking mode"
      });

      binlogStream.pipe(
      through2.obj((obj, enc, next) => {
      console.log(obj);
      next();
      })
      );
      +

      Binlog Watcher

      +
      'use strict';

      const mysql = require('mysql2');
      const through2 = require('through2');

      const binlogStream = mysql.createBinlogStream({
      serverId: 123, // slave ID, first field in "show slave hosts" sql response
      // you can also specify slave host, username, password and port
      masterId: 0,
      filename: 'mysql-bin.000007',
      binlogPos: 120,
      flags: 1, // 1 = "non-blocking mode"
      });

      binlogStream.pipe(
      through2.obj((obj, enc, next) => {
      console.log(obj);
      next();
      })
      );
      \ No newline at end of file diff --git a/pt-BR/docs/examples/connect-over-socks.html b/pt-BR/docs/examples/connect-over-socks.html deleted file mode 100644 index a88a8102ac..0000000000 --- a/pt-BR/docs/examples/connect-over-socks.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -Connect Over Socks | Quickstart - - - - -

      Connect Over Socks

      -
      'use strict';

      const mysql = require('mysql2');
      const SocksConnection = require('socksjs');

      // const socksProxy = new SocksConnection({ port: 3306 });
      // const conn = mysql.createConnection({
      // stream: socksProxy,
      // });

      // conn.query("select 1+1", function(err, rows, fields) {
      // console.log(err, rows, fields);
      // });

      const conn1 = mysql.createPool({
      debug: 1,
      stream: function () {
      return new SocksConnection({ port: 3306 });
      },
      });

      conn1.execute('select sleep(1.1) as www', (err, rows, fields) => {
      console.log(err, rows, fields);
      });

      conn1.execute('select sleep(1) as qqq', (err, rows, fields) => {
      console.log(err, rows, fields);
      });

      conn1.execute('select sleep(1) as qqq', (err, rows, fields) => {
      console.log(err, rows, fields);
      });
      - - \ No newline at end of file diff --git a/pt-BR/docs/examples/connections/create-connection.html b/pt-BR/docs/examples/connections/create-connection.html new file mode 100644 index 0000000000..26caa493ac --- /dev/null +++ b/pt-BR/docs/examples/connections/create-connection.html @@ -0,0 +1,72 @@ + + + + + +createConnection | Quickstart + + + + +

      createConnection

      +
      info

      For queries please see the Simple Queries and Prepared Statements examples.

      +

      createConnection(connectionUri)

      +
      +

      createConnection(connectionUri: string)

      +
      +
      import mysql from 'mysql2/promise';

      try {
      const connection = await mysql.createConnection(
      'mysql://root:password@localhost:3306/test'
      );
      } catch (err) {
      console.log(err);
      }
      +
      +

      createConnection(config)

      +
      +

      createConnection(config: ConnectionOptions)

      +
      +
      import mysql from 'mysql2/promise';

      try {
      const connection = await mysql.createConnection({
      host: 'localhost',
      user: 'root',
      database: 'test',
      // port: 3306,
      // password: '',
      });
      } catch (err) {
      console.log(err);
      }
      +
      +

      createConnection(config) — SHA1

      +
      +

      createConnection(config: ConnectionOptions)

      +
      +
      import mysql from 'mysql2/promise';

      try {
      const connection = await mysql.createConnection({
      // ...
      passwordSha1: Buffer.from(
      '8bb6118f8fd6935ad0876a3be34a717d32708ffd',
      'hex'
      ),
      });
      } catch (err) {
      console.log(err);
      }
      +
      +

      createConnection(config) — SSL

      +
      +

      createConnection(config: ConnectionOptions)

      +
      +
      import mysql from 'mysql2/promise';

      try {
      const connection = await mysql.createConnection({
      // ...
      ssl: {
      // key: fs.readFileSync('./certs/client-key.pem'),
      // cert: fs.readFileSync('./certs/client-cert.pem')
      ca: fs.readFileSync('./certs/ca-cert.pem'),
      },
      });
      } catch (err) {
      console.log(err);
      }
      +
      +

      createConnection(config) — RDS SSL

      +
      +

      createConnection(config: ConnectionOptions)

      +
      +

      You can use Amazon RDS string as value to ssl property to connect to Amazon RDS MySQL over SSL.

      +

      In that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used:

      +
      import mysql from 'mysql2/promise';

      try {
      const connection = await mysql.createConnection({
      // ...
      host: 'db.id.ap-southeast-2.rds.amazonaws.com',
      ssl: 'Amazon RDS',
      });
      } catch (err) {
      console.log(err);
      }
      Testing
      try {
      const [res] = await connection.query('SHOW `status` LIKE "Ssl_cipher"');
      await connection.end();

      console.log(res);
      } catch (err) {
      console.log(err);
      }
      + + +
      +

      createConnection(config) — Socks

      +
      +

      createConnection(config: ConnectionOptions)

      +
      +
      const mysql = require('mysql2');
      const SocksConnection = require('socksjs');

      const socksProxy = new SocksConnection({ port: 3306 });
      const connection = mysql.createConnection({
      stream: socksProxy,
      });

      connection.addListener('error', (err) => {
      console.log(err);
      });
      +
      Testing
      connection.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => {
      if (err instanceof Error) {
      console.log(err);
      return;
      }

      console.log(rows, fields);
      });

      connection.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {
      if (err instanceof Error) {
      console.log(err);
      return;
      }

      console.log(rows, fields);
      });

      connection.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {
      if (err instanceof Error) {
      console.log(err);
      return;
      }

      console.log(rows, fields);
      });
      +
      +

      Glossary

      +

      ConnectionOptions

      +
      ConnectionOptions Specification
      + + \ No newline at end of file diff --git a/pt-BR/docs/examples/connections/create-pool.html b/pt-BR/docs/examples/connections/create-pool.html new file mode 100644 index 0000000000..90ad3098df --- /dev/null +++ b/pt-BR/docs/examples/connections/create-pool.html @@ -0,0 +1,96 @@ + + + + + +createPool | Quickstart + + + + +

      createPool

      +
      info

      For queries please see the Simple Queries and Prepared Statements examples.

      +

      createPool(connectionUri)

      +
      +

      createPool(connectionUri: string)

      +
      +
      import mysql from 'mysql2/promise';

      try {
      const pool = mysql.createPool('mysql://root:password@localhost:3306/test');
      const connection = await pool.getConnection();
      // ... some query

      connection.release();
      } catch (err) {
      console.log(err);
      }
      +
      atenção

      Don't forget to release the connection when finished by using:

        +
      • pool.releaseConnection(connection)
      • +
      • connection.release()
      • +
      +
      +

      createPool(config)

      +
      +

      createPool(config: PoolOptions)

      +
      +
      import mysql from 'mysql2/promise';

      try {
      const pool = mysql.createPool({
      host: 'localhost',
      user: 'root',
      database: 'test',
      // port: 3306,
      // password: '',
      });
      const connection = await pool.getConnection();
      // ... some query

      connection.release();
      } catch (err) {
      console.log(err);
      }
      +
      atenção

      Don't forget to release the connection when finished by using:

        +
      • pool.releaseConnection(connection)
      • +
      • connection.release()
      • +
      +
      +

      createPool(config) — SHA1

      +
      +

      createPool(config: PoolOptions)

      +
      +
      import mysql from 'mysql2/promise';

      try {
      const pool = mysql.createPool({
      // ...
      passwordSha1: Buffer.from(
      '8bb6118f8fd6935ad0876a3be34a717d32708ffd',
      'hex'
      ),
      });
      const connection = await pool.getConnection();
      // ... some query

      connection.release();
      } catch (err) {
      console.log(err);
      }
      +
      atenção

      Don't forget to release the connection when finished by using:

        +
      • pool.releaseConnection(connection)
      • +
      • connection.release()
      • +
      +
      +

      createPool(config) — SSL

      +
      +

      createPool(config: PoolOptions)

      +
      +
      import mysql from 'mysql2/promise';

      try {
      const pool = mysql.createPool({
      // ...
      ssl: {
      // key: fs.readFileSync('./certs/client-key.pem'),
      // cert: fs.readFileSync('./certs/client-cert.pem')
      ca: fs.readFileSync('./certs/ca-cert.pem'),
      },
      });
      const connection = await pool.getConnection();
      // ... some query

      connection.release();
      } catch (err) {
      console.log(err);
      }
      +
      atenção

      Don't forget to release the connection when finished by using:

        +
      • pool.releaseConnection(connection)
      • +
      • connection.release()
      • +
      +
      +

      createPool(config) — RDS SSL

      +
      +

      createPool(config: PoolOptions)

      +
      +

      You can use Amazon RDS string as value to ssl property to connect to Amazon RDS MySQL over SSL.

      +

      In that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used:

      +
      import mysql from 'mysql2/promise';

      try {
      const pool = mysql.createPool({
      // ...
      host: 'db.id.ap-southeast-2.rds.amazonaws.com',
      ssl: 'Amazon RDS',
      });
      const connection = await pool.getConnection();
      // ... some query

      connection.release();
      } catch (err) {
      console.log(err);
      }
      Testing
      try {
      const [res] = await connection.query('SHOW `status` LIKE "Ssl_cipher"');
      await pool.end();

      console.log(res);
      } catch (err) {
      console.log(err);
      }
      +
      atenção

      Don't forget to release the connection when finished by using:

        +
      • pool.releaseConnection(connection)
      • +
      • connection.release()
      • +
      + + +
      +

      createPool(config) — Socks

      +
      +

      createPool(config: PoolOptions)

      +
      +
      const mysql = require('mysql2');
      const SocksConnection = require('socksjs');

      const socksProxy = new SocksConnection({ port: 3306 });
      const pool = mysql.createPool({
      stream: socksProxy,
      });
      +
      Testing
      pool.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => {
      if (err instanceof Error) {
      console.log(err);
      return;
      }

      console.log(rows, fields);
      });

      pool.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {
      if (err instanceof Error) {
      console.log(err);
      return;
      }

      console.log(rows, fields);
      });

      pool.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {
      if (err instanceof Error) {
      console.log(err);
      return;
      }

      console.log(rows, fields);
      });
      +
      +

      Glossary

      +

      PoolOptions

      +
      +

      PoolOptions extends all options from ConnectionOptions:

      +
      ConnectionOptions Specification
      +
      +
      PoolOptions Specification
      + + \ No newline at end of file diff --git a/pt-BR/docs/examples/connections/createPoolCluster.html b/pt-BR/docs/examples/connections/createPoolCluster.html new file mode 100644 index 0000000000..614da2a374 --- /dev/null +++ b/pt-BR/docs/examples/connections/createPoolCluster.html @@ -0,0 +1,91 @@ + + + + + +createPoolCluster | Quickstart + + + + +

      createPoolCluster

      +
      info

      For queries please see the Simple Queries and Prepared Statements examples.

      +

      add(group, connectionUri)

      +
      +

      add(group: string, connectionUri: string)

      +
      +
      import mysql from 'mysql2/promise';

      try {
      const poolCluster = mysql.createPoolCluster();

      poolCluster.add('clusterA', 'mysql://root:password@localhost:3306/test');
      // poolCluster.add('clusterB', '...');

      const connection = await poolCluster.getConnection('clusterA');
      // ... some query

      connection.release();
      } catch (err) {
      console.log(err);
      }
      +
      atenção

      Don't forget to release the connection when finished by using:

        +
      • connection.release()
      • +
      +
      +

      add(group, config)

      +
      +

      add(group: string, config: PoolOptions)

      +
      +
      import mysql from 'mysql2/promise';

      try {
      const poolCluster = mysql.createPoolCluster();

      poolCluster.add('clusterA', {
      host: 'localhost',
      user: 'root',
      database: 'test',
      // port: 3306,
      // password: '',
      });
      // poolCluster.add('clusterB', '...');

      const connection = await poolCluster.getConnection('clusterA');
      // ... some query

      connection.release();
      } catch (err) {
      console.log(err);
      }
      +
      atenção

      Don't forget to release the connection when finished by using:

        +
      • connection.release()
      • +
      +
      +

      add(group, config) — SHA1

      +
      +

      add(group: string, config: PoolOptions)

      +
      +
      import mysql from 'mysql2/promise';

      try {
      const poolCluster = mysql.createPoolCluster();

      poolCluster.add('clusterA', {
      // ...
      passwordSha1: Buffer.from(
      '8bb6118f8fd6935ad0876a3be34a717d32708ffd',
      'hex'
      ),
      });
      // poolCluster.add('clusterB', '...');

      const connection = await poolCluster.getConnection('clusterA');
      // ... some query

      connection.release();
      } catch (err) {
      console.log(err);
      }
      +
      atenção

      Don't forget to release the connection when finished by using:

        +
      • connection.release()
      • +
      +
      +

      add(group, config) — SSL

      +
      +

      add(group: string, config: PoolOptions)

      +
      +
      import mysql from 'mysql2/promise';

      try {
      const poolCluster = mysql.createPoolCluster();

      poolCluster.add('clusterA', {
      // ...
      ssl: {
      // key: fs.readFileSync('./certs/client-key.pem'),
      // cert: fs.readFileSync('./certs/client-cert.pem')
      ca: fs.readFileSync('./certs/ca-cert.pem'),
      },
      });
      // poolCluster.add('clusterB', '...');

      const connection = await poolCluster.getConnection('clusterA');
      // ... some query

      connection.release();
      } catch (err) {
      console.log(err);
      }
      +
      atenção

      Don't forget to release the connection when finished by using:

        +
      • connection.release()
      • +
      +
      +

      add(group, config) — RDS SSL

      +
      +

      add(group: string, config: PoolOptions)

      +
      +

      You can use Amazon RDS string as value to ssl property to connect to Amazon RDS MySQL over SSL.

      +

      In that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used:

      +
      import mysql from 'mysql2/promise';

      try {
      const poolCluster = mysql.createPoolCluster();

      poolCluster.add('clusterA', {
      // ...
      host: 'db.id.ap-southeast-2.rds.amazonaws.com',
      ssl: 'Amazon RDS',
      });
      // poolCluster.add('clusterB', '...');

      const connection = await poolCluster.getConnection('clusterA');
      // ... some query

      connection.release();
      } catch (err) {
      console.log(err);
      }
      Testing
      try {
      const [res] = await connection.query('SHOW `status` LIKE "Ssl_cipher"');
      await poolCluster.end();

      console.log(res);
      } catch (err) {
      console.log(err);
      }
      +
      atenção

      Don't forget to release the connection when finished by using:

        +
      • connection.release()
      • +
      + + +
      +

      add(group, config) — Socks

      +
      +

      add(group: string, config: PoolOptions)

      +
      +
      const mysql = require('mysql2');
      const SocksConnection = require('socksjs');

      const socksProxy = new SocksConnection({ port: 3306 });
      const poolCluster = mysql.createPoolCluster();

      poolCluster.add('clusterA', {
      stream: socksProxy,
      });
      // poolCluster.add('clusterB', '...');

      const poolNamespace = poolCluster.of('clusterA');
      +
      Testing
      poolNamespace.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => {
      if (err instanceof Error) {
      console.log(err);
      return;
      }

      console.log(rows, fields);
      });

      poolNamespace.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {
      if (err instanceof Error) {
      console.log(err);
      return;
      }

      console.log(rows, fields);
      });

      poolNamespace.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {
      if (err instanceof Error) {
      console.log(err);
      return;
      }

      console.log(rows, fields);
      });
      +
      +

      Glossary

      +

      PoolOptions

      +
      +

      PoolOptions extends all options from ConnectionOptions:

      +
      ConnectionOptions Specification
      +
      +
      PoolOptions Specification
      + + \ No newline at end of file diff --git a/pt-BR/docs/examples/execute.html b/pt-BR/docs/examples/execute.html deleted file mode 100644 index 56d1fbbf77..0000000000 --- a/pt-BR/docs/examples/execute.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -Execute | Quickstart - - - - -

      Execute

      -
      'use strict';

      // get the client
      const mysql = require('mysql2');

      // create the connection to database
      const connection = mysql.createConnection({
      host: 'localhost',
      user: 'root',
      database: 'test',
      });

      connection.execute(
      'select ?+1 as qqq, ? as rrr, ? as yyy',
      [1, null, 3],
      (err, rows, fields) => {
      console.log(err, rows, fields);
      connection.execute(
      'select ?+1 as qqq, ? as rrr, ? as yyy',
      [3, null, 3],
      (err, rows, fields) => {
      console.log(err, rows, fields);
      connection.unprepare('select ?+1 as qqq, ? as rrr, ? as yyy');
      connection.execute(
      'select ?+1 as qqq, ? as rrr, ? as yyy',
      [3, null, 3],
      (err, rows, fields) => {
      console.log(err, rows, fields);
      }
      );
      }
      );
      }
      );
      - - \ No newline at end of file diff --git a/pt-BR/docs/examples/pass-sha.html b/pt-BR/docs/examples/pass-sha.html deleted file mode 100644 index b84769edf2..0000000000 --- a/pt-BR/docs/examples/pass-sha.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -Pass SHA | Quickstart - - - - -

      Pass SHA

      -
      'use strict';

      const mysql = require('mysql2').createConnection({
      host: 'localhost',
      user: 'root',
      database: 'test',
      passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'),
      });

      mysql.execute(
      'select ?+1 as qqq, ? as rrr, ? as yyy',
      [1, null, 3],
      (err, rows, fields) => {
      console.log(err, rows, fields);
      }
      );
      - - \ No newline at end of file diff --git a/pt-BR/docs/examples/prepare.html b/pt-BR/docs/examples/prepare.html deleted file mode 100644 index 3fc2abec1f..0000000000 --- a/pt-BR/docs/examples/prepare.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -Prepared Statements | Quickstart - - - - -

      Prepared Statements

      -
      'use strict';

      // get the client
      const mysql = require('mysql2');

      // create the connection to database
      const connection = mysql.createConnection({
      host: 'localhost',
      user: 'root',
      database: 'test',
      });

      // execute will internally call prepare and query
      connection.execute(
      'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',
      ['Rick C-137', 53],
      (err, results, fields) => {
      console.log(results); // results contains rows returned by server
      console.log(fields); // fields contains extra meta data about results, if available

      // If you execute same statement again, it will be picked form a LRU cache
      // which will save query preparation time and give better performance
      }
      );
      - - \ No newline at end of file diff --git a/pt-BR/docs/examples/promise-co-await.html b/pt-BR/docs/examples/promise-wrapper/co-await.html similarity index 81% rename from pt-BR/docs/examples/promise-co-await.html rename to pt-BR/docs/examples/promise-wrapper/co-await.html index 5747efd862..a7f66cba1e 100644 --- a/pt-BR/docs/examples/promise-co-await.html +++ b/pt-BR/docs/examples/promise-wrapper/co-await.html @@ -1,14 +1,14 @@ - + - -Promise CO Await | Quickstart - - + +await — co | Quickstart + + -

      Promise CO Await

      -
      'use strict';

      const mysql = require('mysql2/promise');

      async function test() {
      const c = await mysql.createConnection({
      port: 3306,
      user: 'testuser',
      namedPlaceholders: true,
      password: 'testpassword',
      });
      console.log('connected!');
      const [rows, fields] = await c.query('show databases');
      console.log(rows);

      try {
      const [rows, fields] = await c.query('some invalid sql here');
      } catch (e) {
      console.log('caught exception!', e);
      }

      console.log(await c.execute('select sleep(0.5)'));
      console.log('after first sleep');
      console.log(await c.execute('select sleep(0.5)'));
      console.log('after second sleep');
      let start = +new Date();
      console.log(
      await Promise.all([
      c.execute('select sleep(2.5)'),
      c.execute('select sleep(2.5)'),
      ])
      );
      console.log(
      'after 2+3 parallel sleep which is in fact not parallel because commands are queued per connection'
      );
      let end = +new Date();
      console.log(end - start);
      await c.end();

      const p = mysql.createPool({
      port: 3306,
      user: 'testuser',
      namedPlaceholders: true,
      password: 'testpassword',
      });
      console.log(await p.execute('select sleep(0.5)'));
      console.log('after first pool sleep');
      start = +new Date();
      console.log(
      await Promise.all([
      p.execute('select sleep(2.5)'),
      p.execute('select sleep(2.5)'),
      ])
      );
      console.log('after 2+3 parallel pool sleep');
      end = +new Date();
      console.log(end - start);
      await p.end();
      }

      test()
      .then(() => {
      console.log('done');
      })
      .catch((err) => {
      console.log('error!', err);
      throw err;
      });
      +

      await — co

      +
      'use strict';

      const mysql = require('mysql2/promise');

      async function test() {
      const c = await mysql.createConnection({
      port: 3306,
      user: 'testuser',
      namedPlaceholders: true,
      password: 'testpassword',
      });
      console.log('connected!');
      const [rows, fields] = await c.query('show databases');
      console.log(rows);

      try {
      const [rows, fields] = await c.query('some invalid sql here');
      } catch (e) {
      console.log('caught exception!', e);
      }

      console.log(await c.execute('select sleep(0.5)'));
      console.log('after first sleep');
      console.log(await c.execute('select sleep(0.5)'));
      console.log('after second sleep');
      let start = +new Date();
      console.log(
      await Promise.all([
      c.execute('select sleep(2.5)'),
      c.execute('select sleep(2.5)'),
      ])
      );
      console.log(
      'after 2+3 parallel sleep which is in fact not parallel because commands are queued per connection'
      );
      let end = +new Date();
      console.log(end - start);
      await c.end();

      const p = mysql.createPool({
      port: 3306,
      user: 'testuser',
      namedPlaceholders: true,
      password: 'testpassword',
      });
      console.log(await p.execute('select sleep(0.5)'));
      console.log('after first pool sleep');
      start = +new Date();
      console.log(
      await Promise.all([
      p.execute('select sleep(2.5)'),
      p.execute('select sleep(2.5)'),
      ])
      );
      console.log('after 2+3 parallel pool sleep');
      end = +new Date();
      console.log(end - start);
      await p.end();
      }

      test()
      .then(() => {
      console.log('done');
      })
      .catch((err) => {
      console.log('error!', err);
      throw err;
      });
      \ No newline at end of file diff --git a/pt-BR/docs/examples/queries/prepared-statements.html b/pt-BR/docs/examples/queries/prepared-statements.html new file mode 100644 index 0000000000..a929b29af5 --- /dev/null +++ b/pt-BR/docs/examples/queries/prepared-statements.html @@ -0,0 +1,25 @@ + + + + + +Prepared Statements | Quickstart + + + + +

      Prepared Statements

      +

      MySQL2 provides execute helper which will prepare and query the statement. +You can also manually prepare / unprepare statement with prepare / unprepare methods.

      +

      See detailed documentaion in Prepared Statements.

      +
      dica

      If you execute same statement again, it will be picked form a LRU cache which will save query preparation time and give better performance.

      +
      +

      Usage examples:

      +
      + + \ No newline at end of file diff --git a/pt-BR/docs/examples/queries/prepared-statements/delete.html b/pt-BR/docs/examples/queries/prepared-statements/delete.html new file mode 100644 index 0000000000..91862153ae --- /dev/null +++ b/pt-BR/docs/examples/queries/prepared-statements/delete.html @@ -0,0 +1,51 @@ + + + + + +DELETE | Quickstart + + + + +

      DELETE

      +

      execute(sql, values)

      +
      +

      execute(sql: string, values: any[])

      +
      +
      try {
      const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';
      const values = ['Page'];

      const [result, fields] = await connection.execute(sql, values);

      console.log(result);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
      • +
      • fields contains extra meta data about the operation, if available
      • +
      +
      info

      The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      execute(options)

      +
      +

      execute(options: QueryOptions)

      +
      +
      try {
      const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';
      const values = ['Page'];

      const [result, fields] = await connection.execute({
      sql,
      values,
      // ... other options
      });

      console.log(result);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
      • +
      • fields contains extra meta data about the operation, if available
      • +
      +
      info

      The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      execute(options, values)

      +
      +

      execute(options: QueryOptions, values: any[])

      +
      +
      try {
      const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';
      const values = ['Page'];

      const [result, fields] = await connection.execute(
      {
      sql,
      // ... other options
      },
      values
      );

      console.log(result);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
      • +
      • fields contains extra meta data about the operation, if available
      • +
      +
      info

      The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      Glossary

      +

      ResultSetHeader

      +
      ResultSetHeader Specification
      +

      QueryOptions

      +
      QueryOptions Specification
      + + \ No newline at end of file diff --git a/pt-BR/docs/examples/queries/prepared-statements/insert.html b/pt-BR/docs/examples/queries/prepared-statements/insert.html new file mode 100644 index 0000000000..db97b91e98 --- /dev/null +++ b/pt-BR/docs/examples/queries/prepared-statements/insert.html @@ -0,0 +1,51 @@ + + + + + +INSERT | Quickstart + + + + +

      INSERT

      +

      execute(sql, values)

      +
      +

      execute(sql: string, values: any[])

      +
      +
      try {
      const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';
      const values = ['Josh', 19, 'Page', 45];

      const [result, fields] = await connection.execute(sql, values);

      console.log(result);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
      • +
      • fields contains extra meta data about the operation, if available
      • +
      +
      info

      The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      execute(options)

      +
      +

      execute(options: QueryOptions)

      +
      +
      try {
      const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';
      const values = ['Josh', 19, 'Page', 45];

      const [result, fields] = await connection.execute({
      sql,
      values,
      // ... other options
      });

      console.log(result);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
      • +
      • fields contains extra meta data about the operation, if available
      • +
      +
      info

      The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      execute(options, values)

      +
      +

      execute(options: QueryOptions, values: any[])

      +
      +
      try {
      const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';
      const values = ['Josh', 19, 'Page', 45];

      const [result, fields] = await connection.execute(
      {
      sql,
      // ... other options
      },
      values
      );

      console.log(result);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
      • +
      • fields contains extra meta data about the operation, if available
      • +
      +
      info

      The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      Glossary

      +

      ResultSetHeader

      +
      ResultSetHeader Specification
      +

      QueryOptions

      +
      QueryOptions Specification
      + + \ No newline at end of file diff --git a/pt-BR/docs/examples/queries/prepared-statements/select.html b/pt-BR/docs/examples/queries/prepared-statements/select.html new file mode 100644 index 0000000000..ebb9c81e29 --- /dev/null +++ b/pt-BR/docs/examples/queries/prepared-statements/select.html @@ -0,0 +1,49 @@ + + + + + +SELECT | Quickstart + + + + +

      SELECT

      +

      execute(sql, values)

      +
      +

      execute(sql: string, values: any[])

      +
      +
      try {
      const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';
      const values = ['Page', 45];

      const [rows, fields] = await connection.execute(sql, values);

      console.log(rows);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • rows contains rows returned by server
      • +
      • fields contains extra meta data about rows, if available
      • +
      +
      info

      The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      execute(options)

      +
      +

      execute(options: QueryOptions)

      +
      +
      try {
      const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';
      const values = ['Page', 45];

      const [rows, fields] = await connection.execute({
      sql,
      values,
      // ... other options
      });

      console.log(rows);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • rows contains rows returned by server
      • +
      • fields contains extra meta data about rows, if available
      • +
      +
      info

      The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      execute(options, values)

      +
      +

      execute(options: QueryOptions, values: any[])

      +
      +
      try {
      const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';
      const values = ['Page', 45];

      const [rows, fields] = await connection.execute(
      {
      sql,
      // ... other options
      },
      values
      );

      console.log(rows);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • rows contains rows returned by server
      • +
      • fields contains extra meta data about rows, if available
      • +
      +
      info

      The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      Glossary

      +

      QueryOptions

      +
      QueryOptions Specification
      + + \ No newline at end of file diff --git a/pt-BR/docs/examples/queries/prepared-statements/update.html b/pt-BR/docs/examples/queries/prepared-statements/update.html new file mode 100644 index 0000000000..8ca4095ef0 --- /dev/null +++ b/pt-BR/docs/examples/queries/prepared-statements/update.html @@ -0,0 +1,51 @@ + + + + + +UPDATE | Quickstart + + + + +

      UPDATE

      +

      execute(sql, values)

      +
      +

      execute(sql: string, values: any[])

      +
      +
      try {
      const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';
      const values = [20, 'Josh'];

      const [result, fields] = await connection.execute(sql, values);

      console.log(result);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
      • +
      • fields contains extra meta data about the operation, if available
      • +
      +
      info

      The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      execute(options)

      +
      +

      execute(options: QueryOptions)

      +
      +
      try {
      const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';
      const values = [20, 'Josh'];

      const [result, fields] = await connection.execute({
      sql,
      values,
      // ... other options
      });

      console.log(result);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
      • +
      • fields contains extra meta data about the operation, if available
      • +
      +
      info

      The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      execute(options, values)

      +
      +

      execute(options: QueryOptions, values: any[])

      +
      +
      try {
      const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';
      const values = [20, 'Josh'];

      const [result, fields] = await connection.execute(
      {
      sql,
      // ... other options
      },
      values
      );

      console.log(result);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
      • +
      • fields contains extra meta data about the operation, if available
      • +
      +
      info

      The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      Glossary

      +

      ResultSetHeader

      +
      ResultSetHeader Specification
      +

      QueryOptions

      +
      QueryOptions Specification
      + + \ No newline at end of file diff --git a/pt-BR/docs/examples/queries/select.html b/pt-BR/docs/examples/queries/select.html deleted file mode 100644 index 16b0c679ac..0000000000 --- a/pt-BR/docs/examples/queries/select.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -SELECT | Quickstart - - - - -

      SELECT

      -
      'use strict';

      // get the client
      const mysql = require('mysql2');

      // create the connection to database
      const connection = mysql.createConnection({
      host: 'localhost',
      user: 'root',
      database: 'test',
      });

      // simple query
      connection.query(
      'SELECT * FROM `table` WHERE `name` = "Page" AND `age` > 45',
      (err, results, fields) => {
      console.log(results); // results contains rows returned by server
      console.log(fields); // fields contains extra meta data about results, if available
      }
      );

      // with placeholder
      connection.query(
      'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',
      ['Page', 45],
      (err, results) => {
      console.log(results);
      }
      );
      - - \ No newline at end of file diff --git a/pt-BR/docs/examples/queries/simple-queries.html b/pt-BR/docs/examples/queries/simple-queries.html new file mode 100644 index 0000000000..93c9c824ef --- /dev/null +++ b/pt-BR/docs/examples/queries/simple-queries.html @@ -0,0 +1,22 @@ + + + + + +Simple Queries | Quickstart + + + + + + + \ No newline at end of file diff --git a/pt-BR/docs/examples/queries/simple-queries/delete.html b/pt-BR/docs/examples/queries/simple-queries/delete.html new file mode 100644 index 0000000000..524c9ebc4b --- /dev/null +++ b/pt-BR/docs/examples/queries/simple-queries/delete.html @@ -0,0 +1,41 @@ + + + + + +DELETE | Quickstart + + + + +

      DELETE

      +

      The examples below also work for the execute method.

      +

      query(sql)

      +
      +

      query(sql: string)

      +
      +
      try {
      const sql = 'DELETE FROM `users` WHERE `name` = "Page" LIMIT 1';

      const [result, fields] = await connection.query(sql);

      console.log(result);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
      • +
      • fields contains extra meta data about the operation, if available
      • +
      +
      info

      The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      query(options)

      +
      +

      query(options: QueryOptions)

      +
      +
      try {
      const sql = 'DELETE FROM `users` WHERE `name` = "Page" LIMIT 1';

      const [result, fields] = await connection.query({
      sql,
      // ... other options
      });

      console.log(result);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
      • +
      • fields contains extra meta data about the operation, if available
      • +
      +
      info

      The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      Glossary

      +

      ResultSetHeader

      +
      ResultSetHeader Specification
      +

      QueryOptions

      +
      QueryOptions Specification
      + + \ No newline at end of file diff --git a/pt-BR/docs/examples/queries/simple-queries/insert.html b/pt-BR/docs/examples/queries/simple-queries/insert.html new file mode 100644 index 0000000000..75bfd23161 --- /dev/null +++ b/pt-BR/docs/examples/queries/simple-queries/insert.html @@ -0,0 +1,41 @@ + + + + + +INSERT | Quickstart + + + + +

      INSERT

      +

      The examples below also work for the execute method.

      +

      query(sql)

      +
      +

      query(sql: string)

      +
      +
      try {
      const sql =
      'INSERT INTO `users`(`name`, `age`) VALUES ("Josh", 19), ("Page", 45)';

      const [result, fields] = await connection.query(sql);

      console.log(result);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
      • +
      • fields contains extra meta data about the operation, if available
      • +
      +
      info

      The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      query(options)

      +
      +

      query(options: QueryOptions)

      +
      +
      try {
      const sql =
      'INSERT INTO `users`(`name`, `age`) VALUES ("Josh", 19), ("Page", 45)';

      const [result, fields] = await connection.query({
      sql,
      // ... other options
      });

      console.log(result);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
      • +
      • fields contains extra meta data about the operation, if available
      • +
      +
      info

      The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      Glossary

      +

      ResultSetHeader

      +
      ResultSetHeader Specification
      +

      QueryOptions

      +
      QueryOptions Specification
      + + \ No newline at end of file diff --git a/pt-BR/docs/examples/queries/simple-queries/select.html b/pt-BR/docs/examples/queries/simple-queries/select.html new file mode 100644 index 0000000000..ad44874505 --- /dev/null +++ b/pt-BR/docs/examples/queries/simple-queries/select.html @@ -0,0 +1,50 @@ + + + + + +SELECT | Quickstart + + + + +

      SELECT

      +

      The examples below also work for the execute method.

      +

      query(sql)

      +
      +

      query(sql: string)

      +
      +
      try {
      const sql = 'SELECT * FROM `users` WHERE `name` = "Page" AND `age` > 45';

      const [rows, fields] = await connection.query(sql);

      console.log(rows);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • rows contains rows returned by server
      • +
      • fields contains extra meta data about rows, if available
      • +
      +
      info

      The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      query(options)

      +
      +

      query(options: QueryOptions)

      +
      +
      try {
      const sql = 'SELECT * FROM `users` WHERE `name` = "Page" AND `age` > 45';

      const [rows, fields] = await connection.query({
      sql,
      // ... other options
      });

      console.log(rows);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • rows contains rows returned by server
      • +
      • fields contains extra meta data about rows, if available
      • +
      +
      info

      The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      query(options) — Row as Array

      +
      +

      query(options: QueryOptions)

      +
      +
      try {
      const sql = 'SELECT * FROM `users` WHERE `name` = "Page" AND `age` > 45';

      const [rows, fields] = await connection.query({
      sql,
      rowsAsArray: true,
      // ... other options
      });

      console.log(rows);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • rows contains rows returned by server as array
      • +
      • fields contains extra meta data about rows, if available
      • +
      +
      info

      The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      Glossary

      +

      QueryOptions

      +
      QueryOptions Specification
      + + \ No newline at end of file diff --git a/pt-BR/docs/examples/queries/simple-queries/update.html b/pt-BR/docs/examples/queries/simple-queries/update.html new file mode 100644 index 0000000000..60e757e3a1 --- /dev/null +++ b/pt-BR/docs/examples/queries/simple-queries/update.html @@ -0,0 +1,41 @@ + + + + + +UPDATE | Quickstart + + + + +

      UPDATE

      +

      The examples below also work for the execute method.

      +

      query(sql)

      +
      +

      query(sql: string)

      +
      +
      try {
      const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = "Josh" LIMIT 1';

      const [result, fields] = await connection.query(sql);

      console.log(result);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
      • +
      • fields contains extra meta data about the operation, if available
      • +
      +
      info

      The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      query(options)

      +
      +

      query(options: QueryOptions)

      +
      +
      try {
      const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = "Josh" LIMIT 1';

      const [result, fields] = await connection.query({
      sql,
      // ... other options
      });

      console.log(result);
      console.log(fields);
      } catch (err) {
      console.log(err);
      }
      +
        +
      • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
      • +
      • fields contains extra meta data about the operation, if available
      • +
      +
      info

      The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

      +
      +

      Glossary

      +

      ResultSetHeader

      +
      ResultSetHeader Specification
      +

      QueryOptions

      +
      QueryOptions Specification
      + + \ No newline at end of file diff --git a/pt-BR/docs/examples/ssl/rds-ssl.html b/pt-BR/docs/examples/ssl/rds-ssl.html deleted file mode 100644 index b731a213aa..0000000000 --- a/pt-BR/docs/examples/ssl/rds-ssl.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -RDS SSL | Quickstart - - - - -

      RDS SSL

      -
      'use strict';

      const mysql = require('mysql2');

      const conn = mysql.createConnection({
      user: process.env.USER,
      password: process.env.PASSWORD,
      database: process.env.DB,
      host: process.env.HOST,
      port: 3306,
      ssl: 'Amazon RDS',
      });

      conn.query("show status like 'Ssl_cipher'", function (err, res) {
      console.log(err, res);
      conn.end();
      });
      - - \ No newline at end of file diff --git a/pt-BR/docs/examples/ssl/select-over-ssl.html b/pt-BR/docs/examples/ssl/select-over-ssl.html deleted file mode 100644 index 745a46bea1..0000000000 --- a/pt-BR/docs/examples/ssl/select-over-ssl.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - -Select Over SSL | Quickstart - - - - -

      Select Over SSL

      -
      'use strict';

      const fs = require('fs');
      const mysql = require('mysql2');

      const conn = mysql.createConnection({
      user: 'root',
      password: '',
      database: 'test',
      host: '127.0.0.1',
      port: '3306',
      ssl: {
      // key: fs.readFileSync('./certs/client-key.pem'),
      // cert: fs.readFileSync('./certs/client-cert.pem')
      ca: fs.readFileSync('./certs/ca-cert.pem'),
      },
      });

      conn.query('select 1+1 as test', function (err, res) {
      console.log(res);
      conn.query('select repeat("a", 100) as test', function (err, res) {
      console.log(res);
      });
      });
      -
      - - \ No newline at end of file diff --git a/pt-BR/docs/examples/mysqlproxy.html b/pt-BR/docs/examples/tests/mysql-proxy.html similarity index 69% rename from pt-BR/docs/examples/mysqlproxy.html rename to pt-BR/docs/examples/tests/mysql-proxy.html index c01481ebf0..e85c3dba9c 100644 --- a/pt-BR/docs/examples/mysqlproxy.html +++ b/pt-BR/docs/examples/tests/mysql-proxy.html @@ -1,14 +1,14 @@ - + - -MySQL Proxy | Quickstart - - + +MySQL Proxy | Quickstart + + -

      MySQL Proxy

      -
      'use strict';

      const mysql = require('mysql2');
      const ClientFlags = require('mysql2/lib/constants/client.js');

      const server = mysql.createServer();
      server.listen(3307);

      server.on('connection', (conn) => {
      console.log('connection');

      conn.serverHandshake({
      protocolVersion: 10,
      serverVersion: 'node.js rocks',
      connectionId: 1234,
      statusFlags: 2,
      characterSet: 8,
      capabilityFlags: 0xffffff ^ ClientFlags.COMPRESS,
      });

      conn.on('field_list', (table, fields) => {
      console.log('field list:', table, fields);
      conn.writeEof();
      });

      const remote = mysql.createConnection({
      user: 'root',
      database: 'dbname',
      host: 'server.example.com',
      password: 'secret',
      });

      conn.on('query', (sql) => {
      console.log(`proxying query: ${sql}`);
      remote.query(sql, function (err) {
      // overloaded args, either (err, result :object)
      // or (err, rows :array, columns :array)
      if (Array.isArray(arguments[1])) {
      // response to a 'select', 'show' or similar
      const rows = arguments[1],
      columns = arguments[2];
      console.log('rows', rows);
      console.log('columns', columns);
      conn.writeTextResult(rows, columns);
      } else {
      // response to an 'insert', 'update' or 'delete'
      const result = arguments[1];
      console.log('result', result);
      conn.writeOk(result);
      }
      });
      });

      conn.on('end', remote.end.bind(remote));
      });
      +

      MySQL Proxy

      +
      'use strict';

      const mysql = require('mysql2');
      const ClientFlags = require('mysql2/lib/constants/client.js');

      const server = mysql.createServer();
      server.listen(3307);

      server.on('connection', (conn) => {
      console.log('connection');

      conn.serverHandshake({
      protocolVersion: 10,
      serverVersion: 'node.js rocks',
      connectionId: 1234,
      statusFlags: 2,
      characterSet: 8,
      capabilityFlags: 0xffffff ^ ClientFlags.COMPRESS,
      });

      conn.on('field_list', (table, fields) => {
      console.log('field list:', table, fields);
      conn.writeEof();
      });

      const remote = mysql.createConnection({
      user: 'root',
      database: 'dbname',
      host: 'server.example.com',
      password: 'secret',
      });

      conn.on('query', (sql) => {
      console.log(`proxying query: ${sql}`);
      remote.query(sql, function (err) {
      // overloaded args, either (err, result :object)
      // or (err, rows :array, columns :array)
      if (Array.isArray(arguments[1])) {
      // response to a 'select', 'show' or similar
      const rows = arguments[1],
      columns = arguments[2];
      console.log('rows', rows);
      console.log('columns', columns);
      conn.writeTextResult(rows, columns);
      } else {
      // response to an 'insert', 'update' or 'delete'
      const result = arguments[1];
      console.log('result', result);
      conn.writeOk(result);
      }
      });
      });

      conn.on('end', remote.end.bind(remote));
      });
      \ No newline at end of file diff --git a/pt-BR/docs/examples/pool-test.html b/pt-BR/docs/examples/tests/pool.html similarity index 55% rename from pt-BR/docs/examples/pool-test.html rename to pt-BR/docs/examples/tests/pool.html index 64ef3c3cb9..1bd97501bc 100644 --- a/pt-BR/docs/examples/pool-test.html +++ b/pt-BR/docs/examples/tests/pool.html @@ -1,14 +1,14 @@ - + - -Pool Test | Quickstart - - + +Pool | Quickstart + + -

      Pool Test

      -
      'use strict';

      const pool = require('mysql2').createPool({
      host: 'localhost',
      user: 'root',
      database: 'test',
      password: 'root',
      });

      setInterval(() => {
      for (let i = 0; i < 5; ++i) {
      pool.query((err, rows, fields) => {
      console.log(rows, fields);
      // Connection is automatically released once query resolves
      });
      }
      }, 1000);

      setInterval(() => {
      for (let i = 0; i < 5; ++i) {
      pool.getConnection((err, db) => {
      db.query('select sleep(0.5) as qqq', (err, rows, fields) => {
      console.log(rows, fields);
      db.release();
      });
      });
      }
      }, 1000);
      +

      Pool

      +
      'use strict';

      const pool = require('mysql2').createPool({
      host: 'localhost',
      user: 'root',
      database: 'test',
      password: 'root',
      });

      setInterval(() => {
      for (let i = 0; i < 5; ++i) {
      pool.query((err, rows, fields) => {
      console.log(rows, fields);
      // Connection is automatically released once query resolves
      });
      }
      }, 1000);

      setInterval(() => {
      for (let i = 0; i < 5; ++i) {
      pool.getConnection((err, db) => {
      db.query('select sleep(0.5) as qqq', (err, rows, fields) => {
      console.log(rows, fields);
      db.release();
      });
      });
      }
      }, 1000);
      \ No newline at end of file diff --git a/pt-BR/docs/examples/server.html b/pt-BR/docs/examples/tests/server.html similarity index 71% rename from pt-BR/docs/examples/server.html rename to pt-BR/docs/examples/tests/server.html index a7389beee4..95f23a0213 100644 --- a/pt-BR/docs/examples/server.html +++ b/pt-BR/docs/examples/tests/server.html @@ -1,14 +1,14 @@ - + - -Server | Quickstart - - + +Server | Quickstart + + -

      Server

      -
      'use strict';

      const mysql = require('mysql2');
      const flags = require('mysql2/lib/constants/client.js');
      const auth = require('mysql2/lib/auth_41.js');

      function authenticate(params, cb) {
      console.log(params);
      const doubleSha = auth.doubleSha1('pass123');
      const isValid = auth.verifyToken(
      params.authPluginData1,
      params.authPluginData2,
      params.authToken,
      doubleSha
      );
      if (isValid) {
      cb(null);
      } else {
      // for list of codes lib/constants/errors.js
      cb(null, { message: 'wrong password dude', code: 1045 });
      }
      }

      const server = mysql.createServer();
      server.listen(3333);
      server.on('connection', (conn) => {
      // we can deny connection here:
      // conn.writeError({ message: 'secret', code: 123 });
      // conn.close();
      conn.serverHandshake({
      protocolVersion: 10,
      serverVersion: '5.6.10', // 'node.js rocks',
      connectionId: 1234,
      statusFlags: 2,
      characterSet: 8,
      // capabilityFlags: 0xffffff,
      // capabilityFlags: -2113931265,
      capabilityFlags: 2181036031,
      authCallback: authenticate,
      });

      conn.on('field_list', (table, fields) => {
      console.log('FIELD LIST:', table, fields);
      conn.writeEof();
      });

      conn.on('query', (query) => {
      conn.writeColumns([
      {
      catalog: 'def',
      schema: 'test',
      table: 'test_table',
      orgTable: 'test_table',
      name: 'beta',
      orgName: 'beta',
      characterSet: 33,
      columnLength: 384,
      columnType: 253,
      flags: 0,
      decimals: 0,
      },
      ]);
      conn.writeTextRow(['test тест テスト փորձարկում পরীক্ষা kiểm tra ']);
      conn.writeTextRow(['ტესტი પરીક્ષણ מבחן פּרובירן اختبار परीक्षण']);
      conn.writeEof();
      conn.close();
      });
      });
      +

      Server

      +
      'use strict';

      const mysql = require('mysql2');
      const flags = require('mysql2/lib/constants/client.js');
      const auth = require('mysql2/lib/auth_41.js');

      function authenticate(params, cb) {
      console.log(params);
      const doubleSha = auth.doubleSha1('pass123');
      const isValid = auth.verifyToken(
      params.authPluginData1,
      params.authPluginData2,
      params.authToken,
      doubleSha
      );
      if (isValid) {
      cb(null);
      } else {
      // for list of codes lib/constants/errors.js
      cb(null, { message: 'wrong password dude', code: 1045 });
      }
      }

      const server = mysql.createServer();
      server.listen(3333);
      server.on('connection', (conn) => {
      // we can deny connection here:
      // conn.writeError({ message: 'secret', code: 123 });
      // conn.close();
      conn.serverHandshake({
      protocolVersion: 10,
      serverVersion: '5.6.10', // 'node.js rocks',
      connectionId: 1234,
      statusFlags: 2,
      characterSet: 8,
      // capabilityFlags: 0xffffff,
      // capabilityFlags: -2113931265,
      capabilityFlags: 2181036031,
      authCallback: authenticate,
      });

      conn.on('field_list', (table, fields) => {
      console.log('FIELD LIST:', table, fields);
      conn.writeEof();
      });

      conn.on('query', (query) => {
      conn.writeColumns([
      {
      catalog: 'def',
      schema: 'test',
      table: 'test_table',
      orgTable: 'test_table',
      name: 'beta',
      orgName: 'beta',
      characterSet: 33,
      columnLength: 384,
      columnType: 253,
      flags: 0,
      decimals: 0,
      },
      ]);
      conn.writeTextRow(['test тест テスト փորձարկում পরীক্ষা kiểm tra ']);
      conn.writeTextRow(['ტესტი પરીક્ષણ מבחן פּרובירן اختبار परीक्षण']);
      conn.writeEof();
      conn.close();
      });
      });
      \ No newline at end of file diff --git a/pt-BR/docs/examples/typescript/basic-custom-class.html b/pt-BR/docs/examples/typescript/basic-custom-class.html index 312694f51d..f9243aa43c 100644 --- a/pt-BR/docs/examples/typescript/basic-custom-class.html +++ b/pt-BR/docs/examples/typescript/basic-custom-class.html @@ -2,13 +2,13 @@ - -Basic Custom Class | Quickstart - - + +Basic Custom Class | Quickstart + + -

      Basic Custom Class

      -
      /**
      * The types are explicity for learning purpose
      */

      import { PoolOptions } from 'mysql2/promise';
      import { MySQL } from './db.js';

      interface User extends RowDataPacket {
      id: number;
      name: string;
      }

      const access: PoolOptions = {
      host: '',
      user: '',
      password: '',
      database: '',
      };

      (async () => {
      const mysql = new MySQL(access);

      /** Deleting the `users` table, if it exists */
      await mysql.queryResult('DROP TABLE IF EXISTS `users`;');

      /** Creating a minimal user table */
      await mysql.queryResult(
      'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
      );

      /** Inserting some users */
      const [inserted] = await mysql.executeResult(
      'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
      ['Josh', 'John', 'Marie', 'Gween']
      );

      console.log('Inserted:', inserted.affectedRows);

      /** Getting users */
      const [users] = await mysql.queryRows(
      'SELECT * FROM `users` ORDER BY `name` ASC;'
      );

      users.forEach((user: User) => {
      console.log('-----------');
      console.log('id: ', user.id);
      console.log('name:', user.name);
      });

      await mysql.connection.end();
      })();

      /** Output
      *
      * Inserted: 4
      * -----------
      * id: 4
      * name: Gween
      * -----------
      * id: 2
      * name: John
      * -----------
      * id: 1
      * name: Josh
      * -----------
      * id: 3
      * name: Marie
      */
      +

      Basic Custom Class

      +
      /**
      * The types are explicity for learning purpose
      */

      import { PoolOptions } from 'mysql2/promise';
      import { MySQL } from './db.js';

      interface User extends RowDataPacket {
      id: number;
      name: string;
      }

      const access: PoolOptions = {
      host: '',
      user: '',
      password: '',
      database: '',
      };

      (async () => {
      const mysql = new MySQL(access);

      /** Deleting the `users` table, if it exists */
      await mysql.queryResult('DROP TABLE IF EXISTS `users`;');

      /** Creating a minimal user table */
      await mysql.queryResult(
      'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
      );

      /** Inserting some users */
      const [inserted] = await mysql.executeResult(
      'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
      ['Josh', 'John', 'Marie', 'Gween']
      );

      console.log('Inserted:', inserted.affectedRows);

      /** Getting users */
      const [users] = await mysql.queryRows(
      'SELECT * FROM `users` ORDER BY `name` ASC;'
      );

      users.forEach((user: User) => {
      console.log('-----------');
      console.log('id: ', user.id);
      console.log('name:', user.name);
      });

      await mysql.connection.end();
      })();

      /** Output
      *
      * Inserted: 4
      * -----------
      * id: 4
      * name: Gween
      * -----------
      * id: 2
      * name: John
      * -----------
      * id: 1
      * name: Josh
      * -----------
      * id: 3
      * name: Marie
      */
      \ No newline at end of file diff --git a/pt-BR/docs/examples/typescript/procedure-call/procedure-call-packet.html b/pt-BR/docs/examples/typescript/procedure-call/index.html similarity index 72% rename from pt-BR/docs/examples/typescript/procedure-call/procedure-call-packet.html rename to pt-BR/docs/examples/typescript/procedure-call/index.html index 57c09b0d90..43f75c1239 100644 --- a/pt-BR/docs/examples/typescript/procedure-call/procedure-call-packet.html +++ b/pt-BR/docs/examples/typescript/procedure-call/index.html @@ -1,14 +1,14 @@ - + - -Procedure Call Packet | Quickstart - - + +Procedure Call Packet | Quickstart + + -

      Procedure Call Packet

      -
      /**
      * The types are explicity for learning purpose
      * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
      */

      import mysql, {
      ConnectionOptions,
      ProcedureCallPacket,
      ResultSetHeader,
      RowDataPacket,
      } from 'mysql2/promise';

      interface User extends RowDataPacket {
      id: number;
      name: string;
      }

      const isResultSetHeader = (data: unknown): data is ResultSetHeader => {
      if (!data || typeof data !== 'object') return false;

      const keys = [
      'fieldCount',
      'affectedRows',
      'insertId',
      'info',
      'serverStatus',
      'warningStatus',
      'changedRows',
      ];

      return keys.every((key) => key in data);
      };

      (async () => {
      const access: ConnectionOptions = {
      host: '',
      user: '',
      password: '',
      database: '',
      };

      const conn = await mysql.createConnection(access);

      /** Deleting the `users` table, if it exists */
      await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

      /** Creating a minimal user table */
      await conn.query<ResultSetHeader>(
      'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
      );

      /** Inserting some users */
      const [inserted] = await conn.execute<ResultSetHeader>(
      'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
      ['Josh', 'John', 'Marie', 'Gween']
      );

      console.log('Inserted:', inserted.affectedRows);

      /** Deleting the `getUsers` procedure, if it exists */
      await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');

      /** Creating a procedure to get the users */
      await conn.query<ResultSetHeader>(`
      CREATE PROCEDURE getUsers()
      BEGIN
      SELECT * FROM users ORDER BY name ASC;
      END
      `);

      /** Getting users */
      const [procedureResult] =
      await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');

      procedureResult.forEach((users) => {
      /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */
      if (isResultSetHeader(users)) {
      console.log('----------------');
      console.log('Affected Rows:', users.affectedRows);
      } else {
      users.forEach((user) => {
      console.log('----------------');
      console.log('id: ', user.id);
      console.log('name:', user.name);
      });
      }
      });

      await conn.end();
      })();

      /** Output
      *
      * Inserted: 4
      * ----------------
      * id: 4
      * name: Gween
      * ----------------
      * id: 2
      * name: John
      * ----------------
      * id: 1
      * name: Josh
      * ----------------
      * id: 3
      * name: Marie
      * ----------------
      * Affected Rows: 0
      */
      +

      Procedure Call Packet

      +
      /**
      * The types are explicity for learning purpose
      * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
      */

      import mysql, {
      ConnectionOptions,
      ProcedureCallPacket,
      ResultSetHeader,
      RowDataPacket,
      } from 'mysql2/promise';

      interface User extends RowDataPacket {
      id: number;
      name: string;
      }

      const isResultSetHeader = (data: unknown): data is ResultSetHeader => {
      if (!data || typeof data !== 'object') return false;

      const keys = [
      'fieldCount',
      'affectedRows',
      'insertId',
      'info',
      'serverStatus',
      'warningStatus',
      'changedRows',
      ];

      return keys.every((key) => key in data);
      };

      (async () => {
      const access: ConnectionOptions = {
      host: '',
      user: '',
      password: '',
      database: '',
      };

      const conn = await mysql.createConnection(access);

      /** Deleting the `users` table, if it exists */
      await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

      /** Creating a minimal user table */
      await conn.query<ResultSetHeader>(
      'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
      );

      /** Inserting some users */
      const [inserted] = await conn.execute<ResultSetHeader>(
      'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
      ['Josh', 'John', 'Marie', 'Gween']
      );

      console.log('Inserted:', inserted.affectedRows);

      /** Deleting the `getUsers` procedure, if it exists */
      await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');

      /** Creating a procedure to get the users */
      await conn.query<ResultSetHeader>(`
      CREATE PROCEDURE getUsers()
      BEGIN
      SELECT * FROM users ORDER BY name ASC;
      END
      `);

      /** Getting users */
      const [procedureResult] =
      await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');

      procedureResult.forEach((users) => {
      /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */
      if (isResultSetHeader(users)) {
      console.log('----------------');
      console.log('Affected Rows:', users.affectedRows);
      } else {
      users.forEach((user) => {
      console.log('----------------');
      console.log('id: ', user.id);
      console.log('name:', user.name);
      });
      }
      });

      await conn.end();
      })();

      /** Output
      *
      * Inserted: 4
      * ----------------
      * id: 4
      * name: Gween
      * ----------------
      * id: 2
      * name: John
      * ----------------
      * id: 1
      * name: Josh
      * ----------------
      * id: 3
      * name: Marie
      * ----------------
      * Affected Rows: 0
      */
      \ No newline at end of file diff --git a/pt-BR/docs/examples/typescript/procedure-call/row-as-array.html b/pt-BR/docs/examples/typescript/procedure-call/row-as-array.html index 6c19c1dbee..be8a795b95 100644 --- a/pt-BR/docs/examples/typescript/procedure-call/row-as-array.html +++ b/pt-BR/docs/examples/typescript/procedure-call/row-as-array.html @@ -2,13 +2,13 @@ - -Procedure Call Packet (Row as Array) | Quickstart - - + +Procedure Call Packet (Row as Array) | Quickstart + + -

      Procedure Call Packet (Row as Array)

      -
      /**
      * The types are explicity for learning purpose
      * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
      */

      import mysql, {
      ConnectionOptions,
      ProcedureCallPacket,
      ResultSetHeader,
      RowDataPacket,
      } from 'mysql2/promise';

      interface User extends RowDataPacket {
      /** id */
      0: number;
      /** name */
      1: string;
      }

      const isResultSetHeader = (data: unknown): data is ResultSetHeader => {
      if (!data || typeof data !== 'object') return false;

      const keys = [
      'fieldCount',
      'affectedRows',
      'insertId',
      'info',
      'serverStatus',
      'warningStatus',
      'changedRows',
      ];

      return keys.every((key) => key in data);
      };

      (async () => {
      const access: ConnectionOptions = {
      host: '',
      user: '',
      password: '',
      database: '',
      rowsAsArray: true,
      };

      const conn = await mysql.createConnection(access);

      /** Deleting the `users` table, if it exists */
      await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

      /** Creating a minimal user table */
      await conn.query<ResultSetHeader>(
      'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
      );

      /** Inserting some users */
      const [inserted] = await conn.execute<ResultSetHeader>(
      'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
      ['Josh', 'John', 'Marie', 'Gween']
      );

      console.log('Inserted:', inserted.affectedRows);

      /** Deleting the `getUsers` procedure, if it exists */
      await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');

      /** Creating a procedure to get the users */
      await conn.query<ResultSetHeader>(`
      CREATE PROCEDURE getUsers()
      BEGIN
      SELECT * FROM users ORDER BY name ASC;
      END
      `);

      /** Getting users */
      const [procedureResult] =
      await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');

      procedureResult.forEach((users) => {
      /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */
      if (isResultSetHeader(users)) {
      console.log('----------------');
      console.log('Affected Rows:', users.affectedRows);
      } else {
      users.forEach((user) => {
      console.log('----------------');
      console.log('id: ', user[0]);
      console.log('name:', user[1]);
      });
      }
      });

      await conn.end();
      })();

      /** Output
      *
      * Inserted: 4
      * ----------------
      * id: 4
      * name: Gween
      * ----------------
      * id: 2
      * name: John
      * ----------------
      * id: 1
      * name: Josh
      * ----------------
      * id: 3
      * name: Marie
      * ----------------
      * Affected Rows: 0
      */
      +

      Procedure Call Packet (Row as Array)

      +
      /**
      * The types are explicity for learning purpose
      * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
      */

      import mysql, {
      ConnectionOptions,
      ProcedureCallPacket,
      ResultSetHeader,
      RowDataPacket,
      } from 'mysql2/promise';

      interface User extends RowDataPacket {
      /** id */
      0: number;
      /** name */
      1: string;
      }

      const isResultSetHeader = (data: unknown): data is ResultSetHeader => {
      if (!data || typeof data !== 'object') return false;

      const keys = [
      'fieldCount',
      'affectedRows',
      'insertId',
      'info',
      'serverStatus',
      'warningStatus',
      'changedRows',
      ];

      return keys.every((key) => key in data);
      };

      (async () => {
      const access: ConnectionOptions = {
      host: '',
      user: '',
      password: '',
      database: '',
      rowsAsArray: true,
      };

      const conn = await mysql.createConnection(access);

      /** Deleting the `users` table, if it exists */
      await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

      /** Creating a minimal user table */
      await conn.query<ResultSetHeader>(
      'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
      );

      /** Inserting some users */
      const [inserted] = await conn.execute<ResultSetHeader>(
      'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
      ['Josh', 'John', 'Marie', 'Gween']
      );

      console.log('Inserted:', inserted.affectedRows);

      /** Deleting the `getUsers` procedure, if it exists */
      await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');

      /** Creating a procedure to get the users */
      await conn.query<ResultSetHeader>(`
      CREATE PROCEDURE getUsers()
      BEGIN
      SELECT * FROM users ORDER BY name ASC;
      END
      `);

      /** Getting users */
      const [procedureResult] =
      await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');

      procedureResult.forEach((users) => {
      /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */
      if (isResultSetHeader(users)) {
      console.log('----------------');
      console.log('Affected Rows:', users.affectedRows);
      } else {
      users.forEach((user) => {
      console.log('----------------');
      console.log('id: ', user[0]);
      console.log('name:', user[1]);
      });
      }
      });

      await conn.end();
      })();

      /** Output
      *
      * Inserted: 4
      * ----------------
      * id: 4
      * name: Gween
      * ----------------
      * id: 2
      * name: John
      * ----------------
      * id: 1
      * name: Josh
      * ----------------
      * id: 3
      * name: Marie
      * ----------------
      * Affected Rows: 0
      */
      \ No newline at end of file diff --git a/pt-BR/docs/examples/typescript/row-data/row-data-packet.html b/pt-BR/docs/examples/typescript/row-data/index.html similarity index 62% rename from pt-BR/docs/examples/typescript/row-data/row-data-packet.html rename to pt-BR/docs/examples/typescript/row-data/index.html index be17fab940..adf39d7ee4 100644 --- a/pt-BR/docs/examples/typescript/row-data/row-data-packet.html +++ b/pt-BR/docs/examples/typescript/row-data/index.html @@ -1,14 +1,14 @@ - + - -Row Data Packet | Quickstart - - + +Row Data Packet | Quickstart + + -

      Row Data Packet

      -
      /**
      * The types are explicity for learning purpose
      * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
      */

      import mysql, {
      ConnectionOptions,
      ResultSetHeader,
      RowDataPacket,
      } from 'mysql2/promise';

      interface User extends RowDataPacket {
      id: number;
      name: string;
      }

      (async () => {
      const access: ConnectionOptions = {
      host: '',
      user: '',
      password: '',
      database: '',
      };

      const conn = await mysql.createConnection(access);

      /** Deleting the `users` table, if it exists */
      await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

      /** Creating a minimal user table */
      await conn.query<ResultSetHeader>(
      'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
      );

      /** Inserting some users */
      const [inserted] = await conn.execute<ResultSetHeader>(
      'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
      ['Josh', 'John', 'Marie', 'Gween']
      );

      console.log('Inserted:', inserted.affectedRows);

      /** Getting users */
      const [users] = await conn.query<User[]>(
      'SELECT * FROM `users` ORDER BY `name` ASC;'
      );

      users.forEach((user) => {
      console.log('-----------');
      console.log('id: ', user.id);
      console.log('name:', user.name);
      });

      await conn.end();
      })();

      /** Output
      *
      * Inserted: 4
      * -----------
      * id: 4
      * name: Gween
      * -----------
      * id: 2
      * name: John
      * -----------
      * id: 1
      * name: Josh
      * -----------
      * id: 3
      * name: Marie
      */
      +

      Row Data Packet

      +
      /**
      * The types are explicity for learning purpose
      * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
      */

      import mysql, {
      ConnectionOptions,
      ResultSetHeader,
      RowDataPacket,
      } from 'mysql2/promise';

      interface User extends RowDataPacket {
      id: number;
      name: string;
      }

      (async () => {
      const access: ConnectionOptions = {
      host: '',
      user: '',
      password: '',
      database: '',
      };

      const conn = await mysql.createConnection(access);

      /** Deleting the `users` table, if it exists */
      await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

      /** Creating a minimal user table */
      await conn.query<ResultSetHeader>(
      'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
      );

      /** Inserting some users */
      const [inserted] = await conn.execute<ResultSetHeader>(
      'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
      ['Josh', 'John', 'Marie', 'Gween']
      );

      console.log('Inserted:', inserted.affectedRows);

      /** Getting users */
      const [users] = await conn.query<User[]>(
      'SELECT * FROM `users` ORDER BY `name` ASC;'
      );

      users.forEach((user) => {
      console.log('-----------');
      console.log('id: ', user.id);
      console.log('name:', user.name);
      });

      await conn.end();
      })();

      /** Output
      *
      * Inserted: 4
      * -----------
      * id: 4
      * name: Gween
      * -----------
      * id: 2
      * name: John
      * -----------
      * id: 1
      * name: Josh
      * -----------
      * id: 3
      * name: Marie
      */
      \ No newline at end of file diff --git a/pt-BR/docs/examples/typescript/row-data/multi-statements.html b/pt-BR/docs/examples/typescript/row-data/multi-statements.html index ae7e17d5e5..95bfbdb534 100644 --- a/pt-BR/docs/examples/typescript/row-data/multi-statements.html +++ b/pt-BR/docs/examples/typescript/row-data/multi-statements.html @@ -2,13 +2,13 @@ - -Row Data Packet (Multi Statements) | Quickstart - - + +Row Data Packet (Multi Statements) | Quickstart + + -

      Row Data Packet (Multi Statements)

      +

      Row Data Packet (Multi Statements)

      /**
      * The types are explicity for learning purpose
      * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
      */

      import mysql, {
      ConnectionOptions,
      ResultSetHeader,
      RowDataPacket,
      } from 'mysql2/promise';

      interface User extends RowDataPacket {
      id: number;
      name: string;
      }

      (async () => {
      const access: ConnectionOptions = {
      host: '',
      user: '',
      password: '',
      database: '',
      multipleStatements: true,
      };

      const conn = await mysql.createConnection(access);

      /** Deleting the `users` table, if it exists */
      await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

      /** Creating a minimal user table */
      await conn.query<ResultSetHeader>(
      'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
      );

      /** Inserting some users */
      const [inserted] = await conn.execute<ResultSetHeader>(
      'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
      ['Josh', 'John', 'Marie', 'Gween']
      );

      console.log('Inserted:', inserted.affectedRows);

      /** Getting users */
      const [rows] = await conn.query<User[][]>(
      [
      'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2;',
      'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2 OFFSET 2;',
      ].join(' ')
      );

      rows.forEach((users) => {
      users.forEach((user) => {
      console.log('-----------');
      console.log('id: ', user.id);
      console.log('name:', user.name);
      });
      });

      await conn.end();
      })();

      /** Output
      *
      * Inserted: 4
      * -----------
      * id: 4
      * name: Gween
      * -----------
      * id: 2
      * name: John
      * -----------
      * id: 1
      * name: Josh
      * -----------
      * id: 3
      * name: Marie
      */
      \ No newline at end of file diff --git a/pt-BR/docs/examples/typescript/row-data/row-as-array-multi-statements.html b/pt-BR/docs/examples/typescript/row-data/row-as-array-multi-statements.html index 8d5a73fed7..c5bec7e7ce 100644 --- a/pt-BR/docs/examples/typescript/row-data/row-as-array-multi-statements.html +++ b/pt-BR/docs/examples/typescript/row-data/row-as-array-multi-statements.html @@ -2,13 +2,13 @@ - -Row Data Packet (Multi Statements and Row as Array) | Quickstart - - + +Row Data Packet (Multi Statements and Row as Array) | Quickstart + + -

      Row Data Packet (Multi Statements and Row as Array)

      +

      Row Data Packet (Multi Statements and Row as Array)

      /**
      * The types are explicity for learning purpose
      * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
      */

      import mysql, {
      ConnectionOptions,
      ResultSetHeader,
      RowDataPacket,
      } from 'mysql2/promise';

      interface User extends RowDataPacket {
      /** id */
      0: number;
      /** name */
      1: string;
      }

      (async () => {
      const access: ConnectionOptions = {
      host: '',
      user: '',
      password: '',
      database: '',
      multipleStatements: true,
      rowsAsArray: true,
      };

      const conn = await mysql.createConnection(access);

      /** Deleting the `users` table, if it exists */
      await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

      /** Creating a minimal user table */
      await conn.query<ResultSetHeader>(
      'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
      );

      /** Inserting some users */
      const [inserted] = await conn.execute<ResultSetHeader>(
      'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
      ['Josh', 'John', 'Marie', 'Gween']
      );

      console.log('Inserted:', inserted.affectedRows);

      /** Getting users */
      const [rows] = await conn.query<User[][]>(
      [
      'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2;',
      'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2 OFFSET 2;',
      ].join(' ')
      );

      rows.forEach((users) => {
      users.forEach((user) => {
      console.log('-----------');
      console.log('id: ', user[0]);
      console.log('name:', user[1]);
      });
      });

      await conn.end();
      })();

      /** Output
      *
      * Inserted: 4
      * -----------
      * id: 4
      * name: Gween
      * -----------
      * id: 2
      * name: John
      * -----------
      * id: 1
      * name: Josh
      * -----------
      * id: 3
      * name: Marie
      */
      \ No newline at end of file diff --git a/pt-BR/docs/examples/typescript/row-data/row-as-array.html b/pt-BR/docs/examples/typescript/row-data/row-as-array.html index c304995cfe..5589e5b798 100644 --- a/pt-BR/docs/examples/typescript/row-data/row-as-array.html +++ b/pt-BR/docs/examples/typescript/row-data/row-as-array.html @@ -2,13 +2,13 @@ - -Row Data Packet (Row as Array) | Quickstart - - + +Row Data Packet (Row as Array) | Quickstart + + -

      Row Data Packet (Row as Array)

      -
      /**
      * The types are explicity for learning purpose
      * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
      */

      import mysql, {
      ConnectionOptions,
      ResultSetHeader,
      RowDataPacket,
      } from 'mysql2/promise';

      interface User extends RowDataPacket {
      /** id */
      0: number;
      /** name */
      1: string;
      }

      (async () => {
      const access: ConnectionOptions = {
      host: '',
      user: '',
      password: '',
      database: '',
      rowsAsArray: true,
      };

      const conn = await mysql.createConnection(access);

      /** Deleting the `users` table, if it exists */
      await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

      /** Creating a minimal user table */
      await conn.query<ResultSetHeader>(
      'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
      );

      /** Inserting some users */
      const [inserted] = await conn.execute<ResultSetHeader>(
      'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
      ['Josh', 'John', 'Marie', 'Gween']
      );

      console.log('Inserted:', inserted.affectedRows);

      /** Getting users */
      const [users] = await conn.query<User[]>(
      'SELECT * FROM `users` ORDER BY `name` ASC;'
      );

      users.forEach((user) => {
      console.log('-----------');
      console.log('id: ', user[0]);
      console.log('name:', user[1]);
      });

      await conn.end();
      })();

      /** Output
      *
      * Inserted: 4
      * -----------
      * id: 4
      * name: Gween
      * -----------
      * id: 2
      * name: John
      * -----------
      * id: 1
      * name: Josh
      * -----------
      * id: 3
      * name: Marie
      */
      +

      Row Data Packet (Row as Array)

      +
      /**
      * The types are explicity for learning purpose
      * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
      */

      import mysql, {
      ConnectionOptions,
      ResultSetHeader,
      RowDataPacket,
      } from 'mysql2/promise';

      interface User extends RowDataPacket {
      /** id */
      0: number;
      /** name */
      1: string;
      }

      (async () => {
      const access: ConnectionOptions = {
      host: '',
      user: '',
      password: '',
      database: '',
      rowsAsArray: true,
      };

      const conn = await mysql.createConnection(access);

      /** Deleting the `users` table, if it exists */
      await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

      /** Creating a minimal user table */
      await conn.query<ResultSetHeader>(
      'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
      );

      /** Inserting some users */
      const [inserted] = await conn.execute<ResultSetHeader>(
      'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
      ['Josh', 'John', 'Marie', 'Gween']
      );

      console.log('Inserted:', inserted.affectedRows);

      /** Getting users */
      const [users] = await conn.query<User[]>(
      'SELECT * FROM `users` ORDER BY `name` ASC;'
      );

      users.forEach((user) => {
      console.log('-----------');
      console.log('id: ', user[0]);
      console.log('name:', user[1]);
      });

      await conn.end();
      })();

      /** Output
      *
      * Inserted: 4
      * -----------
      * id: 4
      * name: Gween
      * -----------
      * id: 2
      * name: John
      * -----------
      * id: 1
      * name: Josh
      * -----------
      * id: 3
      * name: Marie
      */
      \ No newline at end of file diff --git a/pt-BR/docs/faq.html b/pt-BR/docs/faq.html index 095959ad94..11c96cfa2f 100644 --- a/pt-BR/docs/faq.html +++ b/pt-BR/docs/faq.html @@ -2,15 +2,15 @@ - -FAQ - - + +FAQ + + -
      +

      Frequently Asked Questions

      This section provides answers to commonly asked questions about MySQL2.

      -
      tip

      To explore the FAQs, please use the sidebar navigation on desktop or access the menu on mobile devices.

      +
      dica

      To explore the FAQs, please use the sidebar navigation on desktop or access the menu on mobile devices.

      \ No newline at end of file diff --git a/pt-BR/docs/faq/how-to-handle-errors.html b/pt-BR/docs/faq/how-to-handle-errors.html index 806909985f..f6f5f3bf18 100644 --- a/pt-BR/docs/faq/how-to-handle-errors.html +++ b/pt-BR/docs/faq/how-to-handle-errors.html @@ -2,13 +2,13 @@ - -How to handle errors? | Quickstart - - + +How to handle errors? | Quickstart + + -

      How to handle errors?

      +

      How to handle errors?

      This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as createConnection, createPool, createPoolCluster, execute and query.

      Using callbacks

      createConnection
      2Stable

      This solution has been tested and confirmed as the correct answer.

      Handling connection errors by adding an error event listener:

      const mysql = require('mysql2');

      connection = mysql.createConnection({
      host: '',
      user: '',
      database: '',
      });

      connection.addListener('error', (err) => {
      if (err instanceof Error) {
      console.log(`createConnection error:`, err);
      }
      });
      diff --git a/pt-BR/docs/history-and-why-mysq2.html b/pt-BR/docs/history-and-why-mysq2.html index cf87916030..62f3934fc7 100644 --- a/pt-BR/docs/history-and-why-mysq2.html +++ b/pt-BR/docs/history-and-why-mysq2.html @@ -2,13 +2,13 @@ - -História e Porque o MySQL2 | Quickstart - - + +História e Porque o MySQL2 | Quickstart + + -

      História e Porque o MySQL2

      +

      História e Porque o MySQL2

      O projeto MySQL2 é uma continuação do MySQL-Native. O código do analisador de protocolo (protocol parser) foi reescrito do zero e a API foi alterada para corresponder ao popular mysqljs/mysql. A equipe do MySQL2 está trabalhando em conjunto com a equipe do mysqljs/mysql para fatorar o código compartilhado e movê-lo para a organização mysqljs.

      O MySQL2 é maioritariamente compatível com a API do mysqljs e suporta a maioria de suas funcionalidades. O MySQL2 também oferece essas funcionalidades adicionais:

        diff --git a/pt-BR/docs/stability-badges.html b/pt-BR/docs/stability-badges.html index bf05bcca3c..1b9163e514 100644 --- a/pt-BR/docs/stability-badges.html +++ b/pt-BR/docs/stability-badges.html @@ -2,13 +2,13 @@ - -Stability Badges | Quickstart - - + +Stability Badges | Quickstart + + -

        Stability Badges

        +

        Stability Badges

        The Stability Badges are indications of a section's stability.

        The stability indices are as follows:

        0Deprecated

        The feature might generate warnings and does not assure backward compatibility.

        diff --git a/pt-BR/docs/tags.html b/pt-BR/docs/tags.html new file mode 100644 index 0000000000..38b71d95d5 --- /dev/null +++ b/pt-BR/docs/tags.html @@ -0,0 +1,13 @@ + + + + + +Marcadores | Quickstart + + + + + + + \ No newline at end of file diff --git a/pt-BR/docs/tags/create-connection.html b/pt-BR/docs/tags/create-connection.html new file mode 100644 index 0000000000..5e8201d243 --- /dev/null +++ b/pt-BR/docs/tags/create-connection.html @@ -0,0 +1,13 @@ + + + + + +Um documento selecionado com "createConnection" | Quickstart + + + + + + + \ No newline at end of file diff --git a/pt-BR/docs/tags/create-pool-cluster.html b/pt-BR/docs/tags/create-pool-cluster.html new file mode 100644 index 0000000000..1162ca2de0 --- /dev/null +++ b/pt-BR/docs/tags/create-pool-cluster.html @@ -0,0 +1,13 @@ + + + + + +Um documento selecionado com "createPoolCluster" | Quickstart + + + + + + + \ No newline at end of file diff --git a/pt-BR/docs/tags/create-pool.html b/pt-BR/docs/tags/create-pool.html new file mode 100644 index 0000000000..b30d89bdb2 --- /dev/null +++ b/pt-BR/docs/tags/create-pool.html @@ -0,0 +1,13 @@ + + + + + +Um documento selecionado com "createPool" | Quickstart + + + + + + + \ No newline at end of file diff --git a/pt-BR/docs/tags/execute.html b/pt-BR/docs/tags/execute.html new file mode 100644 index 0000000000..65baf1e0aa --- /dev/null +++ b/pt-BR/docs/tags/execute.html @@ -0,0 +1,13 @@ + + + + + +5 documentos selecionados com "execute" | Quickstart + + + + +

        5 documentos selecionados com "execute"

        Ver todas os Marcadores
        + + \ No newline at end of file diff --git a/pt-BR/docs/tags/parameters.html b/pt-BR/docs/tags/parameters.html new file mode 100644 index 0000000000..deecc6f54a --- /dev/null +++ b/pt-BR/docs/tags/parameters.html @@ -0,0 +1,13 @@ + + + + + +4 documentos selecionados com "Parameters" | Quickstart + + + + + + + \ No newline at end of file diff --git a/pt-BR/docs/tags/placeholders.html b/pt-BR/docs/tags/placeholders.html new file mode 100644 index 0000000000..427ca25d64 --- /dev/null +++ b/pt-BR/docs/tags/placeholders.html @@ -0,0 +1,13 @@ + + + + + +4 documentos selecionados com "Placeholders" | Quickstart + + + + + + + \ No newline at end of file diff --git a/pt-BR/docs/tags/prepared-statements.html b/pt-BR/docs/tags/prepared-statements.html new file mode 100644 index 0000000000..3076d98439 --- /dev/null +++ b/pt-BR/docs/tags/prepared-statements.html @@ -0,0 +1,13 @@ + + + + + +5 documentos selecionados com "Prepared Statements" | Quickstart + + + + +

        5 documentos selecionados com "Prepared Statements"

        Ver todas os Marcadores
        + + \ No newline at end of file diff --git a/pt-BR/docs/tags/query.html b/pt-BR/docs/tags/query.html new file mode 100644 index 0000000000..9d49391032 --- /dev/null +++ b/pt-BR/docs/tags/query.html @@ -0,0 +1,13 @@ + + + + + +4 documentos selecionados com "query" | Quickstart + + + + +

        4 documentos selecionados com "query"

        Ver todas os Marcadores

        DELETE

        The examples below also work for the execute method.

        INSERT

        The examples below also work for the execute method.

        SELECT

        The examples below also work for the execute method.

        UPDATE

        The examples below also work for the execute method.

        + + \ No newline at end of file diff --git a/pt-BR/docs/tags/rds.html b/pt-BR/docs/tags/rds.html new file mode 100644 index 0000000000..326d759ea4 --- /dev/null +++ b/pt-BR/docs/tags/rds.html @@ -0,0 +1,13 @@ + + + + + +3 documentos selecionados com "RDS" | Quickstart + + + + +

        3 documentos selecionados com "RDS"

        Ver todas os Marcadores

        createConnection

        For queries please see the Simple Queries and Prepared Statements examples.

        createPool

        For queries please see the Simple Queries and Prepared Statements examples.

        createPoolCluster

        For queries please see the Simple Queries and Prepared Statements examples.

        + + \ No newline at end of file diff --git a/pt-BR/docs/tags/sha-1.html b/pt-BR/docs/tags/sha-1.html new file mode 100644 index 0000000000..e3ff68c034 --- /dev/null +++ b/pt-BR/docs/tags/sha-1.html @@ -0,0 +1,13 @@ + + + + + +3 documentos selecionados com "SHA1" | Quickstart + + + + +

        3 documentos selecionados com "SHA1"

        Ver todas os Marcadores

        createConnection

        For queries please see the Simple Queries and Prepared Statements examples.

        createPool

        For queries please see the Simple Queries and Prepared Statements examples.

        createPoolCluster

        For queries please see the Simple Queries and Prepared Statements examples.

        + + \ No newline at end of file diff --git a/pt-BR/docs/tags/socks.html b/pt-BR/docs/tags/socks.html new file mode 100644 index 0000000000..c33b8c4c14 --- /dev/null +++ b/pt-BR/docs/tags/socks.html @@ -0,0 +1,13 @@ + + + + + +3 documentos selecionados com "Socks" | Quickstart + + + + +

        3 documentos selecionados com "Socks"

        Ver todas os Marcadores

        createConnection

        For queries please see the Simple Queries and Prepared Statements examples.

        createPool

        For queries please see the Simple Queries and Prepared Statements examples.

        createPoolCluster

        For queries please see the Simple Queries and Prepared Statements examples.

        + + \ No newline at end of file diff --git a/pt-BR/docs/tags/ssl.html b/pt-BR/docs/tags/ssl.html new file mode 100644 index 0000000000..8a29cd3003 --- /dev/null +++ b/pt-BR/docs/tags/ssl.html @@ -0,0 +1,13 @@ + + + + + +3 documentos selecionados com "SSL" | Quickstart + + + + +

        3 documentos selecionados com "SSL"

        Ver todas os Marcadores

        createConnection

        For queries please see the Simple Queries and Prepared Statements examples.

        createPool

        For queries please see the Simple Queries and Prepared Statements examples.

        createPoolCluster

        For queries please see the Simple Queries and Prepared Statements examples.

        + + \ No newline at end of file diff --git a/pt-BR/docs/tags/uri.html b/pt-BR/docs/tags/uri.html new file mode 100644 index 0000000000..95d73a7d50 --- /dev/null +++ b/pt-BR/docs/tags/uri.html @@ -0,0 +1,13 @@ + + + + + +3 documentos selecionados com "URI" | Quickstart + + + + +

        3 documentos selecionados com "URI"

        Ver todas os Marcadores

        createConnection

        For queries please see the Simple Queries and Prepared Statements examples.

        createPool

        For queries please see the Simple Queries and Prepared Statements examples.

        createPoolCluster

        For queries please see the Simple Queries and Prepared Statements examples.

        + + \ No newline at end of file diff --git a/pt-BR/index.html b/pt-BR/index.html index a98c9717cb..e37e558489 100644 --- a/pt-BR/index.html +++ b/pt-BR/index.html @@ -2,10 +2,10 @@ - -Quickstart - - + +Quickstart + +
        diff --git a/pt-BR/search-index.json b/pt-BR/search-index.json index 2d7d911e9a..25528c17a8 100644 --- a/pt-BR/search-index.json +++ b/pt-BR/search-index.json @@ -1 +1 @@ -[{"documents":[{"i":349,"t":"API e Configuração","u":"/node-mysql2/pt-BR/docs/api-and-configurations","b":[]},{"i":351,"t":"Contribuições","u":"/node-mysql2/pt-BR/docs/contributing","b":["Contribuições"]},{"i":353,"t":"Documentation","u":"/node-mysql2/pt-BR/docs/documentation","b":["Docs","Documentação"]},{"i":363,"t":"Website Contributing Guidelines","u":"/node-mysql2/pt-BR/docs/contributing/website","b":["Contribuições"]},{"i":379,"t":"Authentication Switch Request","u":"/node-mysql2/pt-BR/docs/documentation/authentication-switch","b":["Docs","Documentação"]},{"i":383,"t":"MySQL2","u":"/node-mysql2/pt-BR/docs","b":[]},{"i":397,"t":"Extra Features","u":"/node-mysql2/pt-BR/docs/documentation/extras","b":["Docs","Documentação"]},{"i":406,"t":"MySQL Server API","u":"/node-mysql2/pt-BR/docs/documentation/mysql-server","b":["Docs","Documentação"]},{"i":415,"t":"Promise Wrappers","u":"/node-mysql2/pt-BR/docs/documentation/promise-wrapper","b":["Docs","Documentação"]},{"i":423,"t":"Using MySQL2 with TypeScript","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","b":["Docs","Documentação"]},{"i":449,"t":"Prepared Statements","u":"/node-mysql2/pt-BR/docs/documentation/prepared-statements","b":["Docs","Documentação"]},{"i":458,"t":"Agradecimentos","u":"/node-mysql2/pt-BR/docs/acknowledgements","b":[]},{"i":460,"t":"Examples","u":"/node-mysql2/pt-BR/docs/examples","b":["Examples"]},{"i":471,"t":"Binlog Watcher","u":"/node-mysql2/pt-BR/docs/examples/binlog-watcher","b":["Examples"]},{"i":473,"t":"Connect Over Socks","u":"/node-mysql2/pt-BR/docs/examples/connect-over-socks","b":["Examples"]},{"i":475,"t":"Execute","u":"/node-mysql2/pt-BR/docs/examples/execute","b":["Examples"]},{"i":477,"t":"Pass SHA","u":"/node-mysql2/pt-BR/docs/examples/pass-sha","b":["Examples"]},{"i":479,"t":"Prepared Statements","u":"/node-mysql2/pt-BR/docs/examples/prepare","b":["Examples"]},{"i":481,"t":"Promise CO Await","u":"/node-mysql2/pt-BR/docs/examples/promise-co-await","b":["Examples"]},{"i":483,"t":"SELECT","u":"/node-mysql2/pt-BR/docs/examples/queries/select","b":["Examples","Queries"]},{"i":485,"t":"Pool Test","u":"/node-mysql2/pt-BR/docs/examples/pool-test","b":["Examples"]},{"i":487,"t":"MySQL Proxy","u":"/node-mysql2/pt-BR/docs/examples/mysqlproxy","b":["Examples"]},{"i":489,"t":"RDS SSL","u":"/node-mysql2/pt-BR/docs/examples/ssl/rds-ssl","b":["Examples","SSL"]},{"i":491,"t":"Server","u":"/node-mysql2/pt-BR/docs/examples/server","b":["Examples"]},{"i":493,"t":"Select Over SSL","u":"/node-mysql2/pt-BR/docs/examples/ssl/select-over-ssl","b":["Examples","SSL"]},{"i":495,"t":"Procedure Call Packet","u":"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/procedure-call-packet","b":["Examples","TypeScript","Procedure Call Packet"]},{"i":497,"t":"Procedure Call Packet (Row as Array)","u":"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-array","b":["Examples","TypeScript","Procedure Call Packet"]},{"i":499,"t":"Row Data Packet (Row as Array)","u":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array","b":["Examples","TypeScript","Row Data Packet"]},{"i":501,"t":"Row Data Packet (Multi Statements and Row as Array)","u":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array-multi-statements","b":["Examples","TypeScript","Row Data Packet"]},{"i":503,"t":"Row Data Packet (Multi Statements)","u":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/multi-statements","b":["Examples","TypeScript","Row Data Packet"]},{"i":505,"t":"Basic Custom Class","u":"/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-class","b":["Examples","TypeScript"]},{"i":507,"t":"Row Data Packet","u":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-data-packet","b":["Examples","TypeScript","Row Data Packet"]},{"i":509,"t":"Frequently Asked Questions","u":"/node-mysql2/pt-BR/docs/faq","b":["FAQ"]},{"i":511,"t":"How to handle errors?","u":"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors","b":["FAQ"]},{"i":519,"t":"Stability Badges","u":"/node-mysql2/pt-BR/docs/stability-badges","b":[]},{"i":521,"t":"História e Porque o MySQL2","u":"/node-mysql2/pt-BR/docs/history-and-why-mysq2","b":[]}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/349",[0,2.528,1,2.528,2,3.007]],["t/351",[3,4.278]],["t/353",[4,4.278]],["t/363",[5,3.007,6,3.007,7,3.007]],["t/379",[8,3.007,9,3.007,10,3.007]],["t/383",[11,3.147]],["t/397",[12,3.532,13,3.532]],["t/406",[0,2.528,14,2.528,15,2.528]],["t/415",[16,2.969,17,3.532]],["t/423",[11,2.212,18,3.007,19,3.007]],["t/449",[20,2.969,21,2.321]],["t/458",[22,4.278]],["t/460",[23,4.278]],["t/471",[24,3.532,25,3.532]],["t/473",[26,3.007,27,2.528,28,3.007]],["t/475",[29,4.278]],["t/477",[30,3.532,31,3.532]],["t/479",[20,2.969,21,2.321]],["t/481",[16,2.528,32,3.007,33,3.007]],["t/483",[34,3.596]],["t/485",[35,3.532,36,3.532]],["t/487",[14,2.969,37,3.532]],["t/489",[38,3.532,39,2.969]],["t/491",[15,3.596]],["t/493",[27,2.528,34,2.528,39,2.528]],["t/495",[40,2.528,41,2.528,42,1.631]],["t/497",[40,1.949,41,1.949,42,1.258,43,1.379,44,1.705]],["t/499",[42,1.258,43,2.075,44,1.705,45,1.524]],["t/501",[21,1.24,42,1.023,43,1.77,44,1.388,45,1.24,46,1.586]],["t/503",[21,1.524,42,1.258,43,1.379,45,1.524,46,1.949]],["t/505",[47,3.007,48,3.007,49,3.007]],["t/507",[42,1.631,43,1.788,45,1.976]],["t/509",[50,3.007,51,3.007,52,3.007]],["t/511",[53,3.532,54,3.532]],["t/519",[55,3.532,56,3.532]],["t/521",[1,1.949,11,1.705,57,2.318,58,2.318,59,2.318]]],"invertedIndex":[["agradecimento",{"_index":22,"t":{"458":{"position":[[0,14]]}}}],["api",{"_index":0,"t":{"349":{"position":[[0,3]]},"406":{"position":[[13,3]]}}}],["array",{"_index":44,"t":{"497":{"position":[[30,6]]},"499":{"position":[[24,6]]},"501":{"position":[[45,6]]}}}],["ask",{"_index":51,"t":{"509":{"position":[[11,5]]}}}],["authent",{"_index":8,"t":{"379":{"position":[[0,14]]}}}],["await",{"_index":33,"t":{"481":{"position":[[11,5]]}}}],["badg",{"_index":56,"t":{"519":{"position":[[10,6]]}}}],["basic",{"_index":47,"t":{"505":{"position":[[0,5]]}}}],["binlog",{"_index":24,"t":{"471":{"position":[[0,6]]}}}],["call",{"_index":41,"t":{"495":{"position":[[10,4]]},"497":{"position":[[10,4]]}}}],["class",{"_index":49,"t":{"505":{"position":[[13,5]]}}}],["co",{"_index":32,"t":{"481":{"position":[[8,2]]}}}],["configuração",{"_index":2,"t":{"349":{"position":[[6,12]]}}}],["connect",{"_index":26,"t":{"473":{"position":[[0,7]]}}}],["contribuiçõ",{"_index":3,"t":{"351":{"position":[[0,13]]}}}],["contribut",{"_index":6,"t":{"363":{"position":[[8,12]]}}}],["custom",{"_index":48,"t":{"505":{"position":[[6,6]]}}}],["data",{"_index":45,"t":{"499":{"position":[[4,4]]},"501":{"position":[[4,4]]},"503":{"position":[[4,4]]},"507":{"position":[[4,4]]}}}],["document",{"_index":4,"t":{"353":{"position":[[0,13]]}}}],["e",{"_index":1,"t":{"349":{"position":[[4,1]]},"521":{"position":[[9,1]]}}}],["error",{"_index":54,"t":{"511":{"position":[[14,7]]}}}],["exampl",{"_index":23,"t":{"460":{"position":[[0,8]]}}}],["execut",{"_index":29,"t":{"475":{"position":[[0,7]]}}}],["extra",{"_index":12,"t":{"397":{"position":[[0,5]]}}}],["featur",{"_index":13,"t":{"397":{"position":[[6,8]]}}}],["frequent",{"_index":50,"t":{"509":{"position":[[0,10]]}}}],["guidelin",{"_index":7,"t":{"363":{"position":[[21,10]]}}}],["handl",{"_index":53,"t":{"511":{"position":[[7,6]]}}}],["história",{"_index":57,"t":{"521":{"position":[[0,8]]}}}],["multi",{"_index":46,"t":{"501":{"position":[[16,6]]},"503":{"position":[[16,6]]}}}],["mysql",{"_index":14,"t":{"406":{"position":[[0,5]]},"487":{"position":[[0,5]]}}}],["mysql2",{"_index":11,"t":{"383":{"position":[[0,6]]},"423":{"position":[[6,6]]},"521":{"position":[[20,6]]}}}],["o",{"_index":59,"t":{"521":{"position":[[18,1]]}}}],["over",{"_index":27,"t":{"473":{"position":[[8,4]]},"493":{"position":[[7,4]]}}}],["packet",{"_index":42,"t":{"495":{"position":[[15,6]]},"497":{"position":[[15,6]]},"499":{"position":[[9,6]]},"501":{"position":[[9,6]]},"503":{"position":[[9,6]]},"507":{"position":[[9,6]]}}}],["pass",{"_index":30,"t":{"477":{"position":[[0,4]]}}}],["pool",{"_index":35,"t":{"485":{"position":[[0,4]]}}}],["porqu",{"_index":58,"t":{"521":{"position":[[11,6]]}}}],["prepar",{"_index":20,"t":{"449":{"position":[[0,8]]},"479":{"position":[[0,8]]}}}],["procedur",{"_index":40,"t":{"495":{"position":[[0,9]]},"497":{"position":[[0,9]]}}}],["promis",{"_index":16,"t":{"415":{"position":[[0,7]]},"481":{"position":[[0,7]]}}}],["proxi",{"_index":37,"t":{"487":{"position":[[6,5]]}}}],["question",{"_index":52,"t":{"509":{"position":[[17,9]]}}}],["rd",{"_index":38,"t":{"489":{"position":[[0,3]]}}}],["request",{"_index":10,"t":{"379":{"position":[[22,7]]}}}],["row",{"_index":43,"t":{"497":{"position":[[22,4]]},"499":{"position":[[0,3],[16,4]]},"501":{"position":[[0,3],[38,3]]},"503":{"position":[[0,3]]},"507":{"position":[[0,3]]}}}],["select",{"_index":34,"t":{"483":{"position":[[0,6]]},"493":{"position":[[0,6]]}}}],["server",{"_index":15,"t":{"406":{"position":[[6,6]]},"491":{"position":[[0,6]]}}}],["sha",{"_index":31,"t":{"477":{"position":[[5,3]]}}}],["sock",{"_index":28,"t":{"473":{"position":[[13,5]]}}}],["ssl",{"_index":39,"t":{"489":{"position":[[4,3]]},"493":{"position":[[12,3]]}}}],["stabil",{"_index":55,"t":{"519":{"position":[[0,9]]}}}],["statement",{"_index":21,"t":{"449":{"position":[[9,10]]},"479":{"position":[[9,10]]},"501":{"position":[[23,10]]},"503":{"position":[[23,11]]}}}],["switch",{"_index":9,"t":{"379":{"position":[[15,6]]}}}],["test",{"_index":36,"t":{"485":{"position":[[5,4]]}}}],["typescript",{"_index":19,"t":{"423":{"position":[[18,10]]}}}],["us",{"_index":18,"t":{"423":{"position":[[0,5]]}}}],["watcher",{"_index":25,"t":{"471":{"position":[[7,7]]}}}],["websit",{"_index":5,"t":{"363":{"position":[[0,7]]}}}],["wrapper",{"_index":17,"t":{"415":{"position":[[8,8]]}}}]],"pipeline":["stemmer"]}},{"documents":[{"i":355,"t":"Examples","u":"/node-mysql2/pt-BR/docs/documentation","h":"#examples","p":353},{"i":357,"t":"Known incompatibilities with Node MySQL","u":"/node-mysql2/pt-BR/docs/documentation","h":"#known-incompatibilities-with-node-mysql","p":353},{"i":359,"t":"Other Resources","u":"/node-mysql2/pt-BR/docs/documentation","h":"#other-resources","p":353},{"i":361,"t":"Benchmarks","u":"/node-mysql2/pt-BR/docs/documentation","h":"#benchmarks","p":353},{"i":365,"t":"Environment","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#environment","p":363},{"i":367,"t":"Development","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#development","p":363},{"i":369,"t":"Extras Components","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#extras-components","p":363},{"i":371,"t":"History","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#history","p":363},{"i":373,"t":"Stability","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#stability","p":363},{"i":375,"t":"FAQ","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#faq","p":363},{"i":377,"t":"Running Tests","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#running-tests","p":363},{"i":381,"t":"Multi-factor authentication","u":"/node-mysql2/pt-BR/docs/documentation/authentication-switch","h":"#multi-factor-authentication","p":379},{"i":385,"t":"Instalação","u":"/node-mysql2/pt-BR/docs","h":"#instalação","p":383},{"i":387,"t":"Primeira Consulta (Query)","u":"/node-mysql2/pt-BR/docs","h":"#primeira-consulta-query","p":383},{"i":389,"t":"Usando Instruções Preparadas (Prepared Statements)","u":"/node-mysql2/pt-BR/docs","h":"#usando-instruções-preparadas-prepared-statements","p":383},{"i":391,"t":"Usando Conjunto de Conexões (pools)","u":"/node-mysql2/pt-BR/docs","h":"#usando-conjunto-de-conexões-pools","p":383},{"i":393,"t":"Usando o Promise Wrapper","u":"/node-mysql2/pt-BR/docs","h":"#usando-o-promise-wrapper","p":383},{"i":395,"t":"Resultados em Array","u":"/node-mysql2/pt-BR/docs","h":"#resultados-em-array","p":383},{"i":398,"t":"Named placeholders","u":"/node-mysql2/pt-BR/docs/documentation/extras","h":"#named-placeholders","p":397},{"i":400,"t":"Receiving rows as array of columns instead of hash with column name as key:","u":"/node-mysql2/pt-BR/docs/documentation/extras","h":"#receiving-rows-as-array-of-columns-instead-of-hash-with-column-name-as-key","p":397},{"i":402,"t":"Sending tabular data with 'load infile' and local stream:","u":"/node-mysql2/pt-BR/docs/documentation/extras","h":"#sending-tabular-data-with-load-infile-and-local-stream","p":397},{"i":404,"t":"Connecting using custom stream:","u":"/node-mysql2/pt-BR/docs/documentation/extras","h":"#connecting-using-custom-stream","p":397},{"i":407,"t":"Server","u":"/node-mysql2/pt-BR/docs/documentation/mysql-server","h":"#server","p":406},{"i":409,"t":"Events","u":"/node-mysql2/pt-BR/docs/documentation/mysql-server","h":"#events","p":406},{"i":411,"t":"Connection","u":"/node-mysql2/pt-BR/docs/documentation/mysql-server","h":"#connection","p":406},{"i":413,"t":"Events","u":"/node-mysql2/pt-BR/docs/documentation/mysql-server","h":"#events-1","p":406},{"i":417,"t":"Basic Promise","u":"/node-mysql2/pt-BR/docs/documentation/promise-wrapper","h":"#basic-promise","p":415},{"i":419,"t":"ES7 Async Await","u":"/node-mysql2/pt-BR/docs/documentation/promise-wrapper","h":"#es7-async-await","p":415},{"i":421,"t":"With CO","u":"/node-mysql2/pt-BR/docs/documentation/promise-wrapper","h":"#with-co","p":415},{"i":424,"t":"Installation","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#installation","p":423},{"i":426,"t":"Usage","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#usage","p":423},{"i":428,"t":"Connection","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#connection","p":423},{"i":430,"t":"Pool Connection","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#pool-connection","p":423},{"i":432,"t":"Query and Execute","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#query-and-execute","p":423},{"i":434,"t":"Type Specification","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#type-specification","p":423},{"i":435,"t":"RowDataPacket[]","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#rowdatapacket","p":423},{"i":437,"t":"RowDataPacket[][]","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#rowdatapacket-1","p":423},{"i":439,"t":"ResultSetHeader","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#resultsetheader","p":423},{"i":441,"t":"ResultSetHeader[]","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#resultsetheader-1","p":423},{"i":443,"t":"ProcedureCallPacket","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#procedurecallpacket","p":423},{"i":445,"t":"OkPacket","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#okpacket","p":423},{"i":447,"t":"Examples","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#examples","p":423},{"i":450,"t":"Automatic creation, cached and re-used by connection","u":"/node-mysql2/pt-BR/docs/documentation/prepared-statements","h":"#automatic-creation-cached-and-re-used-by-connection","p":449},{"i":452,"t":"Manual prepare / execute","u":"/node-mysql2/pt-BR/docs/documentation/prepared-statements","h":"#manual-prepare--execute","p":449},{"i":454,"t":"Configuration","u":"/node-mysql2/pt-BR/docs/documentation/prepared-statements","h":"","p":449},{"i":456,"t":"Serialization of bind parameters","u":"/node-mysql2/pt-BR/docs/documentation/prepared-statements","h":"","p":449},{"i":461,"t":"Simple SELECT","u":"/node-mysql2/pt-BR/docs/examples","h":"#simple-select","p":460},{"i":463,"t":"Prepared Statement and Parameters","u":"/node-mysql2/pt-BR/docs/examples","h":"#prepared-statement-and-parameters","p":460},{"i":465,"t":"Connecting over encrypted connection","u":"/node-mysql2/pt-BR/docs/examples","h":"#connecting-over-encrypted-connection","p":460},{"i":467,"t":"Simple MySQL proxy server","u":"/node-mysql2/pt-BR/docs/examples","h":"#simple-mysql-proxy-server","p":460},{"i":469,"t":"Examples using MySQL server API","u":"/node-mysql2/pt-BR/docs/examples","h":"#examples-using-mysql-server-api","p":460},{"i":513,"t":"Using callbacks","u":"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors","h":"#using-callbacks","p":511},{"i":515,"t":"Using promises","u":"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors","h":"#using-promises","p":511},{"i":517,"t":"Related Links","u":"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors","h":"#related-links","p":511}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/355",[0,3.595]],["t/357",[1,2.787,2,2.787,3,2.787,4,2.132]],["t/359",[5,4.701]],["t/361",[6,4.701]],["t/365",[7,4.701]],["t/367",[8,4.701]],["t/369",[9,3.825,10,3.825]],["t/371",[11,4.701]],["t/373",[12,4.701]],["t/375",[13,4.701]],["t/377",[14,3.825,15,3.825]],["t/381",[16,3.225,17,3.225,18,3.225]],["t/385",[19,4.701]],["t/387",[20,3.225,21,3.225,22,2.768]],["t/389",[23,1.877,24,2.454,25,2.454,26,1.877,27,2.106]],["t/391",[23,1.877,28,2.454,29,2.454,30,2.454,31,2.106]],["t/393",[23,2.132,32,2.787,33,2.132,34,2.787]],["t/395",[35,3.225,36,3.225,37,2.768]],["t/398",[38,3.283,39,3.825]],["t/400",[37,1.425,38,1.425,40,1.661,41,1.661,42,2.746,43,1.661,44,1.661,45,1.661]],["t/402",[46,1.981,47,1.981,48,1.981,49,1.981,50,1.981,51,1.981,52,1.7]],["t/404",[52,2.392,53,1.653,54,1.782,55,2.787]],["t/407",[56,3.595]],["t/409",[57,4.034]],["t/411",[53,2.787]],["t/413",[57,4.034]],["t/417",[33,2.926,58,3.825]],["t/419",[59,3.225,60,3.225,61,3.225]],["t/421",[62,4.701]],["t/424",[63,4.701]],["t/426",[64,4.701]],["t/428",[53,2.787]],["t/430",[31,3.283,53,2.268]],["t/432",[22,3.283,65,3.283]],["t/434",[66,3.825,67,3.825]],["t/435",[68,4.034]],["t/437",[68,4.034]],["t/439",[69,4.034]],["t/441",[69,4.034]],["t/443",[70,4.701]],["t/445",[71,4.701]],["t/447",[0,3.595]],["t/450",[53,1.3,54,1.402,72,2.192,73,2.192,74,2.192,75,2.192]],["t/452",[26,2.132,65,2.392,76,2.787,77,2.787]],["t/454",[78,4.701]],["t/456",[79,3.225,80,3.225,81,2.768]],["t/461",[82,3.283,83,3.825]],["t/463",[26,2.466,27,2.768,81,2.768]],["t/465",[53,2.445,84,2.787,85,2.787]],["t/467",[4,2.132,56,2.132,82,2.392,86,2.787]],["t/469",[0,1.877,4,1.877,54,1.569,56,1.877,87,2.454]],["t/513",[54,2.446,88,3.825]],["t/515",[33,2.926,54,2.446]],["t/517",[89,3.825,90,3.825]]],"invertedIndex":[["",{"_index":77,"t":{"452":{"position":[[15,1]]}}}],["api",{"_index":87,"t":{"469":{"position":[[28,3]]}}}],["array",{"_index":37,"t":{"395":{"position":[[14,5]]},"400":{"position":[[18,5]]}}}],["async",{"_index":60,"t":{"419":{"position":[[4,5]]}}}],["authent",{"_index":18,"t":{"381":{"position":[[13,14]]}}}],["automat",{"_index":72,"t":{"450":{"position":[[0,9]]}}}],["await",{"_index":61,"t":{"419":{"position":[[10,5]]}}}],["basic",{"_index":58,"t":{"417":{"position":[[0,5]]}}}],["benchmark",{"_index":6,"t":{"361":{"position":[[0,10]]}}}],["bind",{"_index":80,"t":{"456":{"position":[[17,4]]}}}],["cach",{"_index":74,"t":{"450":{"position":[[20,6]]}}}],["callback",{"_index":88,"t":{"513":{"position":[[6,9]]}}}],["co",{"_index":62,"t":{"421":{"position":[[5,2]]}}}],["column",{"_index":42,"t":{"400":{"position":[[27,7],[56,6]]}}}],["compon",{"_index":10,"t":{"369":{"position":[[7,10]]}}}],["conexõ",{"_index":30,"t":{"391":{"position":[[19,8]]}}}],["configur",{"_index":78,"t":{"454":{"position":[[0,13]]}}}],["conjunto",{"_index":28,"t":{"391":{"position":[[7,8]]}}}],["connect",{"_index":53,"t":{"404":{"position":[[0,10]]},"411":{"position":[[0,10]]},"428":{"position":[[0,10]]},"430":{"position":[[5,10]]},"450":{"position":[[42,10]]},"465":{"position":[[0,10],[26,10]]}}}],["consulta",{"_index":21,"t":{"387":{"position":[[9,8]]}}}],["creation",{"_index":73,"t":{"450":{"position":[[10,9]]}}}],["custom",{"_index":55,"t":{"404":{"position":[[17,6]]}}}],["data",{"_index":48,"t":{"402":{"position":[[16,4]]}}}],["de",{"_index":29,"t":{"391":{"position":[[16,2]]}}}],["develop",{"_index":8,"t":{"367":{"position":[[0,11]]}}}],["em",{"_index":36,"t":{"395":{"position":[[11,2]]}}}],["encrypt",{"_index":85,"t":{"465":{"position":[[16,9]]}}}],["environ",{"_index":7,"t":{"365":{"position":[[0,11]]}}}],["es7",{"_index":59,"t":{"419":{"position":[[0,3]]}}}],["event",{"_index":57,"t":{"409":{"position":[[0,6]]},"413":{"position":[[0,6]]}}}],["exampl",{"_index":0,"t":{"355":{"position":[[0,8]]},"447":{"position":[[0,8]]},"469":{"position":[[0,8]]}}}],["execut",{"_index":65,"t":{"432":{"position":[[10,7]]},"452":{"position":[[17,7]]}}}],["extra",{"_index":9,"t":{"369":{"position":[[0,6]]}}}],["factor",{"_index":17,"t":{"381":{"position":[[6,6]]}}}],["faq",{"_index":13,"t":{"375":{"position":[[0,3]]}}}],["hash",{"_index":44,"t":{"400":{"position":[[46,4]]}}}],["histori",{"_index":11,"t":{"371":{"position":[[0,7]]}}}],["incompat",{"_index":2,"t":{"357":{"position":[[6,17]]}}}],["infil",{"_index":50,"t":{"402":{"position":[[32,7]]}}}],["instal",{"_index":63,"t":{"424":{"position":[[0,12]]}}}],["instalação",{"_index":19,"t":{"385":{"position":[[0,10]]}}}],["instead",{"_index":43,"t":{"400":{"position":[[35,7]]}}}],["instruçõ",{"_index":24,"t":{"389":{"position":[[7,10]]}}}],["key",{"_index":45,"t":{"400":{"position":[[71,4]]}}}],["known",{"_index":1,"t":{"357":{"position":[[0,5]]}}}],["link",{"_index":90,"t":{"517":{"position":[[8,5]]}}}],["load",{"_index":49,"t":{"402":{"position":[[26,5]]}}}],["local",{"_index":51,"t":{"402":{"position":[[44,5]]}}}],["manual",{"_index":76,"t":{"452":{"position":[[0,6]]}}}],["multi",{"_index":16,"t":{"381":{"position":[[0,5]]}}}],["mysql",{"_index":4,"t":{"357":{"position":[[34,5]]},"467":{"position":[[7,5]]},"469":{"position":[[15,5]]}}}],["name",{"_index":38,"t":{"398":{"position":[[0,5]]},"400":{"position":[[63,4]]}}}],["node",{"_index":3,"t":{"357":{"position":[[29,4]]}}}],["o",{"_index":32,"t":{"393":{"position":[[7,1]]}}}],["okpacket",{"_index":71,"t":{"445":{"position":[[0,8]]}}}],["over",{"_index":84,"t":{"465":{"position":[[11,4]]}}}],["paramet",{"_index":81,"t":{"456":{"position":[[22,10]]},"463":{"position":[[23,10]]}}}],["placehold",{"_index":39,"t":{"398":{"position":[[6,12]]}}}],["pool",{"_index":31,"t":{"391":{"position":[[28,7]]},"430":{"position":[[0,4]]}}}],["prepar",{"_index":26,"t":{"389":{"position":[[29,9]]},"452":{"position":[[7,7]]},"463":{"position":[[0,8]]}}}],["preparada",{"_index":25,"t":{"389":{"position":[[18,10]]}}}],["primeira",{"_index":20,"t":{"387":{"position":[[0,8]]}}}],["procedurecallpacket",{"_index":70,"t":{"443":{"position":[[0,19]]}}}],["promis",{"_index":33,"t":{"393":{"position":[[9,7]]},"417":{"position":[[6,7]]},"515":{"position":[[6,8]]}}}],["proxi",{"_index":86,"t":{"467":{"position":[[13,5]]}}}],["queri",{"_index":22,"t":{"387":{"position":[[18,7]]},"432":{"position":[[0,5]]}}}],["re",{"_index":75,"t":{"450":{"position":[[31,2]]}}}],["receiv",{"_index":40,"t":{"400":{"position":[[0,9]]}}}],["relat",{"_index":89,"t":{"517":{"position":[[0,7]]}}}],["resourc",{"_index":5,"t":{"359":{"position":[[6,9]]}}}],["resultado",{"_index":35,"t":{"395":{"position":[[0,10]]}}}],["resultsethead",{"_index":69,"t":{"439":{"position":[[0,15]]},"441":{"position":[[0,17]]}}}],["row",{"_index":41,"t":{"400":{"position":[[10,4]]}}}],["rowdatapacket",{"_index":68,"t":{"435":{"position":[[0,15]]},"437":{"position":[[0,17]]}}}],["run",{"_index":14,"t":{"377":{"position":[[0,7]]}}}],["select",{"_index":83,"t":{"461":{"position":[[7,6]]}}}],["send",{"_index":46,"t":{"402":{"position":[[0,7]]}}}],["serial",{"_index":79,"t":{"456":{"position":[[0,13]]}}}],["server",{"_index":56,"t":{"407":{"position":[[0,6]]},"467":{"position":[[19,6]]},"469":{"position":[[21,6]]}}}],["simpl",{"_index":82,"t":{"461":{"position":[[0,6]]},"467":{"position":[[0,6]]}}}],["specif",{"_index":67,"t":{"434":{"position":[[5,13]]}}}],["stabil",{"_index":12,"t":{"373":{"position":[[0,9]]}}}],["statement",{"_index":27,"t":{"389":{"position":[[39,11]]},"463":{"position":[[9,9]]}}}],["stream",{"_index":52,"t":{"402":{"position":[[50,7]]},"404":{"position":[[24,7]]}}}],["tabular",{"_index":47,"t":{"402":{"position":[[8,7]]}}}],["test",{"_index":15,"t":{"377":{"position":[[8,5]]}}}],["type",{"_index":66,"t":{"434":{"position":[[0,4]]}}}],["us",{"_index":54,"t":{"404":{"position":[[11,5]]},"450":{"position":[[34,4]]},"469":{"position":[[9,5]]},"513":{"position":[[0,5]]},"515":{"position":[[0,5]]}}}],["usag",{"_index":64,"t":{"426":{"position":[[0,5]]}}}],["usando",{"_index":23,"t":{"389":{"position":[[0,6]]},"391":{"position":[[0,6]]},"393":{"position":[[0,6]]}}}],["wrapper",{"_index":34,"t":{"393":{"position":[[17,7]]}}}]],"pipeline":["stemmer"]}},{"documents":[{"i":350,"t":"O MySQL2 é maioritariamente compatível com a API do Node MySQL. Uma incompatibilidade conhecida é que os valores em DECIMAL são retornados como strings, enquanto no Node MySQL eles são retornados como números. Isso inclui o resultado das funções SUM() e AVG() quando aplicadas a argumentos INTEGER. Isso é feito deliberadamente para evitar a perda de precisão - veja https://github.com/sidorares/node-mysql2/issues/935. info Se você encontrar qualquer outra incompatibilidade com o Node MySQL, por favor, reporte através do acompanhamento de Issues. Nós corrigiremos a incompatibilidade relatada como uma prioridade.","s":"API e Configuração","u":"/node-mysql2/pt-BR/docs/api-and-configurations","h":"","p":349},{"i":352,"t":"Quer melhorar algo no MySQL2? Consulte o arquivo Contributing.md para instruções detalhadas sobre como começar.","s":"Contribuições","u":"/node-mysql2/pt-BR/docs/contributing","h":"","p":351},{"i":354,"t":"MySQL2 aims to be a drop in replacement for Node MySQL. note If you see any API incompatibilities with Node MySQL, please report via github issue. Not only MySQL2 offers better performance over Node MySQL, we also support these additional features: Prepared Statements Promise Wrapper Authentication Switch More Features MySQL Server Pooling SSL MySQL Compression Binary Log Protocol Client","s":"Documentation","u":"/node-mysql2/pt-BR/docs/documentation","h":"","p":353},{"i":356,"t":"Please check these examples for MySQL2.","s":"Examples","u":"/node-mysql2/pt-BR/docs/documentation","h":"#examples","p":353},{"i":358,"t":"zeroFill flag is ignored in type conversion. You need to check corresponding field's zeroFill flag and convert to string manually if this is of importance to you. DECIMAL and NEWDECIMAL types always returned as string unless you pass this config option: { decimalNumbers: true, } note This option could lose precision on the number as Javascript Number is a Float!","s":"Known incompatibilities with Node MySQL","u":"/node-mysql2/pt-BR/docs/documentation","h":"#known-incompatibilities-with-node-mysql","p":353},{"i":360,"t":"Wire protocol documentation Node MySQL - Most popular node.js mysql client library node-mariasql - Bindings to libmariasql. One of the fastest clients node-libmysqlclient - Bindings to libmysqlclient go-mysql - MySQL Go client (prepared statements, binlog protocol, server)","s":"Other Resources","u":"/node-mysql2/pt-BR/docs/documentation","h":"#other-resources","p":353},{"i":362,"t":"https://gist.github.com/sidorares/ffe9ee9c423f763e3b6b npm run benchmarks node-mysql-benchmarks try to run example benchmarks on your system","s":"Benchmarks","u":"/node-mysql2/pt-BR/docs/documentation","h":"#benchmarks","p":353},{"i":364,"t":"This website is built using Docusaurus 3, a modern static website generator.","s":"Website Contributing Guidelines","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"","p":363},{"i":366,"t":"You will need these tools installed on your system: Node.js (18.x or higher)","s":"Environment","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#environment","p":363},{"i":368,"t":"Fork the MySQL2 repository. Download your forked repository locally. The website's workspace is the \"website\" directory in node-mysql2 root. Create a new branch from master (optional). Run cd website to enter the website workspace. Run npm ci to install the dependecies from package-lock.json. Run npm start to starting the local development. It will start a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. For Docusaurus complete documentation, please see here. CLI example git clone https://github.com/sidorares/node-mysql2.git git checkout -b website # optional cd /path-to/node-mysql2/website npm ci npm start Documentation is auto-generated from MDX files placed in these directories: ./docs/documentation ./docs/examples ./docs/faq Caution Note that the website has its own package.json. Please, do not install dependencies for the website in node-mysql2 root.","s":"Development","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#development","p":363},{"i":370,"t":"Every extra component is thoroughly documented with complete typings descriptions. Docusaurus Markdown Features: The MDX compiler transforms Markdown files to React components, and allows you to use JSX in your Markdown content. This enables you to easily interleave React components within your content, and create delightful learning experiences.","s":"Extras Components","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#extras-components","p":363},{"i":372,"t":"The History component displays version changes in a table format, listing version numbers alongside their changes. import { History } from '@site/src/components/History'; tip You can also utilize React components in the changes option. Example History Version Changes v1.0.0 Some change message.","s":"History","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#history","p":363},{"i":374,"t":"See the Stability Badges for more detais. import { Stability } from '@site/src/components/Stability'; tip You can also utilize React components in the message option. Available levels: 0, 1, 1.1, 1.2, 2 and 3. Example 2Stable 2Stable Some message.","s":"Stability","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#stability","p":363},{"i":376,"t":"import { FAQ } from '@site/src/components/FAQ'; > Some markdown (**MDX**) content. tip The FAQ component can be utilized in any section or page. Code blocks are compatible and can be used within the FAQ component. Example Title Some markdown (MDX) content.","s":"FAQ","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#faq","p":363},{"i":378,"t":"npm run test Check Prettier and ESLint rules for compliance npm run lintcheck Included in the GitHub Actions workflow. Check for typings errors 1Experimental Checks for MDX components are missing. npm run typecheck Included in the GitHub Actions workflow. Clear and build the website npm run clear npm run build Included in the GitHub Actions workflow. Fix issues from Prettier and ESLint rules npm run lint To prevent lint issues, it is recommended to execute this command before creating your commit. Not included in the GitHub Actions workflow.","s":"Running Tests","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#running-tests","p":363},{"i":380,"t":"During the connection phase the server may ask the client to switch to a different auth method. If the authPlugins connection config option is set, it must be an object where each key is the name of a potential authentication plugin requested by the server, and the corresponding value must be a function that optionally receives the connection config options and returns another function, which in turn, optionally receives the switch request data. The plugin is loaded with a ({user,password,...}) signature, and each call has a (pluginData) signature. Each call should make the plugin return any additional authentication data (Buffer) that should be sent back to the server, either synchronously or asynchronously using a Promise, or should yield an error accordingly. Example: (imaginary ssh-key-auth plugin) pseudo code const conn = mysql.createConnection({ user: 'test_user', password: 'test', database: 'test_database', authPlugins: { 'ssh-key-auth': function ({ password }) { return function (pluginData) { return getPrivate(key) .then((key) => { const response = encrypt(key, password, pluginData); // continue handshake by sending response data return response; }) .catch((err) => { // throw error to propagate error to connect/changeUser handlers }); }; }, }, }); There is also a deprecated API where if a authSwitchHandler connection config option is set it must be a function that receives switch request data and responds via a callback. In this case, the first invocation always has a ({pluginName, pluginData}) signature, following calls - ({pluginData}). The client replies with an opaque blob matching the requested plugin via callback(null, data: Buffer). const conn = mysql.createConnection({ user: 'test_user', password: 'test', database: 'test_database', authSwitchHandler: function ({ pluginName, pluginData }, cb) { if (pluginName === 'ssh-key-auth') { getPrivateKey((key) => { const response = encrypt(key, pluginData); // continue handshake by sending response data // respond with error to propagate error to connect/changeUser handlers cb(null, response); }); } else { const err = new Error( `Unknown AuthSwitchRequest plugin name ${pluginName}` ); err.fatal = true; cb(err); } }, }); The initial handshake is always performed using mysql_native_password plugin. This will be possible to override in future versions. Note that if the mysql_native_password method is requested it will be handled internally according to Authentication::Native41 and no authPlugins function or the authSwitchHandler will be invoked. These MAY be called multiple times if the plugin algorithm requires multiple roundtrips of data exchange between client and server.","s":"Authentication Switch Request","u":"/node-mysql2/pt-BR/docs/documentation/authentication-switch","h":"","p":379},{"i":382,"t":"If the user requires multi-factor authentication in the server, the client will receive a AuthNextFactor request, which is similar in structure to the regular authentication switch request and contains the name and possible initial data for the additional authentication factor plugin (up to 3). Additional passwords can be provided using the connection config options - password2 and password3. Again, for each authentication factor, multiple roundtrips of data exchange can be required by the plugin algoritm. const conn = mysql.createConnection({ user: 'test_user', password: 'secret1', password2: 'secret2', password3: 'secret3', database: 'test_database', authPlugins: { // password1 === password 'auth-plugin1': function ({ password1 }) { return function (serverPluginData) { return clientPluginData(password1, serverPluginData); }; }, 'auth-plugin2': function ({ password2 }) { return function (serverPluginData) { return clientPluginData(password2, serverPluginData); }; }, 'auth-plugin3': function ({ password3 }) { return function (serverPluginData) { return clientPluginData(password3, serverPluginData); }; }, }, });","s":"Multi-factor authentication","u":"/node-mysql2/pt-BR/docs/documentation/authentication-switch","h":"#multi-factor-authentication","p":379},{"i":384,"t":"Cliente MySQL para Node.js com foco em performance. Suporta instruções preparadas (prepared statements), Codificações non-utf8, protocolo de log binário (binary log protocol), compressão, SSL e muito mais.","s":"MySQL2","u":"/node-mysql2/pt-BR/docs","h":"","p":383},{"i":386,"t":"O MySQL2 não tem restrições nativas e pode ser instalado no Linux, Mac OS ou Windows sem qualquer problema. JavaScript TypeScript npm install --save mysql2 npm install --save mysql2 npm install --save-dev @types/node Para documentação e exemplos usando TypeScript, veja aqui.","s":"Instalação","u":"/node-mysql2/pt-BR/docs","h":"#instalação","p":383},{"i":388,"t":"Promise Callback // Obtém o cliente import mysql from 'mysql2/promise'; // Cria a conexão com o Banco de Dados const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // Consulta simples try { const [results, fields] = await connection.query( 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45' ); console.log(results); // \"results\" contêm as linhas retornadas pelo servidor console.log(fields); // \"fields\" contêm metadados adicionais sobre os resultados, quando disponíveis } catch (err) { console.log(err); } // Utilizando espaços reservados (placeholders) try { const [results] = await connection.query( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Page', 45] ); console.log(results); } catch (err) { console.log(err); } // Obtém o cliente const mysql = require('mysql2'); // Cria a conexão com o Banco de Dados const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // Consulta simples connection.query( 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45', function (err, results, fields) { console.log(results); // \"results\" contêm as linhas retornadas pelo servidor console.log(fields); // \"fields\" contêm metadados adicionais sobre os resultados, quando disponíveis } ); // Utilizando espaços reservados (placeholders) connection.query( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Page', 45], function (err, results) { console.log(results); } );","s":"Primeira Consulta (Query)","u":"/node-mysql2/pt-BR/docs","h":"#primeira-consulta-query","p":383},{"i":390,"t":"Com o MySQL2 você também pode obter Instruções Preparadas (Prepared Statements). Dessa forma o MySQL não precisa preparar um plano para a mesma consulta todas as vezes, resultando em um melhor desempenho. Se você não sabe por que isso é importante, veja essa discussão: Como as instruções preparadas (prepared statements) podem proteger contra ataques de injeção SQL O MySQL2 fornece o método auxiliar execute que irá preparar e consultar as declarações (statements) SQL. Além disso, você também pode usar os métodos prepare e unprepare para preparar ou desfazer a preparação de declarações (statements) manualmente, se necessário. Promise Callback import mysql from 'mysql2/promise'; try { // Cria a conexão com o Banco de Dados const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // \"execute\" irá chamar internamente a preparação e a consulta (query) const [results, fields] = await connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Rick C-137', 53] ); console.log(results); // \"results\" contêm as linhas retornadas pelo servidor console.log(fields); // \"fields\" contêm metadados adicionais sobre os resultados, quando disponíveis } catch (err) { console.log(err); } const mysql = require('mysql2'); // Cria a conexão com o Banco de Dados const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // \"execute\" irá chamar internamente a preparação e a consulta (query) connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Rick C-137', 53], function (err, results, fields) { console.log(results); // \"results\" contêm as linhas retornadas pelo servidor console.log(fields); // \"fields\" contêm metadados adicionais sobre os resultados, quando disponíveis } ); tip Se você executar a mesma declaração novamente, ela será selecionada a partir do LRU Cache, o que economizará tempo de preparação da consulta e proporcionará melhor desempenho.","s":"Usando Instruções Preparadas (Prepared Statements)","u":"/node-mysql2/pt-BR/docs","h":"#usando-instruções-preparadas-prepared-statements","p":383},{"i":392,"t":"O conjunto de conexões (pools) ajuda a reduzir o tempo gasto na conexão com o servidor MySQL, reutilizando uma conexão anterior e deixando-as abertas ao invés de fechá-las quando você termina de usá-las. Isto melhora a latência das consultas (queries), pois evita toda a sobrecarga associada à criação de uma nova conexão. Promise Callback import mysql from 'mysql2/promise'; // Cria a conexão (pool). As definições específicadas do \"createPool\" são as predefinições padrões const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', waitForConnections: true, connectionLimit: 10, maxIdle: 10, // Máximo de conexões inativas; o valor padrão é o mesmo que \"connectionLimit\" idleTimeout: 60000, // Tempo limite das conexões inativas em milissegundos; o valor padrão é \"60000\" queueLimit: 0, enableKeepAlive: true, keepAliveInitialDelay: 0, }); const mysql = require('mysql2'); // Cria a conexão (pool). As definições específicadas do \"createPool\" são as predefinições padrões const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', waitForConnections: true, connectionLimit: 10, maxIdle: 10, // Máximo de conexões inativas; o valor padrão é o mesmo que \"connectionLimit\" idleTimeout: 60000, // Tempo limite das conexões inativas em milissegundos; o valor padrão é \"60000\" queueLimit: 0, enableKeepAlive: true, keepAliveInitialDelay: 0, }); note O pool não estabelece todas as conexões previamente, mas as cria sob demanda até que o limite de conexões seja atingido. Você pode usar o pool da mesma maneira como em uma conexão (usando pool.query() e pool.execute()): Promise Callback try { // Para a inicialização do \"pool\", veja acima const [rows, fields] = await pool.query('SELECT `field` FROM `table`'); // A conexão é automaticamente liberada quando a consulta (query) é resolvida } catch (err) { console.log(err); } // Para a inicialização do \"pool\", veja acima pool.query('SELECT `field` FROM `table`', function (err, rows, fields) { // A conexão é automaticamente liberada quando a consulta (query) é resolvida }); Alternativamente, também existe a possibilidade de adquirir manualmente uma conexão do pool e liberá-la posteriormente: Promise Callback // Para a inicialização do \"pool\", veja acima const conn = await pool.getConnection(); // Fazer algo com a conexão await conn.query(/* ... */); // Não se esqueça de liberar a conexão quando terminar! pool.releaseConnection(conn); // Para a inicialização do \"pool\", veja acima pool.getConnection(function (err, conn) { // Fazer algo com a conexão conn.query(/* ... */); // Não se esqueça de liberar a conexão quando terminar! pool.releaseConnection(conn); }); Adicionalmente, você pode liberar a conexão usando o objeto connection: conn.release();","s":"Usando Conjunto de Conexões (pools)","u":"/node-mysql2/pt-BR/docs","h":"#usando-conjunto-de-conexões-pools","p":383},{"i":394,"t":"O MySQL2 também suporta Promise API. O que funciona muito bem com o ES7 async await. import mysql from 'mysql2/promise'; async function main() { // Cria a conexão com o Banco de Dados const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // Consulta no Banco de Dados const [rows, fields] = await connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Morty', 14] ); } O MySQL2 usa o objeto Promise padrão disponível no escopo. Mas você pode escolher qual implementação de Promise deseja usar. // Obtém o cliente import mysql from 'mysql2/promise'; // Obtém a implementação de \"Promise\" (nós usaremos o \"bluebird\") import bluebird from 'bluebird'; // Cria a conexão, especificando o \"bluebird\" como \"Promise\" const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', Promise: bluebird, }); // Consulta no Banco de Dados const [rows, fields] = await connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Morty', 14] ); MySQL2 also exposes a .promise() function on Pools, so you can create a promise/non-promise connections from the same pool. import mysql from 'mysql2'; async function main() { // create the pool const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', }); // now get a Promise wrapped instance of that pool const promisePool = pool.promise(); // query database using promises const [rows, fields] = await promisePool.query('SELECT 1'); } O MySQL2 também expõe o método .promise() em Pools, então você pode criar conexões \"promise/non-promise\" para o mesmo pool. const mysql = require('mysql2'); // Cria a conexão const conn = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); conn .promise() .query('SELECT 1') .then(([rows, fields]) => { console.log(rows); }) .catch(console.log) .then(() => conn.end());","s":"Usando o Promise Wrapper","u":"/node-mysql2/pt-BR/docs","h":"#usando-o-promise-wrapper","p":383},{"i":396,"t":"Se você tiver duas colunas com o mesmo nome, pode preferir receber os resultados como um array, em vez de um objeto, para evitar conflitos. Isso é uma divergência da biblioteca Node MySQL. Por exemplo: SELECT 1 AS `foo`, 2 AS `foo`. Você pode habilitar essa configuração tanto no nível de conexão (aplica-se a todas as consultas), quanto no nível de consulta (aplica-se apenas a essa consulta específica). Connection Level​ Promise Callback const conn = await mysql.createConnection({ host: 'localhost', database: 'test', user: 'root', rowsAsArray: true, }); const conn = mysql.createConnection({ host: 'localhost', database: 'test', user: 'root', rowsAsArray: true, }); Query Level​ Promise Callback try { const [results, fields] = await conn.query({ sql: 'SELECT 1 AS `foo`, 2 AS `foo`', rowsAsArray: true, }); console.log(results); // nessa consulta, \"results\" contêm um array de arrays ao invés de um array de objetos console.log(fields); // \"fields\" mantêm-se inalterados } catch (err) { console.log(err); } conn.query( { sql: 'SELECT 1 AS `foo`, 2 AS `foo`', rowsAsArray: true, }, function (err, results, fields) { console.log(results); // nessa consulta, \"results\" contêm um array de arrays ao invés de um array de objetos console.log(fields); // \"fields\" mantêm-se inalterados } ); Obtendo Ajuda Precisa de ajuda? Faça sua pergunta no Stack Overflow ou GitHub. Se você encontrou um erro, registre-o no GitHub.","s":"Resultados em Array","u":"/node-mysql2/pt-BR/docs","h":"#resultados-em-array","p":383},{"i":399,"t":"You can use named placeholders for parameters by setting namedPlaceholders config value or query/execute time option. Named placeholders are converted to unnamed ? on the client (mysql protocol does not support named parameters). If you reference parameter multiple times under the same name it is sent to server multiple times. Unnamed placeholders can still be used by providing the values as an array instead of an object. connection.config.namedPlaceholders = true; connection.execute('select :x + :y as z', { x: 1, y: 2 }, (err, rows) => { // statement prepared as \"select ? + ? as z\" and executed with [1,2] values // rows returned: [ { z: 3 } ] }); connection.execute('select :x + :x as z', { x: 1 }, (err, rows) => { // select ? + ? as z, execute with [1, 1] }); connection.query('select :x + :x as z', { x: 1 }, (err, rows) => { // query select 1 + 1 as z }); // unnamed placeholders are still valid if the values are provided in an array connection.query('select ? + ? as z', [1, 1], (err, rows) => { // query select 1 + 1 as z });","s":"Named placeholders","u":"/node-mysql2/pt-BR/docs/documentation/extras","h":"#named-placeholders","p":397},{"i":401,"t":"const options = { sql: 'select A,B,C,D from foo', rowsAsArray: true }; connection.query(options, (err, results) => { /* results will be an array of arrays like this now: [[ 'field A value', 'field B value', 'field C value', 'field D value', ], ...] */ });","s":"Receiving rows as array of columns instead of hash with column name as key:","u":"/node-mysql2/pt-BR/docs/documentation/extras","h":"#receiving-rows-as-array-of-columns-instead-of-hash-with-column-name-as-key","p":397},{"i":403,"t":"In addition to sending local fs files you can send any stream using infileStreamFactory query option. If set, it has to be a function that return a readable stream. It gets file path from query as a parameter. Note: starting from version 2.0 infileStreamFactory is required parameter for LOAD DATA LOCAL INFILE. Response from server indicates that it wants access to a local file and no infileStreamFactory option is provided the query ends with error. // local file connection.query( 'LOAD DATA LOCAL INFILE \"/tmp/data.csv\" INTO TABLE test FIELDS TERMINATED BY ? (id, title)', onInserted1 ); // local stream const sql = 'LOAD DATA LOCAL INFILE \"mystream\" INTO TABLE test FIELDS TERMINATED BY ? (id, title)'; connection.query( { sql: sql, infileStreamFactory: function (path) { return getStream(); }, }, onInserted2 ); The infileStreamFactory option may also be set at a connection-level: const fs = require('fs'); const mysql = require('mysql2'); const connection = mysql.createConnection({ user: 'test', database: 'test', infileStreamFactory: (path) => { // Validate file path const validPaths = ['/tmp/data.csv']; if (!validPaths.includes(path)) { throw new Error( `invalid file path: ${path}: expected to be one of ${validPaths.join( ',' )}` ); } return fs.createReadStream(path); }, }); connection.query( 'LOAD DATA LOCAL INFILE \"/tmp/data.csv\" INTO TABLE test', onInserted );","s":"Sending tabular data with 'load infile' and local stream:","u":"/node-mysql2/pt-BR/docs/documentation/extras","h":"#sending-tabular-data-with-load-infile-and-local-stream","p":397},{"i":405,"t":"const net = require('net'); const mysql = require('mysql2'); const shape = require('shaper'); const connection = mysql.createConnection({ user: 'test', database: 'test', stream: net.connect('/tmp/mysql.sock').pipe(shape(10)), // emulate 10 bytes/sec link }); connection.query('SELECT 1+1 as test1', console.log); stream also can be a function. In that case function result has to be duplex stream, and it is used for connection transport. This is required if you connect pool using custom transport as new pooled connection needs new stream. Example connecting over socks5 proxy: const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const pool = mysql.createPool({ database: 'test', user: 'foo', password: 'bar', stream: function (cb) { const newStream = new SocksConnection( { host: 'remote.host', port: 3306 }, { host: 'localhost', port: 1080 } ); cb(null, newStream); }, }); In addition to password createConnection(), createPool() and changeUser() accept passwordSha1 option. This is useful when implementing proxies as plaintext password might be not available.","s":"Connecting using custom stream:","u":"/node-mysql2/pt-BR/docs/documentation/extras","h":"#connecting-using-custom-stream","p":397},{"i":408,"t":"createServer() - creates server instance Server.listen - listen port / unix socket (same arguments as net.Server.listen)","s":"Server","u":"/node-mysql2/pt-BR/docs/documentation/mysql-server","h":"#server","p":406},{"i":410,"t":"connect new incoming connection.","s":"Events","u":"/node-mysql2/pt-BR/docs/documentation/mysql-server","h":"#events","p":406},{"i":412,"t":"serverHandshake({ serverVersion, protocolVersion, connectionId, statusFlags, characterSet, capabilityFlags }) send server handshake initialisation packet, wait handshake response and start listening for commands writeOk({ affectedRows: num, insertId: num }) send OK packet to client writeEof(warnings, statusFlags) send EOF packet writeTextResult(rows, fields) write query result to client. Rows and fields are in the same format as in connection.query callback. writeColumns(fields) write fields + EOF packets. writeTextRow(row) write array (not hash!) of values as result row TODO: binary protocol","s":"Connection","u":"/node-mysql2/pt-BR/docs/documentation/mysql-server","h":"#connection","p":406},{"i":414,"t":"Every command packet received by the server will be emitted as a packet event with the parameters: packet: Packet The packet itself knownCommand: boolean is this command known to the server *commandCode: number the parsed command code (first byte) In addition special events are emitted for commands received from the client. If no listener is present a fallback behavior will be invoked. quit() Default: close the connection init_db(schemaName: string) Default: return OK query(sql: string) Please attach a listener to this. Default: return HA_ERR_INTERNAL_ERROR field_list(table: string, fields: string) Default: return ER_WARN_DEPRECATED_SYNTAX ping() - Default: return OK","s":"Events","u":"/node-mysql2/pt-BR/docs/documentation/mysql-server","h":"#events-1","p":406},{"i":416,"t":"In addition to errback interface there is thin wrapper to expose Promise-based api","s":"Promise Wrappers","u":"/node-mysql2/pt-BR/docs/documentation/promise-wrapper","h":"","p":415},{"i":418,"t":"/* eslint-env es6 */ const mysql = require('mysql2/promise'); // or require('mysql2').createConnectionPromise mysql .createConnection({ /* same parameters as for non-promise createConnection */ }) .then((conn) => conn.query('select foo from bar')) .then(([rows, fields]) => console.log(rows[0].foo)); const pool = require('mysql2/promise').createPool({}); // or require('mysql2').createPoolPromise({}) or require('mysql2').createPool({}).promise() pool .getConnection() .then((conn) => { const res = conn.query('select foo from bar'); conn.release(); return res; }) .then((result) => { console.log(result[0][0].foo); }) .catch((err) => { console.log(err); // any of connection time or query time errors from above });","s":"Basic Promise","u":"/node-mysql2/pt-BR/docs/documentation/promise-wrapper","h":"#basic-promise","p":415},{"i":420,"t":"async function example1() { const mysql = require('mysql2/promise'); const conn = await mysql.createConnection({ database: test }); const [rows, fields] = await conn.execute('select ?+? as sum', [2, 2]); await conn.end(); } async function example2() { const mysql = require('mysql2/promise'); const pool = mysql.createPool({ database: test }); // execute in parallel, next console.log in 3 seconds await Promise.all([ pool.query('select sleep(2)'), pool.query('select sleep(3)'), ]); console.log('3 seconds after'); await pool.end(); }","s":"ES7 Async Await","u":"/node-mysql2/pt-BR/docs/documentation/promise-wrapper","h":"#es7-async-await","p":415},{"i":422,"t":"const mysql = require('mysql2'); const co = require('co'); co(function* () { const c = yield mysql.createConnectionPromise({ user: 'root', namedPlaceholders: true, }); const rows = yield c.query('show databases'); console.log(rows); console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 })); yield c.end(); }); Examples in /examples/promise-co-await","s":"With CO","u":"/node-mysql2/pt-BR/docs/documentation/promise-wrapper","h":"#with-co","p":415},{"i":425,"t":"npm install --save mysql2 npm install --save-dev @types/node The @types/node ensure the proper interaction between TypeScript and the Node.js modules used by MySQL2 (net, events, stream, tls, etc.). info Requires TypeScript >=4.5.2.","s":"Installation","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#installation","p":423},{"i":427,"t":"You can import MySQL2 in two ways: By setting the esModuleInterop option to true in tsconfig.json import mysql from 'mysql2'; import mysql from 'mysql2/promise'; By setting the esModuleInterop option to false in tsconfig.json import * as mysql from 'mysql2'; import * as mysql from 'mysql2/promise';","s":"Usage","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#usage","p":423},{"i":429,"t":"import mysql, { ConnectionOptions } from 'mysql2'; const access: ConnectionOptions = { user: 'test', database: 'test', }; const conn = mysql.createConnection(access);","s":"Connection","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#connection","p":423},{"i":431,"t":"import mysql, { PoolOptions } from 'mysql2'; const access: PoolOptions = { user: 'test', database: 'test', }; const conn = mysql.createPool(access);","s":"Pool Connection","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#pool-connection","p":423},{"i":433,"t":"A simple query​ conn.query('SELECT 1 + 1 AS `test`;', (_err, rows) => { /** * @rows: [ { test: 2 } ] */ }); conn.execute('SELECT 1 + 1 AS `test`;', (_err, rows) => { /** * @rows: [ { test: 2 } ] */ }); The rows output will be these possible types: RowDataPacket[] RowDataPacket[][] ResultSetHeader ResultSetHeader[] ProcedureCallPacket In this example, you need to manually check the output types","s":"Query and Execute","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#query-and-execute","p":423},{"i":436,"t":"2Stable An array with the returned rows, for example: import mysql, { RowDataPacket } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', }); // SELECT conn.query('SELECT 1 + 1 AS `test`;', (_err, rows) => { console.log(rows); /** * @rows: [ { test: 2 } ] */ }); // SHOW conn.query('SHOW TABLES FROM `test`;', (_err, rows) => { console.log(rows); /** * @rows: [ { Tables_in_test: 'test' } ] */ }); Using rowsAsArray option as true: import mysql, { RowDataPacket } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', rowsAsArray: true, }); // SELECT conn.query( 'SELECT 1 + 1 AS test, 2 + 2 AS test;', (_err, rows) => { console.log(rows); /** * @rows: [ [ 2, 4 ] ] */ } ); // SHOW conn.query('SHOW TABLES FROM `test`;', (_err, rows) => { console.log(rows); /** * @rows: [ [ 'test' ] ] */ });","s":"RowDataPacket[]","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#rowdatapacket","p":423},{"i":438,"t":"2Stable Using multipleStatements option as true with multiple queries: import mysql, { RowDataPacket } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', multipleStatements: true, }); const sql = ` SELECT 1 + 1 AS test; SELECT 2 + 2 AS test; `; conn.query(sql, (_err, rows) => { console.log(rows); /** * @rows: [ [ { test: 2 } ], [ { test: 4 } ] ] */ });","s":"RowDataPacket[][]","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#rowdatapacket-1","p":423},{"i":440,"t":"2Stable History Version Changes v3.5.1 OkPacket is deprecated and might be removed in the future major release. Please use ResultSetHeader instead. changedRows option is deprecated and might be removed in the future major release. Please use affectedRows instead. For INSERT, UPDATE, DELETE, TRUNCATE, etc.: import mysql, { ResultSetHeader } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', }); const sql = ` SET @1 = 1; `; conn.query(sql, (_err, result) => { console.log(result); /** * @result: ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } */ });","s":"ResultSetHeader","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#resultsetheader","p":423},{"i":442,"t":"2Stable History Version Changes v3.5.1 Introduce ResultSetHeader[] For multiples INSERT, UPDATE, DELETE, TRUNCATE, etc. when using multipleStatements as true: import mysql, { ResultSetHeader } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', multipleStatements: true, }); const sql = ` SET @1 = 1; SET @2 = 2; `; conn.query(sql, (_err, results) => { console.log(results); /** * @results: [ ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 10, warningStatus: 0, changedRows: 0 }, ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } ] */ });","s":"ResultSetHeader[]","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#resultsetheader-1","p":423},{"i":444,"t":"2Stable History Version Changes v3.5.1 Introduce ProcedureCallPacket tip By performing a Call Procedure using INSERT, UPDATE, etc., the return will be a ProcedureCallPacket (even if you perform multiples queries and set multipleStatements to true): import mysql, { ProcedureCallPacket, ResultSetHeader } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', }); /** ResultSetHeader */ conn.query('DROP PROCEDURE IF EXISTS myProcedure'); /** ResultSetHeader */ conn.query(` CREATE PROCEDURE myProcedure() BEGIN SET @1 = 1; SET @2 = 2; END `); /** ProcedureCallPacket */ const sql = 'CALL myProcedure()'; conn.query>(sql, (_err, result) => { console.log(result); /** * @result: ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } */ }); For CREATE PROCEDURE and DROP PROCEDURE, these returns will be the default ResultSetHeader. By using SELECT and SHOW queries in a Procedure Call, it groups the results as: /** ProcedureCallPacket */ [RowDataPacket[], ResultSetHeader] For ProcedureCallPacket, please see the following examples.","s":"ProcedureCallPacket","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#procedurecallpacket","p":423},{"i":446,"t":"0Deprecated OkPacket is deprecated and might be removed in the future major release. Please use ResultSetHeader instead.","s":"OkPacket","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#okpacket","p":423},{"i":448,"t":"You can also check some code examples using MySQL2 and TypeScript to understand advanced concepts: Extending and using Interfaces with RowDataPacket Extending and using Interfaces with RowDataPacket and rowAsArray Extending and using Interfaces with RowDataPacket and multipleStatements Extending and using Interfaces with RowDataPacket, rowAsArray and multipleStatements Checking for ResultSetHeader, extending and using Interfaces with RowDataPacket from ProcedureCallPacket Checking for ResultSetHeader, extending and using Interfaces with RowDataPacket and rowAsArray from ProcedureCallPacket Creating a basic custom MySQL2 Class","s":"Examples","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#examples","p":423},{"i":451,"t":"Similar to connection.query(). connection.execute('select 1 + ? + ? as result', [5, 6], (err, rows) => { // rows: [ { result: 12 } ] // internally 'select 1 + ? + ? as result' is prepared first. On subsequent calls cached statement is re-used }); // close cached statement for 'select 1 + ? + ? as result'. noop if not in cache connection.unprepare('select 1 + ? + ? as result'); Note that connection.execute() will cache the prepared statement for better performance, remove the cache with connection.unprepare() when you're done.","s":"Automatic creation, cached and re-used by connection","u":"/node-mysql2/pt-BR/docs/documentation/prepared-statements","h":"#automatic-creation-cached-and-re-used-by-connection","p":449},{"i":453,"t":"Manually prepared statements doesn't comes with LRU cache and SHOULD be closed using statement.close() instead of connection.unprepare(). connection.prepare('select ? + ? as tests', (err, statement) => { // statement.parameters - array of column definitions, length === number of params, here 2 // statement.columns - array of result column definitions. Can be empty if result schema is dynamic / not known // statement.id // statement.query statement.execute([1, 2], (err, rows, columns) => { // -> [ { tests: 3 } ] }); // don't use connection.unprepare(), it won't work! // note that there is no callback here. There is no statement close ack at protocol level. statement.close(); }); Note that you should not use statement after connection reset (changeUser() or disconnect). Statement scope is connection, you need to prepare statement for each new connection in order to use it.","s":"Manual prepare / execute","u":"/node-mysql2/pt-BR/docs/documentation/prepared-statements","h":"#manual-prepare--execute","p":449},{"i":455,"t":"maxPreparedStatements : We keep the cached statements in a lru-cache. Default size is 16000 but you can use this option to override it. Any statements that are dropped from cache will be closed.","s":"Configuration","u":"/node-mysql2/pt-BR/docs/documentation/prepared-statements","h":"","p":449},{"i":457,"t":"The bind parameter values passed to execute are serialized JS -> MySQL as: null -> NULL number -> DOUBLE boolean -> TINY (0 for false, 1 for true) object -> depending on prototype: Date -> DATETIME JSON like object - JSON Buffer -> VAR_STRING Other -> VAR_STRING Passing in undefined or a function will result in an error.","s":"Serialization of bind parameters","u":"/node-mysql2/pt-BR/docs/documentation/prepared-statements","h":"","p":449},{"i":459,"t":"O protocolo interno é escrito por @sidorares MySQL-Native Constants, interpolação de parâmetros SQL, Pooling e a classe ConnectionConfig foram retirados do node-mysql O Código de atualização SSL é baseado no código feito por @TooTallNate Flags de API de conexão segura / comprimida compatíveis com o cliente MariaSQL. Contribuidores","s":"Agradecimentos","u":"/node-mysql2/pt-BR/docs/acknowledgements","h":"","p":458},{"i":462,"t":"Promise Callback import mysql from 'mysql2/promise'; const connection = await mysql.createConnection({ user: 'test', database: 'test', }); const [rows] = await connection.query('SELECT 1+1 AS `test1`'); // ... const mysql = require('mysql2'); const connection = mysql.createConnection({ user: 'test', database: 'test', }); connection.query('SELECT 1+1 AS `test1`', (err, rows) => { // ... });","s":"Simple SELECT","u":"/node-mysql2/pt-BR/docs/examples","h":"#simple-select","p":460},{"i":464,"t":"Promise Callback import mysql from 'mysql2/promise'; const connection = await mysql.createConnection({ user: 'test', database: 'test', }); const [rows] = await connection.execute('SELECT 1+? AS `test1`', [10]); // ... const mysql = require('mysql2'); const connection = mysql.createConnection({ user: 'test', database: 'test', }); connection.execute('SELECT 1+? as test1', [10], (err, rows) => { // ... });","s":"Prepared Statement and Parameters","u":"/node-mysql2/pt-BR/docs/examples","h":"#prepared-statement-and-parameters","p":460},{"i":466,"t":"Promise Callback import fs from 'fs'; import mysql from 'mysql2/promise'; const connection = await mysql.createConnection({ user: 'test', database: 'test', ssl: { key: fs.readFileSync('./certs/client-key.pem'), cert: fs.readFileSync('./certs/client-cert.pem'), }, }); console.log(await connection.query('SELECT 1+1 AS `test1`')); const fs = require('fs'); const mysql = require('mysql2'); const connection = mysql.createConnection({ user: 'test', database: 'test', ssl: { key: fs.readFileSync('./certs/client-key.pem'), cert: fs.readFileSync('./certs/client-cert.pem'), }, }); connection.query('SELECT 1+1 AS `test1`', console.log); You can use 'Amazon RDS' string as value to ssl property to connect to Amazon RDS mysql over ssl (in that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used) Promise Callback import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ user: 'foo', password: 'bar', host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); const [res] = await connection.query(\"SHOW `status` LIKE 'Ssl_cipher'\"); console.log(res); connection.end(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const connection = mysql.createConnection({ user: 'foo', password: 'bar', host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); connection.query(\"SHOW `status` LIKE 'Ssl_cipher'\", (err, res) => { console.log(err, res); connection.end(); });","s":"Connecting over encrypted connection","u":"/node-mysql2/pt-BR/docs/examples","h":"#connecting-over-encrypted-connection","p":460},{"i":468,"t":"const mysql = require('mysql2'); const server = mysql.createServer(); server.listen(3307); server.on('connection', (conn) => { console.log('connection'); conn.serverHandshake({ protocolVersion: 10, serverVersion: 'node.js rocks', connectionId: 1234, statusFlags: 2, characterSet: 8, capabilityFlags: 0xffffff, }); conn.on('field_list', (table, fields) => { console.log('field list:', table, fields); conn.writeEof(); }); const remote = mysql.createConnection({ user: 'root', database: 'dbname', host: 'server.example.com', password: 'secret', }); conn.on('query', (sql) => { console.log(`proxying query: ${sql}`); remote.query(sql, function (err) { // overloaded args, either (err, result :object) // or (err, rows :array, columns :array) if (Array.isArray(arguments[1])) { // response to a 'select', 'show' or similar const rows = arguments[1], columns = arguments[2]; console.log('rows', rows); console.log('columns', columns); conn.writeTextResult(rows, columns); } else { // response to an 'insert', 'update' or 'delete' const result = arguments[1]; console.log('result', result); conn.writeOk(result); } }); }); conn.on('end', remote.end.bind(remote)); });","s":"Simple MySQL proxy server","u":"/node-mysql2/pt-BR/docs/examples","h":"#simple-mysql-proxy-server","p":460},{"i":470,"t":"MySQL-pg-proxy - MySQL to Postgres proxy server. MySQLite.js - MySQL server with JS-only (emscripten compiled) sqlite backend. SQL-engine - MySQL server with LevelDB backend. MySQL-osquery-proxy - Connect to facebook osquery using MySQL client PlyQL - Connect to Druid using MySQL client","s":"Examples using MySQL server API","u":"/node-mysql2/pt-BR/docs/examples","h":"#examples-using-mysql-server-api","p":460},{"i":472,"t":"index.js 'use strict'; const mysql = require('mysql2'); const through2 = require('through2'); const binlogStream = mysql.createBinlogStream({ serverId: 123, // slave ID, first field in \"show slave hosts\" sql response // you can also specify slave host, username, password and port masterId: 0, filename: 'mysql-bin.000007', binlogPos: 120, flags: 1, // 1 = \"non-blocking mode\" }); binlogStream.pipe( through2.obj((obj, enc, next) => { console.log(obj); next(); }) );","s":"Binlog Watcher","u":"/node-mysql2/pt-BR/docs/examples/binlog-watcher","h":"","p":471},{"i":474,"t":"index.js 'use strict'; const mysql = require('mysql2'); const SocksConnection = require('socksjs'); // const socksProxy = new SocksConnection({ port: 3306 }); // const conn = mysql.createConnection({ // stream: socksProxy, // }); // conn.query(\"select 1+1\", function(err, rows, fields) { // console.log(err, rows, fields); // }); const conn1 = mysql.createPool({ debug: 1, stream: function () { return new SocksConnection({ port: 3306 }); }, }); conn1.execute('select sleep(1.1) as www', (err, rows, fields) => { console.log(err, rows, fields); }); conn1.execute('select sleep(1) as qqq', (err, rows, fields) => { console.log(err, rows, fields); }); conn1.execute('select sleep(1) as qqq', (err, rows, fields) => { console.log(err, rows, fields); });","s":"Connect Over Socks","u":"/node-mysql2/pt-BR/docs/examples/connect-over-socks","h":"","p":473},{"i":476,"t":"index.js 'use strict'; // get the client const mysql = require('mysql2'); // create the connection to database const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); connection.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [1, null, 3], (err, rows, fields) => { console.log(err, rows, fields); connection.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [3, null, 3], (err, rows, fields) => { console.log(err, rows, fields); connection.unprepare('select ?+1 as qqq, ? as rrr, ? as yyy'); connection.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [3, null, 3], (err, rows, fields) => { console.log(err, rows, fields); } ); } ); } );","s":"Execute","u":"/node-mysql2/pt-BR/docs/examples/execute","h":"","p":475},{"i":478,"t":"index.js 'use strict'; const mysql = require('mysql2').createConnection({ host: 'localhost', user: 'root', database: 'test', passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'), }); mysql.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [1, null, 3], (err, rows, fields) => { console.log(err, rows, fields); } );","s":"Pass SHA","u":"/node-mysql2/pt-BR/docs/examples/pass-sha","h":"","p":477},{"i":480,"t":"index.js 'use strict'; // get the client const mysql = require('mysql2'); // create the connection to database const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // execute will internally call prepare and query connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Rick C-137', 53], (err, results, fields) => { console.log(results); // results contains rows returned by server console.log(fields); // fields contains extra meta data about results, if available // If you execute same statement again, it will be picked form a LRU cache // which will save query preparation time and give better performance } );","s":"Prepared Statements","u":"/node-mysql2/pt-BR/docs/examples/prepare","h":"","p":479},{"i":482,"t":"await.js co.js .babelrc package.json 'use strict'; const mysql = require('mysql2/promise'); async function test() { const c = await mysql.createConnection({ port: 3306, user: 'testuser', namedPlaceholders: true, password: 'testpassword', }); console.log('connected!'); const [rows, fields] = await c.query('show databases'); console.log(rows); try { const [rows, fields] = await c.query('some invalid sql here'); } catch (e) { console.log('caught exception!', e); } console.log(await c.execute('select sleep(0.5)')); console.log('after first sleep'); console.log(await c.execute('select sleep(0.5)')); console.log('after second sleep'); let start = +new Date(); console.log( await Promise.all([ c.execute('select sleep(2.5)'), c.execute('select sleep(2.5)'), ]) ); console.log( 'after 2+3 parallel sleep which is in fact not parallel because commands are queued per connection' ); let end = +new Date(); console.log(end - start); await c.end(); const p = mysql.createPool({ port: 3306, user: 'testuser', namedPlaceholders: true, password: 'testpassword', }); console.log(await p.execute('select sleep(0.5)')); console.log('after first pool sleep'); start = +new Date(); console.log( await Promise.all([ p.execute('select sleep(2.5)'), p.execute('select sleep(2.5)'), ]) ); console.log('after 2+3 parallel pool sleep'); end = +new Date(); console.log(end - start); await p.end(); } test() .then(() => { console.log('done'); }) .catch((err) => { console.log('error!', err); throw err; }); 'use strict'; const mysql = require('mysql2/promise'); const co = require('co'); co(function* () { const c = yield mysql.createConnection({ port: 3306, user: 'root', namedPlaceholders: true, }); const rows = yield c.query('show databases'); console.log(rows); console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 })); yield c.end(); }) .then(function () { console.log('done'); }) .catch(function (err) { console.log(err); throw err; }); { \"plugins\": [\"transform-async-to-generator\"] } { \"name\": \"promise-co-await\", \"version\": \"1.0.0\", \"description\": \"\", \"main\": \"await.js\", \"scripts\": { \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\" }, \"author\": \"\", \"license\": \"ISC\", \"dependencies\": { \"babel-cli\": \"^6.9.0\" } }","s":"Promise CO Await","u":"/node-mysql2/pt-BR/docs/examples/promise-co-await","h":"","p":481},{"i":484,"t":"index.js 'use strict'; // get the client const mysql = require('mysql2'); // create the connection to database const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // simple query connection.query( 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45', (err, results, fields) => { console.log(results); // results contains rows returned by server console.log(fields); // fields contains extra meta data about results, if available } ); // with placeholder connection.query( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Page', 45], (err, results) => { console.log(results); } );","s":"SELECT","u":"/node-mysql2/pt-BR/docs/examples/queries/select","h":"","p":483},{"i":486,"t":"index.js 'use strict'; const pool = require('mysql2').createPool({ host: 'localhost', user: 'root', database: 'test', password: 'root', }); setInterval(() => { for (let i = 0; i < 5; ++i) { pool.query((err, rows, fields) => { console.log(rows, fields); // Connection is automatically released once query resolves }); } }, 1000); setInterval(() => { for (let i = 0; i < 5; ++i) { pool.getConnection((err, db) => { db.query('select sleep(0.5) as qqq', (err, rows, fields) => { console.log(rows, fields); db.release(); }); }); } }, 1000);","s":"Pool Test","u":"/node-mysql2/pt-BR/docs/examples/pool-test","h":"","p":485},{"i":488,"t":"index.js 'use strict'; const mysql = require('mysql2'); const ClientFlags = require('mysql2/lib/constants/client.js'); const server = mysql.createServer(); server.listen(3307); server.on('connection', (conn) => { console.log('connection'); conn.serverHandshake({ protocolVersion: 10, serverVersion: 'node.js rocks', connectionId: 1234, statusFlags: 2, characterSet: 8, capabilityFlags: 0xffffff ^ ClientFlags.COMPRESS, }); conn.on('field_list', (table, fields) => { console.log('field list:', table, fields); conn.writeEof(); }); const remote = mysql.createConnection({ user: 'root', database: 'dbname', host: 'server.example.com', password: 'secret', }); conn.on('query', (sql) => { console.log(`proxying query: ${sql}`); remote.query(sql, function (err) { // overloaded args, either (err, result :object) // or (err, rows :array, columns :array) if (Array.isArray(arguments[1])) { // response to a 'select', 'show' or similar const rows = arguments[1], columns = arguments[2]; console.log('rows', rows); console.log('columns', columns); conn.writeTextResult(rows, columns); } else { // response to an 'insert', 'update' or 'delete' const result = arguments[1]; console.log('result', result); conn.writeOk(result); } }); }); conn.on('end', remote.end.bind(remote)); });","s":"MySQL Proxy","u":"/node-mysql2/pt-BR/docs/examples/mysqlproxy","h":"","p":487},{"i":490,"t":"index.js 'use strict'; const mysql = require('mysql2'); const conn = mysql.createConnection({ user: process.env.USER, password: process.env.PASSWORD, database: process.env.DB, host: process.env.HOST, port: 3306, ssl: 'Amazon RDS', }); conn.query(\"show status like 'Ssl_cipher'\", function (err, res) { console.log(err, res); conn.end(); });","s":"RDS SSL","u":"/node-mysql2/pt-BR/docs/examples/ssl/rds-ssl","h":"","p":489},{"i":492,"t":"index.js 'use strict'; const mysql = require('mysql2'); const flags = require('mysql2/lib/constants/client.js'); const auth = require('mysql2/lib/auth_41.js'); function authenticate(params, cb) { console.log(params); const doubleSha = auth.doubleSha1('pass123'); const isValid = auth.verifyToken( params.authPluginData1, params.authPluginData2, params.authToken, doubleSha ); if (isValid) { cb(null); } else { // for list of codes lib/constants/errors.js cb(null, { message: 'wrong password dude', code: 1045 }); } } const server = mysql.createServer(); server.listen(3333); server.on('connection', (conn) => { // we can deny connection here: // conn.writeError({ message: 'secret', code: 123 }); // conn.close(); conn.serverHandshake({ protocolVersion: 10, serverVersion: '5.6.10', // 'node.js rocks', connectionId: 1234, statusFlags: 2, characterSet: 8, // capabilityFlags: 0xffffff, // capabilityFlags: -2113931265, capabilityFlags: 2181036031, authCallback: authenticate, }); conn.on('field_list', (table, fields) => { console.log('FIELD LIST:', table, fields); conn.writeEof(); }); conn.on('query', (query) => { conn.writeColumns([ { catalog: 'def', schema: 'test', table: 'test_table', orgTable: 'test_table', name: 'beta', orgName: 'beta', characterSet: 33, columnLength: 384, columnType: 253, flags: 0, decimals: 0, }, ]); conn.writeTextRow(['test тест テスト փորձարկում পরীক্ষা kiểm tra ']); conn.writeTextRow(['ტესტი પરીક્ષણ מבחן פּרובירן اختبار परीक्षण']); conn.writeEof(); conn.close(); }); });","s":"Server","u":"/node-mysql2/pt-BR/docs/examples/server","h":"","p":491},{"i":494,"t":"index.js 'use strict'; const fs = require('fs'); const mysql = require('mysql2'); const conn = mysql.createConnection({ user: 'root', password: '', database: 'test', host: '127.0.0.1', port: '3306', ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); conn.query('select 1+1 as test', function (err, res) { console.log(res); conn.query('select repeat(\"a\", 100) as test', function (err, res) { console.log(res); }); }); See examples/ssl/certs.","s":"Select Over SSL","u":"/node-mysql2/pt-BR/docs/examples/ssl/select-over-ssl","h":"","p":493},{"i":496,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ProcedureCallPacket, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { id: number; name: string; } const isResultSetHeader = (data: unknown): data is ResultSetHeader => { if (!data || typeof data !== 'object') return false; const keys = [ 'fieldCount', 'affectedRows', 'insertId', 'info', 'serverStatus', 'warningStatus', 'changedRows', ]; return keys.every((key) => key in data); }; (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Deleting the `getUsers` procedure, if it exists */ await conn.query('DROP PROCEDURE IF EXISTS getUsers'); /** Creating a procedure to get the users */ await conn.query(` CREATE PROCEDURE getUsers() BEGIN SELECT * FROM users ORDER BY name ASC; END `); /** Getting users */ const [procedureResult] = await conn.query>('CALL getUsers()'); procedureResult.forEach((users) => { /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */ if (isResultSetHeader(users)) { console.log('----------------'); console.log('Affected Rows:', users.affectedRows); } else { users.forEach((user) => { console.log('----------------'); console.log('id: ', user.id); console.log('name:', user.name); }); } }); await conn.end(); })(); /** Output * * Inserted: 4 * ---------------- * id: 4 * name: Gween * ---------------- * id: 2 * name: John * ---------------- * id: 1 * name: Josh * ---------------- * id: 3 * name: Marie * ---------------- * Affected Rows: 0 */","s":"Procedure Call Packet","u":"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/procedure-call-packet","h":"","p":495},{"i":498,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ProcedureCallPacket, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { /** id */ 0: number; /** name */ 1: string; } const isResultSetHeader = (data: unknown): data is ResultSetHeader => { if (!data || typeof data !== 'object') return false; const keys = [ 'fieldCount', 'affectedRows', 'insertId', 'info', 'serverStatus', 'warningStatus', 'changedRows', ]; return keys.every((key) => key in data); }; (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', rowsAsArray: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Deleting the `getUsers` procedure, if it exists */ await conn.query('DROP PROCEDURE IF EXISTS getUsers'); /** Creating a procedure to get the users */ await conn.query(` CREATE PROCEDURE getUsers() BEGIN SELECT * FROM users ORDER BY name ASC; END `); /** Getting users */ const [procedureResult] = await conn.query>('CALL getUsers()'); procedureResult.forEach((users) => { /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */ if (isResultSetHeader(users)) { console.log('----------------'); console.log('Affected Rows:', users.affectedRows); } else { users.forEach((user) => { console.log('----------------'); console.log('id: ', user[0]); console.log('name:', user[1]); }); } }); await conn.end(); })(); /** Output * * Inserted: 4 * ---------------- * id: 4 * name: Gween * ---------------- * id: 2 * name: John * ---------------- * id: 1 * name: Josh * ---------------- * id: 3 * name: Marie * ---------------- * Affected Rows: 0 */","s":"Procedure Call Packet (Row as Array)","u":"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-array","h":"","p":497},{"i":500,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { /** id */ 0: number; /** name */ 1: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', rowsAsArray: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [users] = await conn.query( 'SELECT * FROM `users` ORDER BY `name` ASC;' ); users.forEach((user) => { console.log('-----------'); console.log('id: ', user[0]); console.log('name:', user[1]); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet (Row as Array)","u":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array","h":"","p":499},{"i":502,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { /** id */ 0: number; /** name */ 1: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', multipleStatements: true, rowsAsArray: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [rows] = await conn.query( [ 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2;', 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2 OFFSET 2;', ].join(' ') ); rows.forEach((users) => { users.forEach((user) => { console.log('-----------'); console.log('id: ', user[0]); console.log('name:', user[1]); }); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet (Multi Statements and Row as Array)","u":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array-multi-statements","h":"","p":501},{"i":504,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { id: number; name: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', multipleStatements: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [rows] = await conn.query( [ 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2;', 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2 OFFSET 2;', ].join(' ') ); rows.forEach((users) => { users.forEach((user) => { console.log('-----------'); console.log('id: ', user.id); console.log('name:', user.name); }); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet (Multi Statements)","u":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/multi-statements","h":"","p":503},{"i":506,"t":"index.ts db.ts /** * The types are explicity for learning purpose */ import { PoolOptions } from 'mysql2/promise'; import { MySQL } from './db.js'; interface User extends RowDataPacket { id: number; name: string; } const access: PoolOptions = { host: '', user: '', password: '', database: '', }; (async () => { const mysql = new MySQL(access); /** Deleting the `users` table, if it exists */ await mysql.queryResult('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await mysql.queryResult( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await mysql.executeResult( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [users] = await mysql.queryRows( 'SELECT * FROM `users` ORDER BY `name` ASC;' ); users.forEach((user: User) => { console.log('-----------'); console.log('id: ', user.id); console.log('name:', user.name); }); await mysql.connection.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */ /** * The types are explicity for learning purpose */ import { createPool, PoolOptions, Pool, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; export class MySQL { private conn: Pool; private credentials: PoolOptions; constructor(credentials: PoolOptions) { this.credentials = credentials; this.conn = createPool(this.credentials); } /** A random method to simulate a step before to get the class methods */ private ensureConnection() { if (!this?.conn) this.conn = createPool(this.credentials); } /** For `SELECT` and `SHOW` */ get queryRows() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */ get queryRowsAsArray() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For `INSERT`, `UPDATE`, etc. */ get queryResult() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */ get queryResults() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For `SELECT` and `SHOW` */ get executeRows() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */ get executeRowsAsArray() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** For `INSERT`, `UPDATE`, etc. */ get executeResult() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */ get executeResults() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** Expose the Pool Connection */ get connection() { return this.conn; } }","s":"Basic Custom Class","u":"/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-class","h":"","p":505},{"i":508,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { id: number; name: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [users] = await conn.query( 'SELECT * FROM `users` ORDER BY `name` ASC;' ); users.forEach((user) => { console.log('-----------'); console.log('id: ', user.id); console.log('name:', user.name); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet","u":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-data-packet","h":"","p":507},{"i":510,"t":"This section provides answers to commonly asked questions about MySQL2. tip To explore the FAQs, please use the sidebar navigation on desktop or access the menu on mobile devices.","s":"Frequently Asked Questions","u":"/node-mysql2/pt-BR/docs/faq","h":"","p":509},{"i":512,"t":"This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as createConnection, createPool, createPoolCluster, execute and query.","s":"How to handle errors?","u":"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors","h":"","p":511},{"i":514,"t":"createConnection 2Stable This solution has been tested and confirmed as the correct answer. Handling connection errors by adding an error event listener: const mysql = require('mysql2'); connection = mysql.createConnection({ host: '', user: '', database: '', }); connection.addListener('error', (err) => { if (err instanceof Error) { console.log(`createConnection error:`, err); } }); createPool 2Stable This solution has been tested. Handling connection errors through callback's err parameter: const mysql = require('mysql2'); const pool = mysql.createPool({ host: '', user: '', database: '', }); pool.getConnection((err, connection) => { if (err instanceof Error) { console.log('pool.getConnection error:', err); return; } }); createPoolCluster 2Stable This solution has been tested. Handling connection errors through callback's err parameter: const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('NodeI', { host: '', user: '', database: '', }); poolCluster.getConnection('NodeI', (err, connection) => { if (err instanceof Error) { console.log('poolCluster.getConnection error:', err); return; } }); execute 2Stable This solution has been tested. Handling execute errors through callback's err parameter: connection.execute('SELEC 1 + 1', (err, rows) => { if (err instanceof Error) { console.log('execute error:', err); return; } console.log(rows); }); It will work for both createConnection, createPool and createPoolCluster connections. query 2Stable This solution has been tested. Handling query errors through callback's err parameter: connection.query('SELEC 1 + 1', (err, rows) => { if (err instanceof Error) { console.log('query error:', err); return; } console.log(rows); }); It will work for both createConnection, createPool and createPoolCluster connections.","s":"Using callbacks","u":"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors","h":"#using-callbacks","p":511},{"i":516,"t":"createConnection 2Stable This solution has been tested and confirmed as the correct answer. Handling connection errors through try-catch block: import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ host: '', user: '', database: '', }); } catch (err) { if (err instanceof Error) { console.log(err); } } createPool 2Stable This solution has been tested. Handling connection errors through try-catch block: import mysql from 'mysql2/promise'; const pool = mysql.createPool({ host: '', user: '', database: '', }); try { const connection = await pool.getConnection(); } catch (err) { if (err instanceof Error) { console.log(err); } } createPoolCluster 2Stable This solution has been tested. Handling connection errors through try-catch block: import mysql from 'mysql2/promise'; const poolCluster = mysql.createPoolCluster(); poolCluster.add('NodeI', { host: '', user: '', database: '', }); try { await poolCluster.getConnection('NodeI'); } catch (err) { if (err instanceof Error) { console.log('createConnection error:', err); } } execute 2Stable This solution has been tested. Handling execute errors through try-catch block: try { const [rows] = await connection.execute('SELEC 1 + 1'); console.log(rows); } catch (err) { if (err instanceof Error) { console.log('execute error:', err); } } It will work for both createConnection, createPool and createPoolCluster connections. query 2Stable This solution has been tested. Handling query errors through try-catch block: try { const [rows] = await connection.query('SELEC 1 + 1'); console.log(rows); } catch (err) { if (err instanceof Error) { console.log('query error:', err); } } It will work for both createConnection, createPool and createPoolCluster connections.","s":"Using promises","u":"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors","h":"#using-promises","p":511},{"i":518,"t":"Discussions #1998 #2282","s":"Related Links","u":"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors","h":"#related-links","p":511},{"i":520,"t":"The Stability Badges are indications of a section's stability. The stability indices are as follows: 0Deprecated The feature might generate warnings and does not assure backward compatibility. Experimental: These features are not bound by semantic versioning. They may undergo non-backward compatible changes or be removed in future releases. Their use in production is discouraged. Use caution with Experimental features, especially in libraries. Users might not expect changes from these unstable features. To reduce surprises, consider using a command-line flag for Experimental features. Experimental features are classified into stages: 1Experimental Experimental features at this stage are currently in development and prone to considerable changes. 1.1Early Development Experimental features at this stage are approaching minimum viability. 1.2Release Candidate Experimental features are close to reaching stability. Major changes are not expected, but they could still occur based on user feedback. Testing and feedback are important to ascertain the readiness of these features for stable classification. 2Stable Compatibility with the MySQL ecosystem is a high priority. 3Legacy This feature, while not likely to be removed and still subject to semantic versioning, is not under active maintenance and other options are available. Features are classified as legacy instead of deprecated when they cause no harm and have widespread use in the MySQL ecosystem. It's unlikely that bugs in legacy features will be addressed.","s":"Stability Badges","u":"/node-mysql2/pt-BR/docs/stability-badges","h":"","p":519},{"i":522,"t":"O projeto MySQL2 é uma continuação do MySQL-Native. O código do analisador de protocolo (protocol parser) foi reescrito do zero e a API foi alterada para corresponder ao popular mysqljs/mysql. A equipe do MySQL2 está trabalhando em conjunto com a equipe do mysqljs/mysql para fatorar o código compartilhado e movê-lo para a organização mysqljs. O MySQL2 é maioritariamente compatível com a API do mysqljs e suporta a maioria de suas funcionalidades. O MySQL2 também oferece essas funcionalidades adicionais: Desempenho mais rápido / melhor Instruções Preparadas (Prepared Statements) Protocolo de log binário MySQL (MySQL Binary Log Protocol) Servidor MySQL Estende o suporte para Encoding and Collation Promise Wrapper Compressão SSL e Authentication Switch Streams Personalizados Conjunto de Conexões (Pooling)","s":"História e Porque o MySQL2","u":"/node-mysql2/pt-BR/docs/history-and-why-mysq2","h":"","p":521}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/350",[0,3.398,1,1.466,2,0.5,3,3.761,4,3.761,5,3.148,6,2.59,7,3.944,8,0.752,9,4.222,10,6.559,11,4.306,12,3.135,13,2.92,14,3.761,15,2.59,16,3.403,17,5.066,18,5.8,19,4.177,20,2.134,21,4.306,22,4.306,23,4.306,24,4.583,25,4.306,26,3.135,27,3.135,28,4.306,29,3.761,30,2.456,31,4.306,32,3.135,33,4.306,34,4.306,35,4.306,36,3.761,37,4.306,38,2.337,39,3.761,40,4.306,41,3.148,42,4.306,43,3.135,44,3.761,45,4.306,46,2.59,47,3.135,48,2.92,49,4.306,50,3.761,51,4.306,52,3.135,53,4.306,54,3.761,55,4.306,56,4.306,57,3.403,58,3.761,59,4.306,60,4.306,61,4.306]],["t/352",[0,3.21,1,2.11,19,3.946,38,3.363,62,6.196,63,6.196,64,5.412,65,6.196,66,6.196,67,6.196,68,4.51,69,6.196,70,4.896,71,6.196]],["t/354",[1,2.216,6,3.089,7,4.297,8,0.889,54,4.487,57,4.059,72,5.137,73,4.059,74,5.137,75,2.93,76,3.484,77,5.137,78,2.93,79,4.487,80,4.059,81,5.137,82,4.059,83,2.93,84,4.059,85,4.487,86,3.089,87,5.143,88,2.788,89,2.661,90,2.25,91,4.059,92,3.484,93,3.739,94,4.487,95,2.086,96,2.341,97,3.089,98,5.137,99,3.739,100,4.059,101,3.089,102,2.166]],["t/356",[1,2.26,78,3.786,103,4.501,104,3.025]],["t/358",[2,0.51,16,4.246,20,3.318,75,3.065,103,3.645,105,6.697,106,4.541,107,5.374,108,3.318,109,5.374,110,3.645,111,4.246,112,5.374,113,4.694,114,4.246,115,1.455,116,5.374,117,3.912,118,2.182,119,5.374,120,4.694,121,3.912,122,2.719,123,5.374,124,1.96,125,5.374,126,5.374,127,3.18,128,4.694,129,5.374]],["t/360",[7,4.456,8,0.887,88,3.022,89,2.884,95,2.26,101,4.116,102,3.124,130,5.567,131,4.399,132,4.863,133,3.348,134,4.863,135,4.863,136,5.978,137,5.567,138,4.863,139,5.567,140,6.844,141,6.844,142,5.567]],["t/362",[7,3.776,8,0.72,104,2.862,143,6.28,144,4.259,145,5.813,146,7.804,147,3.582,148,5.485]],["t/364",[149,5.883,150,6.409,151,1.1,152,5.064,153,2.702,154,6.409,155,6.409,156,4.665]],["t/366",[110,4.407,133,3.908,148,5.676,157,6.499,158,4.73,159,6.499,160,6.499]],["t/368",[1,2.133,2,0.3,7,3.284,44,3.443,75,2.248,76,2.673,78,3.114,95,2.217,104,1.797,122,2.217,131,4.315,144,4.587,145,4.95,149,5.805,152,3.115,156,2.869,158,3.975,161,5.461,162,5.461,163,3.942,164,5.472,165,3.942,166,5.461,167,5.461,168,2.217,169,1.543,170,2.14,171,3.942,172,3.942,173,5.461,174,3.942,175,5.461,176,3.942,177,3.942,178,3.942,179,4.923,180,4.77,181,3.942,182,3.443,183,3.942,184,3.443,185,2.51,186,3.942,187,3.942,188,3.942,189,3.942,190,3.942,191,3.443,192,2.869,193,3.443,194,5.461,195,3.942,196,3.942,197,3.942,198,3.443,199,3.443,200,3.942,201,3.942,202,3.942,203,2.869,204,3.115,205,3.942,206,3.942,207,3.942,208,3.942,209,3.443,210,3.443,211,3.115]],["t/370",[87,4.347,108,2.726,131,4.347,151,0.945,152,4.347,169,2.154,191,4.805,203,4.004,204,4.347,212,4.347,213,4.999,214,5.501,215,4.805,216,6.439,217,4.805,218,4.805,219,5.368,220,5.501,221,5.501,222,5.935,223,5.501,224,5.501,225,5.501,226,4.805,227,5.501,228,3.138,229,5.501]],["t/372",[2,0.607,104,2.394,115,1.422,122,2.133,127,2.494,185,5.148,213,4.477,219,4.151,230,5.513,231,5.253,232,4.32,233,1.916,234,4.588,235,3.824,236,5.253,237,5.253,238,5.253,239,4.588,240,5.216,241,3.345,242,4.151,243,5.253]],["t/374",[2,0.583,76,3.666,94,4.722,104,2.464,115,1.463,122,2.195,153,2.279,213,3.666,219,4.271,240,5.779,241,3.442,242,4.271,244,6.683,245,4.722,246,5.405,247,5.405,248,6.721,249,5.405,250,3.666,251,3.935,252,2.464,253,1.511,254,5.405,255,5.405,256,1.84,257,3.648]],["t/376",[2,0.566,104,2.552,115,1.516,151,0.962,203,5,213,4.659,216,6,222,6,226,4.892,241,3.566,242,4.425,258,6.944,259,5.6,260,5.6,261,4.425,262,4.425,263,3.798,264,4.425,265,4.892,266,4.892]],["t/378",[57,4.823,80,5.717,103,4.622,108,2.304,144,5.23,145,6.094,149,3.674,169,1.82,203,3.385,213,3.154,267,1.072,268,6.104,269,5.332,270,6.104,271,4.65,272,4.65,273,7.236,274,7.236,275,7.236,276,2.524,277,4.062,278,4.65,279,4.65,280,6.104,281,6.104,282,4.65,283,6.104,284,4.65,285,4.65,286,1.96,287,3.154,288,4.062,289,4.65]],["t/380",[2,0.629,6,1.362,75,1.292,79,3.153,83,1.292,86,1.362,90,0.992,92,2.448,93,3.276,95,2.084,102,1.897,104,1.032,111,1.79,117,2.627,118,2.276,121,3.276,122,2.276,124,0.826,151,0.62,170,1.23,232,1.292,263,1.536,267,0.833,276,3.242,290,2.265,291,1.482,292,2.265,293,1.979,294,2.265,295,4.056,296,2.852,297,3.931,298,2.171,299,1.362,300,3.556,301,2.659,302,1.413,303,2.265,304,5.141,305,4.897,306,1.032,307,2.367,308,3.556,309,2.265,310,2.265,311,3.768,312,1.979,313,2.265,314,4.5,315,3.736,316,6.267,317,2.265,318,3.153,319,1.979,320,2.265,321,2.265,322,2.265,323,1.79,324,2.265,325,2.265,326,4.5,327,2.265,328,0.868,329,1.042,330,0.977,331,0.663,332,3.153,333,1.872,334,0.663,335,3.153,336,2.265,337,2.265,338,3.804,339,3.61,340,3.61,341,3.931,342,2.852,343,1.79,344,1.79,345,3.61,346,3.61,347,3.61,348,1.649,349,4.5,350,3.61,351,1.173,352,1.79,353,1.536,354,2.265,355,5.133,356,1.79,357,2.265,358,2.265,359,2.265,360,2.265,361,2.265,362,1.79,363,2.265,364,1.79,365,0.676,366,1.79,367,2.265,368,2.265,369,2.265,370,1.979,371,3.61,372,1.79,373,1.979,374,1.649,375,1.649,376,1.79,377,2.265,378,2.265,379,1.979,380,2.171,381,1.649,382,2.265,383,1.536,384,1.979,385,1.979,386,1.979]],["t/382",[2,0.639,86,3.128,92,4.449,93,2.677,95,1.493,102,1.55,118,2.918,121,2.677,122,1.493,151,0.631,153,1.55,182,3.212,291,1.062,295,4.768,297,3.212,300,2.906,302,1.44,304,4.11,305,4.543,307,2.715,308,2.906,311,3.128,328,0.569,329,1.062,330,0.995,331,0.955,332,3.212,333,2.201,334,0.675,335,3.212,370,3.212,372,2.906,380,2.211,383,3.527,384,3.212,385,3.212,387,3.678,388,6.035,389,3.678,390,2.677,391,3.678,392,3.678,393,2.906,394,2.677,395,6.035,396,6.035,397,3.212,398,3.678,399,3.678,400,3.678,401,3.678,402,5.201,403,3.678,404,7.187,405,3.678,406,3.678,407,3.678,408,3.678,409,3.678]],["t/384",[5,3.077,8,0.65,15,3.409,30,3.233,38,3.077,41,3.077,68,4.126,83,3.233,88,3.077,89,2.936,97,3.409,99,4.126,100,5.468,101,3.409,102,2.389,133,3.409,410,5.669,411,4.479,412,4.479,413,5.669,414,4.126,415,5.669,416,4.479,417,4.951,418,4.951,419,4.951,420,4.951]],["t/386",[0,2.721,1,2.458,13,3.563,30,3.765,38,2.851,43,3.824,50,4.588,128,4.588,144,4.896,158,5.255,184,4.588,421,4.151,422,5.253,423,5.253,424,5.253,425,3.563,426,4.588,427,5.253,428,5.253,429,5.253,430,4.151,431,5.253,432,5.253,433,5.216,434,5.704,435,4.588,436,4.588,437,5.253,438,4.588,439,4.588,440,5.253]],["t/388",[0,2.984,2,0.649,5,2.313,8,0.489,13,2.89,26,3.102,32,3.102,41,2.313,70,3.367,90,1.228,102,1.797,115,0.759,147,2.431,168,1.731,233,2.1,262,4.551,267,0.983,291,1.23,302,2.255,307,1.61,328,0.959,330,1.154,331,0.783,334,0.783,351,1.452,365,1.718,441,3.723,442,1.138,443,3.102,444,2.714,445,3.367,446,3.367,447,1.88,448,1.23,449,2.112,450,2.89,451,3.367,452,2.649,453,1.896,454,3.906,455,1.834,456,3.906,457,5.031,458,3.285,459,4.551,460,3.723,461,3.723,462,3.723,463,3.102,464,2.89,465,3.723,466,3.367,467,3.723,468,2.563,469,2.024,470,4.262,471,4.262,472,4.262,473,3.367,474,0.955]],["t/390",[0,3.265,1,1.244,2,0.622,5,2.466,8,0.521,12,3.307,13,3.082,15,1.382,19,1.464,24,1.816,26,2.658,27,1.673,30,3.221,32,2.658,38,1.982,41,3.065,43,1.673,47,3.307,48,3.51,52,1.673,68,2.658,70,2.886,88,2.466,89,2.681,90,1.007,115,0.622,147,1.311,168,1.483,233,1.332,241,1.464,267,0.842,286,1.915,291,1.054,302,1.43,307,0.868,328,0.801,330,0.989,331,0.671,334,0.671,351,1.191,365,1.089,412,2.886,421,2.886,425,2.477,426,2.008,430,1.816,442,0.933,443,2.658,444,2.326,445,2.886,446,2.886,447,1.332,448,1.054,449,1.81,450,3.51,452,2.102,453,1.704,455,1.163,456,2.477,458,2.083,459,4.09,460,3.19,461,3.19,462,3.19,463,2.658,464,2.477,465,3.19,466,2.886,467,3.19,468,1.382,469,1.091,474,0.783,475,2.658,476,2.299,477,2.299,478,2.299,479,2.008,480,4.544,481,3.19,482,2.299,483,3.19,484,1.816,485,2.299,486,2.299,487,3.19,488,3.19,489,2.299,490,2.299,491,1.816,492,2.299,493,2.299,494,2.299,495,2.299,496,2.299,497,2.299,498,1.6,499,2.299,500,3.19,501,2.299,502,4.544,503,2.299,504,3.652,505,2.299,506,2.299,507,1.816,508,2.299,509,2.299,510,5.176,511,2.008,512,2.299,513,3.652,514,3.652,515,1.054,516,2.477,517,3.19,518,2.477,519,3.19,520,3.19,521,2.299,522,2.299,523,2.299,524,2.299,525,2.299,526,2.299,527,1.673,528,1.559,529,2.299,530,2.008,531,2.299]],["t/392",[0,3.575,2,0.624,5,2.149,8,0.454,9,3.345,12,2.881,14,4.014,15,2.38,17,2.707,19,1.195,27,3.345,30,2.258,32,3.702,38,2.494,41,3.511,43,3.345,47,2.256,48,2.685,64,2.707,75,1.071,90,1.734,96,3.088,115,0.508,124,1.676,147,1.071,168,1.259,233,1.13,252,2.094,267,0.715,291,0.542,307,0.709,328,0.787,329,0.895,331,0.569,334,0.569,351,2.051,365,1.181,421,3.128,425,2.102,439,2.707,442,0.762,443,2.881,444,4.466,447,1.444,448,0.895,449,1.536,450,2.685,453,1.513,463,1.366,468,1.129,469,0.891,474,0.639,475,1.366,483,1.64,484,2.449,507,1.483,511,1.64,515,1.143,530,3.458,532,1.64,533,4.578,534,1.64,535,1.877,536,1.877,537,1.877,538,1.877,539,1.877,540,1.877,541,1.877,542,1.483,543,1.64,544,1.877,545,3.959,546,1.877,547,1.877,548,1.877,549,1.877,550,1.877,551,1.877,552,1.877,553,1.877,554,1.877,555,1.877,556,3.099,557,3.099,558,1.974,559,3.099,560,3.099,561,1.768,562,3.099,563,4.595,564,2.494,565,3.099,566,3.099,567,4.595,568,4.014,569,2.449,570,3.099,571,4.595,572,3.128,573,3.099,574,3.099,575,3.099,576,3.099,577,1.877,578,1.877,579,1.64,580,1.877,581,1.877,582,1.877,583,1.877,584,1.877,585,1.877,586,1.877,587,4.595,588,4.595,589,0.839,590,2.707,591,3.099,592,3.099,593,3.099,594,1.877,595,1.019,596,1.877,597,1.877,598,1.877,599,1.877,600,1.64,601,3.099,602,2.449,603,3.099,604,3.959,605,3.099,606,3.099,607,1.877,608,1.877,609,1.483,610,1.64]],["t/394",[0,3.746,1,1.954,2,0.636,5,2.034,6,1.428,8,0.604,12,1.729,15,1.428,19,1.512,38,1.289,41,3.114,48,2.542,58,2.074,90,3.213,96,2.909,102,1.001,115,1.427,151,0.408,168,2.14,169,1.467,233,1.367,253,1.048,267,1.216,291,1.34,302,1.467,307,1.753,328,1.054,329,1.082,330,1.256,331,0.968,334,1.054,411,1.876,419,2.074,425,2.542,441,3.273,442,1.522,443,3.379,444,2.956,445,3.668,446,3.668,447,2.224,448,1.522,449,2.612,450,2.542,453,1.735,455,1.193,456,2.542,474,0.809,475,2.728,500,2.074,507,1.876,515,0.686,516,2.542,533,1.876,561,1.354,568,2.074,569,1.876,579,2.074,589,1.256,609,1.876,611,2.375,612,2.375,613,2.375,614,2.405,615,3.273,616,3.748,617,3.748,618,2.375,619,2.375,620,2.375,621,2.375,622,2.375,623,3.748,624,2.375,625,2.375,626,5.738,627,2.375,628,1.876,629,3.748,630,1.512,631,2.074,632,2.375,633,2.074,634,2.375,635,2.375,636,2.375,637,2.375,638,2.375,639,2.375,640,2.375,641,2.074,642,1.354,643,2.375,644,1.289]],["t/396",[0,2.163,2,0.608,5,1.482,7,1.641,8,0.313,9,1.987,13,1.851,15,1.641,19,1.738,24,2.157,26,1.987,27,1.987,38,1.482,39,2.384,41,3.934,47,4.7,48,3.439,52,1.987,80,3.299,90,1.829,124,2.072,147,1.557,168,1.696,251,3.04,253,1.418,256,1.727,267,0.963,291,0.788,307,1.031,328,0.785,329,1.206,330,1.13,331,0.767,334,0.767,351,2.163,365,1.245,425,2.832,430,2.157,438,2.384,444,1.738,447,1.523,448,1.206,449,2.069,450,4.152,452,2.307,453,1.87,455,1.615,458,2.382,459,3.299,464,2.832,468,1.641,469,1.296,479,2.384,481,5.868,484,2.157,491,3.299,498,1.829,515,0.788,534,3.648,542,3.299,543,3.648,569,2.157,602,3.299,609,4.007,645,2.73,646,2.73,647,2.73,648,2.73,649,2.73,650,2.73,651,3.832,652,2.73,653,2.73,654,2.73,655,2.73,656,4.379,657,2.73,658,2.73,659,2.73,660,4.176,661,4.176,662,2.73,663,2.73,664,2.73,665,3.618,666,4.176,667,4.176,668,4.176,669,2.73,670,2.73,671,2.384,672,2.73,673,2.73,674,2.73,675,2.73,676,2.73,677,2.73]],["t/399",[2,0.651,8,0.371,85,2.822,88,1.754,89,1.674,95,1.312,101,1.943,102,1.362,113,2.822,118,1.312,121,2.352,122,1.312,124,1.178,151,0.814,153,1.362,253,2.142,256,1.1,286,1.997,298,1.943,299,1.943,302,2.419,306,2.817,319,2.822,365,1.843,380,2.85,381,4.084,394,3.449,455,1.968,473,4.883,515,1.368,589,1.781,630,2.058,651,2.703,678,3.573,679,2.553,680,3.231,681,5.611,682,3.231,683,2.822,684,4.139,685,2.191,686,3.231,687,3.744,688,7.289,689,4.739,690,7.437,691,3.231,692,3.449,693,2.822]],["t/401",[2,0.639,122,2.182,124,1.96,198,4.694,306,3.48,328,0.832,365,1.603,452,2.719,453,2.514,455,1.711,498,2.354,518,3.645,631,4.694,651,3.819,656,3.645,665,3.422,694,5.374,695,5.374,696,5.374]],["t/403",[2,0.633,8,0.364,75,1.812,86,1.91,95,1.29,118,2.256,122,2.256,138,2.774,151,0.545,164,6.335,170,1.724,179,2.312,199,5.97,204,5.401,232,1.812,233,2.026,251,2.312,266,4.087,267,1.507,276,2.54,291,1.351,298,2.814,307,1.767,311,3.686,312,5.354,328,1.011,330,0.86,331,0.583,334,0.583,338,2.023,342,3.697,344,2.51,383,2.154,394,2.312,453,1.54,454,3.767,474,1.081,498,2.434,515,1.604,678,2.98,693,2.774,697,3.697,698,3.767,699,6.835,700,3.176,701,1.812,702,3.176,703,6.129,704,2.774,705,1.574,706,2.154,707,5.555,708,4.679,709,2.54,710,3.176,711,3.176,712,3.176,713,3.176,714,2.51,715,3.176,716,3.176,717,2.774,718,2.774,719,3.176,720,3.176,721,3.176]],["t/405",[2,0.627,8,0.596,84,2.906,86,2.211,96,2.75,104,1.676,110,2.494,122,1.493,151,1.036,170,3.276,250,2.494,267,1.392,291,1.998,307,2.279,328,1.168,330,0.995,331,0.955,333,2.201,334,0.955,352,2.906,362,2.906,364,2.906,383,2.494,448,1.502,449,1.822,452,1.493,474,1.771,558,2.342,561,2.097,564,1.996,656,2.494,692,2.677,698,4.695,722,3.212,723,3.678,724,3.678,725,3.678,726,3.678,727,3.678,728,3.678,729,3.678,730,2.494,731,2.677,732,1.822,733,3.678,734,5.201,735,3.212,736,3.678,737,4.543,738,4.543,739,3.212,740,2.906,741,5.201,742,3.678,743,3.128,744,2.494,745,3.678,746,2.494,747,3.212,748,3.678,749,3.212,750,3.678,751,3.678]],["t/408",[2,0.475,95,2.533,169,2.442,630,3.972,633,5.448,743,3.751,752,6.238,753,6.238,754,4.54,755,6.238,756,6.238,757,6.238,758,6.238]],["t/410",[170,3.603,291,2.193,759,6.638]],["t/412",[2,0.522,95,1.907,99,3.419,101,2.825,102,2.59,179,3.419,234,4.103,287,3.185,306,2.141,338,2.991,341,5.367,342,5.411,351,2.433,452,2.495,453,2.255,454,3.185,515,1.356,589,1.663,630,2.991,651,2.679,754,3.419,760,4.697,761,3.419,762,3.419,763,3.419,764,4.473,765,3.419,766,3.419,767,4.697,768,6.345,769,4.697,770,4.697,771,2.991,772,6.145,773,2.991,774,4.103,775,4.697,776,6.145,777,4.697,778,6.848,779,4.697,780,4.697,781,4.697,782,4.697]],["t/414",[20,3.585,78,2.652,86,2.796,95,2.479,102,1.96,118,2.938,127,2.208,263,3.154,287,4.907,291,1.342,308,4.823,353,3.154,379,4.062,453,1.531,678,2.961,754,4.443,768,6.563,774,5.332,783,6.104,784,4.823,785,4.65,786,4.65,787,4.062,788,4.062,789,4.65,790,4.65,791,4.65,792,4.65,793,4.65,794,4.65,795,4.65,796,4.65,797,5.937,798,3.154,799,4.65,800,4.65,801,4.65,802,4.65,803,4.65,804,4.65,805,4.65]],["t/416",[6,3.854,86,3.854,90,2.808,91,5.064,628,5.064,806,6.409,807,3.479,808,6.409,809,5.598]],["t/418",[2,0.648,8,0.689,90,1.987,96,2.737,118,1.842,269,3.963,276,2.463,291,1.31,328,1.042,343,3.585,381,4.372,414,3.302,453,1.494,469,2.154,515,1.31,610,3.963,630,2.889,641,3.963,656,4.073,678,2.889,740,4.746,746,4.073,810,4.537,811,4.537,812,3.585,813,4.537,814,6.006,815,4.746,816,4.537,817,4.537,818,4.537,819,4.537,820,4.537,821,4.073,822,4.537,823,4.537,824,4.537]],["t/420",[2,0.636,8,0.702,29,4.082,96,2.13,153,1.97,256,2.085,267,1.412,286,1.97,307,2.313,328,1.165,329,1.349,330,1.265,334,1.125,447,2.745,453,1.539,561,2.666,589,1.265,590,5.35,614,3.172,644,2.537,732,2.316,812,4.839,825,4.674,826,4.082,827,4.674,828,4.082,829,4.082,830,5.35,831,4.082,832,4.674,833,4.674,834,4.674,835,4.674]],["t/422",[2,0.632,8,0.596,104,2.367,124,1.894,168,2.109,323,5.675,328,1.168,331,0.954,334,0.954,447,1.894,474,1.769,518,3.523,564,2.82,589,1.406,642,2.963,679,4.104,836,5.726,837,4.537,838,4.537,839,5.195,840,4.537,841,4.537,842,4.537,843,4.537,844,3.308,845,4.537,846,4.537,847,5.195]],["t/425",[1,2.356,46,3.409,133,3.409,144,4.693,151,0.973,158,5.037,383,3.844,386,4.951,433,5.468,434,5.468,435,4.951,436,6.045,698,3.844,722,4.951,784,4.479,848,5.669,849,5.669,850,5.669,851,5.669,852,5.669,853,3.844,854,5.669]],["t/427",[1,2.544,2,0.527,8,0.892,115,2.159,122,2.81,124,2.067,298,4.162,442,2.81,855,5.669,856,5.669,857,6.92,858,6.92,859,4.126]],["t/429",[1,2.029,2,0.625,8,0.683,115,1.613,267,1.645,328,1.104,329,1.72,331,1.094,334,1.094,705,2.952,860,4.289,861,3.583]],["t/431",[1,2.029,2,0.625,8,0.683,115,1.613,267,1.645,328,1.104,329,1.72,331,1.094,334,1.094,705,2.952,862,6.23,863,5.958]],["t/433",[2,0.651,103,3.268,104,2.196,108,3.096,110,3.268,114,3.807,253,2.05,256,2.127,267,1.692,372,3.807,451,3.807,515,1.391,589,2.057,815,3.807,826,4.209,864,3.978,865,3.563,866,2.966,867,2.847,868,3.268]],["t/436",[1,1.691,2,0.658,8,0.569,104,1.571,115,1.344,118,1.399,122,1.399,124,1.811,151,0.592,233,1.811,253,1.781,256,2.169,257,1.871,267,1.81,328,0.769,329,1.434,330,1.344,331,0.912,334,0.912,455,1.854,589,2.046,642,3.633,651,1.966,665,3.162,864,4.056,866,2.358,869,3.446,870,2.832,871,4.966,872,3.446,873,3.446,874,1.871]],["t/438",[1,1.583,2,0.653,8,0.533,115,1.259,122,1.888,124,2.226,151,0.798,253,1.706,256,2.32,257,2.524,267,1.779,328,0.945,329,1.342,330,1.259,331,0.854,334,0.854,380,2.796,455,1.944,498,2.037,515,1.342,589,1.652,642,2.652,864,2.961,866,2.208,874,2.524,875,3.671,876,4.65]],["t/440",[1,1.446,2,0.636,8,0.487,46,2.554,78,3.278,115,1.15,122,1.725,151,0.987,185,2.705,230,3.092,232,2.423,252,3.323,253,1.606,256,1.446,257,2.306,267,1.325,298,2.554,328,0.89,329,1.226,330,1.15,331,0.78,334,0.78,348,4.183,374,4.183,452,2.333,458,2.423,498,1.861,685,3.897,771,3.659,773,2.705,853,2.881,864,2.705,867,2.968,877,3.356,878,3.71,879,4.183,880,4.541,881,4.183,882,3.897,883,2.017,884,2.705,885,2.105,886,3.71,887,4.247,888,2.881,889,2.881,890,2.881]],["t/442",[1,1.383,2,0.643,8,0.466,46,3.352,115,1.1,124,2.033,151,0.697,185,2.587,230,2.957,232,2.317,252,3.619,253,1.558,256,2.167,257,2.205,267,1.286,298,3.352,328,0.863,329,1.173,330,1.1,331,0.746,334,0.746,380,2.443,452,2.264,458,2.317,498,1.78,564,2.205,771,3.55,773,3.55,853,2.755,864,2.587,867,3.122,875,3.352,877,3.21,882,3.781,883,1.929,884,2.587,885,2.013,886,3.548,888,3.781,889,3.781,890,3.781,891,3.548,892,4.062]],["t/444",[1,1.209,2,0.638,8,0.407,46,2.136,73,2.806,76,2.408,78,2.026,83,2.894,104,1.619,115,0.961,118,2.06,124,1.295,151,0.871,169,1.986,185,2.262,230,2.585,232,2.026,241,2.262,252,3.113,253,1.418,256,2.016,257,1.928,267,1.17,298,3.56,315,4.309,328,0.785,329,1.025,330,0.961,331,0.652,334,0.652,356,2.806,380,2.136,452,2.404,455,1.131,458,2.026,498,1.556,515,1.465,595,1.928,602,2.806,706,2.408,771,2.262,773,2.262,797,2.806,853,2.408,864,2.262,866,1.686,867,3.238,868,4.015,870,2.026,875,2.136,877,2.806,882,2.408,883,1.686,884,2.262,888,2.408,889,2.408,890,2.408,891,3.102,893,5.614,894,3.551,895,3.551,896,3.551,897,5.92,898,2.806,899,3.551,900,3.551,901,5.074]],["t/446",[78,3.606,151,1.085,348,4.602,374,4.602,685,4.288,867,2.881,878,5.522,879,4.602,880,4.995,881,4.602,902,5.522]],["t/448",[1,2.186,103,4.797,104,2.291,151,1.374,169,1.968,263,3.409,433,3.972,735,4.39,807,4.275,866,3.739,867,2.926,868,4.354,875,3.861,903,5.026,904,5.026,905,5.026,906,4.492,907,6.178,908,5.026,909,3.972]],["t/451",[2,0.652,75,2.538,82,3.516,83,2.538,88,3.219,89,3.454,151,0.764,253,1.988,315,3.239,353,3.018,365,1.327,376,3.516,390,3.239,452,3.007,454,3.018,455,1.888,516,3.018,528,5.023,589,1.605,687,3.516,798,3.018,821,3.018,879,3.239,910,3.887,911,4.45,912,4.45,913,4.45,914,4.45,915,3.887,916,3.887,917,4.45,918,4.45]],["t/453",[2,0.642,75,3.124,88,2.973,89,3.811,101,2.381,110,2.685,114,3.128,127,1.88,151,1.163,153,1.669,170,2.149,192,3.986,251,2.882,256,1.865,267,1.263,291,1.813,300,3.128,351,2.051,365,1.633,452,2.224,527,2.882,528,2.685,589,1.072,651,3.124,685,2.685,747,3.458,788,3.458,798,3.714,916,4.784,919,3.959,920,3.959,921,5.477,922,3.959,923,3.959,924,4.961,925,5.477,926,3.959,927,3.959,928,3.959,929,3.959,930,3.458,931,3.959,932,3.959,933,3.959,934,3.959,935,3.959,936,3.959,937,3.128,938,3.959,939,3.959,940,3.959,941,3.959,942,2.258]],["t/455",[2,0.463,73,4.8,89,3.737,122,2.467,151,1.043,373,5.306,527,4.422,528,5.22,797,4.8,798,4.12,943,6.075,944,6.075,945,6.075,946,6.075]],["t/457",[2,0.622,8,0.599,120,5.746,124,1.905,127,2.48,136,4.563,211,4.127,252,2.381,253,1.46,276,2.835,286,2.202,299,3.956,306,2.381,307,1.973,318,4.563,452,2.121,678,3.326,787,4.563,859,3.802,947,5.224,948,4.563,949,5.198,950,5.224,951,5.224,952,5.224,953,4.563,954,5.224,955,6.578,956,6.578,957,5.224]],["t/459",[0,3.683,2,0.541,5,2.758,6,3.056,7,3.056,8,0.741,30,2.898,36,4.438,41,4.062,52,4.705,96,2.316,97,3.056,102,2.142,106,3.446,135,4.438,416,4.015,444,3.236,498,2.226,909,4.015,958,5.081,959,5.081,960,5.081,961,4.438,962,5.081,963,5.081,964,5.081,965,5.081,966,5.081,967,5.081,968,5.646,969,5.081,970,5.081,971,5.081,972,5.081,973,5.081,974,5.081,975,5.081]],["t/462",[2,0.64,8,0.741,90,2.226,115,1.375,267,1.726,291,1.866,328,1.158,330,1.75,331,1.187,334,1.187,351,2.632,365,1.515,442,2.063,447,2.357,474,1.73,589,1.75,692,4.705,730,4.384,731,4.705]],["t/464",[2,0.639,8,0.736,90,2.202,115,1.361,253,1.794,267,1.719,291,1.853,328,1.154,330,1.738,331,1.179,334,1.179,351,2.604,365,1.499,442,2.041,447,2.341,474,1.711,564,3.485,589,1.738,687,5.072,731,4.673]],["t/466",[2,0.628,8,0.754,20,1.595,84,2.544,90,2.07,97,4.269,115,1.516,147,1.837,151,0.812,267,1.423,291,1.897,301,2.448,306,1.468,328,1.127,330,1.67,331,1.133,333,1.724,334,0.868,351,2.448,352,2.544,365,1.41,442,1.919,447,2.042,448,1.365,468,1.936,469,2.244,474,1.609,656,3.205,692,3.44,697,4.425,714,2.544,730,3.205,731,3.44,732,1.595,740,3.735,821,3.798,976,5.389,977,4.129,978,4.891,979,4.891,980,2.813,981,5.389,982,5.389,983,3.22,984,3.22,985,3.22,986,4.129,987,4.727,988,4.727,989,4.727,990,4.727,991,4.129,992,4.129,993,2.813,994,4.727]],["t/468",[2,0.643,8,0.423,95,1.499,133,2.22,168,1.499,233,1.902,235,2.687,256,1.257,299,2.22,307,1.395,328,1.073,329,1.066,330,0.999,331,0.678,333,1.346,334,0.678,338,3.322,365,1.804,390,2.687,448,1.066,452,2.456,453,1.717,455,1.176,474,1.257,498,2.285,515,1.066,564,2.004,589,1.637,651,2.975,761,2.687,762,2.687,763,2.687,764,2.687,765,2.687,766,2.687,870,2.106,883,1.753,884,2.351,885,1.829,924,5.193,995,2.917,996,3.225,997,2.917,998,2.917,999,2.917,1000,2.917,1001,2.917,1002,2.917,1003,2.917,1004,2.917,1005,2.917,1006,2.917,1007,3.225,1008,3.225,1009,3.225,1010,2.917,1011,2.917,1012,3.225,1013,3.225,1014,3.225,1015,3.225,1016,3.225,1017,4.556,1018,3.225,1019,3.225,1020,3.225,1021,3.225,1022,3.225,1023,3.225,1024,3.225,1025,3.225]],["t/470",[8,0.933,95,2.97,102,2.833,151,1.154,217,4.722,291,1.94,498,2.368,737,6.388,948,4.722,1026,5.405,1027,5.405,1028,5.405,1029,5.405,1030,5.405,1031,6.721,1032,5.405,1033,5.405,1034,6.721,1035,5.405,1036,5.405,1037,5.405]],["t/472",[2,0.631,8,0.709,106,3.218,151,0.815,252,2.163,253,1.729,264,3.749,328,1.065,333,1.73,338,3.022,353,3.218,414,3.454,448,1.786,453,1.562,474,1.616,498,2.079,709,2.576,743,2.853,829,5.403,870,2.706,1038,2.351,1039,2.253,1040,4.745,1041,4.745,1042,4.745,1043,4.745,1044,4.745,1045,4.145,1046,6.882,1047,4.145,1048,4.745,1049,4.745,1050,4.745,1051,4.745,1052,4.745,1053,4.745,1054,4.745,1055,4.745,1056,4.745,1057,4.745,1058,4.745]],["t/474",[2,0.65,8,0.458,118,1.621,151,0.686,170,2.99,253,1.116,307,1.508,328,1.104,329,1.153,330,1.081,365,1.881,453,2.536,469,3.229,474,1.359,561,2.277,589,2.085,698,3.736,730,2.708,738,5.509,739,3.488,743,3.313,744,3.736,844,3.508,1038,1.978,1039,1.896,1059,5.509,1060,3.993,1061,3.993,1062,3.993,1063,3.993,1064,6.307,1065,3.993,1066,3.993,1067,5.509]],["t/476",[2,0.646,8,0.464,102,1.705,151,0.694,153,3.021,168,1.642,169,1.583,253,2.003,267,0.933,291,1.605,328,0.86,330,1.095,331,0.743,334,1.021,365,1.894,448,1.168,449,2.004,453,2.438,455,2.022,469,3.015,474,1.377,516,4.307,589,2.005,844,4.354,915,3.533,949,5.018,1038,2.004,1039,1.92,1068,5.972,1069,5.972]],["t/478",[2,0.625,8,0.613,151,0.917,153,2.252,168,2.17,253,1.865,267,1.232,328,0.827,331,0.981,334,0.981,365,1.594,448,1.543,449,2.648,453,2.197,455,1.702,469,2.537,589,1.806,749,4.667,844,3.403,949,4.222,1038,2.648,1039,2.537,1068,4.667,1069,4.667,1070,5.343,1071,5.343,1072,5.343,1073,5.343]],["t/480",[2,0.639,8,0.485,82,3.341,83,2.412,88,3.11,89,2.19,95,1.717,102,1.782,118,1.717,151,0.726,168,1.717,169,1.655,212,3.341,233,1.542,250,2.867,267,0.975,286,2.415,291,1.654,302,1.655,311,2.543,315,3.078,328,0.887,330,1.144,331,0.776,334,1.052,365,1.261,376,3.341,381,3.078,393,4.527,397,3.693,434,3.341,448,1.221,449,2.095,452,2.638,453,1.886,455,1.346,456,2.867,458,2.412,464,2.867,474,1.44,515,1.654,516,2.867,517,3.693,518,2.867,519,3.693,520,3.693,527,3.078,528,2.867,589,1.144,630,2.692,1038,2.095,1039,2.008,1074,3.693,1075,4.228,1076,4.228,1077,4.228]],["t/482",[2,0.644,8,0.432,30,2.146,90,1.046,96,1.715,124,1.698,147,1.361,151,0.646,156,1.737,168,0.969,170,2.869,179,3.848,192,1.737,193,2.085,210,2.085,211,1.886,215,2.085,218,2.085,232,1.361,239,2.085,253,0.667,267,1.219,276,1.296,287,1.619,291,0.689,302,0.934,304,1.886,307,0.902,323,3.68,328,1.056,330,1.018,331,0.855,333,1.372,334,0.691,343,1.886,344,2.973,353,2.552,365,1.576,447,2.417,453,1.239,468,1.435,469,1.133,498,1.046,518,2.552,561,1.361,564,1.296,589,1.261,614,1.949,615,2.085,642,2.146,679,3.68,706,2.552,717,2.085,732,2.308,743,2.801,744,3.159,812,2.973,828,4.068,830,2.085,831,3.287,836,3.287,837,2.085,838,2.085,840,3.287,841,2.085,842,5.024,843,2.085,844,1.52,845,2.085,846,3.287,953,4.617,980,4.068,998,1.886,1039,1.787,1047,2.085,1078,3.763,1079,2.387,1080,2.387,1081,3.763,1082,3.763,1083,2.387,1084,2.387,1085,2.387,1086,4.068,1087,5.286,1088,5.752,1089,5.286,1090,3.763,1091,2.387,1092,2.387,1093,2.387,1094,3.763,1095,2.387,1096,4.658,1097,2.387,1098,3.763,1099,2.387,1100,2.387,1101,2.387,1102,2.387,1103,2.387,1104,2.387,1105,2.387,1106,2.387,1107,2.387,1108,2.387,1109,2.387]],["t/484",[2,0.649,8,0.492,95,1.741,102,1.807,118,1.741,151,0.736,168,1.741,169,1.678,212,3.387,233,2.109,250,2.907,262,4.569,267,0.989,291,1.669,302,2.264,311,2.578,328,0.895,330,1.16,331,0.787,334,1.062,365,1.724,393,4.569,448,1.237,449,2.124,451,3.387,452,2.844,453,1.904,454,3.921,455,1.841,456,3.921,457,5.051,458,3.298,464,2.907,473,3.387,474,1.46,515,1.237,589,1.16,1038,2.124,1039,2.035,1074,3.744]],["t/486",[2,0.652,96,2.058,151,0.775,168,2.431,252,2.728,267,1.041,291,1.303,328,0.699,331,0.829,333,1.646,334,0.829,365,1.346,448,1.303,449,2.237,453,2.355,515,1.303,589,1.62,642,3.414,844,2.875,881,3.286,910,5.229,1038,2.237,1039,2.144,1086,3.944,1110,4.515,1111,5.987,1112,4.515,1113,4.515,1114,4.515,1115,4.515,1116,5.987,1117,3.944,1118,4.515,1119,4.515,1120,4.515]],["t/488",[2,0.643,8,0.409,95,1.448,133,2.144,151,0.612,168,1.448,233,1.855,235,2.595,256,1.214,299,2.144,307,1.347,328,1.101,329,1.029,330,0.965,331,0.655,333,1.3,334,0.655,338,3.24,365,1.769,390,2.595,448,1.029,452,2.409,453,1.675,455,1.135,474,1.214,498,2.229,515,1.029,564,1.935,589,1.606,651,2.902,761,2.595,762,2.595,763,2.595,764,2.595,765,2.595,766,2.595,870,2.033,883,1.693,884,2.27,885,1.766,924,5.112,995,2.817,996,3.114,997,2.817,998,2.817,999,2.817,1000,2.817,1001,2.817,1002,2.817,1003,2.817,1004,2.817,1005,2.817,1006,2.817,1007,3.114,1008,3.114,1009,3.114,1010,2.817,1011,2.817,1012,3.114,1013,3.114,1014,3.114,1015,3.114,1016,3.114,1017,4.444,1018,3.114,1019,3.114,1020,3.114,1021,3.114,1022,3.114,1023,3.114,1024,3.114,1025,3.114,1038,1.766,1039,1.693,1121,3.565,1122,3.114,1123,3.565]],["t/490",[2,0.599,8,0.62,97,3.251,151,0.928,307,2.042,328,1.04,329,1.561,330,1.463,331,0.993,333,1.971,334,0.993,365,1.612,448,1.561,469,2.567,474,1.84,644,2.934,743,3.251,744,3.666,821,4.558,981,4.722,982,4.722,991,4.722,992,4.722,1038,2.678,1039,2.567,1124,5.405,1125,5.405,1126,5.405,1127,5.405,1128,5.405]],["t/492",[2,0.651,8,0.362,16,2.493,92,2.139,95,1.281,106,3.157,133,1.897,151,0.542,192,2.296,233,2.018,235,3.389,240,3.679,252,2.122,256,1.074,263,3.753,267,0.728,291,0.911,295,2.493,302,1.235,307,1.192,328,1.056,329,0.911,333,1.15,362,2.493,364,3.679,453,1.533,474,1.074,515,0.911,564,1.712,761,2.296,762,2.296,763,2.296,764,2.296,765,3.389,766,4.028,930,2.756,995,2.493,997,2.493,999,2.493,1000,2.493,1001,2.493,1002,2.493,1003,2.493,1004,2.493,1005,2.493,1006,3.679,1010,2.493,1011,2.493,1038,1.563,1039,1.498,1045,2.756,1122,2.756,1129,3.155,1130,3.155,1131,3.155,1132,4.656,1133,3.155,1134,4.656,1135,3.155,1136,3.155,1137,3.155,1138,3.155,1139,3.155,1140,3.155,1141,3.155,1142,3.155,1143,3.155,1144,3.155,1145,3.155,1146,4.656,1147,3.155,1148,3.155,1149,3.155,1150,3.155,1151,3.155,1152,3.155,1153,3.155,1154,4.656,1155,3.155,1156,4.656,1157,3.155,1158,3.155,1159,3.155,1160,3.155,1161,3.155,1162,3.155,1163,3.155,1164,3.155,1165,3.155,1166,3.155]],["t/494",[2,0.634,8,0.541,76,3.202,97,2.839,151,0.811,168,1.917,267,1.583,301,2.445,307,2.329,328,1.063,329,1.363,330,1.278,331,0.867,333,1.722,334,0.867,365,1.839,448,1.363,474,1.607,697,3.73,714,3.73,730,3.202,743,2.839,744,3.202,815,4.871,821,4.181,976,5.385,977,4.124,978,4.124,979,5.385,986,4.124,993,5.385,1038,2.339,1039,2.242,1167,4.721,1168,4.721,1169,4.721,1170,4.721,1171,4.721]],["t/496",[2,0.655,8,0.268,20,1.156,46,1.403,83,1.331,108,1.156,115,0.632,117,1.698,118,1.501,127,1.108,151,0.401,153,0.984,169,2.043,228,1.331,233,1.903,252,1.063,253,0.652,256,0.794,286,0.984,299,1.403,301,2.377,302,2.482,306,1.063,311,3.421,328,0.937,329,0.674,331,1.274,333,0.851,334,0.428,366,1.844,442,0.947,447,2.398,448,0.674,455,1.177,515,0.674,589,1,595,2.833,614,1.209,644,1.266,701,1.331,705,1.156,706,1.582,709,3.441,732,1.831,771,1.486,773,1.486,807,2.006,859,1.698,860,2.222,861,1.403,865,1.331,866,2.179,867,2.091,868,1.582,870,1.331,874,2.006,882,1.582,883,2.478,885,1.831,888,1.582,889,1.582,890,1.582,893,4.124,898,1.844,906,2.108,942,1.331,1172,1.403,1173,1.403,1174,1.403,1175,2.038,1176,2.038,1177,2.038,1178,2.353,1179,1.403,1180,2.353,1181,1.403,1182,1.403,1183,1.403,1184,1.403,1185,1.486,1186,1.403,1187,2.222,1188,2.222,1189,2.222,1190,2.222,1191,1.403,1192,1.403,1193,4.559,1194,1.403,1195,3.228,1196,2.038,1197,2.038,1198,2.038,1199,2.038,1200,2.038,1201,2.038,1202,2.038,1203,1.403,1204,1.403,1205,1.698,1206,1.403,1207,1.698,1208,2.038]],["t/498",[2,0.655,8,0.262,20,1.133,46,1.376,83,1.305,108,1.133,115,0.619,117,1.665,118,1.477,124,0.834,127,1.086,151,0.393,153,0.964,169,2.021,228,1.305,233,1.882,252,1.658,253,1.017,256,0.779,286,0.964,299,1.376,301,2.346,302,2.463,306,1.042,311,3.388,328,0.929,329,0.66,331,1.266,333,0.834,334,0.42,366,1.807,442,0.929,447,2.381,448,0.66,455,1.159,515,0.66,589,0.985,595,2.802,614,1.185,644,1.242,665,1.457,701,1.305,705,1.133,706,1.551,709,3.415,732,1.802,771,1.457,773,1.457,807,1.975,859,1.665,860,2.188,861,1.376,865,1.305,866,2.151,867,2.064,868,1.551,870,1.305,874,1.975,882,1.551,883,2.451,885,1.802,888,1.551,889,1.551,890,1.551,893,4.078,898,1.807,906,2.075,942,1.305,1172,1.376,1173,1.376,1174,1.376,1175,1.998,1176,1.998,1177,1.998,1178,2.317,1179,1.376,1180,2.317,1181,1.376,1182,1.376,1183,1.376,1184,1.376,1185,1.457,1186,1.376,1187,2.188,1188,2.188,1189,2.188,1190,2.188,1191,1.376,1192,1.376,1193,4.509,1194,1.376,1195,3.178,1196,1.998,1197,1.998,1198,1.998,1199,1.998,1200,1.998,1201,1.998,1202,1.998,1203,1.376,1204,1.376,1206,1.376,1208,1.998,1209,1.807,1210,1.807]],["t/500",[2,0.655,8,0.336,20,1.45,108,1.45,115,0.792,124,1.067,127,1.39,151,0.503,153,1.234,169,1.724,228,1.669,233,2.147,252,1.334,253,1.231,256,0.997,286,1.234,301,1.516,302,2.694,306,1.334,328,0.911,329,0.845,331,1.355,333,1.067,334,0.537,442,1.188,447,2.419,448,0.845,455,0.932,515,0.845,595,2.39,614,1.516,644,1.589,665,1.864,701,1.669,705,1.45,709,3.735,732,1.45,807,2.39,860,2.648,861,1.76,865,1.669,866,2.513,867,1.334,874,2.39,883,2.795,885,1.45,906,2.511,942,1.669,1172,1.76,1173,1.76,1174,1.76,1178,1.864,1179,1.76,1180,1.864,1181,1.76,1182,1.76,1183,1.76,1184,1.76,1185,1.864,1186,1.76,1187,2.648,1188,2.648,1189,2.648,1190,2.648,1191,1.76,1192,1.76,1194,1.76,1203,1.76,1204,1.76,1206,1.76,1209,2.313,1210,2.313,1211,2.13]],["t/502",[2,0.655,8,0.315,20,1.36,108,1.36,115,0.743,124,1.53,127,1.304,151,0.471,153,1.157,169,1.642,228,1.566,233,2.078,252,1.251,253,1.172,256,1.94,286,1.157,301,1.422,302,2.718,306,1.251,328,0.882,329,0.793,331,1.333,333,1.001,334,0.504,442,1.115,447,2.36,448,0.793,455,1.336,515,0.793,572,3.314,589,0.743,595,2.277,614,1.422,644,1.49,665,1.748,701,1.566,705,1.36,709,3.654,732,1.36,807,2.277,860,2.522,861,1.651,865,1.566,866,2.417,867,1.251,874,2.277,875,1.651,883,2.706,885,1.36,906,2.392,942,2.392,1172,1.651,1173,1.651,1174,1.651,1178,1.748,1179,1.651,1180,1.748,1181,1.651,1182,1.651,1183,1.651,1184,1.651,1185,1.748,1186,1.651,1187,2.522,1188,2.522,1189,2.522,1190,2.522,1191,1.651,1192,1.651,1194,2.522,1203,1.651,1204,1.651,1206,1.651,1209,2.169,1210,2.169,1211,1.999,1212,2.398,1213,2.398,1214,2.398]],["t/504",[2,0.654,8,0.322,20,1.393,108,1.393,115,0.761,124,1.025,127,1.335,151,0.483,153,1.185,169,1.672,228,1.604,233,2.104,253,0.786,256,1.964,286,1.185,301,1.457,302,2.738,306,1.282,328,0.893,329,0.812,331,1.341,333,1.025,334,0.516,442,1.142,447,2.382,448,0.812,455,1.36,515,0.812,572,3.375,589,0.761,595,2.319,614,1.457,644,1.526,701,1.604,705,1.393,709,3.685,732,1.393,807,2.319,860,2.569,861,1.691,865,1.604,866,2.453,867,1.282,874,2.319,875,1.691,883,2.739,885,1.393,906,2.436,942,2.436,1172,1.691,1173,1.691,1174,1.691,1178,1.791,1179,1.691,1180,1.791,1181,1.691,1182,1.691,1183,1.691,1184,1.691,1185,1.791,1186,1.691,1187,2.569,1188,2.569,1189,2.569,1190,2.569,1191,1.691,1192,1.691,1194,2.569,1203,1.691,1204,1.691,1205,2.047,1206,1.691,1207,2.047,1211,2.047,1212,2.456,1213,2.456,1214,2.456]],["t/506",[2,0.656,8,0.475,20,0.992,96,1.887,108,1.619,115,1.121,118,2.61,124,1.742,127,0.951,153,0.844,169,1.279,170,1.087,228,1.864,233,1.742,253,0.56,256,0.682,288,1.749,291,0.943,296,2.582,301,1.037,302,2.332,306,0.913,328,0.74,329,0.578,331,1.243,333,0.73,334,0.368,380,1.965,442,1.327,447,1.92,448,0.578,455,1.676,558,1.275,595,1.774,614,1.037,628,1.582,701,1.142,705,0.992,709,3.234,732,0.992,807,1.087,853,3.24,862,4.598,865,1.142,866,1.552,867,0.913,870,2.725,874,1.774,875,1.965,883,2.95,884,3.043,885,0.992,906,1.142,907,2.854,909,2.582,942,1.142,1172,1.204,1173,1.965,1174,1.965,1179,1.204,1181,1.204,1182,1.204,1183,1.204,1184,1.204,1186,1.204,1187,1.965,1188,1.965,1189,1.965,1190,1.965,1191,1.204,1192,1.204,1194,1.204,1203,1.204,1204,1.204,1205,1.457,1206,1.204,1207,1.457,1215,2.002,1216,2.002,1217,2.002,1218,2.002,1219,2.002,1220,2.002,1221,2.002,1222,2.002,1223,2.002,1224,4.14,1225,3.268,1226,2.002,1227,2.002,1228,4.14,1229,3.268,1230,2.002,1231,2.002,1232,2.002,1233,2.002,1234,2.002,1235,2.002,1236,6.213,1237,3.268,1238,2.002,1239,3.268,1240,3.268,1241,2.002,1242,3.268,1243,2.002,1244,3.268,1245,3.268]],["t/508",[2,0.654,8,0.344,20,1.488,108,1.488,115,0.813,127,1.426,151,0.515,153,1.266,169,1.757,228,1.712,233,2.174,253,0.839,256,1.022,286,1.266,301,1.555,302,2.717,306,1.368,328,0.923,329,0.867,331,1.364,333,1.095,334,0.551,442,1.219,447,2.442,448,0.867,455,0.956,515,0.867,595,2.436,614,1.555,644,1.63,701,1.712,705,1.488,709,3.767,732,1.488,807,2.436,860,2.699,861,1.805,865,1.712,866,2.552,867,1.368,874,2.436,883,2.831,885,1.488,906,2.559,942,1.712,1172,1.805,1173,1.805,1174,1.805,1178,1.912,1179,1.805,1180,1.912,1181,1.805,1182,1.805,1183,1.805,1184,1.805,1185,1.912,1186,1.805,1187,2.699,1188,2.699,1189,2.699,1190,2.699,1191,1.805,1192,1.805,1194,1.805,1203,1.805,1204,1.805,1205,2.185,1206,1.805,1207,2.185,1211,2.185]],["t/510",[1,2.042,78,3.42,151,1.03,241,3.819,258,5.238,261,4.738,293,5.238,394,4.365,705,2.971,1246,4.738,1247,5.997,1248,5.997,1249,5.997,1250,5.997,1251,5.997,1252,5.997,1253,5.997,1254,5.997,1255,5.997]],["t/512",[1,2.055,261,4.769,276,3.901,286,2.544,296,4.769,375,4.393,515,1.742,558,3.843,746,4.093,1256,6.036,1257,6.036,1258,6.036,1259,6.036,1260,6.036,1261,6.036,1262,6.036,1263,4.769]],["t/514",[2,0.646,8,0.591,96,1.278,118,2.339,253,1.61,257,3.363,267,1.429,276,4.246,286,1.797,291,2.017,328,0.959,330,0.759,331,0.947,334,0.947,365,2.364,375,4.509,448,1.488,474,1.755,515,1.23,558,3.283,561,1.599,589,1.154,642,2.431,678,3.668,746,3.496,754,2.041,784,2.215,937,3.367,1117,2.449,1246,2.215,1263,4.074,1264,5.411,1265,2.449,1266,2.449,1267,2.804,1268,2.804,1269,5.411,1270,2.804,1271,5.031,1272,5.76,1273,2.804,1274,2.449,1275,2.449,1276,2.449,1277,2.449,1278,2.804,1279,2.449,1280,2.449,1281,3.723,1282,2.449,1283,2.449]],["t/516",[2,0.647,8,0.575,96,1.223,115,1.358,147,4.115,253,1.574,257,3.297,264,4.799,267,1.401,276,4.093,286,1.737,291,1.928,328,0.993,330,0.726,331,0.921,334,0.921,365,2.249,375,4.421,442,2.037,447,2.215,448,1.448,468,4.338,469,1.956,515,1.19,558,3.195,561,1.53,589,1.115,600,2.343,642,2.35,746,3.402,937,3.256,1246,2.119,1263,3.964,1264,5.306,1265,2.343,1266,2.343,1269,5.306,1271,5.306,1274,2.343,1275,2.343,1276,2.343,1277,2.343,1279,2.343,1280,2.343,1281,3.599,1282,2.343,1283,2.343,1284,2.682]],["t/518",[1285,6.685,1286,6.685,1287,6.685]],["t/520",[8,0.576,87,6.275,106,2.372,115,0.947,122,1.42,134,3.055,151,1.101,156,2.546,180,4.384,185,4.084,209,3.055,232,2.863,244,5.602,245,3.055,250,2.372,257,1.899,265,5.128,267,0.807,277,3.055,287,2.372,331,0.922,348,2.546,356,2.764,374,2.546,414,2.546,683,3.055,684,4.384,685,2.372,704,4.384,718,4.384,798,2.372,809,3.055,879,3.653,880,2.764,881,2.546,902,3.055,1288,3.498,1289,3.498,1290,3.498,1291,5.019,1292,7.281,1293,3.498,1294,5.019,1295,3.498,1296,3.498,1297,3.498,1298,3.498,1299,3.498,1300,3.498,1301,3.498,1302,3.498,1303,3.498,1304,5.019,1305,5.87,1306,3.498,1307,3.498,1308,3.498,1309,3.498,1310,3.498,1311,3.498,1312,3.498,1313,3.498,1314,3.498,1315,3.498,1316,3.498,1317,5.019,1318,3.498,1319,3.498,1320,3.498,1321,3.498,1322,5.019,1323,3.498,1324,3.498,1325,3.498,1326,3.498,1327,3.498,1328,3.498,1329,5.019,1330,3.498,1331,3.498,1332,3.498,1333,3.498,1334,3.498,1335,3.498,1336,3.498]],["t/522",[0,3.771,1,2.274,2,0.47,3,3.344,4,3.344,5,2.904,6,3.218,8,0.766,9,2.787,15,2.302,30,3.809,38,3.625,41,3.625,68,2.787,88,2.078,89,1.983,90,1.677,91,3.025,92,2.596,93,2.787,96,1.745,97,2.302,99,2.787,100,4.228,101,3.218,111,3.025,132,3.344,411,3.025,412,3.025,416,4.228,417,3.344,418,3.344,420,3.344,463,2.787,466,3.025,475,2.787,487,3.344,488,3.344,491,3.025,532,4.674,533,3.025,542,3.025,671,3.344,698,2.596,961,3.344,968,4.674,1337,3.829,1338,3.829,1339,3.829,1340,3.829,1341,5.351,1342,3.829,1343,3.829,1344,3.829,1345,5.351,1346,5.351,1347,3.829,1348,3.829,1349,3.829,1350,3.829,1351,3.829,1352,3.829,1353,3.829,1354,5.351,1355,3.829,1356,5.351,1357,3.829,1358,3.829,1359,3.829,1360,3.829,1361,3.829,1362,3.829,1363,3.829]]],"invertedIndex":[["",{"_index":2,"t":{"350":{"position":[[9,1],[96,1],[304,1]]},"358":{"position":[[254,1],[278,1]]},"368":{"position":[[632,1]]},"372":{"position":[[122,1],[132,1],[191,1],[246,2],[249,2],[252,2]]},"374":{"position":[[49,1],[61,1],[123,2],[170,2]]},"376":{"position":[[7,1],[13,1],[68,1]]},"380":{"position":[[837,1],[941,1],[968,2],[980,2],[983,1],[1014,1],[1051,2],[1054,1],[1071,1],[1109,2],[1173,2],[1189,2],[1192,1],[1194,2],[1259,3],[1263,2],[1266,2],[1269,2],[1272,3],[1687,1],[1806,2],[1832,2],[1839,1],[1856,3],[1876,1],[1898,2],[1901,1],[1918,1],[1946,2],[1993,2],[2085,3],[2089,1],[2096,1],[2108,1],[2175,2],[2188,1],[2205,1],[2207,2],[2210,3]]},"382":{"position":[[523,1],[674,1],[676,2],[689,3],[727,2],[740,2],[743,1],[780,1],[836,2],[839,2],[867,2],[880,2],[883,1],[920,1],[976,2],[979,2],[1007,2],[1020,2],[1023,1],[1060,1],[1116,2],[1119,2],[1122,2],[1125,3]]},"388":{"position":[[17,2],[72,2],[128,1],[212,3],[216,2],[240,1],[266,1],[300,1],[328,1],[347,1],[353,2],[378,2],[454,2],[534,1],[548,1],[568,1],[570,2],[622,1],[640,1],[674,1],[702,1],[704,1],[716,1],[718,3],[735,2],[760,1],[774,1],[794,1],[796,2],[827,1],[848,2],[904,1],[982,3],[986,2],[1032,1],[1060,1],[1079,1],[1118,1],[1142,2],[1218,2],[1298,1],[1300,2],[1303,2],[1377,1],[1405,1],[1407,1],[1419,1],[1421,3],[1463,1],[1487,1],[1489,2]]},"390":{"position":[[235,1],[689,1],[691,2],[747,1],[831,3],[835,2],[930,1],[966,1],[994,1],[996,1],[1008,1],[1010,3],[1033,2],[1058,2],[1134,2],[1214,1],[1228,1],[1248,1],[1262,1],[1283,2],[1339,1],[1417,3],[1421,2],[1520,1],[1548,1],[1550,1],[1562,1],[1564,3],[1620,1],[1644,2],[1720,2],[1800,1],[1802,2]]},"392":{"position":[[292,1],[376,2],[486,1],[618,2],[665,1],[717,2],[788,1],[862,3],[878,1],[899,2],[1009,1],[1141,2],[1188,1],[1240,2],[1311,1],[1385,3],[1635,1],[1637,2],[1704,1],[1755,2],[1768,1],[1821,1],[1833,1],[1847,1],[1867,1],[1869,2],[1986,1],[1988,2],[2001,1],[2054,1],[2066,3],[2207,2],[2264,1],[2294,2],[2342,3],[2346,4],[2351,2],[2437,2],[2523,1],[2525,2],[2567,3],[2571,4],[2576,2],[2662,3]]},"394":{"position":[[143,1],[145,2],[201,1],[285,3],[289,2],[340,1],[376,1],[404,1],[406,1],[418,1],[420,3],[438,2],[441,1],[568,2],[623,2],[722,2],[800,1],[903,3],[907,2],[958,1],[994,1],[1022,1],[1024,1],[1036,1],[1038,3],[1056,2],[1233,1],[1235,2],[1265,1],[1337,3],[1341,2],[1410,1],[1428,2],[1482,1],[1521,1],[1659,1],[1680,2],[1709,1],[1787,3],[1849,2],[1852,1],[1873,2],[1905,2]]},"396":{"position":[[145,1],[452,1],[555,3],[570,1],[667,3],[705,1],[731,1],[809,3],[835,2],[943,2],[977,1],[991,1],[1011,1],[1025,1],[1084,2],[1119,1],[1143,2],[1251,2],[1285,1],[1287,2]]},"399":{"position":[[162,1],[462,1],[500,1],[512,1],[525,2],[540,2],[543,1],[545,2],[578,1],[580,1],[582,1],[621,2],[639,1],[641,1],[648,1],[650,1],[652,3],[686,1],[698,1],[705,2],[720,2],[723,1],[725,2],[735,1],[737,1],[739,1],[767,3],[799,1],[811,1],[818,2],[833,2],[836,1],[838,2],[856,1],[865,3],[869,2],[973,1],[975,1],[977,1],[1006,2],[1009,1],[1011,2],[1029,1],[1038,3]]},"401":{"position":[[14,1],[16,1],[68,2],[112,2],[115,1],[117,2],[170,2],[241,2],[244,4],[249,2],[252,3]]},"403":{"position":[[453,2],[562,1],[590,2],[593,2],[619,1],[693,1],[727,1],[776,1],[798,2],[801,2],[816,2],[898,1],[927,1],[965,1],[1052,2],[1055,1],[1057,2],[1096,1],[1149,1],[1238,3],[1242,3],[1246,2],[1249,1],[1285,2],[1288,3],[1379,2]]},"405":{"position":[[10,1],[40,1],[73,1],[111,1],[226,2],[255,3],[592,1],[635,1],[668,1],[759,1],[777,1],[800,1],[834,2],[837,1],[869,1],[871,2],[895,2],[898,3]]},"408":{"position":[[69,1]]},"412":{"position":[[107,2],[255,2],[497,1]]},"418":{"position":[[0,2],[18,2],[33,1],[62,2],[136,2],[191,2],[194,2],[210,2],[271,2],[312,1],[356,2],[483,2],[486,1],[498,1],[563,2],[581,2],[584,1],[617,2],[633,2],[636,1],[656,2],[714,3]]},"420":{"position":[[26,1],[40,1],[80,1],[128,3],[153,1],[182,3],[222,1],[250,1],[264,1],[304,1],[340,3],[344,2],[480,3],[534,1]]},"422":{"position":[[12,1],[42,1],[72,2],[75,1],[85,1],[164,3],[179,1],[287,1],[299,4],[319,3]]},"427":{"position":[[233,1],[266,1]]},"429":{"position":[[14,1],[34,1],[83,1],[85,1],[119,2],[133,1]]},"431":{"position":[[14,1],[28,1],[71,1],[73,1],[107,2],[121,1]]},"433":{"position":[[37,1],[67,2],[70,1],[72,3],[76,1],[85,1],[87,1],[97,1],[99,1],[101,2],[104,3],[131,1],[161,2],[164,1],[166,3],[170,1],[179,1],[181,1],[191,1],[193,1],[195,2],[198,3]]},"436":{"position":[[68,1],[84,1],[112,1],[171,3],[175,2],[223,1],[253,2],[256,1],[277,3],[281,1],[290,1],[292,1],[302,1],[304,1],[306,2],[309,3],[313,2],[390,2],[393,1],[414,3],[418,1],[427,1],[429,1],[454,1],[456,1],[458,2],[461,3],[513,1],[529,1],[557,1],[635,3],[639,2],[688,1],[703,1],[731,2],[734,1],[755,3],[759,1],[768,1],[770,1],[777,1],[779,1],[781,2],[784,1],[786,2],[789,2],[866,2],[869,1],[890,3],[894,1],[903,1],[905,1],[914,1],[916,1],[918,2],[921,3]]},"438":{"position":[[85,1],[101,1],[129,1],[214,3],[228,1],[230,1],[241,1],[263,1],[276,2],[327,2],[330,1],[351,3],[355,1],[364,1],[366,1],[368,1],[378,1],[380,2],[383,1],[385,1],[395,1],[397,1],[399,1],[401,2],[404,3]]},"440":{"position":[[322,1],[340,1],[368,1],[427,3],[441,1],[443,1],[452,1],[457,2],[508,2],[511,1],[534,3],[538,1],[565,1],[618,3],[672,1],[674,2],[677,3]]},"442":{"position":[[173,1],[191,1],[219,1],[304,3],[318,1],[320,1],[329,1],[341,1],[346,2],[400,2],[403,1],[427,3],[431,1],[443,1],[461,1],[514,3],[569,2],[588,1],[641,3],[695,1],[697,1],[699,2],[702,3]]},"444":{"position":[[280,1],[319,1],[347,1],[406,3],[410,3],[430,2],[485,3],[505,2],[565,1],[577,1],[586,3],[590,3],[614,2],[627,1],[720,2],[723,1],[746,3],[750,1],[777,1],[830,3],[884,1],[886,2],[889,3],[1065,3],[1106,2]]},"451":{"position":[[60,1],[62,1],[64,1],[66,1],[100,2],[103,1],[105,2],[114,1],[116,1],[129,1],[131,1],[133,2],[157,1],[159,1],[161,1],[163,1],[243,3],[247,2],[287,1],[289,1],[291,1],[293,1],[359,1],[361,1],[363,1],[365,1]]},"453":{"position":[[165,1],[167,1],[169,1],[199,2],[202,1],[204,2],[266,3],[295,2],[395,1],[407,2],[423,2],[489,2],[492,1],[494,2],[498,1],[500,1],[502,1],[513,1],[515,1],[517,3],[521,2],[573,2],[683,3]]},"455":{"position":[[22,1]]},"457":{"position":[[63,1],[81,1],[96,1],[114,1],[155,1],[187,1],[230,1],[250,1]]},"459":{"position":[[20,1],[195,1],[269,1]]},"462":{"position":[[70,1],[135,3],[152,1],[203,2],[206,3],[222,1],[260,1],[319,3],[377,2],[380,1],[382,2],[385,3],[389,3]]},"464":{"position":[[70,1],[135,3],[152,1],[211,2],[214,3],[230,1],[268,1],[327,3],[391,2],[394,1],[396,2],[399,3],[403,3]]},"466":{"position":[[91,1],[161,1],[261,2],[264,3],[339,1],[368,1],[406,1],[470,1],[570,2],[573,3],[879,1],[898,1],[1028,3],[1044,1],[1141,1],[1155,1],[1175,1],[1189,1],[1227,1],[1351,3],[1418,2],[1421,1],[1464,3]]},"468":{"position":[[12,1],[46,1],[122,2],[125,1],[310,3],[352,2],[355,1],[417,3],[434,1],[543,3],[570,2],[573,1],[647,1],[649,2],[698,2],[772,1],[774,2],[830,1],[854,1],[967,1],[974,1],[976,2],[1038,1],[1107,1],[1109,3],[1113,3],[1158,3]]},"472":{"position":[[35,1],[71,1],[113,1],[157,2],[217,2],[350,2],[355,1],[377,3],[430,2],[433,1],[461,2],[464,2]]},"474":{"position":[[35,1],[78,1],[100,2],[120,1],[155,3],[159,2],[173,1],[200,2],[223,2],[226,3],[230,2],[286,1],[288,2],[323,2],[326,3],[342,1],[390,2],[393,1],[435,3],[439,2],[442,3],[508,2],[511,1],[545,3],[609,2],[612,1],[646,3],[710,2],[713,1],[747,3]]},"476":{"position":[[23,2],[53,1],[74,2],[128,1],[206,3],[250,1],[260,1],[305,2],[308,1],[382,1],[392,1],[437,2],[440,1],[515,1],[525,1],[577,1],[587,1],[632,2],[635,1],[669,1],[671,2],[674,1],[676,2],[679,1],[681,2]]},"478":{"position":[[35,1],[203,3],[242,1],[252,1],[297,2],[300,1],[334,1],[336,2]]},"480":{"position":[[23,2],[53,1],[74,2],[128,1],[206,3],[210,2],[288,1],[316,1],[318,1],[330,1],[332,3],[379,2],[382,1],[406,2],[471,2],[534,2],[609,2],[679,1],[681,2]]},"482":{"position":[[63,1],[114,1],[124,1],[238,3],[290,1],[348,1],[371,1],[413,1],[425,1],[464,1],[647,1],[759,2],[762,2],[878,2],[889,1],[953,1],[1055,3],[1155,1],[1267,2],[1270,2],[1323,1],[1379,1],[1397,2],[1400,1],[1423,2],[1439,2],[1442,1],[1483,3],[1513,1],[1551,1],[1581,2],[1584,1],[1594,1],[1678,3],[1693,1],[1801,1],[1813,4],[1833,2],[1851,2],[1854,1],[1877,2],[1902,1],[1933,3],[1937,1],[1983,1],[1985,1],[2050,3],[2085,1],[2130,2],[2141,2],[2154,3],[2192,1],[2216,1],[2218,1]]},"484":{"position":[[23,2],[53,1],[74,2],[128,1],[206,3],[210,2],[252,1],[280,1],[299,1],[329,2],[332,1],[356,2],[421,2],[484,1],[486,2],[489,2],[535,1],[563,1],[565,1],[577,1],[579,3],[612,2],[615,1],[639,1],[641,2]]},"486":{"position":[[34,1],[136,3],[155,2],[158,1],[171,1],[178,1],[188,1],[221,2],[224,1],[253,2],[313,3],[317,1],[319,2],[344,2],[347,1],[360,1],[367,1],[377,1],[408,2],[411,1],[470,2],[473,1],[516,3],[520,3],[524,1],[526,2]]},"488":{"position":[[35,1],[74,1],[132,1],[208,2],[211,1],[395,1],[419,3],[461,2],[464,1],[526,3],[543,1],[652,3],[679,2],[682,1],[756,1],[758,2],[807,2],[881,1],[883,2],[939,1],[963,1],[1076,1],[1083,1],[1085,2],[1147,1],[1216,1],[1218,3],[1222,3],[1267,3]]},"490":{"position":[[35,1],[67,1],[231,3],[299,1],[336,3]]},"492":{"position":[[35,1],[68,1],[124,1],[194,1],[233,1],[277,1],[373,2],[389,1],[401,1],[408,1],[410,2],[464,1],[509,3],[513,1],[515,1],[530,1],[606,2],[609,1],[611,2],[643,2],[693,3],[697,2],[783,2],[856,2],[886,2],[976,3],[1018,2],[1021,1],[1083,3],[1112,2],[1115,1],[1137,1],[1324,2],[1327,3],[1356,4],[1361,3],[1365,10],[1376,7],[1393,4],[1424,7],[1432,4],[1437,8],[1446,6],[1453,11],[1496,3],[1500,3]]},"494":{"position":[[32,1],[61,1],[93,1],[144,3],[204,1],[206,2],[257,2],[353,2],[356,3],[413,1],[499,1],[519,3],[523,3]]},"496":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[239,1],[301,1],[329,1],[355,1],[398,2],[401,1],[413,2],[428,3],[467,1],[469,1],[569,2],[596,2],[613,2],[623,2],[626,2],[629,1],[663,1],[665,1],[673,3],[683,3],[697,3],[711,3],[715,2],[729,1],[769,3],[814,2],[885,3],[919,2],[1051,2],[1054,3],[1079,2],[1099,1],[1178,4],[1183,4],[1188,6],[1230,2],[1282,3],[1334,2],[1409,3],[1451,2],[1531,1],[1567,3],[1571,3],[1589,2],[1616,1],[1716,2],[1719,1],[1721,3],[1823,2],[1856,1],[1887,3],[1942,1],[1949,1],[1972,2],[1975,1],[2006,3],[2027,2],[2073,3],[2077,1],[2079,3],[2101,5],[2107,3],[2118,1],[2120,1],[2134,1],[2153,1],[2161,1],[2175,1],[2194,1],[2202,1],[2215,1],[2234,1],[2242,1],[2255,1],[2274,1],[2282,1],[2296,1],[2315,1],[2334,2]]},"498":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[239,1],[301,1],[303,3],[310,2],[324,3],[333,2],[347,1],[373,1],[416,2],[419,1],[431,2],[446,3],[485,1],[487,1],[587,2],[614,2],[631,2],[641,2],[644,2],[647,1],[681,1],[683,1],[691,3],[701,3],[715,3],[729,3],[752,2],[766,1],[806,3],[851,2],[922,3],[956,2],[1088,2],[1091,3],[1116,2],[1136,1],[1215,4],[1220,4],[1225,6],[1267,2],[1319,3],[1371,2],[1446,3],[1488,2],[1568,1],[1604,3],[1608,3],[1626,2],[1653,1],[1753,2],[1756,1],[1758,3],[1860,2],[1893,1],[1924,3],[1979,1],[1986,1],[2009,2],[2012,1],[2043,3],[2064,2],[2108,3],[2112,1],[2114,3],[2136,5],[2142,3],[2153,1],[2155,1],[2169,1],[2188,1],[2196,1],[2210,1],[2229,1],[2237,1],[2250,1],[2269,1],[2277,1],[2290,1],[2309,1],[2317,1],[2331,1],[2350,1],[2369,2]]},"500":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[282,3],[289,2],[303,3],[312,2],[326,1],[335,2],[338,2],[341,1],[375,1],[377,1],[385,3],[395,3],[409,3],[423,3],[446,2],[460,1],[500,3],[545,2],[616,3],[650,2],[782,2],[785,3],[810,2],[830,1],[909,4],[914,4],[919,6],[961,2],[1013,3],[1031,2],[1048,1],[1084,1],[1121,2],[1145,2],[1148,1],[1174,3],[1195,2],[1239,3],[1261,5],[1267,3],[1278,1],[1280,1],[1294,1],[1308,1],[1316,1],[1330,1],[1344,1],[1352,1],[1365,1],[1379,1],[1387,1],[1400,1],[1414,1],[1422,1],[1436,2]]},"502":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[282,3],[289,2],[303,3],[312,2],[326,1],[335,2],[338,2],[341,1],[375,1],[377,1],[385,3],[395,3],[409,3],[423,3],[472,2],[486,1],[526,3],[571,2],[642,3],[676,2],[808,2],[811,3],[836,2],[856,1],[935,4],[940,4],[945,6],[987,2],[1039,3],[1057,2],[1073,1],[1103,1],[1113,1],[1167,1],[1231,2],[1234,2],[1258,2],[1261,1],[1284,2],[1287,1],[1313,3],[1334,2],[1378,3],[1382,3],[1404,5],[1410,3],[1421,1],[1423,1],[1437,1],[1451,1],[1459,1],[1473,1],[1487,1],[1495,1],[1508,1],[1522,1],[1530,1],[1543,1],[1557,1],[1565,1],[1579,2]]},"504":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[308,1],[317,2],[320,2],[323,1],[357,1],[359,1],[367,3],[377,3],[391,3],[405,3],[435,2],[449,1],[489,3],[534,2],[605,3],[639,2],[771,2],[774,3],[799,2],[819,1],[898,4],[903,4],[908,6],[950,2],[1002,3],[1020,2],[1036,1],[1066,1],[1076,1],[1130,1],[1194,2],[1197,2],[1221,2],[1224,1],[1247,2],[1250,1],[1276,3],[1297,2],[1343,3],[1347,3],[1369,5],[1375,3],[1386,1],[1388,1],[1402,1],[1416,1],[1424,1],[1438,1],[1452,1],[1460,1],[1473,1],[1487,1],[1495,1],[1508,1],[1522,1],[1530,1],[1544,2]]},"506":{"position":[[15,3],[19,1],[66,2],[76,1],[90,1],[122,1],[130,1],[185,1],[213,1],[241,1],[243,1],[251,3],[261,3],[275,3],[289,3],[293,2],[303,2],[306,2],[309,1],[323,1],[344,3],[389,2],[450,3],[484,2],[606,2],[609,3],[634,2],[654,1],[723,4],[728,4],[733,6],[775,2],[827,3],[845,2],[862,1],[895,1],[932,2],[962,2],[965,1],[991,3],[1012,2],[1058,3],[1092,5],[1098,3],[1109,1],[1111,1],[1125,1],[1139,1],[1147,1],[1161,1],[1175,1],[1183,1],[1196,1],[1210,1],[1218,1],[1231,1],[1245,1],[1253,1],[1267,2],[1270,3],[1274,1],[1321,2],[1331,1],[1396,1],[1440,1],[1534,1],[1553,1],[1578,1],[1610,1],[1612,3],[1683,2],[1713,1],[1742,1],[1774,1],[1776,3],[1804,2],[1823,1],[1907,1],[1909,3],[1965,2],[1991,1],[2077,1],[2079,3],[2112,2],[2133,1],[2217,1],[2219,3],[2297,2],[2319,1],[2405,1],[2407,3],[2435,2],[2456,1],[2542,1],[2544,3],[2600,2],[2628,1],[2716,1],[2718,3],[2751,2],[2774,1],[2860,1],[2862,3],[2940,2],[2964,1],[3052,1],[3054,3],[3085,2],[3105,1],[3125,1],[3127,1]]},"508":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[308,1],[317,2],[320,2],[323,1],[357,1],[359,1],[367,3],[377,3],[391,3],[405,3],[409,2],[423,1],[463,3],[508,2],[579,3],[613,2],[745,2],[748,3],[773,2],[793,1],[872,4],[877,4],[882,6],[924,2],[976,3],[994,2],[1011,1],[1047,1],[1084,2],[1108,2],[1111,1],[1137,3],[1158,2],[1204,3],[1226,5],[1232,3],[1243,1],[1245,1],[1259,1],[1273,1],[1281,1],[1295,1],[1309,1],[1317,1],[1330,1],[1344,1],[1352,1],[1365,1],[1379,1],[1387,1],[1401,2]]},"514":{"position":[[166,1],[198,1],[231,3],[241,3],[255,3],[259,3],[301,2],[304,1],[332,1],[379,1],[381,3],[508,1],[540,1],[567,3],[577,3],[591,3],[595,3],[636,2],[639,1],[667,1],[724,1],[726,3],[860,1],[899,1],[953,1],[961,3],[971,3],[985,3],[989,3],[1046,2],[1049,1],[1077,1],[1141,1],[1143,3],[1280,1],[1298,2],[1301,1],[1329,1],[1375,1],[1396,3],[1613,1],[1631,2],[1634,1],[1662,1],[1706,1],[1727,3]]},"516":{"position":[[184,1],[203,1],[242,3],[252,3],[266,3],[270,3],[274,1],[288,1],[316,1],[336,1],[338,1],[489,1],[516,3],[526,3],[540,3],[544,3],[552,1],[571,1],[601,1],[615,1],[643,1],[663,1],[665,1],[830,1],[884,1],[892,3],[902,3],[916,3],[920,3],[928,1],[972,1],[986,1],[1014,1],[1061,1],[1063,1],[1165,1],[1180,1],[1216,1],[1242,1],[1256,1],[1284,1],[1322,1],[1324,1],[1508,1],[1523,1],[1557,1],[1583,1],[1597,1],[1625,1],[1661,1],[1663,1]]},"522":{"position":[[17,1],[354,1],[531,1]]}}}],["0",{"_index":252,"t":{"374":{"position":[[256,2]]},"392":{"position":[[810,2],[859,2],[1333,2],[1382,2]]},"440":{"position":[[579,2],[596,2],[609,2],[654,2],[670,1]]},"442":{"position":[[475,2],[492,2],[505,2],[551,2],[567,1],[602,2],[619,2],[632,2],[677,2],[693,1]]},"444":{"position":[[791,2],[808,2],[821,2],[866,2],[882,1]]},"457":{"position":[[121,2]]},"472":{"position":[[291,2]]},"486":{"position":[[173,2],[362,2]]},"492":{"position":[[1308,2],[1321,2]]},"496":{"position":[[2332,1]]},"498":{"position":[[313,2],[2367,1]]},"500":{"position":[[292,2]]},"502":{"position":[[292,2]]}}}],["0deprec",{"_index":902,"t":{"446":{"position":[[0,11]]},"520":{"position":[[101,11]]}}}],["0xffffff",{"_index":1003,"t":{"468":{"position":[[300,9]]},"488":{"position":[[386,8]]},"492":{"position":[[876,9]]}}}],["1",{"_index":253,"t":{"374":{"position":[[259,2]]},"394":{"position":[[1516,4],[1822,3]]},"396":{"position":[[209,1],[765,1],[1040,1]]},"399":{"position":[[517,2],[703,1],[760,3],[764,2],[816,1],[854,1],[858,1],[986,3],[990,3],[1027,1],[1031,1]]},"433":{"position":[[35,1],[39,1],[129,1],[133,1]]},"436":{"position":[[221,1],[225,1],[686,1],[690,1]]},"438":{"position":[[239,1],[243,1]]},"440":{"position":[[449,2],[454,2]]},"442":{"position":[[326,2],[331,2]]},"444":{"position":[[562,2],[567,2]]},"451":{"position":[[58,1],[155,1],[285,1],[357,1]]},"457":{"position":[[135,1]]},"464":{"position":[[187,3],[358,3]]},"472":{"position":[[347,2],[353,1]]},"474":{"position":[[370,2]]},"476":{"position":[[238,3],[271,3],[370,3],[503,3],[565,3]]},"478":{"position":[[230,3],[263,3]]},"482":{"position":[[2138,2]]},"496":{"position":[[2240,1]]},"498":{"position":[[336,2],[2275,1]]},"500":{"position":[[315,2],[1385,1]]},"502":{"position":[[315,2],[1528,1]]},"504":{"position":[[1493,1]]},"506":{"position":[[1216,1]]},"508":{"position":[[1350,1]]},"514":{"position":[[1278,1],[1282,3],[1611,1],[1615,3]]},"516":{"position":[[1214,1],[1218,4],[1555,1],[1559,4]]}}}],["1+1",{"_index":730,"t":{"405":{"position":[[284,3]]},"462":{"position":[[185,3],[348,3]]},"466":{"position":[[311,3],[602,3]]},"474":{"position":[[252,5]]},"494":{"position":[[379,3]]}}}],["1+:toadd",{"_index":843,"t":{"422":{"position":[[269,8]]},"482":{"position":[[1783,8]]}}}],["1,2",{"_index":691,"t":{"399":{"position":[[608,5]]}}}],["1.0.0",{"_index":239,"t":{"372":{"position":[[202,8]]},"482":{"position":[[2026,8]]}}}],["1.1",{"_index":254,"t":{"374":{"position":[[262,4]]}}}],["1.1earli",{"_index":1309,"t":{"520":{"position":[[756,8]]}}}],["1.2",{"_index":255,"t":{"374":{"position":[[267,4]]}}}],["1.2releas",{"_index":1313,"t":{"520":{"position":[[848,10]]}}}],["10",{"_index":564,"t":{"392":{"position":[[601,3],[614,3],[1124,3],[1137,3]]},"405":{"position":[[237,2]]},"422":{"position":[[296,2]]},"442":{"position":[[532,3]]},"464":{"position":[[204,6],[373,5]]},"468":{"position":[[194,3]]},"482":{"position":[[1810,2]]},"488":{"position":[[280,3]]},"492":{"position":[[754,3]]}}}],["100",{"_index":1170,"t":{"494":{"position":[[464,4]]}}}],["1000",{"_index":1116,"t":{"486":{"position":[[322,6],[529,6]]}}}],["1045",{"_index":1142,"t":{"492":{"position":[[504,4]]}}}],["1080",{"_index":745,"t":{"405":{"position":[[864,4]]}}}],["12",{"_index":912,"t":{"451":{"position":[[126,2]]}}}],["120",{"_index":1053,"t":{"472":{"position":[[335,4]]}}}],["123",{"_index":1045,"t":{"472":{"position":[[152,4]]},"492":{"position":[[689,3]]}}}],["1234",{"_index":1001,"t":{"468":{"position":[[244,5]]},"488":{"position":[[330,5]]},"492":{"position":[[817,5]]}}}],["127.0.0.1",{"_index":1167,"t":{"494":{"position":[[172,12]]}}}],["137",{"_index":519,"t":{"390":{"position":[[1023,5],[1577,5]]},"480":{"position":[[345,5]]}}}],["14",{"_index":617,"t":{"394":{"position":[[434,3],[1052,3]]}}}],["16000",{"_index":946,"t":{"455":{"position":[[86,5]]}}}],["18.x",{"_index":159,"t":{"366":{"position":[[60,5]]}}}],["1998",{"_index":1286,"t":{"518":{"position":[[12,5]]}}}],["1experiment",{"_index":277,"t":{"378":{"position":[[144,13]]},"520":{"position":[[642,13]]}}}],["2",{"_index":256,"t":{"374":{"position":[[272,1]]},"396":{"position":[[221,1],[777,1],[1052,1]]},"399":{"position":[[523,1]]},"420":{"position":[[195,3],[199,4]]},"433":{"position":[[95,1],[189,1]]},"436":{"position":[[300,1],[701,1],[705,1],[772,2]]},"438":{"position":[[261,1],[265,1],[376,1]]},"440":{"position":[[636,2]]},"442":{"position":[[338,2],[343,2],[659,2]]},"444":{"position":[[574,2],[579,2],[848,2]]},"453":{"position":[[293,1],[464,3]]},"468":{"position":[[263,2]]},"488":{"position":[[349,2]]},"492":{"position":[[836,2]]},"496":{"position":[[2200,1]]},"498":{"position":[[2235,1]]},"500":{"position":[[1350,1]]},"502":{"position":[[1154,4],[1208,1],[1217,4],[1493,1]]},"504":{"position":[[1117,4],[1171,1],[1180,4],[1458,1]]},"506":{"position":[[1181,1]]},"508":{"position":[[1315,1]]}}}],["2+3",{"_index":1090,"t":{"482":{"position":[[785,3],[1292,3]]}}}],["2.0",{"_index":702,"t":{"403":{"position":[[238,3]]}}}],["2.rds.amazonaws.com",{"_index":989,"t":{"466":{"position":[[987,21],[1310,21]]}}}],["2113931265",{"_index":1148,"t":{"492":{"position":[[907,11]]}}}],["2181036031",{"_index":1149,"t":{"492":{"position":[[936,11]]}}}],["2282",{"_index":1287,"t":{"518":{"position":[[18,5]]}}}],["253",{"_index":1162,"t":{"492":{"position":[[1296,4]]}}}],["2stabl",{"_index":257,"t":{"374":{"position":[[289,7],[297,7]]},"436":{"position":[[0,7]]},"438":{"position":[[0,7]]},"440":{"position":[[0,7]]},"442":{"position":[[0,7]]},"444":{"position":[[0,7]]},"514":{"position":[[17,7],[396,7],[748,7],[1155,7],[1492,7]]},"516":{"position":[[17,7],[351,7],[685,7],[1073,7],[1418,7]]},"520":{"position":[[1114,7]]}}}],["3",{"_index":153,"t":{"364":{"position":[[39,2]]},"374":{"position":[[278,2]]},"382":{"position":[[292,3]]},"399":{"position":[[646,1]]},"420":{"position":[[388,1]]},"453":{"position":[[511,1]]},"476":{"position":[[281,3],[403,3],[413,3],[598,3],[608,3]]},"478":{"position":[[273,3]]},"496":{"position":[[2280,1]]},"498":{"position":[[2315,1]]},"500":{"position":[[1420,1]]},"502":{"position":[[1563,1]]},"504":{"position":[[1528,1]]},"506":{"position":[[1251,1]]},"508":{"position":[[1385,1]]}}}],["33",{"_index":1158,"t":{"492":{"position":[[1261,3]]}}}],["3306",{"_index":744,"t":{"405":{"position":[[829,4]]},"474":{"position":[[150,4],[430,4]]},"482":{"position":[[163,5],[980,5],[1633,5]]},"490":{"position":[[206,5]]},"494":{"position":[[191,7]]}}}],["384",{"_index":1160,"t":{"492":{"position":[[1279,4]]}}}],["3legaci",{"_index":1325,"t":{"520":{"position":[[1181,7]]}}}],["4",{"_index":874,"t":{"436":{"position":[[775,1]]},"438":{"position":[[393,1]]},"496":{"position":[[2132,1],[2159,1]]},"498":{"position":[[2167,1],[2194,1]]},"500":{"position":[[1292,1],[1314,1]]},"502":{"position":[[1435,1],[1457,1]]},"504":{"position":[[1400,1],[1422,1]]},"506":{"position":[[1123,1],[1145,1]]},"508":{"position":[[1257,1],[1279,1]]}}}],["4.5.2",{"_index":854,"t":{"425":{"position":[[224,8]]}}}],["45",{"_index":457,"t":{"388":{"position":[[349,3],[731,3],[1081,4],[1434,4]]},"484":{"position":[[301,4],[592,4]]}}}],["5",{"_index":910,"t":{"451":{"position":[[80,3]]},"486":{"position":[[180,2],[369,2]]}}}],["5.6.10",{"_index":1147,"t":{"492":{"position":[[773,9]]}}}],["53",{"_index":520,"t":{"390":{"position":[[1029,3],[1583,4]]},"480":{"position":[[351,4]]}}}],["6",{"_index":911,"t":{"451":{"position":[[84,3]]}}}],["6.9.0",{"_index":1109,"t":{"482":{"position":[[2207,8]]}}}],["60000",{"_index":571,"t":{"392":{"position":[[710,6],[790,7],[1233,6],[1313,7]]}}}],["8",{"_index":1002,"t":{"468":{"position":[[280,2]]},"488":{"position":[[366,2]]},"492":{"position":[[853,2]]}}}],["_err",{"_index":864,"t":{"433":{"position":[[54,6],[148,6]]},"436":{"position":[[240,6],[377,6],[718,6],[853,6]]},"438":{"position":[[314,6]]},"440":{"position":[[493,6]]},"442":{"position":[[384,6]]},"444":{"position":[[705,6]]}}}],["a,b,c,d",{"_index":694,"t":{"401":{"position":[[31,7]]}}}],["aberta",{"_index":541,"t":{"392":{"position":[[142,7]]}}}],["abov",{"_index":824,"t":{"418":{"position":[[708,5]]}}}],["accept",{"_index":748,"t":{"405":{"position":[[976,6]]}}}],["access",{"_index":705,"t":{"403":{"position":[[357,6]]},"429":{"position":[[57,7]]},"431":{"position":[[51,7]]},"496":{"position":[[637,7]]},"498":{"position":[[655,7]]},"500":{"position":[[349,7]]},"502":{"position":[[349,7]]},"504":{"position":[[331,7]]},"506":{"position":[[221,7]]},"508":{"position":[[331,7]]},"510":{"position":[[145,6]]}}}],["accord",{"_index":377,"t":{"380":{"position":[[2435,9]]}}}],["accordingli",{"_index":324,"t":{"380":{"position":[[760,12]]}}}],["acima",{"_index":588,"t":{"392":{"position":[[1677,5],[1909,5],[2247,5],[2477,5]]}}}],["ack",{"_index":938,"t":{"453":{"position":[[641,3]]}}}],["acompanhamento",{"_index":56,"t":{"350":{"position":[[524,14]]}}}],["action",{"_index":274,"t":{"378":{"position":[[101,7],[238,7],[335,7],[530,7]]}}}],["activ",{"_index":1327,"t":{"520":{"position":[[1289,6]]}}}],["ad",{"_index":1267,"t":{"514":{"position":[[122,6]]}}}],["addit",{"_index":86,"t":{"354":{"position":[[228,10]]},"380":{"position":[[599,10]]},"382":{"position":[[245,10],[296,10]]},"403":{"position":[[3,8]]},"405":{"position":[[905,8]]},"414":{"position":[[251,8]]},"416":{"position":[[3,8]]}}}],["address",{"_index":1336,"t":{"520":{"position":[[1520,10]]}}}],["adicionai",{"_index":466,"t":{"388":{"position":[[483,10],[1247,10]]},"390":{"position":[[1163,10],[1749,10]]},"522":{"position":[[496,11]]}}}],["adicionalment",{"_index":608,"t":{"392":{"position":[[2666,15]]}}}],["adquirir",{"_index":597,"t":{"392":{"position":[[2121,8]]}}}],["advanc",{"_index":904,"t":{"448":{"position":[[80,8]]}}}],["affect",{"_index":1208,"t":{"496":{"position":[[2317,8]]},"498":{"position":[[2352,8]]}}}],["affectedrow",{"_index":771,"t":{"412":{"position":[[222,13]]},"440":{"position":[[242,12],[582,13]]},"442":{"position":[[478,13],[605,13]]},"444":{"position":[[794,13]]},"496":{"position":[[485,15]]},"498":{"position":[[503,15]]}}}],["ag",{"_index":456,"t":{"388":{"position":[[341,5],[710,5],[1073,5],[1413,5]]},"390":{"position":[[1002,5],[1556,5]]},"394":{"position":[[412,5],[1030,5]]},"480":{"position":[[324,5]]},"484":{"position":[[293,5],[571,5]]}}}],["again",{"_index":397,"t":{"382":{"position":[[396,6]]},"480":{"position":[[567,6]]}}}],["aim",{"_index":72,"t":{"354":{"position":[[7,4]]}}}],["ajuda",{"_index":534,"t":{"392":{"position":[[31,5]]},"396":{"position":[[1298,5],[1315,6]]}}}],["algo",{"_index":64,"t":{"352":{"position":[[14,4]]},"392":{"position":[[2303,4],[2534,4]]}}}],["algorithm",{"_index":382,"t":{"380":{"position":[[2592,9]]}}}],["algoritm",{"_index":398,"t":{"382":{"position":[[502,9]]}}}],["allow",{"_index":220,"t":{"370":{"position":[[181,6]]}}}],["alongsid",{"_index":236,"t":{"372":{"position":[[90,9]]}}}],["alterada",{"_index":1344,"t":{"522":{"position":[[140,8]]}}}],["alternativament",{"_index":594,"t":{"392":{"position":[[2070,17]]}}}],["alway",{"_index":117,"t":{"358":{"position":[[192,6]]},"380":{"position":[[1488,6],[2239,6]]},"496":{"position":[[1793,6]]},"498":{"position":[[1830,6]]}}}],["além",{"_index":505,"t":{"390":{"position":[[472,4]]}}}],["amazon",{"_index":981,"t":{"466":{"position":[[645,7],[704,6],[1014,7],[1337,7]]},"490":{"position":[[217,7]]}}}],["analisador",{"_index":1339,"t":{"522":{"position":[[64,10]]}}}],["anoth",{"_index":309,"t":{"380":{"position":[[372,7]]}}}],["answer",{"_index":1246,"t":{"510":{"position":[[22,7]]},"514":{"position":[[84,7]]},"516":{"position":[[84,7]]}}}],["anterior",{"_index":539,"t":{"392":{"position":[[119,8]]}}}],["ao",{"_index":542,"t":{"392":{"position":[[150,2]]},"396":{"position":[[890,2],[1198,2]]},"522":{"position":[[167,2]]}}}],["apena",{"_index":663,"t":{"396":{"position":[[370,6]]}}}],["api",{"_index":6,"t":{"350":{"position":[[45,3]]},"354":{"position":[[76,3]]},"380":{"position":[[1303,3]]},"394":{"position":[[32,4]]},"416":{"position":[[79,3]]},"459":{"position":[[247,3]]},"522":{"position":[[132,3],[390,3]]}}}],["aplica",{"_index":661,"t":{"396":{"position":[[297,7],[359,7]]}}}],["aplicada",{"_index":33,"t":{"350":{"position":[[267,9]]}}}],["approach",{"_index":1310,"t":{"520":{"position":[[817,11]]}}}],["aqui",{"_index":440,"t":{"386":{"position":[[270,5]]}}}],["arg",{"_index":1015,"t":{"468":{"position":[[663,5]]},"488":{"position":[[772,5]]}}}],["argument",{"_index":757,"t":{"408":{"position":[[89,9]]}}}],["argumento",{"_index":34,"t":{"350":{"position":[[279,10]]}}}],["arguments[1",{"_index":1017,"t":{"468":{"position":[[832,13],[1040,13]]},"488":{"position":[[941,13],[1149,13]]}}}],["arguments[2",{"_index":1018,"t":{"468":{"position":[[856,13]]},"488":{"position":[[965,13]]}}}],["arquivo",{"_index":66,"t":{"352":{"position":[[41,7]]}}}],["array",{"_index":651,"t":{"396":{"position":[[89,6],[874,5],[883,6],[905,5],[1182,5],[1191,6],[1213,5]]},"399":{"position":[[398,5],[942,5]]},"401":{"position":[[139,5],[148,6]]},"412":{"position":[[536,5]]},"436":{"position":[[11,5]]},"453":{"position":[[230,5],[318,5]]},"468":{"position":[[715,7],[731,7]]},"488":{"position":[[824,7],[840,7]]}}}],["array.isarray(arguments[1",{"_index":1016,"t":{"468":{"position":[[742,29]]},"488":{"position":[[851,29]]}}}],["asc",{"_index":1194,"t":{"496":{"position":[[1558,4]]},"498":{"position":[[1595,4]]},"500":{"position":[[1115,5]]},"502":{"position":[[1144,3],[1198,3]]},"504":{"position":[[1107,3],[1161,3]]},"506":{"position":[[926,5]]},"508":{"position":[[1078,5]]}}}],["ascertain",{"_index":1318,"t":{"520":{"position":[[1045,9]]}}}],["ask",{"_index":293,"t":{"380":{"position":[[43,3]]},"510":{"position":[[42,5]]}}}],["associada",{"_index":553,"t":{"392":{"position":[[282,9]]}}}],["assur",{"_index":1290,"t":{"520":{"position":[[162,6]]}}}],["async",{"_index":614,"t":{"394":{"position":[[72,5],[121,5],[1211,5]]},"420":{"position":[[0,5],[224,5]]},"482":{"position":[[92,5],[1962,5]]},"496":{"position":[[616,6]]},"498":{"position":[[634,6]]},"500":{"position":[[328,6]]},"502":{"position":[[328,6]]},"504":{"position":[[310,6]]},"506":{"position":[[296,6]]},"508":{"position":[[310,6]]}}}],["asynchron",{"_index":322,"t":{"380":{"position":[[703,14]]}}}],["ataqu",{"_index":496,"t":{"390":{"position":[[344,7]]}}}],["atingido",{"_index":583,"t":{"392":{"position":[[1505,9]]}}}],["atravé",{"_index":55,"t":{"350":{"position":[[513,7]]}}}],["attach",{"_index":801,"t":{"414":{"position":[[499,6]]}}}],["atualização",{"_index":969,"t":{"459":{"position":[[179,11]]}}}],["auth",{"_index":295,"t":{"380":{"position":[[83,4],[801,4],[952,6],[1869,6]]},"382":{"position":[[702,5],[842,5],[982,5]]},"492":{"position":[[119,4]]}}}],["auth.doublesha1('pass123",{"_index":1133,"t":{"492":{"position":[[235,27]]}}}],["auth.verifytoken",{"_index":1135,"t":{"492":{"position":[[279,17]]}}}],["authcallback",{"_index":1150,"t":{"492":{"position":[[948,13]]}}}],["authent",{"_index":92,"t":{"354":{"position":[[285,14]]},"380":{"position":[[211,14],[610,14]]},"382":{"position":[[34,14],[159,14],[256,14],[412,14]]},"492":{"position":[[962,13]]},"522":{"position":[[737,14]]}}}],["authenticate(param",{"_index":1130,"t":{"492":{"position":[[169,20]]}}}],["authentication::native41",{"_index":378,"t":{"380":{"position":[[2448,24]]}}}],["authnextfactor",{"_index":389,"t":{"382":{"position":[[90,14]]}}}],["author",{"_index":1105,"t":{"482":{"position":[[2144,9]]}}}],["authplugin",{"_index":297,"t":{"380":{"position":[[103,11],[928,12],[2480,11]]},"382":{"position":[[661,12]]}}}],["authswitchhandl",{"_index":349,"t":{"380":{"position":[[1318,17],[1778,18],[2508,17]]}}}],["authswitchrequest",{"_index":367,"t":{"380":{"position":[[2130,17]]}}}],["auto",{"_index":202,"t":{"368":{"position":[[709,4]]}}}],["auto_incr",{"_index":1182,"t":{"496":{"position":[[993,15]]},"498":{"position":[[1030,15]]},"500":{"position":[[724,15]]},"502":{"position":[[750,15]]},"504":{"position":[[713,15]]},"506":{"position":[[548,15]]},"508":{"position":[[687,15]]}}}],["automat",{"_index":1113,"t":{"486":{"position":[[270,13]]}}}],["automaticament",{"_index":591,"t":{"392":{"position":[[1770,15],[2003,15]]}}}],["auxiliar",{"_index":501,"t":{"390":{"position":[[393,8]]}}}],["avail",{"_index":250,"t":{"374":{"position":[[238,9]]},"405":{"position":[[1080,10]]},"480":{"position":[[524,9]]},"484":{"position":[[474,9]]},"520":{"position":[[1330,10]]}}}],["avg",{"_index":31,"t":{"350":{"position":[[254,5]]}}}],["await",{"_index":447,"t":{"388":{"position":[[130,5],[268,5],[642,5]]},"390":{"position":[[749,5],[932,5]]},"392":{"position":[[1706,5],[2266,5],[2322,5]]},"394":{"position":[[78,6],[203,5],[342,5],[802,5],[960,5],[1484,5]]},"396":{"position":[[454,5],[733,5]]},"420":{"position":[[82,5],[155,5],[204,5],[398,5],[516,5]]},"422":{"position":[[356,5]]},"462":{"position":[[72,5],[154,5]]},"464":{"position":[[72,5],[154,5]]},"466":{"position":[[93,5],[900,5],[1046,5]]},"482":{"position":[[126,5],[292,5],[373,5],[675,5],[930,5],[1183,5],[1364,5],[2007,7]]},"496":{"position":[[731,5],[817,5],[922,5],[1101,5],[1337,5],[1454,5],[1618,5],[2083,5]]},"498":{"position":[[768,5],[854,5],[959,5],[1138,5],[1374,5],[1491,5],[1655,5],[2118,5]]},"500":{"position":[[462,5],[548,5],[653,5],[832,5],[1050,5],[1243,5]]},"502":{"position":[[488,5],[574,5],[679,5],[858,5],[1075,5],[1386,5]]},"504":{"position":[[451,5],[537,5],[642,5],[821,5],[1038,5],[1351,5]]},"506":{"position":[[392,5],[487,5],[656,5],[864,5],[1062,5]]},"508":{"position":[[425,5],[511,5],[616,5],[795,5],[1013,5],[1208,5]]},"516":{"position":[[205,5],[573,5],[930,5],[1182,5],[1525,5]]}}}],["await.j",{"_index":1078,"t":{"482":{"position":[[0,8],[2062,11]]}}}],["b",{"_index":198,"t":{"368":{"position":[[622,1]]},"401":{"position":[[197,1]]}}}],["babel",{"_index":1108,"t":{"482":{"position":[[2194,6]]}}}],["babelrc",{"_index":1080,"t":{"482":{"position":[[15,8]]}}}],["back",{"_index":320,"t":{"380":{"position":[[659,4]]}}}],["backend",{"_index":1031,"t":{"470":{"position":[[118,8],[166,8]]}}}],["backward",{"_index":1291,"t":{"520":{"position":[[169,8],[281,8]]}}}],["badg",{"_index":245,"t":{"374":{"position":[[18,6]]},"520":{"position":[[14,6]]}}}],["banco",{"_index":445,"t":{"388":{"position":[[96,5],[872,5]]},"390":{"position":[[715,5],[1307,5]]},"394":{"position":[[169,5],[304,5],[922,5]]}}}],["bar",{"_index":740,"t":{"405":{"position":[[730,6]]},"418":{"position":[[241,6],[528,6]]},"466":{"position":[[954,6],[1277,6]]}}}],["base",{"_index":809,"t":{"416":{"position":[[73,5]]},"520":{"position":[[983,5]]}}}],["baseado",{"_index":970,"t":{"459":{"position":[[197,7]]}}}],["basic",{"_index":908,"t":{"448":{"position":[[608,5]]}}}],["befor",{"_index":288,"t":{"378":{"position":[[474,6]]},"506":{"position":[[1651,6]]}}}],["begin",{"_index":898,"t":{"444":{"position":[[552,5]]},"496":{"position":[[1518,5]]},"498":{"position":[[1555,5]]}}}],["behavior",{"_index":795,"t":{"414":{"position":[[363,8]]}}}],["bem",{"_index":612,"t":{"394":{"position":[[58,3]]}}}],["benchmark",{"_index":146,"t":{"362":{"position":[[63,10],[85,10],[115,10]]}}}],["beta",{"_index":1156,"t":{"492":{"position":[[1222,7],[1239,7]]}}}],["better",{"_index":82,"t":{"354":{"position":[[170,6]]},"451":{"position":[[449,6]]},"480":{"position":[[660,6]]}}}],["between",{"_index":386,"t":{"380":{"position":[[2648,7]]},"425":{"position":[[107,7]]}}}],["biblioteca",{"_index":655,"t":{"396":{"position":[[166,10]]}}}],["bin.000007",{"_index":1051,"t":{"472":{"position":[[311,12]]}}}],["binari",{"_index":99,"t":{"354":{"position":[[364,6]]},"384":{"position":[[153,7]]},"412":{"position":[[584,6]]},"522":{"position":[[622,6]]}}}],["bind",{"_index":136,"t":{"360":{"position":[[99,8],[173,8]]},"457":{"position":[[4,4]]}}}],["binlog",{"_index":142,"t":{"360":{"position":[[249,6]]}}}],["binlogpo",{"_index":1052,"t":{"472":{"position":[[324,10]]}}}],["binlogstream",{"_index":1042,"t":{"472":{"position":[[100,12]]}}}],["binlogstream.pip",{"_index":1055,"t":{"472":{"position":[[381,18]]}}}],["binário",{"_index":417,"t":{"384":{"position":[[145,7]]},"522":{"position":[[601,7]]}}}],["blob",{"_index":359,"t":{"380":{"position":[[1607,4]]}}}],["block",{"_index":264,"t":{"376":{"position":[[177,6]]},"472":{"position":[[362,8]]},"516":{"position":[[137,6],[435,6],[769,6],[1154,6],[1497,6]]}}}],["bluebird",{"_index":626,"t":{"394":{"position":[[677,11],[696,8],[710,11],[757,10],[893,9]]}}}],["boolean",{"_index":787,"t":{"414":{"position":[[146,7]]},"457":{"position":[[105,7]]}}}],["both",{"_index":1281,"t":{"514":{"position":[[1417,4],[1748,4]]},"516":{"position":[[1343,4],[1682,4]]}}}],["bound",{"_index":1293,"t":{"520":{"position":[[230,5]]}}}],["branch",{"_index":171,"t":{"368":{"position":[[154,6]]}}}],["browser",{"_index":183,"t":{"368":{"position":[[399,7]]}}}],["buffer",{"_index":318,"t":{"380":{"position":[[630,8],[1667,8]]},"457":{"position":[[222,6]]}}}],["buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd",{"_index":1071,"t":{"478":{"position":[[139,55]]}}}],["bug",{"_index":1335,"t":{"520":{"position":[[1488,4]]}}}],["build",{"_index":281,"t":{"378":{"position":[[266,5],[306,5]]}}}],["built",{"_index":150,"t":{"364":{"position":[[16,5]]}}}],["byte",{"_index":791,"t":{"414":{"position":[[242,5]]}}}],["bytes/sec",{"_index":728,"t":{"405":{"position":[[240,9]]}}}],["c",{"_index":518,"t":{"390":{"position":[[1021,1],[1575,1]]},"401":{"position":[[214,1]]},"422":{"position":[[83,1]]},"480":{"position":[[343,1]]},"482":{"position":[[122,1],[1592,1]]}}}],["c.end",{"_index":846,"t":{"422":{"position":[[310,8]]},"482":{"position":[[936,8],[1824,8]]}}}],["c.execute('select",{"_index":842,"t":{"422":{"position":[[251,17]]},"482":{"position":[[484,17],[569,17],[695,17],[727,17],[1765,17]]}}}],["c.query('show",{"_index":840,"t":{"422":{"position":[[187,13]]},"482":{"position":[[298,13],[1701,13]]}}}],["c.query('som",{"_index":1083,"t":{"482":{"position":[[379,13]]}}}],["ca",{"_index":986,"t":{"466":{"position":[[793,2],[805,2]]},"494":{"position":[[309,3]]}}}],["cach",{"_index":528,"t":{"390":{"position":[[1893,6]]},"451":{"position":[[215,6],[256,6],[322,5],[416,5],[480,5]]},"453":{"position":[[52,5]]},"455":{"position":[[36,6],[63,6],[173,5]]},"480":{"position":[[603,5]]}}}],["call",{"_index":315,"t":{"380":{"position":[[520,4],[560,4],[1549,5],[2556,6]]},"444":{"position":[[89,4],[629,5],[1033,5]]},"451":{"position":[[209,5]]},"480":{"position":[[237,4]]}}}],["callback",{"_index":351,"t":{"380":{"position":[[1443,9]]},"388":{"position":[[8,8]]},"390":{"position":[[640,8]]},"392":{"position":[[331,8],[1622,8],[2198,8]]},"396":{"position":[[432,8],[692,8]]},"412":{"position":[[453,9]]},"453":{"position":[[598,8]]},"462":{"position":[[8,8]]},"464":{"position":[[8,8]]},"466":{"position":[[8,8],[830,8]]}}}],["callback'",{"_index":1272,"t":{"514":{"position":[[470,10],[822,10],[1226,10],[1561,10]]}}}],["callback(nul",{"_index":361,"t":{"380":{"position":[[1646,14]]}}}],["candid",{"_index":1314,"t":{"520":{"position":[[859,9]]}}}],["capabilityflag",{"_index":766,"t":{"412":{"position":[[91,15]]},"468":{"position":[[283,16]]},"488":{"position":[[369,16]]},"492":{"position":[[859,16],[889,16],[919,16]]}}}],["case",{"_index":352,"t":{"380":{"position":[[1461,5]]},"405":{"position":[[352,4]]},"466":{"position":[[739,4]]}}}],["catalog",{"_index":1152,"t":{"492":{"position":[[1139,8]]}}}],["catch",{"_index":468,"t":{"388":{"position":[[536,5],[762,5]]},"390":{"position":[[1216,5]]},"392":{"position":[[1835,5]]},"396":{"position":[[979,5]]},"466":{"position":[[1143,5]]},"482":{"position":[[415,5]]},"516":{"position":[[131,5],[276,5],[429,5],[603,5],[763,5],[974,5],[1148,5],[1244,5],[1491,5],[1585,5]]}}}],["catch((err",{"_index":343,"t":{"380":{"position":[[1176,12]]},"418":{"position":[[620,12]]},"482":{"position":[[1426,12]]}}}],["catch(console.log",{"_index":643,"t":{"394":{"position":[[1876,19]]}}}],["catch(funct",{"_index":1101,"t":{"482":{"position":[[1880,15]]}}}],["caus",{"_index":1330,"t":{"520":{"position":[[1407,5]]}}}],["caution",{"_index":209,"t":{"368":{"position":[[816,7]]},"520":{"position":[[387,7]]}}}],["cb",{"_index":362,"t":{"380":{"position":[[1835,3]]},"405":{"position":[[754,4]]},"492":{"position":[[190,3]]}}}],["cb(err",{"_index":369,"t":{"380":{"position":[[2196,8]]}}}],["cb(null",{"_index":364,"t":{"380":{"position":[[2065,8]]},"405":{"position":[[874,8]]},"492":{"position":[[391,9],[455,8]]}}}],["cd",{"_index":173,"t":{"368":{"position":[[189,2],[643,2]]}}}],["cert",{"_index":978,"t":{"466":{"position":[[211,5],[520,5],[808,4]]},"494":{"position":[[260,5]]}}}],["cert.pem",{"_index":979,"t":{"466":{"position":[[249,11],[558,11],[796,8]]},"494":{"position":[[298,10],[341,11]]}}}],["chamar",{"_index":513,"t":{"390":{"position":[[852,6],[1438,6]]}}}],["chang",{"_index":185,"t":{"368":{"position":[[420,7]]},"372":{"position":[[39,7],[106,8],[211,8],[227,6],[304,7],[344,7],[364,6]]},"440":{"position":[[24,7]]},"442":{"position":[[24,7]]},"444":{"position":[[24,7]]},"520":{"position":[[301,7],[471,7],[747,8],[930,7]]}}}],["changedrow",{"_index":882,"t":{"440":{"position":[[148,11],[657,12]]},"442":{"position":[[554,12],[680,12]]},"444":{"position":[[869,12]]},"496":{"position":[[554,14]]},"498":{"position":[[572,14]]}}}],["changeus",{"_index":747,"t":{"405":{"position":[[963,12]]},"453":{"position":[[749,13]]}}}],["characterset",{"_index":765,"t":{"412":{"position":[[77,13]]},"468":{"position":[[266,13]]},"488":{"position":[[352,13]]},"492":{"position":[[839,13],[1247,13]]}}}],["check",{"_index":103,"t":{"356":{"position":[[7,5]]},"358":{"position":[[57,5]]},"378":{"position":[[13,5],[119,5],[158,6]]},"433":{"position":[[374,5]]},"448":{"position":[[13,5],[372,8],[477,8]]}}}],["checkout",{"_index":197,"t":{"368":{"position":[[612,8]]}}}],["ci",{"_index":175,"t":{"368":{"position":[[240,2],[679,2]]}}}],["class",{"_index":909,"t":{"448":{"position":[[628,5]]},"459":{"position":[[113,6]]},"506":{"position":[[1428,5],[1669,5]]}}}],["classif",{"_index":1321,"t":{"520":{"position":[[1098,15]]}}}],["classifi",{"_index":1304,"t":{"520":{"position":[[618,10],[1354,10]]}}}],["clear",{"_index":280,"t":{"378":{"position":[[256,5],[292,5]]}}}],["cli",{"_index":193,"t":{"368":{"position":[[541,3]]},"482":{"position":[[2201,5]]}}}],["client",{"_index":102,"t":{"354":{"position":[[384,6]]},"360":{"position":[[68,6],[143,7],[220,6]]},"380":{"position":[[51,6],[1577,6],[2656,6]]},"382":{"position":[[68,6]]},"384":{"position":[[0,7]]},"388":{"position":[[28,7],[807,7]]},"394":{"position":[[579,7]]},"399":{"position":[[171,6]]},"412":{"position":[[276,6],[383,7]]},"414":{"position":[[318,7]]},"459":{"position":[[300,7]]},"470":{"position":[[237,6],[281,6]]},"476":{"position":[[34,6]]},"480":{"position":[[34,6]]},"484":{"position":[[34,6]]}}}],["clientflag",{"_index":1121,"t":{"488":{"position":[[62,11]]}}}],["clientflags.compress",{"_index":1123,"t":{"488":{"position":[[397,21]]}}}],["clientplugindata(password1",{"_index":405,"t":{"382":{"position":[[789,27]]}}}],["clientplugindata(password2",{"_index":407,"t":{"382":{"position":[[929,27]]}}}],["clientplugindata(password3",{"_index":409,"t":{"382":{"position":[[1069,27]]}}}],["clone",{"_index":195,"t":{"368":{"position":[[557,5]]}}}],["close",{"_index":798,"t":{"414":{"position":[[405,5]]},"451":{"position":[[250,5]]},"453":{"position":[[72,6],[635,5]]},"455":{"position":[[187,7]]},"520":{"position":[[895,5]]}}}],["co",{"_index":836,"t":{"422":{"position":[[39,2],[353,2]]},"482":{"position":[[1548,2],[2004,2]]}}}],["co(funct",{"_index":838,"t":{"422":{"position":[[59,12]]},"482":{"position":[[1568,12]]}}}],["co.j",{"_index":1079,"t":{"482":{"position":[[9,5]]}}}],["code",{"_index":263,"t":{"376":{"position":[[172,4]]},"380":{"position":[[821,4]]},"414":{"position":[[230,4]]},"448":{"position":[[24,4]]},"492":{"position":[[425,5],[498,5],[683,5]]}}}],["codificaçõ",{"_index":413,"t":{"384":{"position":[[105,12]]}}}],["collat",{"_index":1362,"t":{"522":{"position":[[694,9]]}}}],["column",{"_index":924,"t":{"453":{"position":[[239,6],[334,6],[480,8]]},"468":{"position":[[723,7],[846,7],[920,9],[957,9]]},"488":{"position":[[832,7],[955,7],[1029,9],[1066,9]]}}}],["columnlength",{"_index":1159,"t":{"492":{"position":[[1265,13]]}}}],["columntyp",{"_index":1161,"t":{"492":{"position":[[1284,11]]}}}],["coluna",{"_index":647,"t":{"396":{"position":[[19,7]]}}}],["com",{"_index":5,"t":{"350":{"position":[[39,3],[476,3]]},"384":{"position":[[27,3]]},"388":{"position":[[90,3],[866,3]]},"390":{"position":[[0,3],[709,3],[1301,3]]},"392":{"position":[[72,3],[2308,3],[2539,3]]},"394":{"position":[[62,3],[163,3]]},"396":{"position":[[27,3]]},"459":{"position":[[294,3]]},"522":{"position":[[241,3],[384,3]]}}}],["come",{"_index":920,"t":{"453":{"position":[[37,5]]}}}],["começar",{"_index":71,"t":{"352":{"position":[[103,8]]}}}],["command",{"_index":287,"t":{"378":{"position":[[466,7]]},"412":{"position":[[203,8]]},"414":{"position":[[6,7],[162,7],[222,7],[291,8]]},"482":{"position":[[842,8]]},"520":{"position":[[547,7]]}}}],["commandcod",{"_index":789,"t":{"414":{"position":[[190,13]]}}}],["commit",{"_index":289,"t":{"378":{"position":[[495,7]]}}}],["commonli",{"_index":1247,"t":{"510":{"position":[[33,8]]}}}],["como",{"_index":19,"t":{"350":{"position":[[139,4],[196,4],[596,4]]},"352":{"position":[[98,4]]},"390":{"position":[[270,4]]},"392":{"position":[[1554,4]]},"394":{"position":[[768,4]]},"396":{"position":[[81,4]]}}}],["compartilhado",{"_index":1350,"t":{"522":{"position":[[293,13]]}}}],["compat",{"_index":265,"t":{"376":{"position":[[188,10]]},"520":{"position":[[178,14],[290,10],[1122,13]]}}}],["compatívei",{"_index":974,"t":{"459":{"position":[[282,11]]}}}],["compatível",{"_index":4,"t":{"350":{"position":[[28,10]]},"522":{"position":[[373,10]]}}}],["compil",{"_index":217,"t":{"370":{"position":[[121,8]]},"470":{"position":[[101,9]]}}}],["complet",{"_index":191,"t":{"368":{"position":[[500,8]]},"370":{"position":[[52,8]]}}}],["complianc",{"_index":271,"t":{"378":{"position":[[49,10]]}}}],["compon",{"_index":213,"t":{"370":{"position":[[12,9],[165,11],[273,10]]},"372":{"position":[[12,9],[286,10]]},"374":{"position":[[204,10]]},"376":{"position":[[122,9],[230,10]]},"378":{"position":[[173,10]]}}}],["compress",{"_index":98,"t":{"354":{"position":[[352,11]]}}}],["compressão",{"_index":418,"t":{"384":{"position":[[176,11]]},"522":{"position":[[720,10]]}}}],["comprimida",{"_index":973,"t":{"459":{"position":[[271,10]]}}}],["concept",{"_index":905,"t":{"448":{"position":[[89,9]]}}}],["conexão",{"_index":444,"t":{"388":{"position":[[82,7],[858,7]]},"390":{"position":[[701,7],[1293,7]]},"392":{"position":[[64,7],[111,7],[314,8],[386,7],[909,7],[1566,7],[1760,7],[1993,7],[2146,7],[2314,7],[2382,7],[2545,7],[2607,7],[2702,7]]},"394":{"position":[[155,7],[732,8],[1690,7]]},"396":{"position":[[289,7]]},"459":{"position":[[254,7]]}}}],["conexõ",{"_index":533,"t":{"392":{"position":[[14,8],[631,8],[737,8],[1154,8],[1260,8],[1425,8],[1491,8]]},"394":{"position":[[1597,8]]},"522":{"position":[[794,8]]}}}],["config",{"_index":121,"t":{"358":{"position":[[239,6]]},"380":{"position":[[126,6],[345,6],[1347,6]]},"382":{"position":[[354,6]]},"399":{"position":[[75,6]]}}}],["configuração",{"_index":658,"t":{"396":{"position":[[258,12]]}}}],["confirm",{"_index":1265,"t":{"514":{"position":[[59,9]]},"516":{"position":[[59,9]]}}}],["conflito",{"_index":653,"t":{"396":{"position":[[129,10]]}}}],["conhecida",{"_index":11,"t":{"350":{"position":[[86,9]]}}}],["conjunto",{"_index":532,"t":{"392":{"position":[[2,8]]},"522":{"position":[[232,8],[782,8]]}}}],["conn",{"_index":329,"t":{"380":{"position":[[832,4],[1682,4]]},"382":{"position":[[518,4]]},"392":{"position":[[2259,4],[2517,5]]},"394":{"position":[[1704,4],[1791,4]]},"396":{"position":[[447,4],[565,4]]},"420":{"position":[[75,4]]},"429":{"position":[[128,4]]},"431":{"position":[[116,4]]},"436":{"position":[[107,4],[552,4]]},"438":{"position":[[124,4]]},"440":{"position":[[363,4]]},"442":{"position":[[214,4]]},"444":{"position":[[342,4]]},"468":{"position":[[115,6]]},"474":{"position":[[168,4]]},"488":{"position":[[201,6]]},"490":{"position":[[62,4]]},"492":{"position":[[599,6]]},"494":{"position":[[88,4]]},"496":{"position":[[724,4]]},"498":{"position":[[761,4]]},"500":{"position":[[455,4]]},"502":{"position":[[481,4]]},"504":{"position":[[444,4]]},"506":{"position":[[1450,5]]},"508":{"position":[[418,4]]}}}],["conn.clos",{"_index":1146,"t":{"492":{"position":[[700,13],[1482,13]]}}}],["conn.end",{"_index":644,"t":{"394":{"position":[[1908,12]]},"420":{"position":[[210,11]]},"490":{"position":[[324,11]]},"496":{"position":[[2089,11]]},"498":{"position":[[2124,11]]},"500":{"position":[[1249,11]]},"502":{"position":[[1392,11]]},"504":{"position":[[1357,11]]},"508":{"position":[[1214,11]]}}}],["conn.execute('select",{"_index":826,"t":{"420":{"position":[[161,20]]},"433":{"position":[[108,20]]}}}],["conn.execute>(sql",{"_index":899,"t":{"444":{"position":[[651,53]]}}}],["conn.query>('cal",{"_index":1196,"t":{"496":{"position":[[1624,45]]},"498":{"position":[[1661,45]]}}}],["conn.query('drop",{"_index":1178,"t":{"496":{"position":[[823,33],[1343,33]]},"498":{"position":[[860,33],[1380,33]]},"500":{"position":[[554,33]]},"502":{"position":[[580,33]]},"504":{"position":[[543,33]]},"508":{"position":[[517,33]]}}}],["conn.query(sql",{"_index":887,"t":{"440":{"position":[[460,32]]}}}],["conn.query(sql",{"_index":892,"t":{"442":{"position":[[349,34]]}}}],["conn.query('select",{"_index":869,"t":{"436":{"position":[[185,35]]}}}],["conn.query('show",{"_index":871,"t":{"436":{"position":[[321,33],[797,33]]}}}],["conn.query(sql",{"_index":876,"t":{"438":{"position":[[279,34]]}}}],["conn.query 45' ); console.log(results); // \"results\" contêm as linhas retornadas pelo servidor console.log(fields); // \"fields\" contêm metadados adicionais sobre os resultados, quando disponíveis } catch (err) { console.log(err); } // Utilizando espaços reservados (placeholders) try { const [results] = await connection.query( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Page', 45] ); console.log(results); } catch (err) { console.log(err); } // Obtém o cliente const mysql = require('mysql2'); // Cria a conexão com o Banco de Dados const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // Consulta simples connection.query( 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45', function (err, results, fields) { console.log(results); // \"results\" contêm as linhas retornadas pelo servidor console.log(fields); // \"fields\" contêm metadados adicionais sobre os resultados, quando disponíveis } ); // Utilizando espaços reservados (placeholders) connection.query( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Page', 45], function (err, results) { console.log(results); } );","s":"Primeira Consulta (Query)","u":"/node-mysql2/pt-BR/docs","h":"#primeira-consulta-query","p":623},{"i":630,"t":"Com o MySQL2 você também pode obter Instruções Preparadas (Prepared Statements). Dessa forma o MySQL não precisa preparar um plano para a mesma consulta todas as vezes, resultando em um melhor desempenho. Se você não sabe por que isso é importante, veja essa discussão: Como as instruções preparadas (prepared statements) podem proteger contra ataques de injeção SQL O MySQL2 fornece o método auxiliar execute que irá preparar e consultar as declarações (statements) SQL. Além disso, você também pode usar os métodos prepare e unprepare para preparar ou desfazer a preparação de declarações (statements) manualmente, se necessário. Para explorar mais exemplos de Instruções Preparadas (Prepared Statements), visite a seção de exemplos Instruções Preparadas (Prepared Statements). Promise Callback import mysql from 'mysql2/promise'; try { // Cria a conexão com o Banco de Dados const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // \"execute\" irá chamar internamente a preparação e a consulta (query) const [results, fields] = await connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Rick C-137', 53] ); console.log(results); // \"results\" contêm as linhas retornadas pelo servidor console.log(fields); // \"fields\" contêm metadados adicionais sobre os resultados, quando disponíveis } catch (err) { console.log(err); } const mysql = require('mysql2'); // Cria a conexão com o Banco de Dados const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // \"execute\" irá chamar internamente a preparação e a consulta (query) connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Rick C-137', 53], function (err, results, fields) { console.log(results); // \"results\" contêm as linhas retornadas pelo servidor console.log(fields); // \"fields\" contêm metadados adicionais sobre os resultados, quando disponíveis } ); dica Se você executar a mesma declaração novamente, ela será selecionada a partir do LRU Cache, o que economizará tempo de preparação da consulta e proporcionará melhor desempenho.","s":"Usando Instruções Preparadas (Prepared Statements)","u":"/node-mysql2/pt-BR/docs","h":"#usando-instruções-preparadas-prepared-statements","p":623},{"i":632,"t":"O conjunto de conexões (pools) ajuda a reduzir o tempo gasto na conexão com o servidor MySQL, reutilizando uma conexão anterior e deixando-as abertas ao invés de fechá-las quando você termina de usá-las. Isto melhora a latência das consultas (queries), pois evita toda a sobrecarga associada à criação de uma nova conexão. Para explorar mais exemplos de Conjunto de Conexões (pools), visite a seção de exemplos createPool. Promise Callback import mysql from 'mysql2/promise'; // Cria a conexão (pool). As definições específicadas do \"createPool\" são as predefinições padrões const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', waitForConnections: true, connectionLimit: 10, maxIdle: 10, // Máximo de conexões inativas; o valor padrão é o mesmo que \"connectionLimit\" idleTimeout: 60000, // Tempo limite das conexões inativas em milissegundos; o valor padrão é \"60000\" queueLimit: 0, enableKeepAlive: true, keepAliveInitialDelay: 0, }); const mysql = require('mysql2'); // Cria a conexão (pool). As definições específicadas do \"createPool\" são as predefinições padrões const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', waitForConnections: true, connectionLimit: 10, maxIdle: 10, // Máximo de conexões inativas; o valor padrão é o mesmo que \"connectionLimit\" idleTimeout: 60000, // Tempo limite das conexões inativas em milissegundos; o valor padrão é \"60000\" queueLimit: 0, enableKeepAlive: true, keepAliveInitialDelay: 0, }); nota O pool não estabelece todas as conexões previamente, mas as cria sob demanda até que o limite de conexões seja atingido. Você pode usar o pool da mesma maneira como em uma conexão (usando pool.query() e pool.execute()): Promise Callback try { // Para a inicialização do \"pool\", veja acima const [rows, fields] = await pool.query('SELECT `field` FROM `table`'); // A conexão é automaticamente liberada quando a consulta (query) é resolvida } catch (err) { console.log(err); } // Para a inicialização do \"pool\", veja acima pool.query('SELECT `field` FROM `table`', function (err, rows, fields) { // A conexão é automaticamente liberada quando a consulta (query) é resolvida }); Alternativamente, também existe a possibilidade de adquirir manualmente uma conexão do pool e liberá-la posteriormente: Promise Callback // Para a inicialização do \"pool\", veja acima const conn = await pool.getConnection(); // Fazer algo com a conexão await conn.query(/* ... */); // Não se esqueça de liberar a conexão quando terminar! pool.releaseConnection(conn); // Para a inicialização do \"pool\", veja acima pool.getConnection(function (err, conn) { // Fazer algo com a conexão conn.query(/* ... */); // Não se esqueça de liberar a conexão quando terminar! pool.releaseConnection(conn); }); Adicionalmente, você pode liberar a conexão usando o objeto connection: conn.release();","s":"Usando Conjunto de Conexões (pools)","u":"/node-mysql2/pt-BR/docs","h":"#using-connection-pools","p":623},{"i":634,"t":"O MySQL2 também suporta Promise API. O que funciona muito bem com o ES7 async await. import mysql from 'mysql2/promise'; async function main() { // Cria a conexão com o Banco de Dados const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // Consulta no Banco de Dados const [rows, fields] = await connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Morty', 14] ); } O MySQL2 usa o objeto Promise padrão disponível no escopo. Mas você pode escolher qual implementação de Promise deseja usar. // Obtém o cliente import mysql from 'mysql2/promise'; // Obtém a implementação de \"Promise\" (nós usaremos o \"bluebird\") import bluebird from 'bluebird'; // Cria a conexão, especificando o \"bluebird\" como \"Promise\" const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', Promise: bluebird, }); // Consulta no Banco de Dados const [rows, fields] = await connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Morty', 14] ); MySQL2 also exposes a .promise() function on Pools, so you can create a promise/non-promise connections from the same pool. import mysql from 'mysql2'; async function main() { // create the pool const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', }); // now get a Promise wrapped instance of that pool const promisePool = pool.promise(); // query database using promises const [rows, fields] = await promisePool.query('SELECT 1'); } O MySQL2 também expõe o método .promise() em Pools, então você pode criar conexões \"promise/non-promise\" para o mesmo pool. const mysql = require('mysql2'); // Cria a conexão const conn = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); conn .promise() .query('SELECT 1') .then(([rows, fields]) => { console.log(rows); }) .catch(console.log) .then(() => conn.end());","s":"Usando o Promise Wrapper","u":"/node-mysql2/pt-BR/docs","h":"#usando-o-promise-wrapper","p":623},{"i":636,"t":"Se você tiver duas colunas com o mesmo nome, pode preferir receber os resultados como um array, em vez de um objeto, para evitar conflitos. Isso é uma divergência da biblioteca Node MySQL. Por exemplo: SELECT 1 AS `foo`, 2 AS `foo`. Você pode habilitar essa configuração tanto no nível de conexão (aplica-se a todas as consultas), quanto no nível de consulta (aplica-se apenas a essa consulta específica). Connection Level​ Promise Callback const conn = await mysql.createConnection({ host: 'localhost', database: 'test', user: 'root', rowsAsArray: true, }); const conn = mysql.createConnection({ host: 'localhost', database: 'test', user: 'root', rowsAsArray: true, }); Query Level​ Promise Callback try { const [results, fields] = await conn.query({ sql: 'SELECT 1 AS `foo`, 2 AS `foo`', rowsAsArray: true, }); console.log(results); // nessa consulta, \"results\" contêm um array de arrays ao invés de um array de objetos console.log(fields); // \"fields\" mantêm-se inalterados } catch (err) { console.log(err); } conn.query( { sql: 'SELECT 1 AS `foo`, 2 AS `foo`', rowsAsArray: true, }, function (err, results, fields) { console.log(results); // nessa consulta, \"results\" contêm um array de arrays ao invés de um array de objetos console.log(fields); // \"fields\" mantêm-se inalterados } ); Obtendo Ajuda Precisa de ajuda? Faça sua pergunta no Stack Overflow ou GitHub. Se você encontrou um erro, registre-o no GitHub.","s":"Resultados em Array","u":"/node-mysql2/pt-BR/docs","h":"#resultados-em-array","p":623},{"i":638,"t":"O MySQL2 é maioritariamente compatível com a API do Node MySQL. Uma incompatibilidade conhecida é que os valores em DECIMAL são retornados como strings, enquanto no Node MySQL eles são retornados como números. Isso inclui o resultado das funções SUM() e AVG() quando aplicadas a argumentos INTEGER. Isso é feito deliberadamente para evitar a perda de precisão - veja https://github.com/sidorares/node-mysql2/issues/935. info Se você encontrar qualquer outra incompatibilidade com o Node MySQL, por favor, reporte através do acompanhamento de Issues. Nós corrigiremos a incompatibilidade relatada como uma prioridade.","s":"API e Configuração","u":"/node-mysql2/pt-BR/docs/api-and-configurations","h":"","p":637},{"i":640,"t":"Quer melhorar algo no MySQL2? Consulte o arquivo Contributing.md para instruções detalhadas sobre como começar.","s":"Contribuições","u":"/node-mysql2/pt-BR/docs/contributing","h":"","p":639},{"i":642,"t":"This website is built using Docusaurus 3, a modern static website generator.","s":"Website Contributing Guidelines","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"","p":641},{"i":644,"t":"You will need these tools installed on your system: Node.js (18.x or higher)","s":"Environment","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#environment","p":641},{"i":646,"t":"Fork the MySQL2 repository. Download your forked repository locally. The website's workspace is the \"website\" directory in node-mysql2 root. Create a new branch from master (optional). Run cd website to enter the website workspace. Run npm ci to install the dependecies from package-lock.json. Run npm start to starting the local development. It will start a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. For Docusaurus complete documentation, please see here. CLI example git clone https://github.com/sidorares/node-mysql2.git git checkout -b website # optional cd /path-to/node-mysql2/website npm ci npm start Documentation is auto-generated from MDX files placed in these directories: ./docs/documentation ./docs/examples ./docs/faq Caution Note that the website has its own package.json. Please, do not install dependencies for the website in node-mysql2 root.","s":"Development","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#development","p":641},{"i":648,"t":"Every extra component is thoroughly documented with complete typings descriptions. Docusaurus Markdown Features: The MDX compiler transforms Markdown files to React components, and allows you to use JSX in your Markdown content. This enables you to easily interleave React components within your content, and create delightful learning experiences.","s":"Extras Components","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#extras-components","p":641},{"i":650,"t":"The History component displays version changes in a table format, listing version numbers alongside their changes. import { History } from '@site/src/components/History'; dica You can also utilize React components in the changes option. Example History Version Changes v1.0.0 Some change message.","s":"History","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#history","p":641},{"i":652,"t":"See the Stability Badges for more detais. import { Stability } from '@site/src/components/Stability'; dica You can also utilize React components in the message option. Available levels: 0, 1, 1.1, 1.2, 2 and 3. Example 2Stable 2Stable Some message.","s":"Stability","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#stability","p":641},{"i":654,"t":"import { FAQ } from '@site/src/components/FAQ'; > Some markdown (**MDX**) content. dica The FAQ component can be utilized in any section or page. Code blocks are compatible and can be used within the FAQ component. Example Title Some markdown (MDX) content.","s":"FAQ","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#faq","p":641},{"i":656,"t":"import { ExternalCodeEmbed } from '@site/src/components/ExternalCodeEmbed'; Example","s":"ExternalCodeEmbed","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#externalcodeembed","p":641},{"i":658,"t":"npm run test Check Prettier and ESLint rules for compliance npm run lintcheck Included in the GitHub Actions workflow. Check for typings errors 1Experimental Checks for MDX components are missing. npm run typecheck Included in the GitHub Actions workflow. Clear and build the website npm run clear npm run build Included in the GitHub Actions workflow. Fix issues from Prettier and ESLint rules npm run lint To prevent lint issues, it is recommended to execute this command before creating your commit. Not included in the GitHub Actions workflow.","s":"Running Tests","u":"/node-mysql2/pt-BR/docs/contributing/website","h":"#running-tests","p":641},{"i":660,"t":"MySQL2 aims to be a drop in replacement for Node MySQL. nota If you see any API incompatibilities with Node MySQL, please report via github issue. Not only MySQL2 offers better performance over Node MySQL, we also support these additional features: Prepared Statements Promise Wrapper Authentication Switch More Features MySQL Server Pooling SSL MySQL Compression Binary Log Protocol Client","s":"Documentation","u":"/node-mysql2/pt-BR/docs/documentation","h":"","p":659},{"i":662,"t":"Please check these examples for MySQL2.","s":"Examples","u":"/node-mysql2/pt-BR/docs/documentation","h":"#examples","p":659},{"i":664,"t":"zeroFill flag is ignored in type conversion. You need to check corresponding field's zeroFill flag and convert to string manually if this is of importance to you. DECIMAL and NEWDECIMAL types always returned as string unless you pass this config option: { decimalNumbers: true, } nota This option could lose precision on the number as Javascript Number is a Float!","s":"Known incompatibilities with Node MySQL","u":"/node-mysql2/pt-BR/docs/documentation","h":"#known-incompatibilities-with-node-mysql","p":659},{"i":666,"t":"Wire protocol documentation Node MySQL - Most popular node.js mysql client library node-mariasql - Bindings to libmariasql. One of the fastest clients node-libmysqlclient - Bindings to libmysqlclient go-mysql - MySQL Go client (prepared statements, binlog protocol, server)","s":"Other Resources","u":"/node-mysql2/pt-BR/docs/documentation","h":"#other-resources","p":659},{"i":668,"t":"https://gist.github.com/sidorares/ffe9ee9c423f763e3b6b npm run benchmarks node-mysql-benchmarks try to run example benchmarks on your system","s":"Benchmarks","u":"/node-mysql2/pt-BR/docs/documentation","h":"#benchmarks","p":659},{"i":670,"t":"During the connection phase the server may ask the client to switch to a different auth method. If the authPlugins connection config option is set, it must be an object where each key is the name of a potential authentication plugin requested by the server, and the corresponding value must be a function that optionally receives the connection config options and returns another function, which in turn, optionally receives the switch request data. The plugin is loaded with a ({user,password,...}) signature, and each call has a (pluginData) signature. Each call should make the plugin return any additional authentication data (Buffer) that should be sent back to the server, either synchronously or asynchronously using a Promise, or should yield an error accordingly. Example: (imaginary ssh-key-auth plugin) pseudo code const conn = mysql.createConnection({ user: 'test_user', password: 'test', database: 'test_database', authPlugins: { 'ssh-key-auth': function ({ password }) { return function (pluginData) { return getPrivate(key) .then((key) => { const response = encrypt(key, password, pluginData); // continue handshake by sending response data return response; }) .catch((err) => { // throw error to propagate error to connect/changeUser handlers }); }; }, }, }); There is also a deprecated API where if a authSwitchHandler connection config option is set it must be a function that receives switch request data and responds via a callback. In this case, the first invocation always has a ({pluginName, pluginData}) signature, following calls - ({pluginData}). The client replies with an opaque blob matching the requested plugin via callback(null, data: Buffer). const conn = mysql.createConnection({ user: 'test_user', password: 'test', database: 'test_database', authSwitchHandler: function ({ pluginName, pluginData }, cb) { if (pluginName === 'ssh-key-auth') { getPrivateKey((key) => { const response = encrypt(key, pluginData); // continue handshake by sending response data // respond with error to propagate error to connect/changeUser handlers cb(null, response); }); } else { const err = new Error( `Unknown AuthSwitchRequest plugin name ${pluginName}` ); err.fatal = true; cb(err); } }, }); The initial handshake is always performed using mysql_native_password plugin. This will be possible to override in future versions. Note that if the mysql_native_password method is requested it will be handled internally according to Authentication::Native41 and no authPlugins function or the authSwitchHandler will be invoked. These MAY be called multiple times if the plugin algorithm requires multiple roundtrips of data exchange between client and server.","s":"Authentication Switch Request","u":"/node-mysql2/pt-BR/docs/documentation/authentication-switch","h":"","p":669},{"i":672,"t":"If the user requires multi-factor authentication in the server, the client will receive a AuthNextFactor request, which is similar in structure to the regular authentication switch request and contains the name and possible initial data for the additional authentication factor plugin (up to 3). Additional passwords can be provided using the connection config options - password2 and password3. Again, for each authentication factor, multiple roundtrips of data exchange can be required by the plugin algoritm. const conn = mysql.createConnection({ user: 'test_user', password: 'secret1', password2: 'secret2', password3: 'secret3', database: 'test_database', authPlugins: { // password1 === password 'auth-plugin1': function ({ password1 }) { return function (serverPluginData) { return clientPluginData(password1, serverPluginData); }; }, 'auth-plugin2': function ({ password2 }) { return function (serverPluginData) { return clientPluginData(password2, serverPluginData); }; }, 'auth-plugin3': function ({ password3 }) { return function (serverPluginData) { return clientPluginData(password3, serverPluginData); }; }, }, });","s":"Multi-factor authentication","u":"/node-mysql2/pt-BR/docs/documentation/authentication-switch","h":"#multi-factor-authentication","p":669},{"i":675,"t":"Similar to connection.query(). connection.execute('select 1 + ? + ? as result', [5, 6], (err, rows) => { // rows: [ { result: 12 } ] // internally 'select 1 + ? + ? as result' is prepared first. On subsequent calls cached statement is re-used }); // close cached statement for 'select 1 + ? + ? as result'. noop if not in cache connection.unprepare('select 1 + ? + ? as result'); Note that connection.execute() will cache the prepared statement for better performance, remove the cache with connection.unprepare() when you're done.","s":"Automatic creation, cached and re-used by connection","u":"/node-mysql2/pt-BR/docs/documentation/prepared-statements","h":"#automatic-creation-cached-and-re-used-by-connection","p":673},{"i":677,"t":"Manually prepared statements doesn't comes with LRU cache and SHOULD be closed using statement.close() instead of connection.unprepare(). connection.prepare('select ? + ? as tests', (err, statement) => { // statement.parameters - array of column definitions, length === number of params, here 2 // statement.columns - array of result column definitions. Can be empty if result schema is dynamic / not known // statement.id // statement.query statement.execute([1, 2], (err, rows, columns) => { // -> [ { tests: 3 } ] }); // don't use connection.unprepare(), it won't work! // note that there is no callback here. There is no statement close ack at protocol level. statement.close(); }); Note that you should not use statement after connection reset (changeUser() or disconnect). Statement scope is connection, you need to prepare statement for each new connection in order to use it.","s":"Manual prepare / execute","u":"/node-mysql2/pt-BR/docs/documentation/prepared-statements","h":"#manual-prepare--execute","p":673},{"i":679,"t":"maxPreparedStatements : We keep the cached statements in a lru-cache. Default size is 16000 but you can use this option to override it. Any statements that are dropped from cache will be closed.","s":"Configuration","u":"/node-mysql2/pt-BR/docs/documentation/prepared-statements","h":"#configuration","p":673},{"i":681,"t":"The bind parameter values passed to execute are serialized JS -> MySQL as: null -> NULL number -> DOUBLE boolean -> TINY (0 for false, 1 for true) object -> depending on prototype: Date -> DATETIME JSON like object - JSON Buffer -> VAR_STRING Other -> VAR_STRING Passing in undefined or a function will result in an error.","s":"Serialization of bind parameters","u":"/node-mysql2/pt-BR/docs/documentation/prepared-statements","h":"#serialization-of-bind-parameters","p":673},{"i":683,"t":"MySQL2 provides execute helper which will prepare and query the statement. You can also manually prepare / unprepare statement with prepare / unprepare methods. connection.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [1, null, 3], (err, rows, fields) => { console.log(err, rows, fields); connection.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [3, null, 3], (err, rows, fields) => { console.log(err, rows, fields); connection.unprepare('select ?+1 as qqq, ? as rrr, ? as yyy'); connection.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [3, null, 3], (err, rows, fields) => { console.log(err, rows, fields); } ); } ); } );","s":"Prepared Statements Helper","u":"/node-mysql2/pt-BR/docs/documentation/prepared-statements","h":"#prepared-statements-helper","p":673},{"i":685,"t":"For Prepared Statements examples, please see here.","s":"Examples","u":"/node-mysql2/pt-BR/docs/documentation/prepared-statements","h":"#examples","p":673},{"i":688,"t":"createServer() - creates server instance Server.listen - listen port / unix socket (same arguments as net.Server.listen)","s":"Server","u":"/node-mysql2/pt-BR/docs/documentation/mysql-server","h":"#server","p":686},{"i":690,"t":"connect new incoming connection.","s":"Events","u":"/node-mysql2/pt-BR/docs/documentation/mysql-server","h":"#events","p":686},{"i":692,"t":"serverHandshake({ serverVersion, protocolVersion, connectionId, statusFlags, characterSet, capabilityFlags }) send server handshake initialisation packet, wait handshake response and start listening for commands writeOk({ affectedRows: num, insertId: num }) send OK packet to client writeEof(warnings, statusFlags) send EOF packet writeTextResult(rows, fields) write query result to client. Rows and fields are in the same format as in connection.query callback. writeColumns(fields) write fields + EOF packets. writeTextRow(row) write array (not hash!) of values as result row TODO: binary protocol","s":"Connection","u":"/node-mysql2/pt-BR/docs/documentation/mysql-server","h":"#connection","p":686},{"i":694,"t":"Every command packet received by the server will be emitted as a packet event with the parameters: packet: Packet The packet itself knownCommand: boolean is this command known to the server *commandCode: number the parsed command code (first byte) In addition special events are emitted for commands received from the client. If no listener is present a fallback behavior will be invoked. quit() Default: close the connection init_db(schemaName: string) Default: return OK query(sql: string) Please attach a listener to this. Default: return HA_ERR_INTERNAL_ERROR field_list(table: string, fields: string) Default: return ER_WARN_DEPRECATED_SYNTAX ping() - Default: return OK","s":"Events","u":"/node-mysql2/pt-BR/docs/documentation/mysql-server","h":"#events-1","p":686},{"i":697,"t":"You can use named placeholders for parameters by setting namedPlaceholders config value or query/execute time option. Named placeholders are converted to unnamed ? on the client (mysql protocol does not support named parameters). If you reference parameter multiple times under the same name it is sent to server multiple times. Unnamed placeholders can still be used by providing the values as an array instead of an object. connection.config.namedPlaceholders = true; connection.execute('select :x + :y as z', { x: 1, y: 2 }, (err, rows) => { // statement prepared as \"select ? + ? as z\" and executed with [1,2] values // rows returned: [ { z: 3 } ] }); connection.execute('select :x + :x as z', { x: 1 }, (err, rows) => { // select ? + ? as z, execute with [1, 1] }); connection.query('select :x + :x as z', { x: 1 }, (err, rows) => { // query select 1 + 1 as z }); // unnamed placeholders are still valid if the values are provided in an array connection.query('select ? + ? as z', [1, 1], (err, rows) => { // query select 1 + 1 as z });","s":"Named placeholders","u":"/node-mysql2/pt-BR/docs/documentation/extras","h":"#named-placeholders","p":695},{"i":699,"t":"const options = { sql: 'select A,B,C,D from foo', rowsAsArray: true }; connection.query(options, (err, results) => { /* results will be an array of arrays like this now: [[ 'field A value', 'field B value', 'field C value', 'field D value', ], ...] */ });","s":"Receiving rows as array of columns instead of hash with column name as key:","u":"/node-mysql2/pt-BR/docs/documentation/extras","h":"#receiving-rows-as-array-of-columns-instead-of-hash-with-column-name-as-key","p":695},{"i":701,"t":"In addition to sending local fs files you can send any stream using infileStreamFactory query option. If set, it has to be a function that return a readable stream. It gets file path from query as a parameter. Note: starting from version 2.0 infileStreamFactory is required parameter for LOAD DATA LOCAL INFILE. Response from server indicates that it wants access to a local file and no infileStreamFactory option is provided the query ends with error. // local file connection.query( 'LOAD DATA LOCAL INFILE \"/tmp/data.csv\" INTO TABLE test FIELDS TERMINATED BY ? (id, title)', onInserted1 ); // local stream const sql = 'LOAD DATA LOCAL INFILE \"mystream\" INTO TABLE test FIELDS TERMINATED BY ? (id, title)'; connection.query( { sql: sql, infileStreamFactory: function (path) { return getStream(); }, }, onInserted2 ); The infileStreamFactory option may also be set at a connection-level: const fs = require('fs'); const mysql = require('mysql2'); const connection = mysql.createConnection({ user: 'test', database: 'test', infileStreamFactory: (path) => { // Validate file path const validPaths = ['/tmp/data.csv']; if (!validPaths.includes(path)) { throw new Error( `invalid file path: ${path}: expected to be one of ${validPaths.join( ',' )}` ); } return fs.createReadStream(path); }, }); connection.query( 'LOAD DATA LOCAL INFILE \"/tmp/data.csv\" INTO TABLE test', onInserted );","s":"Sending tabular data with 'load infile' and local stream:","u":"/node-mysql2/pt-BR/docs/documentation/extras","h":"#sending-tabular-data-with-load-infile-and-local-stream","p":695},{"i":703,"t":"const net = require('net'); const mysql = require('mysql2'); const shape = require('shaper'); const connection = mysql.createConnection({ user: 'test', database: 'test', stream: net.connect('/tmp/mysql.sock').pipe(shape(10)), // emulate 10 bytes/sec link }); connection.query('SELECT 1+1 as test1', console.log); stream also can be a function. In that case function result has to be duplex stream, and it is used for connection transport. This is required if you connect pool using custom transport as new pooled connection needs new stream. Example connecting over socks5 proxy: const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const pool = mysql.createPool({ database: 'test', user: 'foo', password: 'bar', stream: function (cb) { const newStream = new SocksConnection( { host: 'remote.host', port: 3306 }, { host: 'localhost', port: 1080 } ); cb(null, newStream); }, }); In addition to password createConnection(), createPool() and changeUser() accept passwordSha1 option. This is useful when implementing proxies as plaintext password might be not available.","s":"Connecting using custom stream:","u":"/node-mysql2/pt-BR/docs/documentation/extras","h":"#connecting-using-custom-stream","p":695},{"i":706,"t":"npm install --save mysql2 npm install --save-dev @types/node The @types/node ensure the proper interaction between TypeScript and the Node.js modules used by MySQL2 (net, events, stream, tls, etc.). info Requires TypeScript >=4.5.2.","s":"Installation","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#installation","p":704},{"i":708,"t":"You can import MySQL2 in two ways: By setting the esModuleInterop option to true in tsconfig.json import mysql from 'mysql2'; import mysql from 'mysql2/promise'; By setting the esModuleInterop option to false in tsconfig.json import * as mysql from 'mysql2'; import * as mysql from 'mysql2/promise';","s":"Usage","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#usage","p":704},{"i":710,"t":"import mysql, { ConnectionOptions } from 'mysql2'; const access: ConnectionOptions = { user: 'test', database: 'test', }; const conn = mysql.createConnection(access);","s":"Connection","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#connection","p":704},{"i":712,"t":"import mysql, { PoolOptions } from 'mysql2'; const access: PoolOptions = { user: 'test', database: 'test', }; const conn = mysql.createPool(access);","s":"Pool Connection","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#pool-connection","p":704},{"i":714,"t":"A simple query​ conn.query('SELECT 1 + 1 AS `test`;', (_err, rows) => { /** * @rows: [ { test: 2 } ] */ }); conn.execute('SELECT 1 + 1 AS `test`;', (_err, rows) => { /** * @rows: [ { test: 2 } ] */ }); The rows output will be these possible types: RowDataPacket[] RowDataPacket[][] ResultSetHeader ResultSetHeader[] ProcedureCallPacket In this example, you need to manually check the output types","s":"Query and Execute","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#query-and-execute","p":704},{"i":717,"t":"2Stable An array with the returned rows, for example: import mysql, { RowDataPacket } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', }); // SELECT conn.query('SELECT 1 + 1 AS `test`;', (_err, rows) => { console.log(rows); /** * @rows: [ { test: 2 } ] */ }); // SHOW conn.query('SHOW TABLES FROM `test`;', (_err, rows) => { console.log(rows); /** * @rows: [ { Tables_in_test: 'test' } ] */ }); Using rowsAsArray option as true: import mysql, { RowDataPacket } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', rowsAsArray: true, }); // SELECT conn.query( 'SELECT 1 + 1 AS test, 2 + 2 AS test;', (_err, rows) => { console.log(rows); /** * @rows: [ [ 2, 4 ] ] */ } ); // SHOW conn.query('SHOW TABLES FROM `test`;', (_err, rows) => { console.log(rows); /** * @rows: [ [ 'test' ] ] */ });","s":"RowDataPacket[]","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#rowdatapacket","p":704},{"i":719,"t":"2Stable Using multipleStatements option as true with multiple queries: import mysql, { RowDataPacket } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', multipleStatements: true, }); const sql = ` SELECT 1 + 1 AS test; SELECT 2 + 2 AS test; `; conn.query(sql, (_err, rows) => { console.log(rows); /** * @rows: [ [ { test: 2 } ], [ { test: 4 } ] ] */ });","s":"RowDataPacket[][]","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#rowdatapacket-1","p":704},{"i":721,"t":"2Stable History Version Changes v3.5.1 OkPacket is deprecated and might be removed in the future major release. Please use ResultSetHeader instead. changedRows option is deprecated and might be removed in the future major release. Please use affectedRows instead. For INSERT, UPDATE, DELETE, TRUNCATE, etc.: import mysql, { ResultSetHeader } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', }); const sql = ` SET @1 = 1; `; conn.query(sql, (_err, result) => { console.log(result); /** * @result: ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } */ });","s":"ResultSetHeader","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#resultsetheader","p":704},{"i":723,"t":"2Stable History Version Changes v3.5.1 Introduce ResultSetHeader[] For multiples INSERT, UPDATE, DELETE, TRUNCATE, etc. when using multipleStatements as true: import mysql, { ResultSetHeader } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', multipleStatements: true, }); const sql = ` SET @1 = 1; SET @2 = 2; `; conn.query(sql, (_err, results) => { console.log(results); /** * @results: [ ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 10, warningStatus: 0, changedRows: 0 }, ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } ] */ });","s":"ResultSetHeader[]","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#resultsetheader-1","p":704},{"i":725,"t":"2Stable History Version Changes v3.5.1 Introduce ProcedureCallPacket dica By performing a Call Procedure using INSERT, UPDATE, etc., the return will be a ProcedureCallPacket (even if you perform multiples queries and set multipleStatements to true): import mysql, { ProcedureCallPacket, ResultSetHeader } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', }); /** ResultSetHeader */ conn.query('DROP PROCEDURE IF EXISTS myProcedure'); /** ResultSetHeader */ conn.query(` CREATE PROCEDURE myProcedure() BEGIN SET @1 = 1; SET @2 = 2; END `); /** ProcedureCallPacket */ const sql = 'CALL myProcedure()'; conn.query>(sql, (_err, result) => { console.log(result); /** * @result: ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } */ }); For CREATE PROCEDURE and DROP PROCEDURE, these returns will be the default ResultSetHeader. By using SELECT and SHOW queries in a Procedure Call, it groups the results as: /** ProcedureCallPacket */ [RowDataPacket[], ResultSetHeader] For ProcedureCallPacket, please see the following examples.","s":"ProcedureCallPacket","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#procedurecallpacket","p":704},{"i":727,"t":"0Deprecated OkPacket is deprecated and might be removed in the future major release. Please use ResultSetHeader instead.","s":"OkPacket","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#okpacket","p":704},{"i":729,"t":"You can also check some code examples using MySQL2 and TypeScript to understand advanced concepts: Extending and using Interfaces with RowDataPacket Extending and using Interfaces with RowDataPacket and rowAsArray Extending and using Interfaces with RowDataPacket and multipleStatements Extending and using Interfaces with RowDataPacket, rowAsArray and multipleStatements Checking for ResultSetHeader, extending and using Interfaces with RowDataPacket from ProcedureCallPacket Checking for ResultSetHeader, extending and using Interfaces with RowDataPacket and rowAsArray from ProcedureCallPacket Creating a basic custom MySQL2 Class","s":"Examples","u":"/node-mysql2/pt-BR/docs/documentation/typescript-examples","h":"#examples","p":704},{"i":731,"t":"In addition to errback interface there is thin wrapper to expose Promise-based api","s":"Promise Wrappers","u":"/node-mysql2/pt-BR/docs/documentation/promise-wrapper","h":"","p":730},{"i":733,"t":"/* eslint-env es6 */ const mysql = require('mysql2/promise'); // or require('mysql2').createConnectionPromise mysql .createConnection({ /* same parameters as for non-promise createConnection */ }) .then((conn) => conn.query('select foo from bar')) .then(([rows, fields]) => console.log(rows[0].foo)); const pool = require('mysql2/promise').createPool({}); // or require('mysql2').createPoolPromise({}) or require('mysql2').createPool({}).promise() pool .getConnection() .then((conn) => { const res = conn.query('select foo from bar'); conn.release(); return res; }) .then((result) => { console.log(result[0][0].foo); }) .catch((err) => { console.log(err); // any of connection time or query time errors from above });","s":"Basic Promise","u":"/node-mysql2/pt-BR/docs/documentation/promise-wrapper","h":"#basic-promise","p":730},{"i":735,"t":"async function example1() { const mysql = require('mysql2/promise'); const conn = await mysql.createConnection({ database: test }); const [rows, fields] = await conn.execute('select ?+? as sum', [2, 2]); await conn.end(); } async function example2() { const mysql = require('mysql2/promise'); const pool = mysql.createPool({ database: test }); // execute in parallel, next console.log in 3 seconds await Promise.all([ pool.query('select sleep(2)'), pool.query('select sleep(3)'), ]); console.log('3 seconds after'); await pool.end(); }","s":"ES7 Async Await","u":"/node-mysql2/pt-BR/docs/documentation/promise-wrapper","h":"#es7-async-await","p":730},{"i":737,"t":"const mysql = require('mysql2'); const co = require('co'); co(function* () { const c = yield mysql.createConnectionPromise({ user: 'root', namedPlaceholders: true, }); const rows = yield c.query('show databases'); console.log(rows); console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 })); yield c.end(); }); Examples in /examples/promise-co-await","s":"With CO","u":"/node-mysql2/pt-BR/docs/documentation/promise-wrapper","h":"#with-co","p":730},{"i":739,"t":"dica To explore the examples, please use the sidebar navigation on desktop or access the menu on mobile devices.","s":"Examples","u":"/node-mysql2/pt-BR/docs/examples","h":"","p":738},{"i":741,"t":"MySQL-pg-proxy - MySQL to Postgres proxy server. MySQLite.js - MySQL server with JS-only (emscripten compiled) sqlite backend. SQL-engine - MySQL server with LevelDB backend. MySQL-osquery-proxy - Connect to facebook osquery using MySQL client PlyQL - Connect to Druid using MySQL client","s":"Examples using MySQL server API","u":"/node-mysql2/pt-BR/docs/examples","h":"#examples-using-mysql-server-api","p":738},{"i":743,"t":"index.js 'use strict'; const mysql = require('mysql2'); const through2 = require('through2'); const binlogStream = mysql.createBinlogStream({ serverId: 123, // slave ID, first field in \"show slave hosts\" sql response // you can also specify slave host, username, password and port masterId: 0, filename: 'mysql-bin.000007', binlogPos: 120, flags: 1, // 1 = \"non-blocking mode\" }); binlogStream.pipe( through2.obj((obj, enc, next) => { console.log(obj); next(); }) );","s":"Binlog Watcher","u":"/node-mysql2/pt-BR/docs/examples/binlog-watcher","h":"","p":742},{"i":745,"t":"info For queries please see the Simple Queries and Prepared Statements examples.","s":"createConnection","u":"/node-mysql2/pt-BR/docs/examples/connections/create-connection","h":"","p":744},{"i":747,"t":"createConnection(connectionUri: string) promise.js callback.js import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection( 'mysql://root:password@localhost:3306/test' ); } catch (err) { console.log(err); } const mysql = require('mysql2'); const connection = mysql.createConnection( 'mysql://root:password@localhost:3306/test' ); connection.addListener('error', (err) => { console.log(err); });","s":"createConnection(connectionUri)","u":"/node-mysql2/pt-BR/docs/examples/connections/create-connection","h":"#createconnectionconnectionuri","p":744},{"i":749,"t":"createConnection(config: ConnectionOptions) promise.js callback.js import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', // port: 3306, // password: '', }); } catch (err) { console.log(err); } const mysql = require('mysql2'); const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', // port: 3306, // password: '', }); connection.addListener('error', (err) => { console.log(err); });","s":"createConnection(config)","u":"/node-mysql2/pt-BR/docs/examples/connections/create-connection","h":"#createconnectionconfig","p":744},{"i":751,"t":"createConnection(config: ConnectionOptions) promise.js callback.js import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ // ... passwordSha1: Buffer.from( '8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex' ), }); } catch (err) { console.log(err); } const mysql = require('mysql2'); const connection = mysql.createConnection({ // ... passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'), }); connection.addListener('error', (err) => { console.log(err); });","s":"createConnection(config) — SHA1","u":"/node-mysql2/pt-BR/docs/examples/connections/create-connection","h":"#createconnectionconfig--sha1","p":744},{"i":753,"t":"createConnection(config: ConnectionOptions) promise.js callback.js certs/ca-cert.pem import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ // ... ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); } catch (err) { console.log(err); } const mysql = require('mysql2'); const connection = mysql.createConnection({ // ... ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); connection.addListener('error', (err) => { console.log(err); }); See ssl/certs.","s":"createConnection(config) — SSL","u":"/node-mysql2/pt-BR/docs/examples/connections/create-connection","h":"#createconnectionconfig--ssl","p":744},{"i":755,"t":"createConnection(config: ConnectionOptions) You can use Amazon RDS string as value to ssl property to connect to Amazon RDS MySQL over SSL. In that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used: promise.js callback.js import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ // ... host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); } catch (err) { console.log(err); } Testing try { const [res] = await connection.query('SHOW `status` LIKE \"Ssl_cipher\"'); await connection.end(); console.log(res); } catch (err) { console.log(err); } const mysql = require('mysql2'); const connection = mysql.createConnection({ // ... host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); connection.addListener('error', (err) => { console.log(err); }); Testing connectionquery('SHOW `status` LIKE \"Ssl_cipher\"', function (err, res) { connection.end(); if (err instanceof Error) { console.log(err); return; } console.log(res); });","s":"createConnection(config) — RDS SSL","u":"/node-mysql2/pt-BR/docs/examples/connections/create-connection","h":"#createconnectionconfig--rds-ssl","p":744},{"i":757,"t":"Issues #2130 — Update TLS certs for Amazon RDS instances Pull Requests #2119 — fix: make startTls code compatible with Bun #2131 — Update Amazon RDS SSL CA cert","s":"Related Links","u":"/node-mysql2/pt-BR/docs/examples/connections/create-connection","h":"#related-links","p":744},{"i":759,"t":"createConnection(config: ConnectionOptions) A.js B.js const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const socksProxy = new SocksConnection({ port: 3306 }); const connection = mysql.createConnection({ stream: socksProxy, }); connection.addListener('error', (err) => { console.log(err); }); const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const connection = mysql.createConnection({ debug: 1, stream: function () { return new SocksConnection({ port: 3306 }); }, }); connection.addListener('error', (err) => { console.log(err); }); Testing connection.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); }); connection.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); }); connection.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); });","s":"createConnection(config) — Socks","u":"/node-mysql2/pt-BR/docs/examples/connections/create-connection","h":"#createconnectionconfig--socks","p":744},{"i":762,"t":"ConnectionOptions Specification","s":"ConnectionOptions","u":"/node-mysql2/pt-BR/docs/examples/connections/create-connection","h":"#connectionoptions","p":744},{"i":764,"t":"info For queries please see the Simple Queries and Prepared Statements examples.","s":"createPoolCluster","u":"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster","h":"","p":763},{"i":766,"t":"add(group: string, connectionUri: string) promise.js callback.js import mysql from 'mysql2/promise'; try { const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', 'mysql://root:password@localhost:3306/test'); // poolCluster.add('clusterB', '...'); const connection = await poolCluster.getConnection('clusterA'); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', 'mysql://root:password@localhost:3306/test'); // poolCluster.add('clusterB', '...'); poolCluster.getConnection('clusterA', function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); atenção Don't forget to release the connection when finished by using: connection.release()","s":"add(group, connectionUri)","u":"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster","h":"#addgroup-connectionuri","p":763},{"i":768,"t":"add(group: string, config: PoolOptions) promise.js callback.js import mysql from 'mysql2/promise'; try { const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { host: 'localhost', user: 'root', database: 'test', // port: 3306, // password: '', }); // poolCluster.add('clusterB', '...'); const connection = await poolCluster.getConnection('clusterA'); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { host: 'localhost', user: 'root', database: 'test', // port: 3306, // password: '', }); // poolCluster.add('clusterB', '...'); poolCluster.getConnection('clusterA', function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); atenção Don't forget to release the connection when finished by using: connection.release()","s":"add(group, config)","u":"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster","h":"#addgroup-config","p":763},{"i":770,"t":"add(group: string, config: PoolOptions) promise.js callback.js import mysql from 'mysql2/promise'; try { const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { // ... passwordSha1: Buffer.from( '8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex' ), }); // poolCluster.add('clusterB', '...'); const connection = await poolCluster.getConnection('clusterA'); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { // ... passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'), }); // poolCluster.add('clusterB', '...'); poolCluster.getConnection('clusterA', function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); atenção Don't forget to release the connection when finished by using: connection.release()","s":"add(group, config) — SHA1","u":"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster","h":"#addgroup-config--sha1","p":763},{"i":772,"t":"add(group: string, config: PoolOptions) promise.js callback.js certs/ca-cert.pem import mysql from 'mysql2/promise'; try { const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { // ... ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); // poolCluster.add('clusterB', '...'); const connection = await poolCluster.getConnection('clusterA'); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { // ... ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); // poolCluster.add('clusterB', '...'); poolCluster.getConnection('clusterA', function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); See ssl/certs. atenção Don't forget to release the connection when finished by using: connection.release()","s":"add(group, config) — SSL","u":"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster","h":"#addgroup-config--ssl","p":763},{"i":774,"t":"add(group: string, config: PoolOptions) You can use Amazon RDS string as value to ssl property to connect to Amazon RDS MySQL over SSL. In that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used: promise.js callback.js import mysql from 'mysql2/promise'; try { const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { // ... host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); // poolCluster.add('clusterB', '...'); const connection = await poolCluster.getConnection('clusterA'); // ... some query connection.release(); } catch (err) { console.log(err); } Testing try { const [res] = await connection.query('SHOW `status` LIKE \"Ssl_cipher\"'); await poolCluster.end(); console.log(res); } catch (err) { console.log(err); } const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { // ... host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); // poolCluster.add('clusterB', '...'); poolCluster.getConnection('clusterA', function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); Testing connectionquery('SHOW `status` LIKE \"Ssl_cipher\"', function (err, res) { poolCluster.end(); if (err instanceof Error) { console.log(err); return; } console.log(res); }); atenção Don't forget to release the connection when finished by using: connection.release()","s":"add(group, config) — RDS SSL","u":"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster","h":"#addgroup-config--rds-ssl","p":763},{"i":776,"t":"Issues #2130 — Update TLS certs for Amazon RDS instances Pull Requests #2119 — fix: make startTls code compatible with Bun #2131 — Update Amazon RDS SSL CA cert","s":"Related Links","u":"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster","h":"#related-links","p":763},{"i":778,"t":"add(group: string, config: PoolOptions) A.js B.js const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const socksProxy = new SocksConnection({ port: 3306 }); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { stream: socksProxy, }); // poolCluster.add('clusterB', '...'); const poolNamespace = poolCluster.of('clusterA'); const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { debug: 1, stream: function () { return new SocksConnection({ port: 3306 }); }, }); // poolCluster.add('clusterB', '...'); const poolNamespace = poolCluster.of('clusterA'); Testing poolNamespace.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); }); poolNamespace.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); }); poolNamespace.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); });","s":"add(group, config) — Socks","u":"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster","h":"#addgroup-config--socks","p":763},{"i":781,"t":"PoolOptions extends all options from ConnectionOptions: ConnectionOptions Specification PoolOptions Specification","s":"PoolOptions","u":"/node-mysql2/pt-BR/docs/examples/connections/createPoolCluster","h":"#pooloptions","p":763},{"i":783,"t":"MySQL2 provides execute helper which will prepare and query the statement. You can also manually prepare / unprepare statement with prepare / unprepare methods. See detailed documentaion in Prepared Statements. dica If you execute same statement again, it will be picked form a LRU cache which will save query preparation time and give better performance. Usage examples: INSERT SELECT UPDATE DELETE","s":"Prepared Statements","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements","h":"","p":782},{"i":786,"t":"execute(sql: string, values: any[]) promise.js callback.js try { const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1'; const values = ['Page']; const [result, fields] = await connection.execute(sql, values); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1'; const values = ['Page']; connection.execute(sql, values, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); }); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(sql, values)","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/delete","h":"#executesql-values","p":784},{"i":788,"t":"execute(options: QueryOptions) promise.js callback.js try { const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1'; const values = ['Page']; const [result, fields] = await connection.execute({ sql, values, // ... other options }); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1'; const values = ['Page']; connection.execute( { sql, values, // ... other options }, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options)","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/delete","h":"#executeoptions","p":784},{"i":790,"t":"execute(options: QueryOptions, values: any[]) promise.js callback.js try { const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1'; const values = ['Page']; const [result, fields] = await connection.execute( { sql, // ... other options }, values ); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1'; const values = ['Page']; connection.execute( { sql, // ... other options }, values, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options, values)","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/delete","h":"#executeoptions-values","p":784},{"i":793,"t":"ResultSetHeader Specification","s":"ResultSetHeader","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/delete","h":"#resultsetheader","p":784},{"i":795,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/delete","h":"#queryoptions","p":784},{"i":797,"t":"info For queries please see the Simple Queries and Prepared Statements examples.","s":"createPool","u":"/node-mysql2/pt-BR/docs/examples/connections/create-pool","h":"","p":796},{"i":799,"t":"createPool(connectionUri: string) promise.js callback.js import mysql from 'mysql2/promise'; try { const pool = mysql.createPool('mysql://root:password@localhost:3306/test'); const connection = await pool.getConnection(); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const pool = mysql.createPool('mysql://root:password@localhost:3306/test'); pool.getConnection(function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); atenção Don't forget to release the connection when finished by using: pool.releaseConnection(connection) connection.release()","s":"createPool(connectionUri)","u":"/node-mysql2/pt-BR/docs/examples/connections/create-pool","h":"#createpoolconnectionuri","p":796},{"i":801,"t":"createPool(config: PoolOptions) promise.js callback.js import mysql from 'mysql2/promise'; try { const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', // port: 3306, // password: '', }); const connection = await pool.getConnection(); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', // port: 3306, // password: '', }); pool.getConnection(function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); atenção Don't forget to release the connection when finished by using: pool.releaseConnection(connection) connection.release()","s":"createPool(config)","u":"/node-mysql2/pt-BR/docs/examples/connections/create-pool","h":"#createpoolconfig","p":796},{"i":803,"t":"createPool(config: PoolOptions) promise.js callback.js import mysql from 'mysql2/promise'; try { const pool = mysql.createPool({ // ... passwordSha1: Buffer.from( '8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex' ), }); const connection = await pool.getConnection(); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const pool = mysql.createPool({ // ... passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'), }); pool.getConnection(function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); atenção Don't forget to release the connection when finished by using: pool.releaseConnection(connection) connection.release()","s":"createPool(config) — SHA1","u":"/node-mysql2/pt-BR/docs/examples/connections/create-pool","h":"#createpoolconfig--sha1","p":796},{"i":805,"t":"createPool(config: PoolOptions) promise.js callback.js certs/ca-cert.pem import mysql from 'mysql2/promise'; try { const pool = mysql.createPool({ // ... ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); const connection = await pool.getConnection(); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const pool = mysql.createPool({ // ... ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); pool.getConnection(function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); See ssl/certs. atenção Don't forget to release the connection when finished by using: pool.releaseConnection(connection) connection.release()","s":"createPool(config) — SSL","u":"/node-mysql2/pt-BR/docs/examples/connections/create-pool","h":"#createpoolconfig--ssl","p":796},{"i":807,"t":"createPool(config: PoolOptions) You can use Amazon RDS string as value to ssl property to connect to Amazon RDS MySQL over SSL. In that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used: promise.js callback.js import mysql from 'mysql2/promise'; try { const pool = mysql.createPool({ // ... host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); const connection = await pool.getConnection(); // ... some query connection.release(); } catch (err) { console.log(err); } Testing try { const [res] = await connection.query('SHOW `status` LIKE \"Ssl_cipher\"'); await pool.end(); console.log(res); } catch (err) { console.log(err); } const mysql = require('mysql2'); const pool = mysql.createPool({ // ... host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); pool.getConnection(function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); Testing connectionquery('SHOW `status` LIKE \"Ssl_cipher\"', function (err, res) { pool.end(); if (err instanceof Error) { console.log(err); return; } console.log(res); }); atenção Don't forget to release the connection when finished by using: pool.releaseConnection(connection) connection.release()","s":"createPool(config) — RDS SSL","u":"/node-mysql2/pt-BR/docs/examples/connections/create-pool","h":"#createpoolconfig--rds-ssl","p":796},{"i":809,"t":"Issues #2130 — Update TLS certs for Amazon RDS instances Pull Requests #2119 — fix: make startTls code compatible with Bun #2131 — Update Amazon RDS SSL CA cert","s":"Related Links","u":"/node-mysql2/pt-BR/docs/examples/connections/create-pool","h":"#related-links","p":796},{"i":811,"t":"createPool(config: PoolOptions) A.js B.js const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const socksProxy = new SocksConnection({ port: 3306 }); const pool = mysql.createPool({ stream: socksProxy, }); const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const pool = mysql.createPool({ debug: 1, stream: function () { return new SocksConnection({ port: 3306 }); }, }); Testing pool.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); }); pool.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); }); pool.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); });","s":"createPool(config) — Socks","u":"/node-mysql2/pt-BR/docs/examples/connections/create-pool","h":"#createpoolconfig--socks","p":796},{"i":814,"t":"PoolOptions extends all options from ConnectionOptions: ConnectionOptions Specification PoolOptions Specification","s":"PoolOptions","u":"/node-mysql2/pt-BR/docs/examples/connections/create-pool","h":"#pooloptions","p":796},{"i":817,"t":"execute(sql: string, values: any[]) promise.js callback.js try { const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)'; const values = ['Josh', 19, 'Page', 45]; const [result, fields] = await connection.execute(sql, values); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)'; const values = ['Josh', 19, 'Page', 45]; connection.execute(sql, values, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); }); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(sql, values)","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/insert","h":"#executesql-values","p":815},{"i":819,"t":"execute(options: QueryOptions) promise.js callback.js try { const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)'; const values = ['Josh', 19, 'Page', 45]; const [result, fields] = await connection.execute({ sql, values, // ... other options }); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)'; const values = ['Josh', 19, 'Page', 45]; connection.execute( { sql, values, // ... other options }, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options)","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/insert","h":"#executeoptions","p":815},{"i":821,"t":"execute(options: QueryOptions, values: any[]) promise.js callback.js try { const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)'; const values = ['Josh', 19, 'Page', 45]; const [result, fields] = await connection.execute( { sql, // ... other options }, values ); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)'; const values = ['Josh', 19, 'Page', 45]; connection.execute( { sql, // ... other options }, values, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options, values)","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/insert","h":"#executeoptions-values","p":815},{"i":824,"t":"ResultSetHeader Specification","s":"ResultSetHeader","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/insert","h":"#resultsetheader","p":815},{"i":826,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/insert","h":"#queryoptions","p":815},{"i":828,"t":"await.js co.js .babelrc package.json 'use strict'; const mysql = require('mysql2/promise'); async function test() { const c = await mysql.createConnection({ port: 3306, user: 'testuser', namedPlaceholders: true, password: 'testpassword', }); console.log('connected!'); const [rows, fields] = await c.query('show databases'); console.log(rows); try { const [rows, fields] = await c.query('some invalid sql here'); } catch (e) { console.log('caught exception!', e); } console.log(await c.execute('select sleep(0.5)')); console.log('after first sleep'); console.log(await c.execute('select sleep(0.5)')); console.log('after second sleep'); let start = +new Date(); console.log( await Promise.all([ c.execute('select sleep(2.5)'), c.execute('select sleep(2.5)'), ]) ); console.log( 'after 2+3 parallel sleep which is in fact not parallel because commands are queued per connection' ); let end = +new Date(); console.log(end - start); await c.end(); const p = mysql.createPool({ port: 3306, user: 'testuser', namedPlaceholders: true, password: 'testpassword', }); console.log(await p.execute('select sleep(0.5)')); console.log('after first pool sleep'); start = +new Date(); console.log( await Promise.all([ p.execute('select sleep(2.5)'), p.execute('select sleep(2.5)'), ]) ); console.log('after 2+3 parallel pool sleep'); end = +new Date(); console.log(end - start); await p.end(); } test() .then(() => { console.log('done'); }) .catch((err) => { console.log('error!', err); throw err; }); 'use strict'; const mysql = require('mysql2/promise'); const co = require('co'); co(function* () { const c = yield mysql.createConnection({ port: 3306, user: 'root', namedPlaceholders: true, }); const rows = yield c.query('show databases'); console.log(rows); console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 })); yield c.end(); }) .then(function () { console.log('done'); }) .catch(function (err) { console.log(err); throw err; }); { \"plugins\": [\"transform-async-to-generator\"] } { \"name\": \"promise-co-await\", \"version\": \"1.0.0\", \"description\": \"\", \"main\": \"await.js\", \"scripts\": { \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\" }, \"author\": \"\", \"license\": \"ISC\", \"dependencies\": { \"babel-cli\": \"^6.9.0\" } }","s":"await — co","u":"/node-mysql2/pt-BR/docs/examples/promise-wrapper/co-await","h":"","p":827},{"i":831,"t":"execute(sql: string, values: any[]) promise.js callback.js try { const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1'; const values = [20, 'Josh']; const [result, fields] = await connection.execute(sql, values); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1'; const values = [20, 'Josh']; connection.execute(sql, values, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); }); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(sql, values)","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/update","h":"#executesql-values","p":829},{"i":833,"t":"execute(options: QueryOptions) promise.js callback.js try { const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1'; const values = [20, 'Josh']; const [result, fields] = await connection.execute({ sql, values, // ... other options }); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1'; const values = [20, 'Josh']; connection.execute( { sql, values, // ... other options }, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options)","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/update","h":"#executeoptions","p":829},{"i":835,"t":"execute(options: QueryOptions, values: any[]) promise.js callback.js try { const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1'; const values = [20, 'Josh']; const [result, fields] = await connection.execute( { sql, // ... other options }, values ); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1'; const values = [20, 'Josh']; connection.execute( { sql, // ... other options }, values, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options, values)","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/update","h":"#executeoptions-values","p":829},{"i":838,"t":"ResultSetHeader Specification","s":"ResultSetHeader","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/update","h":"#resultsetheader","p":829},{"i":840,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/update","h":"#queryoptions","p":829},{"i":842,"t":"info For Prepared Statements or Placeholders / Parameters examples, please see here. Usage examples: INSERT SELECT UPDATE DELETE","s":"Simple Queries","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries","h":"","p":841},{"i":844,"t":"The examples below also work for the execute method.","s":"DELETE","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/delete","h":"","p":843},{"i":846,"t":"query(sql: string) promise.js callback.js try { const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1'; const [result, fields] = await connection.query(sql); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1'; connection.query(sql, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); }); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(sql)","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/delete","h":"#querysql","p":843},{"i":848,"t":"query(options: QueryOptions) promise.js callback.js try { const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1'; const [result, fields] = await connection.query({ sql, // ... other options }); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1'; connection.query( { sql, // ... other options }, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(options)","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/delete","h":"#queryoptions","p":843},{"i":851,"t":"ResultSetHeader Specification","s":"ResultSetHeader","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/delete","h":"#resultsetheader","p":843},{"i":853,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/delete","h":"#queryoptions-1","p":843},{"i":855,"t":"The examples below also work for the execute method.","s":"SELECT","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/select","h":"","p":854},{"i":857,"t":"query(sql: string) promise.js callback.js try { const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45'; const [rows, fields] = await connection.query(sql); console.log(rows); console.log(fields); } catch (err) { console.log(err); } const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45'; connection.query(sql, (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows); console.log(fields); }); rows contains rows returned by server fields contains extra meta data about rows, if available info The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(sql)","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/select","h":"#querysql","p":854},{"i":859,"t":"query(options: QueryOptions) promise.js callback.js try { const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45'; const [rows, fields] = await connection.query({ sql, // ... other options }); console.log(rows); console.log(fields); } catch (err) { console.log(err); } const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45'; connection.query( { sql, // ... other options }, (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows); console.log(fields); } ); rows contains rows returned by server fields contains extra meta data about rows, if available info The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(options)","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/select","h":"#queryoptions","p":854},{"i":861,"t":"query(options: QueryOptions) promise.js callback.js try { const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45'; const [rows, fields] = await connection.query({ sql, rowsAsArray: true, // ... other options }); console.log(rows); console.log(fields); } catch (err) { console.log(err); } const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45'; connection.query( { sql, rowsAsArray: true, // ... other options }, (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows); console.log(fields); } ); rows contains rows returned by server as array fields contains extra meta data about rows, if available info The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(options) — Row as Array","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/select","h":"#queryoptions--row-as-array","p":854},{"i":864,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/select","h":"#queryoptions-1","p":854},{"i":866,"t":"The examples below also work for the execute method.","s":"INSERT","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/insert","h":"","p":865},{"i":868,"t":"query(sql: string) promise.js callback.js try { const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (\"Josh\", 19), (\"Page\", 45)'; const [result, fields] = await connection.query(sql); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (\"Josh\", 19), (\"Page\", 45)'; connection.query(sql, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); }); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(sql)","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/insert","h":"#querysql","p":865},{"i":870,"t":"query(options: QueryOptions) promise.js callback.js try { const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (\"Josh\", 19), (\"Page\", 45)'; const [result, fields] = await connection.query({ sql, // ... other options }); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (\"Josh\", 19), (\"Page\", 45)'; connection.query( { sql, // ... other options }, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(options)","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/insert","h":"#queryoptions","p":865},{"i":873,"t":"ResultSetHeader Specification","s":"ResultSetHeader","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/insert","h":"#resultsetheader","p":865},{"i":875,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/insert","h":"#queryoptions-1","p":865},{"i":877,"t":"index.js 'use strict'; const mysql = require('mysql2'); const ClientFlags = require('mysql2/lib/constants/client.js'); const server = mysql.createServer(); server.listen(3307); server.on('connection', (conn) => { console.log('connection'); conn.serverHandshake({ protocolVersion: 10, serverVersion: 'node.js rocks', connectionId: 1234, statusFlags: 2, characterSet: 8, capabilityFlags: 0xffffff ^ ClientFlags.COMPRESS, }); conn.on('field_list', (table, fields) => { console.log('field list:', table, fields); conn.writeEof(); }); const remote = mysql.createConnection({ user: 'root', database: 'dbname', host: 'server.example.com', password: 'secret', }); conn.on('query', (sql) => { console.log(`proxying query: ${sql}`); remote.query(sql, function (err) { // overloaded args, either (err, result :object) // or (err, rows :array, columns :array) if (Array.isArray(arguments[1])) { // response to a 'select', 'show' or similar const rows = arguments[1], columns = arguments[2]; console.log('rows', rows); console.log('columns', columns); conn.writeTextResult(rows, columns); } else { // response to an 'insert', 'update' or 'delete' const result = arguments[1]; console.log('result', result); conn.writeOk(result); } }); }); conn.on('end', remote.end.bind(remote)); });","s":"MySQL Proxy","u":"/node-mysql2/pt-BR/docs/examples/tests/mysql-proxy","h":"","p":876},{"i":879,"t":"index.js 'use strict'; const pool = require('mysql2').createPool({ host: 'localhost', user: 'root', database: 'test', password: 'root', }); setInterval(() => { for (let i = 0; i < 5; ++i) { pool.query((err, rows, fields) => { console.log(rows, fields); // Connection is automatically released once query resolves }); } }, 1000); setInterval(() => { for (let i = 0; i < 5; ++i) { pool.getConnection((err, db) => { db.query('select sleep(0.5) as qqq', (err, rows, fields) => { console.log(rows, fields); db.release(); }); }); } }, 1000);","s":"Pool","u":"/node-mysql2/pt-BR/docs/examples/tests/pool","h":"","p":878},{"i":882,"t":"execute(sql: string, values: any[]) promise.js callback.js try { const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?'; const values = ['Page', 45]; const [rows, fields] = await connection.execute(sql, values); console.log(rows); console.log(fields); } catch (err) { console.log(err); } const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?'; const values = ['Page', 45]; connection.execute(sql, values, (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows); console.log(fields); }); rows contains rows returned by server fields contains extra meta data about rows, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(sql, values)","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/select","h":"#executesql-values","p":880},{"i":884,"t":"execute(options: QueryOptions) promise.js callback.js try { const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?'; const values = ['Page', 45]; const [rows, fields] = await connection.execute({ sql, values, // ... other options }); console.log(rows); console.log(fields); } catch (err) { console.log(err); } const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?'; const values = ['Page', 45]; connection.execute( { sql, values, // ... other options }, (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows); console.log(fields); } ); rows contains rows returned by server fields contains extra meta data about rows, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options)","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/select","h":"#executeoptions","p":880},{"i":886,"t":"execute(options: QueryOptions, values: any[]) promise.js callback.js try { const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?'; const values = ['Page', 45]; const [rows, fields] = await connection.execute( { sql, // ... other options }, values ); console.log(rows); console.log(fields); } catch (err) { console.log(err); } const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?'; const values = ['Page', 45]; connection.execute( { sql, // ... other options }, values, (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows); console.log(fields); } ); rows contains rows returned by server fields contains extra meta data about rows, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options, values)","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/select","h":"#executeoptions-values","p":880},{"i":889,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/select","h":"#queryoptions","p":880},{"i":891,"t":"index.js 'use strict'; const mysql = require('mysql2'); const flags = require('mysql2/lib/constants/client.js'); const auth = require('mysql2/lib/auth_41.js'); function authenticate(params, cb) { console.log(params); const doubleSha = auth.doubleSha1('pass123'); const isValid = auth.verifyToken( params.authPluginData1, params.authPluginData2, params.authToken, doubleSha ); if (isValid) { cb(null); } else { // for list of codes lib/constants/errors.js cb(null, { message: 'wrong password dude', code: 1045 }); } } const server = mysql.createServer(); server.listen(3333); server.on('connection', (conn) => { // we can deny connection here: // conn.writeError({ message: 'secret', code: 123 }); // conn.close(); conn.serverHandshake({ protocolVersion: 10, serverVersion: '5.6.10', // 'node.js rocks', connectionId: 1234, statusFlags: 2, characterSet: 8, // capabilityFlags: 0xffffff, // capabilityFlags: -2113931265, capabilityFlags: 2181036031, authCallback: authenticate, }); conn.on('field_list', (table, fields) => { console.log('FIELD LIST:', table, fields); conn.writeEof(); }); conn.on('query', (query) => { conn.writeColumns([ { catalog: 'def', schema: 'test', table: 'test_table', orgTable: 'test_table', name: 'beta', orgName: 'beta', characterSet: 33, columnLength: 384, columnType: 253, flags: 0, decimals: 0, }, ]); conn.writeTextRow(['test тест テスト փորձարկում পরীক্ষা kiểm tra ']); conn.writeTextRow(['ტესტი પરીક્ષણ מבחן פּרובירן اختبار परीक्षण']); conn.writeEof(); conn.close(); }); });","s":"Server","u":"/node-mysql2/pt-BR/docs/examples/tests/server","h":"","p":890},{"i":893,"t":"The examples below also work for the execute method.","s":"UPDATE","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/update","h":"","p":892},{"i":895,"t":"query(sql: string) promise.js callback.js try { const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1'; const [result, fields] = await connection.query(sql); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1'; connection.query(sql, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); }); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(sql)","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/update","h":"#querysql","p":892},{"i":897,"t":"query(options: QueryOptions) promise.js callback.js try { const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1'; const [result, fields] = await connection.query({ sql, // ... other options }); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1'; connection.query( { sql, // ... other options }, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(options)","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/update","h":"#queryoptions","p":892},{"i":900,"t":"ResultSetHeader Specification","s":"ResultSetHeader","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/update","h":"#resultsetheader","p":892},{"i":902,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/pt-BR/docs/examples/queries/simple-queries/update","h":"#queryoptions-1","p":892},{"i":904,"t":"index.ts db.ts /** * The types are explicity for learning purpose */ import { PoolOptions } from 'mysql2/promise'; import { MySQL } from './db.js'; interface User extends RowDataPacket { id: number; name: string; } const access: PoolOptions = { host: '', user: '', password: '', database: '', }; (async () => { const mysql = new MySQL(access); /** Deleting the `users` table, if it exists */ await mysql.queryResult('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await mysql.queryResult( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await mysql.executeResult( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [users] = await mysql.queryRows( 'SELECT * FROM `users` ORDER BY `name` ASC;' ); users.forEach((user: User) => { console.log('-----------'); console.log('id: ', user.id); console.log('name:', user.name); }); await mysql.connection.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */ /** * The types are explicity for learning purpose */ import { createPool, PoolOptions, Pool, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; export class MySQL { private conn: Pool; private credentials: PoolOptions; constructor(credentials: PoolOptions) { this.credentials = credentials; this.conn = createPool(this.credentials); } /** A random method to simulate a step before to get the class methods */ private ensureConnection() { if (!this?.conn) this.conn = createPool(this.credentials); } /** For `SELECT` and `SHOW` */ get queryRows() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */ get queryRowsAsArray() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For `INSERT`, `UPDATE`, etc. */ get queryResult() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */ get queryResults() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For `SELECT` and `SHOW` */ get executeRows() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */ get executeRowsAsArray() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** For `INSERT`, `UPDATE`, etc. */ get executeResult() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */ get executeResults() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** Expose the Pool Connection */ get connection() { return this.conn; } }","s":"Basic Custom Class","u":"/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-class","h":"","p":903},{"i":906,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { id: number; name: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [users] = await conn.query( 'SELECT * FROM `users` ORDER BY `name` ASC;' ); users.forEach((user) => { console.log('-----------'); console.log('id: ', user.id); console.log('name:', user.name); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet","u":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/index","h":"","p":905},{"i":908,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { /** id */ 0: number; /** name */ 1: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', rowsAsArray: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [users] = await conn.query( 'SELECT * FROM `users` ORDER BY `name` ASC;' ); users.forEach((user) => { console.log('-----------'); console.log('id: ', user[0]); console.log('name:', user[1]); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet (Row as Array)","u":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array","h":"","p":907},{"i":910,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { id: number; name: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', multipleStatements: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [rows] = await conn.query( [ 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2;', 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2 OFFSET 2;', ].join(' ') ); rows.forEach((users) => { users.forEach((user) => { console.log('-----------'); console.log('id: ', user.id); console.log('name:', user.name); }); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet (Multi Statements)","u":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/multi-statements","h":"","p":909},{"i":912,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ProcedureCallPacket, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { id: number; name: string; } const isResultSetHeader = (data: unknown): data is ResultSetHeader => { if (!data || typeof data !== 'object') return false; const keys = [ 'fieldCount', 'affectedRows', 'insertId', 'info', 'serverStatus', 'warningStatus', 'changedRows', ]; return keys.every((key) => key in data); }; (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Deleting the `getUsers` procedure, if it exists */ await conn.query('DROP PROCEDURE IF EXISTS getUsers'); /** Creating a procedure to get the users */ await conn.query(` CREATE PROCEDURE getUsers() BEGIN SELECT * FROM users ORDER BY name ASC; END `); /** Getting users */ const [procedureResult] = await conn.query>('CALL getUsers()'); procedureResult.forEach((users) => { /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */ if (isResultSetHeader(users)) { console.log('----------------'); console.log('Affected Rows:', users.affectedRows); } else { users.forEach((user) => { console.log('----------------'); console.log('id: ', user.id); console.log('name:', user.name); }); } }); await conn.end(); })(); /** Output * * Inserted: 4 * ---------------- * id: 4 * name: Gween * ---------------- * id: 2 * name: John * ---------------- * id: 1 * name: Josh * ---------------- * id: 3 * name: Marie * ---------------- * Affected Rows: 0 */","s":"Procedure Call Packet","u":"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/index","h":"","p":911},{"i":914,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ProcedureCallPacket, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { /** id */ 0: number; /** name */ 1: string; } const isResultSetHeader = (data: unknown): data is ResultSetHeader => { if (!data || typeof data !== 'object') return false; const keys = [ 'fieldCount', 'affectedRows', 'insertId', 'info', 'serverStatus', 'warningStatus', 'changedRows', ]; return keys.every((key) => key in data); }; (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', rowsAsArray: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Deleting the `getUsers` procedure, if it exists */ await conn.query('DROP PROCEDURE IF EXISTS getUsers'); /** Creating a procedure to get the users */ await conn.query(` CREATE PROCEDURE getUsers() BEGIN SELECT * FROM users ORDER BY name ASC; END `); /** Getting users */ const [procedureResult] = await conn.query>('CALL getUsers()'); procedureResult.forEach((users) => { /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */ if (isResultSetHeader(users)) { console.log('----------------'); console.log('Affected Rows:', users.affectedRows); } else { users.forEach((user) => { console.log('----------------'); console.log('id: ', user[0]); console.log('name:', user[1]); }); } }); await conn.end(); })(); /** Output * * Inserted: 4 * ---------------- * id: 4 * name: Gween * ---------------- * id: 2 * name: John * ---------------- * id: 1 * name: Josh * ---------------- * id: 3 * name: Marie * ---------------- * Affected Rows: 0 */","s":"Procedure Call Packet (Row as Array)","u":"/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-array","h":"","p":913},{"i":916,"t":"This section provides answers to commonly asked questions about MySQL2. dica To explore the FAQs, please use the sidebar navigation on desktop or access the menu on mobile devices.","s":"Frequently Asked Questions","u":"/node-mysql2/pt-BR/docs/faq","h":"","p":915},{"i":918,"t":"O projeto MySQL2 é uma continuação do MySQL-Native. O código do analisador de protocolo (protocol parser) foi reescrito do zero e a API foi alterada para corresponder ao popular mysqljs/mysql. A equipe do MySQL2 está trabalhando em conjunto com a equipe do mysqljs/mysql para fatorar o código compartilhado e movê-lo para a organização mysqljs. O MySQL2 é maioritariamente compatível com a API do mysqljs e suporta a maioria de suas funcionalidades. O MySQL2 também oferece essas funcionalidades adicionais: Desempenho mais rápido / melhor Instruções Preparadas (Prepared Statements) Protocolo de log binário MySQL (MySQL Binary Log Protocol) Servidor MySQL Estende o suporte para Encoding and Collation Promise Wrapper Compressão SSL e Authentication Switch Streams Personalizados Conjunto de Conexões (Pooling)","s":"História e Porque o MySQL2","u":"/node-mysql2/pt-BR/docs/history-and-why-mysq2","h":"","p":917},{"i":920,"t":"The Stability Badges are indications of a section's stability. The stability indices are as follows: 0Deprecated The feature might generate warnings and does not assure backward compatibility. Experimental: These features are not bound by semantic versioning. They may undergo non-backward compatible changes or be removed in future releases. Their use in production is discouraged. Use caution with Experimental features, especially in libraries. Users might not expect changes from these unstable features. To reduce surprises, consider using a command-line flag for Experimental features. Experimental features are classified into stages: 1Experimental Experimental features at this stage are currently in development and prone to considerable changes. 1.1Early Development Experimental features at this stage are approaching minimum viability. 1.2Release Candidate Experimental features are close to reaching stability. Major changes are not expected, but they could still occur based on user feedback. Testing and feedback are important to ascertain the readiness of these features for stable classification. 2Stable Compatibility with the MySQL ecosystem is a high priority. 3Legacy This feature, while not likely to be removed and still subject to semantic versioning, is not under active maintenance and other options are available. Features are classified as legacy instead of deprecated when they cause no harm and have widespread use in the MySQL ecosystem. It's unlikely that bugs in legacy features will be addressed.","s":"Stability Badges","u":"/node-mysql2/pt-BR/docs/stability-badges","h":"","p":919},{"i":922,"t":"This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as createConnection, createPool, createPoolCluster, execute and query.","s":"How to handle errors?","u":"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors","h":"","p":921},{"i":924,"t":"createConnection 2Stable This solution has been tested and confirmed as the correct answer. Handling connection errors by adding an error event listener: const mysql = require('mysql2'); connection = mysql.createConnection({ host: '', user: '', database: '', }); connection.addListener('error', (err) => { if (err instanceof Error) { console.log(`createConnection error:`, err); } }); createPool 2Stable This solution has been tested. Handling connection errors through callback's err parameter: const mysql = require('mysql2'); const pool = mysql.createPool({ host: '', user: '', database: '', }); pool.getConnection((err, connection) => { if (err instanceof Error) { console.log('pool.getConnection error:', err); return; } }); createPoolCluster 2Stable This solution has been tested. Handling connection errors through callback's err parameter: const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('NodeI', { host: '', user: '', database: '', }); poolCluster.getConnection('NodeI', (err, connection) => { if (err instanceof Error) { console.log('poolCluster.getConnection error:', err); return; } }); execute 2Stable This solution has been tested. Handling execute errors through callback's err parameter: connection.execute('SELEC 1 + 1', (err, rows) => { if (err instanceof Error) { console.log('execute error:', err); return; } console.log(rows); }); It will work for both createConnection, createPool and createPoolCluster connections. query 2Stable This solution has been tested. Handling query errors through callback's err parameter: connection.query('SELEC 1 + 1', (err, rows) => { if (err instanceof Error) { console.log('query error:', err); return; } console.log(rows); }); It will work for both createConnection, createPool and createPoolCluster connections.","s":"Using callbacks","u":"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors","h":"#using-callbacks","p":921},{"i":926,"t":"createConnection 2Stable This solution has been tested and confirmed as the correct answer. Handling connection errors through try-catch block: import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ host: '', user: '', database: '', }); } catch (err) { if (err instanceof Error) { console.log(err); } } createPool 2Stable This solution has been tested. Handling connection errors through try-catch block: import mysql from 'mysql2/promise'; const pool = mysql.createPool({ host: '', user: '', database: '', }); try { const connection = await pool.getConnection(); } catch (err) { if (err instanceof Error) { console.log(err); } } createPoolCluster 2Stable This solution has been tested. Handling connection errors through try-catch block: import mysql from 'mysql2/promise'; const poolCluster = mysql.createPoolCluster(); poolCluster.add('NodeI', { host: '', user: '', database: '', }); try { await poolCluster.getConnection('NodeI'); } catch (err) { if (err instanceof Error) { console.log('createConnection error:', err); } } execute 2Stable This solution has been tested. Handling execute errors through try-catch block: try { const [rows] = await connection.execute('SELEC 1 + 1'); console.log(rows); } catch (err) { if (err instanceof Error) { console.log('execute error:', err); } } It will work for both createConnection, createPool and createPoolCluster connections. query 2Stable This solution has been tested. Handling query errors through try-catch block: try { const [rows] = await connection.query('SELEC 1 + 1'); console.log(rows); } catch (err) { if (err instanceof Error) { console.log('query error:', err); } } It will work for both createConnection, createPool and createPoolCluster connections.","s":"Using promises","u":"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors","h":"#using-promises","p":921},{"i":928,"t":"Discussions #1998 #2282","s":"Related Links","u":"/node-mysql2/pt-BR/docs/faq/how-to-handle-errors","h":"#related-links","p":921},{"i":930,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { /** id */ 0: number; /** name */ 1: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', multipleStatements: true, rowsAsArray: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [rows] = await conn.query( [ 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2;', 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2 OFFSET 2;', ].join(' ') ); rows.forEach((users) => { users.forEach((user) => { console.log('-----------'); console.log('id: ', user[0]); console.log('name:', user[1]); }); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet (Multi Statements and Row as Array)","u":"/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array-multi-statements","h":"","p":929}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/622",[0,4.519,1,4.45,2,5.461,3,0.693,4,5.461,5,5.382,6,5.461,7,1.363,8,4.851,9,5.461,10,5.461,11,4.963,12,5.461,13,1.721,14,2.401,15,3.259,16,4.45,17,5.461,18,5.461,19,5.461,20,3.541,21,6.292,22,5.461,23,2.84,24,5.461,25,4.851,26,5.461,27,3.911,28,3.541,29,3.712,30,5.461,31,5.461,32,5.461,33,3.259,34,2.932,35,4.851,36,5.461]],["t/624",[1,5.053,7,1.193,11,3.701,15,3.701,23,3.225,33,3.701,34,3.329,37,3.565,38,4.215,39,6.201,40,4.021,41,3.851,42,5.053,43,4.441,44,4.713,45,2.953,46,2.873,47,6.201,48,4.713,49,6.201,50,6.255,51,5.509,52,4.713,53,4.021,54,5.509,55,5.509,56,4.441]],["t/626",[0,3.263,15,4.332,37,3.263,57,3.194,58,4.624,59,5.675,60,5.675,61,5.675,62,4.064,63,5.041,64,5.675,65,5.675,66,5.675,67,4.064,68,4.624,69,5.041,70,5.675,71,5.041,72,5.675,73,5.041,74,5.916,75,5.733,76,6.084,77,6.523,78,5.041,79,5.041,80,5.675,81,4.064,82,5.041,83,4.313,84,5.675]],["t/628",[0,3.417,3,0.842,7,0.811,11,3.547,15,1.591,29,2.865,33,2.516,34,2.263,37,1.532,43,1.909,44,2.026,45,1.269,46,1.235,56,1.909,67,3.019,81,3.019,85,2.172,86,4.256,87,0.513,88,2.172,89,2.172,90,3.745,91,1.479,92,1.728,93,3.745,94,0.732,95,0.951,96,3.204,97,3.435,98,3.435,99,0.971,100,0.858,101,1.168,102,1.643,103,1.643,104,2.424,105,0.996,106,2.192,107,1.355,108,1.328,109,1.115,110,2.456,111,1.633,112,3.547,113,2.167,114,2.83,115,1.991,116,2.682,117,2.613,118,3.191,119,2.487,120,4.843,121,3.745,122,3.745,123,3.745,124,3.204,125,1.643,126,3.745,127,3.435,128,3.435,129,3.204,130,3.204,131,3.745,132,1.136,133,1.279,134,1.034,135,4.215,136,4.215,137,4.215,138,3.435,139,0.931,140,1.643]],["t/630",[0,3.82,3,0.801,5,1.659,7,0.879,11,3.965,13,1.131,15,3.49,29,2.439,33,2.727,37,2.627,40,1.416,43,3.79,44,4.022,45,2.785,46,2.913,56,1.564,57,1.432,58,2.925,62,2.57,63,1.94,67,3.272,68,1.779,81,2.57,83,1.659,85,1.779,86,3.79,87,0.691,88,1.779,89,1.779,91,1.212,92,1.416,94,0.6,95,0.779,96,2.728,97,2.925,98,2.925,99,0.793,100,0.73,101,0.802,102,1.399,103,1.399,104,2.063,105,0.848,106,1.866,107,1.154,108,1.131,109,0.577,110,1.888,111,1.454,113,1.309,114,1.709,115,1.202,117,1.578,119,1.502,120,4.313,121,3.188,122,3.188,123,3.188,124,2.728,125,1.399,126,3.188,127,2.925,128,2.925,129,2.728,130,2.728,131,3.188,132,0.589,133,0.772,134,0.536,139,0.763,140,0.851,141,3.79,142,2.728,143,2.183,144,2.183,145,2.183,146,1.94,147,4.569,148,3.188,149,2.183,150,3.188,151,1.779,152,2.183,153,2.183,154,3.188,155,3.188,156,3.473,157,2.183,158,3.473,159,1.779,160,2.183,161,1.779,162,2.183,163,1.484,164,2.183,165,2.183,166,2.183,167,2.183,168,2.183,169,2.183,170,3.188,171,2.183,172,1.33,173,4.569,174,2.183,175,3.589,176,2.183,177,2.183,178,1.779,179,1.779,180,2.183,181,5.292,182,1.94,183,2.183,184,3.589,185,3.589,186,1.927,187,3.589,188,2.728,189,3.589,190,3.589,191,1.356,192,2.183,193,2.183,194,2.183,195,2.183,196,2.183,197,2.183,198,1.659,199,1.564,200,2.183,201,1.94,202,1.659,203,2.183]],["t/632",[0,4.27,3,0.804,7,0.762,11,4.432,14,3.265,15,2.363,29,5.144,33,2.363,37,3.006,40,2.567,56,1.281,58,3.226,62,2.175,81,2.175,82,2.698,83,3.547,85,1.457,86,2.835,87,0.762,88,1.457,89,1.457,91,2.198,92,2.567,94,0.491,95,0.638,96,3.009,99,0.784,100,0.364,101,0.884,103,1.184,104,1.746,105,0.718,106,1.58,107,0.977,108,0.957,109,0.473,111,1.282,114,1.446,124,1.359,130,3.974,132,0.482,133,0.852,134,0.439,139,0.625,140,0.697,141,2.835,142,1.359,150,1.589,151,2.475,156,2.308,158,3.009,163,1.215,178,1.457,182,1.589,201,3.517,202,3.547,204,2.698,205,5.198,206,1.589,207,1.788,208,1.788,209,1.788,210,1.788,211,3.547,212,1.788,213,1.788,214,1.788,215,1.457,216,1.589,217,1.788,218,3.959,219,1.788,220,1.788,221,1.788,222,1.788,223,1.788,224,1.788,225,1.788,226,1.788,227,1.788,228,1.788,229,1.444,230,3.037,231,3.037,232,2.698,233,3.037,234,3.037,235,1.631,236,3.037,237,2.001,238,4.667,239,3.026,240,3.037,241,3.037,242,4.667,243,4.146,244,4.146,245,2.475,246,3.037,247,4.667,248,2.059,249,3.037,250,3.037,251,2.427,252,3.037,253,3.037,254,1.457,255,1.788,256,1.788,257,1.589,258,1.788,259,1.788,260,1.788,261,1.788,262,1.788,263,1.788,264,1.788,265,4.667,266,4.667,267,1.039,268,2.698,269,3.037,270,3.037,271,3.037,272,1.788,273,1.067,274,1.788,275,1.788,276,1.788,277,1.788,278,1.241,279,1.16,280,3.037,281,2.698,282,2.475,283,3.037,284,3.959,285,3.037,286,3.037,287,1.215,288,1.788,289,1.457,290,1.589]],["t/634",[0,4.552,3,0.826,7,1.067,11,3.636,14,3.02,28,1.531,29,3.278,33,2.283,34,1.268,37,1.358,40,1.531,42,1.924,55,2.098,57,2.431,62,2.74,86,2.74,87,0.454,91,4.468,93,3.399,94,1.524,95,1.365,96,3.665,97,3.93,98,3.93,99,1.108,100,0.982,101,1.457,102,1.88,103,2.162,104,3.188,105,1.31,106,2.884,107,1.959,108,1.747,111,1.524,113,1.395,114,1.822,115,1.282,117,1.682,139,0.825,140,1.88,141,2.74,142,2.908,158,1.795,163,1.605,170,2.098,178,1.924,186,2.054,205,1.924,235,1.268,244,2.098,245,1.924,257,2.098,267,1.65,278,1.563,289,1.924,291,2.361,292,2.361,293,2.361,294,2.773,295,3.399,296,3.826,297,3.826,298,2.361,299,2.361,300,2.361,301,2.361,302,2.361,303,3.826,304,2.361,305,2.098,306,2.361,307,6.093,308,2.361,309,1.924,310,1.93,311,3.826,312,1.605,313,2.098,314,2.361,315,1.691,316,2.361,317,2.361,318,0.398,319,2.361,320,1.136,321,2.361,322,2.361,323,2.361,324,2.361,325,2.098,326,1.094,327,2.361,328,1.467]],["t/636",[0,2.478,3,0.783,5,2.083,7,0.527,11,4.743,13,1.358,20,1.777,29,1.863,33,1.636,37,1.576,40,1.777,62,3.086,67,1.963,68,2.234,81,1.963,86,4.7,87,0.527,91,2.392,92,2.794,99,0.798,100,0.558,101,0.963,102,1.68,103,1.68,104,2.478,105,1.018,106,2.241,107,1.386,108,1.358,109,0.725,110,2.154,111,1.658,113,1.942,119,1.803,120,3.512,125,1.68,129,2.083,132,0.739,133,0.928,134,0.672,140,1.069,141,3.814,146,2.435,148,6.474,151,2.234,156,5.295,159,2.234,161,3.512,163,1.863,202,2.083,206,3.828,211,2.083,215,3.512,216,3.828,237,2.588,245,2.234,278,1.76,282,3.512,289,4.339,320,1.581,329,2.741,330,2.741,331,2.741,332,2.741,333,2.741,334,2.741,335,4.526,336,2.741,337,2.435,338,2.741,339,2.741,340,2.741,341,5.295,342,2.283,343,2.741,344,2.741,345,2.741,346,4.309,347,4.309,348,2.741,349,2.741,350,2.741,351,3.275,352,3.914,353,4.309,354,4.309,355,4.309,356,2.741,357,2.741,358,2.435,359,2.741,360,2.741,361,2.741,362,3.512,363,2.741,364,2.741,365,2.741]],["t/638",[0,4.11,3,0.63,5,3.438,7,1.376,11,3.726,15,2.7,20,4.636,25,4.019,28,2.933,33,3.726,37,2.601,40,2.933,57,1.805,67,3.24,71,4.019,83,3.438,129,3.438,130,3.438,141,3.24,156,3.438,158,3.438,159,5.087,163,4.859,202,3.438,211,4.745,232,5.546,243,4.019,305,4.019,337,4.019,366,4.019,367,4.019,368,7.149,369,4.523,370,3.686,371,6.243,372,1.614,373,4.523,374,4.523,375,4.523,376,4.523,377,4.523,378,4.019,379,4.523,380,4.523,381,4.523,382,4.523,383,4.523,384,4.523,385,4.523,386,4.019,387,4.523,388,1.484,389,4.523,390,4.523,391,4.523,392,4.019,393,4.523,394,4.523,395,3.075,396,4.523,397,4.523,398,4.523]],["t/640",[0,3.96,37,3.96,43,4.933,57,2.748,128,5.613,163,4.682,281,6.12,399,6.888,400,6.888,401,6.888,402,6.888,403,6.888,404,6.888,405,6.888]],["t/642",[318,1.209,406,6.828,407,7.172,408,5.845,409,3.618,410,7.172,411,7.172,412,5.451]],["t/644",[38,4.957,76,5.543,413,5.223,414,7.293,415,6.479,416,7.293,417,7.293]],["t/646",[3,0.361,20,3.777,57,2.704,69,3.64,75,5.286,76,4.427,106,3.029,310,2.067,386,3.64,406,6.603,408,3.339,412,3.114,418,5.825,419,5.825,420,4.097,421,6.021,422,4.097,423,5.825,424,5.825,425,2.274,426,4.097,427,4.097,428,1.951,429,5.523,430,5.825,431,4.097,432,5.825,433,4.097,434,4.097,435,4.097,436,5.61,437,5.175,438,1.835,439,4.097,440,3.64,441,4.097,442,2.785,443,4.097,444,4.097,445,4.097,446,4.097,447,4.097,448,3.64,449,4.747,450,2.938,451,2.131,452,2.785,453,3.64,454,1.562,455,5.825,456,4.097,457,4.097,458,4.097,459,3.64,460,3.64,461,4.097,462,4.097,463,4.097,464,3.114,465,3.339,466,4.097,467,4.097,468,4.097,469,4.097,470,3.64,471,2.934,472,3.64,473,3.339]],["t/648",[310,3.02,318,1.009,408,4.879,448,5.319,449,4.879,464,4.55,465,4.879,474,2.446,475,5.877,476,5.987,477,3.323,478,5.319,479,7.29,480,4.879,481,5.319,482,5.319,483,6.12,484,5.987,485,5.987,486,6.672,487,5.987,488,5.987,489,5.987,490,5.319,491,5.987,492,3.719,493,5.987]],["t/650",[3,0.787,94,1.559,114,2.702,191,3.525,428,1.901,442,6.164,454,2.163,475,5.199,483,4.624,494,6.413,495,5.675,496,5.241,497,5.041,498,4.624,499,3.047,500,5.675,501,5.675,502,5.675,503,5.041,504,5.916,505,4.624,506,5.675]],["t/652",[3,0.753,94,1.612,191,3.643,251,3.051,320,1.742,342,2.515,351,4.458,409,2.959,428,1.965,451,3.051,454,2.236,475,4.201,483,4.78,504,6.625,505,4.78,507,7.588,508,5.211,509,5.211,510,5.866,511,5.866,512,7.414,513,5.866,514,2.287,515,5.866,516,5.866,517,4.425]],["t/654",[3,0.731,94,1.68,116,2.759,191,3.797,318,1.03,454,2.33,464,5.783,475,5.449,479,6.76,486,6.76,490,5.431,505,4.982,518,7.922,519,6.113,520,6.113,521,4.982,522,3.797,523,4.982,524,4.378,525,5.431]],["t/656",[3,0.786,94,1.821,454,2.525,526,8.584,527,6.626,528,6.626,529,6.626,530,6.626,531,6.626,532,6.626,533,6.626,534,6.626,535,6.626,536,6.626]],["t/658",[75,6.147,108,1.555,172,1.437,310,2.489,362,6.512,395,4.502,406,4.021,429,6.994,464,3.75,475,3.534,477,2.739,537,5.355,538,6.623,539,5.884,540,6.623,541,4.934,542,4.934,543,7.991,544,7.991,545,7.991,546,1.28,547,4.383,548,4.934,549,4.934,550,6.623,551,6.623,552,3.75,553,6.623,554,4.934,555,4.934,556,3.534,557,4.383,558,4.934]],["t/660",[7,1.665,14,2.432,20,5.127,23,2.876,28,3.586,34,2.969,41,3.435,45,2.634,46,2.563,50,4.507,52,4.203,53,3.586,57,2.849,91,3.07,254,4.507,362,4.507,392,4.913,395,3.759,438,1.743,450,2.79,451,2.876,480,5.819,509,4.913,559,5.53,560,4.507,561,5.53,562,5.53,563,4.913,564,5.53,565,4.507,566,3.961,567,4.913,568,3.586,569,4.507,570,3.961,571,4.203,572,5.53]],["t/662",[57,2.985,450,3.774,454,2.851,537,5.358]],["t/664",[3,0.651,27,5.287,73,5.177,94,1.601,237,2.499,254,4.748,370,4.748,372,2.634,413,4.173,428,2.473,477,4.098,499,3.963,537,4.173,573,7.383,574,5.827,575,5.827,576,4.748,577,5.827,578,5.177,579,4.173,580,5.827,581,4.428,582,1.403,583,5.827,584,5.177,585,3.477,586,5.827,587,5.827,588,5.827,589,5.827]],["t/666",[7,1.664,20,5.355,34,4.433,35,5.393,38,4.126,45,2.891,46,2.813,53,4.912,438,1.913,449,4.947,590,6.071,591,5.393,592,5.393,593,6.73,594,6.071,595,5.393,596,6.071,597,7.575,598,7.575,599,6.071]],["t/668",[7,1.347,20,4.539,75,5.013,109,1.851,415,6.218,429,6.731,454,2.668,600,6.999,601,8.786]],["t/670",[3,0.815,28,1.456,34,2.501,41,1.395,91,1.246,92,1.456,99,0.89,100,1.095,102,1.432,105,0.868,107,1.181,108,1.157,115,1.23,133,0.483,140,2.622,237,0.963,278,1.5,318,0.619,425,1.246,428,1.988,438,1.696,454,0.856,471,1.608,496,1.395,522,1.395,546,1.653,563,3.262,568,1.456,570,2.63,571,3.541,576,1.83,581,2.791,582,1.429,585,2.781,602,2.245,603,2.245,604,1.995,605,2.245,606,4.386,607,1.256,608,4.139,609,1.972,610,0.94,611,3.797,612,2.988,613,2.245,614,5.717,615,4.25,616,0.784,617,3.797,618,2.245,619,2.245,620,2.506,621,1.995,622,2.245,623,4.659,624,4.386,625,6.724,626,1.707,627,3.262,628,1.995,629,2.245,630,2.245,631,2.245,632,1.83,633,2.245,634,2.245,635,4.659,636,2.245,637,3.262,638,2.429,639,3.262,640,2.245,641,2.245,642,4.563,643,3.672,644,3.672,645,4.139,646,2.993,647,1.83,648,1.83,649,3.672,650,3.672,651,3.672,652,1.707,653,4.659,654,3.672,655,1.608,656,1.608,657,2.245,658,5.382,659,1.83,660,2.245,661,2.245,662,2.245,663,2.245,664,2.245,665,1.83,666,2.245,667,1.83,668,1.83,669,2.245,670,2.245,671,2.245,672,1.995,673,3.672,674,1.83,675,1.995,676,1.707,677,1.707,678,1.995,679,2.245,680,2.245,681,1.995,682,2.381,683,1.707,684,2.245,685,1.608,686,1.995,687,1.995,688,1.995]],["t/672",[3,0.831,34,2.036,99,0.569,100,0.772,102,1.479,105,1.302,107,1.22,115,1.271,140,3.078,278,1.549,318,0.639,409,1.913,428,1.271,438,1.195,440,3.37,568,3.574,570,5.102,571,2.883,582,1.9,585,2.264,606,5.289,608,3.37,611,3.091,614,4.491,615,3.947,617,3.091,620,2.054,637,3.37,638,2.929,639,3.37,672,3.37,674,3.091,682,2.46,685,3.947,686,3.37,687,3.37,689,3.793,690,6.491,691,3.793,692,3.091,693,3.793,694,3.793,695,1.549,696,1.587,697,6.491,698,6.491,699,3.37,700,3.793,701,3.793,702,3.793,703,3.793,704,5.511,705,3.793,706,7.894,707,3.793,708,3.793,709,3.793,710,3.793,711,3.793]],["t/675",[3,0.851,41,2.916,45,3.05,46,3.377,110,2.924,112,2.802,113,2.335,133,1.01,186,2.52,199,5.869,267,2.19,318,0.791,320,2.325,471,3.362,565,3.825,624,3.825,656,3.362,678,4.17,692,3.825,712,3.825,713,4.17,714,4.694,715,4.694,716,4.694,717,3.362,718,3.362,719,4.694,720,4.17,721,3.568,722,4.17,723,4.694,724,4.694]],["t/677",[3,0.836,45,2.783,46,3.76,53,2.669,92,2.669,100,1.383,108,1.842,110,2.086,133,1.258,198,3.129,199,2.948,267,1.408,318,1.246,335,3.63,342,2.506,351,3.129,409,2.077,413,2.948,425,2.285,452,3.972,471,4.186,499,2.21,579,2.948,611,3.355,718,4.186,722,5.192,725,4.116,726,4.116,727,5.844,728,2.948,729,4.116,730,4.116,731,6.037,732,5.844,733,4.116,734,4.116,735,4.116,736,4.116,737,3.657,738,4.116,739,3.657,740,4.116,741,4.116,742,4.116,743,2.285,744,4.116,745,2.669,746,4.116,747,4.116,748,3.657,749,4.116,750,4.116,751,2.557]],["t/679",[3,0.593,46,3.738,198,5.114,199,6.188,318,1.134,428,2.254,560,5.483,675,5.978,718,4.819,752,6.728,753,6.728,754,5.483,755,6.728,756,6.728]],["t/681",[3,0.809,7,1.085,110,2.012,140,2.198,172,1.641,237,2.418,251,2.932,320,1.674,473,4.594,499,3.027,546,1.463,584,6.422,593,5.009,610,3.025,616,1.969,627,5.009,757,3.656,758,5.638,759,5.009,760,6.422,761,5.638,762,5.009,763,5.638,764,4.285,765,5.638,766,5.009,767,5.638,768,7.229,769,7.229,770,5.638]],["t/683",[3,0.839,45,3.349,46,2.832,57,1.75,87,0.844,111,2.276,113,2.565,133,1.514,134,1.725,172,1.277,179,4.98,186,3.776,267,2.833,320,2.375,409,4.035,579,3.142,607,1.5,696,1.835,720,3.897,760,6.248,771,3.897,772,4.933,773,7.607,774,7.607]],["t/685",[45,3.502,46,3.408,450,3.71,451,3.825,452,4.999,454,2.803]],["t/688",[3,0.612,310,3.503,312,4.719,315,4.973,438,2.188,775,6.943,776,6.943,777,5.277,778,3.992,779,6.943,780,6.943,781,6.943,782,6.943]],["t/690",[100,1.747,425,4.153,783,7.481]],["t/692",[3,0.663,34,3.583,52,3.793,53,3.236,87,0.96,92,3.236,110,2.382,111,2.066,112,2.978,267,2.283,312,3.392,335,3.1,436,3.793,438,1.573,497,4.434,556,3.574,616,1.743,642,3.574,645,5.929,646,6.128,777,3.793,784,4.991,785,4.067,786,4.067,787,4.067,788,5.439,789,4.067,790,4.067,791,4.991,792,7.133,793,4.991,794,4.991,795,3.392,796,6.674,797,3.392,798,4.434,799,4.991,800,6.674,801,4.991,802,7.52,803,4.991,804,4.991,805,4.991,806,4.991]],["t/694",[34,2.649,100,1.004,111,1.356,372,2.852,438,2.087,450,2.489,499,2.649,522,3.065,556,5.723,568,3.199,582,1.924,617,5.398,656,3.534,681,4.383,718,3.534,739,4.383,754,6.793,757,3.199,762,4.383,777,5.034,792,7.406,798,5.884,807,6.623,808,5.398,809,4.934,810,4.934,811,4.934,812,4.934,813,4.934,814,4.934,815,4.934,816,4.934,817,4.934,818,4.934,819,4.934,820,3.534,821,4.934,822,4.934,823,4.934,824,4.934,825,4.934]],["t/697",[3,0.849,7,0.633,34,1.767,45,1.567,46,1.525,53,2.134,87,0.955,113,2.424,115,2.227,133,1.431,138,5.417,172,1.444,237,1.411,267,2.44,312,2.237,318,0.836,320,2.519,335,3.081,342,1.411,409,1.66,428,1.102,438,1.037,567,2.924,578,2.924,582,0.792,585,1.964,609,1.767,610,1.377,616,2.322,628,2.924,682,3.217,683,4.538,696,2.076,712,4.043,728,2.357,757,3.872,826,2.682,827,3.291,828,5.971,829,3.291,830,2.924,831,4.407,832,3.291,833,8.009,834,4.961,835,8.195,836,3.291,837,4.407,838,2.924]],["t/699",[3,0.833,13,1.836,99,0.873,110,2.634,111,2.341,113,2.125,133,1.254,188,4.428,237,2.499,313,5.177,335,4.585,341,4.428,352,3.778,428,1.952,459,5.177,616,2.976,839,5.827,840,5.827,841,5.827]],["t/701",[3,0.821,7,0.621,13,1.86,87,1.136,99,1.061,100,0.995,102,1.259,105,0.763,107,1.038,108,2.229,111,1.344,112,3.523,114,2.811,139,1.128,140,1.907,318,0.544,351,2.455,421,7.075,425,1.793,428,1.977,436,2.455,438,1.018,460,6.613,465,6.066,471,2.313,496,2.006,525,4.345,546,1.269,568,2.094,582,1.421,595,2.869,609,2.626,620,2.454,621,5.85,642,2.313,646,3.986,648,2.632,685,2.313,696,1.351,757,3.172,838,2.869,842,4.891,843,3.828,844,7.444,845,3.23,846,2.006,847,3.23,848,6.584,849,2.869,850,1.734,851,2.313,852,5.903,853,4.891,854,2.919,855,3.23,856,3.23,857,3.23,858,3.23,859,3.23,860,3.23,861,3.23,862,2.869,863,2.869,864,3.23,865,3.23,866,3.23]],["t/703",[3,0.813,7,1.06,14,2.854,99,1.251,100,1.54,102,1.479,103,2.149,104,2.181,105,1.302,107,1.772,108,2.045,110,1.354,139,1.925,140,2.531,229,1.383,235,2.036,239,2.46,318,1.094,341,2.883,413,2.717,425,3.603,428,1.271,454,1.446,514,1.479,566,2.717,568,2.46,638,2.929,655,2.717,665,3.091,667,3.091,685,2.717,748,3.37,778,3.169,837,3.37,843,4.907,867,3.37,868,3.793,869,3.793,870,3.793,871,3.793,872,3.793,873,3.793,874,3.793,875,3.793,876,3.793,877,2.181,878,3.793,879,5.511,880,3.37,881,3.793,882,4.896,883,4.188,884,2.883,885,3.37,886,5.511,887,3.793,888,2.356,889,3.793,890,1.414,891,3.793,892,2.883,893,3.793,894,3.793]],["t/706",[38,4.215,57,3.063,74,6.255,75,5.497,76,5.834,77,6.255,78,5.509,79,6.819,318,1.045,388,2.035,685,4.441,688,5.509,808,5.053,843,4.021,867,5.509,895,6.201,896,6.201,897,6.201,898,6.201,899,4.713,900,4.441,901,6.201]],["t/708",[3,0.677,7,1.676,57,3.326,94,2.46,95,2.739,237,2.659,428,2.571,609,4.121,764,4.713,902,6.201,903,6.201,904,7.676,905,7.676]],["t/710",[3,0.816,7,1.265,57,2.624,94,1.807,99,1.193,105,1.554,107,2.114,108,2.507,278,2.686,850,3.53,906,3.898,907,4.264]],["t/712",[3,0.816,7,1.265,57,2.624,94,1.807,99,1.193,105,1.554,107,2.114,108,2.507,278,2.686,850,3.53,908,4.014,909,6.576]],["t/714",[3,0.851,87,0.989,90,3.68,108,2.559,267,2.89,320,2.411,342,2.918,413,3.68,454,1.958,477,3.777,537,3.68,579,3.68,674,4.187,910,4.565,911,4.625,912,4.565,913,4.227,914,3.653,915,2.144,916,3.68]],["t/717",[3,0.86,7,1.006,57,2.086,94,1.437,99,0.784,102,2.039,105,1.235,107,1.681,108,2.749,113,2.271,114,2.49,237,2.242,267,2.857,278,2.136,318,0.595,320,2.044,326,3.19,335,2.193,342,2.952,352,3.391,428,1.183,454,1.346,517,2.108,582,0.85,911,4.679,914,2.807,917,3.531,918,3.391,919,5.229,920,3.531,921,3.531,922,2.108]],["t/719",[3,0.853,7,0.949,13,1.555,57,1.969,87,0.949,94,1.356,99,0.993,102,1.924,105,1.166,107,1.586,108,2.704,113,2.415,237,2.84,267,2.265,278,2.015,318,0.831,320,1.966,326,2.286,342,3.206,428,1.653,517,2.945,682,3.199,911,3.354,914,2.649,922,2.945,923,4.295,924,4.934]],["t/721",[3,0.827,7,0.857,13,1.403,57,1.777,94,1.224,99,0.926,102,1.736,105,1.052,107,1.432,108,1.946,110,2.204,119,1.864,251,4.183,278,1.819,318,1.041,320,1.834,342,1.91,388,1.462,428,1.492,442,3.027,450,3.116,494,3.385,496,2.766,517,2.658,609,2.391,652,4.694,676,4.694,721,4.694,728,4.424,795,4.198,797,3.027,900,3.19,911,3.027,915,2.234,925,3.629,926,3.957,927,5.033,928,3.116,929,4.424,930,2.01,931,2.182,932,2.064,933,3.957,934,4.454,935,3.19,936,3.19,937,3.19]],["t/723",[3,0.838,7,0.815,13,1.335,57,1.69,94,1.164,99,0.894,102,1.652,105,1.001,107,1.362,108,1.88,110,2.128,119,1.773,237,2.558,239,2.747,251,4.604,278,1.731,318,0.714,320,1.771,342,2.96,388,1.957,442,2.88,494,3.22,496,2.632,517,2.529,609,3.202,682,2.747,795,4.054,797,4.054,900,3.034,911,2.88,915,2.361,923,3.868,925,3.453,929,4.272,930,1.912,931,2.076,932,1.963,933,3.764,935,4.272,936,4.272,937,4.272,938,3.764,939,4.237]],["t/725",[3,0.83,7,0.702,13,1.15,41,3.328,57,1.456,87,1.031,94,1.003,99,0.803,102,1.423,105,0.862,107,1.174,108,1.688,110,2.265,113,1.331,119,1.527,191,2.267,237,1.565,251,3.875,273,2.178,278,1.491,282,2.974,310,2.703,318,0.903,320,1.591,342,2.722,388,1.198,442,2.481,450,1.841,451,1.898,454,1.391,494,2.774,496,2.267,517,2.178,560,2.974,582,1.29,609,3.408,624,5.174,659,2.974,682,2.367,754,2.974,795,2.481,797,2.481,851,2.614,900,2.614,911,2.481,914,1.96,915,2.454,916,4.547,918,2.367,923,2.367,925,2.974,929,2.614,930,1.647,931,1.788,935,2.614,936,2.614,937,2.614,938,3.243,940,6.347,941,3.65,942,3.65,943,3.65,944,6.348,945,2.974,946,3.65,947,3.65,948,5.358]],["t/727",[318,1.189,450,3.559,652,5.363,676,5.363,721,5.363,728,5.054,915,2.223,926,6.269,927,5.75,928,3.559,949,6.269]],["t/729",[16,4.395,57,2.803,74,4.395,310,2.721,318,1.51,454,2.056,522,3.35,537,5.595,880,4.791,914,4.724,915,2.214,916,5.031,923,4.555,950,5.393,951,5.393,952,5.393,953,5.059,954,5.252,955,6.941,956,5.393]],["t/731",[28,4.651,91,3.981,309,5.845,568,4.651,569,5.845,954,4.281,957,7.172,958,7.172,959,6.372]],["t/733",[3,0.846,7,1.251,14,2.858,48,3.647,87,0.923,91,2.663,99,1.105,100,0.977,111,1.318,134,1.177,290,4.262,312,3.261,325,4.262,341,4.94,539,4.262,546,1.245,582,1.155,647,3.91,683,4.94,717,4.655,757,3.111,885,5.774,890,2.423,910,5.774,960,4.798,961,4.798,962,3.91,963,4.798,964,6.5,965,4.798,966,4.798,967,4.798,968,4.798,969,4.798,970,4.798,971,4.798,972,4.798]],["t/735",[3,0.827,7,1.279,14,2.182,99,1.252,101,1.866,102,1.935,107,2.138,108,2.095,111,1.363,140,2.592,172,1.445,235,2.664,267,1.697,268,5.907,278,2.027,294,3.823,328,3.082,342,2.851,378,4.408,409,2.503,877,2.853,912,4.408,962,5.418,973,4.962,974,4.962,975,4.408,976,4.408,977,5.907,978,4.408,979,4.962,980,4.962,981,4.962,982,4.408]],["t/737",[3,0.823,7,1.078,99,1.259,101,1.251,105,1.323,106,2.913,107,1.801,139,1.957,188,4.257,237,2.402,239,3.632,267,1.916,326,2.596,454,2.135,632,6.483,772,3.632,826,4.565,983,6.396,984,4.976,985,4.976,986,5.601,987,4.976,988,4.976,989,4.976,990,4.976,991,4.976,992,4.976,993,5.601]],["t/739",[191,4.347,318,1.179,450,3.531,454,2.668,850,3.758,994,6.218,995,6.218,996,6.218,997,6.218,998,6.218,999,6.218,1000,6.218]],["t/741",[7,1.758,13,1.848,34,3.98,100,1.509,318,1.249,438,2.562,481,5.211,759,5.211,882,7.222,1001,5.866,1002,5.866,1003,5.866,1004,5.866,1005,5.866,1006,7.414,1007,5.866,1008,5.866,1009,7.414,1010,5.866,1011,5.866,1012,5.866]],["t/743",[3,0.82,7,1.294,13,1.591,27,3.616,48,3.837,99,1.134,103,2.622,111,1.387,139,1.764,251,2.626,318,0.851,320,1.997,523,4.114,638,2.278,642,3.616,656,3.616,778,2.903,854,3.013,918,3.274,976,5.975,1013,3.837,1014,3.616,1015,5.049,1016,5.049,1017,5.049,1018,5.049,1019,5.049,1020,4.485,1021,7.563,1022,4.485,1023,5.049,1024,5.049,1025,5.049,1026,5.049,1027,5.049,1028,5.049,1029,5.049,1030,5.049,1031,5.049,1032,5.049,1033,5.049]],["t/745",[45,3.416,46,3.324,87,1.612,90,5.137,388,2.354,450,3.618,451,3.73,454,2.734]],["t/747",[3,0.837,7,1.415,94,1.59,95,2.065,99,1.211,100,1.496,101,1.293,102,2.866,109,1.531,132,1.56,133,1.582,134,1.803,139,2.022,372,2.065,1034,5.788,1035,1.753,1036,1.753,1037,6.531,1038,3.753]],["t/749",[3,0.842,7,1.294,94,1.387,95,1.802,99,1.134,100,1.369,101,1.128,102,2.622,103,2.622,104,3.867,105,1.589,106,3.498,107,2.163,108,2.119,109,1.335,132,1.361,133,1.448,134,1.65,139,1.764,638,3.035,778,3.867,888,4.177,906,2.473,1035,1.529,1036,1.529,1038,3.274,1039,3.616]],["t/751",[3,0.846,7,1.357,94,1.491,95,1.936,99,1.175,100,1.436,101,1.212,102,2.75,109,1.435,132,1.463,133,1.518,134,1.73,139,1.896,892,5.361,906,2.658,1035,1.643,1036,1.643,1038,3.519,1039,3.887,1040,4.422,1041,4.422,1042,5.748,1043,4.422]],["t/753",[3,0.848,7,1.237,23,3.343,94,1.297,95,1.684,99,1.096,100,1.308,101,1.054,102,2.506,109,1.248,132,1.272,133,1.383,134,1.576,139,1.649,451,2.455,612,3.568,906,2.312,1035,1.429,1036,1.429,1038,3.06,1039,3.38,1044,3.846,1045,5.58,1046,6.395,1047,5.238,1048,3.836,1049,3.836,1050,5.238,1051,3.846]],["t/755",[3,0.835,7,1.262,23,3.963,94,1.061,95,1.378,99,1.077,100,1.334,101,1.465,102,2.176,103,2.176,108,1.759,109,1.476,132,1.505,133,1.64,134,1.762,139,1.349,140,1.505,318,0.941,372,1.378,546,1.002,566,2.765,582,0.929,616,1.349,655,2.765,717,3.998,906,1.891,1035,1.169,1036,1.169,1038,2.503,1039,2.765,1045,2.624,1048,2.304,1049,3.331,1052,4.882,1053,4.882,1054,3.146,1055,3.146,1056,3.146,1057,4.549,1058,4.549,1059,4.549,1060,3.146,1061,4.549,1062,4.549,1063,5.582,1064,4.549,1065,3.146,1066,1.146]],["t/757",[3,0.738,23,3.248,315,4.473,395,4.245,522,3.879,524,4.473,552,4.747,615,4.473,626,4.747,899,4.747,931,3.777,1048,4.601,1049,3.727,1052,5.24,1053,5.24,1067,5.089,1068,5.089,1069,5.089,1070,5.089,1071,5.089,1072,5.089]],["t/759",[3,0.847,7,1.05,99,1.216,100,1.111,102,2.128,108,1.18,111,2.159,133,1.79,134,1.846,139,1.907,140,1.46,267,2.204,320,1.112,326,2.985,425,3.03,546,1.672,582,1.704,712,5.25,772,3.54,778,3.139,843,3.54,883,5.381,884,4.149,888,3.391,906,1.834,1038,3.54,1039,2.682,1066,1.913,1073,3.051,1074,3.051,1075,4.449,1076,3.051,1077,3.051,1078,3.051,1079,4.449]],["t/762",[906,3.729,1080,3.527]],["t/764",[45,3.416,46,3.324,87,1.612,90,5.137,388,2.354,450,3.618,451,3.73,454,2.734]],["t/766",[3,0.84,7,1.232,87,1.232,94,1.29,95,1.675,99,1.174,100,1.484,101,1.049,109,1.242,132,1.265,133,1.569,134,1.571,139,1.64,140,1.83,318,0.791,372,2.285,546,1.218,582,1.13,743,2.606,928,2.368,1035,1.421,1036,1.421,1037,5.689,1066,1.394,1081,3.191,1082,4.694,1083,3.977,1084,3.977,1085,4.353,1086,4.353,1087,4.586,1088,4.191,1089,2.699,1090,2.699,1091,2.699]],["t/768",[3,0.847,7,1.125,87,1.125,94,1.131,95,1.469,99,1.109,100,1.383,101,0.92,103,2.279,104,3.36,105,1.381,106,3.039,107,1.879,108,1.842,109,1.089,132,1.11,133,1.463,134,1.433,139,1.438,140,1.605,318,0.694,372,1.469,546,1.068,582,0.991,585,2.457,638,2.637,743,2.285,778,3.36,888,3.63,908,2.077,928,2.077,1035,1.246,1036,1.246,1066,1.222,1081,2.798,1083,3.63,1084,3.63,1085,3.972,1086,3.972,1087,4.186,1088,3.907,1089,2.367,1090,2.367,1091,2.367]],["t/770",[3,0.85,7,1.172,87,1.172,94,1.199,95,1.557,99,1.138,100,1.428,101,0.975,109,1.154,132,1.176,133,1.51,134,1.494,139,1.525,140,1.702,318,0.735,372,1.557,546,1.133,582,1.051,585,2.605,743,2.423,892,4.628,908,2.202,928,2.202,1035,1.322,1036,1.322,1040,3.557,1041,3.557,1042,4.963,1043,3.557,1066,1.296,1081,2.966,1083,3.782,1084,3.782,1085,4.139,1086,4.139,1087,4.362,1088,4.033,1089,2.509,1090,2.509,1091,2.509]],["t/772",[3,0.851,7,1.081,23,2.922,87,1.081,94,1.07,95,1.39,99,1.081,100,1.341,101,0.87,109,1.03,132,1.05,133,1.418,134,1.378,139,1.361,140,1.519,318,0.656,372,1.39,451,2.026,546,1.011,582,0.938,585,2.325,612,3.118,743,2.162,908,1.965,928,1.965,1035,1.179,1036,1.179,1044,3.174,1045,5.198,1046,5.878,1047,4.578,1048,3.353,1049,3.353,1050,4.578,1051,3.174,1066,1.156,1081,2.648,1083,3.489,1084,3.489,1085,3.818,1086,3.818,1087,4.023,1088,3.788,1089,2.24,1090,2.24,1091,2.24]],["t/774",[3,0.841,7,1.149,23,3.709,87,0.955,94,0.904,95,1.174,99,1.069,100,1.353,101,1.334,103,1.934,108,1.563,109,1.312,132,1.337,133,1.614,134,1.63,139,1.15,140,1.934,318,1.006,372,1.77,546,1.287,566,2.357,582,1.194,585,1.964,616,1.15,655,2.357,717,3.553,743,1.827,908,1.66,928,1.66,1035,0.996,1036,0.996,1045,2.237,1048,1.964,1049,2.961,1052,4.518,1053,4.518,1054,2.682,1055,2.682,1056,2.682,1057,4.043,1058,4.043,1059,4.043,1060,2.682,1061,4.043,1062,4.043,1064,4.043,1065,2.682,1066,1.473,1081,2.237,1083,3.081,1084,3.081,1085,3.372,1086,3.372,1087,3.553,1088,3.433,1089,1.892,1090,1.892,1091,1.892,1092,4.961]],["t/776",[3,0.738,23,3.248,315,4.473,395,4.245,522,3.879,524,4.473,552,4.747,615,4.473,626,4.747,899,4.747,931,3.777,1048,4.601,1049,3.727,1052,5.24,1053,5.24,1067,5.089,1068,5.089,1069,5.089,1070,5.089,1071,5.089,1072,5.089]],["t/778",[3,0.847,7,1.025,99,1.26,108,1.141,111,2.134,133,1.671,134,1.55,139,1.86,140,1.411,267,2.161,320,1.075,326,2.927,372,1.292,425,2.956,546,1.64,582,1.677,585,2.16,772,3.453,778,3.062,843,3.453,883,5.295,884,4.047,888,3.308,908,1.826,1066,1.876,1073,2.95,1074,2.95,1075,4.34,1076,2.95,1077,2.95,1078,2.95,1079,4.34,1081,2.46,1083,3.308,1084,3.308,1085,3.62,1086,3.62,1093,5.325,1094,5.325,1095,6.318]],["t/781",[428,2.423,906,4.124,908,4.247,953,4.158,1080,3.901]],["t/783",[3,0.635,41,3.479,45,4.136,46,3.891,57,2.235,77,4.565,87,1.385,113,2.043,172,2.096,179,5.867,191,3.479,198,4.257,199,4.012,312,3.807,451,2.913,454,2.135,565,4.565,579,4.012,607,1.916,683,4.257,696,2.344,699,4.976,771,4.976,930,2.528,931,2.744,932,2.596,1096,2.596,1097,5.601,1098,5.601,1099,5.601,1100,5.601,1101,4.976]],["t/786",[3,0.825,13,1.873,87,0.811,99,1.182,100,0.858,101,0.942,105,1.404,109,1.115,110,2.457,111,1.892,115,1.991,116,2.682,119,2.487,125,2.318,132,1.137,133,1.482,134,1.458,172,1.731,229,1.537,248,3.091,318,0.71,320,1.765,372,1.505,388,1.384,438,1.329,474,1.722,514,1.644,546,1.094,582,1.015,607,1.442,610,1.764,616,2.753,620,1.572,695,2.428,696,1.764,890,1.572,915,1.329,932,2.754,1035,1.277,1036,1.277,1066,1.252,1096,1.954,1102,3.204,1103,4.518,1104,2.912,1105,1.764,1106,1.764,1107,1.682,1108,1.644]],["t/788",[3,0.839,13,2.301,87,0.77,99,1.159,100,0.815,101,0.894,105,1.353,109,1.059,110,2.387,111,1.838,115,1.919,116,2.585,119,2.397,125,2.234,132,1.079,133,1.44,134,1.405,172,1.668,186,3.076,229,1.46,248,2.979,318,0.675,320,1.701,388,1.314,428,1.919,438,1.261,474,1.635,514,1.561,546,1.039,582,0.964,607,1.369,610,1.675,616,2.551,620,1.492,695,2.34,696,1.675,890,1.492,915,1.261,932,2.655,1035,1.212,1036,1.212,1066,1.188,1096,1.855,1104,2.806,1105,1.675,1106,1.675,1107,1.597,1108,1.561,1109,2.486,1110,1.675]],["t/790",[3,0.842,13,2.287,87,0.76,99,1.152,100,0.804,101,0.882,105,1.34,109,1.044,110,2.369,111,1.824,115,1.9,116,2.56,119,2.374,125,2.212,132,1.064,133,1.429,134,1.391,172,1.652,186,3.046,229,1.44,248,2.95,318,0.665,320,1.684,388,1.296,428,1.9,438,1.244,474,1.613,514,1.539,546,1.025,582,0.95,607,1.35,610,1.652,616,2.685,620,1.472,695,2.317,696,1.652,890,1.472,915,1.244,932,2.629,1035,1.196,1036,1.196,1066,1.172,1096,1.83,1104,2.779,1105,1.652,1106,1.652,1107,1.575,1108,1.539,1109,2.452,1110,1.652]],["t/793",[915,2.399,1080,3.527]],["t/795",[1080,3.527,1110,3.185]],["t/797",[45,3.416,46,3.324,87,1.612,90,5.137,388,2.354,450,3.618,451,3.73,454,2.734]],["t/799",[3,0.836,7,1.289,14,2.946,87,1.289,94,1.379,95,1.791,99,1.206,100,1.535,101,1.121,109,1.328,132,1.353,133,1.623,134,1.643,139,1.753,279,3.255,287,3.412,318,0.846,372,1.791,546,1.303,582,1.208,743,2.786,928,2.532,1035,1.52,1036,1.52,1066,1.49,1088,4.336,1089,2.886,1090,2.886,1091,2.886,1111,5.019,1112,6.7,1113,3.595]],["t/801",[3,0.842,7,1.172,14,2.678,87,1.172,94,1.199,95,1.557,99,1.138,100,1.428,101,0.975,103,2.374,104,3.501,105,1.439,106,3.167,107,1.958,108,1.919,109,1.154,132,1.176,133,1.51,134,1.494,139,1.525,235,3.269,279,2.83,287,2.966,318,0.735,546,1.133,582,1.051,638,2.748,743,2.423,778,3.501,888,3.782,908,2.202,928,2.202,1035,1.322,1036,1.322,1066,1.296,1088,4.033,1089,2.509,1090,2.509,1091,2.509,1113,3.126,1114,3.126]],["t/803",[3,0.845,7,1.223,14,2.795,87,1.223,94,1.276,95,1.657,99,1.168,100,1.475,101,1.038,109,1.228,132,1.252,133,1.56,134,1.559,139,1.622,235,3.413,279,3.011,287,3.157,318,0.783,546,1.205,582,1.118,743,2.578,892,4.832,908,2.343,928,2.343,1035,1.406,1036,1.406,1040,3.785,1041,3.785,1042,5.18,1043,3.785,1066,1.379,1088,4.167,1089,2.67,1090,2.67,1091,2.67,1113,3.326,1114,3.326]],["t/805",[3,0.847,7,1.125,14,2.57,23,3.039,87,1.125,94,1.131,95,1.469,99,1.109,100,1.383,101,0.92,109,1.089,132,1.11,133,1.463,134,1.433,139,1.438,235,3.138,279,2.669,287,2.798,318,0.694,451,2.141,546,1.068,582,0.991,612,3.244,743,2.285,908,2.077,928,2.077,1035,1.246,1036,1.246,1044,3.355,1045,5.31,1046,6.028,1047,4.763,1048,3.488,1049,3.488,1050,4.763,1051,3.355,1066,1.222,1088,3.907,1089,2.367,1090,2.367,1091,2.367,1113,2.948,1114,2.948]],["t/807",[3,0.836,7,1.181,14,2.259,23,3.784,87,0.988,94,0.947,95,1.23,99,1.091,100,1.385,101,1.372,103,2.003,108,1.619,109,1.359,132,1.385,133,1.642,134,1.669,139,1.204,140,1.344,235,2.758,279,2.235,287,2.343,318,1.035,372,1.23,546,1.333,566,2.469,582,1.236,616,1.204,655,2.469,717,3.679,743,1.914,908,1.739,928,1.739,982,4.563,1035,1.044,1036,1.044,1045,2.343,1048,2.057,1049,3.066,1052,4.624,1053,4.624,1054,2.809,1055,2.809,1056,2.809,1057,4.186,1058,4.186,1059,4.186,1060,2.809,1061,4.186,1062,4.186,1064,4.186,1065,2.809,1066,1.525,1088,3.53,1089,1.982,1090,1.982,1091,1.982,1113,2.469,1114,2.469]],["t/809",[3,0.738,23,3.248,315,4.473,395,4.245,522,3.879,524,4.473,552,4.747,615,4.473,626,4.747,899,4.747,931,3.777,1048,4.601,1049,3.727,1052,5.24,1053,5.24,1067,5.089,1068,5.089,1069,5.089,1070,5.089,1071,5.089,1072,5.089]],["t/811",[3,0.843,7,1.092,14,2.495,99,1.236,108,1.244,111,2.199,133,1.723,134,1.628,139,1.982,140,1.539,235,3.046,267,2.271,320,1.172,326,3.077,425,3.149,546,1.723,582,1.747,772,3.678,778,3.262,843,3.678,883,5.516,884,4.311,888,3.523,908,1.992,1066,1.971,1073,3.217,1074,3.217,1075,4.623,1076,3.217,1077,3.217,1078,3.217,1079,4.623,1114,2.828,1115,6.639]],["t/814",[428,2.423,906,4.124,908,4.247,953,4.158,1080,3.901]],["t/817",[3,0.828,13,1.835,87,0.788,99,1.169,100,0.834,101,0.915,109,1.084,110,2.418,111,1.862,116,2.628,117,2.561,118,3.127,119,2.437,125,2.271,132,1.104,133,1.459,134,1.429,172,1.696,229,1.494,318,0.69,372,1.462,388,1.344,438,1.291,474,1.674,514,1.597,546,1.063,582,0.986,607,1.401,610,1.714,616,2.912,620,1.527,695,2.379,696,1.714,890,1.527,915,1.291,930,2.628,1035,1.241,1036,1.241,1066,1.216,1096,1.898,1102,3.114,1103,4.427,1104,2.853,1105,1.714,1106,1.714,1107,1.635,1108,1.597,1116,3.127,1117,2.699,1118,4.172]],["t/819",[3,0.841,13,2.273,87,0.75,99,1.146,100,0.793,101,0.87,109,1.03,110,2.351,111,1.81,116,2.535,117,2.47,118,3.016,119,2.351,125,2.19,132,1.05,133,1.418,134,1.378,172,1.636,186,3.016,229,1.42,318,0.656,388,1.278,428,1.882,438,1.227,474,1.591,514,1.519,546,1.011,582,0.938,607,1.332,610,1.63,616,2.783,620,1.452,695,2.295,696,1.63,890,1.452,915,1.227,930,2.535,1035,1.179,1036,1.179,1066,1.156,1096,1.805,1104,2.752,1105,1.63,1106,1.63,1107,1.554,1108,1.519,1109,2.419,1110,1.63,1116,3.016,1117,2.603,1118,4.023]],["t/821",[3,0.843,13,2.259,87,0.74,99,1.14,100,0.782,101,0.859,109,1.017,110,2.334,111,1.797,116,2.511,117,2.447,118,2.987,119,2.328,125,2.169,132,1.036,133,1.408,134,1.365,172,1.62,186,2.987,229,1.402,318,0.648,388,1.261,428,1.864,438,1.211,474,1.57,514,1.499,546,0.997,582,0.925,607,1.315,610,1.608,616,2.857,620,1.433,695,2.273,696,1.608,890,1.433,915,1.211,930,2.511,1035,1.164,1036,1.164,1066,1.141,1096,1.781,1104,2.726,1105,1.608,1106,1.608,1107,1.533,1108,1.499,1109,2.387,1110,1.608,1116,2.987,1117,2.578,1118,3.985]],["t/824",[915,2.399,1080,3.527]],["t/826",[1080,3.527,1110,3.185]],["t/828",[3,0.838,7,0.739,13,0.748,14,1.69,15,2.293,91,1.318,99,1.11,100,0.483,101,1.601,102,1.498,105,1.144,106,1.235,107,1.236,108,1.753,109,0.628,111,1.056,115,0.795,132,0.64,133,1.197,134,0.582,140,0.926,188,2.921,235,1.275,237,2.076,239,1.54,267,1.656,294,2.209,295,2.109,318,0.648,320,0.705,326,1.781,412,1.804,425,3.088,436,4.228,452,1.614,453,2.109,472,2.109,473,1.935,478,2.109,482,2.109,496,1.475,503,2.109,546,0.616,556,1.7,614,1.935,632,3.945,638,1.734,647,1.935,648,3.131,656,2.752,766,4.942,772,1.54,778,2.783,826,3.945,851,2.752,862,2.109,877,2.783,888,3.007,962,3.131,975,4.3,977,2.109,978,3.414,983,3.414,984,2.109,985,2.109,987,3.414,988,2.109,989,5.428,990,2.109,991,2.109,992,3.414,1014,2.752,1022,2.109,1119,3.843,1120,2.374,1121,2.374,1122,3.843,1123,3.843,1124,2.109,1125,2.374,1126,2.374,1127,2.374,1128,4.841,1129,4.3,1130,5.563,1131,6.11,1132,5.563,1133,3.843,1134,2.374,1135,2.374,1136,2.374,1137,3.843,1138,2.374,1139,4.841,1140,2.374,1141,3.843,1142,2.374,1143,2.374,1144,2.374,1145,2.374,1146,2.374,1147,2.374,1148,2.374,1149,2.374,1150,2.374,1151,2.374,1152,2.374]],["t/831",[3,0.831,13,1.811,87,0.774,99,1.161,100,0.818,101,0.898,105,1.358,109,1.064,110,2.394,111,1.843,115,1.925,117,2.527,119,2.405,125,2.241,132,1.084,133,1.444,134,1.41,172,1.673,229,1.466,248,2.989,318,0.678,320,1.707,372,1.435,388,1.32,438,1.267,474,1.643,514,1.568,546,1.044,582,0.968,607,1.375,609,3.086,610,1.683,616,2.704,620,1.499,695,2.348,696,1.683,890,1.499,915,1.267,931,2.816,1035,1.218,1036,1.218,1066,1.194,1096,1.863,1102,3.056,1103,4.368,1104,2.816,1105,1.683,1106,1.683,1107,1.604,1108,1.568,1117,2.663,1153,4.116]],["t/833",[3,0.842,13,2.254,87,0.736,99,1.138,100,0.779,101,0.855,105,1.31,109,1.012,110,2.328,111,1.792,115,1.858,117,2.439,119,2.321,125,2.162,132,1.032,133,1.404,134,1.36,172,1.615,186,2.978,229,1.395,248,2.884,318,0.645,320,1.647,388,1.256,428,1.858,438,1.206,474,1.563,514,1.492,546,0.993,582,0.921,607,1.309,609,2.978,610,1.601,616,2.499,620,1.426,695,2.265,696,1.601,890,1.426,915,1.206,931,2.717,1035,1.159,1036,1.159,1066,1.136,1096,1.773,1104,2.717,1105,1.601,1106,1.601,1107,1.527,1108,1.492,1109,2.377,1110,1.601,1117,2.57,1153,3.972]],["t/835",[3,0.844,13,2.24,87,0.727,99,1.132,100,0.769,101,0.844,105,1.298,109,0.999,110,2.31,111,1.779,115,1.84,117,2.416,119,2.299,125,2.142,132,1.018,133,1.394,134,1.347,172,1.599,186,2.949,229,1.377,248,2.857,318,0.636,320,1.631,388,1.239,428,1.84,438,1.19,474,1.543,514,1.472,546,0.98,582,0.909,607,1.292,609,2.949,610,1.58,616,2.639,620,1.408,695,2.244,696,1.58,890,1.408,915,1.19,931,2.691,1035,1.144,1036,1.144,1066,1.121,1096,1.75,1104,2.691,1105,1.58,1106,1.58,1107,1.507,1108,1.472,1109,2.346,1110,1.58,1117,2.546,1153,3.934]],["t/838",[915,2.399,1080,3.527]],["t/840",[1080,3.527,1110,3.185]],["t/842",[3,0.598,45,3.229,46,3.142,113,2.473,138,5.526,388,2.225,450,3.421,451,3.526,452,4.609,454,3.089,757,4.397,930,3.06,931,3.322,932,3.142,1101,6.024]],["t/844",[172,2.16,454,2.827,607,2.537,745,4.81,1154,5.637]],["t/846",[3,0.815,13,1.946,87,1.189,99,1.063,100,0.907,101,0.995,105,1.459,109,1.178,110,2.53,111,1.948,115,2.069,116,2.787,119,2.584,125,2.408,132,1.201,133,1.526,134,1.515,172,1.297,229,1.624,248,3.212,318,0.751,320,1.834,372,1.589,388,1.462,438,1.403,474,1.819,514,1.736,546,1.156,582,1.072,607,1.523,610,1.864,620,1.66,695,2.523,696,1.864,820,3.19,890,1.66,915,1.403,932,2.862,1035,1.349,1036,1.349,1066,1.322,1096,2.064,1104,3.026,1105,1.864,1106,1.864,1107,1.777,1108,1.736,1155,4.694]],["t/848",[3,0.835,13,2.351,87,1.14,99,1.029,100,0.854,101,0.937,105,1.4,109,1.11,110,2.45,111,1.887,112,3.535,115,1.984,116,2.673,119,2.479,125,2.31,132,1.131,133,1.478,134,1.453,172,1.222,229,1.53,248,3.081,318,0.707,320,1.759,388,1.377,428,1.984,438,1.322,474,1.714,514,1.636,546,1.089,582,1.01,607,1.435,610,1.756,620,1.564,695,2.42,696,1.756,890,1.564,915,1.322,932,2.745,1035,1.271,1036,1.271,1066,1.246,1096,1.944,1104,2.902,1105,1.756,1106,1.756,1107,1.674,1108,1.636,1110,1.756,1156,3.005]],["t/851",[915,2.399,1080,3.527]],["t/853",[1080,3.527,1110,3.185]],["t/855",[172,2.16,454,2.827,607,2.537,745,4.81,1154,5.637]],["t/857",[3,0.83,13,1.946,87,1.189,99,1.063,100,0.907,101,0.995,105,1.459,109,1.178,111,1.948,113,2.252,115,2.069,116,2.787,117,2.716,118,3.316,125,2.408,132,1.201,133,1.526,134,1.515,229,1.624,267,2.751,318,0.751,326,2.862,372,1.589,388,1.462,438,1.403,474,1.819,514,1.736,546,1.156,582,1.487,607,1.523,620,1.66,695,2.523,820,3.19,890,1.66,1035,1.349,1036,1.349,1066,1.322,1105,1.864,1106,1.864,1107,1.777,1108,1.736,1155,4.694]],["t/859",[3,0.843,13,2.351,87,1.14,99,1.029,100,0.854,101,0.937,105,1.4,109,1.11,111,1.887,112,3.535,113,2.16,115,1.984,116,2.673,117,2.605,118,3.18,125,2.31,132,1.131,133,1.478,134,1.453,229,1.53,267,2.691,318,0.707,326,2.745,388,1.377,428,1.984,438,1.322,474,1.714,514,1.636,546,1.089,582,1.426,607,1.435,620,1.564,695,2.42,890,1.564,1035,1.271,1036,1.271,1066,1.246,1105,1.756,1106,1.756,1107,1.674,1108,1.636,1110,1.756,1156,3.005]],["t/861",[3,0.841,13,2.326,87,1.121,99,1.016,100,0.834,101,0.915,105,1.376,109,1.084,111,1.862,112,3.476,113,2.124,115,1.951,116,2.628,117,2.561,118,3.127,125,2.271,132,1.104,133,1.459,134,1.429,229,1.494,237,2.498,267,2.667,318,0.69,326,2.699,335,2.545,352,3.777,388,1.344,428,1.951,438,1.291,474,1.674,514,1.597,546,1.063,582,1.402,607,1.401,620,1.527,695,2.379,890,1.527,1035,1.241,1036,1.241,1066,1.216,1105,1.714,1106,1.714,1107,1.635,1108,1.597,1110,1.714,1156,2.934]],["t/864",[1080,3.527,1110,3.185]],["t/866",[172,2.16,454,2.827,607,2.537,745,4.81,1154,5.637]],["t/868",[3,0.802,13,1.933,87,1.18,99,1.057,100,0.897,101,0.985,109,1.166,110,2.517,111,1.938,116,2.767,117,2.697,118,3.293,119,2.566,125,2.391,132,1.188,133,1.518,134,1.504,172,1.284,229,1.608,318,0.743,372,1.573,388,1.447,438,1.389,474,1.801,514,1.719,546,1.144,582,1.061,607,1.508,610,1.845,616,2.142,620,1.643,695,2.505,696,1.845,820,3.157,890,1.643,915,1.389,930,2.767,1035,1.335,1036,1.335,1066,1.309,1096,2.043,1104,3.004,1105,1.845,1106,1.845,1107,1.759,1108,1.719,1116,3.293,1117,2.842,1118,4.392,1155,4.661]],["t/870",[3,0.829,13,2.341,87,1.132,99,1.024,100,0.846,101,0.928,109,1.099,110,2.437,111,1.877,112,3.512,116,2.655,117,2.587,118,3.159,119,2.462,125,2.294,132,1.12,133,1.47,134,1.443,172,1.21,229,1.515,318,0.7,388,1.364,428,1.971,438,1.31,474,1.698,514,1.62,546,1.079,582,1,607,1.421,610,1.739,616,2.055,620,1.549,695,2.403,696,1.739,890,1.549,915,1.31,930,2.655,1035,1.258,1036,1.258,1066,1.234,1096,1.926,1104,2.882,1105,1.739,1106,1.739,1107,1.658,1108,1.62,1110,1.739,1116,3.159,1117,2.726,1118,4.214,1156,2.976]],["t/873",[915,2.399,1080,3.527]],["t/875",[1080,3.527,1110,3.185]],["t/877",[3,0.838,7,0.705,13,1.694,38,2.491,87,0.705,99,1.169,102,1.429,103,1.429,105,0.866,106,1.906,107,1.179,110,2.271,111,1.477,113,1.337,114,2.56,133,1.37,139,1.28,140,1.429,239,2.377,267,2.177,278,1.497,318,0.618,335,3.338,342,1.572,438,1.155,498,2.987,610,1.534,638,1.654,642,3.849,692,2.987,731,6.227,785,2.987,786,2.987,787,2.987,788,2.987,789,2.987,790,2.987,918,2.377,930,1.654,931,1.796,932,1.698,1013,2.786,1014,2.625,1124,3.256,1157,3.665,1158,3.256,1159,3.256,1160,3.665,1161,3.256,1162,3.256,1163,3.256,1164,3.256,1165,3.256,1166,3.256,1167,3.665,1168,3.256,1169,3.256,1170,3.256,1171,3.665,1172,3.665,1173,3.665,1174,3.256,1175,3.256,1176,3.665,1177,3.665,1178,3.665,1179,3.665,1180,3.665,1181,5.375,1182,3.665,1183,3.665,1184,3.665,1185,3.665,1186,3.665,1187,3.665,1188,3.665,1189,3.665]],["t/879",[3,0.852,14,2.098,87,0.918,99,0.715,100,0.971,103,1.86,104,2.743,105,1.127,106,3.368,107,1.534,108,1.504,111,2.166,133,1.027,251,3.368,267,2.215,318,0.804,326,3.001,638,2.153,713,5.753,772,3.094,928,2.407,1013,3.626,1014,3.417,1129,4.239,1190,4.772,1191,6.475,1192,4.772,1193,4.772,1194,4.772,1195,4.772,1196,6.475,1197,4.239,1198,4.772,1199,4.772,1200,4.772]],["t/882",[3,0.839,13,1.86,87,0.804,99,1.177,100,0.85,101,0.933,105,1.395,109,1.104,111,1.882,113,2.153,115,1.978,116,2.664,117,2.596,118,3.17,125,2.302,132,1.126,133,1.474,134,1.448,172,1.216,229,1.523,267,2.686,318,0.704,326,2.736,372,1.49,388,1.37,438,1.316,474,1.706,514,1.628,546,1.084,582,1.421,607,1.428,616,2.744,620,1.556,695,2.412,890,1.556,1035,1.264,1036,1.264,1066,1.24,1102,3.174,1103,4.487,1105,1.747,1106,1.747,1107,1.666,1108,1.628]],["t/884",[3,0.847,13,2.292,87,0.763,99,1.154,100,0.807,101,0.886,105,1.345,109,1.049,111,1.829,113,2.075,115,1.906,116,2.568,117,2.503,118,3.055,125,2.219,132,1.069,133,1.433,134,1.396,172,1.155,186,3.055,229,1.446,267,2.634,318,0.668,326,2.637,388,1.302,428,1.906,438,1.25,474,1.62,514,1.546,546,1.029,582,1.37,607,1.357,616,2.541,620,1.478,695,2.325,890,1.478,1035,1.201,1036,1.201,1066,1.178,1105,1.66,1106,1.66,1107,1.582,1108,1.546,1109,2.463,1110,1.66]],["t/886",[3,0.849,13,2.278,87,0.753,99,1.148,100,0.796,101,0.874,105,1.332,109,1.035,111,1.815,113,2.055,115,1.888,116,2.543,117,2.478,118,3.026,125,2.197,132,1.055,133,1.422,134,1.382,172,1.139,186,3.026,229,1.427,267,2.62,318,0.659,326,2.612,388,1.284,428,1.888,438,1.233,474,1.598,514,1.525,546,1.015,582,1.357,607,1.338,616,2.676,620,1.458,695,2.302,890,1.458,1035,1.185,1036,1.185,1066,1.162,1105,1.637,1106,1.637,1107,1.561,1108,1.525,1109,2.43,1110,1.637]],["t/889",[1080,3.527,1110,3.185]],["t/891",[3,0.849,7,0.617,27,3.483,38,2.179,87,0.617,99,1.113,100,0.652,108,1.01,111,1.336,114,2.799,115,1.074,139,1.12,140,1.25,239,2.079,251,2.529,278,1.31,318,0.54,342,1.375,370,2.612,438,1.01,452,2.179,498,3.963,504,3.963,522,3.65,570,2.296,606,2.612,638,1.447,665,2.612,667,3.963,737,2.848,785,2.612,786,2.612,787,2.612,788,2.612,789,3.963,790,4.789,1013,2.437,1014,2.296,1020,2.848,1158,2.848,1159,2.848,1161,2.848,1162,2.848,1163,2.848,1164,2.848,1165,2.848,1166,2.848,1168,2.848,1169,2.848,1170,4.321,1174,2.848,1175,2.848,1201,3.206,1202,3.206,1203,3.206,1204,4.864,1205,3.206,1206,4.864,1207,3.206,1208,3.206,1209,3.206,1210,3.206,1211,3.206,1212,3.206,1213,3.206,1214,3.206,1215,3.206,1216,3.206,1217,3.206,1218,4.864,1219,3.206,1220,3.206,1221,3.206,1222,3.206,1223,3.206,1224,3.206,1225,3.206,1226,4.864,1227,3.206,1228,4.864,1229,3.206,1230,3.206,1231,3.206,1232,3.206,1233,3.206,1234,3.206,1235,3.206,1236,3.206,1237,3.206,1238,3.206]],["t/893",[172,2.16,454,2.827,607,2.537,745,4.81,1154,5.637]],["t/895",[3,0.819,13,1.893,87,1.156,99,1.04,100,0.871,101,0.956,105,1.419,109,1.132,110,2.476,111,1.907,115,2.012,117,2.641,119,2.513,125,2.342,132,1.153,133,1.494,134,1.473,172,1.246,229,1.56,248,3.123,318,0.721,320,1.783,372,1.527,388,1.404,438,1.348,474,1.748,514,1.668,546,1.11,582,1.03,607,1.463,609,3.224,610,1.79,620,1.595,695,2.453,696,1.79,820,3.064,890,1.595,915,1.348,931,2.942,1035,1.296,1036,1.296,1066,1.27,1096,1.983,1104,2.942,1105,1.79,1106,1.79,1107,1.707,1108,1.668,1117,2.783,1153,4.301,1155,4.565]],["t/897",[3,0.836,13,2.311,87,1.11,99,1.008,100,0.822,101,0.903,105,1.362,109,1.068,110,2.4,111,1.848,112,3.442,115,1.932,117,2.536,119,2.413,125,2.248,132,1.089,133,1.447,134,1.414,172,1.176,229,1.473,248,2.999,318,0.681,320,1.712,388,1.326,428,1.932,438,1.273,474,1.65,514,1.575,546,1.048,582,0.972,607,1.382,609,3.096,610,1.69,620,1.506,695,2.356,696,1.69,890,1.506,915,1.273,931,2.825,1035,1.223,1036,1.223,1066,1.199,1096,1.872,1104,2.825,1105,1.69,1106,1.69,1107,1.612,1108,1.575,1110,1.69,1117,2.672,1153,4.13,1156,2.893]],["t/900",[915,2.399,1080,3.527]],["t/902",[1080,3.527,1110,3.185]],["t/904",[3,0.857,7,0.818,14,1.869,16,2.686,94,1.168,95,1.176,99,0.745,100,0.671,101,1.235,103,0.768,105,1.732,107,0.634,113,2.016,114,2.365,115,2.126,229,0.719,237,2.13,273,1.967,278,0.805,294,1.133,309,1.606,310,1.663,320,0.585,342,0.845,372,0.703,409,0.994,425,1.094,477,1.83,492,2.047,499,1.058,557,1.751,582,1.664,607,1.127,612,1.094,616,0.688,638,0.889,682,2.138,751,1.224,846,1.224,850,1.058,854,3.787,877,1.133,900,3.557,908,2.788,913,1.224,914,1.77,915,0.621,918,3.221,922,1.967,923,2.138,930,3.002,931,2.433,932,0.913,953,1.133,954,1.176,955,2.929,1116,1.058,1117,1.527,1239,1.278,1240,1.971,1241,2.138,1242,2.138,1243,1.971,1244,1.971,1245,1.971,1246,1.278,1247,1.971,1248,1.278,1249,1.278,1250,1.278,1251,1.278,1252,1.971,1253,2.138,1254,2.138,1255,2.138,1256,1.278,1257,1.278,1258,1.971,1259,1.278,1260,1.278,1261,1.278,1262,1.498,1263,1.278,1264,1.498,1265,1.971,1266,1.971,1267,4.249,1268,3.296,1269,1.971,1270,1.971,1271,4.249,1272,3.296,1273,1.971,1274,1.971,1275,1.971,1276,1.971,1277,1.971,1278,1.971,1279,6.653,1280,3.296,1281,1.971,1282,3.296,1283,3.296,1284,1.971,1285,3.296,1286,1.971,1287,3.296,1288,3.296]],["t/906",[3,0.854,7,0.585,87,0.585,94,0.835,95,1.084,99,0.956,101,1.624,103,1.184,105,1.932,107,0.977,113,1.108,114,3.038,115,2.535,172,0.884,273,2.786,278,1.241,294,1.747,310,2.355,318,0.512,320,0.902,328,1.887,342,1.303,372,1.084,409,1.532,477,1.686,492,1.887,499,1.631,612,1.686,616,1.061,638,1.371,751,1.887,846,1.887,850,1.631,854,4.517,877,1.747,906,2.287,907,1.97,913,1.887,914,3.052,915,0.957,922,2.786,930,2.879,932,1.408,953,2.684,954,2.786,1116,1.631,1117,2.163,1239,1.97,1241,1.97,1242,1.97,1246,1.97,1248,1.97,1249,1.97,1250,1.97,1251,1.97,1253,3.027,1254,3.027,1255,3.027,1256,1.97,1257,1.97,1259,1.97,1260,1.97,1261,1.97,1262,2.309,1263,1.97,1264,2.309,1289,2.065,1290,2.065,1291,2.065,1292,2.309]],["t/908",[3,0.855,7,0.569,87,0.569,94,0.812,95,1.055,99,0.942,101,1.606,103,1.152,105,1.918,107,0.95,113,1.078,114,2.994,115,2.51,172,0.86,237,1.267,251,1.537,273,2.727,278,1.207,294,1.699,310,2.305,318,0.498,320,1.357,328,1.836,342,1.267,352,1.916,372,1.055,409,1.491,477,1.64,492,1.836,499,1.587,612,1.64,616,1.032,638,1.334,751,1.836,846,1.836,850,1.587,854,4.472,877,1.699,906,2.239,907,1.916,913,1.836,914,3,915,0.931,922,2.727,930,2.837,932,1.369,953,2.627,954,2.727,1116,1.587,1117,2.117,1239,1.916,1241,1.916,1242,1.916,1246,1.916,1248,1.916,1249,1.916,1250,1.916,1251,1.916,1253,2.963,1254,2.963,1255,2.963,1256,1.916,1257,1.916,1259,1.916,1260,1.916,1261,1.916,1263,1.916,1289,2.009,1290,2.009,1291,2.009,1292,2.246,1293,2.408,1294,2.408]],["t/910",[3,0.854,7,0.545,87,0.545,94,0.778,95,1.01,99,0.921,101,1.577,103,1.103,105,1.895,107,0.91,113,1.611,114,2.925,115,2.556,172,0.824,237,1.214,248,2.298,267,0.968,273,2.637,278,1.156,294,1.627,310,2.229,318,0.477,320,0.84,328,1.758,342,2.634,372,1.01,409,1.428,477,1.571,492,1.758,499,1.519,612,1.571,616,0.989,638,1.277,751,2.744,846,1.758,850,1.519,854,4.402,877,1.627,906,2.165,907,1.835,913,1.758,914,2.918,915,0.892,922,2.637,923,1.835,930,2.772,932,1.311,953,2.541,954,2.637,1116,1.519,1117,2.048,1239,1.835,1241,1.835,1242,1.835,1246,1.835,1248,1.835,1249,1.835,1250,1.835,1251,1.835,1253,2.865,1254,2.865,1255,2.865,1256,1.835,1257,1.835,1259,2.865,1260,1.835,1261,1.835,1262,2.151,1263,1.835,1264,2.151,1289,1.924,1290,1.924,1291,1.924,1292,2.151,1295,2.514,1296,2.514,1297,2.514]],["t/912",[3,0.854,7,0.446,41,1.439,87,0.446,94,0.637,95,0.827,99,0.969,101,1.586,103,0.903,105,1.783,107,0.745,113,1.374,114,2.612,115,2.283,172,0.675,251,1.205,267,1.289,273,3.273,278,0.947,294,1.332,310,2.766,318,0.39,320,0.688,328,1.439,342,0.994,372,0.827,388,0.76,409,1.169,477,1.286,492,1.439,499,1.244,581,1.761,582,0.907,610,0.97,612,2.643,616,0.809,620,2.249,638,1.046,668,1.888,751,1.439,764,1.761,795,1.575,797,1.575,846,1.439,850,1.244,851,1.66,854,4.067,877,2.166,906,1.846,907,1.503,913,1.439,914,2.556,915,1.5,916,1.66,918,1.503,922,2.249,929,1.66,930,2.475,932,1.746,935,1.66,936,1.66,937,1.66,940,4.469,945,1.888,953,2.166,954,2.249,1116,1.244,1117,1.746,1239,1.503,1241,1.503,1242,1.503,1246,1.503,1248,1.503,1249,1.503,1250,1.503,1251,1.503,1253,2.443,1254,2.443,1255,2.443,1256,1.503,1257,1.503,1259,1.503,1260,1.503,1261,1.503,1262,1.761,1263,1.503,1264,1.761,1289,2.561,1290,2.561,1291,1.575,1298,2.059,1299,2.059,1300,2.059,1301,4.872,1302,3.347,1303,2.059,1304,2.059,1305,2.059,1306,2.059,1307,2.059,1308,2.059,1309,2.059,1310,2.059]],["t/914",[3,0.855,7,0.437,41,1.409,87,0.437,94,0.623,95,0.81,99,0.96,101,1.574,103,0.885,105,1.771,107,0.73,113,1.35,114,2.579,115,2.262,172,0.661,237,0.973,251,1.926,267,1.267,273,3.232,278,0.927,294,1.305,310,2.732,318,0.382,320,1.1,328,1.409,342,0.973,352,1.471,372,0.81,388,0.745,409,1.145,477,1.259,492,1.409,499,1.218,581,1.724,582,0.891,610,0.949,612,2.605,616,0.793,620,2.224,638,1.024,668,1.849,751,1.409,764,1.724,795,1.542,797,1.542,846,1.409,850,1.218,851,1.625,854,4.031,877,2.129,906,1.814,907,1.471,913,1.409,914,2.519,915,1.479,916,1.625,918,1.471,922,2.21,929,1.625,930,2.444,932,1.716,935,1.625,936,1.625,937,1.625,940,4.413,945,1.849,953,2.129,954,2.21,1116,1.218,1117,1.716,1239,1.471,1241,1.471,1242,1.471,1246,1.471,1248,1.471,1249,1.471,1250,1.471,1251,1.471,1253,2.402,1254,2.402,1255,2.402,1256,1.471,1257,1.471,1259,1.471,1260,1.471,1261,1.471,1263,1.471,1289,2.517,1290,2.517,1291,1.542,1293,1.849,1294,1.849,1298,2.016,1299,2.016,1300,2.016,1301,4.811,1302,3.29,1303,2.016,1304,2.016,1305,2.016,1306,2.016,1307,2.016,1308,2.016,1309,2.016,1310,2.016]],["t/916",[57,2.644,191,4.115,318,1.117,450,3.342,518,5.887,521,5.4,604,5.887,696,2.772,850,3.557,994,5.887,995,5.887,996,5.887,997,5.887,998,5.887,999,5.887,1000,5.887,1311,5.4,1312,6.626,1313,6.626]],["t/918",[0,4.608,1,4.638,3,0.587,7,1.4,8,3.524,11,4.341,14,1.744,15,4.341,21,5.056,23,2.063,28,3.691,33,3.397,37,4.182,40,2.572,42,3.232,43,2.841,44,3.014,45,1.889,46,1.838,50,4.638,51,3.524,52,3.014,53,3.691,54,3.524,56,2.841,57,2.902,91,2.202,124,3.014,127,3.232,142,3.014,154,3.524,155,3.524,161,3.232,204,5.056,205,3.232,211,3.014,215,3.232,358,3.524,366,3.524,367,3.524,569,3.232,570,2.841,571,3.014,576,3.232,591,3.524,843,2.572,1314,3.966,1315,3.966,1316,3.966,1317,3.966,1318,5.691,1319,3.966,1320,3.966,1321,3.966,1322,5.691,1323,5.691,1324,3.966,1325,3.966,1326,3.966,1327,3.966,1328,3.966,1329,3.966,1330,3.966,1331,5.691,1332,3.966,1333,5.691,1334,3.966,1335,3.966,1336,3.966,1337,3.966,1338,3.966,1339,3.966,1340,3.966]],["t/920",[7,1.018,27,2.571,48,2.728,94,0.986,105,1.25,108,1.131,318,1.169,412,2.728,428,1.202,437,4.702,442,4.717,470,3.189,480,7.207,496,3.287,507,6.165,508,3.189,514,1.4,517,2.142,524,4.503,547,3.189,556,2.571,592,3.189,652,2.728,659,2.925,676,2.728,718,2.571,721,4.023,728,2.571,830,3.189,831,4.702,849,4.702,863,4.702,927,2.925,928,1.811,949,3.189,959,3.189,1341,3.59,1342,3.59,1343,3.59,1344,5.293,1345,8.006,1346,3.59,1347,5.293,1348,3.59,1349,3.59,1350,3.59,1351,3.59,1352,3.59,1353,3.59,1354,3.59,1355,3.59,1356,3.59,1357,5.293,1358,6.287,1359,3.59,1360,3.59,1361,3.59,1362,3.59,1363,3.59,1364,3.59,1365,3.59,1366,3.59,1367,3.59,1368,3.59,1369,3.59,1370,5.293,1371,3.59,1372,3.59,1373,3.59,1374,3.59,1375,5.293,1376,3.59,1377,3.59,1378,3.59,1379,3.59,1380,3.59,1381,3.59,1382,5.293,1383,3.59,1384,3.59,1385,3.59,1386,3.59,1387,3.59,1388,3.59,1389,3.59]],["t/922",[57,2.664,87,1.285,172,1.944,229,2.435,521,5.441,546,2.084,607,2.284,677,5.075,890,2.489,1096,3.094,1108,2.603,1390,6.677,1391,6.677,1392,6.677,1393,6.677,1394,6.677,1395,6.677]],["t/924",[3,0.841,7,1.044,14,1.24,87,0.848,99,0.997,100,1.552,102,1.1,103,2.115,105,1.282,107,1.744,108,2.096,133,1.897,139,1.895,172,1.283,229,1.978,235,1.515,267,1.508,320,1.821,326,2.042,517,3.97,546,2.252,582,1.476,677,5.056,745,2.858,757,3.976,777,2.144,808,2.299,890,2.022,1038,1.829,1066,1.975,1083,1.752,1084,1.752,1107,2.446,1108,2.115,1197,2.506,1311,2.299,1396,5.91,1397,2.506,1398,2.506,1399,2.821,1400,2.821,1401,6.132,1402,2.821,1403,2.506,1404,2.506,1405,2.821,1406,2.506,1407,2.506,1408,3.916,1409,2.506,1410,2.506]],["t/926",[3,0.843,7,1.012,14,1.183,87,0.817,94,1.445,95,1.877,99,1.036,100,1.473,101,1.453,102,1.049,103,2.051,105,1.243,107,1.691,108,2.049,109,2.09,132,2.13,133,1.79,134,1.041,172,1.236,229,1.918,235,1.444,267,1.452,279,1.744,320,1.774,326,1.968,517,3.881,523,5.299,546,2.158,677,4.942,745,2.753,890,1.961,1066,1.931,1083,1.671,1084,1.671,1107,2.595,1108,2.051,1311,2.192,1396,5.777,1397,2.39,1398,2.39,1403,2.39,1404,2.39,1406,2.39,1407,2.39,1408,3.772,1409,2.39,1410,2.39,1411,2.69]],["t/928",[1412,7.546,1413,7.546,1414,7.546]],["t/930",[3,0.855,7,0.531,87,0.531,94,0.758,95,0.984,99,0.908,101,1.561,103,1.075,105,1.881,107,0.887,113,1.579,114,2.885,115,2.534,172,0.803,237,1.857,248,2.252,251,1.435,267,0.943,273,2.585,278,1.127,294,1.586,310,2.185,318,0.465,320,1.286,328,1.713,342,2.597,352,1.789,372,0.984,409,1.391,477,1.531,492,1.713,499,1.481,612,1.531,616,0.964,638,1.245,751,2.69,846,1.713,850,1.481,854,4.36,877,1.586,906,2.122,907,1.789,913,1.713,914,2.87,915,0.869,922,2.585,923,1.789,930,2.733,932,1.278,953,2.49,954,2.585,1116,1.481,1117,2.007,1239,1.789,1241,1.789,1242,1.789,1246,1.789,1248,1.789,1249,1.789,1250,1.789,1251,1.789,1253,2.808,1254,2.808,1255,2.808,1256,1.789,1257,1.789,1259,2.808,1260,1.789,1261,1.789,1263,1.789,1289,1.875,1290,1.875,1291,1.875,1292,2.096,1293,2.248,1294,2.248,1295,2.451,1296,2.451,1297,2.451]]],"invertedIndex":[["",{"_index":3,"t":{"622":{"position":[[20,1],[195,1],[269,1]]},"628":{"position":[[160,2],[215,2],[271,1],[355,3],[359,2],[383,1],[409,1],[443,1],[471,1],[490,1],[496,2],[521,2],[597,2],[677,1],[691,1],[711,1],[713,2],[765,1],[783,1],[817,1],[845,1],[847,1],[859,1],[861,3],[878,2],[903,1],[917,1],[937,1],[939,2],[970,1],[991,2],[1047,1],[1125,3],[1129,2],[1175,1],[1203,1],[1222,1],[1261,1],[1285,2],[1361,2],[1441,1],[1443,2],[1446,2],[1520,1],[1548,1],[1550,1],[1562,1],[1564,3],[1606,1],[1630,1],[1632,2]]},"630":{"position":[[235,1],[837,1],[839,2],[895,1],[979,3],[983,2],[1078,1],[1114,1],[1142,1],[1144,1],[1156,1],[1158,3],[1181,2],[1206,2],[1282,2],[1362,1],[1376,1],[1396,1],[1410,1],[1431,2],[1487,1],[1565,3],[1569,2],[1668,1],[1696,1],[1698,1],[1710,1],[1712,3],[1768,1],[1792,2],[1868,2],[1948,1],[1950,2]]},"632":{"position":[[292,1],[476,2],[586,1],[718,2],[765,1],[817,2],[888,1],[962,3],[978,1],[999,2],[1109,1],[1241,2],[1288,1],[1340,2],[1411,1],[1485,3],[1735,1],[1737,2],[1804,1],[1855,2],[1868,1],[1921,1],[1933,1],[1947,1],[1967,1],[1969,2],[2086,1],[2088,2],[2101,1],[2154,1],[2166,3],[2307,2],[2364,1],[2394,2],[2442,3],[2446,4],[2451,2],[2537,2],[2623,1],[2625,2],[2667,3],[2671,4],[2676,2],[2762,3]]},"634":{"position":[[143,1],[145,2],[201,1],[285,3],[289,2],[340,1],[376,1],[404,1],[406,1],[418,1],[420,3],[438,2],[441,1],[568,2],[623,2],[722,2],[800,1],[903,3],[907,2],[958,1],[994,1],[1022,1],[1024,1],[1036,1],[1038,3],[1056,2],[1233,1],[1235,2],[1265,1],[1337,3],[1341,2],[1410,1],[1428,2],[1482,1],[1521,1],[1659,1],[1680,2],[1709,1],[1787,3],[1849,2],[1852,1],[1873,2],[1905,2]]},"636":{"position":[[145,1],[452,1],[555,3],[570,1],[667,3],[705,1],[731,1],[809,3],[835,2],[943,2],[977,1],[991,1],[1011,1],[1025,1],[1084,2],[1119,1],[1143,2],[1251,2],[1285,1],[1287,2]]},"638":{"position":[[9,1],[96,1],[304,1]]},"646":{"position":[[632,1]]},"650":{"position":[[122,1],[132,1],[191,1],[246,2],[249,2],[252,2]]},"652":{"position":[[49,1],[61,1],[123,2],[170,2]]},"654":{"position":[[7,1],[13,1],[68,1]]},"656":{"position":[[7,1],[27,1],[216,2],[385,2]]},"664":{"position":[[254,1],[278,1]]},"670":{"position":[[837,1],[941,1],[968,2],[980,2],[983,1],[1014,1],[1051,2],[1054,1],[1071,1],[1109,2],[1173,2],[1189,2],[1192,1],[1194,2],[1259,3],[1263,2],[1266,2],[1269,2],[1272,3],[1687,1],[1806,2],[1832,2],[1839,1],[1856,3],[1876,1],[1898,2],[1901,1],[1918,1],[1946,2],[1993,2],[2085,3],[2089,1],[2096,1],[2108,1],[2175,2],[2188,1],[2205,1],[2207,2],[2210,3]]},"672":{"position":[[523,1],[674,1],[676,2],[689,3],[727,2],[740,2],[743,1],[780,1],[836,2],[839,2],[867,2],[880,2],[883,1],[920,1],[976,2],[979,2],[1007,2],[1020,2],[1023,1],[1060,1],[1116,2],[1119,2],[1122,2],[1125,3]]},"675":{"position":[[60,1],[62,1],[64,1],[66,1],[100,2],[103,1],[105,2],[114,1],[116,1],[129,1],[131,1],[133,2],[157,1],[159,1],[161,1],[163,1],[243,3],[247,2],[287,1],[289,1],[291,1],[293,1],[359,1],[361,1],[363,1],[365,1]]},"677":{"position":[[165,1],[167,1],[169,1],[199,2],[202,1],[204,2],[266,3],[295,2],[395,1],[407,2],[423,2],[489,2],[492,1],[494,2],[498,1],[500,1],[502,1],[513,1],[515,1],[517,3],[521,2],[573,2],[683,3]]},"679":{"position":[[22,1]]},"681":{"position":[[63,1],[81,1],[96,1],[114,1],[155,1],[187,1],[230,1],[250,1]]},"683":{"position":[[105,1],[140,1],[201,1],[211,1],[256,2],[259,1],[333,1],[343,1],[388,2],[391,1],[466,1],[476,1],[528,1],[538,1],[583,2],[586,1],[620,1],[622,2],[625,1],[627,2],[630,1],[632,2]]},"688":{"position":[[69,1]]},"692":{"position":[[107,2],[255,2],[497,1]]},"697":{"position":[[162,1],[462,1],[500,1],[512,1],[525,2],[540,2],[543,1],[545,2],[578,1],[580,1],[582,1],[621,2],[639,1],[641,1],[648,1],[650,1],[652,3],[686,1],[698,1],[705,2],[720,2],[723,1],[725,2],[735,1],[737,1],[739,1],[767,3],[799,1],[811,1],[818,2],[833,2],[836,1],[838,2],[856,1],[865,3],[869,2],[973,1],[975,1],[977,1],[1006,2],[1009,1],[1011,2],[1029,1],[1038,3]]},"699":{"position":[[14,1],[16,1],[68,2],[112,2],[115,1],[117,2],[170,2],[241,2],[244,4],[249,2],[252,3]]},"701":{"position":[[453,2],[562,1],[590,2],[593,2],[619,1],[693,1],[727,1],[776,1],[798,2],[801,2],[816,2],[898,1],[927,1],[965,1],[1052,2],[1055,1],[1057,2],[1096,1],[1149,1],[1238,3],[1242,3],[1246,2],[1249,1],[1285,2],[1288,3],[1379,2]]},"703":{"position":[[10,1],[40,1],[73,1],[111,1],[226,2],[255,3],[592,1],[635,1],[668,1],[759,1],[777,1],[800,1],[834,2],[837,1],[869,1],[871,2],[895,2],[898,3]]},"708":{"position":[[233,1],[266,1]]},"710":{"position":[[14,1],[34,1],[83,1],[85,1],[119,2],[133,1]]},"712":{"position":[[14,1],[28,1],[71,1],[73,1],[107,2],[121,1]]},"714":{"position":[[37,1],[67,2],[70,1],[72,3],[76,1],[85,1],[87,1],[97,1],[99,1],[101,2],[104,3],[131,1],[161,2],[164,1],[166,3],[170,1],[179,1],[181,1],[191,1],[193,1],[195,2],[198,3]]},"717":{"position":[[68,1],[84,1],[112,1],[171,3],[175,2],[223,1],[253,2],[256,1],[277,3],[281,1],[290,1],[292,1],[302,1],[304,1],[306,2],[309,3],[313,2],[390,2],[393,1],[414,3],[418,1],[427,1],[429,1],[454,1],[456,1],[458,2],[461,3],[513,1],[529,1],[557,1],[635,3],[639,2],[688,1],[703,1],[731,2],[734,1],[755,3],[759,1],[768,1],[770,1],[777,1],[779,1],[781,2],[784,1],[786,2],[789,2],[866,2],[869,1],[890,3],[894,1],[903,1],[905,1],[914,1],[916,1],[918,2],[921,3]]},"719":{"position":[[85,1],[101,1],[129,1],[214,3],[228,1],[230,1],[241,1],[263,1],[276,2],[327,2],[330,1],[351,3],[355,1],[364,1],[366,1],[368,1],[378,1],[380,2],[383,1],[385,1],[395,1],[397,1],[399,1],[401,2],[404,3]]},"721":{"position":[[322,1],[340,1],[368,1],[427,3],[441,1],[443,1],[452,1],[457,2],[508,2],[511,1],[534,3],[538,1],[565,1],[618,3],[672,1],[674,2],[677,3]]},"723":{"position":[[173,1],[191,1],[219,1],[304,3],[318,1],[320,1],[329,1],[341,1],[346,2],[400,2],[403,1],[427,3],[431,1],[443,1],[461,1],[514,3],[569,2],[588,1],[641,3],[695,1],[697,1],[699,2],[702,3]]},"725":{"position":[[281,1],[320,1],[348,1],[407,3],[411,3],[431,2],[486,3],[506,2],[566,1],[578,1],[587,3],[591,3],[615,2],[628,1],[721,2],[724,1],[747,3],[751,1],[778,1],[831,3],[885,1],[887,2],[890,3],[1066,3],[1107,2]]},"733":{"position":[[0,2],[18,2],[33,1],[62,2],[136,2],[191,2],[194,2],[210,2],[271,2],[312,1],[356,2],[483,2],[486,1],[498,1],[563,2],[581,2],[584,1],[617,2],[633,2],[636,1],[656,2],[714,3]]},"735":{"position":[[26,1],[40,1],[80,1],[128,3],[153,1],[182,3],[222,1],[250,1],[264,1],[304,1],[340,3],[344,2],[480,3],[534,1]]},"737":{"position":[[12,1],[42,1],[72,2],[75,1],[85,1],[164,3],[179,1],[287,1],[299,4],[319,3]]},"743":{"position":[[35,1],[71,1],[113,1],[157,2],[217,2],[350,2],[355,1],[377,3],[430,2],[433,1],[461,2],[464,2]]},"747":{"position":[[103,1],[122,1],[198,2],[201,1],[215,1],[235,1],[249,1],[287,1],[357,2],[398,2],[401,1],[421,3]]},"749":{"position":[[107,1],[126,1],[210,2],[225,2],[238,3],[242,3],[246,1],[260,1],[280,1],[294,1],[332,1],[410,2],[425,2],[438,3],[442,3],[484,2],[487,1],[507,3]]},"751":{"position":[[107,1],[126,1],[159,2],[162,3],[243,2],[246,3],[250,1],[264,1],[284,1],[298,1],[336,1],[363,2],[366,3],[448,3],[490,2],[493,1],[513,3]]},"753":{"position":[[125,1],[144,1],[177,2],[180,3],[189,1],[191,2],[242,2],[338,2],[341,3],[345,1],[359,1],[379,1],[393,1],[431,1],[458,2],[461,3],[470,1],[472,2],[523,2],[619,2],[622,3],[664,2],[667,1],[687,3]]},"755":{"position":[[294,1],[313,1],[346,2],[349,3],[420,3],[424,1],[438,1],[458,1],[472,1],[486,1],[589,1],[603,1],[623,1],[637,1],[675,1],[702,2],[705,3],[776,3],[818,2],[821,1],[841,3],[924,1],[970,1],[998,1],[1018,3]]},"757":{"position":[[13,1],[77,1],[129,1]]},"759":{"position":[[66,1],[109,1],[148,1],[183,3],[204,1],[251,3],[293,2],[296,1],[316,3],[332,1],[375,1],[414,1],[468,2],[471,1],[513,3],[517,2],[520,3],[562,2],[565,1],[585,3],[666,2],[669,1],[697,1],[725,1],[754,3],[825,2],[828,1],[856,1],[884,1],[913,3],[984,2],[987,1],[1015,1],[1043,1],[1072,3]]},"766":{"position":[[105,1],[125,1],[228,2],[259,7],[284,1],[331,2],[334,3],[371,1],[385,1],[405,1],[419,1],[458,1],[561,2],[592,7],[665,1],[693,1],[721,1],[723,2],[726,3],[763,3]]},"768":{"position":[[103,1],[123,1],[180,1],[233,2],[248,2],[261,3],[265,3],[269,2],[300,7],[325,1],[372,2],[375,3],[412,1],[426,1],[446,1],[460,1],[499,1],[556,1],[609,2],[624,2],[637,3],[641,3],[645,2],[676,7],[749,1],[777,1],[805,1],[807,2],[810,3],[847,3]]},"770":{"position":[[103,1],[123,1],[180,1],[182,2],[185,3],[266,2],[269,3],[273,2],[304,7],[329,1],[376,2],[379,3],[416,1],[430,1],[450,1],[464,1],[503,1],[560,1],[562,2],[565,3],[647,3],[651,2],[682,7],[755,1],[783,1],[811,1],[813,2],[816,3],[853,3]]},"772":{"position":[[121,1],[141,1],[198,1],[200,2],[203,3],[212,1],[214,2],[265,2],[361,2],[364,3],[368,2],[399,7],[424,1],[471,2],[474,3],[511,1],[525,1],[545,1],[559,1],[598,1],[655,1],[657,2],[660,3],[669,1],[671,2],[722,2],[818,2],[821,3],[825,2],[856,7],[929,1],[957,1],[985,1],[987,2],[990,3],[1027,3]]},"774":{"position":[[290,1],[310,1],[367,1],[369,2],[372,3],[443,3],[447,2],[478,7],[503,1],[550,2],[553,3],[590,1],[604,1],[624,1],[638,1],[652,1],[756,1],[770,1],[790,1],[804,1],[843,1],[900,1],[902,2],[905,3],[976,3],[980,2],[1011,7],[1084,1],[1112,1],[1140,1],[1142,2],[1145,3],[1182,3],[1265,1],[1312,1],[1340,1],[1360,3]]},"776":{"position":[[13,1],[77,1],[129,1]]},"778":{"position":[[62,1],[105,1],[144,1],[179,3],[201,1],[258,1],[280,3],[284,2],[315,7],[343,1],[385,1],[428,1],[468,1],[525,1],[554,2],[557,1],[599,3],[603,2],[606,3],[610,2],[641,7],[669,1],[779,2],[782,1],[810,1],[838,1],[867,3],[941,2],[944,1],[972,1],[1000,1],[1029,3],[1103,2],[1106,1],[1134,1],[1162,1],[1191,3]]},"783":{"position":[[105,1],[140,1]]},"786":{"position":[[63,1],[75,1],[111,1],[113,1],[138,1],[173,1],[256,1],[270,1],[290,1],[302,1],[338,1],[340,1],[365,1],[431,2],[434,1],[462,1],[490,1],[534,3]]},"788":{"position":[[58,1],[70,1],[106,1],[108,1],[133,1],[168,1],[210,2],[213,3],[231,3],[277,1],[291,1],[311,1],[323,1],[359,1],[361,1],[386,1],[418,1],[433,2],[436,3],[454,2],[479,2],[482,1],[510,1],[538,1],[582,1],[584,2]]},"790":{"position":[[73,1],[85,1],[121,1],[123,1],[148,1],[183,1],[211,1],[218,2],[221,3],[239,2],[249,2],[294,1],[308,1],[328,1],[340,1],[376,1],[378,1],[403,1],[435,1],[442,2],[445,3],[463,2],[496,2],[499,1],[527,1],[555,1],[599,1],[601,2]]},"799":{"position":[[97,1],[110,1],[192,1],[222,2],[225,3],[262,1],[276,1],[296,1],[310,1],[342,1],[453,1],[481,1],[509,1],[511,2],[514,3],[551,3]]},"801":{"position":[[95,1],[108,1],[180,2],[195,2],[208,3],[212,3],[233,1],[263,2],[266,3],[303,1],[317,1],[337,1],[351,1],[383,1],[455,2],[470,2],[483,3],[487,3],[537,1],[565,1],[593,1],[595,2],[598,3],[635,3]]},"803":{"position":[[95,1],[108,1],[129,2],[132,3],[213,2],[216,3],[237,1],[267,2],[270,3],[307,1],[321,1],[341,1],[355,1],[387,1],[408,2],[411,3],[493,3],[543,1],[571,1],[599,1],[601,2],[604,3],[641,3]]},"805":{"position":[[113,1],[126,1],[147,2],[150,3],[159,1],[161,2],[212,2],[308,2],[311,3],[332,1],[362,2],[365,3],[402,1],[416,1],[436,1],[450,1],[482,1],[503,2],[506,3],[515,1],[517,2],[568,2],[664,2],[667,3],[717,1],[745,1],[773,1],[775,2],[778,3],[815,3]]},"807":{"position":[[282,1],[295,1],[316,2],[319,3],[390,3],[411,1],[441,2],[444,3],[481,1],[495,1],[515,1],[529,1],[543,1],[640,1],[654,1],[674,1],[688,1],[720,1],[741,2],[744,3],[815,3],[865,1],[893,1],[921,1],[923,2],[926,3],[963,3],[1046,1],[1086,1],[1114,1],[1134,3]]},"809":{"position":[[13,1],[77,1],[129,1]]},"811":{"position":[[54,1],[97,1],[136,1],[171,3],[186,1],[227,3],[243,1],[286,1],[319,1],[367,2],[370,1],[412,3],[416,2],[419,3],[494,2],[497,1],[525,1],[553,1],[582,3],[647,2],[650,1],[678,1],[706,1],[735,3],[800,2],[803,1],[831,1],[859,1],[888,3]]},"817":{"position":[[63,1],[75,1],[120,3],[124,3],[128,7],[149,1],[200,1],[283,1],[297,1],[317,1],[329,1],[374,3],[378,3],[382,7],[403,1],[485,2],[488,1],[516,1],[544,1],[588,3]]},"819":{"position":[[58,1],[70,1],[115,3],[119,3],[123,7],[144,1],[195,1],[237,2],[240,3],[258,3],[304,1],[318,1],[338,1],[350,1],[395,3],[399,3],[403,7],[424,1],[472,1],[487,2],[490,3],[508,2],[533,2],[536,1],[564,1],[592,1],[636,1],[638,2]]},"821":{"position":[[73,1],[85,1],[130,3],[134,3],[138,7],[159,1],[210,1],[238,1],[245,2],[248,3],[266,2],[276,2],[321,1],[335,1],[355,1],[367,1],[412,3],[416,3],[420,7],[441,1],[489,1],[496,2],[499,3],[517,2],[550,2],[553,1],[581,1],[609,1],[653,1],[655,2]]},"828":{"position":[[63,1],[114,1],[124,1],[238,3],[290,1],[348,1],[371,1],[413,1],[425,1],[464,1],[647,1],[759,2],[762,2],[878,2],[889,1],[953,1],[1055,3],[1155,1],[1267,2],[1270,2],[1323,1],[1379,1],[1397,2],[1400,1],[1423,2],[1439,2],[1442,1],[1483,3],[1513,1],[1551,1],[1581,2],[1584,1],[1594,1],[1678,3],[1693,1],[1801,1],[1813,4],[1833,2],[1851,2],[1854,1],[1877,2],[1902,1],[1933,3],[1937,1],[1983,1],[1985,1],[2050,3],[2085,1],[2130,2],[2141,2],[2154,3],[2192,1],[2216,1],[2218,1]]},"831":{"position":[[63,1],[75,1],[103,1],[105,1],[120,1],[122,1],[147,1],[186,1],[269,1],[283,1],[303,1],[315,1],[343,1],[345,1],[360,1],[362,1],[387,1],[457,2],[460,1],[488,1],[516,1],[560,3]]},"833":{"position":[[58,1],[70,1],[98,1],[100,1],[115,1],[117,1],[142,1],[181,1],[223,2],[226,3],[244,3],[290,1],[304,1],[324,1],[336,1],[364,1],[366,1],[381,1],[383,1],[408,1],[444,1],[459,2],[462,3],[480,2],[505,2],[508,1],[536,1],[564,1],[608,1],[610,2]]},"835":{"position":[[73,1],[85,1],[113,1],[115,1],[130,1],[132,1],[157,1],[196,1],[224,1],[231,2],[234,3],[252,2],[262,2],[307,1],[321,1],[341,1],[353,1],[381,1],[383,1],[398,1],[400,1],[425,1],[461,1],[468,2],[471,3],[489,2],[522,2],[525,1],[553,1],[581,1],[625,1],[627,2]]},"842":{"position":[[45,1]]},"846":{"position":[[46,1],[58,1],[94,1],[136,1],[209,1],[223,1],[243,1],[255,1],[291,1],[354,2],[357,1],[385,1],[413,1],[457,3]]},"848":{"position":[[56,1],[68,1],[104,1],[146,1],[178,2],[181,3],[199,3],[245,1],[259,1],[279,1],[291,1],[327,1],[364,1],[371,2],[374,3],[392,2],[417,2],[420,1],[448,1],[476,1],[520,1],[522,2]]},"857":{"position":[[46,1],[58,1],[68,1],[96,1],[115,1],[143,1],[214,1],[228,1],[248,1],[260,1],[270,1],[298,1],[317,1],[366,2],[369,1],[397,1],[425,1],[467,3]]},"859":{"position":[[56,1],[68,1],[78,1],[106,1],[125,1],[153,1],[185,2],[188,3],[206,3],[250,1],[264,1],[284,1],[296,1],[306,1],[334,1],[353,1],[378,1],[385,2],[388,3],[406,2],[429,2],[432,1],[460,1],[488,1],[530,1],[532,2]]},"861":{"position":[[56,1],[68,1],[78,1],[106,1],[125,1],[153,1],[204,2],[207,3],[225,3],[269,1],[283,1],[303,1],[315,1],[325,1],[353,1],[372,1],[397,1],[423,2],[426,3],[444,2],[467,2],[470,1],[498,1],[526,1],[568,1],[570,2]]},"868":{"position":[[46,1],[58,1],[155,1],[228,1],[242,1],[262,1],[274,1],[392,2],[395,1],[423,1],[451,1],[495,3]]},"870":{"position":[[56,1],[68,1],[165,1],[197,2],[200,3],[218,3],[264,1],[278,1],[298,1],[310,1],[402,1],[409,2],[412,3],[430,2],[455,2],[458,1],[486,1],[514,1],[558,1],[560,2]]},"877":{"position":[[35,1],[74,1],[132,1],[208,2],[211,1],[395,1],[419,3],[461,2],[464,1],[526,3],[543,1],[652,3],[679,2],[682,1],[756,1],[758,2],[807,2],[881,1],[883,2],[939,1],[963,1],[1076,1],[1083,1],[1085,2],[1147,1],[1216,1],[1218,3],[1222,3],[1267,3]]},"879":{"position":[[34,1],[136,3],[155,2],[158,1],[171,1],[178,1],[188,1],[221,2],[224,1],[253,2],[313,3],[317,1],[319,2],[344,2],[347,1],[360,1],[367,1],[377,1],[408,2],[411,1],[470,2],[473,1],[516,3],[520,3],[524,1],[526,2]]},"882":{"position":[[63,1],[75,1],[85,1],[113,1],[115,1],[127,1],[129,3],[146,1],[183,1],[264,1],[278,1],[298,1],[310,1],[320,1],[348,1],[350,1],[362,1],[364,3],[381,1],[449,2],[452,1],[480,1],[508,1],[550,3]]},"884":{"position":[[58,1],[70,1],[80,1],[108,1],[110,1],[122,1],[124,3],[141,1],[178,1],[220,2],[223,3],[241,3],[285,1],[299,1],[319,1],[331,1],[341,1],[369,1],[371,1],[383,1],[385,3],[402,1],[438,1],[453,2],[456,3],[474,2],[497,2],[500,1],[528,1],[556,1],[598,1],[600,2]]},"886":{"position":[[73,1],[85,1],[95,1],[123,1],[125,1],[137,1],[139,3],[156,1],[193,1],[221,1],[228,2],[231,3],[249,2],[259,2],[302,1],[316,1],[336,1],[348,1],[358,1],[386,1],[388,1],[400,1],[402,3],[419,1],[455,1],[462,2],[465,3],[483,2],[514,2],[517,1],[545,1],[573,1],[615,1],[617,2]]},"891":{"position":[[35,1],[68,1],[124,1],[194,1],[233,1],[277,1],[373,2],[389,1],[401,1],[408,1],[410,2],[464,1],[509,3],[513,1],[515,1],[530,1],[606,2],[609,1],[611,2],[643,2],[693,3],[697,2],[783,2],[856,2],[886,2],[976,3],[1018,2],[1021,1],[1083,3],[1112,2],[1115,1],[1137,1],[1324,2],[1327,3],[1356,4],[1361,3],[1365,10],[1376,7],[1393,4],[1424,7],[1432,4],[1437,8],[1446,6],[1453,11],[1496,3],[1500,3]]},"895":{"position":[[46,1],[58,1],[86,1],[104,1],[146,1],[219,1],[233,1],[253,1],[265,1],[293,1],[311,1],[374,2],[377,1],[405,1],[433,1],[477,3]]},"897":{"position":[[56,1],[68,1],[96,1],[114,1],[156,1],[188,2],[191,3],[209,3],[255,1],[269,1],[289,1],[301,1],[329,1],[347,1],[384,1],[391,2],[394,3],[412,2],[437,2],[440,1],[468,1],[496,1],[540,1],[542,2]]},"904":{"position":[[15,3],[19,1],[66,2],[76,1],[90,1],[122,1],[130,1],[185,1],[213,1],[241,1],[243,1],[251,3],[261,3],[275,3],[289,3],[293,2],[303,2],[306,2],[309,1],[323,1],[344,3],[389,2],[450,3],[484,2],[606,2],[609,3],[634,2],[654,1],[723,4],[728,4],[733,6],[775,2],[827,3],[845,2],[862,1],[895,1],[932,2],[962,2],[965,1],[991,3],[1012,2],[1058,3],[1092,5],[1098,3],[1109,1],[1111,1],[1125,1],[1139,1],[1147,1],[1161,1],[1175,1],[1183,1],[1196,1],[1210,1],[1218,1],[1231,1],[1245,1],[1253,1],[1267,2],[1270,3],[1274,1],[1321,2],[1331,1],[1396,1],[1440,1],[1534,1],[1553,1],[1578,1],[1610,1],[1612,3],[1683,2],[1713,1],[1742,1],[1774,1],[1776,3],[1804,2],[1823,1],[1907,1],[1909,3],[1965,2],[1991,1],[2077,1],[2079,3],[2112,2],[2133,1],[2217,1],[2219,3],[2297,2],[2319,1],[2405,1],[2407,3],[2435,2],[2456,1],[2542,1],[2544,3],[2600,2],[2628,1],[2716,1],[2718,3],[2751,2],[2774,1],[2860,1],[2862,3],[2940,2],[2964,1],[3052,1],[3054,3],[3085,2],[3105,1],[3125,1],[3127,1]]},"906":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[308,1],[317,2],[320,2],[323,1],[357,1],[359,1],[367,3],[377,3],[391,3],[405,3],[409,2],[423,1],[463,3],[508,2],[579,3],[613,2],[745,2],[748,3],[773,2],[793,1],[872,4],[877,4],[882,6],[924,2],[976,3],[994,2],[1011,1],[1047,1],[1084,2],[1108,2],[1111,1],[1137,3],[1158,2],[1204,3],[1226,5],[1232,3],[1243,1],[1245,1],[1259,1],[1273,1],[1281,1],[1295,1],[1309,1],[1317,1],[1330,1],[1344,1],[1352,1],[1365,1],[1379,1],[1387,1],[1401,2]]},"908":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[282,3],[289,2],[303,3],[312,2],[326,1],[335,2],[338,2],[341,1],[375,1],[377,1],[385,3],[395,3],[409,3],[423,3],[446,2],[460,1],[500,3],[545,2],[616,3],[650,2],[782,2],[785,3],[810,2],[830,1],[909,4],[914,4],[919,6],[961,2],[1013,3],[1031,2],[1048,1],[1084,1],[1121,2],[1145,2],[1148,1],[1174,3],[1195,2],[1239,3],[1261,5],[1267,3],[1278,1],[1280,1],[1294,1],[1308,1],[1316,1],[1330,1],[1344,1],[1352,1],[1365,1],[1379,1],[1387,1],[1400,1],[1414,1],[1422,1],[1436,2]]},"910":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[308,1],[317,2],[320,2],[323,1],[357,1],[359,1],[367,3],[377,3],[391,3],[405,3],[435,2],[449,1],[489,3],[534,2],[605,3],[639,2],[771,2],[774,3],[799,2],[819,1],[898,4],[903,4],[908,6],[950,2],[1002,3],[1020,2],[1036,1],[1066,1],[1076,1],[1130,1],[1194,2],[1197,2],[1221,2],[1224,1],[1247,2],[1250,1],[1276,3],[1297,2],[1343,3],[1347,3],[1369,5],[1375,3],[1386,1],[1388,1],[1402,1],[1416,1],[1424,1],[1438,1],[1452,1],[1460,1],[1473,1],[1487,1],[1495,1],[1508,1],[1522,1],[1530,1],[1544,2]]},"912":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[239,1],[301,1],[329,1],[355,1],[398,2],[401,1],[413,2],[428,3],[467,1],[469,1],[569,2],[596,2],[613,2],[623,2],[626,2],[629,1],[663,1],[665,1],[673,3],[683,3],[697,3],[711,3],[715,2],[729,1],[769,3],[814,2],[885,3],[919,2],[1051,2],[1054,3],[1079,2],[1099,1],[1178,4],[1183,4],[1188,6],[1230,2],[1282,3],[1334,2],[1409,3],[1451,2],[1531,1],[1567,3],[1571,3],[1589,2],[1616,1],[1716,2],[1719,1],[1721,3],[1823,2],[1856,1],[1887,3],[1942,1],[1949,1],[1972,2],[1975,1],[2006,3],[2027,2],[2073,3],[2077,1],[2079,3],[2101,5],[2107,3],[2118,1],[2120,1],[2134,1],[2153,1],[2161,1],[2175,1],[2194,1],[2202,1],[2215,1],[2234,1],[2242,1],[2255,1],[2274,1],[2282,1],[2296,1],[2315,1],[2334,2]]},"914":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[239,1],[301,1],[303,3],[310,2],[324,3],[333,2],[347,1],[373,1],[416,2],[419,1],[431,2],[446,3],[485,1],[487,1],[587,2],[614,2],[631,2],[641,2],[644,2],[647,1],[681,1],[683,1],[691,3],[701,3],[715,3],[729,3],[752,2],[766,1],[806,3],[851,2],[922,3],[956,2],[1088,2],[1091,3],[1116,2],[1136,1],[1215,4],[1220,4],[1225,6],[1267,2],[1319,3],[1371,2],[1446,3],[1488,2],[1568,1],[1604,3],[1608,3],[1626,2],[1653,1],[1753,2],[1756,1],[1758,3],[1860,2],[1893,1],[1924,3],[1979,1],[1986,1],[2009,2],[2012,1],[2043,3],[2064,2],[2108,3],[2112,1],[2114,3],[2136,5],[2142,3],[2153,1],[2155,1],[2169,1],[2188,1],[2196,1],[2210,1],[2229,1],[2237,1],[2250,1],[2269,1],[2277,1],[2290,1],[2309,1],[2317,1],[2331,1],[2350,1],[2369,2]]},"918":{"position":[[17,1],[354,1],[531,1]]},"924":{"position":[[166,1],[198,1],[231,3],[241,3],[255,3],[259,3],[301,2],[304,1],[332,1],[379,1],[381,3],[508,1],[540,1],[567,3],[577,3],[591,3],[595,3],[636,2],[639,1],[667,1],[724,1],[726,3],[860,1],[899,1],[953,1],[961,3],[971,3],[985,3],[989,3],[1046,2],[1049,1],[1077,1],[1141,1],[1143,3],[1280,1],[1298,2],[1301,1],[1329,1],[1375,1],[1396,3],[1613,1],[1631,2],[1634,1],[1662,1],[1706,1],[1727,3]]},"926":{"position":[[184,1],[203,1],[242,3],[252,3],[266,3],[270,3],[274,1],[288,1],[316,1],[336,1],[338,1],[489,1],[516,3],[526,3],[540,3],[544,3],[552,1],[571,1],[601,1],[615,1],[643,1],[663,1],[665,1],[830,1],[884,1],[892,3],[902,3],[916,3],[920,3],[928,1],[972,1],[986,1],[1014,1],[1061,1],[1063,1],[1165,1],[1180,1],[1216,1],[1242,1],[1256,1],[1284,1],[1322,1],[1324,1],[1508,1],[1523,1],[1557,1],[1583,1],[1597,1],[1625,1],[1661,1],[1663,1]]},"930":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[282,3],[289,2],[303,3],[312,2],[326,1],[335,2],[338,2],[341,1],[375,1],[377,1],[385,3],[395,3],[409,3],[423,3],[472,2],[486,1],[526,3],[571,2],[642,3],[676,2],[808,2],[811,3],[836,2],[856,1],[935,4],[940,4],[945,6],[987,2],[1039,3],[1057,2],[1073,1],[1103,1],[1113,1],[1167,1],[1231,2],[1234,2],[1258,2],[1261,1],[1284,2],[1287,1],[1313,3],[1334,2],[1378,3],[1382,3],[1404,5],[1410,3],[1421,1],[1423,1],[1437,1],[1451,1],[1459,1],[1473,1],[1487,1],[1495,1],[1508,1],[1522,1],[1530,1],[1543,1],[1557,1],[1565,1],[1579,2]]}}}],["0",{"_index":251,"t":{"632":{"position":[[910,2],[959,2],[1433,2],[1482,2]]},"652":{"position":[[257,2]]},"681":{"position":[[121,2]]},"721":{"position":[[579,2],[596,2],[609,2],[654,2],[670,1]]},"723":{"position":[[475,2],[492,2],[505,2],[551,2],[567,1],[602,2],[619,2],[632,2],[677,2],[693,1]]},"725":{"position":[[792,2],[809,2],[822,2],[867,2],[883,1]]},"743":{"position":[[291,2]]},"879":{"position":[[173,2],[362,2]]},"891":{"position":[[1308,2],[1321,2]]},"908":{"position":[[292,2]]},"912":{"position":[[2332,1]]},"914":{"position":[[313,2],[2367,1]]},"930":{"position":[[292,2]]}}}],["0deprec",{"_index":949,"t":{"727":{"position":[[0,11]]},"920":{"position":[[101,11]]}}}],["0xffffff",{"_index":1166,"t":{"877":{"position":[[386,8]]},"891":{"position":[[876,9]]}}}],["1",{"_index":320,"t":{"634":{"position":[[1516,4],[1822,3]]},"636":{"position":[[209,1],[765,1],[1040,1]]},"652":{"position":[[260,2]]},"675":{"position":[[58,1],[155,1],[285,1],[357,1]]},"681":{"position":[[135,1]]},"683":{"position":[[189,3],[222,3],[321,3],[454,3],[516,3]]},"697":{"position":[[517,2],[703,1],[760,3],[764,2],[816,1],[854,1],[858,1],[986,3],[990,3],[1027,1],[1031,1]]},"714":{"position":[[35,1],[39,1],[129,1],[133,1]]},"717":{"position":[[221,1],[225,1],[686,1],[690,1]]},"719":{"position":[[239,1],[243,1]]},"721":{"position":[[449,2],[454,2]]},"723":{"position":[[326,2],[331,2]]},"725":{"position":[[563,2],[568,2]]},"743":{"position":[[347,2],[353,1]]},"759":{"position":[[448,2]]},"778":{"position":[[534,2]]},"786":{"position":[[121,3],[348,3]]},"788":{"position":[[116,3],[369,3]]},"790":{"position":[[131,3],[386,3]]},"811":{"position":[[347,2]]},"828":{"position":[[2138,2]]},"831":{"position":[[130,3],[370,3]]},"833":{"position":[[125,3],[391,3]]},"835":{"position":[[140,3],[408,3]]},"846":{"position":[[109,3],[306,3]]},"848":{"position":[[119,3],[342,3]]},"895":{"position":[[119,3],[326,3]]},"897":{"position":[[129,3],[362,3]]},"904":{"position":[[1216,1]]},"906":{"position":[[1350,1]]},"908":{"position":[[315,2],[1385,1]]},"910":{"position":[[1493,1]]},"912":{"position":[[2240,1]]},"914":{"position":[[336,2],[2275,1]]},"924":{"position":[[1278,1],[1282,3],[1611,1],[1615,3]]},"926":{"position":[[1214,1],[1218,4],[1555,1],[1559,4]]},"930":{"position":[[315,2],[1528,1]]}}}],["1+1",{"_index":875,"t":{"703":{"position":[[284,3]]}}}],["1+:toadd",{"_index":990,"t":{"737":{"position":[[269,8]]},"828":{"position":[[1783,8]]}}}],["1,2",{"_index":836,"t":{"697":{"position":[[608,5]]}}}],["1.0.0",{"_index":503,"t":{"650":{"position":[[202,8]]},"828":{"position":[[2026,8]]}}}],["1.1",{"_index":515,"t":{"652":{"position":[[263,4]]}}}],["1.1earli",{"_index":1362,"t":{"920":{"position":[[756,8]]}}}],["1.2",{"_index":516,"t":{"652":{"position":[[268,4]]}}}],["1.2releas",{"_index":1366,"t":{"920":{"position":[[848,10]]}}}],["10",{"_index":239,"t":{"632":{"position":[[701,3],[714,3],[1224,3],[1237,3]]},"703":{"position":[[237,2]]},"723":{"position":[[532,3]]},"737":{"position":[[296,2]]},"828":{"position":[[1810,2]]},"877":{"position":[[280,3]]},"891":{"position":[[754,3]]}}}],["1000",{"_index":1196,"t":{"879":{"position":[[322,6],[529,6]]}}}],["1045",{"_index":1214,"t":{"891":{"position":[[504,4]]}}}],["1080",{"_index":889,"t":{"703":{"position":[[864,4]]}}}],["12",{"_index":715,"t":{"675":{"position":[[126,2]]}}}],["120",{"_index":1028,"t":{"743":{"position":[[335,4]]}}}],["123",{"_index":1020,"t":{"743":{"position":[[152,4]]},"891":{"position":[[689,3]]}}}],["1234",{"_index":1164,"t":{"877":{"position":[[330,5]]},"891":{"position":[[817,5]]}}}],["137",{"_index":189,"t":{"630":{"position":[[1171,5],[1725,5]]}}}],["14",{"_index":297,"t":{"634":{"position":[[434,3],[1052,3]]}}}],["16000",{"_index":756,"t":{"679":{"position":[[86,5]]}}}],["18.x",{"_index":416,"t":{"644":{"position":[[60,5]]}}}],["19",{"_index":1118,"t":{"817":{"position":[[160,3],[414,3]]},"819":{"position":[[155,3],[435,3]]},"821":{"position":[[170,3],[452,3]]},"868":{"position":[[112,4],[328,4]]},"870":{"position":[[122,4],[364,4]]}}}],["1998",{"_index":1413,"t":{"928":{"position":[[12,5]]}}}],["1experiment",{"_index":547,"t":{"658":{"position":[[144,13]]},"920":{"position":[[642,13]]}}}],["2",{"_index":342,"t":{"636":{"position":[[221,1],[777,1],[1052,1]]},"652":{"position":[[273,1]]},"677":{"position":[[293,1],[464,3]]},"697":{"position":[[523,1]]},"714":{"position":[[95,1],[189,1]]},"717":{"position":[[300,1],[701,1],[705,1],[772,2]]},"719":{"position":[[261,1],[265,1],[376,1]]},"721":{"position":[[636,2]]},"723":{"position":[[338,2],[343,2],[659,2]]},"725":{"position":[[575,2],[580,2],[849,2]]},"735":{"position":[[195,3],[199,4]]},"877":{"position":[[349,2]]},"891":{"position":[[836,2]]},"904":{"position":[[1181,1]]},"906":{"position":[[1315,1]]},"908":{"position":[[1350,1]]},"910":{"position":[[1117,4],[1171,1],[1180,4],[1458,1]]},"912":{"position":[[2200,1]]},"914":{"position":[[2235,1]]},"930":{"position":[[1154,4],[1208,1],[1217,4],[1493,1]]}}}],["2+3",{"_index":1133,"t":{"828":{"position":[[785,3],[1292,3]]}}}],["2.0",{"_index":847,"t":{"701":{"position":[[238,3]]}}}],["2.rds.amazonaws.com",{"_index":1059,"t":{"755":{"position":[[379,21],[735,21]]},"774":{"position":[[402,21],[935,21]]},"807":{"position":[[349,21],[774,21]]}}}],["20",{"_index":1153,"t":{"831":{"position":[[149,4],[389,4]]},"833":{"position":[[144,4],[410,4]]},"835":{"position":[[159,4],[427,4]]},"895":{"position":[[88,2],[295,2]]},"897":{"position":[[98,2],[331,2]]}}}],["2113931265",{"_index":1220,"t":{"891":{"position":[[907,11]]}}}],["2119",{"_index":1069,"t":{"757":{"position":[[71,5]]},"776":{"position":[[71,5]]},"809":{"position":[[71,5]]}}}],["2130",{"_index":1067,"t":{"757":{"position":[[7,5]]},"776":{"position":[[7,5]]},"809":{"position":[[7,5]]}}}],["2131",{"_index":1072,"t":{"757":{"position":[[123,5]]},"776":{"position":[[123,5]]},"809":{"position":[[123,5]]}}}],["2181036031",{"_index":1221,"t":{"891":{"position":[[936,11]]}}}],["2282",{"_index":1414,"t":{"928":{"position":[[18,5]]}}}],["253",{"_index":1234,"t":{"891":{"position":[[1296,4]]}}}],["2stabl",{"_index":517,"t":{"652":{"position":[[290,7],[298,7]]},"717":{"position":[[0,7]]},"719":{"position":[[0,7]]},"721":{"position":[[0,7]]},"723":{"position":[[0,7]]},"725":{"position":[[0,7]]},"920":{"position":[[1114,7]]},"924":{"position":[[17,7],[396,7],[748,7],[1155,7],[1492,7]]},"926":{"position":[[17,7],[351,7],[685,7],[1073,7],[1418,7]]}}}],["3",{"_index":409,"t":{"642":{"position":[[39,2]]},"652":{"position":[[279,2]]},"672":{"position":[[292,3]]},"677":{"position":[[511,1]]},"683":{"position":[[232,3],[354,3],[364,3],[549,3],[559,3]]},"697":{"position":[[646,1]]},"735":{"position":[[388,1]]},"904":{"position":[[1251,1]]},"906":{"position":[[1385,1]]},"908":{"position":[[1420,1]]},"910":{"position":[[1528,1]]},"912":{"position":[[2280,1]]},"914":{"position":[[2315,1]]},"930":{"position":[[1563,1]]}}}],["33",{"_index":1230,"t":{"891":{"position":[[1261,3]]}}}],["3306",{"_index":888,"t":{"703":{"position":[[829,4]]},"749":{"position":[[219,5],[419,5]]},"759":{"position":[[178,4],[508,4]]},"768":{"position":[[242,5],[618,5]]},"778":{"position":[[174,4],[594,4]]},"801":{"position":[[189,5],[464,5]]},"811":{"position":[[166,4],[407,4]]},"828":{"position":[[163,5],[980,5],[1633,5]]}}}],["384",{"_index":1232,"t":{"891":{"position":[[1279,4]]}}}],["3legaci",{"_index":1378,"t":{"920":{"position":[[1181,7]]}}}],["4",{"_index":922,"t":{"717":{"position":[[775,1]]},"719":{"position":[[393,1]]},"904":{"position":[[1123,1],[1145,1]]},"906":{"position":[[1257,1],[1279,1]]},"908":{"position":[[1292,1],[1314,1]]},"910":{"position":[[1400,1],[1422,1]]},"912":{"position":[[2132,1],[2159,1]]},"914":{"position":[[2167,1],[2194,1]]},"930":{"position":[[1435,1],[1457,1]]}}}],["4.5.2",{"_index":901,"t":{"706":{"position":[[224,8]]}}}],["45",{"_index":118,"t":{"628":{"position":[[492,3],[874,3],[1224,4],[1577,4]]},"817":{"position":[[172,4],[426,4]]},"819":{"position":[[167,4],[447,4]]},"821":{"position":[[182,4],[464,4]]},"857":{"position":[[117,4],[319,4]]},"859":{"position":[[127,4],[355,4]]},"861":{"position":[[127,4],[374,4]]},"868":{"position":[[126,5],[342,5]]},"870":{"position":[[136,5],[378,5]]},"882":{"position":[[157,4],[392,4]]},"884":{"position":[[152,4],[413,4]]},"886":{"position":[[167,4],[430,4]]}}}],["5",{"_index":713,"t":{"675":{"position":[[80,3]]},"879":{"position":[[180,2],[369,2]]}}}],["5.6.10",{"_index":1219,"t":{"891":{"position":[[773,9]]}}}],["53",{"_index":190,"t":{"630":{"position":[[1177,3],[1731,4]]}}}],["6",{"_index":714,"t":{"675":{"position":[[84,3]]}}}],["6.9.0",{"_index":1152,"t":{"828":{"position":[[2207,8]]}}}],["60000",{"_index":247,"t":{"632":{"position":[[810,6],[890,7],[1333,6],[1413,7]]}}}],["8",{"_index":1165,"t":{"877":{"position":[[366,2]]},"891":{"position":[[853,2]]}}}],["8bb6118f8fd6935ad0876a3be34a717d32708ffd",{"_index":1041,"t":{"751":{"position":[[193,43]]},"770":{"position":[[216,43]]},"803":{"position":[[163,43]]}}}],["_err",{"_index":911,"t":{"714":{"position":[[54,6],[148,6]]},"717":{"position":[[240,6],[377,6],[718,6],[853,6]]},"719":{"position":[[314,6]]},"721":{"position":[[493,6]]},"723":{"position":[[384,6]]},"725":{"position":[[706,6]]}}}],["a,b,c,d",{"_index":839,"t":{"699":{"position":[[31,7]]}}}],["a.j",{"_index":1073,"t":{"759":{"position":[[44,4]]},"778":{"position":[[40,4]]},"811":{"position":[[32,4]]}}}],["aberta",{"_index":214,"t":{"632":{"position":[[142,7]]}}}],["abov",{"_index":972,"t":{"733":{"position":[[708,5]]}}}],["accept",{"_index":891,"t":{"703":{"position":[[976,6]]}}}],["access",{"_index":850,"t":{"701":{"position":[[357,6]]},"710":{"position":[[57,7]]},"712":{"position":[[51,7]]},"739":{"position":[[78,6]]},"904":{"position":[[221,7]]},"906":{"position":[[331,7]]},"908":{"position":[[349,7]]},"910":{"position":[[331,7]]},"912":{"position":[[637,7]]},"914":{"position":[[655,7]]},"916":{"position":[[146,6]]},"930":{"position":[[349,7]]}}}],["accord",{"_index":679,"t":{"670":{"position":[[2435,9]]}}}],["accordingli",{"_index":633,"t":{"670":{"position":[[760,12]]}}}],["acima",{"_index":266,"t":{"632":{"position":[[1777,5],[2009,5],[2347,5],[2577,5]]}}}],["ack",{"_index":746,"t":{"677":{"position":[[641,3]]}}}],["acompanhamento",{"_index":394,"t":{"638":{"position":[[524,14]]}}}],["action",{"_index":544,"t":{"658":{"position":[[101,7],[238,7],[335,7],[530,7]]}}}],["activ",{"_index":1380,"t":{"920":{"position":[[1289,6]]}}}],["ad",{"_index":1399,"t":{"924":{"position":[[122,6]]}}}],["add(group",{"_index":1081,"t":{"766":{"position":[[0,10]]},"768":{"position":[[0,10]]},"770":{"position":[[0,10]]},"772":{"position":[[0,10]]},"774":{"position":[[0,10]]},"778":{"position":[[0,10]]}}}],["addit",{"_index":568,"t":{"660":{"position":[[228,10]]},"670":{"position":[[599,10]]},"672":{"position":[[245,10],[296,10]]},"694":{"position":[[251,8]]},"701":{"position":[[3,8]]},"703":{"position":[[905,8]]},"731":{"position":[[3,8]]}}}],["address",{"_index":1389,"t":{"920":{"position":[[1520,10]]}}}],["adicionai",{"_index":127,"t":{"628":{"position":[[626,10],[1390,10]]},"630":{"position":[[1311,10],[1897,10]]},"918":{"position":[[496,11]]}}}],["adicionalment",{"_index":288,"t":{"632":{"position":[[2766,15]]}}}],["adquirir",{"_index":275,"t":{"632":{"position":[[2221,8]]}}}],["advanc",{"_index":951,"t":{"729":{"position":[[80,8]]}}}],["affect",{"_index":1310,"t":{"912":{"position":[[2317,8]]},"914":{"position":[[2352,8]]}}}],["affectedrow",{"_index":795,"t":{"692":{"position":[[222,13]]},"721":{"position":[[242,12],[582,13]]},"723":{"position":[[478,13],[605,13]]},"725":{"position":[[795,13]]},"912":{"position":[[485,15]]},"914":{"position":[[503,15]]}}}],["ag",{"_index":117,"t":{"628":{"position":[[484,5],[853,5],[1216,5],[1556,5]]},"630":{"position":[[1150,5],[1704,5]]},"634":{"position":[[412,5],[1030,5]]},"817":{"position":[[106,6],[360,6]]},"819":{"position":[[101,6],[381,6]]},"821":{"position":[[116,6],[398,6]]},"831":{"position":[[97,5],[337,5]]},"833":{"position":[[92,5],[358,5]]},"835":{"position":[[107,5],[375,5]]},"857":{"position":[[109,5],[311,5]]},"859":{"position":[[119,5],[347,5]]},"861":{"position":[[119,5],[366,5]]},"868":{"position":[[89,6],[305,6]]},"870":{"position":[[99,6],[341,6]]},"882":{"position":[[121,5],[356,5]]},"884":{"position":[[116,5],[377,5]]},"886":{"position":[[131,5],[394,5]]},"895":{"position":[[80,5],[287,5]]},"897":{"position":[[90,5],[323,5]]}}}],["again",{"_index":699,"t":{"672":{"position":[[396,6]]},"783":{"position":[[246,6]]}}}],["aim",{"_index":559,"t":{"660":{"position":[[7,4]]}}}],["ajuda",{"_index":206,"t":{"632":{"position":[[31,5]]},"636":{"position":[[1298,5],[1315,6]]}}}],["algo",{"_index":281,"t":{"632":{"position":[[2403,4],[2634,4]]},"640":{"position":[[14,4]]}}}],["algorithm",{"_index":684,"t":{"670":{"position":[[2592,9]]}}}],["algoritm",{"_index":700,"t":{"672":{"position":[[502,9]]}}}],["allow",{"_index":484,"t":{"648":{"position":[[181,6]]}}}],["alongsid",{"_index":500,"t":{"650":{"position":[[90,9]]}}}],["alterada",{"_index":1321,"t":{"918":{"position":[[140,8]]}}}],["alternativament",{"_index":272,"t":{"632":{"position":[[2170,17]]}}}],["alway",{"_index":581,"t":{"664":{"position":[[192,6]]},"670":{"position":[[1488,6],[2239,6]]},"912":{"position":[[1793,6]]},"914":{"position":[[1830,6]]}}}],["além",{"_index":176,"t":{"630":{"position":[[472,4]]}}}],["amazon",{"_index":1052,"t":{"755":{"position":[[56,6],[113,6],[406,7],[762,7]]},"757":{"position":[[36,6],[138,6]]},"774":{"position":[[52,6],[109,6],[429,7],[962,7]]},"776":{"position":[[36,6],[138,6]]},"807":{"position":[[44,6],[101,6],[376,7],[801,7]]},"809":{"position":[[36,6],[138,6]]}}}],["analisador",{"_index":1316,"t":{"918":{"position":[[64,10]]}}}],["anoth",{"_index":618,"t":{"670":{"position":[[372,7]]}}}],["answer",{"_index":1311,"t":{"916":{"position":[[22,7]]},"924":{"position":[[84,7]]},"926":{"position":[[84,7]]}}}],["anterior",{"_index":212,"t":{"632":{"position":[[119,8]]}}}],["ao",{"_index":215,"t":{"632":{"position":[[150,2]]},"636":{"position":[[890,2],[1198,2]]},"918":{"position":[[167,2]]}}}],["apena",{"_index":349,"t":{"636":{"position":[[370,6]]}}}],["api",{"_index":28,"t":{"622":{"position":[[247,3]]},"634":{"position":[[32,4]]},"638":{"position":[[45,3]]},"660":{"position":[[76,3]]},"670":{"position":[[1303,3]]},"731":{"position":[[79,3]]},"918":{"position":[[132,3],[390,3]]}}}],["aplica",{"_index":347,"t":{"636":{"position":[[297,7],[359,7]]}}}],["aplicada",{"_index":380,"t":{"638":{"position":[[267,9]]}}}],["approach",{"_index":1363,"t":{"920":{"position":[[817,11]]}}}],["aqui",{"_index":84,"t":{"626":{"position":[[270,5]]}}}],["arg",{"_index":1179,"t":{"877":{"position":[[772,5]]}}}],["argument",{"_index":781,"t":{"688":{"position":[[89,9]]}}}],["argumento",{"_index":381,"t":{"638":{"position":[[279,10]]}}}],["arguments[1",{"_index":1181,"t":{"877":{"position":[[941,13],[1149,13]]}}}],["arguments[2",{"_index":1182,"t":{"877":{"position":[[965,13]]}}}],["arquivo",{"_index":402,"t":{"640":{"position":[[41,7]]}}}],["array",{"_index":335,"t":{"636":{"position":[[89,6],[874,5],[883,6],[905,5],[1182,5],[1191,6],[1213,5]]},"677":{"position":[[230,5],[318,5]]},"692":{"position":[[536,5]]},"697":{"position":[[398,5],[942,5]]},"699":{"position":[[139,5],[148,6]]},"717":{"position":[[11,5]]},"861":{"position":[[614,5]]},"877":{"position":[[824,7],[840,7]]}}}],["array.isarray(arguments[1",{"_index":1180,"t":{"877":{"position":[[851,29]]}}}],["asc",{"_index":1259,"t":{"904":{"position":[[926,5]]},"906":{"position":[[1078,5]]},"908":{"position":[[1115,5]]},"910":{"position":[[1107,3],[1161,3]]},"912":{"position":[[1558,4]]},"914":{"position":[[1595,4]]},"930":{"position":[[1144,3],[1198,3]]}}}],["ascertain",{"_index":1371,"t":{"920":{"position":[[1045,9]]}}}],["ask",{"_index":604,"t":{"670":{"position":[[43,3]]},"916":{"position":[[42,5]]}}}],["associada",{"_index":226,"t":{"632":{"position":[[282,9]]}}}],["assur",{"_index":1343,"t":{"920":{"position":[[162,6]]}}}],["async",{"_index":294,"t":{"634":{"position":[[72,5],[121,5],[1211,5]]},"735":{"position":[[0,5],[224,5]]},"828":{"position":[[92,5],[1962,5]]},"904":{"position":[[296,6]]},"906":{"position":[[310,6]]},"908":{"position":[[328,6]]},"910":{"position":[[310,6]]},"912":{"position":[[616,6]]},"914":{"position":[[634,6]]},"930":{"position":[[328,6]]}}}],["asynchron",{"_index":631,"t":{"670":{"position":[[703,14]]}}}],["ataqu",{"_index":167,"t":{"630":{"position":[[344,7]]}}}],["atenção",{"_index":1089,"t":{"766":{"position":[[767,7]]},"768":{"position":[[851,7]]},"770":{"position":[[857,7]]},"772":{"position":[[1046,7]]},"774":{"position":[[1364,7]]},"799":{"position":[[555,7]]},"801":{"position":[[639,7]]},"803":{"position":[[645,7]]},"805":{"position":[[834,7]]},"807":{"position":[[1138,7]]}}}],["atingido",{"_index":261,"t":{"632":{"position":[[1605,9]]}}}],["atravé",{"_index":393,"t":{"638":{"position":[[513,7]]}}}],["attach",{"_index":821,"t":{"694":{"position":[[499,6]]}}}],["atualização",{"_index":22,"t":{"622":{"position":[[179,11]]}}}],["auth",{"_index":606,"t":{"670":{"position":[[83,4],[801,4],[952,6],[1869,6]]},"672":{"position":[[702,5],[842,5],[982,5]]},"891":{"position":[[119,4]]}}}],["auth.doublesha1('pass123",{"_index":1205,"t":{"891":{"position":[[235,27]]}}}],["auth.verifytoken",{"_index":1207,"t":{"891":{"position":[[279,17]]}}}],["authcallback",{"_index":1222,"t":{"891":{"position":[[948,13]]}}}],["authent",{"_index":570,"t":{"660":{"position":[[285,14]]},"670":{"position":[[211,14],[610,14]]},"672":{"position":[[34,14],[159,14],[256,14],[412,14]]},"891":{"position":[[962,13]]},"918":{"position":[[737,14]]}}}],["authenticate(param",{"_index":1202,"t":{"891":{"position":[[169,20]]}}}],["authentication::native41",{"_index":680,"t":{"670":{"position":[[2448,24]]}}}],["authnextfactor",{"_index":691,"t":{"672":{"position":[[90,14]]}}}],["author",{"_index":1148,"t":{"828":{"position":[[2144,9]]}}}],["authplugin",{"_index":608,"t":{"670":{"position":[[103,11],[928,12],[2480,11]]},"672":{"position":[[661,12]]}}}],["authswitchhandl",{"_index":653,"t":{"670":{"position":[[1318,17],[1778,18],[2508,17]]}}}],["authswitchrequest",{"_index":669,"t":{"670":{"position":[[2130,17]]}}}],["auto",{"_index":463,"t":{"646":{"position":[[709,4]]}}}],["auto_incr",{"_index":1249,"t":{"904":{"position":[[548,15]]},"906":{"position":[[687,15]]},"908":{"position":[[724,15]]},"910":{"position":[[713,15]]},"912":{"position":[[993,15]]},"914":{"position":[[1030,15]]},"930":{"position":[[750,15]]}}}],["automat",{"_index":1193,"t":{"879":{"position":[[270,13]]}}}],["automaticament",{"_index":269,"t":{"632":{"position":[[1870,15],[2103,15]]}}}],["auxiliar",{"_index":171,"t":{"630":{"position":[[393,8]]}}}],["avail",{"_index":514,"t":{"652":{"position":[[239,9]]},"703":{"position":[[1080,10]]},"786":{"position":[[704,9]]},"788":{"position":[[753,9]]},"790":{"position":[[770,9]]},"817":{"position":[[758,9]]},"819":{"position":[[807,9]]},"821":{"position":[[824,9]]},"831":{"position":[[730,9]]},"833":{"position":[[779,9]]},"835":{"position":[[796,9]]},"846":{"position":[[627,9]]},"848":{"position":[[691,9]]},"857":{"position":[[556,9]]},"859":{"position":[[620,9]]},"861":{"position":[[667,9]]},"868":{"position":[[665,9]]},"870":{"position":[[729,9]]},"882":{"position":[[639,9]]},"884":{"position":[[688,9]]},"886":{"position":[[705,9]]},"895":{"position":[[647,9]]},"897":{"position":[[711,9]]},"920":{"position":[[1330,10]]}}}],["avg",{"_index":379,"t":{"638":{"position":[[254,5]]}}}],["await",{"_index":101,"t":{"628":{"position":[[273,5],[411,5],[785,5]]},"630":{"position":[[897,5],[1080,5]]},"632":{"position":[[1806,5],[2366,5],[2422,5]]},"634":{"position":[[78,6],[203,5],[342,5],[802,5],[960,5],[1484,5]]},"636":{"position":[[454,5],[733,5]]},"735":{"position":[[82,5],[155,5],[204,5],[398,5],[516,5]]},"737":{"position":[[356,5]]},"747":{"position":[[124,5]]},"749":{"position":[[128,5]]},"751":{"position":[[128,5]]},"753":{"position":[[146,5]]},"755":{"position":[[315,5],[488,5],[547,5]]},"766":{"position":[[286,5]]},"768":{"position":[[327,5]]},"770":{"position":[[331,5]]},"772":{"position":[[426,5]]},"774":{"position":[[505,5],[654,5],[713,5]]},"786":{"position":[[175,5]]},"788":{"position":[[170,5]]},"790":{"position":[[185,5]]},"799":{"position":[[194,5]]},"801":{"position":[[235,5]]},"803":{"position":[[239,5]]},"805":{"position":[[334,5]]},"807":{"position":[[413,5],[545,5],[604,5]]},"817":{"position":[[202,5]]},"819":{"position":[[197,5]]},"821":{"position":[[212,5]]},"828":{"position":[[126,5],[292,5],[373,5],[675,5],[930,5],[1183,5],[1364,5],[2007,7]]},"831":{"position":[[188,5]]},"833":{"position":[[183,5]]},"835":{"position":[[198,5]]},"846":{"position":[[138,5]]},"848":{"position":[[148,5]]},"857":{"position":[[145,5]]},"859":{"position":[[155,5]]},"861":{"position":[[155,5]]},"868":{"position":[[157,5]]},"870":{"position":[[167,5]]},"882":{"position":[[185,5]]},"884":{"position":[[180,5]]},"886":{"position":[[195,5]]},"895":{"position":[[148,5]]},"897":{"position":[[158,5]]},"904":{"position":[[392,5],[487,5],[656,5],[864,5],[1062,5]]},"906":{"position":[[425,5],[511,5],[616,5],[795,5],[1013,5],[1208,5]]},"908":{"position":[[462,5],[548,5],[653,5],[832,5],[1050,5],[1243,5]]},"910":{"position":[[451,5],[537,5],[642,5],[821,5],[1038,5],[1351,5]]},"912":{"position":[[731,5],[817,5],[922,5],[1101,5],[1337,5],[1454,5],[1618,5],[2083,5]]},"914":{"position":[[768,5],[854,5],[959,5],[1138,5],[1374,5],[1491,5],[1655,5],[2118,5]]},"926":{"position":[[205,5],[573,5],[930,5],[1182,5],[1525,5]]},"930":{"position":[[488,5],[574,5],[679,5],[858,5],[1075,5],[1386,5]]}}}],["await.j",{"_index":1119,"t":{"828":{"position":[[0,8],[2062,11]]}}}],["b",{"_index":459,"t":{"646":{"position":[[622,1]]},"699":{"position":[[197,1]]}}}],["b.j",{"_index":1074,"t":{"759":{"position":[[49,4]]},"778":{"position":[[45,4]]},"811":{"position":[[37,4]]}}}],["babel",{"_index":1151,"t":{"828":{"position":[[2194,6]]}}}],["babelrc",{"_index":1121,"t":{"828":{"position":[[15,8]]}}}],["back",{"_index":629,"t":{"670":{"position":[[659,4]]}}}],["backend",{"_index":1006,"t":{"741":{"position":[[118,8],[166,8]]}}}],["backward",{"_index":1344,"t":{"920":{"position":[[169,8],[281,8]]}}}],["badg",{"_index":508,"t":{"652":{"position":[[18,6]]},"920":{"position":[[14,6]]}}}],["banco",{"_index":97,"t":{"628":{"position":[[239,5],[1015,5]]},"630":{"position":[[863,5],[1455,5]]},"634":{"position":[[169,5],[304,5],[922,5]]}}}],["bar",{"_index":885,"t":{"703":{"position":[[730,6]]},"733":{"position":[[241,6],[528,6]]}}}],["base",{"_index":959,"t":{"731":{"position":[[73,5]]},"920":{"position":[[983,5]]}}}],["baseado",{"_index":24,"t":{"622":{"position":[[197,7]]}}}],["basic",{"_index":956,"t":{"729":{"position":[[608,5]]}}}],["befor",{"_index":557,"t":{"658":{"position":[[474,6]]},"904":{"position":[[1651,6]]}}}],["begin",{"_index":945,"t":{"725":{"position":[[553,5]]},"912":{"position":[[1518,5]]},"914":{"position":[[1555,5]]}}}],["behavior",{"_index":817,"t":{"694":{"position":[[363,8]]}}}],["below",{"_index":1154,"t":{"844":{"position":[[13,5]]},"855":{"position":[[13,5]]},"866":{"position":[[13,5]]},"893":{"position":[[13,5]]}}}],["bem",{"_index":292,"t":{"634":{"position":[[58,3]]}}}],["benchmark",{"_index":601,"t":{"668":{"position":[[63,10],[85,10],[115,10]]}}}],["beta",{"_index":1228,"t":{"891":{"position":[[1222,7],[1239,7]]}}}],["better",{"_index":565,"t":{"660":{"position":[[170,6]]},"675":{"position":[[449,6]]},"783":{"position":[[336,6]]}}}],["between",{"_index":688,"t":{"670":{"position":[[2648,7]]},"706":{"position":[[107,7]]}}}],["biblioteca",{"_index":340,"t":{"636":{"position":[[166,10]]}}}],["bin.000007",{"_index":1026,"t":{"743":{"position":[[311,12]]}}}],["binari",{"_index":52,"t":{"624":{"position":[[153,7]]},"660":{"position":[[364,6]]},"692":{"position":[[584,6]]},"918":{"position":[[622,6]]}}}],["bind",{"_index":593,"t":{"666":{"position":[[99,8],[173,8]]},"681":{"position":[[4,4]]}}}],["binlog",{"_index":599,"t":{"666":{"position":[[249,6]]}}}],["binlogpo",{"_index":1027,"t":{"743":{"position":[[324,10]]}}}],["binlogstream",{"_index":1017,"t":{"743":{"position":[[100,12]]}}}],["binlogstream.pip",{"_index":1030,"t":{"743":{"position":[[381,18]]}}}],["binário",{"_index":51,"t":{"624":{"position":[[145,7]]},"918":{"position":[[601,7]]}}}],["blob",{"_index":662,"t":{"670":{"position":[[1607,4]]}}}],["block",{"_index":523,"t":{"654":{"position":[[178,6]]},"743":{"position":[[362,8]]},"926":{"position":[[137,6],[435,6],[769,6],[1154,6],[1497,6]]}}}],["bluebird",{"_index":307,"t":{"634":{"position":[[677,11],[696,8],[710,11],[757,10],[893,9]]}}}],["boolean",{"_index":762,"t":{"681":{"position":[[105,7]]},"694":{"position":[[146,7]]}}}],["both",{"_index":1408,"t":{"924":{"position":[[1417,4],[1748,4]]},"926":{"position":[[1343,4],[1682,4]]}}}],["bound",{"_index":1346,"t":{"920":{"position":[[230,5]]}}}],["branch",{"_index":426,"t":{"646":{"position":[[154,6]]}}}],["browser",{"_index":441,"t":{"646":{"position":[[399,7]]}}}],["buffer",{"_index":627,"t":{"670":{"position":[[630,8],[1667,8]]},"681":{"position":[[222,6]]}}}],["buffer.from",{"_index":1040,"t":{"751":{"position":[[180,12]]},"770":{"position":[[203,12]]},"803":{"position":[[150,12]]}}}],["buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd",{"_index":1043,"t":{"751":{"position":[[384,55]]},"770":{"position":[[583,55]]},"803":{"position":[[429,55]]}}}],["bug",{"_index":1388,"t":{"920":{"position":[[1488,4]]}}}],["build",{"_index":551,"t":{"658":{"position":[[266,5],[306,5]]}}}],["built",{"_index":407,"t":{"642":{"position":[[16,5]]}}}],["bun",{"_index":1071,"t":{"757":{"position":[[119,3]]},"776":{"position":[[119,3]]},"809":{"position":[[119,3]]}}}],["byte",{"_index":813,"t":{"694":{"position":[[242,5]]}}}],["bytes/sec",{"_index":873,"t":{"703":{"position":[[240,9]]}}}],["c",{"_index":188,"t":{"630":{"position":[[1169,1],[1723,1]]},"699":{"position":[[214,1]]},"737":{"position":[[83,1]]},"828":{"position":[[122,1],[1592,1]]}}}],["c.end",{"_index":992,"t":{"737":{"position":[[310,8]]},"828":{"position":[[936,8],[1824,8]]}}}],["c.execute('select",{"_index":989,"t":{"737":{"position":[[251,17]]},"828":{"position":[[484,17],[569,17],[695,17],[727,17],[1765,17]]}}}],["c.query('show",{"_index":987,"t":{"737":{"position":[[187,13]]},"828":{"position":[[298,13],[1701,13]]}}}],["c.query('som",{"_index":1125,"t":{"828":{"position":[[379,13]]}}}],["ca",{"_index":1049,"t":{"753":{"position":[[294,3],[575,3]]},"755":{"position":[[202,2],[214,2]]},"757":{"position":[[153,2]]},"772":{"position":[[317,3],[774,3]]},"774":{"position":[[198,2],[210,2]]},"776":{"position":[[153,2]]},"805":{"position":[[264,3],[620,3]]},"807":{"position":[[190,2],[202,2]]},"809":{"position":[[153,2]]}}}],["cach",{"_index":199,"t":{"630":{"position":[[2042,6]]},"675":{"position":[[215,6],[256,6],[322,5],[416,5],[480,5]]},"677":{"position":[[52,5]]},"679":{"position":[[36,6],[63,6],[173,5]]},"783":{"position":[[282,5]]}}}],["call",{"_index":624,"t":{"670":{"position":[[520,4],[560,4],[1549,5],[2556,6]]},"675":{"position":[[209,5]]},"725":{"position":[[90,4],[630,5],[1034,5]]}}}],["callback",{"_index":92,"t":{"628":{"position":[[151,8]]},"630":{"position":[[788,8]]},"632":{"position":[[431,8],[1722,8],[2298,8]]},"636":{"position":[[432,8],[692,8]]},"670":{"position":[[1443,9]]},"677":{"position":[[598,8]]},"692":{"position":[[453,9]]}}}],["callback'",{"_index":1401,"t":{"924":{"position":[[470,10],[822,10],[1226,10],[1561,10]]}}}],["callback(nul",{"_index":664,"t":{"670":{"position":[[1646,14]]}}}],["callback.j",{"_index":1036,"t":{"747":{"position":[[51,11]]},"749":{"position":[[55,11]]},"751":{"position":[[55,11]]},"753":{"position":[[55,11]]},"755":{"position":[[242,11]]},"766":{"position":[[53,11]]},"768":{"position":[[51,11]]},"770":{"position":[[51,11]]},"772":{"position":[[51,11]]},"774":{"position":[[238,11]]},"786":{"position":[[47,11]]},"788":{"position":[[42,11]]},"790":{"position":[[57,11]]},"799":{"position":[[45,11]]},"801":{"position":[[43,11]]},"803":{"position":[[43,11]]},"805":{"position":[[43,11]]},"807":{"position":[[230,11]]},"817":{"position":[[47,11]]},"819":{"position":[[42,11]]},"821":{"position":[[57,11]]},"831":{"position":[[47,11]]},"833":{"position":[[42,11]]},"835":{"position":[[57,11]]},"846":{"position":[[30,11]]},"848":{"position":[[40,11]]},"857":{"position":[[30,11]]},"859":{"position":[[40,11]]},"861":{"position":[[40,11]]},"868":{"position":[[30,11]]},"870":{"position":[[40,11]]},"882":{"position":[[47,11]]},"884":{"position":[[42,11]]},"886":{"position":[[57,11]]},"895":{"position":[[30,11]]},"897":{"position":[[40,11]]}}}],["candid",{"_index":1367,"t":{"920":{"position":[[859,9]]}}}],["capabilityflag",{"_index":790,"t":{"692":{"position":[[91,15]]},"877":{"position":[[369,16]]},"891":{"position":[[859,16],[889,16],[919,16]]}}}],["case",{"_index":655,"t":{"670":{"position":[[1461,5]]},"703":{"position":[[352,4]]},"755":{"position":[[148,4]]},"774":{"position":[[144,4]]},"807":{"position":[[136,4]]}}}],["catalog",{"_index":1224,"t":{"891":{"position":[[1139,8]]}}}],["catch",{"_index":132,"t":{"628":{"position":[[679,5],[905,5]]},"630":{"position":[[1364,5]]},"632":{"position":[[1935,5]]},"636":{"position":[[979,5]]},"747":{"position":[[203,5]]},"749":{"position":[[248,5]]},"751":{"position":[[252,5]]},"753":{"position":[[347,5]]},"755":{"position":[[426,5],[591,5]]},"766":{"position":[[373,5]]},"768":{"position":[[414,5]]},"770":{"position":[[418,5]]},"772":{"position":[[513,5]]},"774":{"position":[[592,5],[758,5]]},"786":{"position":[[258,5]]},"788":{"position":[[279,5]]},"790":{"position":[[296,5]]},"799":{"position":[[264,5]]},"801":{"position":[[305,5]]},"803":{"position":[[309,5]]},"805":{"position":[[404,5]]},"807":{"position":[[483,5],[642,5]]},"817":{"position":[[285,5]]},"819":{"position":[[306,5]]},"821":{"position":[[323,5]]},"828":{"position":[[415,5]]},"831":{"position":[[271,5]]},"833":{"position":[[292,5]]},"835":{"position":[[309,5]]},"846":{"position":[[211,5]]},"848":{"position":[[247,5]]},"857":{"position":[[216,5]]},"859":{"position":[[252,5]]},"861":{"position":[[271,5]]},"868":{"position":[[230,5]]},"870":{"position":[[266,5]]},"882":{"position":[[266,5]]},"884":{"position":[[287,5]]},"886":{"position":[[304,5]]},"895":{"position":[[221,5]]},"897":{"position":[[257,5]]},"926":{"position":[[131,5],[276,5],[429,5],[603,5],[763,5],[974,5],[1148,5],[1244,5],[1491,5],[1585,5]]}}}],["catch((err",{"_index":647,"t":{"670":{"position":[[1176,12]]},"733":{"position":[[620,12]]},"828":{"position":[[1426,12]]}}}],["catch(console.log",{"_index":327,"t":{"634":{"position":[[1876,19]]}}}],["catch(funct",{"_index":1144,"t":{"828":{"position":[[1880,15]]}}}],["caus",{"_index":1383,"t":{"920":{"position":[[1407,5]]}}}],["caution",{"_index":470,"t":{"646":{"position":[[816,7]]},"920":{"position":[[387,7]]}}}],["cb",{"_index":665,"t":{"670":{"position":[[1835,3]]},"703":{"position":[[754,4]]},"891":{"position":[[190,3]]}}}],["cb(err",{"_index":671,"t":{"670":{"position":[[2196,8]]}}}],["cb(null",{"_index":667,"t":{"670":{"position":[[2065,8]]},"703":{"position":[[874,8]]},"891":{"position":[[391,9],[455,8]]}}}],["cd",{"_index":430,"t":{"646":{"position":[[189,2],[643,2]]}}}],["cert",{"_index":1048,"t":{"753":{"position":[[245,5],[526,5]]},"755":{"position":[[217,4]]},"757":{"position":[[26,5],[156,4]]},"772":{"position":[[268,5],[725,5]]},"774":{"position":[[213,4]]},"776":{"position":[[26,5],[156,4]]},"805":{"position":[[215,5],[571,5]]},"807":{"position":[[205,4]]},"809":{"position":[[26,5],[156,4]]}}}],["cert.pem",{"_index":1045,"t":{"753":{"position":[[76,8],[283,10],[326,11],[564,10],[607,11]]},"755":{"position":[[205,8]]},"772":{"position":[[72,8],[306,10],[349,11],[763,10],[806,11]]},"774":{"position":[[201,8]]},"805":{"position":[[64,8],[253,10],[296,11],[609,10],[652,11]]},"807":{"position":[[193,8]]}}}],["certs/ca",{"_index":1044,"t":{"753":{"position":[[67,8]]},"772":{"position":[[63,8]]},"805":{"position":[[55,8]]}}}],["chamar",{"_index":184,"t":{"630":{"position":[[1000,6],[1586,6]]}}}],["chang",{"_index":442,"t":{"646":{"position":[[420,7]]},"650":{"position":[[39,7],[106,8],[211,8],[227,6],[305,7],[345,7],[365,6]]},"721":{"position":[[24,7]]},"723":{"position":[[24,7]]},"725":{"position":[[24,7]]},"920":{"position":[[301,7],[471,7],[747,8],[930,7]]}}}],["changedrow",{"_index":929,"t":{"721":{"position":[[148,11],[657,12]]},"723":{"position":[[554,12],[680,12]]},"725":{"position":[[870,12]]},"912":{"position":[[554,14]]},"914":{"position":[[572,14]]}}}],["changeus",{"_index":748,"t":{"677":{"position":[[749,13]]},"703":{"position":[[963,12]]}}}],["characterset",{"_index":789,"t":{"692":{"position":[[77,13]]},"877":{"position":[[352,13]]},"891":{"position":[[839,13],[1247,13]]}}}],["check",{"_index":537,"t":{"658":{"position":[[13,5],[119,5],[158,6]]},"662":{"position":[[7,5]]},"664":{"position":[[57,5]]},"714":{"position":[[374,5]]},"729":{"position":[[13,5],[372,8],[477,8]]}}}],["checkout",{"_index":458,"t":{"646":{"position":[[612,8]]}}}],["ci",{"_index":432,"t":{"646":{"position":[[240,2],[679,2]]}}}],["class",{"_index":16,"t":{"622":{"position":[[113,6]]},"729":{"position":[[628,5]]},"904":{"position":[[1428,5],[1669,5]]}}}],["classif",{"_index":1374,"t":{"920":{"position":[[1098,15]]}}}],["classifi",{"_index":1357,"t":{"920":{"position":[[618,10],[1354,10]]}}}],["clear",{"_index":550,"t":{"658":{"position":[[256,5],[292,5]]}}}],["cli",{"_index":453,"t":{"646":{"position":[[541,3]]},"828":{"position":[[2201,5]]}}}],["client",{"_index":34,"t":{"622":{"position":[[300,7]]},"624":{"position":[[0,7]]},"628":{"position":[[171,7],[950,7]]},"634":{"position":[[579,7]]},"660":{"position":[[384,6]]},"666":{"position":[[68,6],[143,7],[220,6]]},"670":{"position":[[51,6],[1577,6],[2656,6]]},"672":{"position":[[68,6]]},"692":{"position":[[276,6],[383,7]]},"694":{"position":[[318,7]]},"697":{"position":[[171,6]]},"741":{"position":[[237,6],[281,6]]}}}],["clientflag",{"_index":1157,"t":{"877":{"position":[[62,11]]}}}],["clientflags.compress",{"_index":1167,"t":{"877":{"position":[[397,21]]}}}],["clientplugindata(password1",{"_index":707,"t":{"672":{"position":[[789,27]]}}}],["clientplugindata(password2",{"_index":709,"t":{"672":{"position":[[929,27]]}}}],["clientplugindata(password3",{"_index":711,"t":{"672":{"position":[[1069,27]]}}}],["clone",{"_index":456,"t":{"646":{"position":[[557,5]]}}}],["close",{"_index":718,"t":{"675":{"position":[[250,5]]},"677":{"position":[[72,6],[635,5]]},"679":{"position":[[187,7]]},"694":{"position":[[405,5]]},"920":{"position":[[895,5]]}}}],["co",{"_index":983,"t":{"737":{"position":[[39,2],[353,2]]},"828":{"position":[[1548,2],[2004,2]]}}}],["co(funct",{"_index":985,"t":{"737":{"position":[[59,12]]},"828":{"position":[[1568,12]]}}}],["co.j",{"_index":1120,"t":{"828":{"position":[[9,5]]}}}],["code",{"_index":522,"t":{"654":{"position":[[173,4]]},"670":{"position":[[821,4]]},"694":{"position":[[230,4]]},"729":{"position":[[24,4]]},"757":{"position":[[98,4]]},"776":{"position":[[98,4]]},"809":{"position":[[98,4]]},"891":{"position":[[425,5],[498,5],[683,5]]}}}],["codificaçõ",{"_index":47,"t":{"624":{"position":[[105,12]]}}}],["collat",{"_index":1339,"t":{"918":{"position":[[694,9]]}}}],["column",{"_index":731,"t":{"677":{"position":[[239,6],[334,6],[480,8]]},"877":{"position":[[832,7],[955,7],[1029,9],[1066,9]]}}}],["columnlength",{"_index":1231,"t":{"891":{"position":[[1265,13]]}}}],["columntyp",{"_index":1233,"t":{"891":{"position":[[1284,11]]}}}],["coluna",{"_index":331,"t":{"636":{"position":[[19,7]]}}}],["com",{"_index":33,"t":{"622":{"position":[[294,3]]},"624":{"position":[[27,3]]},"628":{"position":[[233,3],[1009,3]]},"630":{"position":[[0,3],[857,3],[1449,3]]},"632":{"position":[[72,3],[2408,3],[2639,3]]},"634":{"position":[[62,3],[163,3]]},"636":{"position":[[27,3]]},"638":{"position":[[39,3],[476,3]]},"918":{"position":[[241,3],[384,3]]}}}],["come",{"_index":726,"t":{"677":{"position":[[37,5]]}}}],["começar",{"_index":405,"t":{"640":{"position":[[103,8]]}}}],["command",{"_index":556,"t":{"658":{"position":[[466,7]]},"692":{"position":[[203,8]]},"694":{"position":[[6,7],[162,7],[222,7],[291,8]]},"828":{"position":[[842,8]]},"920":{"position":[[547,7]]}}}],["commandcod",{"_index":811,"t":{"694":{"position":[[190,13]]}}}],["commit",{"_index":558,"t":{"658":{"position":[[495,7]]}}}],["commonli",{"_index":1312,"t":{"916":{"position":[[33,8]]}}}],["como",{"_index":163,"t":{"630":{"position":[[270,4]]},"632":{"position":[[1654,4]]},"634":{"position":[[768,4]]},"636":{"position":[[81,4]]},"638":{"position":[[139,4],[196,4],[596,4]]},"640":{"position":[[98,4]]}}}],["compartilhado",{"_index":1327,"t":{"918":{"position":[[293,13]]}}}],["compat",{"_index":524,"t":{"654":{"position":[[189,10]]},"757":{"position":[[103,10]]},"776":{"position":[[103,10]]},"809":{"position":[[103,10]]},"920":{"position":[[178,14],[290,10],[1122,13]]}}}],["compatívei",{"_index":32,"t":{"622":{"position":[[282,11]]}}}],["compatível",{"_index":367,"t":{"638":{"position":[[28,10]]},"918":{"position":[[373,10]]}}}],["compil",{"_index":481,"t":{"648":{"position":[[121,8]]},"741":{"position":[[101,9]]}}}],["complet",{"_index":448,"t":{"646":{"position":[[500,8]]},"648":{"position":[[52,8]]}}}],["complianc",{"_index":541,"t":{"658":{"position":[[49,10]]}}}],["compon",{"_index":475,"t":{"648":{"position":[[12,9],[165,11],[273,10]]},"650":{"position":[[12,9],[287,10]]},"652":{"position":[[205,10]]},"654":{"position":[[123,9],[231,10]]},"658":{"position":[[173,10]]}}}],["compress",{"_index":572,"t":{"660":{"position":[[352,11]]}}}],["compressão",{"_index":54,"t":{"624":{"position":[[176,11]]},"918":{"position":[[720,10]]}}}],["comprimida",{"_index":31,"t":{"622":{"position":[[271,10]]}}}],["concept",{"_index":952,"t":{"729":{"position":[[89,9]]}}}],["conexão",{"_index":29,"t":{"622":{"position":[[254,7]]},"628":{"position":[[225,7],[1001,7]]},"630":{"position":[[849,7],[1441,7]]},"632":{"position":[[64,7],[111,7],[314,8],[486,7],[1009,7],[1666,7],[1860,7],[2093,7],[2246,7],[2414,7],[2482,7],[2645,7],[2707,7],[2802,7]]},"634":{"position":[[155,7],[732,8],[1690,7]]},"636":{"position":[[289,7]]}}}],["conexõ",{"_index":205,"t":{"632":{"position":[[14,8],[366,8],[731,8],[837,8],[1254,8],[1360,8],[1525,8],[1591,8]]},"634":{"position":[[1597,8]]},"918":{"position":[[794,8]]}}}],["config",{"_index":585,"t":{"664":{"position":[[239,6]]},"670":{"position":[[126,6],[345,6],[1347,6]]},"672":{"position":[[354,6]]},"697":{"position":[[75,6]]},"768":{"position":[[19,7]]},"770":{"position":[[19,7]]},"772":{"position":[[19,7]]},"774":{"position":[[19,7]]},"778":{"position":[[19,7]]}}}],["configuração",{"_index":344,"t":{"636":{"position":[[258,12]]}}}],["confirm",{"_index":1397,"t":{"924":{"position":[[59,9]]},"926":{"position":[[59,9]]}}}],["conflito",{"_index":338,"t":{"636":{"position":[[129,10]]}}}],["conhecida",{"_index":369,"t":{"638":{"position":[[86,9]]}}}],["conjunto",{"_index":204,"t":{"632":{"position":[[2,8],[354,8]]},"918":{"position":[[232,8],[782,8]]}}}],["conn",{"_index":278,"t":{"632":{"position":[[2359,4],[2617,5]]},"634":{"position":[[1704,4],[1791,4]]},"636":{"position":[[447,4],[565,4]]},"670":{"position":[[832,4],[1682,4]]},"672":{"position":[[518,4]]},"710":{"position":[[128,4]]},"712":{"position":[[116,4]]},"717":{"position":[[107,4],[552,4]]},"719":{"position":[[124,4]]},"721":{"position":[[363,4]]},"723":{"position":[[214,4]]},"725":{"position":[[343,4]]},"735":{"position":[[75,4]]},"877":{"position":[[201,6]]},"891":{"position":[[599,6]]},"904":{"position":[[1450,5]]},"906":{"position":[[418,4]]},"908":{"position":[[455,4]]},"910":{"position":[[444,4]]},"912":{"position":[[724,4]]},"914":{"position":[[761,4]]},"930":{"position":[[481,4]]}}}],["conn.clos",{"_index":1218,"t":{"891":{"position":[[700,13],[1482,13]]}}}],["conn.end",{"_index":328,"t":{"634":{"position":[[1908,12]]},"735":{"position":[[210,11]]},"906":{"position":[[1214,11]]},"908":{"position":[[1249,11]]},"910":{"position":[[1357,11]]},"912":{"position":[[2089,11]]},"914":{"position":[[2124,11]]},"930":{"position":[[1392,11]]}}}],["conn.execute('select",{"_index":912,"t":{"714":{"position":[[108,20]]},"735":{"position":[[161,20]]}}}],["conn.execute>(sql",{"_index":946,"t":{"725":{"position":[[652,53]]}}}],["conn.query>('cal",{"_index":1303,"t":{"912":{"position":[[1624,45]]},"914":{"position":[[1661,45]]}}}],["conn.query('drop",{"_index":1289,"t":{"906":{"position":[[517,33]]},"908":{"position":[[554,33]]},"910":{"position":[[543,33]]},"912":{"position":[[823,33],[1343,33]]},"914":{"position":[[860,33],[1380,33]]},"930":{"position":[[580,33]]}}}],["conn.query(sql",{"_index":934,"t":{"721":{"position":[[460,32]]}}}],["conn.query(sql",{"_index":939,"t":{"723":{"position":[[349,34]]}}}],["conn.query('select",{"_index":917,"t":{"717":{"position":[[185,35]]}}}],["conn.query('show",{"_index":919,"t":{"717":{"position":[[321,33],[797,33]]}}}],["conn.query(sql",{"_index":924,"t":{"719":{"position":[[279,34]]}}}],["conn.query - -Search the documentation - - + +Search the documentation + + - + \ No newline at end of file diff --git a/pt-BR/sitemap.xml b/pt-BR/sitemap.xml index 3627c6dfab..9151939d1e 100644 --- a/pt-BR/sitemap.xml +++ b/pt-BR/sitemap.xml @@ -1 +1 @@ -https://sidorares.github.io/node-mysql2/pt-BR/searchweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docsweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/acknowledgementsweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/api-and-configurationsweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/category/procedure-call-packetweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/category/queriesweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/category/row-data-packetweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/category/sslweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/category/typescriptweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/contributingweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/contributing/websiteweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/documentationweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/documentation/authentication-switchweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/documentation/extrasweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/documentation/mysql-serverweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/documentation/prepared-statementsweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/documentation/promise-wrapperweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/documentation/typescript-examplesweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examplesweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/binlog-watcherweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/connect-over-socksweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/executeweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/mysqlproxyweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/pass-shaweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/pool-testweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/prepareweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/promise-co-awaitweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/queries/selectweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/serverweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/ssl/rds-sslweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/ssl/select-over-sslweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-classweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/procedure-call-packetweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-arrayweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/typescript/row-data/multi-statementsweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-arrayweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array-multi-statementsweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-data-packetweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/faqweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/faq/how-to-handle-errorsweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/history-and-why-mysq2weekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/stability-badgesweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/weekly0.5 \ No newline at end of file +https://sidorares.github.io/node-mysql2/pt-BR/searchweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/tagsweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/tags/create-connectionweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/tags/create-poolweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/tags/create-pool-clusterweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/tags/executeweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/tags/parametersweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/tags/placeholdersweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/tags/prepared-statementsweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/tags/queryweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/tags/rdsweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/tags/sha-1weekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/tags/socksweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/tags/sslweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/tags/uriweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docsweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/acknowledgementsweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/api-and-configurationsweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/contributingweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/contributing/websiteweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/documentationweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/documentation/authentication-switchweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/documentation/extrasweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/documentation/mysql-serverweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/documentation/prepared-statementsweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/documentation/promise-wrapperweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/documentation/typescript-examplesweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examplesweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/binlog-watcherweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/connections/create-connectionweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/connections/create-poolweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/connections/createPoolClusterweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/promise-wrapper/co-awaitweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/queries/prepared-statementsweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/deleteweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/insertweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/selectweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/queries/prepared-statements/updateweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/queries/simple-queriesweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/queries/simple-queries/deleteweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/queries/simple-queries/insertweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/queries/simple-queries/selectweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/queries/simple-queries/updateweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/tests/mysql-proxyweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/tests/poolweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/tests/serverweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/typescript/basic-custom-classweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/indexweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/typescript/procedure-call/row-as-arrayweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/typescript/row-data/indexweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/typescript/row-data/multi-statementsweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-arrayweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/examples/typescript/row-data/row-as-array-multi-statementsweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/faqweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/faq/how-to-handle-errorsweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/history-and-why-mysq2weekly0.5https://sidorares.github.io/node-mysql2/pt-BR/docs/stability-badgesweekly0.5https://sidorares.github.io/node-mysql2/pt-BR/weekly0.5 \ No newline at end of file diff --git a/search-index.json b/search-index.json index b6cf14aabb..77f2e5956f 100644 --- a/search-index.json +++ b/search-index.json @@ -1 +1 @@ -[{"documents":[{"i":1,"t":"Acknowledgements","u":"/node-mysql2/docs/acknowledgements","b":[]},{"i":3,"t":"Contributing","u":"/node-mysql2/docs/contributing","b":["Contributing"]},{"i":5,"t":"Website Contributing Guidelines","u":"/node-mysql2/docs/contributing/website","b":["Contributing"]},{"i":21,"t":"Documentation","u":"/node-mysql2/docs/documentation","b":["Docs","Documentation"]},{"i":31,"t":"Extra Features","u":"/node-mysql2/docs/documentation/extras","b":["Docs","Documentation"]},{"i":40,"t":"Authentication Switch Request","u":"/node-mysql2/docs/documentation/authentication-switch","b":["Docs","Documentation"]},{"i":44,"t":"MySQL Server API","u":"/node-mysql2/docs/documentation/mysql-server","b":["Docs","Documentation"]},{"i":53,"t":"Prepared Statements","u":"/node-mysql2/docs/documentation/prepared-statements","b":["Docs","Documentation"]},{"i":62,"t":"Promise Wrappers","u":"/node-mysql2/docs/documentation/promise-wrapper","b":["Docs","Documentation"]},{"i":70,"t":"Using MySQL2 with TypeScript","u":"/node-mysql2/docs/documentation/typescript-examples","b":["Docs","Documentation"]},{"i":96,"t":"Binlog Watcher","u":"/node-mysql2/docs/examples/binlog-watcher","b":["Examples"]},{"i":98,"t":"Connect Over Socks","u":"/node-mysql2/docs/examples/connect-over-socks","b":["Examples"]},{"i":100,"t":"MySQL2","u":"/node-mysql2/docs","b":[]},{"i":114,"t":"Execute","u":"/node-mysql2/docs/examples/execute","b":["Examples"]},{"i":116,"t":"Examples","u":"/node-mysql2/docs/examples","b":["Examples"]},{"i":127,"t":"Pass SHA","u":"/node-mysql2/docs/examples/pass-sha","b":["Examples"]},{"i":129,"t":"MySQL Proxy","u":"/node-mysql2/docs/examples/mysqlproxy","b":["Examples"]},{"i":131,"t":"SELECT","u":"/node-mysql2/docs/examples/queries/select","b":["Examples","Queries"]},{"i":133,"t":"Prepared Statements","u":"/node-mysql2/docs/examples/prepare","b":["Examples"]},{"i":135,"t":"Pool Test","u":"/node-mysql2/docs/examples/pool-test","b":["Examples"]},{"i":137,"t":"Promise CO Await","u":"/node-mysql2/docs/examples/promise-co-await","b":["Examples"]},{"i":139,"t":"RDS SSL","u":"/node-mysql2/docs/examples/ssl/rds-ssl","b":["Examples","SSL"]},{"i":141,"t":"Basic Custom Class","u":"/node-mysql2/docs/examples/typescript/basic-custom-class","b":["Examples","TypeScript"]},{"i":143,"t":"Select Over SSL","u":"/node-mysql2/docs/examples/ssl/select-over-ssl","b":["Examples","SSL"]},{"i":145,"t":"Procedure Call Packet (Row as Array)","u":"/node-mysql2/docs/examples/typescript/procedure-call/row-as-array","b":["Examples","TypeScript","Procedure Call Packet"]},{"i":147,"t":"Server","u":"/node-mysql2/docs/examples/server","b":["Examples"]},{"i":149,"t":"Procedure Call Packet","u":"/node-mysql2/docs/examples/typescript/procedure-call/procedure-call-packet","b":["Examples","TypeScript","Procedure Call Packet"]},{"i":151,"t":"Row Data Packet (Multi Statements)","u":"/node-mysql2/docs/examples/typescript/row-data/multi-statements","b":["Examples","TypeScript","Row Data Packet"]},{"i":153,"t":"API and Configuration","u":"/node-mysql2/docs/api-and-configurations","b":[]},{"i":155,"t":"Row Data Packet (Multi Statements and Row as Array)","u":"/node-mysql2/docs/examples/typescript/row-data/row-as-array-multi-statements","b":["Examples","TypeScript","Row Data Packet"]},{"i":157,"t":"Row Data Packet (Row as Array)","u":"/node-mysql2/docs/examples/typescript/row-data/row-as-array","b":["Examples","TypeScript","Row Data Packet"]},{"i":159,"t":"History and Why MySQL2","u":"/node-mysql2/docs/history-and-why-mysq2","b":[]},{"i":161,"t":"Stability Badges","u":"/node-mysql2/docs/stability-badges","b":[]},{"i":163,"t":"Row Data Packet","u":"/node-mysql2/docs/examples/typescript/row-data/row-data-packet","b":["Examples","TypeScript","Row Data Packet"]},{"i":165,"t":"How to handle errors?","u":"/node-mysql2/docs/faq/how-to-handle-errors","b":["FAQ"]},{"i":173,"t":"Frequently Asked Questions","u":"/node-mysql2/docs/faq","b":["FAQ"]}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/1",[0,4.238]],["t/3",[1,3.563]],["t/5",[1,2.478,2,2.948,3,2.948]],["t/21",[4,4.238]],["t/31",[5,3.477,6,3.477]],["t/40",[7,2.948,8,2.948,9,2.948]],["t/44",[10,2.478,11,2.478,12,2.478]],["t/53",[13,2.923,14,2.285]],["t/62",[15,2.923,16,3.477]],["t/70",[17,2.948,18,2.169,19,2.948]],["t/96",[20,3.477,21,3.477]],["t/98",[22,2.948,23,2.478,24,2.948]],["t/100",[18,3.118]],["t/114",[25,4.238]],["t/116",[26,4.238]],["t/127",[27,3.477,28,3.477]],["t/129",[10,2.923,29,3.477]],["t/131",[30,3.563]],["t/133",[13,2.923,14,2.285]],["t/135",[31,3.477,32,3.477]],["t/137",[15,2.478,33,2.948,34,2.948]],["t/139",[35,3.477,36,2.923]],["t/141",[37,2.948,38,2.948,39,2.948]],["t/143",[23,2.478,30,2.478,36,2.478]],["t/145",[40,1.9,41,1.9,42,1.226,43,1.344,44,1.663]],["t/147",[11,3.563]],["t/149",[40,2.478,41,2.478,42,1.599]],["t/151",[14,1.485,42,1.226,43,1.344,45,1.485,46,1.9]],["t/153",[12,2.923,47,3.477]],["t/155",[14,1.204,42,0.994,43,1.73,44,1.348,45,1.204,46,1.54]],["t/157",[42,1.226,43,2.036,44,1.663,45,1.485]],["t/159",[18,2.558,48,3.477]],["t/161",[49,3.477,50,3.477]],["t/163",[42,1.599,43,1.753,45,1.938]],["t/165",[51,3.477,52,3.477]],["t/173",[53,2.948,54,2.948,55,2.948]]],"invertedIndex":[["acknowledg",{"_index":0,"t":{"1":{"position":[[0,16]]}}}],["api",{"_index":12,"t":{"44":{"position":[[13,3]]},"153":{"position":[[0,3]]}}}],["array",{"_index":44,"t":{"145":{"position":[[30,6]]},"155":{"position":[[45,6]]},"157":{"position":[[24,6]]}}}],["ask",{"_index":54,"t":{"173":{"position":[[11,5]]}}}],["authent",{"_index":7,"t":{"40":{"position":[[0,14]]}}}],["await",{"_index":34,"t":{"137":{"position":[[11,5]]}}}],["badg",{"_index":50,"t":{"161":{"position":[[10,6]]}}}],["basic",{"_index":37,"t":{"141":{"position":[[0,5]]}}}],["binlog",{"_index":20,"t":{"96":{"position":[[0,6]]}}}],["call",{"_index":41,"t":{"145":{"position":[[10,4]]},"149":{"position":[[10,4]]}}}],["class",{"_index":39,"t":{"141":{"position":[[13,5]]}}}],["co",{"_index":33,"t":{"137":{"position":[[8,2]]}}}],["configur",{"_index":47,"t":{"153":{"position":[[8,13]]}}}],["connect",{"_index":22,"t":{"98":{"position":[[0,7]]}}}],["contribut",{"_index":1,"t":{"3":{"position":[[0,12]]},"5":{"position":[[8,12]]}}}],["custom",{"_index":38,"t":{"141":{"position":[[6,6]]}}}],["data",{"_index":45,"t":{"151":{"position":[[4,4]]},"155":{"position":[[4,4]]},"157":{"position":[[4,4]]},"163":{"position":[[4,4]]}}}],["document",{"_index":4,"t":{"21":{"position":[[0,13]]}}}],["error",{"_index":52,"t":{"165":{"position":[[14,7]]}}}],["exampl",{"_index":26,"t":{"116":{"position":[[0,8]]}}}],["execut",{"_index":25,"t":{"114":{"position":[[0,7]]}}}],["extra",{"_index":5,"t":{"31":{"position":[[0,5]]}}}],["featur",{"_index":6,"t":{"31":{"position":[[6,8]]}}}],["frequent",{"_index":53,"t":{"173":{"position":[[0,10]]}}}],["guidelin",{"_index":3,"t":{"5":{"position":[[21,10]]}}}],["handl",{"_index":51,"t":{"165":{"position":[[7,6]]}}}],["histori",{"_index":48,"t":{"159":{"position":[[0,7]]}}}],["multi",{"_index":46,"t":{"151":{"position":[[16,6]]},"155":{"position":[[16,6]]}}}],["mysql",{"_index":10,"t":{"44":{"position":[[0,5]]},"129":{"position":[[0,5]]}}}],["mysql2",{"_index":18,"t":{"70":{"position":[[6,6]]},"100":{"position":[[0,6]]},"159":{"position":[[16,6]]}}}],["over",{"_index":23,"t":{"98":{"position":[[8,4]]},"143":{"position":[[7,4]]}}}],["packet",{"_index":42,"t":{"145":{"position":[[15,6]]},"149":{"position":[[15,6]]},"151":{"position":[[9,6]]},"155":{"position":[[9,6]]},"157":{"position":[[9,6]]},"163":{"position":[[9,6]]}}}],["pass",{"_index":27,"t":{"127":{"position":[[0,4]]}}}],["pool",{"_index":31,"t":{"135":{"position":[[0,4]]}}}],["prepar",{"_index":13,"t":{"53":{"position":[[0,8]]},"133":{"position":[[0,8]]}}}],["procedur",{"_index":40,"t":{"145":{"position":[[0,9]]},"149":{"position":[[0,9]]}}}],["promis",{"_index":15,"t":{"62":{"position":[[0,7]]},"137":{"position":[[0,7]]}}}],["proxi",{"_index":29,"t":{"129":{"position":[[6,5]]}}}],["question",{"_index":55,"t":{"173":{"position":[[17,9]]}}}],["rd",{"_index":35,"t":{"139":{"position":[[0,3]]}}}],["request",{"_index":9,"t":{"40":{"position":[[22,7]]}}}],["row",{"_index":43,"t":{"145":{"position":[[22,4]]},"151":{"position":[[0,3]]},"155":{"position":[[0,3],[38,3]]},"157":{"position":[[0,3],[16,4]]},"163":{"position":[[0,3]]}}}],["select",{"_index":30,"t":{"131":{"position":[[0,6]]},"143":{"position":[[0,6]]}}}],["server",{"_index":11,"t":{"44":{"position":[[6,6]]},"147":{"position":[[0,6]]}}}],["sha",{"_index":28,"t":{"127":{"position":[[5,3]]}}}],["sock",{"_index":24,"t":{"98":{"position":[[13,5]]}}}],["ssl",{"_index":36,"t":{"139":{"position":[[4,3]]},"143":{"position":[[12,3]]}}}],["stabil",{"_index":49,"t":{"161":{"position":[[0,9]]}}}],["statement",{"_index":14,"t":{"53":{"position":[[9,10]]},"133":{"position":[[9,10]]},"151":{"position":[[23,11]]},"155":{"position":[[23,10]]}}}],["switch",{"_index":8,"t":{"40":{"position":[[15,6]]}}}],["test",{"_index":32,"t":{"135":{"position":[[5,4]]}}}],["typescript",{"_index":19,"t":{"70":{"position":[[18,10]]}}}],["us",{"_index":17,"t":{"70":{"position":[[0,5]]}}}],["watcher",{"_index":21,"t":{"96":{"position":[[7,7]]}}}],["websit",{"_index":2,"t":{"5":{"position":[[0,7]]}}}],["wrapper",{"_index":16,"t":{"62":{"position":[[8,8]]}}}]],"pipeline":["stemmer"]}},{"documents":[{"i":7,"t":"Environment","u":"/node-mysql2/docs/contributing/website","h":"#environment","p":5},{"i":9,"t":"Development","u":"/node-mysql2/docs/contributing/website","h":"#development","p":5},{"i":11,"t":"Extras Components","u":"/node-mysql2/docs/contributing/website","h":"#extras-components","p":5},{"i":13,"t":"History","u":"/node-mysql2/docs/contributing/website","h":"#history","p":5},{"i":15,"t":"Stability","u":"/node-mysql2/docs/contributing/website","h":"#stability","p":5},{"i":17,"t":"FAQ","u":"/node-mysql2/docs/contributing/website","h":"#faq","p":5},{"i":19,"t":"Running Tests","u":"/node-mysql2/docs/contributing/website","h":"#running-tests","p":5},{"i":23,"t":"Examples","u":"/node-mysql2/docs/documentation","h":"#examples","p":21},{"i":25,"t":"Known incompatibilities with Node MySQL","u":"/node-mysql2/docs/documentation","h":"#known-incompatibilities-with-node-mysql","p":21},{"i":27,"t":"Other Resources","u":"/node-mysql2/docs/documentation","h":"#other-resources","p":21},{"i":29,"t":"Benchmarks","u":"/node-mysql2/docs/documentation","h":"#benchmarks","p":21},{"i":32,"t":"Named placeholders","u":"/node-mysql2/docs/documentation/extras","h":"#named-placeholders","p":31},{"i":34,"t":"Receiving rows as array of columns instead of hash with column name as key:","u":"/node-mysql2/docs/documentation/extras","h":"#receiving-rows-as-array-of-columns-instead-of-hash-with-column-name-as-key","p":31},{"i":36,"t":"Sending tabular data with 'load infile' and local stream:","u":"/node-mysql2/docs/documentation/extras","h":"#sending-tabular-data-with-load-infile-and-local-stream","p":31},{"i":38,"t":"Connecting using custom stream:","u":"/node-mysql2/docs/documentation/extras","h":"#connecting-using-custom-stream","p":31},{"i":42,"t":"Multi-factor authentication","u":"/node-mysql2/docs/documentation/authentication-switch","h":"#multi-factor-authentication","p":40},{"i":45,"t":"Server","u":"/node-mysql2/docs/documentation/mysql-server","h":"#server","p":44},{"i":47,"t":"Events","u":"/node-mysql2/docs/documentation/mysql-server","h":"#events","p":44},{"i":49,"t":"Connection","u":"/node-mysql2/docs/documentation/mysql-server","h":"#connection","p":44},{"i":51,"t":"Events","u":"/node-mysql2/docs/documentation/mysql-server","h":"#events-1","p":44},{"i":54,"t":"Automatic creation, cached and re-used by connection","u":"/node-mysql2/docs/documentation/prepared-statements","h":"#automatic-creation-cached-and-re-used-by-connection","p":53},{"i":56,"t":"Manual prepare / execute","u":"/node-mysql2/docs/documentation/prepared-statements","h":"#manual-prepare--execute","p":53},{"i":58,"t":"Configuration","u":"/node-mysql2/docs/documentation/prepared-statements","h":"","p":53},{"i":60,"t":"Serialization of bind parameters","u":"/node-mysql2/docs/documentation/prepared-statements","h":"","p":53},{"i":64,"t":"Basic Promise","u":"/node-mysql2/docs/documentation/promise-wrapper","h":"#basic-promise","p":62},{"i":66,"t":"ES7 Async Await","u":"/node-mysql2/docs/documentation/promise-wrapper","h":"#es7-async-await","p":62},{"i":68,"t":"With CO","u":"/node-mysql2/docs/documentation/promise-wrapper","h":"#with-co","p":62},{"i":71,"t":"Installation","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#installation","p":70},{"i":73,"t":"Usage","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#usage","p":70},{"i":75,"t":"Connection","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#connection","p":70},{"i":77,"t":"Pool Connection","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#pool-connection","p":70},{"i":79,"t":"Query and Execute","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#query-and-execute","p":70},{"i":81,"t":"Type Specification","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#type-specification","p":70},{"i":82,"t":"RowDataPacket[]","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#rowdatapacket","p":70},{"i":84,"t":"RowDataPacket[][]","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#rowdatapacket-1","p":70},{"i":86,"t":"ResultSetHeader","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#resultsetheader","p":70},{"i":88,"t":"ResultSetHeader[]","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#resultsetheader-1","p":70},{"i":90,"t":"ProcedureCallPacket","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#procedurecallpacket","p":70},{"i":92,"t":"OkPacket","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#okpacket","p":70},{"i":94,"t":"Examples","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#examples","p":70},{"i":102,"t":"Installation","u":"/node-mysql2/docs","h":"#installation","p":100},{"i":104,"t":"First Query","u":"/node-mysql2/docs","h":"#first-query","p":100},{"i":106,"t":"Using Prepared Statements","u":"/node-mysql2/docs","h":"#using-prepared-statements","p":100},{"i":108,"t":"Using Connection Pools","u":"/node-mysql2/docs","h":"#using-connection-pools","p":100},{"i":110,"t":"Using Promise Wrapper","u":"/node-mysql2/docs","h":"#using-promise-wrapper","p":100},{"i":112,"t":"Array Results","u":"/node-mysql2/docs","h":"#array-results","p":100},{"i":117,"t":"Simple SELECT","u":"/node-mysql2/docs/examples","h":"#simple-select","p":116},{"i":119,"t":"Prepared Statement and Parameters","u":"/node-mysql2/docs/examples","h":"#prepared-statement-and-parameters","p":116},{"i":121,"t":"Connecting over encrypted connection","u":"/node-mysql2/docs/examples","h":"#connecting-over-encrypted-connection","p":116},{"i":123,"t":"Simple MySQL proxy server","u":"/node-mysql2/docs/examples","h":"#simple-mysql-proxy-server","p":116},{"i":125,"t":"Examples using MySQL server API","u":"/node-mysql2/docs/examples","h":"#examples-using-mysql-server-api","p":116},{"i":167,"t":"Using callbacks","u":"/node-mysql2/docs/faq/how-to-handle-errors","h":"#using-callbacks","p":165},{"i":169,"t":"Using promises","u":"/node-mysql2/docs/faq/how-to-handle-errors","h":"#using-promises","p":165},{"i":171,"t":"Related Links","u":"/node-mysql2/docs/faq/how-to-handle-errors","h":"#related-links","p":165}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/7",[0,4.638]],["t/9",[1,4.638]],["t/11",[2,3.743,3,3.743]],["t/13",[4,4.638]],["t/15",[5,4.638]],["t/17",[6,4.638]],["t/19",[7,3.743,8,3.743]],["t/23",[9,3.547]],["t/25",[10,2.701,11,2.701,12,2.701,13,2.066]],["t/27",[14,4.638]],["t/29",[15,4.638]],["t/32",[16,3.213,17,3.743]],["t/34",[16,1.367,18,1.593,19,1.593,20,1.367,21,2.652,22,1.593,23,1.593,24,1.593]],["t/36",[25,1.905,26,1.905,27,1.905,28,1.905,29,1.905,30,1.905,31,1.635]],["t/38",[31,2.318,32,1.494,33,1.4,34,2.701]],["t/42",[35,3.138,36,3.138,37,3.138]],["t/45",[38,3.547]],["t/47",[39,3.98]],["t/49",[32,2.566]],["t/51",[39,3.98]],["t/54",[32,1.169,33,1.095,40,2.113,41,2.113,42,2.113,43,2.113]],["t/56",[44,2.701,45,2.066,46,2.701,47,2.318]],["t/58",[48,4.638]],["t/60",[49,3.138,50,3.138,51,2.693]],["t/64",[52,3.743,53,2.863]],["t/66",[54,3.138,55,3.138,56,3.138]],["t/68",[57,4.638]],["t/71",[58,3.98]],["t/73",[59,4.638]],["t/75",[32,2.566]],["t/77",[32,2.071,60,3.213]],["t/79",[47,3.213,61,3.213]],["t/81",[62,3.743,63,3.743]],["t/82",[64,3.98]],["t/84",[64,3.98]],["t/86",[65,3.98]],["t/88",[65,3.98]],["t/90",[66,4.638]],["t/92",[67,4.638]],["t/94",[9,3.547]],["t/102",[58,3.98]],["t/104",[61,3.213,68,3.743]],["t/106",[33,1.627,45,2.4,69,2.693]],["t/108",[32,1.736,33,1.627,60,2.693]],["t/110",[33,1.627,53,2.4,70,3.138]],["t/112",[20,3.213,71,3.743]],["t/117",[72,3.213,73,3.743]],["t/119",[45,2.4,51,2.693,69,2.693]],["t/121",[32,2.229,74,2.701,75,2.701]],["t/123",[13,2.066,38,2.066,72,2.318,76,2.701]],["t/125",[9,1.813,13,1.813,33,1.229,38,1.813,77,2.371]],["t/167",[33,1.941,78,3.743]],["t/169",[33,1.941,53,2.863]],["t/171",[79,3.743,80,3.743]]],"invertedIndex":[["",{"_index":46,"t":{"56":{"position":[[15,1]]}}}],["api",{"_index":77,"t":{"125":{"position":[[28,3]]}}}],["array",{"_index":20,"t":{"34":{"position":[[18,5]]},"112":{"position":[[0,5]]}}}],["async",{"_index":55,"t":{"66":{"position":[[4,5]]}}}],["authent",{"_index":37,"t":{"42":{"position":[[13,14]]}}}],["automat",{"_index":40,"t":{"54":{"position":[[0,9]]}}}],["await",{"_index":56,"t":{"66":{"position":[[10,5]]}}}],["basic",{"_index":52,"t":{"64":{"position":[[0,5]]}}}],["benchmark",{"_index":15,"t":{"29":{"position":[[0,10]]}}}],["bind",{"_index":50,"t":{"60":{"position":[[17,4]]}}}],["cach",{"_index":42,"t":{"54":{"position":[[20,6]]}}}],["callback",{"_index":78,"t":{"167":{"position":[[6,9]]}}}],["co",{"_index":57,"t":{"68":{"position":[[5,2]]}}}],["column",{"_index":21,"t":{"34":{"position":[[27,7],[56,6]]}}}],["compon",{"_index":3,"t":{"11":{"position":[[7,10]]}}}],["configur",{"_index":48,"t":{"58":{"position":[[0,13]]}}}],["connect",{"_index":32,"t":{"38":{"position":[[0,10]]},"49":{"position":[[0,10]]},"54":{"position":[[42,10]]},"75":{"position":[[0,10]]},"77":{"position":[[5,10]]},"108":{"position":[[6,10]]},"121":{"position":[[0,10],[26,10]]}}}],["creation",{"_index":41,"t":{"54":{"position":[[10,9]]}}}],["custom",{"_index":34,"t":{"38":{"position":[[17,6]]}}}],["data",{"_index":27,"t":{"36":{"position":[[16,4]]}}}],["develop",{"_index":1,"t":{"9":{"position":[[0,11]]}}}],["encrypt",{"_index":75,"t":{"121":{"position":[[16,9]]}}}],["environ",{"_index":0,"t":{"7":{"position":[[0,11]]}}}],["es7",{"_index":54,"t":{"66":{"position":[[0,3]]}}}],["event",{"_index":39,"t":{"47":{"position":[[0,6]]},"51":{"position":[[0,6]]}}}],["exampl",{"_index":9,"t":{"23":{"position":[[0,8]]},"94":{"position":[[0,8]]},"125":{"position":[[0,8]]}}}],["execut",{"_index":47,"t":{"56":{"position":[[17,7]]},"79":{"position":[[10,7]]}}}],["extra",{"_index":2,"t":{"11":{"position":[[0,6]]}}}],["factor",{"_index":36,"t":{"42":{"position":[[6,6]]}}}],["faq",{"_index":6,"t":{"17":{"position":[[0,3]]}}}],["first",{"_index":68,"t":{"104":{"position":[[0,5]]}}}],["hash",{"_index":23,"t":{"34":{"position":[[46,4]]}}}],["histori",{"_index":4,"t":{"13":{"position":[[0,7]]}}}],["incompat",{"_index":11,"t":{"25":{"position":[[6,17]]}}}],["infil",{"_index":29,"t":{"36":{"position":[[32,7]]}}}],["instal",{"_index":58,"t":{"71":{"position":[[0,12]]},"102":{"position":[[0,12]]}}}],["instead",{"_index":22,"t":{"34":{"position":[[35,7]]}}}],["key",{"_index":24,"t":{"34":{"position":[[71,4]]}}}],["known",{"_index":10,"t":{"25":{"position":[[0,5]]}}}],["link",{"_index":80,"t":{"171":{"position":[[8,5]]}}}],["load",{"_index":28,"t":{"36":{"position":[[26,5]]}}}],["local",{"_index":30,"t":{"36":{"position":[[44,5]]}}}],["manual",{"_index":44,"t":{"56":{"position":[[0,6]]}}}],["multi",{"_index":35,"t":{"42":{"position":[[0,5]]}}}],["mysql",{"_index":13,"t":{"25":{"position":[[34,5]]},"123":{"position":[[7,5]]},"125":{"position":[[15,5]]}}}],["name",{"_index":16,"t":{"32":{"position":[[0,5]]},"34":{"position":[[63,4]]}}}],["node",{"_index":12,"t":{"25":{"position":[[29,4]]}}}],["okpacket",{"_index":67,"t":{"92":{"position":[[0,8]]}}}],["over",{"_index":74,"t":{"121":{"position":[[11,4]]}}}],["paramet",{"_index":51,"t":{"60":{"position":[[22,10]]},"119":{"position":[[23,10]]}}}],["placehold",{"_index":17,"t":{"32":{"position":[[6,12]]}}}],["pool",{"_index":60,"t":{"77":{"position":[[0,4]]},"108":{"position":[[17,5]]}}}],["prepar",{"_index":45,"t":{"56":{"position":[[7,7]]},"106":{"position":[[6,8]]},"119":{"position":[[0,8]]}}}],["procedurecallpacket",{"_index":66,"t":{"90":{"position":[[0,19]]}}}],["promis",{"_index":53,"t":{"64":{"position":[[6,7]]},"110":{"position":[[6,7]]},"169":{"position":[[6,8]]}}}],["proxi",{"_index":76,"t":{"123":{"position":[[13,5]]}}}],["queri",{"_index":61,"t":{"79":{"position":[[0,5]]},"104":{"position":[[6,5]]}}}],["re",{"_index":43,"t":{"54":{"position":[[31,2]]}}}],["receiv",{"_index":18,"t":{"34":{"position":[[0,9]]}}}],["relat",{"_index":79,"t":{"171":{"position":[[0,7]]}}}],["resourc",{"_index":14,"t":{"27":{"position":[[6,9]]}}}],["result",{"_index":71,"t":{"112":{"position":[[6,7]]}}}],["resultsethead",{"_index":65,"t":{"86":{"position":[[0,15]]},"88":{"position":[[0,17]]}}}],["row",{"_index":19,"t":{"34":{"position":[[10,4]]}}}],["rowdatapacket",{"_index":64,"t":{"82":{"position":[[0,15]]},"84":{"position":[[0,17]]}}}],["run",{"_index":7,"t":{"19":{"position":[[0,7]]}}}],["select",{"_index":73,"t":{"117":{"position":[[7,6]]}}}],["send",{"_index":25,"t":{"36":{"position":[[0,7]]}}}],["serial",{"_index":49,"t":{"60":{"position":[[0,13]]}}}],["server",{"_index":38,"t":{"45":{"position":[[0,6]]},"123":{"position":[[19,6]]},"125":{"position":[[21,6]]}}}],["simpl",{"_index":72,"t":{"117":{"position":[[0,6]]},"123":{"position":[[0,6]]}}}],["specif",{"_index":63,"t":{"81":{"position":[[5,13]]}}}],["stabil",{"_index":5,"t":{"15":{"position":[[0,9]]}}}],["statement",{"_index":69,"t":{"106":{"position":[[15,10]]},"119":{"position":[[9,9]]}}}],["stream",{"_index":31,"t":{"36":{"position":[[50,7]]},"38":{"position":[[24,7]]}}}],["tabular",{"_index":26,"t":{"36":{"position":[[8,7]]}}}],["test",{"_index":8,"t":{"19":{"position":[[8,5]]}}}],["type",{"_index":62,"t":{"81":{"position":[[0,4]]}}}],["us",{"_index":33,"t":{"38":{"position":[[11,5]]},"54":{"position":[[34,4]]},"106":{"position":[[0,5]]},"108":{"position":[[0,5]]},"110":{"position":[[0,5]]},"125":{"position":[[9,5]]},"167":{"position":[[0,5]]},"169":{"position":[[0,5]]}}}],["usag",{"_index":59,"t":{"73":{"position":[[0,5]]}}}],["wrapper",{"_index":70,"t":{"110":{"position":[[14,7]]}}}]],"pipeline":["stemmer"]}},{"documents":[{"i":2,"t":"Internal protocol is written by @sidorares MySQL-Native. Constants, SQL parameters interpolation, Pooling, ConnectionConfig class taken from Node MySQL. SSL upgrade code based on @TooTallNate code. Secure connection / compressed connection api flags compatible to MariaSQL client. Contributors.","s":"Acknowledgements","u":"/node-mysql2/docs/acknowledgements","h":"","p":1},{"i":4,"t":"Want to improve something in MySQL2? Please check Contributing.md for detailed instruction on how to get started.","s":"Contributing","u":"/node-mysql2/docs/contributing","h":"","p":3},{"i":6,"t":"This website is built using Docusaurus 3, a modern static website generator.","s":"Website Contributing Guidelines","u":"/node-mysql2/docs/contributing/website","h":"","p":5},{"i":8,"t":"You will need these tools installed on your system: Node.js (18.x or higher)","s":"Environment","u":"/node-mysql2/docs/contributing/website","h":"#environment","p":5},{"i":10,"t":"Fork the MySQL2 repository. Download your forked repository locally. The website's workspace is the \"website\" directory in node-mysql2 root. Create a new branch from master (optional). Run cd website to enter the website workspace. Run npm ci to install the dependecies from package-lock.json. Run npm start to starting the local development. It will start a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. For Docusaurus complete documentation, please see here. CLI example git clone https://github.com/sidorares/node-mysql2.git git checkout -b website # optional cd /path-to/node-mysql2/website npm ci npm start Documentation is auto-generated from MDX files placed in these directories: ./docs/documentation ./docs/examples ./docs/faq Caution Note that the website has its own package.json. Please, do not install dependencies for the website in node-mysql2 root.","s":"Development","u":"/node-mysql2/docs/contributing/website","h":"#development","p":5},{"i":12,"t":"Every extra component is thoroughly documented with complete typings descriptions. Docusaurus Markdown Features: The MDX compiler transforms Markdown files to React components, and allows you to use JSX in your Markdown content. This enables you to easily interleave React components within your content, and create delightful learning experiences.","s":"Extras Components","u":"/node-mysql2/docs/contributing/website","h":"#extras-components","p":5},{"i":14,"t":"The History component displays version changes in a table format, listing version numbers alongside their changes. import { History } from '@site/src/components/History'; tip You can also utilize React components in the changes option. Example History Version Changes v1.0.0 Some change message.","s":"History","u":"/node-mysql2/docs/contributing/website","h":"#history","p":5},{"i":16,"t":"See the Stability Badges for more detais. import { Stability } from '@site/src/components/Stability'; tip You can also utilize React components in the message option. Available levels: 0, 1, 1.1, 1.2, 2 and 3. Example 2Stable 2Stable Some message.","s":"Stability","u":"/node-mysql2/docs/contributing/website","h":"#stability","p":5},{"i":18,"t":"import { FAQ } from '@site/src/components/FAQ'; > Some markdown (**MDX**) content. tip The FAQ component can be utilized in any section or page. Code blocks are compatible and can be used within the FAQ component. Example Title Some markdown (MDX) content.","s":"FAQ","u":"/node-mysql2/docs/contributing/website","h":"#faq","p":5},{"i":20,"t":"npm run test Check Prettier and ESLint rules for compliance npm run lintcheck Included in the GitHub Actions workflow. Check for typings errors 1Experimental Checks for MDX components are missing. npm run typecheck Included in the GitHub Actions workflow. Clear and build the website npm run clear npm run build Included in the GitHub Actions workflow. Fix issues from Prettier and ESLint rules npm run lint To prevent lint issues, it is recommended to execute this command before creating your commit. Not included in the GitHub Actions workflow.","s":"Running Tests","u":"/node-mysql2/docs/contributing/website","h":"#running-tests","p":5},{"i":22,"t":"MySQL2 aims to be a drop in replacement for Node MySQL. note If you see any API incompatibilities with Node MySQL, please report via github issue. Not only MySQL2 offers better performance over Node MySQL, we also support these additional features: Prepared Statements Promise Wrapper Authentication Switch More Features MySQL Server Pooling SSL MySQL Compression Binary Log Protocol Client","s":"Documentation","u":"/node-mysql2/docs/documentation","h":"","p":21},{"i":24,"t":"Please check these examples for MySQL2.","s":"Examples","u":"/node-mysql2/docs/documentation","h":"#examples","p":21},{"i":26,"t":"zeroFill flag is ignored in type conversion. You need to check corresponding field's zeroFill flag and convert to string manually if this is of importance to you. DECIMAL and NEWDECIMAL types always returned as string unless you pass this config option: { decimalNumbers: true, } note This option could lose precision on the number as Javascript Number is a Float!","s":"Known incompatibilities with Node MySQL","u":"/node-mysql2/docs/documentation","h":"#known-incompatibilities-with-node-mysql","p":21},{"i":28,"t":"Wire protocol documentation Node MySQL - Most popular node.js mysql client library node-mariasql - Bindings to libmariasql. One of the fastest clients node-libmysqlclient - Bindings to libmysqlclient go-mysql - MySQL Go client (prepared statements, binlog protocol, server)","s":"Other Resources","u":"/node-mysql2/docs/documentation","h":"#other-resources","p":21},{"i":30,"t":"https://gist.github.com/sidorares/ffe9ee9c423f763e3b6b npm run benchmarks node-mysql-benchmarks try to run example benchmarks on your system","s":"Benchmarks","u":"/node-mysql2/docs/documentation","h":"#benchmarks","p":21},{"i":33,"t":"You can use named placeholders for parameters by setting namedPlaceholders config value or query/execute time option. Named placeholders are converted to unnamed ? on the client (mysql protocol does not support named parameters). If you reference parameter multiple times under the same name it is sent to server multiple times. Unnamed placeholders can still be used by providing the values as an array instead of an object. connection.config.namedPlaceholders = true; connection.execute('select :x + :y as z', { x: 1, y: 2 }, (err, rows) => { // statement prepared as \"select ? + ? as z\" and executed with [1,2] values // rows returned: [ { z: 3 } ] }); connection.execute('select :x + :x as z', { x: 1 }, (err, rows) => { // select ? + ? as z, execute with [1, 1] }); connection.query('select :x + :x as z', { x: 1 }, (err, rows) => { // query select 1 + 1 as z }); // unnamed placeholders are still valid if the values are provided in an array connection.query('select ? + ? as z', [1, 1], (err, rows) => { // query select 1 + 1 as z });","s":"Named placeholders","u":"/node-mysql2/docs/documentation/extras","h":"#named-placeholders","p":31},{"i":35,"t":"const options = { sql: 'select A,B,C,D from foo', rowsAsArray: true }; connection.query(options, (err, results) => { /* results will be an array of arrays like this now: [[ 'field A value', 'field B value', 'field C value', 'field D value', ], ...] */ });","s":"Receiving rows as array of columns instead of hash with column name as key:","u":"/node-mysql2/docs/documentation/extras","h":"#receiving-rows-as-array-of-columns-instead-of-hash-with-column-name-as-key","p":31},{"i":37,"t":"In addition to sending local fs files you can send any stream using infileStreamFactory query option. If set, it has to be a function that return a readable stream. It gets file path from query as a parameter. Note: starting from version 2.0 infileStreamFactory is required parameter for LOAD DATA LOCAL INFILE. Response from server indicates that it wants access to a local file and no infileStreamFactory option is provided the query ends with error. // local file connection.query( 'LOAD DATA LOCAL INFILE \"/tmp/data.csv\" INTO TABLE test FIELDS TERMINATED BY ? (id, title)', onInserted1 ); // local stream const sql = 'LOAD DATA LOCAL INFILE \"mystream\" INTO TABLE test FIELDS TERMINATED BY ? (id, title)'; connection.query( { sql: sql, infileStreamFactory: function (path) { return getStream(); }, }, onInserted2 ); The infileStreamFactory option may also be set at a connection-level: const fs = require('fs'); const mysql = require('mysql2'); const connection = mysql.createConnection({ user: 'test', database: 'test', infileStreamFactory: (path) => { // Validate file path const validPaths = ['/tmp/data.csv']; if (!validPaths.includes(path)) { throw new Error( `invalid file path: ${path}: expected to be one of ${validPaths.join( ',' )}` ); } return fs.createReadStream(path); }, }); connection.query( 'LOAD DATA LOCAL INFILE \"/tmp/data.csv\" INTO TABLE test', onInserted );","s":"Sending tabular data with 'load infile' and local stream:","u":"/node-mysql2/docs/documentation/extras","h":"#sending-tabular-data-with-load-infile-and-local-stream","p":31},{"i":39,"t":"const net = require('net'); const mysql = require('mysql2'); const shape = require('shaper'); const connection = mysql.createConnection({ user: 'test', database: 'test', stream: net.connect('/tmp/mysql.sock').pipe(shape(10)), // emulate 10 bytes/sec link }); connection.query('SELECT 1+1 as test1', console.log); stream also can be a function. In that case function result has to be duplex stream, and it is used for connection transport. This is required if you connect pool using custom transport as new pooled connection needs new stream. Example connecting over socks5 proxy: const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const pool = mysql.createPool({ database: 'test', user: 'foo', password: 'bar', stream: function (cb) { const newStream = new SocksConnection( { host: 'remote.host', port: 3306 }, { host: 'localhost', port: 1080 } ); cb(null, newStream); }, }); In addition to password createConnection(), createPool() and changeUser() accept passwordSha1 option. This is useful when implementing proxies as plaintext password might be not available.","s":"Connecting using custom stream:","u":"/node-mysql2/docs/documentation/extras","h":"#connecting-using-custom-stream","p":31},{"i":41,"t":"During the connection phase the server may ask the client to switch to a different auth method. If the authPlugins connection config option is set, it must be an object where each key is the name of a potential authentication plugin requested by the server, and the corresponding value must be a function that optionally receives the connection config options and returns another function, which in turn, optionally receives the switch request data. The plugin is loaded with a ({user,password,...}) signature, and each call has a (pluginData) signature. Each call should make the plugin return any additional authentication data (Buffer) that should be sent back to the server, either synchronously or asynchronously using a Promise, or should yield an error accordingly. Example: (imaginary ssh-key-auth plugin) pseudo code const conn = mysql.createConnection({ user: 'test_user', password: 'test', database: 'test_database', authPlugins: { 'ssh-key-auth': function ({ password }) { return function (pluginData) { return getPrivate(key) .then((key) => { const response = encrypt(key, password, pluginData); // continue handshake by sending response data return response; }) .catch((err) => { // throw error to propagate error to connect/changeUser handlers }); }; }, }, }); There is also a deprecated API where if a authSwitchHandler connection config option is set it must be a function that receives switch request data and responds via a callback. In this case, the first invocation always has a ({pluginName, pluginData}) signature, following calls - ({pluginData}). The client replies with an opaque blob matching the requested plugin via callback(null, data: Buffer). const conn = mysql.createConnection({ user: 'test_user', password: 'test', database: 'test_database', authSwitchHandler: function ({ pluginName, pluginData }, cb) { if (pluginName === 'ssh-key-auth') { getPrivateKey((key) => { const response = encrypt(key, pluginData); // continue handshake by sending response data // respond with error to propagate error to connect/changeUser handlers cb(null, response); }); } else { const err = new Error( `Unknown AuthSwitchRequest plugin name ${pluginName}` ); err.fatal = true; cb(err); } }, }); The initial handshake is always performed using mysql_native_password plugin. This will be possible to override in future versions. Note that if the mysql_native_password method is requested it will be handled internally according to Authentication::Native41 and no authPlugins function or the authSwitchHandler will be invoked. These MAY be called multiple times if the plugin algorithm requires multiple roundtrips of data exchange between client and server.","s":"Authentication Switch Request","u":"/node-mysql2/docs/documentation/authentication-switch","h":"","p":40},{"i":43,"t":"If the user requires multi-factor authentication in the server, the client will receive a AuthNextFactor request, which is similar in structure to the regular authentication switch request and contains the name and possible initial data for the additional authentication factor plugin (up to 3). Additional passwords can be provided using the connection config options - password2 and password3. Again, for each authentication factor, multiple roundtrips of data exchange can be required by the plugin algoritm. const conn = mysql.createConnection({ user: 'test_user', password: 'secret1', password2: 'secret2', password3: 'secret3', database: 'test_database', authPlugins: { // password1 === password 'auth-plugin1': function ({ password1 }) { return function (serverPluginData) { return clientPluginData(password1, serverPluginData); }; }, 'auth-plugin2': function ({ password2 }) { return function (serverPluginData) { return clientPluginData(password2, serverPluginData); }; }, 'auth-plugin3': function ({ password3 }) { return function (serverPluginData) { return clientPluginData(password3, serverPluginData); }; }, }, });","s":"Multi-factor authentication","u":"/node-mysql2/docs/documentation/authentication-switch","h":"#multi-factor-authentication","p":40},{"i":46,"t":"createServer() - creates server instance Server.listen - listen port / unix socket (same arguments as net.Server.listen)","s":"Server","u":"/node-mysql2/docs/documentation/mysql-server","h":"#server","p":44},{"i":48,"t":"connect new incoming connection.","s":"Events","u":"/node-mysql2/docs/documentation/mysql-server","h":"#events","p":44},{"i":50,"t":"serverHandshake({ serverVersion, protocolVersion, connectionId, statusFlags, characterSet, capabilityFlags }) send server handshake initialisation packet, wait handshake response and start listening for commands writeOk({ affectedRows: num, insertId: num }) send OK packet to client writeEof(warnings, statusFlags) send EOF packet writeTextResult(rows, fields) write query result to client. Rows and fields are in the same format as in connection.query callback. writeColumns(fields) write fields + EOF packets. writeTextRow(row) write array (not hash!) of values as result row TODO: binary protocol","s":"Connection","u":"/node-mysql2/docs/documentation/mysql-server","h":"#connection","p":44},{"i":52,"t":"Every command packet received by the server will be emitted as a packet event with the parameters: packet: Packet The packet itself knownCommand: boolean is this command known to the server *commandCode: number the parsed command code (first byte) In addition special events are emitted for commands received from the client. If no listener is present a fallback behavior will be invoked. quit() Default: close the connection init_db(schemaName: string) Default: return OK query(sql: string) Please attach a listener to this. Default: return HA_ERR_INTERNAL_ERROR field_list(table: string, fields: string) Default: return ER_WARN_DEPRECATED_SYNTAX ping() - Default: return OK","s":"Events","u":"/node-mysql2/docs/documentation/mysql-server","h":"#events-1","p":44},{"i":55,"t":"Similar to connection.query(). connection.execute('select 1 + ? + ? as result', [5, 6], (err, rows) => { // rows: [ { result: 12 } ] // internally 'select 1 + ? + ? as result' is prepared first. On subsequent calls cached statement is re-used }); // close cached statement for 'select 1 + ? + ? as result'. noop if not in cache connection.unprepare('select 1 + ? + ? as result'); Note that connection.execute() will cache the prepared statement for better performance, remove the cache with connection.unprepare() when you're done.","s":"Automatic creation, cached and re-used by connection","u":"/node-mysql2/docs/documentation/prepared-statements","h":"#automatic-creation-cached-and-re-used-by-connection","p":53},{"i":57,"t":"Manually prepared statements doesn't comes with LRU cache and SHOULD be closed using statement.close() instead of connection.unprepare(). connection.prepare('select ? + ? as tests', (err, statement) => { // statement.parameters - array of column definitions, length === number of params, here 2 // statement.columns - array of result column definitions. Can be empty if result schema is dynamic / not known // statement.id // statement.query statement.execute([1, 2], (err, rows, columns) => { // -> [ { tests: 3 } ] }); // don't use connection.unprepare(), it won't work! // note that there is no callback here. There is no statement close ack at protocol level. statement.close(); }); Note that you should not use statement after connection reset (changeUser() or disconnect). Statement scope is connection, you need to prepare statement for each new connection in order to use it.","s":"Manual prepare / execute","u":"/node-mysql2/docs/documentation/prepared-statements","h":"#manual-prepare--execute","p":53},{"i":59,"t":"maxPreparedStatements : We keep the cached statements in a lru-cache. Default size is 16000 but you can use this option to override it. Any statements that are dropped from cache will be closed.","s":"Configuration","u":"/node-mysql2/docs/documentation/prepared-statements","h":"","p":53},{"i":61,"t":"The bind parameter values passed to execute are serialized JS -> MySQL as: null -> NULL number -> DOUBLE boolean -> TINY (0 for false, 1 for true) object -> depending on prototype: Date -> DATETIME JSON like object - JSON Buffer -> VAR_STRING Other -> VAR_STRING Passing in undefined or a function will result in an error.","s":"Serialization of bind parameters","u":"/node-mysql2/docs/documentation/prepared-statements","h":"","p":53},{"i":63,"t":"In addition to errback interface there is thin wrapper to expose Promise-based api","s":"Promise Wrappers","u":"/node-mysql2/docs/documentation/promise-wrapper","h":"","p":62},{"i":65,"t":"/* eslint-env es6 */ const mysql = require('mysql2/promise'); // or require('mysql2').createConnectionPromise mysql .createConnection({ /* same parameters as for non-promise createConnection */ }) .then((conn) => conn.query('select foo from bar')) .then(([rows, fields]) => console.log(rows[0].foo)); const pool = require('mysql2/promise').createPool({}); // or require('mysql2').createPoolPromise({}) or require('mysql2').createPool({}).promise() pool .getConnection() .then((conn) => { const res = conn.query('select foo from bar'); conn.release(); return res; }) .then((result) => { console.log(result[0][0].foo); }) .catch((err) => { console.log(err); // any of connection time or query time errors from above });","s":"Basic Promise","u":"/node-mysql2/docs/documentation/promise-wrapper","h":"#basic-promise","p":62},{"i":67,"t":"async function example1() { const mysql = require('mysql2/promise'); const conn = await mysql.createConnection({ database: test }); const [rows, fields] = await conn.execute('select ?+? as sum', [2, 2]); await conn.end(); } async function example2() { const mysql = require('mysql2/promise'); const pool = mysql.createPool({ database: test }); // execute in parallel, next console.log in 3 seconds await Promise.all([ pool.query('select sleep(2)'), pool.query('select sleep(3)'), ]); console.log('3 seconds after'); await pool.end(); }","s":"ES7 Async Await","u":"/node-mysql2/docs/documentation/promise-wrapper","h":"#es7-async-await","p":62},{"i":69,"t":"const mysql = require('mysql2'); const co = require('co'); co(function* () { const c = yield mysql.createConnectionPromise({ user: 'root', namedPlaceholders: true, }); const rows = yield c.query('show databases'); console.log(rows); console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 })); yield c.end(); }); Examples in /examples/promise-co-await","s":"With CO","u":"/node-mysql2/docs/documentation/promise-wrapper","h":"#with-co","p":62},{"i":72,"t":"npm install --save mysql2 npm install --save-dev @types/node The @types/node ensure the proper interaction between TypeScript and the Node.js modules used by MySQL2 (net, events, stream, tls, etc.). info Requires TypeScript >=4.5.2.","s":"Installation","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#installation","p":70},{"i":74,"t":"You can import MySQL2 in two ways: By setting the esModuleInterop option to true in tsconfig.json import mysql from 'mysql2'; import mysql from 'mysql2/promise'; By setting the esModuleInterop option to false in tsconfig.json import * as mysql from 'mysql2'; import * as mysql from 'mysql2/promise';","s":"Usage","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#usage","p":70},{"i":76,"t":"import mysql, { ConnectionOptions } from 'mysql2'; const access: ConnectionOptions = { user: 'test', database: 'test', }; const conn = mysql.createConnection(access);","s":"Connection","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#connection","p":70},{"i":78,"t":"import mysql, { PoolOptions } from 'mysql2'; const access: PoolOptions = { user: 'test', database: 'test', }; const conn = mysql.createPool(access);","s":"Pool Connection","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#pool-connection","p":70},{"i":80,"t":"A simple query​ conn.query('SELECT 1 + 1 AS `test`;', (_err, rows) => { /** * @rows: [ { test: 2 } ] */ }); conn.execute('SELECT 1 + 1 AS `test`;', (_err, rows) => { /** * @rows: [ { test: 2 } ] */ }); The rows output will be these possible types: RowDataPacket[] RowDataPacket[][] ResultSetHeader ResultSetHeader[] ProcedureCallPacket In this example, you need to manually check the output types","s":"Query and Execute","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#query-and-execute","p":70},{"i":83,"t":"2Stable An array with the returned rows, for example: import mysql, { RowDataPacket } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', }); // SELECT conn.query('SELECT 1 + 1 AS `test`;', (_err, rows) => { console.log(rows); /** * @rows: [ { test: 2 } ] */ }); // SHOW conn.query('SHOW TABLES FROM `test`;', (_err, rows) => { console.log(rows); /** * @rows: [ { Tables_in_test: 'test' } ] */ }); Using rowsAsArray option as true: import mysql, { RowDataPacket } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', rowsAsArray: true, }); // SELECT conn.query( 'SELECT 1 + 1 AS test, 2 + 2 AS test;', (_err, rows) => { console.log(rows); /** * @rows: [ [ 2, 4 ] ] */ } ); // SHOW conn.query('SHOW TABLES FROM `test`;', (_err, rows) => { console.log(rows); /** * @rows: [ [ 'test' ] ] */ });","s":"RowDataPacket[]","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#rowdatapacket","p":70},{"i":85,"t":"2Stable Using multipleStatements option as true with multiple queries: import mysql, { RowDataPacket } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', multipleStatements: true, }); const sql = ` SELECT 1 + 1 AS test; SELECT 2 + 2 AS test; `; conn.query(sql, (_err, rows) => { console.log(rows); /** * @rows: [ [ { test: 2 } ], [ { test: 4 } ] ] */ });","s":"RowDataPacket[][]","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#rowdatapacket-1","p":70},{"i":87,"t":"2Stable History Version Changes v3.5.1 OkPacket is deprecated and might be removed in the future major release. Please use ResultSetHeader instead. changedRows option is deprecated and might be removed in the future major release. Please use affectedRows instead. For INSERT, UPDATE, DELETE, TRUNCATE, etc.: import mysql, { ResultSetHeader } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', }); const sql = ` SET @1 = 1; `; conn.query(sql, (_err, result) => { console.log(result); /** * @result: ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } */ });","s":"ResultSetHeader","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#resultsetheader","p":70},{"i":89,"t":"2Stable History Version Changes v3.5.1 Introduce ResultSetHeader[] For multiples INSERT, UPDATE, DELETE, TRUNCATE, etc. when using multipleStatements as true: import mysql, { ResultSetHeader } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', multipleStatements: true, }); const sql = ` SET @1 = 1; SET @2 = 2; `; conn.query(sql, (_err, results) => { console.log(results); /** * @results: [ ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 10, warningStatus: 0, changedRows: 0 }, ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } ] */ });","s":"ResultSetHeader[]","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#resultsetheader-1","p":70},{"i":91,"t":"2Stable History Version Changes v3.5.1 Introduce ProcedureCallPacket tip By performing a Call Procedure using INSERT, UPDATE, etc., the return will be a ProcedureCallPacket (even if you perform multiples queries and set multipleStatements to true): import mysql, { ProcedureCallPacket, ResultSetHeader } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', }); /** ResultSetHeader */ conn.query('DROP PROCEDURE IF EXISTS myProcedure'); /** ResultSetHeader */ conn.query(` CREATE PROCEDURE myProcedure() BEGIN SET @1 = 1; SET @2 = 2; END `); /** ProcedureCallPacket */ const sql = 'CALL myProcedure()'; conn.query>(sql, (_err, result) => { console.log(result); /** * @result: ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } */ }); For CREATE PROCEDURE and DROP PROCEDURE, these returns will be the default ResultSetHeader. By using SELECT and SHOW queries in a Procedure Call, it groups the results as: /** ProcedureCallPacket */ [RowDataPacket[], ResultSetHeader] For ProcedureCallPacket, please see the following examples.","s":"ProcedureCallPacket","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#procedurecallpacket","p":70},{"i":93,"t":"0Deprecated OkPacket is deprecated and might be removed in the future major release. Please use ResultSetHeader instead.","s":"OkPacket","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#okpacket","p":70},{"i":95,"t":"You can also check some code examples using MySQL2 and TypeScript to understand advanced concepts: Extending and using Interfaces with RowDataPacket Extending and using Interfaces with RowDataPacket and rowAsArray Extending and using Interfaces with RowDataPacket and multipleStatements Extending and using Interfaces with RowDataPacket, rowAsArray and multipleStatements Checking for ResultSetHeader, extending and using Interfaces with RowDataPacket from ProcedureCallPacket Checking for ResultSetHeader, extending and using Interfaces with RowDataPacket and rowAsArray from ProcedureCallPacket Creating a basic custom MySQL2 Class","s":"Examples","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#examples","p":70},{"i":97,"t":"index.js 'use strict'; const mysql = require('mysql2'); const through2 = require('through2'); const binlogStream = mysql.createBinlogStream({ serverId: 123, // slave ID, first field in \"show slave hosts\" sql response // you can also specify slave host, username, password and port masterId: 0, filename: 'mysql-bin.000007', binlogPos: 120, flags: 1, // 1 = \"non-blocking mode\" }); binlogStream.pipe( through2.obj((obj, enc, next) => { console.log(obj); next(); }) );","s":"Binlog Watcher","u":"/node-mysql2/docs/examples/binlog-watcher","h":"","p":96},{"i":99,"t":"index.js 'use strict'; const mysql = require('mysql2'); const SocksConnection = require('socksjs'); // const socksProxy = new SocksConnection({ port: 3306 }); // const conn = mysql.createConnection({ // stream: socksProxy, // }); // conn.query(\"select 1+1\", function(err, rows, fields) { // console.log(err, rows, fields); // }); const conn1 = mysql.createPool({ debug: 1, stream: function () { return new SocksConnection({ port: 3306 }); }, }); conn1.execute('select sleep(1.1) as www', (err, rows, fields) => { console.log(err, rows, fields); }); conn1.execute('select sleep(1) as qqq', (err, rows, fields) => { console.log(err, rows, fields); }); conn1.execute('select sleep(1) as qqq', (err, rows, fields) => { console.log(err, rows, fields); });","s":"Connect Over Socks","u":"/node-mysql2/docs/examples/connect-over-socks","h":"","p":98},{"i":101,"t":"MySQL client for Node.js with focus on performance. Supports prepared statements, non-utf8 encodings, binary log protocol, compression, ssl much more.","s":"MySQL2","u":"/node-mysql2/docs","h":"","p":100},{"i":103,"t":"MySQL2 is free from native bindings and can be installed on Linux, Mac OS or Windows without any issues. JavaScript TypeScript npm install --save mysql2 npm install --save mysql2 npm install --save-dev @types/node For TypeScript documentation and examples, see here.","s":"Installation","u":"/node-mysql2/docs","h":"#installation","p":100},{"i":105,"t":"Promise Callback // Get the client import mysql from 'mysql2/promise'; // Create the connection to database const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // A simple SELECT query try { const [results, fields] = await connection.query( 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45' ); console.log(results); // results contains rows returned by server console.log(fields); // fields contains extra meta data about results, if available } catch (err) { console.log(err); } // Using placeholders try { const [results] = await connection.query( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Page', 45] ); console.log(results); } catch (err) { console.log(err); } // Get the client const mysql = require('mysql2'); // Create the connection to database const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // A simple SELECT query connection.query( 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45', function (err, results, fields) { console.log(results); // results contains rows returned by server console.log(fields); // fields contains extra meta data about results, if available } ); // Using placeholders connection.query( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Page', 45], function (err, results) { console.log(results); } );","s":"First Query","u":"/node-mysql2/docs","h":"#first-query","p":100},{"i":107,"t":"With MySQL2 you also get the prepared statements. With prepared statements MySQL doesn't have to prepare plan for same query every time, this results in better performance. If you don't know why they are important, please check these discussions: How prepared statements can protect from SQL Injection attacks MySQL2 provides execute helper which will prepare and query the statement. You can also manually prepare / unprepare statement with prepare / unprepare methods. Promise Callback import mysql from 'mysql2/promise'; try { // create the connection to database const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // execute will internally call prepare and query const [results, fields] = await connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Rick C-137', 53] ); console.log(results); // results contains rows returned by server console.log(fields); // fields contains extra meta data about results, if available } catch (err) { console.log(err); } const mysql = require('mysql2'); // create the connection to database const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // execute will internally call prepare and query connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Rick C-137', 53], function (err, results, fields) { console.log(results); // results contains rows returned by server console.log(fields); // fields contains extra meta data about results, if available } ); tip If you execute same statement again, it will be picked from a LRU cache which will save query preparation time and give better performance.","s":"Using Prepared Statements","u":"/node-mysql2/docs","h":"#using-prepared-statements","p":100},{"i":109,"t":"Connection pools help reduce the time spent connecting to the MySQL server by reusing a previous connection, leaving them open instead of closing when you are done with them. This improves the latency of queries as you avoid all of the overhead that comes with establishing a new connection. Promise Callback import mysql from 'mysql2/promise'; // Create the connection pool. The pool-specific settings are the defaults const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', waitForConnections: true, connectionLimit: 10, maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit` idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000 queueLimit: 0, enableKeepAlive: true, keepAliveInitialDelay: 0, }); const mysql = require('mysql2'); // Create the connection pool. The pool-specific settings are the defaults const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', waitForConnections: true, connectionLimit: 10, maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit` idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000 queueLimit: 0, enableKeepAlive: true, keepAliveInitialDelay: 0, }); note The pool does not create all connections upfront but creates them on demand until the connection limit is reached. You can use the pool in the same way as connections (using pool.query() and pool.execute()): Promise Callback try { // For pool initialization, see above const [rows, fields] = await pool.query('SELECT `field` FROM `table`'); // Connection is automatically released when query resolves } catch (err) { console.log(err); } // For pool initialization, see above pool.query('SELECT `field` FROM `table`', function (err, rows, fields) { // Connection is automatically released when query resolves }); Alternatively, there is also the possibility of manually acquiring a connection from the pool and returning it later: Promise Callback // For pool initialization, see above const conn = await pool.getConnection(); // Do something with the connection await conn.query(/* ... */); // Don't forget to release the connection when finished! pool.releaseConnection(conn); // For pool initialization, see above pool.getConnection(function (err, conn) { // Do something with the connection conn.query(/* ... */); // Don't forget to release the connection when finished! pool.releaseConnection(conn); }); Additionally, directly release the connection using the connection object: conn.release();","s":"Using Connection Pools","u":"/node-mysql2/docs","h":"#using-connection-pools","p":100},{"i":111,"t":"MySQL2 also support Promise API. Which works very well with ES7 async await. import mysql from 'mysql2/promise'; async function main() { // create the connection const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // query database const [rows, fields] = await connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Morty', 14] ); } MySQL2 use default Promise object available in scope. But you can choose which Promise implementation you want to use. // get the client import mysql from 'mysql2/promise'; // get the promise implementation, we will use bluebird import bluebird from 'bluebird'; // create the connection, specify bluebird as Promise const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', Promise: bluebird, }); // query database const [rows, fields] = await connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Morty', 14] ); MySQL2 also exposes a .promise() function on Pools, so you can create a promise/non-promise connections from the same pool. import mysql from 'mysql2'; async function main() { // create the pool const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', }); // now get a Promise wrapped instance of that pool const promisePool = pool.promise(); // query database using promises const [rows, fields] = await promisePool.query('SELECT 1'); } MySQL2 exposes a .promise() function on Connections, to \"upgrade\" an existing non-promise connection to use promise. const mysql = require('mysql2'); // create the connection const conn = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); conn .promise() .query('SELECT 1') .then(([rows, fields]) => { console.log(rows); }) .catch(console.log) .then(() => conn.end());","s":"Using Promise Wrapper","u":"/node-mysql2/docs","h":"#using-promise-wrapper","p":100},{"i":113,"t":"If you have two columns with the same name, you might want to get results as an array rather than an object to prevent them from clashing. This is a deviation from the Node MySQL library. For example: SELECT 1 AS `foo`, 2 AS `foo`. You can enable this setting at either the connection level (applies to all queries), or at the query level (applies only to that specific query). Connection Level​ Promise Callback const conn = await mysql.createConnection({ host: 'localhost', database: 'test', user: 'root', rowsAsArray: true, }); const conn = mysql.createConnection({ host: 'localhost', database: 'test', user: 'root', rowsAsArray: true, }); Query Level​ Promise Callback try { const [results, fields] = await conn.query({ sql: 'SELECT 1 AS `foo`, 2 AS `foo`', rowsAsArray: true, }); console.log(results); // in this query, results will be an array of arrays rather than an array of objects console.log(fields); // fields are unchanged } catch (err) { console.log(err); } conn.query( { sql: 'SELECT 1 AS `foo`, 2 AS `foo`', rowsAsArray: true, }, function (err, results, fields) { console.log(results); // in this query, results will be an array of arrays rather than an array of objects console.log(fields); // fields are unchanged } ); Getting Help Need help? Ask your question on Stack Overflow or GitHub. If you've encountered an issue, please file it on GitHub.","s":"Array Results","u":"/node-mysql2/docs","h":"#array-results","p":100},{"i":115,"t":"index.js 'use strict'; // get the client const mysql = require('mysql2'); // create the connection to database const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); connection.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [1, null, 3], (err, rows, fields) => { console.log(err, rows, fields); connection.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [3, null, 3], (err, rows, fields) => { console.log(err, rows, fields); connection.unprepare('select ?+1 as qqq, ? as rrr, ? as yyy'); connection.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [3, null, 3], (err, rows, fields) => { console.log(err, rows, fields); } ); } ); } );","s":"Execute","u":"/node-mysql2/docs/examples/execute","h":"","p":114},{"i":118,"t":"Promise Callback import mysql from 'mysql2/promise'; const connection = await mysql.createConnection({ user: 'test', database: 'test', }); const [rows] = await connection.query('SELECT 1+1 AS `test1`'); // ... const mysql = require('mysql2'); const connection = mysql.createConnection({ user: 'test', database: 'test', }); connection.query('SELECT 1+1 AS `test1`', (err, rows) => { // ... });","s":"Simple SELECT","u":"/node-mysql2/docs/examples","h":"#simple-select","p":116},{"i":120,"t":"Promise Callback import mysql from 'mysql2/promise'; const connection = await mysql.createConnection({ user: 'test', database: 'test', }); const [rows] = await connection.execute('SELECT 1+? AS `test1`', [10]); // ... const mysql = require('mysql2'); const connection = mysql.createConnection({ user: 'test', database: 'test', }); connection.execute('SELECT 1+? as test1', [10], (err, rows) => { // ... });","s":"Prepared Statement and Parameters","u":"/node-mysql2/docs/examples","h":"#prepared-statement-and-parameters","p":116},{"i":122,"t":"Promise Callback import fs from 'fs'; import mysql from 'mysql2/promise'; const connection = await mysql.createConnection({ user: 'test', database: 'test', ssl: { key: fs.readFileSync('./certs/client-key.pem'), cert: fs.readFileSync('./certs/client-cert.pem'), }, }); console.log(await connection.query('SELECT 1+1 AS `test1`')); const fs = require('fs'); const mysql = require('mysql2'); const connection = mysql.createConnection({ user: 'test', database: 'test', ssl: { key: fs.readFileSync('./certs/client-key.pem'), cert: fs.readFileSync('./certs/client-cert.pem'), }, }); connection.query('SELECT 1+1 AS `test1`', console.log); You can use 'Amazon RDS' string as value to ssl property to connect to Amazon RDS mysql over ssl (in that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used) Promise Callback import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ user: 'foo', password: 'bar', host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); const [res] = await connection.query(\"SHOW `status` LIKE 'Ssl_cipher'\"); console.log(res); connection.end(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const connection = mysql.createConnection({ user: 'foo', password: 'bar', host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); connection.query(\"SHOW `status` LIKE 'Ssl_cipher'\", (err, res) => { console.log(err, res); connection.end(); });","s":"Connecting over encrypted connection","u":"/node-mysql2/docs/examples","h":"#connecting-over-encrypted-connection","p":116},{"i":124,"t":"const mysql = require('mysql2'); const server = mysql.createServer(); server.listen(3307); server.on('connection', (conn) => { console.log('connection'); conn.serverHandshake({ protocolVersion: 10, serverVersion: 'node.js rocks', connectionId: 1234, statusFlags: 2, characterSet: 8, capabilityFlags: 0xffffff, }); conn.on('field_list', (table, fields) => { console.log('field list:', table, fields); conn.writeEof(); }); const remote = mysql.createConnection({ user: 'root', database: 'dbname', host: 'server.example.com', password: 'secret', }); conn.on('query', (sql) => { console.log(`proxying query: ${sql}`); remote.query(sql, function (err) { // overloaded args, either (err, result :object) // or (err, rows :array, columns :array) if (Array.isArray(arguments[1])) { // response to a 'select', 'show' or similar const rows = arguments[1], columns = arguments[2]; console.log('rows', rows); console.log('columns', columns); conn.writeTextResult(rows, columns); } else { // response to an 'insert', 'update' or 'delete' const result = arguments[1]; console.log('result', result); conn.writeOk(result); } }); }); conn.on('end', remote.end.bind(remote)); });","s":"Simple MySQL proxy server","u":"/node-mysql2/docs/examples","h":"#simple-mysql-proxy-server","p":116},{"i":126,"t":"MySQL-pg-proxy - MySQL to Postgres proxy server. MySQLite.js - MySQL server with JS-only (emscripten compiled) sqlite backend. SQL-engine - MySQL server with LevelDB backend. MySQL-osquery-proxy - Connect to facebook osquery using MySQL client PlyQL - Connect to Druid using MySQL client","s":"Examples using MySQL server API","u":"/node-mysql2/docs/examples","h":"#examples-using-mysql-server-api","p":116},{"i":128,"t":"index.js 'use strict'; const mysql = require('mysql2').createConnection({ host: 'localhost', user: 'root', database: 'test', passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'), }); mysql.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [1, null, 3], (err, rows, fields) => { console.log(err, rows, fields); } );","s":"Pass SHA","u":"/node-mysql2/docs/examples/pass-sha","h":"","p":127},{"i":130,"t":"index.js 'use strict'; const mysql = require('mysql2'); const ClientFlags = require('mysql2/lib/constants/client.js'); const server = mysql.createServer(); server.listen(3307); server.on('connection', (conn) => { console.log('connection'); conn.serverHandshake({ protocolVersion: 10, serverVersion: 'node.js rocks', connectionId: 1234, statusFlags: 2, characterSet: 8, capabilityFlags: 0xffffff ^ ClientFlags.COMPRESS, }); conn.on('field_list', (table, fields) => { console.log('field list:', table, fields); conn.writeEof(); }); const remote = mysql.createConnection({ user: 'root', database: 'dbname', host: 'server.example.com', password: 'secret', }); conn.on('query', (sql) => { console.log(`proxying query: ${sql}`); remote.query(sql, function (err) { // overloaded args, either (err, result :object) // or (err, rows :array, columns :array) if (Array.isArray(arguments[1])) { // response to a 'select', 'show' or similar const rows = arguments[1], columns = arguments[2]; console.log('rows', rows); console.log('columns', columns); conn.writeTextResult(rows, columns); } else { // response to an 'insert', 'update' or 'delete' const result = arguments[1]; console.log('result', result); conn.writeOk(result); } }); }); conn.on('end', remote.end.bind(remote)); });","s":"MySQL Proxy","u":"/node-mysql2/docs/examples/mysqlproxy","h":"","p":129},{"i":132,"t":"index.js 'use strict'; // get the client const mysql = require('mysql2'); // create the connection to database const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // simple query connection.query( 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45', (err, results, fields) => { console.log(results); // results contains rows returned by server console.log(fields); // fields contains extra meta data about results, if available } ); // with placeholder connection.query( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Page', 45], (err, results) => { console.log(results); } );","s":"SELECT","u":"/node-mysql2/docs/examples/queries/select","h":"","p":131},{"i":134,"t":"index.js 'use strict'; // get the client const mysql = require('mysql2'); // create the connection to database const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // execute will internally call prepare and query connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Rick C-137', 53], (err, results, fields) => { console.log(results); // results contains rows returned by server console.log(fields); // fields contains extra meta data about results, if available // If you execute same statement again, it will be picked form a LRU cache // which will save query preparation time and give better performance } );","s":"Prepared Statements","u":"/node-mysql2/docs/examples/prepare","h":"","p":133},{"i":136,"t":"index.js 'use strict'; const pool = require('mysql2').createPool({ host: 'localhost', user: 'root', database: 'test', password: 'root', }); setInterval(() => { for (let i = 0; i < 5; ++i) { pool.query((err, rows, fields) => { console.log(rows, fields); // Connection is automatically released once query resolves }); } }, 1000); setInterval(() => { for (let i = 0; i < 5; ++i) { pool.getConnection((err, db) => { db.query('select sleep(0.5) as qqq', (err, rows, fields) => { console.log(rows, fields); db.release(); }); }); } }, 1000);","s":"Pool Test","u":"/node-mysql2/docs/examples/pool-test","h":"","p":135},{"i":138,"t":"await.js co.js .babelrc package.json 'use strict'; const mysql = require('mysql2/promise'); async function test() { const c = await mysql.createConnection({ port: 3306, user: 'testuser', namedPlaceholders: true, password: 'testpassword', }); console.log('connected!'); const [rows, fields] = await c.query('show databases'); console.log(rows); try { const [rows, fields] = await c.query('some invalid sql here'); } catch (e) { console.log('caught exception!', e); } console.log(await c.execute('select sleep(0.5)')); console.log('after first sleep'); console.log(await c.execute('select sleep(0.5)')); console.log('after second sleep'); let start = +new Date(); console.log( await Promise.all([ c.execute('select sleep(2.5)'), c.execute('select sleep(2.5)'), ]) ); console.log( 'after 2+3 parallel sleep which is in fact not parallel because commands are queued per connection' ); let end = +new Date(); console.log(end - start); await c.end(); const p = mysql.createPool({ port: 3306, user: 'testuser', namedPlaceholders: true, password: 'testpassword', }); console.log(await p.execute('select sleep(0.5)')); console.log('after first pool sleep'); start = +new Date(); console.log( await Promise.all([ p.execute('select sleep(2.5)'), p.execute('select sleep(2.5)'), ]) ); console.log('after 2+3 parallel pool sleep'); end = +new Date(); console.log(end - start); await p.end(); } test() .then(() => { console.log('done'); }) .catch((err) => { console.log('error!', err); throw err; }); 'use strict'; const mysql = require('mysql2/promise'); const co = require('co'); co(function* () { const c = yield mysql.createConnection({ port: 3306, user: 'root', namedPlaceholders: true, }); const rows = yield c.query('show databases'); console.log(rows); console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 })); yield c.end(); }) .then(function () { console.log('done'); }) .catch(function (err) { console.log(err); throw err; }); { \"plugins\": [\"transform-async-to-generator\"] } { \"name\": \"promise-co-await\", \"version\": \"1.0.0\", \"description\": \"\", \"main\": \"await.js\", \"scripts\": { \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\" }, \"author\": \"\", \"license\": \"ISC\", \"dependencies\": { \"babel-cli\": \"^6.9.0\" } }","s":"Promise CO Await","u":"/node-mysql2/docs/examples/promise-co-await","h":"","p":137},{"i":140,"t":"index.js 'use strict'; const mysql = require('mysql2'); const conn = mysql.createConnection({ user: process.env.USER, password: process.env.PASSWORD, database: process.env.DB, host: process.env.HOST, port: 3306, ssl: 'Amazon RDS', }); conn.query(\"show status like 'Ssl_cipher'\", function (err, res) { console.log(err, res); conn.end(); });","s":"RDS SSL","u":"/node-mysql2/docs/examples/ssl/rds-ssl","h":"","p":139},{"i":142,"t":"index.ts db.ts /** * The types are explicity for learning purpose */ import { PoolOptions } from 'mysql2/promise'; import { MySQL } from './db.js'; interface User extends RowDataPacket { id: number; name: string; } const access: PoolOptions = { host: '', user: '', password: '', database: '', }; (async () => { const mysql = new MySQL(access); /** Deleting the `users` table, if it exists */ await mysql.queryResult('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await mysql.queryResult( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await mysql.executeResult( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [users] = await mysql.queryRows( 'SELECT * FROM `users` ORDER BY `name` ASC;' ); users.forEach((user: User) => { console.log('-----------'); console.log('id: ', user.id); console.log('name:', user.name); }); await mysql.connection.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */ /** * The types are explicity for learning purpose */ import { createPool, PoolOptions, Pool, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; export class MySQL { private conn: Pool; private credentials: PoolOptions; constructor(credentials: PoolOptions) { this.credentials = credentials; this.conn = createPool(this.credentials); } /** A random method to simulate a step before to get the class methods */ private ensureConnection() { if (!this?.conn) this.conn = createPool(this.credentials); } /** For `SELECT` and `SHOW` */ get queryRows() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */ get queryRowsAsArray() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For `INSERT`, `UPDATE`, etc. */ get queryResult() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */ get queryResults() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For `SELECT` and `SHOW` */ get executeRows() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */ get executeRowsAsArray() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** For `INSERT`, `UPDATE`, etc. */ get executeResult() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */ get executeResults() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** Expose the Pool Connection */ get connection() { return this.conn; } }","s":"Basic Custom Class","u":"/node-mysql2/docs/examples/typescript/basic-custom-class","h":"","p":141},{"i":144,"t":"index.js 'use strict'; const fs = require('fs'); const mysql = require('mysql2'); const conn = mysql.createConnection({ user: 'root', password: '', database: 'test', host: '127.0.0.1', port: '3306', ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); conn.query('select 1+1 as test', function (err, res) { console.log(res); conn.query('select repeat(\"a\", 100) as test', function (err, res) { console.log(res); }); }); See examples/ssl/certs.","s":"Select Over SSL","u":"/node-mysql2/docs/examples/ssl/select-over-ssl","h":"","p":143},{"i":146,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ProcedureCallPacket, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { /** id */ 0: number; /** name */ 1: string; } const isResultSetHeader = (data: unknown): data is ResultSetHeader => { if (!data || typeof data !== 'object') return false; const keys = [ 'fieldCount', 'affectedRows', 'insertId', 'info', 'serverStatus', 'warningStatus', 'changedRows', ]; return keys.every((key) => key in data); }; (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', rowsAsArray: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Deleting the `getUsers` procedure, if it exists */ await conn.query('DROP PROCEDURE IF EXISTS getUsers'); /** Creating a procedure to get the users */ await conn.query(` CREATE PROCEDURE getUsers() BEGIN SELECT * FROM users ORDER BY name ASC; END `); /** Getting users */ const [procedureResult] = await conn.query>('CALL getUsers()'); procedureResult.forEach((users) => { /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */ if (isResultSetHeader(users)) { console.log('----------------'); console.log('Affected Rows:', users.affectedRows); } else { users.forEach((user) => { console.log('----------------'); console.log('id: ', user[0]); console.log('name:', user[1]); }); } }); await conn.end(); })(); /** Output * * Inserted: 4 * ---------------- * id: 4 * name: Gween * ---------------- * id: 2 * name: John * ---------------- * id: 1 * name: Josh * ---------------- * id: 3 * name: Marie * ---------------- * Affected Rows: 0 */","s":"Procedure Call Packet (Row as Array)","u":"/node-mysql2/docs/examples/typescript/procedure-call/row-as-array","h":"","p":145},{"i":148,"t":"index.js 'use strict'; const mysql = require('mysql2'); const flags = require('mysql2/lib/constants/client.js'); const auth = require('mysql2/lib/auth_41.js'); function authenticate(params, cb) { console.log(params); const doubleSha = auth.doubleSha1('pass123'); const isValid = auth.verifyToken( params.authPluginData1, params.authPluginData2, params.authToken, doubleSha ); if (isValid) { cb(null); } else { // for list of codes lib/constants/errors.js cb(null, { message: 'wrong password dude', code: 1045 }); } } const server = mysql.createServer(); server.listen(3333); server.on('connection', (conn) => { // we can deny connection here: // conn.writeError({ message: 'secret', code: 123 }); // conn.close(); conn.serverHandshake({ protocolVersion: 10, serverVersion: '5.6.10', // 'node.js rocks', connectionId: 1234, statusFlags: 2, characterSet: 8, // capabilityFlags: 0xffffff, // capabilityFlags: -2113931265, capabilityFlags: 2181036031, authCallback: authenticate, }); conn.on('field_list', (table, fields) => { console.log('FIELD LIST:', table, fields); conn.writeEof(); }); conn.on('query', (query) => { conn.writeColumns([ { catalog: 'def', schema: 'test', table: 'test_table', orgTable: 'test_table', name: 'beta', orgName: 'beta', characterSet: 33, columnLength: 384, columnType: 253, flags: 0, decimals: 0, }, ]); conn.writeTextRow(['test тест テスト փորձարկում পরীক্ষা kiểm tra ']); conn.writeTextRow(['ტესტი પરીક્ષણ מבחן פּרובירן اختبار परीक्षण']); conn.writeEof(); conn.close(); }); });","s":"Server","u":"/node-mysql2/docs/examples/server","h":"","p":147},{"i":150,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ProcedureCallPacket, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { id: number; name: string; } const isResultSetHeader = (data: unknown): data is ResultSetHeader => { if (!data || typeof data !== 'object') return false; const keys = [ 'fieldCount', 'affectedRows', 'insertId', 'info', 'serverStatus', 'warningStatus', 'changedRows', ]; return keys.every((key) => key in data); }; (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Deleting the `getUsers` procedure, if it exists */ await conn.query('DROP PROCEDURE IF EXISTS getUsers'); /** Creating a procedure to get the users */ await conn.query(` CREATE PROCEDURE getUsers() BEGIN SELECT * FROM users ORDER BY name ASC; END `); /** Getting users */ const [procedureResult] = await conn.query>('CALL getUsers()'); procedureResult.forEach((users) => { /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */ if (isResultSetHeader(users)) { console.log('----------------'); console.log('Affected Rows:', users.affectedRows); } else { users.forEach((user) => { console.log('----------------'); console.log('id: ', user.id); console.log('name:', user.name); }); } }); await conn.end(); })(); /** Output * * Inserted: 4 * ---------------- * id: 4 * name: Gween * ---------------- * id: 2 * name: John * ---------------- * id: 1 * name: Josh * ---------------- * id: 3 * name: Marie * ---------------- * Affected Rows: 0 */","s":"Procedure Call Packet","u":"/node-mysql2/docs/examples/typescript/procedure-call/procedure-call-packet","h":"","p":149},{"i":152,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { id: number; name: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', multipleStatements: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [rows] = await conn.query( [ 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2;', 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2 OFFSET 2;', ].join(' ') ); rows.forEach((users) => { users.forEach((user) => { console.log('-----------'); console.log('id: ', user.id); console.log('name:', user.name); }); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet (Multi Statements)","u":"/node-mysql2/docs/examples/typescript/row-data/multi-statements","h":"","p":151},{"i":154,"t":"MySQL2 is mostly API compatible with Node MySQL. One known incompatibility is that DECIMAL values are returned as strings whereas in Node MySQL they are returned as numbers. This includes the result of SUM() and AVG() functions when applied to INTEGER arguments. This is done deliberately to avoid loss of precision - see https://github.com/sidorares/node-mysql2/issues/935. info If you find any other incompatibility with Node MySQL, Please report via Issue tracker. We will fix reported incompatibility on priority basis.","s":"API and Configuration","u":"/node-mysql2/docs/api-and-configurations","h":"","p":153},{"i":156,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { /** id */ 0: number; /** name */ 1: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', multipleStatements: true, rowsAsArray: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [rows] = await conn.query( [ 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2;', 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2 OFFSET 2;', ].join(' ') ); rows.forEach((users) => { users.forEach((user) => { console.log('-----------'); console.log('id: ', user[0]); console.log('name:', user[1]); }); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet (Multi Statements and Row as Array)","u":"/node-mysql2/docs/examples/typescript/row-data/row-as-array-multi-statements","h":"","p":155},{"i":158,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { /** id */ 0: number; /** name */ 1: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', rowsAsArray: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [users] = await conn.query( 'SELECT * FROM `users` ORDER BY `name` ASC;' ); users.forEach((user) => { console.log('-----------'); console.log('id: ', user[0]); console.log('name:', user[1]); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet (Row as Array)","u":"/node-mysql2/docs/examples/typescript/row-data/row-as-array","h":"","p":157},{"i":160,"t":"MySQL2 project is a continuation of MySQL-Native. Protocol parser code was rewritten from scratch and api changed to match popular Node MySQL. MySQL2 team is working together with Node MySQL team to factor out shared code and move it under mysqljs organization. MySQL2 is mostly API compatible with Node MySQL and supports majority of features. MySQL2 also offers these additional features: Faster / Better Performance Prepared Statements MySQL Binary Log Protocol MySQL Server Extended support for Encoding and Collation Promise Wrapper Compression SSL and Authentication Switch Custom Streams Pooling","s":"History and Why MySQL2","u":"/node-mysql2/docs/history-and-why-mysq2","h":"","p":159},{"i":162,"t":"The Stability Badges are indications of a section's stability. The stability indices are as follows: 0Deprecated The feature might generate warnings and does not assure backward compatibility. Experimental: These features are not bound by semantic versioning. They may undergo non-backward compatible changes or be removed in future releases. Their use in production is discouraged. Use caution with Experimental features, especially in libraries. Users might not expect changes from these unstable features. To reduce surprises, consider using a command-line flag for Experimental features. Experimental features are classified into stages: 1Experimental Experimental features at this stage are currently in development and prone to considerable changes. 1.1Early Development Experimental features at this stage are approaching minimum viability. 1.2Release Candidate Experimental features are close to reaching stability. Major changes are not expected, but they could still occur based on user feedback. Testing and feedback are important to ascertain the readiness of these features for stable classification. 2Stable Compatibility with the MySQL ecosystem is a high priority. 3Legacy This feature, while not likely to be removed and still subject to semantic versioning, is not under active maintenance and other options are available. Features are classified as legacy instead of deprecated when they cause no harm and have widespread use in the MySQL ecosystem. It's unlikely that bugs in legacy features will be addressed.","s":"Stability Badges","u":"/node-mysql2/docs/stability-badges","h":"","p":161},{"i":164,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { id: number; name: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [users] = await conn.query( 'SELECT * FROM `users` ORDER BY `name` ASC;' ); users.forEach((user) => { console.log('-----------'); console.log('id: ', user.id); console.log('name:', user.name); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet","u":"/node-mysql2/docs/examples/typescript/row-data/row-data-packet","h":"","p":163},{"i":166,"t":"This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as createConnection, createPool, createPoolCluster, execute and query.","s":"How to handle errors?","u":"/node-mysql2/docs/faq/how-to-handle-errors","h":"","p":165},{"i":168,"t":"createConnection 2Stable This solution has been tested and confirmed as the correct answer. Handling connection errors by adding an error event listener: const mysql = require('mysql2'); connection = mysql.createConnection({ host: '', user: '', database: '', }); connection.addListener('error', (err) => { if (err instanceof Error) { console.log(`createConnection error:`, err); } }); createPool 2Stable This solution has been tested. Handling connection errors through callback's err parameter: const mysql = require('mysql2'); const pool = mysql.createPool({ host: '', user: '', database: '', }); pool.getConnection((err, connection) => { if (err instanceof Error) { console.log('pool.getConnection error:', err); return; } }); createPoolCluster 2Stable This solution has been tested. Handling connection errors through callback's err parameter: const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('NodeI', { host: '', user: '', database: '', }); poolCluster.getConnection('NodeI', (err, connection) => { if (err instanceof Error) { console.log('poolCluster.getConnection error:', err); return; } }); execute 2Stable This solution has been tested. Handling execute errors through callback's err parameter: connection.execute('SELEC 1 + 1', (err, rows) => { if (err instanceof Error) { console.log('execute error:', err); return; } console.log(rows); }); It will work for both createConnection, createPool and createPoolCluster connections. query 2Stable This solution has been tested. Handling query errors through callback's err parameter: connection.query('SELEC 1 + 1', (err, rows) => { if (err instanceof Error) { console.log('query error:', err); return; } console.log(rows); }); It will work for both createConnection, createPool and createPoolCluster connections.","s":"Using callbacks","u":"/node-mysql2/docs/faq/how-to-handle-errors","h":"#using-callbacks","p":165},{"i":170,"t":"createConnection 2Stable This solution has been tested and confirmed as the correct answer. Handling connection errors through try-catch block: import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ host: '', user: '', database: '', }); } catch (err) { if (err instanceof Error) { console.log(err); } } createPool 2Stable This solution has been tested. Handling connection errors through try-catch block: import mysql from 'mysql2/promise'; const pool = mysql.createPool({ host: '', user: '', database: '', }); try { const connection = await pool.getConnection(); } catch (err) { if (err instanceof Error) { console.log(err); } } createPoolCluster 2Stable This solution has been tested. Handling connection errors through try-catch block: import mysql from 'mysql2/promise'; const poolCluster = mysql.createPoolCluster(); poolCluster.add('NodeI', { host: '', user: '', database: '', }); try { await poolCluster.getConnection('NodeI'); } catch (err) { if (err instanceof Error) { console.log('createConnection error:', err); } } execute 2Stable This solution has been tested. Handling execute errors through try-catch block: try { const [rows] = await connection.execute('SELEC 1 + 1'); console.log(rows); } catch (err) { if (err instanceof Error) { console.log('execute error:', err); } } It will work for both createConnection, createPool and createPoolCluster connections. query 2Stable This solution has been tested. Handling query errors through try-catch block: try { const [rows] = await connection.query('SELEC 1 + 1'); console.log(rows); } catch (err) { if (err instanceof Error) { console.log('query error:', err); } } It will work for both createConnection, createPool and createPoolCluster connections.","s":"Using promises","u":"/node-mysql2/docs/faq/how-to-handle-errors","h":"#using-promises","p":165},{"i":172,"t":"Discussions #1998 #2282","s":"Related Links","u":"/node-mysql2/docs/faq/how-to-handle-errors","h":"#related-links","p":165},{"i":174,"t":"This section provides answers to commonly asked questions about MySQL2. tip To explore the FAQs, please use the sidebar navigation on desktop or access the menu on mobile devices.","s":"Frequently Asked Questions","u":"/node-mysql2/docs/faq","h":"","p":173}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/2",[0,3.693,1,3.106,2,5.445,3,5.445,4,0.774,5,4.303,6,5.445,7,2.385,8,3.275,9,5.445,10,2.482,11,5.445,12,4.303,13,5.445,14,3.106,15,3.275,16,4.756,17,4.06,18,4.303,19,5.445,20,5.445,21,1.887,22,0.436,23,3.964,24,3.275,25,3.693,26,3.693,27,4.756,28,2.295,29,5.445]],["t/4",[30,5.012,31,5.54,32,5.54,33,2.16,34,3.012,35,3.814,36,6.343,37,5.54,38,6.343,39,4.301]],["t/6",[40,5.872,41,6.388,42,1.024,43,5.048,44,2.693,45,6.388,46,6.388,47,4.65]],["t/8",[48,4.128,49,6.482,50,4.718,51,5.662,52,3.898,53,6.482,54,6.482]],["t/10",[14,3.067,22,0.309,33,2.108,34,2.553,39,4.543,40,5.766,43,3.047,47,2.807,50,3.914,55,5.378,56,5.378,57,3.856,58,5.409,59,3.856,60,5.378,61,5.378,62,2.184,63,1.359,64,1.998,65,3.856,66,3.856,67,2.184,68,4.892,69,5.378,70,3.856,71,4.543,72,5.378,73,3.856,74,3.856,75,3.856,76,4.697,77,1.894,78,3.368,79,3.368,80,3.856,81,3.368,82,2.319,83,3.856,84,3.856,85,3.368,86,3.856,87,3.856,88,3.368,89,3.914,90,2.199,91,2.615,92,3.368,93,1.626,94,5.378,95,3.856,96,3.368,97,3.856,98,3.856,99,3.368,100,3.368,101,3.856,102,3.856,103,3.856,104,2.807,105,2.807,106,3.856,107,3.856,108,3.856,109,3.856,110,3.368,111,2.199,112,3.368,113,3.047]],["t/12",[42,0.873,43,4.303,63,1.918,88,4.756,89,3.964,104,3.964,105,3.964,114,3.693,115,4.977,116,5.445,117,2.698,118,4.756,119,6.41,120,3.964,121,4.756,122,4.756,123,5.335,124,5.445,125,5.445,126,5.897,127,4.756,128,5.445,129,5.445,130,4.756,131,5.445,132,3.106,133,5.445]],["t/14",[22,0.636,67,2.107,82,4.848,93,2.188,115,4.443,123,4.101,134,5.489,135,5.19,136,4.301,137,1.893,138,4.533,139,3.778,140,2.365,141,5.19,142,1.405,143,5.19,144,5.19,145,4.533,146,5.177,147,3.305,148,4.101,149,5.19]],["t/16",[22,0.611,44,2.254,67,2.171,90,3.05,93,2.254,115,3.626,123,4.225,142,1.447,146,5.75,147,3.405,148,4.225,150,6.658,151,4.67,152,4.225,153,5.347,154,5.347,155,6.675,156,5.347,157,3.05,158,3.892,159,2.437,160,1.495,161,5.347,162,5.347,163,1.82,164,3.623]],["t/18",[17,3.336,22,0.593,26,3.762,42,0.889,93,2.339,104,4.971,115,4.632,119,5.965,126,5.965,130,4.846,142,1.502,147,3.533,148,4.383,165,6.926,166,5.548,167,5.548,168,4.383,169,4.383,170,4.383,171,4.846]],["t/20",[35,4.065,40,3.614,63,1.611,68,6.065,71,5.206,104,3.329,115,3.102,117,2.266,172,1.055,173,6.038,174,5.274,175,6.038,176,4.573,177,4.573,178,6.279,179,5.68,180,7.189,181,7.189,182,2.482,183,3.995,184,4.573,185,4.573,186,6.038,187,6.038,188,3.995,189,4.095,190,6.038,191,3.995,192,4.573,193,1.928,194,3.102,195,3.995,196,4.573]],["t/22",[1,2.892,4,0.885,10,2.311,14,4.051,15,3.05,23,3.691,24,3.05,28,2.138,33,2.198,34,2.408,77,1.786,90,2.892,111,2.892,120,4.699,152,4.007,179,4.007,189,3.439,197,5.071,198,4.007,199,5.071,200,4.43,201,4.43,202,4.007,203,4.43,204,3.439,205,2.627,206,4.007,207,3.439,208,2.892,209,2.753,210,2.627,211,2.221,212,4.007,213,3.439,214,3.691,215,3.691,216,4.007]],["t/24",[33,2.257,34,3.147,35,3.985,93,2.794]],["t/26",[22,0.533,25,4.51,35,3.196,48,3.384,67,2.7,111,3.031,117,3.295,140,3.031,142,1.439,217,6.65,218,5.315,219,5.315,220,4.642,221,5.315,222,4.642,223,3.295,224,3.604,225,4.199,226,5.315,227,3.868,228,1.872,229,5.315,230,4.642,231,3.868,232,5.315,233,1.938,234,5.315,235,4.642,236,4.642,237,5.315]],["t/28",[1,3.88,4,0.884,14,4.209,27,4.816,28,3.11,52,3.315,77,1.942,89,4.013,209,2.993,210,2.856,238,5.513,239,4.816,240,4.356,241,5.376,242,5.513,243,4.356,244,5.513,245,6.803,246,6.803,247,5.513]],["t/30",[4,0.717,14,3.566,51,5.462,68,5.799,71,4.241,93,2.636,248,6.253,249,7.79,250,3.566]],["t/33",[1,1.793,4,0.361,8,3.321,22,0.684,28,1.325,42,0.744,44,1.325,67,1.277,77,1.108,160,2.129,163,1.071,193,1.958,207,2.132,209,1.707,210,1.629,222,2.746,228,1.108,231,2.289,233,1.147,251,2.304,252,4.819,253,1.707,254,2.484,255,2.571,256,3.144,257,3.517,258,5.523,259,3.144,260,2.793,261,2.484,262,1.707,263,2.746,264,4.057,265,3.15,266,2.649,267,2.002,268,1.629,269,3.144,270,3.67,271,7.232,272,4.644,273,7.385,274,1.819,275,1.652,276,1.942,277,3.144,278,3.38,279,1.298,280,2.746]],["t/35",[7,2.328,22,0.671,67,2.158,99,4.642,233,1.938,255,3.206,266,3.793,274,1.585,276,1.692,281,0.823,282,5.315,283,3.604,284,3.384,285,5.315,286,2.603,287,4.642,288,2.504,289,3.604,290,5.315]],["t/37",[4,0.354,7,2.394,8,2.757,21,1.281,22,0.664,39,2.095,42,0.495,58,6.285,64,1.6,67,2.219,77,1.088,100,5.911,105,4.926,111,1.762,136,1.762,137,1.993,158,2.249,171,4.004,172,1.49,182,2.488,208,1.762,228,1.925,243,2.441,253,2.488,265,2.095,279,1.528,280,2.698,281,1,288,1.509,291,3.622,292,3.622,293,3.707,294,6.767,295,1.672,296,3.089,297,1.677,298,3.089,299,2.095,300,5.282,301,3.282,302,6.047,303,1.967,304,2.698,305,1.531,306,2.095,307,3.707,308,5.466,309,4.584,310,2.488,311,3.089,312,3.089,313,3.089,314,3.089,315,2.441,316,1.052,317,0.836,318,0.567,319,0.567,320,3.089,321,3.089,322,2.441,323,2.698,324,2.698,325,3.089,326,3.089,327,3.089]],["t/39",[4,0.586,10,2.714,21,1.917,22,0.658,42,0.955,48,2.286,64,3.085,67,1.458,93,1.514,157,2.048,172,1.374,206,2.837,208,2.048,278,2.613,281,1.161,283,2.435,286,1.406,293,4.652,295,2.172,299,2.435,316,1.741,317,0.972,318,0.939,319,0.939,328,3.136,329,3.59,330,3.59,331,3.59,332,3.59,333,3.59,334,1.949,335,3.59,336,3.59,337,2.435,338,2.613,339,1.779,340,2.837,341,3.59,342,5.114,343,2.837,344,3.59,345,4.467,346,4.467,347,3.136,348,2.048,349,2.172,350,2.837,351,2.837,352,5.114,353,1.476,354,3.59,355,3.075,356,2.435,357,1.779,358,3.59,359,2.837,360,2.435,361,2.435,362,3.136,363,3.59,364,3.136,365,3.136,366,3.59]],["t/41",[0,1.484,17,1.316,21,1.407,22,0.66,24,1.316,28,1.854,42,0.563,64,1.134,67,2.238,77,1.773,93,0.922,111,1.248,136,1.248,172,0.81,182,3.193,202,2.774,205,1.134,208,1.248,211,0.959,213,2.381,214,3.201,220,1.911,227,2.556,228,1.941,231,3.201,233,0.798,251,1.326,253,1.906,255,0.922,257,1.393,260,2.112,263,1.911,268,1.134,274,0.653,281,0.853,291,2.774,295,2.254,299,1.484,300,1.911,301,3.355,303,3.746,317,0.95,318,0.645,319,0.645,322,1.729,340,1.729,349,1.835,351,1.729,359,1.729,367,2.188,368,2.188,369,1.729,370,2.188,371,3.977,372,2.556,373,3.841,374,3.475,375,2.607,376,2.188,377,5.077,378,4.813,379,3.475,380,2.188,381,2.188,382,2.188,383,4.398,384,3.413,385,6.181,386,2.188,387,3.067,388,2.188,389,2.188,390,2.188,391,1.729,392,2.188,393,2.188,394,4.398,395,2.188,396,1.014,397,3.067,398,3.067,399,2.188,400,2.188,401,3.511,402,3.067,403,3.841,404,1.729,405,3.511,406,3.511,407,3.511,408,1.593,409,4.398,410,3.511,411,1.134,412,1.484,413,2.188,414,5.033,415,1.729,416,2.188,417,2.188,418,2.188,419,1.911,420,2.188,421,2.188,422,1.729,423,2.188,424,2.188,425,2.188,426,1.729,427,3.511,428,1.593,429,1.911,430,1.593,431,1.593,432,2.188,433,2.188,434,1.911,435,2.188,436,1.911,437,1.911,438,1.911]],["t/43",[21,1.004,22,0.671,28,1.514,42,0.576,44,1.514,67,1.458,77,1.265,79,3.136,208,2.917,213,4.402,214,2.613,228,2.512,231,2.613,251,1.356,260,2.159,265,2.435,281,0.556,295,2.6,299,3.468,301,2.776,317,0.972,318,0.939,319,0.659,349,2.172,371,4.706,373,3.136,374,2.837,377,4.04,378,4.467,379,2.837,396,1.037,397,3.136,398,3.136,426,2.837,428,2.613,436,3.136,437,3.136,439,3.59,440,5.202,441,3.59,442,2.613,443,3.59,444,3.59,445,2.435,446,5.956,447,5.956,448,2.837,449,3.59,450,3.59,451,3.59,452,3.59,453,5.114,454,3.59,455,7.13,456,3.59,457,3.59,458,3.59,459,3.59,460,3.59]],["t/46",[22,0.498,63,2.187,77,2.187,262,3.37,355,3.734,461,6.209,462,5.424,463,6.209,464,4.52,465,6.209,466,6.209,467,5.424,468,6.209]],["t/48",[21,2.122,64,3.433,469,6.628]],["t/50",[1,2.636,22,0.545,28,2.563,39,3.134,77,1.628,138,4.036,194,3.134,215,3.364,255,1.948,262,2.508,266,2.636,275,1.543,279,1.292,286,2.38,288,2.237,291,5.368,303,2.943,307,3.134,403,5.31,411,2.394,464,3.364,470,4.621,471,3.364,472,3.364,473,3.364,474,4.425,475,3.364,476,3.364,477,4.621,478,6.305,479,4.621,480,4.621,481,2.943,482,6.079,483,2.943,484,4.036,485,4.621,486,6.079,487,4.621,488,6.794,489,4.621,490,4.621,491,4.621,492,4.621]],["t/52",[8,2.75,17,2.75,21,1.278,28,1.928,34,2.172,77,2.127,140,2.084,194,4.875,208,2.608,223,3.562,228,2.532,288,1.506,379,4.771,412,3.102,434,3.995,464,4.395,478,6.528,484,5.274,493,6.038,494,4.771,495,4.573,496,4.573,497,3.995,498,3.614,499,4.573,500,4.573,501,4.573,502,4.573,503,4.573,504,4.573,505,4.573,506,4.573,507,5.068,508,2.912,509,4.573,510,4.573,511,4.573,512,4.573,513,4.573,514,4.573,515,4.573]],["t/55",[0,2.964,22,0.685,42,0.701,111,2.493,160,1.973,204,2.964,205,2.264,209,3.18,210,3.423,270,3.453,274,1.303,275,1.487,276,1.866,286,2.882,307,2.964,384,2.964,412,2.964,442,3.181,508,2.783,516,3.817,517,4.37,518,4.37,519,4.37,520,4.993,521,2.964,522,4.37,523,3.817,524,2.964,525,3.181,526,3.817,527,4.37,528,3.453]],["t/57",[1,2.209,21,1.735,22,0.674,42,1.076,44,1.633,48,2.466,64,2.006,91,3.658,111,3.076,140,1.765,158,2.819,163,1.837,172,1.244,209,2.928,210,3.785,224,2.627,266,3.076,267,2.466,274,1.609,275,0.983,286,2.112,362,3.383,374,3.06,411,2.006,498,3.06,508,3.435,520,2.627,526,4.712,529,3.383,530,3.383,531,2.819,532,5.394,533,3.873,534,3.873,535,4.518,536,5.394,537,3.873,538,3.873,539,3.873,540,3.873,541,3.383,542,3.873,543,3.873,544,3.873,545,3.873,546,3.06,547,3.873,548,2.627,549,3.873,550,3.873,551,3.873,552,3.383,553,2.209]],["t/59",[22,0.484,42,0.968,67,2.452,198,4.772,210,3.725,429,5.276,507,4.096,508,3.846,520,5.207,531,4.396,554,6.04,555,6.04,556,6.04,557,6.04]],["t/61",[4,0.592,8,3.103,22,0.653,113,4.077,140,2.352,159,2.352,160,1.442,182,2.801,193,2.175,230,5.702,233,1.882,241,4.077,255,2.175,268,3.381,286,2.02,295,1.882,387,4.507,497,4.507,558,5.16,559,4.507,560,5.158,561,5.16,562,5.16,563,3.756,564,5.16,565,4.507,566,5.16,567,6.528,568,6.528,569,5.16]],["t/63",[18,5.048,24,3.842,208,3.644,211,2.798,212,5.048,570,6.388,571,3.468,572,6.388,573,5.048]],["t/65",[4,0.681,8,2.681,10,2.706,21,1.246,22,0.681,174,3.894,182,2.42,211,1.953,228,1.571,257,3.78,262,2.42,279,1.246,281,1.033,283,4.026,288,1.468,350,4.691,360,4.026,404,3.523,521,4.026,574,4.458,575,4.458,576,3.523,577,4.458,578,3.023,579,5.937,580,4.691,581,3.894,582,4.458,583,4.458,584,4.458,585,4.458,586,4.458,587,3.894,588,4.458,589,4.458,590,2.117,591,3.894]],["t/67",[4,0.695,10,2.095,22,0.668,44,1.938,163,2.063,172,1.397,193,1.938,275,1.167,281,1.159,288,1.514,295,2.209,317,1.244,319,1.113,339,2.278,348,2.622,396,1.327,576,4.787,592,3.138,593,4.597,594,2.73,595,4.016,596,4.016,597,2.495,598,4.597,599,4.016,600,4.016,601,5.292,602,4.016,603,5.292,604,4.597,605,4.597,606,4.597,607,4.597]],["t/69",[4,0.588,22,0.663,62,2.083,93,2.162,233,1.871,254,4.053,275,1.302,281,1.162,289,3.479,316,1.747,318,0.942,319,0.942,334,2.784,391,5.642,594,1.871,608,5.681,609,4.481,610,4.481,611,5.13,612,4.481,613,2.926,614,4.481,615,4.481,616,4.481,617,3.267,618,4.481,619,4.481,620,5.13]],["t/72",[33,2.343,42,0.901,50,5.01,52,3.379,71,4.668,293,3.81,299,3.81,328,4.907,438,4.907,494,4.439,621,5.01,622,4.907,623,6.012,624,5.618,625,5.618,626,5.618,627,5.438,628,5.618,629,5.618,630,3.81,631,3.379,632,5.618]],["t/74",[4,0.889,22,0.552,33,2.534,67,2.795,142,2.154,233,2.049,253,3.736,563,4.089,633,4.907,634,4.907,635,6.883,636,6.883,637,2.795]],["t/76",[4,0.679,22,0.657,33,2.015,142,1.602,172,1.638,281,1.1,305,2.933,318,1.087,319,1.087,396,1.709,638,4.272,639,3.559]],["t/78",[4,0.679,22,0.657,33,2.015,142,1.602,172,1.638,281,1.1,305,2.933,318,1.087,319,1.087,396,1.709,640,6.205,641,5.919]],["t/80",[22,0.685,35,2.853,48,3.022,93,2,117,3.065,160,2.038,163,2.106,172,1.682,224,3.218,275,1.92,279,1.326,428,3.454,580,3.749,595,4.145,642,3.749,643,3.939,644,3.528,645,2.937,646,2.819,647,3.218]],["t/83",[4,0.559,22,0.692,33,1.66,42,0.538,67,1.364,93,1.416,137,1.778,142,1.319,160,1.759,163,2.143,164,1.823,172,1.802,228,1.183,233,1.778,266,1.916,275,1.907,276,1.827,281,0.755,284,3.104,317,1.319,318,0.895,319,0.895,396,1.407,613,3.59,643,4.008,645,2.314,648,3.359,649,2.78,650,4.874,651,3.359,652,3.359,653,1.823]],["t/85",[4,0.524,7,2.003,22,0.686,33,1.557,42,0.733,67,1.857,142,1.238,160,1.688,163,2.301,164,2.482,172,1.77,233,2.202,260,2.75,275,1.533,276,1.923,279,1.278,281,0.935,317,1.238,318,0.84,319,0.84,396,1.32,613,2.608,643,2.912,645,2.172,653,2.482,654,3.631,655,4.573]],["t/87",[4,0.478,7,1.824,22,0.667,33,1.418,34,2.692,42,0.909,67,1.691,82,2.504,134,3.031,136,2.375,142,1.127,159,3.3,160,1.585,163,1.418,164,2.261,172,1.308,253,2.261,267,3.611,281,0.878,286,2.22,317,1.127,318,0.765,319,0.765,396,1.202,408,4.127,430,4.127,481,3.611,483,2.652,525,4.127,630,2.824,631,2.504,643,2.652,646,2.938,656,3.291,657,3.638,658,4.127,659,3.846,660,3.846,661,1.977,662,2.652,663,2.063,664,3.638,665,4.165,666,2.375,667,2.824,668,2.824,669,2.824]],["t/89",[4,0.456,7,1.742,22,0.676,33,1.354,42,0.638,82,2.392,134,2.895,136,2.269,142,1.077,159,3.604,160,1.536,163,2.143,164,2.159,172,1.267,233,2.004,253,2.982,260,2.392,281,0.851,286,2.151,317,1.077,318,0.73,319,0.73,334,2.159,396,1.148,481,3.499,483,3.499,630,2.697,631,3.304,643,2.533,646,3.094,654,3.304,656,3.143,660,3.726,661,1.889,662,2.533,663,1.971,664,3.474,666,2.269,667,3.726,668,3.726,669,3.726,670,3.474,671,3.978]],["t/91",[4,0.397,7,1.517,22,0.67,33,1.179,34,1.645,42,0.799,63,1.756,82,2.083,90,1.976,93,1.46,134,2.521,136,1.976,142,0.938,147,2.206,159,3.083,160,1.393,163,1.988,164,1.88,172,1.15,198,2.737,205,2.582,228,1.756,233,1.263,253,3.169,260,2.083,276,1.103,279,1.393,281,0.772,286,2.285,306,2.349,317,0.938,318,0.636,319,0.636,384,3.959,396,1,415,2.737,481,2.206,483,2.206,507,2.349,630,2.349,631,2.083,643,2.206,645,1.645,646,3.211,647,3.959,649,1.976,654,2.083,656,2.737,660,2.349,661,1.645,662,2.206,666,1.976,667,2.349,668,2.349,669,2.349,670,3.026,672,5.567,673,3.464,674,3.464,675,3.464,676,1.88,677,5.838,678,2.737,679,2.737,680,3.464,681,3.464,682,4.984]],["t/93",[34,2.99,42,1.01,267,4.01,408,4.584,430,4.584,525,4.584,646,2.87,657,5.501,658,4.584,659,4.271,683,5.501]],["t/95",[12,3.917,17,2.981,33,2.167,35,4.226,42,1.279,63,1.746,93,2.09,343,3.917,571,4.259,627,3.917,645,3.726,646,2.9,647,4.315,654,3.827,684,4.958,685,4.958,686,4.958,687,4.259,688,6.138,689,4.958]],["t/97",[4,0.702,7,2.046,22,0.662,25,3.167,42,0.749,159,2.128,160,1.711,170,3.69,281,1.057,288,1.537,303,2.974,310,2.535,316,1.59,349,1.703,353,1.767,355,2.808,412,3.167,578,3.167,600,5.347,649,2.663,690,2.314,691,2.217,692,4.67,693,4.67,694,4.67,695,4.67,696,4.67,697,4.079,698,6.829,699,3.69,700,4.67,701,4.67,702,4.67,703,4.67,704,4.67,705,4.67,706,4.67,707,4.67,708,4.67,709,4.67,710,4.67]],["t/99",[4,0.448,22,0.683,42,0.626,64,2.811,160,1.092,228,1.376,274,1.86,275,1.945,281,1.096,288,2.523,293,3.681,295,1.425,316,1.33,317,1.058,337,2.65,346,5.447,347,3.413,348,2.229,355,3.264,356,3.681,396,1.128,590,3.199,617,3.456,690,1.936,691,1.855,711,5.427,712,3.907,713,3.907,714,3.907,715,3.907,716,6.236,717,3.907,718,3.907,719,5.427]],["t/101",[1,3.421,4,0.688,15,3.607,23,4.366,28,2.529,52,3.607,152,4.74,205,3.107,207,4.068,209,3.256,210,3.107,215,4.366,216,4.74,578,4.068,720,5.999,721,5.999,722,5.24,723,5.999]],["t/103",[5,4.356,33,2.512,50,5.608,71,5.004,81,4.816,85,4.816,89,4.013,90,3.144,91,3.739,93,2.324,189,3.739,236,4.816,241,4.356,621,5.371,622,4.816,623,4.816,627,5.376,724,5.513,725,5.513,726,5.513,727,5.513]],["t/105",[4,0.501,21,1.637,22,0.684,28,1.842,42,0.7,62,1.774,63,1.539,77,1.539,114,2.963,137,2.136,142,0.784,157,2.492,169,4.628,172,1.008,211,1.269,228,1.539,250,2.492,251,2.212,252,3.452,274,1.747,275,1.109,276,2.104,279,1.221,281,0.973,286,2.763,288,1.928,295,1.593,301,2.372,307,3.972,316,0.986,317,1.183,318,0.802,319,1.076,353,1.261,357,2.165,411,1.501,445,3.972,590,2.075,594,1.918,637,1.176,642,3.452,666,3.341,728,3.972,729,5.116,730,2.963,731,3.18,732,2.627]],["t/107",[0,2.857,4,0.586,7,1.21,21,1.598,22,0.668,33,1.435,34,1.311,35,1.661,62,1.711,63,1.484,77,1.484,114,2.857,137,1.536,142,1.14,147,1.759,157,2.403,172,0.972,193,2.409,204,2.857,205,2.183,209,3.946,210,3.36,211,1.21,224,1.873,228,1.484,250,1.575,251,1.591,257,2.683,262,2.287,265,1.873,274,1.256,275,1.07,276,1.342,279,1.72,281,0.885,286,2.641,288,1.882,289,2.857,295,1.007,301,2.287,316,0.94,317,1.14,318,0.774,319,1.05,353,1.216,357,2.088,372,2.01,384,2.857,411,1.431,445,3.876,448,2.182,520,1.873,524,2.857,529,2.412,531,2.01,546,2.182,590,1.311,594,1.536,621,2.01,637,1.121,666,2.403,728,2.857,730,2.857,731,3.067,732,1.661,733,2.762,734,2.762,735,2.412,736,2.762,737,2.762,738,2.762,739,2.762,740,4.213,741,3.68,742,3.68,743,3.68,744,2.412,745,2.412]],["t/109",[4,0.512,10,3.34,21,2.187,22,0.656,31,1.955,32,3.123,42,0.716,62,1.452,63,1.796,64,1.159,77,0.788,78,1.955,90,2.908,111,1.276,137,1.304,142,0.606,159,2.324,172,0.825,211,1.956,224,1.518,228,0.788,233,1.859,250,1.276,253,1.941,255,2.149,257,1.425,262,2.423,267,1.425,268,1.159,274,1.331,275,0.908,279,1.248,281,0.863,288,1.678,295,0.816,316,0.762,318,0.657,319,0.657,334,2.767,348,2.039,353,1.032,357,1.771,396,1.032,411,2.313,426,4.028,428,1.629,507,4.03,508,1.425,528,1.768,530,1.955,546,2.825,587,1.955,590,1.063,591,4.453,594,1.628,603,3.123,634,1.955,637,0.909,659,3.78,678,2.825,732,1.346,746,1.955,747,1.955,748,2.238,749,2.238,750,2.238,751,2.238,752,2.238,753,1.955,754,2.238,755,2.238,756,3.123,757,3.575,758,5.098,759,3.575,760,3.575,761,5.098,762,3.575,763,5.098,764,3.575,765,3.575,766,3.575,767,3.575,768,3.575,769,2.238,770,2.238,771,2.238,772,1.768,773,1.955,774,2.238,775,2.238,776,3.123,777,3.123,778,2.238,779,2.238,780,2.238,781,1.955,782,3.575,783,3.575,784,3.575,785,2.238,786,2.238,787,2.238]],["t/111",[4,0.628,10,2.703,16,2.225,21,1.894,22,0.673,24,1.532,28,1.074,30,2.013,33,2.02,42,0.951,62,2.224,63,2.09,137,1.444,142,1.482,157,1.453,160,1.107,172,1.263,207,1.727,211,3.304,251,1.495,262,1.383,268,1.319,275,1.233,276,1.261,279,1.357,281,1.077,287,2.225,288,1.803,295,1.997,316,0.867,317,1.314,318,1.006,319,1.203,348,1.453,353,1.581,357,2.714,365,3.458,396,1.143,462,2.225,507,1.727,524,2.685,548,1.727,552,2.225,573,3.128,578,1.727,581,2.225,592,2.516,594,2.29,597,1.383,613,1.453,637,1.608,676,1.383,699,2.013,728,2.685,788,2.547,789,2.547,790,2.547,791,3.458,792,3.959,793,3.959,794,2.547,795,5.932,796,2.547,797,2.547,798,2.547,799,2.547,800,2.547,801,2.547,802,2.547]],["t/113",[4,0.368,7,2.067,14,1.832,21,1.319,22,0.651,30,2.538,34,1.525,48,2.046,62,1.916,93,1.354,105,2.338,127,2.806,158,4.486,160,1.563,163,1.904,172,1.088,179,3.728,189,2.179,191,2.806,211,2.067,233,2.247,240,2.538,250,1.832,251,1.213,253,1.744,262,1.744,266,4.046,268,2.897,274,1.407,276,1.781,279,1.918,281,0.866,283,4.654,284,3.925,286,2.57,288,2.029,295,1.172,297,1.744,317,1.277,318,0.866,319,0.866,353,1.362,357,2.338,369,2.538,396,1.362,411,2.444,535,2.338,590,1.525,594,1.721,633,2.806,666,2.691,678,3.728,730,3.2,732,1.932,746,4.121,756,2.806,803,3.213,804,3.213,805,4.121,806,4.719,807,2.806,808,3.213,809,3.213,810,3.213,811,3.213]],["t/115",[4,0.454,21,1.531,22,0.678,28,1.669,42,0.635,44,2.999,62,1.608,63,1.395,160,1.988,172,0.913,274,1.873,275,1.868,276,2,281,0.848,288,2.422,316,1.348,317,1.072,318,0.727,319,1.006,353,1.143,357,1.962,523,3.459,524,4.259,560,4.962,590,2.982,617,4.315,690,1.962,691,1.88,812,5.919,813,5.919]],["t/118",[4,0.735,21,1.792,22,0.672,142,1.357,172,1.717,211,2.196,274,1.495,275,1.627,278,4.665,281,1.153,316,1.707,317,1.735,318,1.177,319,1.177,337,4.347,338,4.665,411,2.597,594,2.337,637,2.036]],["t/120",[4,0.73,21,1.779,22,0.671,142,1.342,160,1.779,172,1.71,211,2.172,270,5.028,274,1.478,275,1.615,281,1.148,316,1.688,317,1.722,318,1.168,319,1.168,334,3.454,338,4.632,411,2.568,594,2.321,637,2.013]],["t/122",[4,0.745,15,4.232,21,1.816,22,0.659,42,0.743,142,1.492,172,1.404,206,2.476,211,2.029,223,1.552,250,1.787,255,1.321,274,1.381,278,3.372,281,1.118,283,3.141,292,4.354,315,2.476,316,1.577,317,1.648,318,1.118,319,0.851,337,3.141,338,3.372,339,1.552,340,2.476,349,1.689,350,3.66,353,1.337,375,2.399,411,2.399,521,3.737,590,2.199,594,2.01,637,1.881,732,1.884,814,5.318,815,4.046,816,4.814,817,4.814,818,2.737,819,5.318,820,5.318,821,3.133,822,3.133,823,3.133,824,4.046,825,4.632,826,4.632,827,4.632,828,4.632,829,4.046,830,4.046,831,2.737,832,4.632]],["t/124",[4,0.413,7,2.247,22,0.675,52,2.168,62,1.464,77,1.27,137,1.87,139,2.624,163,1.227,266,2.925,268,1.867,274,1.78,275,1.515,276,1.148,279,1.008,281,1.064,286,2.337,288,1.688,295,1.315,303,3.266,316,1.227,317,0.976,318,0.662,319,0.662,334,1.957,349,1.315,353,1.041,396,1.041,442,2.624,471,2.624,472,2.624,473,2.624,474,2.624,475,2.624,476,2.624,535,4.733,649,2.056,661,1.712,662,2.296,663,1.786,833,2.848,834,3.149,835,2.848,836,2.848,837,2.848,838,2.848,839,2.848,840,2.848,841,2.848,842,2.848,843,2.848,844,2.848,845,3.149,846,3.149,847,3.149,848,2.848,849,2.848,850,3.149,851,3.149,852,3.149,853,3.149,854,3.149,855,4.48,856,3.149,857,3.149,858,3.149,859,3.149,860,3.149,861,3.149,862,3.149,863,3.149]],["t/126",[4,0.931,7,2.342,21,1.866,28,2.814,42,1.07,77,2.564,121,4.67,345,6.357,559,4.67,864,5.347,865,5.347,866,5.347,867,5.347,868,5.347,869,6.675,870,5.347,871,5.347,872,6.675,873,5.347,874,5.347,875,5.347]],["t/128",[4,0.606,22,0.656,42,0.847,44,2.227,62,2.145,160,1.852,172,1.218,274,1.575,275,1.682,276,1.682,281,0.818,288,2.181,318,0.97,319,0.97,353,1.525,357,2.618,364,4.615,560,4.174,590,2.508,617,3.364,690,2.618,691,2.508,812,4.615,813,4.615,876,5.283,877,5.283,878,5.283,879,5.283]],["t/130",[4,0.399,7,2.189,22,0.676,42,0.557,52,2.091,62,1.412,77,1.225,137,1.823,139,2.531,163,1.184,266,2.851,268,1.801,274,1.745,275,1.485,276,1.107,279,0.972,281,1.092,286,2.291,288,1.646,295,1.268,303,3.183,316,1.184,317,0.941,318,0.639,319,0.639,334,1.888,349,1.268,353,1.004,396,1.004,442,2.531,471,2.531,472,2.531,473,2.531,474,2.531,475,2.531,476,2.531,535,4.656,649,1.983,661,1.651,662,2.215,663,1.723,690,1.723,691,1.651,833,2.748,834,3.038,835,2.748,836,2.748,837,2.748,838,2.748,839,2.748,840,2.748,841,2.748,842,2.748,843,2.748,844,2.748,845,3.038,846,3.038,847,3.038,848,2.748,849,2.748,850,3.038,851,3.038,852,3.038,853,3.038,854,3.038,855,4.366,856,3.038,857,3.038,858,3.038,859,3.038,860,3.038,861,3.038,862,3.038,863,3.038,880,3.478,881,3.038,882,3.478]],["t/132",[4,0.482,21,1.595,22,0.682,28,1.772,42,0.674,62,1.707,63,1.481,77,1.481,114,2.851,137,2.081,157,2.398,169,4.509,172,0.97,228,1.481,251,2.156,252,3.322,274,1.702,275,1.067,276,1.817,279,1.175,281,0.883,286,2.72,288,1.879,301,2.282,307,3.87,316,1.431,317,1.138,318,0.772,319,1.048,353,1.214,357,2.083,445,3.87,642,3.322,666,3.255,690,2.083,691,1.996,728,3.87,729,4.985,730,2.851,731,3.06]],["t/134",[0,2.811,4,0.475,21,1.58,22,0.672,28,1.747,42,0.664,62,1.683,63,1.46,77,1.46,114,2.811,137,1.512,157,2.364,172,0.956,193,2.383,204,2.811,205,2.147,209,3.068,210,2.147,228,1.46,251,1.566,257,2.64,262,2.25,274,1.236,275,1.052,276,1.32,279,1.58,281,0.875,286,2.518,288,1.861,289,2.811,301,2.25,316,1.411,317,1.122,318,0.761,319,1.038,353,1.197,357,2.054,384,2.811,445,3.833,448,3.275,520,2.811,524,2.811,531,3.017,621,3.017,666,2.364,690,2.054,691,1.968,728,2.811,730,2.811,731,3.017,741,3.621,742,3.621,743,3.621,744,3.621,745,3.621,883,4.145]],["t/136",[10,2.022,21,1.24,22,0.686,42,0.711,62,2.403,159,2.697,172,1.023,274,1.323,275,1.502,279,1.24,281,0.687,288,2.338,318,0.815,319,0.815,349,1.618,353,1.281,357,2.198,516,5.168,613,3.375,617,2.825,659,3.008,690,2.198,691,2.106,776,3.875,777,3.875,884,4.436,885,5.917,886,4.436,887,4.436,888,5.917,889,3.875,890,4.436,891,4.436,892,3.875,893,4.436]],["t/138",[4,0.42,7,1.011,10,1.67,21,0.645,22,0.676,39,3.518,42,0.587,47,1.68,62,0.937,64,2.687,91,1.565,92,2.016,112,2.016,113,1.824,118,2.016,122,2.016,136,1.316,145,2.016,160,0.645,172,1.196,182,1.253,194,1.565,211,1.011,233,1.662,250,1.316,251,0.872,254,3.6,274,1.547,275,1.157,281,1.044,288,1.206,289,2.485,295,0.842,306,2.485,317,0.992,318,0.837,319,0.673,322,2.895,323,2.016,334,1.253,339,2.257,348,1.316,349,1.336,355,2.74,356,3.09,377,1.824,391,3.6,404,1.824,412,2.485,565,4.531,576,2.895,590,1.096,592,1.898,594,2.389,599,3.98,601,2.016,602,3.2,608,3.2,609,2.016,610,2.016,612,3.2,613,2.09,614,2.016,615,4.943,616,2.016,617,1.47,618,2.016,619,3.2,691,1.74,699,1.824,732,1.388,791,2.016,818,3.98,836,1.824,892,3.98,894,3.664,895,2.308,896,2.308,897,3.664,898,3.664,899,2.308,900,3.664,901,2.308,902,2.308,903,5.188,904,5.659,905,5.188,906,3.664,907,2.308,908,2.308,909,2.308,910,3.664,911,2.308,912,4.556,913,2.308,914,3.664,915,2.308,916,2.308,917,2.308,918,2.308,919,2.308,920,2.308,921,2.308,922,2.308,923,2.308,924,2.308,925,2.308]],["t/140",[4,0.613,15,3.215,22,0.629,42,0.857,274,1.595,281,1.033,295,1.95,316,1.82,317,1.447,318,0.982,319,0.982,349,1.95,353,1.544,355,3.215,356,3.626,396,1.544,521,4.527,590,2.539,597,2.902,690,2.649,691,2.539,819,4.67,820,4.67,829,4.67,830,4.67,926,5.347,927,5.347,928,5.347,929,5.347,930,5.347]],["t/142",[4,0.463,10,1.84,12,2.506,21,0.887,22,0.69,44,0.814,63,1.117,64,1,117,1.572,132,1.809,137,1.705,140,0.88,142,1.093,160,0.54,163,0.657,195,1.686,223,0.957,228,2.235,233,1.705,251,2.215,255,0.814,260,1.907,276,1.644,281,0.724,297,1.048,305,0.957,310,3.184,318,1.229,319,0.355,339,0.957,349,0.704,353,0.557,361,1.309,372,2.309,375,1,396,0.557,553,1.101,571,1.048,573,1.525,592,1,594,1.883,630,3.17,637,1.288,640,4.51,644,1.101,645,1.506,646,0.88,649,2.666,653,1.722,654,1.907,661,2.908,662,2.977,663,0.957,676,1.722,687,1.048,688,2.77,931,1.161,932,1.931,933,1.907,934,1.907,935,1.931,936,1.931,937,1.931,938,1.161,939,1.931,940,1.161,941,1.161,942,1.161,943,1.161,944,1.931,945,1.161,946,1.907,947,1.907,948,1.907,949,1.907,950,1.161,951,1.161,952,1.931,953,1.161,954,1.161,955,1.161,956,1.405,957,1.161,958,1.405,959,1.931,960,1.931,961,4.037,962,3.172,963,1.931,964,1.931,965,4.037,966,3.172,967,1.931,968,1.931,969,1.931,970,1.931,971,1.931,972,1.931,973,6.125,974,3.172,975,1.931,976,3.172,977,3.172,978,1.931,979,3.172,980,1.931,981,3.172,982,3.172]],["t/144",[4,0.533,15,2.794,22,0.665,42,0.745,62,1.886,90,2.649,172,1.571,274,1.819,281,1.054,292,3.67,295,2.225,315,3.67,316,1.582,317,1.257,318,0.853,319,0.853,337,3.15,349,1.694,353,1.341,355,2.794,356,3.15,375,2.406,396,1.341,521,4.137,580,4.82,690,2.302,691,2.206,814,5.328,815,4.058,816,4.058,817,5.328,824,4.058,831,5.328,983,4.645,984,4.645,985,4.645,986,4.645,987,4.645]],["t/146",[4,0.253,22,0.688,42,0.354,44,0.932,63,1.783,117,1.095,132,1.261,137,1.846,140,1.007,142,0.598,159,1.613,160,0.989,163,0.753,193,0.932,205,1.145,223,1.095,227,1.609,228,1.247,233,0.806,251,2.344,255,0.932,268,1.145,275,0.899,276,1.127,279,0.618,281,0.915,284,1.407,297,1.2,301,3.006,305,1.095,306,1.499,310,3.368,318,1.253,319,0.406,339,1.754,349,0.806,353,0.638,375,2.293,396,0.638,422,1.746,481,1.407,483,1.407,553,1.261,563,1.609,571,1.921,592,1.145,594,2.352,597,1.2,631,1.329,637,0.897,638,2.128,639,1.329,644,1.261,645,2.102,646,2.018,647,1.499,649,1.261,653,1.921,660,1.499,661,2.403,663,1.754,667,1.499,668,1.499,669,1.499,672,4,676,2.748,679,1.746,687,1.921,931,1.329,933,1.329,934,1.329,938,1.329,940,1.329,941,1.329,942,1.329,943,1.329,945,1.329,946,2.128,947,2.128,948,2.128,949,2.128,950,1.329,951,1.329,953,1.329,954,1.329,955,1.329,957,1.329,988,1.931,989,1.931,990,1.931,991,2.254,992,2.254,993,1.407,994,4.421,995,3.092,996,1.931,997,1.931,998,1.931,999,1.931,1000,1.931,1001,1.931,1002,1.931,1003,1.746,1004,1.746,1005,1.931]],["t/148",[4,0.352,17,3.273,21,0.858,22,0.684,25,3.093,42,0.492,52,1.845,77,1.081,91,2.081,137,1.985,139,3.32,146,3.603,159,2.078,163,1.045,172,0.708,213,2.081,225,2.424,251,1.159,279,0.858,281,1.045,288,1.501,295,1.119,316,1.045,334,1.665,349,1.119,351,2.424,359,3.603,371,2.424,396,0.886,471,2.233,472,2.233,473,2.233,474,2.233,475,3.32,476,3.962,541,2.68,690,1.52,691,1.457,697,2.68,833,2.424,835,2.424,837,2.424,838,2.424,839,2.424,840,2.424,841,2.424,842,2.424,843,2.424,844,3.603,848,2.424,849,2.424,881,2.68,1006,3.068,1007,3.068,1008,3.068,1009,4.561,1010,3.068,1011,4.561,1012,3.068,1013,3.068,1014,3.068,1015,3.068,1016,3.068,1017,3.068,1018,3.068,1019,3.068,1020,3.068,1021,3.068,1022,3.068,1023,4.561,1024,3.068,1025,3.068,1026,3.068,1027,3.068,1028,3.068,1029,3.068,1030,3.068,1031,4.561,1032,3.068,1033,4.561,1034,3.068,1035,3.068,1036,3.068,1037,3.068,1038,3.068,1039,3.068,1040,3.068,1041,3.068,1042,3.068,1043,3.068]],["t/150",[4,0.259,22,0.688,42,0.362,44,0.951,63,1.804,117,1.117,132,1.286,137,1.867,140,1.028,142,0.61,159,1.028,160,0.63,163,0.768,193,0.951,205,1.168,223,1.117,227,1.642,228,1.267,251,2.363,255,0.951,268,1.168,275,0.913,276,1.145,279,0.63,281,0.923,297,1.224,301,3.037,305,1.117,306,1.529,310,3.396,318,1.261,319,0.414,339,1.782,349,0.822,353,0.651,375,2.324,396,0.651,422,1.782,481,1.436,483,1.436,553,1.286,563,1.642,571,1.952,592,1.168,594,2.369,597,1.224,631,1.356,637,0.916,638,2.163,639,1.356,644,1.286,645,2.13,646,2.045,647,1.529,649,1.286,653,1.952,660,1.529,661,2.431,663,1.782,667,1.529,668,1.529,669,1.529,672,4.046,676,2.779,679,1.782,687,1.952,931,1.356,933,1.356,934,1.356,938,1.356,940,1.356,941,1.356,942,1.356,943,1.356,945,1.356,946,2.163,947,2.163,948,2.163,949,2.163,950,1.356,951,1.356,953,1.356,954,1.356,955,1.356,956,1.642,957,1.356,958,1.642,988,1.97,989,1.97,990,1.97,991,2.291,992,2.291,993,1.436,994,4.473,995,3.142,996,1.97,997,1.97,998,1.97,999,1.97,1000,1.97,1001,1.97,1002,1.97,1005,1.97]],["t/152",[4,0.313,22,0.688,42,0.437,44,1.15,63,1.47,117,1.351,132,1.556,137,2.071,140,1.243,142,0.738,160,0.762,163,1.934,193,1.15,223,1.351,233,0.995,251,2.617,255,1.15,275,0.692,276,1.329,279,0.762,281,0.879,297,1.481,305,1.351,310,3.646,318,1.331,319,0.501,339,1.351,349,0.995,353,0.787,375,1.413,396,0.787,553,2.38,571,2.265,592,1.413,594,2.354,597,1.481,637,1.108,638,2.51,639,1.64,644,1.556,645,2.407,646,1.243,653,2.265,654,1.64,661,2.696,663,1.351,676,2.265,687,2.265,772,3.298,931,1.64,933,1.64,934,1.64,938,1.64,940,1.64,941,1.64,942,1.64,943,1.64,945,1.64,946,2.51,947,2.51,948,2.51,949,2.51,950,1.64,951,1.64,953,2.51,954,1.64,955,1.64,956,1.985,957,1.64,958,1.985,991,1.737,992,1.737,993,1.737,1044,1.985,1045,2.383,1046,2.383,1047,2.383]],["t/154",[4,0.806,14,4.008,24,2.981,26,3.362,33,1.688,34,2.354,90,2.828,96,4.33,140,2.259,178,4.33,188,4.33,189,3.362,200,6.138,201,5.558,202,3.917,223,2.456,225,3.917,228,2.242,235,4.33,243,3.917,255,2.09,286,1.941,295,1.808,467,4.33,498,3.917,528,3.917,596,4.33,631,2.981,753,4.33,805,4.33,1048,4.33,1049,4.958,1050,4.958,1051,4.958,1052,4.958,1053,4.958,1054,4.958,1055,4.958,1056,4.958,1057,4.33,1058,4.958]],["t/156",[4,0.305,22,0.688,42,0.427,44,1.122,63,1.443,117,1.319,132,1.518,137,2.045,140,1.213,142,0.721,159,1.213,160,1.145,163,1.909,193,1.122,223,1.319,233,1.494,251,2.596,255,1.122,275,0.676,276,1.304,279,0.744,281,0.868,284,1.695,297,1.445,305,1.319,310,3.615,318,1.322,319,0.489,339,1.319,349,0.971,353,0.769,375,1.379,396,0.769,553,2.336,571,2.223,592,1.379,594,2.331,597,1.445,637,1.081,638,2.463,639,1.601,644,1.518,645,2.371,646,1.213,653,2.223,654,1.601,661,2.662,663,1.319,676,2.223,687,2.223,772,3.237,931,1.601,933,1.601,934,1.601,938,1.601,940,1.601,941,1.601,942,1.601,943,1.601,945,1.601,946,2.463,947,2.463,948,2.463,949,2.463,950,1.601,951,1.601,953,2.463,954,1.601,955,1.601,957,1.601,991,1.695,992,1.695,993,1.695,1003,2.103,1004,2.103,1044,1.938,1045,2.325,1046,2.325,1047,2.325]],["t/158",[4,0.326,22,0.688,42,0.455,44,1.198,63,1.517,117,1.408,132,1.621,137,2.115,140,1.295,142,0.769,159,1.295,160,1.203,163,0.967,193,1.198,223,1.408,233,1.036,251,2.573,255,1.198,276,0.905,279,0.794,281,0.898,284,1.809,297,1.542,305,1.408,310,3.698,318,1.345,319,0.522,339,1.408,349,1.036,353,0.82,375,1.472,396,0.82,553,1.621,571,2.337,592,1.472,594,2.392,597,1.542,637,1.154,638,2.589,639,1.709,644,1.621,645,2.468,646,1.295,653,2.337,661,2.754,663,1.408,676,2.337,687,2.337,931,1.709,933,1.709,934,1.709,938,1.709,940,1.709,941,1.709,942,1.709,943,1.709,945,1.709,946,2.589,947,2.589,948,2.589,949,2.589,950,1.709,951,1.709,953,1.709,954,1.709,955,1.709,957,1.709,991,1.809,992,1.809,993,1.809,1003,2.245,1004,2.245,1044,2.068]],["t/160",[1,3.386,4,0.874,5,3.523,10,2.032,14,3.807,15,2.681,17,3.57,22,0.357,23,3.245,24,3.57,26,3.023,33,2.423,77,1.571,82,2.681,120,4.321,203,3.894,204,3.023,205,2.309,207,4.026,208,2.543,209,2.42,210,2.309,211,1.953,212,3.523,213,3.023,214,3.245,215,3.245,216,3.523,239,3.894,261,3.523,293,3.023,343,3.523,402,3.894,419,3.894,440,3.894,548,3.023,658,3.245,687,2.42,722,3.894,1048,3.894,1059,4.458,1060,4.458,1061,4.458,1062,4.458,1063,5.937,1064,4.458,1065,4.458,1066,4.458,1067,4.458,1068,4.458,1069,4.458,1070,4.458,1071,4.458]],["t/162",[4,0.565,18,2.695,25,2.313,26,3.925,42,1.016,47,2.483,67,1.385,76,4.305,82,3.812,110,2.979,120,5.755,136,2.811,142,0.923,150,5.537,151,2.979,157,1.945,164,1.851,172,0.787,183,2.979,194,2.313,240,2.695,261,2.695,264,4.305,267,2.172,304,4.305,318,0.905,324,4.305,408,2.483,415,2.695,430,2.483,508,2.172,525,3.587,578,2.313,658,2.483,659,2.313,683,2.979,747,2.979,773,2.979,1057,2.979,1072,3.411,1073,3.411,1074,3.411,1075,4.929,1076,7.226,1077,3.411,1078,4.929,1079,3.411,1080,3.411,1081,3.411,1082,3.411,1083,3.411,1084,3.411,1085,3.411,1086,3.411,1087,4.929,1088,5.787,1089,3.411,1090,3.411,1091,3.411,1092,3.411,1093,3.411,1094,3.411,1095,3.411,1096,3.411,1097,3.411,1098,3.411,1099,4.929,1100,3.411,1101,3.411,1102,3.411,1103,3.411,1104,4.929,1105,3.411,1106,3.411,1107,3.411,1108,3.411,1109,3.411,1110,4.929,1111,3.411,1112,3.411,1113,3.411,1114,3.411,1115,3.411,1116,3.411,1117,3.411]],["t/164",[4,0.334,22,0.688,42,0.467,44,1.229,63,1.547,117,1.445,132,1.663,137,2.143,140,1.329,142,0.789,160,0.815,163,0.993,193,1.229,223,1.445,251,2.596,255,1.229,276,0.929,279,0.815,281,0.91,297,1.583,305,1.445,310,3.731,318,1.354,319,0.536,339,1.445,349,1.063,353,0.842,375,1.511,396,0.842,553,1.663,571,2.383,592,1.511,594,2.415,597,1.583,637,1.184,638,2.64,639,1.754,644,1.663,645,2.507,646,1.329,653,2.383,661,2.79,663,1.445,676,2.383,687,2.383,931,1.754,933,1.754,934,1.754,938,1.754,940,1.754,941,1.754,942,1.754,943,1.754,945,1.754,946,2.64,947,2.64,948,2.64,949,2.64,950,1.754,951,1.754,953,1.754,954,1.754,955,1.754,956,2.123,957,1.754,958,2.123,991,1.857,992,1.857,993,1.857,1044,2.123]],["t/166",[33,2.043,37,5.24,168,4.74,182,3.887,193,2.529,279,1.677,360,4.068,361,4.068,372,4.366,431,4.366,1118,5.999,1119,5.999,1120,5.999,1121,5.999,1122,5.999,1123,5.999,1124,4.74]],["t/168",[4,0.58,8,3.409,10,1.239,21,1.935,22,0.679,160,1.585,164,3.317,172,1.41,182,4.223,193,1.755,228,1.997,274,2.353,275,1.057,279,1.164,281,0.946,316,1.723,317,0.736,318,0.929,319,0.929,348,1.551,353,1.461,360,3.431,361,3.431,431,4.449,464,1.979,494,2.149,548,2.824,613,2.375,889,2.375,1124,3.998,1125,5.338,1126,2.375,1127,2.375,1128,2.149,1129,2.719,1130,2.719,1131,5.338,1132,2.719,1133,4.952,1134,5.67,1135,2.719,1136,2.375,1137,2.375,1138,2.375,1139,2.375,1140,2.719,1141,2.375,1142,2.375,1143,3.637,1144,2.375,1145,2.375]],["t/170",[4,0.564,10,1.185,21,1.845,22,0.68,142,1.331,160,1.548,164,3.25,170,4.731,172,1.381,182,4.065,193,1.695,250,4.08,274,2.234,275,1.021,279,1.124,281,0.98,317,0.704,318,0.903,319,0.903,348,1.483,353,1.42,360,3.336,361,3.336,431,4.358,548,2.728,590,1.91,594,2.184,613,2.294,637,1.997,732,4.301,781,2.271,1124,3.887,1125,5.23,1126,2.271,1127,2.271,1128,2.054,1131,5.23,1133,5.23,1136,2.271,1137,2.271,1138,2.271,1139,2.271,1141,2.271,1142,2.271,1143,3.513,1144,2.271,1145,2.271,1146,2.6]],["t/172",[735,5.833,1147,6.678,1148,6.678]],["t/174",[33,2.029,34,2.829,42,0.955,147,3.794,165,5.205,168,4.708,265,4.041,305,2.952,369,4.708,807,5.205,1128,4.708,1149,5.959,1150,5.959,1151,5.959,1152,5.959,1153,5.959,1154,5.959,1155,5.959,1156,5.959]]],"invertedIndex":[["",{"_index":22,"t":{"2":{"position":[[216,1]]},"10":{"position":[[632,1]]},"14":{"position":[[122,1],[132,1],[191,1],[246,2],[249,2],[252,2]]},"16":{"position":[[49,1],[61,1],[123,2],[170,2]]},"18":{"position":[[7,1],[13,1],[68,1]]},"26":{"position":[[254,1],[278,1]]},"33":{"position":[[162,1],[462,1],[500,1],[512,1],[525,2],[540,2],[543,1],[545,2],[578,1],[580,1],[582,1],[621,2],[639,1],[641,1],[648,1],[650,1],[652,3],[686,1],[698,1],[705,2],[720,2],[723,1],[725,2],[735,1],[737,1],[739,1],[767,3],[799,1],[811,1],[818,2],[833,2],[836,1],[838,2],[856,1],[865,3],[869,2],[973,1],[975,1],[977,1],[1006,2],[1009,1],[1011,2],[1029,1],[1038,3]]},"35":{"position":[[14,1],[16,1],[68,2],[112,2],[115,1],[117,2],[170,2],[241,2],[244,4],[249,2],[252,3]]},"37":{"position":[[453,2],[562,1],[590,2],[593,2],[619,1],[693,1],[727,1],[776,1],[798,2],[801,2],[816,2],[898,1],[927,1],[965,1],[1052,2],[1055,1],[1057,2],[1096,1],[1149,1],[1238,3],[1242,3],[1246,2],[1249,1],[1285,2],[1288,3],[1379,2]]},"39":{"position":[[10,1],[40,1],[73,1],[111,1],[226,2],[255,3],[592,1],[635,1],[668,1],[759,1],[777,1],[800,1],[834,2],[837,1],[869,1],[871,2],[895,2],[898,3]]},"41":{"position":[[837,1],[941,1],[968,2],[980,2],[983,1],[1014,1],[1051,2],[1054,1],[1071,1],[1109,2],[1173,2],[1189,2],[1192,1],[1194,2],[1259,3],[1263,2],[1266,2],[1269,2],[1272,3],[1687,1],[1806,2],[1832,2],[1839,1],[1856,3],[1876,1],[1898,2],[1901,1],[1918,1],[1946,2],[1993,2],[2085,3],[2089,1],[2096,1],[2108,1],[2175,2],[2188,1],[2205,1],[2207,2],[2210,3]]},"43":{"position":[[523,1],[674,1],[676,2],[689,3],[727,2],[740,2],[743,1],[780,1],[836,2],[839,2],[867,2],[880,2],[883,1],[920,1],[976,2],[979,2],[1007,2],[1020,2],[1023,1],[1060,1],[1116,2],[1119,2],[1122,2],[1125,3]]},"46":{"position":[[69,1]]},"50":{"position":[[107,2],[255,2],[497,1]]},"55":{"position":[[60,1],[62,1],[64,1],[66,1],[100,2],[103,1],[105,2],[114,1],[116,1],[129,1],[131,1],[133,2],[157,1],[159,1],[161,1],[163,1],[243,3],[247,2],[287,1],[289,1],[291,1],[293,1],[359,1],[361,1],[363,1],[365,1]]},"57":{"position":[[165,1],[167,1],[169,1],[199,2],[202,1],[204,2],[266,3],[295,2],[395,1],[407,2],[423,2],[489,2],[492,1],[494,2],[498,1],[500,1],[502,1],[513,1],[515,1],[517,3],[521,2],[573,2],[683,3]]},"59":{"position":[[22,1]]},"61":{"position":[[63,1],[81,1],[96,1],[114,1],[155,1],[187,1],[230,1],[250,1]]},"65":{"position":[[0,2],[18,2],[33,1],[62,2],[136,2],[191,2],[194,2],[210,2],[271,2],[312,1],[356,2],[483,2],[486,1],[498,1],[563,2],[581,2],[584,1],[617,2],[633,2],[636,1],[656,2],[714,3]]},"67":{"position":[[26,1],[40,1],[80,1],[128,3],[153,1],[182,3],[222,1],[250,1],[264,1],[304,1],[340,3],[344,2],[480,3],[534,1]]},"69":{"position":[[12,1],[42,1],[72,2],[75,1],[85,1],[164,3],[179,1],[287,1],[299,4],[319,3]]},"74":{"position":[[233,1],[266,1]]},"76":{"position":[[14,1],[34,1],[83,1],[85,1],[119,2],[133,1]]},"78":{"position":[[14,1],[28,1],[71,1],[73,1],[107,2],[121,1]]},"80":{"position":[[37,1],[67,2],[70,1],[72,3],[76,1],[85,1],[87,1],[97,1],[99,1],[101,2],[104,3],[131,1],[161,2],[164,1],[166,3],[170,1],[179,1],[181,1],[191,1],[193,1],[195,2],[198,3]]},"83":{"position":[[68,1],[84,1],[112,1],[171,3],[175,2],[223,1],[253,2],[256,1],[277,3],[281,1],[290,1],[292,1],[302,1],[304,1],[306,2],[309,3],[313,2],[390,2],[393,1],[414,3],[418,1],[427,1],[429,1],[454,1],[456,1],[458,2],[461,3],[513,1],[529,1],[557,1],[635,3],[639,2],[688,1],[703,1],[731,2],[734,1],[755,3],[759,1],[768,1],[770,1],[777,1],[779,1],[781,2],[784,1],[786,2],[789,2],[866,2],[869,1],[890,3],[894,1],[903,1],[905,1],[914,1],[916,1],[918,2],[921,3]]},"85":{"position":[[85,1],[101,1],[129,1],[214,3],[228,1],[230,1],[241,1],[263,1],[276,2],[327,2],[330,1],[351,3],[355,1],[364,1],[366,1],[368,1],[378,1],[380,2],[383,1],[385,1],[395,1],[397,1],[399,1],[401,2],[404,3]]},"87":{"position":[[322,1],[340,1],[368,1],[427,3],[441,1],[443,1],[452,1],[457,2],[508,2],[511,1],[534,3],[538,1],[565,1],[618,3],[672,1],[674,2],[677,3]]},"89":{"position":[[173,1],[191,1],[219,1],[304,3],[318,1],[320,1],[329,1],[341,1],[346,2],[400,2],[403,1],[427,3],[431,1],[443,1],[461,1],[514,3],[569,2],[588,1],[641,3],[695,1],[697,1],[699,2],[702,3]]},"91":{"position":[[280,1],[319,1],[347,1],[406,3],[410,3],[430,2],[485,3],[505,2],[565,1],[577,1],[586,3],[590,3],[614,2],[627,1],[720,2],[723,1],[746,3],[750,1],[777,1],[830,3],[884,1],[886,2],[889,3],[1065,3],[1106,2]]},"97":{"position":[[35,1],[71,1],[113,1],[157,2],[217,2],[350,2],[355,1],[377,3],[430,2],[433,1],[461,2],[464,2]]},"99":{"position":[[35,1],[78,1],[100,2],[120,1],[155,3],[159,2],[173,1],[200,2],[223,2],[226,3],[230,2],[286,1],[288,2],[323,2],[326,3],[342,1],[390,2],[393,1],[435,3],[439,2],[442,3],[508,2],[511,1],[545,3],[609,2],[612,1],[646,3],[710,2],[713,1],[747,3]]},"105":{"position":[[17,2],[71,2],[125,1],[209,3],[213,2],[242,1],[268,1],[302,1],[330,1],[349,1],[355,2],[380,2],[445,2],[508,1],[522,1],[542,1],[544,2],[570,1],[588,1],[622,1],[650,1],[652,1],[664,1],[666,3],[683,2],[708,1],[722,1],[742,1],[744,2],[774,1],[795,2],[849,1],[927,3],[931,2],[982,1],[1010,1],[1029,1],[1068,1],[1092,2],[1157,2],[1220,1],[1222,2],[1225,2],[1273,1],[1301,1],[1303,1],[1315,1],[1317,3],[1359,1],[1383,1],[1385,2]]},"107":{"position":[[415,1],[450,1],[528,1],[530,2],[584,1],[668,3],[672,2],[746,1],[782,1],[810,1],[812,1],[824,1],[826,3],[849,2],[874,2],[939,2],[1002,1],[1016,1],[1036,1],[1050,1],[1071,2],[1125,1],[1203,3],[1207,2],[1285,1],[1313,1],[1315,1],[1327,1],[1329,3],[1385,1],[1409,2],[1474,2],[1537,1],[1539,2]]},"109":{"position":[[345,2],[431,1],[563,2],[659,2],[793,3],[809,1],[830,2],[916,1],[1048,2],[1144,2],[1278,3],[1516,1],[1518,2],[1577,1],[1628,2],[1688,1],[1702,1],[1722,1],[1724,2],[1833,1],[1835,2],[1895,3],[2034,2],[2083,1],[2113,2],[2169,3],[2173,4],[2178,2],[2265,2],[2343,1],[2345,2],[2395,3],[2399,4],[2404,2],[2491,3]]},"111":{"position":[[135,1],[137,2],[179,1],[263,3],[267,2],[306,1],[342,1],[370,1],[372,1],[384,1],[386,3],[404,2],[407,1],[528,2],[582,2],[671,2],[742,1],[845,3],[849,2],[888,1],[924,1],[952,1],[954,1],[966,1],[968,3],[986,2],[1163,1],[1165,2],[1195,1],[1267,3],[1271,2],[1340,1],[1358,2],[1412,1],[1451,1],[1582,1],[1603,2],[1639,1],[1717,3],[1779,2],[1782,1],[1803,2],[1835,2]]},"113":{"position":[[424,1],[527,3],[542,1],[639,3],[677,1],[703,1],[781,3],[807,2],[913,2],[937,1],[951,1],[971,1],[985,1],[1044,2],[1079,1],[1103,2],[1209,2],[1233,1],[1235,2]]},"115":{"position":[[23,2],[53,1],[74,2],[128,1],[206,3],[250,1],[260,1],[305,2],[308,1],[382,1],[392,1],[437,2],[440,1],[515,1],[525,1],[577,1],[587,1],[632,2],[635,1],[669,1],[671,2],[674,1],[676,2],[679,1],[681,2]]},"118":{"position":[[70,1],[135,3],[152,1],[203,2],[206,3],[222,1],[260,1],[319,3],[377,2],[380,1],[382,2],[385,3],[389,3]]},"120":{"position":[[70,1],[135,3],[152,1],[211,2],[214,3],[230,1],[268,1],[327,3],[391,2],[394,1],[396,2],[399,3],[403,3]]},"122":{"position":[[91,1],[161,1],[261,2],[264,3],[339,1],[368,1],[406,1],[470,1],[570,2],[573,3],[879,1],[898,1],[1028,3],[1044,1],[1141,1],[1155,1],[1175,1],[1189,1],[1227,1],[1351,3],[1418,2],[1421,1],[1464,3]]},"124":{"position":[[12,1],[46,1],[122,2],[125,1],[310,3],[352,2],[355,1],[417,3],[434,1],[543,3],[570,2],[573,1],[647,1],[649,2],[698,2],[772,1],[774,2],[830,1],[854,1],[967,1],[974,1],[976,2],[1038,1],[1107,1],[1109,3],[1113,3],[1158,3]]},"128":{"position":[[35,1],[203,3],[242,1],[252,1],[297,2],[300,1],[334,1],[336,2]]},"130":{"position":[[35,1],[74,1],[132,1],[208,2],[211,1],[395,1],[419,3],[461,2],[464,1],[526,3],[543,1],[652,3],[679,2],[682,1],[756,1],[758,2],[807,2],[881,1],[883,2],[939,1],[963,1],[1076,1],[1083,1],[1085,2],[1147,1],[1216,1],[1218,3],[1222,3],[1267,3]]},"132":{"position":[[23,2],[53,1],[74,2],[128,1],[206,3],[210,2],[252,1],[280,1],[299,1],[329,2],[332,1],[356,2],[421,2],[484,1],[486,2],[489,2],[535,1],[563,1],[565,1],[577,1],[579,3],[612,2],[615,1],[639,1],[641,2]]},"134":{"position":[[23,2],[53,1],[74,2],[128,1],[206,3],[210,2],[288,1],[316,1],[318,1],[330,1],[332,3],[379,2],[382,1],[406,2],[471,2],[534,2],[609,2],[679,1],[681,2]]},"136":{"position":[[34,1],[136,3],[155,2],[158,1],[171,1],[178,1],[188,1],[221,2],[224,1],[253,2],[313,3],[317,1],[319,2],[344,2],[347,1],[360,1],[367,1],[377,1],[408,2],[411,1],[470,2],[473,1],[516,3],[520,3],[524,1],[526,2]]},"138":{"position":[[63,1],[114,1],[124,1],[238,3],[290,1],[348,1],[371,1],[413,1],[425,1],[464,1],[647,1],[759,2],[762,2],[878,2],[889,1],[953,1],[1055,3],[1155,1],[1267,2],[1270,2],[1323,1],[1379,1],[1397,2],[1400,1],[1423,2],[1439,2],[1442,1],[1483,3],[1513,1],[1551,1],[1581,2],[1584,1],[1594,1],[1678,3],[1693,1],[1801,1],[1813,4],[1833,2],[1851,2],[1854,1],[1877,2],[1902,1],[1933,3],[1937,1],[1983,1],[1985,1],[2050,3],[2085,1],[2130,2],[2141,2],[2154,3],[2192,1],[2216,1],[2218,1]]},"140":{"position":[[35,1],[67,1],[231,3],[299,1],[336,3]]},"142":{"position":[[15,3],[19,1],[66,2],[76,1],[90,1],[122,1],[130,1],[185,1],[213,1],[241,1],[243,1],[251,3],[261,3],[275,3],[289,3],[293,2],[303,2],[306,2],[309,1],[323,1],[344,3],[389,2],[450,3],[484,2],[606,2],[609,3],[634,2],[654,1],[723,4],[728,4],[733,6],[775,2],[827,3],[845,2],[862,1],[895,1],[932,2],[962,2],[965,1],[991,3],[1012,2],[1058,3],[1092,5],[1098,3],[1109,1],[1111,1],[1125,1],[1139,1],[1147,1],[1161,1],[1175,1],[1183,1],[1196,1],[1210,1],[1218,1],[1231,1],[1245,1],[1253,1],[1267,2],[1270,3],[1274,1],[1321,2],[1331,1],[1396,1],[1440,1],[1534,1],[1553,1],[1578,1],[1610,1],[1612,3],[1683,2],[1713,1],[1742,1],[1774,1],[1776,3],[1804,2],[1823,1],[1907,1],[1909,3],[1965,2],[1991,1],[2077,1],[2079,3],[2112,2],[2133,1],[2217,1],[2219,3],[2297,2],[2319,1],[2405,1],[2407,3],[2435,2],[2456,1],[2542,1],[2544,3],[2600,2],[2628,1],[2716,1],[2718,3],[2751,2],[2774,1],[2860,1],[2862,3],[2940,2],[2964,1],[3052,1],[3054,3],[3085,2],[3105,1],[3125,1],[3127,1]]},"144":{"position":[[32,1],[61,1],[93,1],[144,3],[204,1],[206,2],[257,2],[353,2],[356,3],[413,1],[499,1],[519,3],[523,3]]},"146":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[239,1],[301,1],[303,3],[310,2],[324,3],[333,2],[347,1],[373,1],[416,2],[419,1],[431,2],[446,3],[485,1],[487,1],[587,2],[614,2],[631,2],[641,2],[644,2],[647,1],[681,1],[683,1],[691,3],[701,3],[715,3],[729,3],[752,2],[766,1],[806,3],[851,2],[922,3],[956,2],[1088,2],[1091,3],[1116,2],[1136,1],[1215,4],[1220,4],[1225,6],[1267,2],[1319,3],[1371,2],[1446,3],[1488,2],[1568,1],[1604,3],[1608,3],[1626,2],[1653,1],[1753,2],[1756,1],[1758,3],[1860,2],[1893,1],[1924,3],[1979,1],[1986,1],[2009,2],[2012,1],[2043,3],[2064,2],[2108,3],[2112,1],[2114,3],[2136,5],[2142,3],[2153,1],[2155,1],[2169,1],[2188,1],[2196,1],[2210,1],[2229,1],[2237,1],[2250,1],[2269,1],[2277,1],[2290,1],[2309,1],[2317,1],[2331,1],[2350,1],[2369,2]]},"148":{"position":[[35,1],[68,1],[124,1],[194,1],[233,1],[277,1],[373,2],[389,1],[401,1],[408,1],[410,2],[464,1],[509,3],[513,1],[515,1],[530,1],[606,2],[609,1],[611,2],[643,2],[693,3],[697,2],[783,2],[856,2],[886,2],[976,3],[1018,2],[1021,1],[1083,3],[1112,2],[1115,1],[1137,1],[1324,2],[1327,3],[1356,4],[1361,3],[1365,10],[1376,7],[1393,4],[1424,7],[1432,4],[1437,8],[1446,6],[1453,11],[1496,3],[1500,3]]},"150":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[239,1],[301,1],[329,1],[355,1],[398,2],[401,1],[413,2],[428,3],[467,1],[469,1],[569,2],[596,2],[613,2],[623,2],[626,2],[629,1],[663,1],[665,1],[673,3],[683,3],[697,3],[711,3],[715,2],[729,1],[769,3],[814,2],[885,3],[919,2],[1051,2],[1054,3],[1079,2],[1099,1],[1178,4],[1183,4],[1188,6],[1230,2],[1282,3],[1334,2],[1409,3],[1451,2],[1531,1],[1567,3],[1571,3],[1589,2],[1616,1],[1716,2],[1719,1],[1721,3],[1823,2],[1856,1],[1887,3],[1942,1],[1949,1],[1972,2],[1975,1],[2006,3],[2027,2],[2073,3],[2077,1],[2079,3],[2101,5],[2107,3],[2118,1],[2120,1],[2134,1],[2153,1],[2161,1],[2175,1],[2194,1],[2202,1],[2215,1],[2234,1],[2242,1],[2255,1],[2274,1],[2282,1],[2296,1],[2315,1],[2334,2]]},"152":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[308,1],[317,2],[320,2],[323,1],[357,1],[359,1],[367,3],[377,3],[391,3],[405,3],[435,2],[449,1],[489,3],[534,2],[605,3],[639,2],[771,2],[774,3],[799,2],[819,1],[898,4],[903,4],[908,6],[950,2],[1002,3],[1020,2],[1036,1],[1066,1],[1076,1],[1130,1],[1194,2],[1197,2],[1221,2],[1224,1],[1247,2],[1250,1],[1276,3],[1297,2],[1343,3],[1347,3],[1369,5],[1375,3],[1386,1],[1388,1],[1402,1],[1416,1],[1424,1],[1438,1],[1452,1],[1460,1],[1473,1],[1487,1],[1495,1],[1508,1],[1522,1],[1530,1],[1544,2]]},"156":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[282,3],[289,2],[303,3],[312,2],[326,1],[335,2],[338,2],[341,1],[375,1],[377,1],[385,3],[395,3],[409,3],[423,3],[472,2],[486,1],[526,3],[571,2],[642,3],[676,2],[808,2],[811,3],[836,2],[856,1],[935,4],[940,4],[945,6],[987,2],[1039,3],[1057,2],[1073,1],[1103,1],[1113,1],[1167,1],[1231,2],[1234,2],[1258,2],[1261,1],[1284,2],[1287,1],[1313,3],[1334,2],[1378,3],[1382,3],[1404,5],[1410,3],[1421,1],[1423,1],[1437,1],[1451,1],[1459,1],[1473,1],[1487,1],[1495,1],[1508,1],[1522,1],[1530,1],[1543,1],[1557,1],[1565,1],[1579,2]]},"158":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[282,3],[289,2],[303,3],[312,2],[326,1],[335,2],[338,2],[341,1],[375,1],[377,1],[385,3],[395,3],[409,3],[423,3],[446,2],[460,1],[500,3],[545,2],[616,3],[650,2],[782,2],[785,3],[810,2],[830,1],[909,4],[914,4],[919,6],[961,2],[1013,3],[1031,2],[1048,1],[1084,1],[1121,2],[1145,2],[1148,1],[1174,3],[1195,2],[1239,3],[1261,5],[1267,3],[1278,1],[1280,1],[1294,1],[1308,1],[1316,1],[1330,1],[1344,1],[1352,1],[1365,1],[1379,1],[1387,1],[1400,1],[1414,1],[1422,1],[1436,2]]},"160":{"position":[[398,1]]},"164":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[308,1],[317,2],[320,2],[323,1],[357,1],[359,1],[367,3],[377,3],[391,3],[405,3],[409,2],[423,1],[463,3],[508,2],[579,3],[613,2],[745,2],[748,3],[773,2],[793,1],[872,4],[877,4],[882,6],[924,2],[976,3],[994,2],[1011,1],[1047,1],[1084,2],[1108,2],[1111,1],[1137,3],[1158,2],[1204,3],[1226,5],[1232,3],[1243,1],[1245,1],[1259,1],[1273,1],[1281,1],[1295,1],[1309,1],[1317,1],[1330,1],[1344,1],[1352,1],[1365,1],[1379,1],[1387,1],[1401,2]]},"168":{"position":[[166,1],[198,1],[231,3],[241,3],[255,3],[259,3],[301,2],[304,1],[332,1],[379,1],[381,3],[508,1],[540,1],[567,3],[577,3],[591,3],[595,3],[636,2],[639,1],[667,1],[724,1],[726,3],[860,1],[899,1],[953,1],[961,3],[971,3],[985,3],[989,3],[1046,2],[1049,1],[1077,1],[1141,1],[1143,3],[1280,1],[1298,2],[1301,1],[1329,1],[1375,1],[1396,3],[1613,1],[1631,2],[1634,1],[1662,1],[1706,1],[1727,3]]},"170":{"position":[[184,1],[203,1],[242,3],[252,3],[266,3],[270,3],[274,1],[288,1],[316,1],[336,1],[338,1],[489,1],[516,3],[526,3],[540,3],[544,3],[552,1],[571,1],[601,1],[615,1],[643,1],[663,1],[665,1],[830,1],[884,1],[892,3],[902,3],[916,3],[920,3],[928,1],[972,1],[986,1],[1014,1],[1061,1],[1063,1],[1165,1],[1180,1],[1216,1],[1242,1],[1256,1],[1284,1],[1322,1],[1324,1],[1508,1],[1523,1],[1557,1],[1583,1],[1597,1],[1625,1],[1661,1],[1663,1]]}}}],["0",{"_index":159,"t":{"16":{"position":[[256,2]]},"61":{"position":[[121,2]]},"87":{"position":[[579,2],[596,2],[609,2],[654,2],[670,1]]},"89":{"position":[[475,2],[492,2],[505,2],[551,2],[567,1],[602,2],[619,2],[632,2],[677,2],[693,1]]},"91":{"position":[[791,2],[808,2],[821,2],[866,2],[882,1]]},"97":{"position":[[291,2]]},"109":{"position":[[741,2],[790,2],[1226,2],[1275,2]]},"136":{"position":[[173,2],[362,2]]},"146":{"position":[[313,2],[2367,1]]},"148":{"position":[[1308,2],[1321,2]]},"150":{"position":[[2332,1]]},"156":{"position":[[292,2]]},"158":{"position":[[292,2]]}}}],["0deprec",{"_index":683,"t":{"93":{"position":[[0,11]]},"162":{"position":[[101,11]]}}}],["0xffffff",{"_index":841,"t":{"124":{"position":[[300,9]]},"130":{"position":[[386,8]]},"148":{"position":[[876,9]]}}}],["1",{"_index":160,"t":{"16":{"position":[[259,2]]},"33":{"position":[[517,2],[703,1],[760,3],[764,2],[816,1],[854,1],[858,1],[986,3],[990,3],[1027,1],[1031,1]]},"55":{"position":[[58,1],[155,1],[285,1],[357,1]]},"61":{"position":[[135,1]]},"80":{"position":[[35,1],[39,1],[129,1],[133,1]]},"83":{"position":[[221,1],[225,1],[686,1],[690,1]]},"85":{"position":[[239,1],[243,1]]},"87":{"position":[[449,2],[454,2]]},"89":{"position":[[326,2],[331,2]]},"91":{"position":[[562,2],[567,2]]},"97":{"position":[[347,2],[353,1]]},"99":{"position":[[370,2]]},"111":{"position":[[1446,4],[1752,3]]},"113":{"position":[[208,1],[737,1],[1000,1]]},"115":{"position":[[238,3],[271,3],[370,3],[503,3],[565,3]]},"120":{"position":[[187,3],[358,3]]},"128":{"position":[[230,3],[263,3]]},"138":{"position":[[2138,2]]},"142":{"position":[[1216,1]]},"146":{"position":[[336,2],[2275,1]]},"150":{"position":[[2240,1]]},"152":{"position":[[1493,1]]},"156":{"position":[[315,2],[1528,1]]},"158":{"position":[[315,2],[1385,1]]},"164":{"position":[[1350,1]]},"168":{"position":[[1278,1],[1282,3],[1611,1],[1615,3]]},"170":{"position":[[1214,1],[1218,4],[1555,1],[1559,4]]}}}],["1+1",{"_index":337,"t":{"39":{"position":[[284,3]]},"99":{"position":[[252,5]]},"118":{"position":[[185,3],[348,3]]},"122":{"position":[[311,3],[602,3]]},"144":{"position":[[379,3]]}}}],["1+:toadd",{"_index":616,"t":{"69":{"position":[[269,8]]},"138":{"position":[[1783,8]]}}}],["1,2",{"_index":277,"t":{"33":{"position":[[608,5]]}}}],["1.0.0",{"_index":145,"t":{"14":{"position":[[202,8]]},"138":{"position":[[2026,8]]}}}],["1.1",{"_index":161,"t":{"16":{"position":[[262,4]]}}}],["1.1earli",{"_index":1092,"t":{"162":{"position":[[756,8]]}}}],["1.2",{"_index":162,"t":{"16":{"position":[[267,4]]}}}],["1.2releas",{"_index":1096,"t":{"162":{"position":[[848,10]]}}}],["10",{"_index":334,"t":{"39":{"position":[[237,2]]},"69":{"position":[[296,2]]},"89":{"position":[[532,3]]},"109":{"position":[[546,3],[559,3],[1031,3],[1044,3]]},"120":{"position":[[204,6],[373,5]]},"124":{"position":[[194,3]]},"130":{"position":[[280,3]]},"138":{"position":[[1810,2]]},"148":{"position":[[754,3]]}}}],["100",{"_index":986,"t":{"144":{"position":[[464,4]]}}}],["1000",{"_index":888,"t":{"136":{"position":[[322,6],[529,6]]}}}],["1045",{"_index":1019,"t":{"148":{"position":[[504,4]]}}}],["1080",{"_index":358,"t":{"39":{"position":[[864,4]]}}}],["12",{"_index":518,"t":{"55":{"position":[[126,2]]}}}],["120",{"_index":705,"t":{"97":{"position":[[335,4]]}}}],["123",{"_index":697,"t":{"97":{"position":[[152,4]]},"148":{"position":[[689,3]]}}}],["1234",{"_index":839,"t":{"124":{"position":[[244,5]]},"130":{"position":[[330,5]]},"148":{"position":[[817,5]]}}}],["127.0.0.1",{"_index":983,"t":{"144":{"position":[[172,12]]}}}],["137",{"_index":742,"t":{"107":{"position":[[839,5],[1342,5]]},"134":{"position":[[345,5]]}}}],["14",{"_index":793,"t":{"111":{"position":[[400,3],[982,3]]}}}],["16000",{"_index":557,"t":{"59":{"position":[[86,5]]}}}],["18.x",{"_index":53,"t":{"8":{"position":[[60,5]]}}}],["1998",{"_index":1147,"t":{"172":{"position":[[12,5]]}}}],["1experiment",{"_index":183,"t":{"20":{"position":[[144,13]]},"162":{"position":[[642,13]]}}}],["2",{"_index":163,"t":{"16":{"position":[[272,1]]},"33":{"position":[[523,1]]},"57":{"position":[[293,1],[464,3]]},"67":{"position":[[195,3],[199,4]]},"80":{"position":[[95,1],[189,1]]},"83":{"position":[[300,1],[701,1],[705,1],[772,2]]},"85":{"position":[[261,1],[265,1],[376,1]]},"87":{"position":[[636,2]]},"89":{"position":[[338,2],[343,2],[659,2]]},"91":{"position":[[574,2],[579,2],[848,2]]},"113":{"position":[[220,1],[749,1],[1012,1]]},"124":{"position":[[263,2]]},"130":{"position":[[349,2]]},"142":{"position":[[1181,1]]},"146":{"position":[[2235,1]]},"148":{"position":[[836,2]]},"150":{"position":[[2200,1]]},"152":{"position":[[1117,4],[1171,1],[1180,4],[1458,1]]},"156":{"position":[[1154,4],[1208,1],[1217,4],[1493,1]]},"158":{"position":[[1350,1]]},"164":{"position":[[1315,1]]}}}],["2+3",{"_index":906,"t":{"138":{"position":[[785,3],[1292,3]]}}}],["2.0",{"_index":298,"t":{"37":{"position":[[238,3]]}}}],["2.rds.amazonaws.com",{"_index":827,"t":{"122":{"position":[[987,21],[1310,21]]}}}],["2113931265",{"_index":1025,"t":{"148":{"position":[[907,11]]}}}],["2181036031",{"_index":1026,"t":{"148":{"position":[[936,11]]}}}],["2282",{"_index":1148,"t":{"172":{"position":[[18,5]]}}}],["253",{"_index":1039,"t":{"148":{"position":[[1296,4]]}}}],["2stabl",{"_index":164,"t":{"16":{"position":[[289,7],[297,7]]},"83":{"position":[[0,7]]},"85":{"position":[[0,7]]},"87":{"position":[[0,7]]},"89":{"position":[[0,7]]},"91":{"position":[[0,7]]},"162":{"position":[[1114,7]]},"168":{"position":[[17,7],[396,7],[748,7],[1155,7],[1492,7]]},"170":{"position":[[17,7],[351,7],[685,7],[1073,7],[1418,7]]}}}],["3",{"_index":44,"t":{"6":{"position":[[39,2]]},"16":{"position":[[278,2]]},"33":{"position":[[646,1]]},"43":{"position":[[292,3]]},"57":{"position":[[511,1]]},"67":{"position":[[388,1]]},"115":{"position":[[281,3],[403,3],[413,3],[598,3],[608,3]]},"128":{"position":[[273,3]]},"142":{"position":[[1251,1]]},"146":{"position":[[2315,1]]},"150":{"position":[[2280,1]]},"152":{"position":[[1528,1]]},"156":{"position":[[1563,1]]},"158":{"position":[[1420,1]]},"164":{"position":[[1385,1]]}}}],["33",{"_index":1035,"t":{"148":{"position":[[1261,3]]}}}],["3306",{"_index":356,"t":{"39":{"position":[[829,4]]},"99":{"position":[[150,4],[430,4]]},"138":{"position":[[163,5],[980,5],[1633,5]]},"140":{"position":[[206,5]]},"144":{"position":[[191,7]]}}}],["384",{"_index":1037,"t":{"148":{"position":[[1279,4]]}}}],["3legaci",{"_index":1106,"t":{"162":{"position":[[1181,7]]}}}],["4",{"_index":653,"t":{"83":{"position":[[775,1]]},"85":{"position":[[393,1]]},"142":{"position":[[1123,1],[1145,1]]},"146":{"position":[[2167,1],[2194,1]]},"150":{"position":[[2132,1],[2159,1]]},"152":{"position":[[1400,1],[1422,1]]},"156":{"position":[[1435,1],[1457,1]]},"158":{"position":[[1292,1],[1314,1]]},"164":{"position":[[1257,1],[1279,1]]}}}],["4.5.2",{"_index":632,"t":{"72":{"position":[[224,8]]}}}],["45",{"_index":729,"t":{"105":{"position":[[351,3],[679,3],[1031,4],[1330,4]]},"132":{"position":[[301,4],[592,4]]}}}],["5",{"_index":516,"t":{"55":{"position":[[80,3]]},"136":{"position":[[180,2],[369,2]]}}}],["5.6.10",{"_index":1024,"t":{"148":{"position":[[773,9]]}}}],["53",{"_index":743,"t":{"107":{"position":[[845,3],[1348,4]]},"134":{"position":[[351,4]]}}}],["6",{"_index":517,"t":{"55":{"position":[[84,3]]}}}],["6.9.0",{"_index":925,"t":{"138":{"position":[[2207,8]]}}}],["60000",{"_index":763,"t":{"109":{"position":[[652,6],[723,5],[1137,6],[1208,5]]}}}],["8",{"_index":840,"t":{"124":{"position":[[280,2]]},"130":{"position":[[366,2]]},"148":{"position":[[853,2]]}}}],["_err",{"_index":643,"t":{"80":{"position":[[54,6],[148,6]]},"83":{"position":[[240,6],[377,6],[718,6],[853,6]]},"85":{"position":[[314,6]]},"87":{"position":[[493,6]]},"89":{"position":[[384,6]]},"91":{"position":[[705,6]]}}}],["a,b,c,d",{"_index":282,"t":{"35":{"position":[[31,7]]}}}],["abov",{"_index":591,"t":{"65":{"position":[[708,5]]},"109":{"position":[[1550,5],[1756,5],[2066,5],[2297,5]]}}}],["accept",{"_index":363,"t":{"39":{"position":[[976,6]]}}}],["access",{"_index":305,"t":{"37":{"position":[[357,6]]},"76":{"position":[[57,7]]},"78":{"position":[[51,7]]},"142":{"position":[[221,7]]},"146":{"position":[[655,7]]},"150":{"position":[[637,7]]},"152":{"position":[[331,7]]},"156":{"position":[[349,7]]},"158":{"position":[[349,7]]},"164":{"position":[[331,7]]},"174":{"position":[[145,6]]}}}],["accord",{"_index":432,"t":{"41":{"position":[[2435,9]]}}}],["accordingli",{"_index":392,"t":{"41":{"position":[[760,12]]}}}],["ack",{"_index":549,"t":{"57":{"position":[[641,3]]}}}],["acquir",{"_index":779,"t":{"109":{"position":[[1956,9]]}}}],["action",{"_index":180,"t":{"20":{"position":[[101,7],[238,7],[335,7],[530,7]]}}}],["activ",{"_index":1108,"t":{"162":{"position":[[1289,6]]}}}],["ad",{"_index":1129,"t":{"168":{"position":[[122,6]]}}}],["addit",{"_index":208,"t":{"22":{"position":[[228,10]]},"37":{"position":[[3,8]]},"39":{"position":[[905,8]]},"41":{"position":[[599,10]]},"43":{"position":[[245,10],[296,10]]},"52":{"position":[[251,8]]},"63":{"position":[[3,8]]},"160":{"position":[[370,10]]}}}],["addition",{"_index":786,"t":{"109":{"position":[[2495,13]]}}}],["address",{"_index":1117,"t":{"162":{"position":[[1520,10]]}}}],["advanc",{"_index":685,"t":{"95":{"position":[[80,8]]}}}],["affect",{"_index":1005,"t":{"146":{"position":[[2352,8]]},"150":{"position":[[2317,8]]}}}],["affectedrow",{"_index":481,"t":{"50":{"position":[[222,13]]},"87":{"position":[[242,12],[582,13]]},"89":{"position":[[478,13],[605,13]]},"91":{"position":[[794,13]]},"146":{"position":[[503,15]]},"150":{"position":[[485,15]]}}}],["ag",{"_index":728,"t":{"105":{"position":[[343,5],[658,5],[1023,5],[1309,5]]},"107":{"position":[[818,5],[1321,5]]},"111":{"position":[[378,5],[960,5]]},"132":{"position":[[293,5],[571,5]]},"134":{"position":[[324,5]]}}}],["again",{"_index":448,"t":{"43":{"position":[[396,6]]},"107":{"position":[[1576,6]]},"134":{"position":[[567,6]]}}}],["aim",{"_index":197,"t":{"22":{"position":[[7,4]]}}}],["algorithm",{"_index":435,"t":{"41":{"position":[[2592,9]]}}}],["algoritm",{"_index":449,"t":{"43":{"position":[[502,9]]}}}],["allow",{"_index":124,"t":{"12":{"position":[[181,6]]}}}],["alongsid",{"_index":141,"t":{"14":{"position":[[90,9]]}}}],["altern",{"_index":778,"t":{"109":{"position":[[1899,14]]}}}],["alway",{"_index":227,"t":{"26":{"position":[[192,6]]},"41":{"position":[[1488,6],[2239,6]]},"146":{"position":[[1830,6]]},"150":{"position":[[1793,6]]}}}],["amazon",{"_index":819,"t":{"122":{"position":[[645,7],[704,6],[1014,7],[1337,7]]},"140":{"position":[[217,7]]}}}],["anoth",{"_index":380,"t":{"41":{"position":[[372,7]]}}}],["answer",{"_index":1128,"t":{"168":{"position":[[84,7]]},"170":{"position":[[84,7]]},"174":{"position":[[22,7]]}}}],["api",{"_index":24,"t":{"2":{"position":[[240,3]]},"22":{"position":[[76,3]]},"41":{"position":[[1303,3]]},"63":{"position":[[79,3]]},"111":{"position":[[28,4]]},"154":{"position":[[17,3]]},"160":{"position":[[102,3],[279,3]]}}}],["appli",{"_index":805,"t":{"113":{"position":[[291,8],[339,8]]},"154":{"position":[[233,7]]}}}],["approach",{"_index":1093,"t":{"162":{"position":[[817,11]]}}}],["arg",{"_index":853,"t":{"124":{"position":[[663,5]]},"130":{"position":[[772,5]]}}}],["argument",{"_index":467,"t":{"46":{"position":[[89,9]]},"154":{"position":[[252,10]]}}}],["arguments[1",{"_index":855,"t":{"124":{"position":[[832,13],[1040,13]]},"130":{"position":[[941,13],[1149,13]]}}}],["arguments[2",{"_index":856,"t":{"124":{"position":[[856,13]]},"130":{"position":[[965,13]]}}}],["array",{"_index":266,"t":{"33":{"position":[[398,5],[942,5]]},"35":{"position":[[139,5],[148,6]]},"50":{"position":[[536,5]]},"57":{"position":[[230,5],[318,5]]},"83":{"position":[[11,5]]},"113":{"position":[[80,5],[844,5],[853,6],[875,5],[1140,5],[1149,6],[1171,5]]},"124":{"position":[[715,7],[731,7]]},"130":{"position":[[824,7],[840,7]]}}}],["array.isarray(arguments[1",{"_index":854,"t":{"124":{"position":[[742,29]]},"130":{"position":[[851,29]]}}}],["asc",{"_index":953,"t":{"142":{"position":[[926,5]]},"146":{"position":[[1595,4]]},"150":{"position":[[1558,4]]},"152":{"position":[[1107,3],[1161,3]]},"156":{"position":[[1144,3],[1198,3]]},"158":{"position":[[1115,5]]},"164":{"position":[[1078,5]]}}}],["ascertain",{"_index":1100,"t":{"162":{"position":[[1045,9]]}}}],["ask",{"_index":369,"t":{"41":{"position":[[43,3]]},"113":{"position":[[1262,3]]},"174":{"position":[[42,5]]}}}],["assur",{"_index":1074,"t":{"162":{"position":[[162,6]]}}}],["async",{"_index":592,"t":{"67":{"position":[[0,5],[224,5]]},"111":{"position":[[64,5],[113,5],[1141,5]]},"138":{"position":[[92,5],[1962,5]]},"142":{"position":[[296,6]]},"146":{"position":[[634,6]]},"150":{"position":[[616,6]]},"152":{"position":[[310,6]]},"156":{"position":[[328,6]]},"158":{"position":[[328,6]]},"164":{"position":[[310,6]]}}}],["asynchron",{"_index":390,"t":{"41":{"position":[[703,14]]}}}],["attach",{"_index":511,"t":{"52":{"position":[[499,6]]}}}],["attack",{"_index":738,"t":{"107":{"position":[[302,7]]}}}],["auth",{"_index":371,"t":{"41":{"position":[[83,4],[801,4],[952,6],[1869,6]]},"43":{"position":[[702,5],[842,5],[982,5]]},"148":{"position":[[119,4]]}}}],["auth.doublesha1('pass123",{"_index":1010,"t":{"148":{"position":[[235,27]]}}}],["auth.verifytoken",{"_index":1012,"t":{"148":{"position":[[279,17]]}}}],["authcallback",{"_index":1027,"t":{"148":{"position":[[948,13]]}}}],["authent",{"_index":213,"t":{"22":{"position":[[285,14]]},"41":{"position":[[211,14],[610,14]]},"43":{"position":[[34,14],[159,14],[256,14],[412,14]]},"148":{"position":[[962,13]]},"160":{"position":[[558,14]]}}}],["authenticate(param",{"_index":1007,"t":{"148":{"position":[[169,20]]}}}],["authentication::native41",{"_index":433,"t":{"41":{"position":[[2448,24]]}}}],["authnextfactor",{"_index":441,"t":{"43":{"position":[[90,14]]}}}],["author",{"_index":921,"t":{"138":{"position":[[2144,9]]}}}],["authplugin",{"_index":373,"t":{"41":{"position":[[103,11],[928,12],[2480,11]]},"43":{"position":[[661,12]]}}}],["authswitchhandl",{"_index":409,"t":{"41":{"position":[[1318,17],[1778,18],[2508,17]]}}}],["authswitchrequest",{"_index":423,"t":{"41":{"position":[[2130,17]]}}}],["auto",{"_index":103,"t":{"10":{"position":[[709,4]]}}}],["auto_incr",{"_index":941,"t":{"142":{"position":[[548,15]]},"146":{"position":[[1030,15]]},"150":{"position":[[993,15]]},"152":{"position":[[713,15]]},"156":{"position":[[750,15]]},"158":{"position":[[724,15]]},"164":{"position":[[687,15]]}}}],["automat",{"_index":776,"t":{"109":{"position":[[1645,13],[1852,13]]},"136":{"position":[[270,13]]}}}],["avail",{"_index":157,"t":{"16":{"position":[[238,9]]},"39":{"position":[[1080,10]]},"105":{"position":[[498,9],[1210,9]]},"107":{"position":[[992,9],[1527,9]]},"111":{"position":[[443,9]]},"132":{"position":[[474,9]]},"134":{"position":[[524,9]]},"162":{"position":[[1330,10]]}}}],["avg",{"_index":1050,"t":{"154":{"position":[[212,5]]}}}],["avoid",{"_index":753,"t":{"109":{"position":[[219,5]]},"154":{"position":[[292,5]]}}}],["await",{"_index":594,"t":{"67":{"position":[[82,5],[155,5],[204,5],[398,5],[516,5]]},"69":{"position":[[356,5]]},"105":{"position":[[127,5],[270,5],[590,5]]},"107":{"position":[[586,5],[748,5]]},"109":{"position":[[1579,5],[2085,5],[2149,5]]},"111":{"position":[[70,6],[181,5],[308,5],[744,5],[890,5],[1414,5]]},"113":{"position":[[426,5],[705,5]]},"118":{"position":[[72,5],[154,5]]},"120":{"position":[[72,5],[154,5]]},"122":{"position":[[93,5],[900,5],[1046,5]]},"138":{"position":[[126,5],[292,5],[373,5],[675,5],[930,5],[1183,5],[1364,5],[2007,7]]},"142":{"position":[[392,5],[487,5],[656,5],[864,5],[1062,5]]},"146":{"position":[[768,5],[854,5],[959,5],[1138,5],[1374,5],[1491,5],[1655,5],[2118,5]]},"150":{"position":[[731,5],[817,5],[922,5],[1101,5],[1337,5],[1454,5],[1618,5],[2083,5]]},"152":{"position":[[451,5],[537,5],[642,5],[821,5],[1038,5],[1351,5]]},"156":{"position":[[488,5],[574,5],[679,5],[858,5],[1075,5],[1386,5]]},"158":{"position":[[462,5],[548,5],[653,5],[832,5],[1050,5],[1243,5]]},"164":{"position":[[425,5],[511,5],[616,5],[795,5],[1013,5],[1208,5]]},"170":{"position":[[205,5],[573,5],[930,5],[1182,5],[1525,5]]}}}],["await.j",{"_index":894,"t":{"138":{"position":[[0,8],[2062,11]]}}}],["b",{"_index":99,"t":{"10":{"position":[[622,1]]},"35":{"position":[[197,1]]}}}],["babel",{"_index":924,"t":{"138":{"position":[[2194,6]]}}}],["babelrc",{"_index":896,"t":{"138":{"position":[[15,8]]}}}],["back",{"_index":388,"t":{"41":{"position":[[659,4]]}}}],["backend",{"_index":869,"t":{"126":{"position":[[118,8],[166,8]]}}}],["backward",{"_index":1075,"t":{"162":{"position":[[169,8],[281,8]]}}}],["badg",{"_index":151,"t":{"16":{"position":[[18,6]]},"162":{"position":[[14,6]]}}}],["bar",{"_index":350,"t":{"39":{"position":[[730,6]]},"65":{"position":[[241,6],[528,6]]},"122":{"position":[[954,6],[1277,6]]}}}],["base",{"_index":18,"t":{"2":{"position":[[170,5]]},"63":{"position":[[73,5]]},"162":{"position":[[983,5]]}}}],["basi",{"_index":1058,"t":{"154":{"position":[[517,6]]}}}],["basic",{"_index":689,"t":{"95":{"position":[[608,5]]}}}],["befor",{"_index":195,"t":{"20":{"position":[[474,6]]},"142":{"position":[[1651,6]]}}}],["begin",{"_index":679,"t":{"91":{"position":[[552,5]]},"146":{"position":[[1555,5]]},"150":{"position":[[1518,5]]}}}],["behavior",{"_index":505,"t":{"52":{"position":[[363,8]]}}}],["benchmark",{"_index":249,"t":{"30":{"position":[[63,10],[85,10],[115,10]]}}}],["beta",{"_index":1033,"t":{"148":{"position":[[1222,7],[1239,7]]}}}],["better",{"_index":204,"t":{"22":{"position":[[170,6]]},"55":{"position":[[449,6]]},"107":{"position":[[153,6],[1666,6]]},"134":{"position":[[660,6]]},"160":{"position":[[400,6]]}}}],["between",{"_index":438,"t":{"41":{"position":[[2648,7]]},"72":{"position":[[107,7]]}}}],["bin.000007",{"_index":703,"t":{"97":{"position":[[311,12]]}}}],["binari",{"_index":215,"t":{"22":{"position":[[364,6]]},"50":{"position":[[584,6]]},"101":{"position":[[102,6]]},"160":{"position":[[445,6]]}}}],["bind",{"_index":241,"t":{"28":{"position":[[99,8],[173,8]]},"61":{"position":[[4,4]]},"103":{"position":[[27,8]]}}}],["binlog",{"_index":247,"t":{"28":{"position":[[249,6]]}}}],["binlogpo",{"_index":704,"t":{"97":{"position":[[324,10]]}}}],["binlogstream",{"_index":694,"t":{"97":{"position":[[100,12]]}}}],["binlogstream.pip",{"_index":707,"t":{"97":{"position":[[381,18]]}}}],["blob",{"_index":418,"t":{"41":{"position":[[1607,4]]}}}],["block",{"_index":170,"t":{"18":{"position":[[177,6]]},"97":{"position":[[362,8]]},"170":{"position":[[137,6],[435,6],[769,6],[1154,6],[1497,6]]}}}],["bluebird",{"_index":795,"t":{"111":{"position":[[629,8],[645,8],[659,11],[705,8],[835,9]]}}}],["boolean",{"_index":497,"t":{"52":{"position":[[146,7]]},"61":{"position":[[105,7]]}}}],["both",{"_index":1143,"t":{"168":{"position":[[1417,4],[1748,4]]},"170":{"position":[[1343,4],[1682,4]]}}}],["bound",{"_index":1077,"t":{"162":{"position":[[230,5]]}}}],["branch",{"_index":65,"t":{"10":{"position":[[154,6]]}}}],["browser",{"_index":80,"t":{"10":{"position":[[399,7]]}}}],["buffer",{"_index":387,"t":{"41":{"position":[[630,8],[1667,8]]},"61":{"position":[[222,6]]}}}],["buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd",{"_index":877,"t":{"128":{"position":[[139,55]]}}}],["bug",{"_index":1116,"t":{"162":{"position":[[1488,4]]}}}],["build",{"_index":187,"t":{"20":{"position":[[266,5],[306,5]]}}}],["built",{"_index":41,"t":{"6":{"position":[[16,5]]}}}],["byte",{"_index":501,"t":{"52":{"position":[[242,5]]}}}],["bytes/sec",{"_index":335,"t":{"39":{"position":[[240,9]]}}}],["c",{"_index":289,"t":{"35":{"position":[[214,1]]},"69":{"position":[[83,1]]},"107":{"position":[[837,1],[1340,1]]},"134":{"position":[[343,1]]},"138":{"position":[[122,1],[1592,1]]}}}],["c.end",{"_index":619,"t":{"69":{"position":[[310,8]]},"138":{"position":[[936,8],[1824,8]]}}}],["c.execute('select",{"_index":615,"t":{"69":{"position":[[251,17]]},"138":{"position":[[484,17],[569,17],[695,17],[727,17],[1765,17]]}}}],["c.query('show",{"_index":612,"t":{"69":{"position":[[187,13]]},"138":{"position":[[298,13],[1701,13]]}}}],["c.query('som",{"_index":899,"t":{"138":{"position":[[379,13]]}}}],["ca",{"_index":824,"t":{"122":{"position":[[793,2],[805,2]]},"144":{"position":[[309,3]]}}}],["cach",{"_index":520,"t":{"55":{"position":[[215,6],[256,6],[322,5],[416,5],[480,5]]},"57":{"position":[[52,5]]},"59":{"position":[[36,6],[63,6],[173,5]]},"107":{"position":[[1612,5]]},"134":{"position":[[603,5]]}}}],["call",{"_index":384,"t":{"41":{"position":[[520,4],[560,4],[1549,5],[2556,6]]},"55":{"position":[[209,5]]},"91":{"position":[[89,4],[629,5],[1033,5]]},"107":{"position":[[699,4],[1234,4]]},"134":{"position":[[237,4]]}}}],["callback",{"_index":411,"t":{"41":{"position":[[1443,9]]},"50":{"position":[[453,9]]},"57":{"position":[[598,8]]},"105":{"position":[[8,8]]},"107":{"position":[[479,8]]},"109":{"position":[[300,8],[1503,8],[2025,8]]},"113":{"position":[[404,8],[664,8]]},"118":{"position":[[8,8]]},"120":{"position":[[8,8]]},"122":{"position":[[8,8],[830,8]]}}}],["callback'",{"_index":1134,"t":{"168":{"position":[[470,10],[822,10],[1226,10],[1561,10]]}}}],["callback(nul",{"_index":420,"t":{"41":{"position":[[1646,14]]}}}],["candid",{"_index":1097,"t":{"162":{"position":[[859,9]]}}}],["capabilityflag",{"_index":476,"t":{"50":{"position":[[91,15]]},"124":{"position":[[283,16]]},"130":{"position":[[369,16]]},"148":{"position":[[859,16],[889,16],[919,16]]}}}],["case",{"_index":340,"t":{"39":{"position":[[352,4]]},"41":{"position":[[1461,5]]},"122":{"position":[[739,4]]}}}],["catalog",{"_index":1029,"t":{"148":{"position":[[1139,8]]}}}],["catch",{"_index":732,"t":{"105":{"position":[[510,5],[710,5]]},"107":{"position":[[1004,5]]},"109":{"position":[[1690,5]]},"113":{"position":[[939,5]]},"122":{"position":[[1143,5]]},"138":{"position":[[415,5]]},"170":{"position":[[131,5],[276,5],[429,5],[603,5],[763,5],[974,5],[1148,5],[1244,5],[1491,5],[1585,5]]}}}],["catch((err",{"_index":404,"t":{"41":{"position":[[1176,12]]},"65":{"position":[[620,12]]},"138":{"position":[[1426,12]]}}}],["catch(console.log",{"_index":802,"t":{"111":{"position":[[1806,19]]}}}],["catch(funct",{"_index":917,"t":{"138":{"position":[[1880,15]]}}}],["caus",{"_index":1111,"t":{"162":{"position":[[1407,5]]}}}],["caution",{"_index":110,"t":{"10":{"position":[[816,7]]},"162":{"position":[[387,7]]}}}],["cb",{"_index":351,"t":{"39":{"position":[[754,4]]},"41":{"position":[[1835,3]]},"148":{"position":[[190,3]]}}}],["cb(err",{"_index":425,"t":{"41":{"position":[[2196,8]]}}}],["cb(null",{"_index":359,"t":{"39":{"position":[[874,8]]},"41":{"position":[[2065,8]]},"148":{"position":[[391,9],[455,8]]}}}],["cd",{"_index":69,"t":{"10":{"position":[[189,2],[643,2]]}}}],["cert",{"_index":816,"t":{"122":{"position":[[211,5],[520,5],[808,4]]},"144":{"position":[[260,5]]}}}],["cert.pem",{"_index":817,"t":{"122":{"position":[[249,11],[558,11],[796,8]]},"144":{"position":[[298,10],[341,11]]}}}],["chang",{"_index":82,"t":{"10":{"position":[[420,7]]},"14":{"position":[[39,7],[106,8],[211,8],[227,6],[304,7],[344,7],[364,6]]},"87":{"position":[[24,7]]},"89":{"position":[[24,7]]},"91":{"position":[[24,7]]},"160":{"position":[[106,7]]},"162":{"position":[[301,7],[471,7],[747,8],[930,7]]}}}],["changedrow",{"_index":660,"t":{"87":{"position":[[148,11],[657,12]]},"89":{"position":[[554,12],[680,12]]},"91":{"position":[[869,12]]},"146":{"position":[[572,14]]},"150":{"position":[[554,14]]}}}],["changeus",{"_index":362,"t":{"39":{"position":[[963,12]]},"57":{"position":[[749,13]]}}}],["characterset",{"_index":475,"t":{"50":{"position":[[77,13]]},"124":{"position":[[266,13]]},"130":{"position":[[352,13]]},"148":{"position":[[839,13],[1247,13]]}}}],["check",{"_index":35,"t":{"4":{"position":[[44,5]]},"20":{"position":[[13,5],[119,5],[158,6]]},"24":{"position":[[7,5]]},"26":{"position":[[57,5]]},"80":{"position":[[374,5]]},"95":{"position":[[13,5],[372,8],[477,8]]},"107":{"position":[[222,5]]}}}],["checkout",{"_index":98,"t":{"10":{"position":[[612,8]]}}}],["choos",{"_index":794,"t":{"111":{"position":[[475,6]]}}}],["ci",{"_index":72,"t":{"10":{"position":[[240,2],[679,2]]}}}],["clash",{"_index":803,"t":{"113":{"position":[[129,9]]}}}],["class",{"_index":12,"t":{"2":{"position":[[124,5]]},"95":{"position":[[628,5]]},"142":{"position":[[1428,5],[1669,5]]}}}],["classif",{"_index":1103,"t":{"162":{"position":[[1098,15]]}}}],["classifi",{"_index":1087,"t":{"162":{"position":[[618,10],[1354,10]]}}}],["clear",{"_index":186,"t":{"20":{"position":[[256,5],[292,5]]}}}],["cli",{"_index":92,"t":{"10":{"position":[[541,3]]},"138":{"position":[[2201,5]]}}}],["client",{"_index":28,"t":{"2":{"position":[[273,7]]},"22":{"position":[[384,6]]},"28":{"position":[[68,6],[143,7],[220,6]]},"33":{"position":[[171,6]]},"41":{"position":[[51,6],[1577,6],[2656,6]]},"43":{"position":[[68,6]]},"50":{"position":[[276,6],[383,7]]},"52":{"position":[[318,7]]},"101":{"position":[[6,6]]},"105":{"position":[[28,6],[755,6]]},"111":{"position":[[539,6]]},"115":{"position":[[34,6]]},"126":{"position":[[237,6],[281,6]]},"132":{"position":[[34,6]]},"134":{"position":[[34,6]]}}}],["clientflag",{"_index":880,"t":{"130":{"position":[[62,11]]}}}],["clientflags.compress",{"_index":882,"t":{"130":{"position":[[397,21]]}}}],["clientplugindata(password1",{"_index":456,"t":{"43":{"position":[[789,27]]}}}],["clientplugindata(password2",{"_index":458,"t":{"43":{"position":[[929,27]]}}}],["clientplugindata(password3",{"_index":460,"t":{"43":{"position":[[1069,27]]}}}],["clone",{"_index":95,"t":{"10":{"position":[[557,5]]}}}],["close",{"_index":508,"t":{"52":{"position":[[405,5]]},"55":{"position":[[250,5]]},"57":{"position":[[72,6],[635,5]]},"59":{"position":[[187,7]]},"109":{"position":[[138,7]]},"162":{"position":[[895,5]]}}}],["co",{"_index":608,"t":{"69":{"position":[[39,2],[353,2]]},"138":{"position":[[1548,2],[2004,2]]}}}],["co(funct",{"_index":610,"t":{"69":{"position":[[59,12]]},"138":{"position":[[1568,12]]}}}],["co.j",{"_index":895,"t":{"138":{"position":[[9,5]]}}}],["code",{"_index":17,"t":{"2":{"position":[[165,4],[192,5]]},"18":{"position":[[172,4]]},"41":{"position":[[821,4]]},"52":{"position":[[230,4]]},"95":{"position":[[24,4]]},"148":{"position":[[425,5],[498,5],[683,5]]},"160":{"position":[[66,4],[217,4]]}}}],["collat",{"_index":1071,"t":{"160":{"position":[[512,9]]}}}],["column",{"_index":535,"t":{"57":{"position":[[239,6],[334,6],[480,8]]},"113":{"position":[[16,7]]},"124":{"position":[[723,7],[846,7],[920,9],[957,9]]},"130":{"position":[[832,7],[955,7],[1029,9],[1066,9]]}}}],["columnlength",{"_index":1036,"t":{"148":{"position":[[1265,13]]}}}],["columntyp",{"_index":1038,"t":{"148":{"position":[[1284,11]]}}}],["come",{"_index":530,"t":{"57":{"position":[[37,5]]},"109":{"position":[[250,5]]}}}],["command",{"_index":194,"t":{"20":{"position":[[466,7]]},"50":{"position":[[203,8]]},"52":{"position":[[6,7],[162,7],[222,7],[291,8]]},"138":{"position":[[842,8]]},"162":{"position":[[547,7]]}}}],["commandcod",{"_index":499,"t":{"52":{"position":[[190,13]]}}}],["commit",{"_index":196,"t":{"20":{"position":[[495,7]]}}}],["commonli",{"_index":1149,"t":{"174":{"position":[[33,8]]}}}],["compat",{"_index":26,"t":{"2":{"position":[[250,10]]},"18":{"position":[[188,10]]},"154":{"position":[[21,10]]},"160":{"position":[[283,10]]},"162":{"position":[[178,14],[290,10],[1122,13]]}}}],["compil",{"_index":121,"t":{"12":{"position":[[121,8]]},"126":{"position":[[101,9]]}}}],["complet",{"_index":88,"t":{"10":{"position":[[500,8]]},"12":{"position":[[52,8]]}}}],["complianc",{"_index":176,"t":{"20":{"position":[[49,10]]}}}],["compon",{"_index":115,"t":{"12":{"position":[[12,9],[165,11],[273,10]]},"14":{"position":[[12,9],[286,10]]},"16":{"position":[[204,10]]},"18":{"position":[[122,9],[230,10]]},"20":{"position":[[173,10]]}}}],["compress",{"_index":23,"t":{"2":{"position":[[218,10]]},"22":{"position":[[352,11]]},"101":{"position":[[123,12]]},"160":{"position":[[538,11]]}}}],["concept",{"_index":686,"t":{"95":{"position":[[89,9]]}}}],["config",{"_index":231,"t":{"26":{"position":[[239,6]]},"33":{"position":[[75,6]]},"41":{"position":[[126,6],[345,6],[1347,6]]},"43":{"position":[[354,6]]}}}],["confirm",{"_index":1126,"t":{"168":{"position":[[59,9]]},"170":{"position":[[59,9]]}}}],["conn",{"_index":396,"t":{"41":{"position":[[832,4],[1682,4]]},"43":{"position":[[518,4]]},"67":{"position":[[75,4]]},"76":{"position":[[128,4]]},"78":{"position":[[116,4]]},"83":{"position":[[107,4],[552,4]]},"85":{"position":[[124,4]]},"87":{"position":[[363,4]]},"89":{"position":[[214,4]]},"91":{"position":[[342,4]]},"99":{"position":[[168,4]]},"109":{"position":[[2078,4],[2337,5]]},"111":{"position":[[1634,4],[1721,4]]},"113":{"position":[[419,4],[537,4]]},"124":{"position":[[115,6]]},"130":{"position":[[201,6]]},"140":{"position":[[62,4]]},"142":{"position":[[1450,5]]},"144":{"position":[[88,4]]},"146":{"position":[[761,4]]},"148":{"position":[[599,6]]},"150":{"position":[[724,4]]},"152":{"position":[[444,4]]},"156":{"position":[[481,4]]},"158":{"position":[[455,4]]},"164":{"position":[[418,4]]}}}],["conn.clos",{"_index":1023,"t":{"148":{"position":[[700,13],[1482,13]]}}}],["conn.end",{"_index":597,"t":{"67":{"position":[[210,11]]},"111":{"position":[[1838,12]]},"140":{"position":[[324,11]]},"146":{"position":[[2124,11]]},"150":{"position":[[2089,11]]},"152":{"position":[[1357,11]]},"156":{"position":[[1392,11]]},"158":{"position":[[1249,11]]},"164":{"position":[[1214,11]]}}}],["conn.execute('select",{"_index":595,"t":{"67":{"position":[[161,20]]},"80":{"position":[[108,20]]}}}],["conn.execute>(sql",{"_index":680,"t":{"91":{"position":[[651,53]]}}}],["conn.query>('cal",{"_index":996,"t":{"146":{"position":[[1661,45]]},"150":{"position":[[1624,45]]}}}],["conn.query('drop",{"_index":991,"t":{"146":{"position":[[860,33],[1380,33]]},"150":{"position":[[823,33],[1343,33]]},"152":{"position":[[543,33]]},"156":{"position":[[580,33]]},"158":{"position":[[554,33]]},"164":{"position":[[517,33]]}}}],["conn.query(sql",{"_index":665,"t":{"87":{"position":[[460,32]]}}}],["conn.query(sql",{"_index":671,"t":{"89":{"position":[[349,34]]}}}],["conn.query('select",{"_index":648,"t":{"83":{"position":[[185,35]]}}}],["conn.query('show",{"_index":650,"t":{"83":{"position":[[321,33],[797,33]]}}}],["conn.query(sql",{"_index":655,"t":{"85":{"position":[[279,34]]}}}],["conn.query 45' ); console.log(results); // results contains rows returned by server console.log(fields); // fields contains extra meta data about results, if available } catch (err) { console.log(err); } // Using placeholders try { const [results] = await connection.query( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Page', 45] ); console.log(results); } catch (err) { console.log(err); } // Get the client const mysql = require('mysql2'); // Create the connection to database const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // A simple SELECT query connection.query( 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45', function (err, results, fields) { console.log(results); // results contains rows returned by server console.log(fields); // fields contains extra meta data about results, if available } ); // Using placeholders connection.query( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Page', 45], function (err, results) { console.log(results); } );","s":"First Query","u":"/node-mysql2/docs","h":"#first-query","p":5},{"i":12,"t":"With MySQL2 you also get the prepared statements. With prepared statements MySQL doesn't have to prepare plan for same query every time, this results in better performance. If you don't know why they are important, please check these discussions: How prepared statements can protect from SQL Injection attacks MySQL2 provides execute helper which will prepare and query the statement. You can also manually prepare / unprepare statement with prepare / unprepare methods. To explore more Prepared Statements and Placeholders examples, please visit the example section Prepared Statements. Promise Callback import mysql from 'mysql2/promise'; try { // create the connection to database const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // execute will internally call prepare and query const [results, fields] = await connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Rick C-137', 53] ); console.log(results); // results contains rows returned by server console.log(fields); // fields contains extra meta data about results, if available } catch (err) { console.log(err); } const mysql = require('mysql2'); // create the connection to database const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // execute will internally call prepare and query connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Rick C-137', 53], function (err, results, fields) { console.log(results); // results contains rows returned by server console.log(fields); // fields contains extra meta data about results, if available } ); tip If you execute same statement again, it will be picked from a LRU cache which will save query preparation time and give better performance.","s":"Using Prepared Statements","u":"/node-mysql2/docs","h":"#using-prepared-statements","p":5},{"i":14,"t":"Connection pools help reduce the time spent connecting to the MySQL server by reusing a previous connection, leaving them open instead of closing when you are done with them. This improves the latency of queries as you avoid all of the overhead that comes with establishing a new connection. To explore more Connection Pools examples, please visit the example section createPool. Promise Callback import mysql from 'mysql2/promise'; // Create the connection pool. The pool-specific settings are the defaults const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', waitForConnections: true, connectionLimit: 10, maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit` idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000 queueLimit: 0, enableKeepAlive: true, keepAliveInitialDelay: 0, }); const mysql = require('mysql2'); // Create the connection pool. The pool-specific settings are the defaults const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', waitForConnections: true, connectionLimit: 10, maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit` idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000 queueLimit: 0, enableKeepAlive: true, keepAliveInitialDelay: 0, }); note The pool does not create all connections upfront but creates them on demand until the connection limit is reached. You can use the pool in the same way as connections (using pool.query() and pool.execute()): Promise Callback try { // For pool initialization, see above const [rows, fields] = await pool.query('SELECT `field` FROM `table`'); // Connection is automatically released when query resolves } catch (err) { console.log(err); } // For pool initialization, see above pool.query('SELECT `field` FROM `table`', function (err, rows, fields) { // Connection is automatically released when query resolves }); Alternatively, there is also the possibility of manually acquiring a connection from the pool and returning it later: Promise Callback // For pool initialization, see above const conn = await pool.getConnection(); // Do something with the connection await conn.query(/* ... */); // Don't forget to release the connection when finished! pool.releaseConnection(conn); // For pool initialization, see above pool.getConnection(function (err, conn) { // Do something with the connection conn.query(/* ... */); // Don't forget to release the connection when finished! pool.releaseConnection(conn); }); Additionally, directly release the connection using the connection object: conn.release();","s":"Using Connection Pools","u":"/node-mysql2/docs","h":"#using-connection-pools","p":5},{"i":16,"t":"MySQL2 also support Promise API. Which works very well with ES7 async await. import mysql from 'mysql2/promise'; async function main() { // create the connection const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // query database const [rows, fields] = await connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Morty', 14] ); } MySQL2 use default Promise object available in scope. But you can choose which Promise implementation you want to use. // get the client import mysql from 'mysql2/promise'; // get the promise implementation, we will use bluebird import bluebird from 'bluebird'; // create the connection, specify bluebird as Promise const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', Promise: bluebird, }); // query database const [rows, fields] = await connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Morty', 14] ); MySQL2 also exposes a .promise() function on Pools, so you can create a promise/non-promise connections from the same pool. import mysql from 'mysql2'; async function main() { // create the pool const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', }); // now get a Promise wrapped instance of that pool const promisePool = pool.promise(); // query database using promises const [rows, fields] = await promisePool.query('SELECT 1'); } MySQL2 exposes a .promise() function on Connections, to \"upgrade\" an existing non-promise connection to use promise. const mysql = require('mysql2'); // create the connection const conn = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); conn .promise() .query('SELECT 1') .then(([rows, fields]) => { console.log(rows); }) .catch(console.log) .then(() => conn.end());","s":"Using Promise Wrapper","u":"/node-mysql2/docs","h":"#using-promise-wrapper","p":5},{"i":18,"t":"If you have two columns with the same name, you might want to get results as an array rather than an object to prevent them from clashing. This is a deviation from the Node MySQL library. For example: SELECT 1 AS `foo`, 2 AS `foo`. You can enable this setting at either the connection level (applies to all queries), or at the query level (applies only to that specific query). Connection Level​ Promise Callback const conn = await mysql.createConnection({ host: 'localhost', database: 'test', user: 'root', rowsAsArray: true, }); const conn = mysql.createConnection({ host: 'localhost', database: 'test', user: 'root', rowsAsArray: true, }); Query Level​ Promise Callback try { const [results, fields] = await conn.query({ sql: 'SELECT 1 AS `foo`, 2 AS `foo`', rowsAsArray: true, }); console.log(results); // in this query, results will be an array of arrays rather than an array of objects console.log(fields); // fields are unchanged } catch (err) { console.log(err); } conn.query( { sql: 'SELECT 1 AS `foo`, 2 AS `foo`', rowsAsArray: true, }, function (err, results, fields) { console.log(results); // in this query, results will be an array of arrays rather than an array of objects console.log(fields); // fields are unchanged } ); Getting Help Need help? Ask your question on Stack Overflow or GitHub. If you've encountered an issue, please file it on GitHub.","s":"Array Results","u":"/node-mysql2/docs","h":"#array-results","p":5},{"i":20,"t":"Want to improve something in MySQL2? Please check Contributing.md for detailed instruction on how to get started.","s":"Contributing","u":"/node-mysql2/docs/contributing","h":"","p":19},{"i":22,"t":"MySQL2 aims to be a drop in replacement for Node MySQL. note If you see any API incompatibilities with Node MySQL, please report via github issue. Not only MySQL2 offers better performance over Node MySQL, we also support these additional features: Prepared Statements Promise Wrapper Authentication Switch More Features MySQL Server Pooling SSL MySQL Compression Binary Log Protocol Client","s":"Documentation","u":"/node-mysql2/docs/documentation","h":"","p":21},{"i":24,"t":"Please check these examples for MySQL2.","s":"Examples","u":"/node-mysql2/docs/documentation","h":"#examples","p":21},{"i":26,"t":"zeroFill flag is ignored in type conversion. You need to check corresponding field's zeroFill flag and convert to string manually if this is of importance to you. DECIMAL and NEWDECIMAL types always returned as string unless you pass this config option: { decimalNumbers: true, } note This option could lose precision on the number as Javascript Number is a Float!","s":"Known incompatibilities with Node MySQL","u":"/node-mysql2/docs/documentation","h":"#known-incompatibilities-with-node-mysql","p":21},{"i":28,"t":"Wire protocol documentation Node MySQL - Most popular node.js mysql client library node-mariasql - Bindings to libmariasql. One of the fastest clients node-libmysqlclient - Bindings to libmysqlclient go-mysql - MySQL Go client (prepared statements, binlog protocol, server)","s":"Other Resources","u":"/node-mysql2/docs/documentation","h":"#other-resources","p":21},{"i":30,"t":"https://gist.github.com/sidorares/ffe9ee9c423f763e3b6b npm run benchmarks node-mysql-benchmarks try to run example benchmarks on your system","s":"Benchmarks","u":"/node-mysql2/docs/documentation","h":"#benchmarks","p":21},{"i":32,"t":"During the connection phase the server may ask the client to switch to a different auth method. If the authPlugins connection config option is set, it must be an object where each key is the name of a potential authentication plugin requested by the server, and the corresponding value must be a function that optionally receives the connection config options and returns another function, which in turn, optionally receives the switch request data. The plugin is loaded with a ({user,password,...}) signature, and each call has a (pluginData) signature. Each call should make the plugin return any additional authentication data (Buffer) that should be sent back to the server, either synchronously or asynchronously using a Promise, or should yield an error accordingly. Example: (imaginary ssh-key-auth plugin) pseudo code const conn = mysql.createConnection({ user: 'test_user', password: 'test', database: 'test_database', authPlugins: { 'ssh-key-auth': function ({ password }) { return function (pluginData) { return getPrivate(key) .then((key) => { const response = encrypt(key, password, pluginData); // continue handshake by sending response data return response; }) .catch((err) => { // throw error to propagate error to connect/changeUser handlers }); }; }, }, }); There is also a deprecated API where if a authSwitchHandler connection config option is set it must be a function that receives switch request data and responds via a callback. In this case, the first invocation always has a ({pluginName, pluginData}) signature, following calls - ({pluginData}). The client replies with an opaque blob matching the requested plugin via callback(null, data: Buffer). const conn = mysql.createConnection({ user: 'test_user', password: 'test', database: 'test_database', authSwitchHandler: function ({ pluginName, pluginData }, cb) { if (pluginName === 'ssh-key-auth') { getPrivateKey((key) => { const response = encrypt(key, pluginData); // continue handshake by sending response data // respond with error to propagate error to connect/changeUser handlers cb(null, response); }); } else { const err = new Error( `Unknown AuthSwitchRequest plugin name ${pluginName}` ); err.fatal = true; cb(err); } }, }); The initial handshake is always performed using mysql_native_password plugin. This will be possible to override in future versions. Note that if the mysql_native_password method is requested it will be handled internally according to Authentication::Native41 and no authPlugins function or the authSwitchHandler will be invoked. These MAY be called multiple times if the plugin algorithm requires multiple roundtrips of data exchange between client and server.","s":"Authentication Switch Request","u":"/node-mysql2/docs/documentation/authentication-switch","h":"","p":31},{"i":34,"t":"If the user requires multi-factor authentication in the server, the client will receive a AuthNextFactor request, which is similar in structure to the regular authentication switch request and contains the name and possible initial data for the additional authentication factor plugin (up to 3). Additional passwords can be provided using the connection config options - password2 and password3. Again, for each authentication factor, multiple roundtrips of data exchange can be required by the plugin algoritm. const conn = mysql.createConnection({ user: 'test_user', password: 'secret1', password2: 'secret2', password3: 'secret3', database: 'test_database', authPlugins: { // password1 === password 'auth-plugin1': function ({ password1 }) { return function (serverPluginData) { return clientPluginData(password1, serverPluginData); }; }, 'auth-plugin2': function ({ password2 }) { return function (serverPluginData) { return clientPluginData(password2, serverPluginData); }; }, 'auth-plugin3': function ({ password3 }) { return function (serverPluginData) { return clientPluginData(password3, serverPluginData); }; }, }, });","s":"Multi-factor authentication","u":"/node-mysql2/docs/documentation/authentication-switch","h":"#multi-factor-authentication","p":31},{"i":36,"t":"This website is built using Docusaurus 3, a modern static website generator.","s":"Website Contributing Guidelines","u":"/node-mysql2/docs/contributing/website","h":"","p":35},{"i":38,"t":"You will need these tools installed on your system: Node.js (18.x or higher)","s":"Environment","u":"/node-mysql2/docs/contributing/website","h":"#environment","p":35},{"i":40,"t":"Fork the MySQL2 repository. Download your forked repository locally. The website's workspace is the \"website\" directory in node-mysql2 root. Create a new branch from master (optional). Run cd website to enter the website workspace. Run npm ci to install the dependecies from package-lock.json. Run npm start to starting the local development. It will start a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. For Docusaurus complete documentation, please see here. CLI example git clone https://github.com/sidorares/node-mysql2.git git checkout -b website # optional cd /path-to/node-mysql2/website npm ci npm start Documentation is auto-generated from MDX files placed in these directories: ./docs/documentation ./docs/examples ./docs/faq Caution Note that the website has its own package.json. Please, do not install dependencies for the website in node-mysql2 root.","s":"Development","u":"/node-mysql2/docs/contributing/website","h":"#development","p":35},{"i":42,"t":"Every extra component is thoroughly documented with complete typings descriptions. Docusaurus Markdown Features: The MDX compiler transforms Markdown files to React components, and allows you to use JSX in your Markdown content. This enables you to easily interleave React components within your content, and create delightful learning experiences.","s":"Extras Components","u":"/node-mysql2/docs/contributing/website","h":"#extras-components","p":35},{"i":44,"t":"The History component displays version changes in a table format, listing version numbers alongside their changes. import { History } from '@site/src/components/History'; tip You can also utilize React components in the changes option. Example History Version Changes v1.0.0 Some change message.","s":"History","u":"/node-mysql2/docs/contributing/website","h":"#history","p":35},{"i":46,"t":"See the Stability Badges for more detais. import { Stability } from '@site/src/components/Stability'; tip You can also utilize React components in the message option. Available levels: 0, 1, 1.1, 1.2, 2 and 3. Example 2Stable 2Stable Some message.","s":"Stability","u":"/node-mysql2/docs/contributing/website","h":"#stability","p":35},{"i":48,"t":"import { FAQ } from '@site/src/components/FAQ'; > Some markdown (**MDX**) content. tip The FAQ component can be utilized in any section or page. Code blocks are compatible and can be used within the FAQ component. Example Title Some markdown (MDX) content.","s":"FAQ","u":"/node-mysql2/docs/contributing/website","h":"#faq","p":35},{"i":50,"t":"import { ExternalCodeEmbed } from '@site/src/components/ExternalCodeEmbed'; Example","s":"ExternalCodeEmbed","u":"/node-mysql2/docs/contributing/website","h":"#externalcodeembed","p":35},{"i":52,"t":"npm run test Check Prettier and ESLint rules for compliance npm run lintcheck Included in the GitHub Actions workflow. Check for typings errors 1Experimental Checks for MDX components are missing. npm run typecheck Included in the GitHub Actions workflow. Clear and build the website npm run clear npm run build Included in the GitHub Actions workflow. Fix issues from Prettier and ESLint rules npm run lint To prevent lint issues, it is recommended to execute this command before creating your commit. Not included in the GitHub Actions workflow.","s":"Running Tests","u":"/node-mysql2/docs/contributing/website","h":"#running-tests","p":35},{"i":55,"t":"createServer() - creates server instance Server.listen - listen port / unix socket (same arguments as net.Server.listen)","s":"Server","u":"/node-mysql2/docs/documentation/mysql-server","h":"#server","p":53},{"i":57,"t":"connect new incoming connection.","s":"Events","u":"/node-mysql2/docs/documentation/mysql-server","h":"#events","p":53},{"i":59,"t":"serverHandshake({ serverVersion, protocolVersion, connectionId, statusFlags, characterSet, capabilityFlags }) send server handshake initialisation packet, wait handshake response and start listening for commands writeOk({ affectedRows: num, insertId: num }) send OK packet to client writeEof(warnings, statusFlags) send EOF packet writeTextResult(rows, fields) write query result to client. Rows and fields are in the same format as in connection.query callback. writeColumns(fields) write fields + EOF packets. writeTextRow(row) write array (not hash!) of values as result row TODO: binary protocol","s":"Connection","u":"/node-mysql2/docs/documentation/mysql-server","h":"#connection","p":53},{"i":61,"t":"Every command packet received by the server will be emitted as a packet event with the parameters: packet: Packet The packet itself knownCommand: boolean is this command known to the server *commandCode: number the parsed command code (first byte) In addition special events are emitted for commands received from the client. If no listener is present a fallback behavior will be invoked. quit() Default: close the connection init_db(schemaName: string) Default: return OK query(sql: string) Please attach a listener to this. Default: return HA_ERR_INTERNAL_ERROR field_list(table: string, fields: string) Default: return ER_WARN_DEPRECATED_SYNTAX ping() - Default: return OK","s":"Events","u":"/node-mysql2/docs/documentation/mysql-server","h":"#events-1","p":53},{"i":64,"t":"Similar to connection.query(). connection.execute('select 1 + ? + ? as result', [5, 6], (err, rows) => { // rows: [ { result: 12 } ] // internally 'select 1 + ? + ? as result' is prepared first. On subsequent calls cached statement is re-used }); // close cached statement for 'select 1 + ? + ? as result'. noop if not in cache connection.unprepare('select 1 + ? + ? as result'); Note that connection.execute() will cache the prepared statement for better performance, remove the cache with connection.unprepare() when you're done.","s":"Automatic creation, cached and re-used by connection","u":"/node-mysql2/docs/documentation/prepared-statements","h":"#automatic-creation-cached-and-re-used-by-connection","p":62},{"i":66,"t":"Manually prepared statements doesn't comes with LRU cache and SHOULD be closed using statement.close() instead of connection.unprepare(). connection.prepare('select ? + ? as tests', (err, statement) => { // statement.parameters - array of column definitions, length === number of params, here 2 // statement.columns - array of result column definitions. Can be empty if result schema is dynamic / not known // statement.id // statement.query statement.execute([1, 2], (err, rows, columns) => { // -> [ { tests: 3 } ] }); // don't use connection.unprepare(), it won't work! // note that there is no callback here. There is no statement close ack at protocol level. statement.close(); }); Note that you should not use statement after connection reset (changeUser() or disconnect). Statement scope is connection, you need to prepare statement for each new connection in order to use it.","s":"Manual prepare / execute","u":"/node-mysql2/docs/documentation/prepared-statements","h":"#manual-prepare--execute","p":62},{"i":68,"t":"maxPreparedStatements : We keep the cached statements in a lru-cache. Default size is 16000 but you can use this option to override it. Any statements that are dropped from cache will be closed.","s":"Configuration","u":"/node-mysql2/docs/documentation/prepared-statements","h":"#configuration","p":62},{"i":70,"t":"The bind parameter values passed to execute are serialized JS -> MySQL as: null -> NULL number -> DOUBLE boolean -> TINY (0 for false, 1 for true) object -> depending on prototype: Date -> DATETIME JSON like object - JSON Buffer -> VAR_STRING Other -> VAR_STRING Passing in undefined or a function will result in an error.","s":"Serialization of bind parameters","u":"/node-mysql2/docs/documentation/prepared-statements","h":"#serialization-of-bind-parameters","p":62},{"i":72,"t":"MySQL2 provides execute helper which will prepare and query the statement. You can also manually prepare / unprepare statement with prepare / unprepare methods. connection.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [1, null, 3], (err, rows, fields) => { console.log(err, rows, fields); connection.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [3, null, 3], (err, rows, fields) => { console.log(err, rows, fields); connection.unprepare('select ?+1 as qqq, ? as rrr, ? as yyy'); connection.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [3, null, 3], (err, rows, fields) => { console.log(err, rows, fields); } ); } ); } );","s":"Prepared Statements Helper","u":"/node-mysql2/docs/documentation/prepared-statements","h":"#prepared-statements-helper","p":62},{"i":74,"t":"For Prepared Statements examples, please see here.","s":"Examples","u":"/node-mysql2/docs/documentation/prepared-statements","h":"#examples","p":62},{"i":77,"t":"You can use named placeholders for parameters by setting namedPlaceholders config value or query/execute time option. Named placeholders are converted to unnamed ? on the client (mysql protocol does not support named parameters). If you reference parameter multiple times under the same name it is sent to server multiple times. Unnamed placeholders can still be used by providing the values as an array instead of an object. connection.config.namedPlaceholders = true; connection.execute('select :x + :y as z', { x: 1, y: 2 }, (err, rows) => { // statement prepared as \"select ? + ? as z\" and executed with [1,2] values // rows returned: [ { z: 3 } ] }); connection.execute('select :x + :x as z', { x: 1 }, (err, rows) => { // select ? + ? as z, execute with [1, 1] }); connection.query('select :x + :x as z', { x: 1 }, (err, rows) => { // query select 1 + 1 as z }); // unnamed placeholders are still valid if the values are provided in an array connection.query('select ? + ? as z', [1, 1], (err, rows) => { // query select 1 + 1 as z });","s":"Named placeholders","u":"/node-mysql2/docs/documentation/extras","h":"#named-placeholders","p":75},{"i":79,"t":"const options = { sql: 'select A,B,C,D from foo', rowsAsArray: true }; connection.query(options, (err, results) => { /* results will be an array of arrays like this now: [[ 'field A value', 'field B value', 'field C value', 'field D value', ], ...] */ });","s":"Receiving rows as array of columns instead of hash with column name as key:","u":"/node-mysql2/docs/documentation/extras","h":"#receiving-rows-as-array-of-columns-instead-of-hash-with-column-name-as-key","p":75},{"i":81,"t":"In addition to sending local fs files you can send any stream using infileStreamFactory query option. If set, it has to be a function that return a readable stream. It gets file path from query as a parameter. Note: starting from version 2.0 infileStreamFactory is required parameter for LOAD DATA LOCAL INFILE. Response from server indicates that it wants access to a local file and no infileStreamFactory option is provided the query ends with error. // local file connection.query( 'LOAD DATA LOCAL INFILE \"/tmp/data.csv\" INTO TABLE test FIELDS TERMINATED BY ? (id, title)', onInserted1 ); // local stream const sql = 'LOAD DATA LOCAL INFILE \"mystream\" INTO TABLE test FIELDS TERMINATED BY ? (id, title)'; connection.query( { sql: sql, infileStreamFactory: function (path) { return getStream(); }, }, onInserted2 ); The infileStreamFactory option may also be set at a connection-level: const fs = require('fs'); const mysql = require('mysql2'); const connection = mysql.createConnection({ user: 'test', database: 'test', infileStreamFactory: (path) => { // Validate file path const validPaths = ['/tmp/data.csv']; if (!validPaths.includes(path)) { throw new Error( `invalid file path: ${path}: expected to be one of ${validPaths.join( ',' )}` ); } return fs.createReadStream(path); }, }); connection.query( 'LOAD DATA LOCAL INFILE \"/tmp/data.csv\" INTO TABLE test', onInserted );","s":"Sending tabular data with 'load infile' and local stream:","u":"/node-mysql2/docs/documentation/extras","h":"#sending-tabular-data-with-load-infile-and-local-stream","p":75},{"i":83,"t":"const net = require('net'); const mysql = require('mysql2'); const shape = require('shaper'); const connection = mysql.createConnection({ user: 'test', database: 'test', stream: net.connect('/tmp/mysql.sock').pipe(shape(10)), // emulate 10 bytes/sec link }); connection.query('SELECT 1+1 as test1', console.log); stream also can be a function. In that case function result has to be duplex stream, and it is used for connection transport. This is required if you connect pool using custom transport as new pooled connection needs new stream. Example connecting over socks5 proxy: const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const pool = mysql.createPool({ database: 'test', user: 'foo', password: 'bar', stream: function (cb) { const newStream = new SocksConnection( { host: 'remote.host', port: 3306 }, { host: 'localhost', port: 1080 } ); cb(null, newStream); }, }); In addition to password createConnection(), createPool() and changeUser() accept passwordSha1 option. This is useful when implementing proxies as plaintext password might be not available.","s":"Connecting using custom stream:","u":"/node-mysql2/docs/documentation/extras","h":"#connecting-using-custom-stream","p":75},{"i":85,"t":"In addition to errback interface there is thin wrapper to expose Promise-based api","s":"Promise Wrappers","u":"/node-mysql2/docs/documentation/promise-wrapper","h":"","p":84},{"i":87,"t":"/* eslint-env es6 */ const mysql = require('mysql2/promise'); // or require('mysql2').createConnectionPromise mysql .createConnection({ /* same parameters as for non-promise createConnection */ }) .then((conn) => conn.query('select foo from bar')) .then(([rows, fields]) => console.log(rows[0].foo)); const pool = require('mysql2/promise').createPool({}); // or require('mysql2').createPoolPromise({}) or require('mysql2').createPool({}).promise() pool .getConnection() .then((conn) => { const res = conn.query('select foo from bar'); conn.release(); return res; }) .then((result) => { console.log(result[0][0].foo); }) .catch((err) => { console.log(err); // any of connection time or query time errors from above });","s":"Basic Promise","u":"/node-mysql2/docs/documentation/promise-wrapper","h":"#basic-promise","p":84},{"i":89,"t":"async function example1() { const mysql = require('mysql2/promise'); const conn = await mysql.createConnection({ database: test }); const [rows, fields] = await conn.execute('select ?+? as sum', [2, 2]); await conn.end(); } async function example2() { const mysql = require('mysql2/promise'); const pool = mysql.createPool({ database: test }); // execute in parallel, next console.log in 3 seconds await Promise.all([ pool.query('select sleep(2)'), pool.query('select sleep(3)'), ]); console.log('3 seconds after'); await pool.end(); }","s":"ES7 Async Await","u":"/node-mysql2/docs/documentation/promise-wrapper","h":"#es7-async-await","p":84},{"i":91,"t":"const mysql = require('mysql2'); const co = require('co'); co(function* () { const c = yield mysql.createConnectionPromise({ user: 'root', namedPlaceholders: true, }); const rows = yield c.query('show databases'); console.log(rows); console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 })); yield c.end(); }); Examples in /examples/promise-co-await","s":"With CO","u":"/node-mysql2/docs/documentation/promise-wrapper","h":"#with-co","p":84},{"i":94,"t":"npm install --save mysql2 npm install --save-dev @types/node The @types/node ensure the proper interaction between TypeScript and the Node.js modules used by MySQL2 (net, events, stream, tls, etc.). info Requires TypeScript >=4.5.2.","s":"Installation","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#installation","p":92},{"i":96,"t":"You can import MySQL2 in two ways: By setting the esModuleInterop option to true in tsconfig.json import mysql from 'mysql2'; import mysql from 'mysql2/promise'; By setting the esModuleInterop option to false in tsconfig.json import * as mysql from 'mysql2'; import * as mysql from 'mysql2/promise';","s":"Usage","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#usage","p":92},{"i":98,"t":"import mysql, { ConnectionOptions } from 'mysql2'; const access: ConnectionOptions = { user: 'test', database: 'test', }; const conn = mysql.createConnection(access);","s":"Connection","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#connection","p":92},{"i":100,"t":"import mysql, { PoolOptions } from 'mysql2'; const access: PoolOptions = { user: 'test', database: 'test', }; const conn = mysql.createPool(access);","s":"Pool Connection","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#pool-connection","p":92},{"i":102,"t":"A simple query​ conn.query('SELECT 1 + 1 AS `test`;', (_err, rows) => { /** * @rows: [ { test: 2 } ] */ }); conn.execute('SELECT 1 + 1 AS `test`;', (_err, rows) => { /** * @rows: [ { test: 2 } ] */ }); The rows output will be these possible types: RowDataPacket[] RowDataPacket[][] ResultSetHeader ResultSetHeader[] ProcedureCallPacket In this example, you need to manually check the output types","s":"Query and Execute","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#query-and-execute","p":92},{"i":105,"t":"2Stable An array with the returned rows, for example: import mysql, { RowDataPacket } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', }); // SELECT conn.query('SELECT 1 + 1 AS `test`;', (_err, rows) => { console.log(rows); /** * @rows: [ { test: 2 } ] */ }); // SHOW conn.query('SHOW TABLES FROM `test`;', (_err, rows) => { console.log(rows); /** * @rows: [ { Tables_in_test: 'test' } ] */ }); Using rowsAsArray option as true: import mysql, { RowDataPacket } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', rowsAsArray: true, }); // SELECT conn.query( 'SELECT 1 + 1 AS test, 2 + 2 AS test;', (_err, rows) => { console.log(rows); /** * @rows: [ [ 2, 4 ] ] */ } ); // SHOW conn.query('SHOW TABLES FROM `test`;', (_err, rows) => { console.log(rows); /** * @rows: [ [ 'test' ] ] */ });","s":"RowDataPacket[]","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#rowdatapacket","p":92},{"i":107,"t":"2Stable Using multipleStatements option as true with multiple queries: import mysql, { RowDataPacket } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', multipleStatements: true, }); const sql = ` SELECT 1 + 1 AS test; SELECT 2 + 2 AS test; `; conn.query(sql, (_err, rows) => { console.log(rows); /** * @rows: [ [ { test: 2 } ], [ { test: 4 } ] ] */ });","s":"RowDataPacket[][]","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#rowdatapacket-1","p":92},{"i":109,"t":"2Stable History Version Changes v3.5.1 OkPacket is deprecated and might be removed in the future major release. Please use ResultSetHeader instead. changedRows option is deprecated and might be removed in the future major release. Please use affectedRows instead. For INSERT, UPDATE, DELETE, TRUNCATE, etc.: import mysql, { ResultSetHeader } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', }); const sql = ` SET @1 = 1; `; conn.query(sql, (_err, result) => { console.log(result); /** * @result: ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } */ });","s":"ResultSetHeader","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#resultsetheader","p":92},{"i":111,"t":"2Stable History Version Changes v3.5.1 Introduce ResultSetHeader[] For multiples INSERT, UPDATE, DELETE, TRUNCATE, etc. when using multipleStatements as true: import mysql, { ResultSetHeader } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', multipleStatements: true, }); const sql = ` SET @1 = 1; SET @2 = 2; `; conn.query(sql, (_err, results) => { console.log(results); /** * @results: [ ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 10, warningStatus: 0, changedRows: 0 }, ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } ] */ });","s":"ResultSetHeader[]","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#resultsetheader-1","p":92},{"i":113,"t":"2Stable History Version Changes v3.5.1 Introduce ProcedureCallPacket tip By performing a Call Procedure using INSERT, UPDATE, etc., the return will be a ProcedureCallPacket (even if you perform multiples queries and set multipleStatements to true): import mysql, { ProcedureCallPacket, ResultSetHeader } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', }); /** ResultSetHeader */ conn.query('DROP PROCEDURE IF EXISTS myProcedure'); /** ResultSetHeader */ conn.query(` CREATE PROCEDURE myProcedure() BEGIN SET @1 = 1; SET @2 = 2; END `); /** ProcedureCallPacket */ const sql = 'CALL myProcedure()'; conn.query>(sql, (_err, result) => { console.log(result); /** * @result: ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } */ }); For CREATE PROCEDURE and DROP PROCEDURE, these returns will be the default ResultSetHeader. By using SELECT and SHOW queries in a Procedure Call, it groups the results as: /** ProcedureCallPacket */ [RowDataPacket[], ResultSetHeader] For ProcedureCallPacket, please see the following examples.","s":"ProcedureCallPacket","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#procedurecallpacket","p":92},{"i":115,"t":"0Deprecated OkPacket is deprecated and might be removed in the future major release. Please use ResultSetHeader instead.","s":"OkPacket","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#okpacket","p":92},{"i":117,"t":"You can also check some code examples using MySQL2 and TypeScript to understand advanced concepts: Extending and using Interfaces with RowDataPacket Extending and using Interfaces with RowDataPacket and rowAsArray Extending and using Interfaces with RowDataPacket and multipleStatements Extending and using Interfaces with RowDataPacket, rowAsArray and multipleStatements Checking for ResultSetHeader, extending and using Interfaces with RowDataPacket from ProcedureCallPacket Checking for ResultSetHeader, extending and using Interfaces with RowDataPacket and rowAsArray from ProcedureCallPacket Creating a basic custom MySQL2 Class","s":"Examples","u":"/node-mysql2/docs/documentation/typescript-examples","h":"#examples","p":92},{"i":119,"t":"tip To explore the examples, please use the sidebar navigation on desktop or access the menu on mobile devices.","s":"Examples","u":"/node-mysql2/docs/examples","h":"","p":118},{"i":121,"t":"MySQL-pg-proxy - MySQL to Postgres proxy server. MySQLite.js - MySQL server with JS-only (emscripten compiled) sqlite backend. SQL-engine - MySQL server with LevelDB backend. MySQL-osquery-proxy - Connect to facebook osquery using MySQL client PlyQL - Connect to Druid using MySQL client","s":"Examples using MySQL server API","u":"/node-mysql2/docs/examples","h":"#examples-using-mysql-server-api","p":118},{"i":123,"t":"info For queries please see the Simple Queries and Prepared Statements examples.","s":"createConnection","u":"/node-mysql2/docs/examples/connections/create-connection","h":"","p":122},{"i":125,"t":"createConnection(connectionUri: string) promise.js callback.js import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection( 'mysql://root:password@localhost:3306/test' ); } catch (err) { console.log(err); } const mysql = require('mysql2'); const connection = mysql.createConnection( 'mysql://root:password@localhost:3306/test' ); connection.addListener('error', (err) => { console.log(err); });","s":"createConnection(connectionUri)","u":"/node-mysql2/docs/examples/connections/create-connection","h":"#createconnectionconnectionuri","p":122},{"i":127,"t":"createConnection(config: ConnectionOptions) promise.js callback.js import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', // port: 3306, // password: '', }); } catch (err) { console.log(err); } const mysql = require('mysql2'); const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', // port: 3306, // password: '', }); connection.addListener('error', (err) => { console.log(err); });","s":"createConnection(config)","u":"/node-mysql2/docs/examples/connections/create-connection","h":"#createconnectionconfig","p":122},{"i":129,"t":"createConnection(config: ConnectionOptions) promise.js callback.js import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ // ... passwordSha1: Buffer.from( '8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex' ), }); } catch (err) { console.log(err); } const mysql = require('mysql2'); const connection = mysql.createConnection({ // ... passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'), }); connection.addListener('error', (err) => { console.log(err); });","s":"createConnection(config) — SHA1","u":"/node-mysql2/docs/examples/connections/create-connection","h":"#createconnectionconfig--sha1","p":122},{"i":131,"t":"createConnection(config: ConnectionOptions) promise.js callback.js certs/ca-cert.pem import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ // ... ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); } catch (err) { console.log(err); } const mysql = require('mysql2'); const connection = mysql.createConnection({ // ... ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); connection.addListener('error', (err) => { console.log(err); }); See ssl/certs.","s":"createConnection(config) — SSL","u":"/node-mysql2/docs/examples/connections/create-connection","h":"#createconnectionconfig--ssl","p":122},{"i":133,"t":"createConnection(config: ConnectionOptions) You can use Amazon RDS string as value to ssl property to connect to Amazon RDS MySQL over SSL. In that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used: promise.js callback.js import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ // ... host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); } catch (err) { console.log(err); } Testing try { const [res] = await connection.query('SHOW `status` LIKE \"Ssl_cipher\"'); await connection.end(); console.log(res); } catch (err) { console.log(err); } const mysql = require('mysql2'); const connection = mysql.createConnection({ // ... host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); connection.addListener('error', (err) => { console.log(err); }); Testing connectionquery('SHOW `status` LIKE \"Ssl_cipher\"', function (err, res) { connection.end(); if (err instanceof Error) { console.log(err); return; } console.log(res); });","s":"createConnection(config) — RDS SSL","u":"/node-mysql2/docs/examples/connections/create-connection","h":"#createconnectionconfig--rds-ssl","p":122},{"i":135,"t":"Issues #2130 — Update TLS certs for Amazon RDS instances Pull Requests #2119 — fix: make startTls code compatible with Bun #2131 — Update Amazon RDS SSL CA cert","s":"Related Links","u":"/node-mysql2/docs/examples/connections/create-connection","h":"#related-links","p":122},{"i":137,"t":"createConnection(config: ConnectionOptions) A.js B.js const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const socksProxy = new SocksConnection({ port: 3306 }); const connection = mysql.createConnection({ stream: socksProxy, }); connection.addListener('error', (err) => { console.log(err); }); const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const connection = mysql.createConnection({ debug: 1, stream: function () { return new SocksConnection({ port: 3306 }); }, }); connection.addListener('error', (err) => { console.log(err); }); Testing connection.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); }); connection.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); }); connection.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); });","s":"createConnection(config) — Socks","u":"/node-mysql2/docs/examples/connections/create-connection","h":"#createconnectionconfig--socks","p":122},{"i":140,"t":"ConnectionOptions Specification","s":"ConnectionOptions","u":"/node-mysql2/docs/examples/connections/create-connection","h":"#connectionoptions","p":122},{"i":142,"t":"index.js 'use strict'; const mysql = require('mysql2'); const through2 = require('through2'); const binlogStream = mysql.createBinlogStream({ serverId: 123, // slave ID, first field in \"show slave hosts\" sql response // you can also specify slave host, username, password and port masterId: 0, filename: 'mysql-bin.000007', binlogPos: 120, flags: 1, // 1 = \"non-blocking mode\" }); binlogStream.pipe( through2.obj((obj, enc, next) => { console.log(obj); next(); }) );","s":"Binlog Watcher","u":"/node-mysql2/docs/examples/binlog-watcher","h":"","p":141},{"i":144,"t":"info For queries please see the Simple Queries and Prepared Statements examples.","s":"createPool","u":"/node-mysql2/docs/examples/connections/create-pool","h":"","p":143},{"i":146,"t":"createPool(connectionUri: string) promise.js callback.js import mysql from 'mysql2/promise'; try { const pool = mysql.createPool('mysql://root:password@localhost:3306/test'); const connection = await pool.getConnection(); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const pool = mysql.createPool('mysql://root:password@localhost:3306/test'); pool.getConnection(function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); warning Don't forget to release the connection when finished by using: pool.releaseConnection(connection) connection.release()","s":"createPool(connectionUri)","u":"/node-mysql2/docs/examples/connections/create-pool","h":"#createpoolconnectionuri","p":143},{"i":148,"t":"createPool(config: PoolOptions) promise.js callback.js import mysql from 'mysql2/promise'; try { const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', // port: 3306, // password: '', }); const connection = await pool.getConnection(); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', // port: 3306, // password: '', }); pool.getConnection(function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); warning Don't forget to release the connection when finished by using: pool.releaseConnection(connection) connection.release()","s":"createPool(config)","u":"/node-mysql2/docs/examples/connections/create-pool","h":"#createpoolconfig","p":143},{"i":150,"t":"createPool(config: PoolOptions) promise.js callback.js import mysql from 'mysql2/promise'; try { const pool = mysql.createPool({ // ... passwordSha1: Buffer.from( '8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex' ), }); const connection = await pool.getConnection(); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const pool = mysql.createPool({ // ... passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'), }); pool.getConnection(function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); warning Don't forget to release the connection when finished by using: pool.releaseConnection(connection) connection.release()","s":"createPool(config) — SHA1","u":"/node-mysql2/docs/examples/connections/create-pool","h":"#createpoolconfig--sha1","p":143},{"i":152,"t":"createPool(config: PoolOptions) promise.js callback.js certs/ca-cert.pem import mysql from 'mysql2/promise'; try { const pool = mysql.createPool({ // ... ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); const connection = await pool.getConnection(); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const pool = mysql.createPool({ // ... ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); pool.getConnection(function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); See ssl/certs. warning Don't forget to release the connection when finished by using: pool.releaseConnection(connection) connection.release()","s":"createPool(config) — SSL","u":"/node-mysql2/docs/examples/connections/create-pool","h":"#createpoolconfig--ssl","p":143},{"i":154,"t":"createPool(config: PoolOptions) You can use Amazon RDS string as value to ssl property to connect to Amazon RDS MySQL over SSL. In that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used: promise.js callback.js import mysql from 'mysql2/promise'; try { const pool = mysql.createPool({ // ... host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); const connection = await pool.getConnection(); // ... some query connection.release(); } catch (err) { console.log(err); } Testing try { const [res] = await connection.query('SHOW `status` LIKE \"Ssl_cipher\"'); await pool.end(); console.log(res); } catch (err) { console.log(err); } const mysql = require('mysql2'); const pool = mysql.createPool({ // ... host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); pool.getConnection(function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); Testing connectionquery('SHOW `status` LIKE \"Ssl_cipher\"', function (err, res) { pool.end(); if (err instanceof Error) { console.log(err); return; } console.log(res); }); warning Don't forget to release the connection when finished by using: pool.releaseConnection(connection) connection.release()","s":"createPool(config) — RDS SSL","u":"/node-mysql2/docs/examples/connections/create-pool","h":"#createpoolconfig--rds-ssl","p":143},{"i":156,"t":"Issues #2130 — Update TLS certs for Amazon RDS instances Pull Requests #2119 — fix: make startTls code compatible with Bun #2131 — Update Amazon RDS SSL CA cert","s":"Related Links","u":"/node-mysql2/docs/examples/connections/create-pool","h":"#related-links","p":143},{"i":158,"t":"createPool(config: PoolOptions) A.js B.js const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const socksProxy = new SocksConnection({ port: 3306 }); const pool = mysql.createPool({ stream: socksProxy, }); const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const pool = mysql.createPool({ debug: 1, stream: function () { return new SocksConnection({ port: 3306 }); }, }); Testing pool.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); }); pool.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); }); pool.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); });","s":"createPool(config) — Socks","u":"/node-mysql2/docs/examples/connections/create-pool","h":"#createpoolconfig--socks","p":143},{"i":161,"t":"PoolOptions extends all options from ConnectionOptions: ConnectionOptions Specification PoolOptions Specification","s":"PoolOptions","u":"/node-mysql2/docs/examples/connections/create-pool","h":"#pooloptions","p":143},{"i":163,"t":"info For queries please see the Simple Queries and Prepared Statements examples.","s":"createPoolCluster","u":"/node-mysql2/docs/examples/connections/createPoolCluster","h":"","p":162},{"i":165,"t":"add(group: string, connectionUri: string) promise.js callback.js import mysql from 'mysql2/promise'; try { const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', 'mysql://root:password@localhost:3306/test'); // poolCluster.add('clusterB', '...'); const connection = await poolCluster.getConnection('clusterA'); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', 'mysql://root:password@localhost:3306/test'); // poolCluster.add('clusterB', '...'); poolCluster.getConnection('clusterA', function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); warning Don't forget to release the connection when finished by using: connection.release()","s":"add(group, connectionUri)","u":"/node-mysql2/docs/examples/connections/createPoolCluster","h":"#addgroup-connectionuri","p":162},{"i":167,"t":"add(group: string, config: PoolOptions) promise.js callback.js import mysql from 'mysql2/promise'; try { const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { host: 'localhost', user: 'root', database: 'test', // port: 3306, // password: '', }); // poolCluster.add('clusterB', '...'); const connection = await poolCluster.getConnection('clusterA'); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { host: 'localhost', user: 'root', database: 'test', // port: 3306, // password: '', }); // poolCluster.add('clusterB', '...'); poolCluster.getConnection('clusterA', function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); warning Don't forget to release the connection when finished by using: connection.release()","s":"add(group, config)","u":"/node-mysql2/docs/examples/connections/createPoolCluster","h":"#addgroup-config","p":162},{"i":169,"t":"add(group: string, config: PoolOptions) promise.js callback.js import mysql from 'mysql2/promise'; try { const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { // ... passwordSha1: Buffer.from( '8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex' ), }); // poolCluster.add('clusterB', '...'); const connection = await poolCluster.getConnection('clusterA'); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { // ... passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'), }); // poolCluster.add('clusterB', '...'); poolCluster.getConnection('clusterA', function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); warning Don't forget to release the connection when finished by using: connection.release()","s":"add(group, config) — SHA1","u":"/node-mysql2/docs/examples/connections/createPoolCluster","h":"#addgroup-config--sha1","p":162},{"i":171,"t":"add(group: string, config: PoolOptions) promise.js callback.js certs/ca-cert.pem import mysql from 'mysql2/promise'; try { const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { // ... ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); // poolCluster.add('clusterB', '...'); const connection = await poolCluster.getConnection('clusterA'); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { // ... ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); // poolCluster.add('clusterB', '...'); poolCluster.getConnection('clusterA', function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); See ssl/certs. warning Don't forget to release the connection when finished by using: connection.release()","s":"add(group, config) — SSL","u":"/node-mysql2/docs/examples/connections/createPoolCluster","h":"#addgroup-config--ssl","p":162},{"i":173,"t":"add(group: string, config: PoolOptions) You can use Amazon RDS string as value to ssl property to connect to Amazon RDS MySQL over SSL. In that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used: promise.js callback.js import mysql from 'mysql2/promise'; try { const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { // ... host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); // poolCluster.add('clusterB', '...'); const connection = await poolCluster.getConnection('clusterA'); // ... some query connection.release(); } catch (err) { console.log(err); } Testing try { const [res] = await connection.query('SHOW `status` LIKE \"Ssl_cipher\"'); await poolCluster.end(); console.log(res); } catch (err) { console.log(err); } const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { // ... host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); // poolCluster.add('clusterB', '...'); poolCluster.getConnection('clusterA', function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); Testing connectionquery('SHOW `status` LIKE \"Ssl_cipher\"', function (err, res) { poolCluster.end(); if (err instanceof Error) { console.log(err); return; } console.log(res); }); warning Don't forget to release the connection when finished by using: connection.release()","s":"add(group, config) — RDS SSL","u":"/node-mysql2/docs/examples/connections/createPoolCluster","h":"#addgroup-config--rds-ssl","p":162},{"i":175,"t":"Issues #2130 — Update TLS certs for Amazon RDS instances Pull Requests #2119 — fix: make startTls code compatible with Bun #2131 — Update Amazon RDS SSL CA cert","s":"Related Links","u":"/node-mysql2/docs/examples/connections/createPoolCluster","h":"#related-links","p":162},{"i":177,"t":"add(group: string, config: PoolOptions) A.js B.js const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const socksProxy = new SocksConnection({ port: 3306 }); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { stream: socksProxy, }); // poolCluster.add('clusterB', '...'); const poolNamespace = poolCluster.of('clusterA'); const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { debug: 1, stream: function () { return new SocksConnection({ port: 3306 }); }, }); // poolCluster.add('clusterB', '...'); const poolNamespace = poolCluster.of('clusterA'); Testing poolNamespace.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); }); poolNamespace.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); }); poolNamespace.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); });","s":"add(group, config) — Socks","u":"/node-mysql2/docs/examples/connections/createPoolCluster","h":"#addgroup-config--socks","p":162},{"i":180,"t":"PoolOptions extends all options from ConnectionOptions: ConnectionOptions Specification PoolOptions Specification","s":"PoolOptions","u":"/node-mysql2/docs/examples/connections/createPoolCluster","h":"#pooloptions","p":162},{"i":182,"t":"MySQL2 provides execute helper which will prepare and query the statement. You can also manually prepare / unprepare statement with prepare / unprepare methods. See detailed documentaion in Prepared Statements. tip If you execute same statement again, it will be picked form a LRU cache which will save query preparation time and give better performance. Usage examples: INSERT SELECT UPDATE DELETE","s":"Prepared Statements","u":"/node-mysql2/docs/examples/queries/prepared-statements","h":"","p":181},{"i":184,"t":"await.js co.js .babelrc package.json 'use strict'; const mysql = require('mysql2/promise'); async function test() { const c = await mysql.createConnection({ port: 3306, user: 'testuser', namedPlaceholders: true, password: 'testpassword', }); console.log('connected!'); const [rows, fields] = await c.query('show databases'); console.log(rows); try { const [rows, fields] = await c.query('some invalid sql here'); } catch (e) { console.log('caught exception!', e); } console.log(await c.execute('select sleep(0.5)')); console.log('after first sleep'); console.log(await c.execute('select sleep(0.5)')); console.log('after second sleep'); let start = +new Date(); console.log( await Promise.all([ c.execute('select sleep(2.5)'), c.execute('select sleep(2.5)'), ]) ); console.log( 'after 2+3 parallel sleep which is in fact not parallel because commands are queued per connection' ); let end = +new Date(); console.log(end - start); await c.end(); const p = mysql.createPool({ port: 3306, user: 'testuser', namedPlaceholders: true, password: 'testpassword', }); console.log(await p.execute('select sleep(0.5)')); console.log('after first pool sleep'); start = +new Date(); console.log( await Promise.all([ p.execute('select sleep(2.5)'), p.execute('select sleep(2.5)'), ]) ); console.log('after 2+3 parallel pool sleep'); end = +new Date(); console.log(end - start); await p.end(); } test() .then(() => { console.log('done'); }) .catch((err) => { console.log('error!', err); throw err; }); 'use strict'; const mysql = require('mysql2/promise'); const co = require('co'); co(function* () { const c = yield mysql.createConnection({ port: 3306, user: 'root', namedPlaceholders: true, }); const rows = yield c.query('show databases'); console.log(rows); console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 })); yield c.end(); }) .then(function () { console.log('done'); }) .catch(function (err) { console.log(err); throw err; }); { \"plugins\": [\"transform-async-to-generator\"] } { \"name\": \"promise-co-await\", \"version\": \"1.0.0\", \"description\": \"\", \"main\": \"await.js\", \"scripts\": { \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\" }, \"author\": \"\", \"license\": \"ISC\", \"dependencies\": { \"babel-cli\": \"^6.9.0\" } }","s":"await — co","u":"/node-mysql2/docs/examples/promise-wrapper/co-await","h":"","p":183},{"i":187,"t":"execute(sql: string, values: any[]) promise.js callback.js try { const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1'; const values = ['Page']; const [result, fields] = await connection.execute(sql, values); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1'; const values = ['Page']; connection.execute(sql, values, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); }); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(sql, values)","u":"/node-mysql2/docs/examples/queries/prepared-statements/delete","h":"#executesql-values","p":185},{"i":189,"t":"execute(options: QueryOptions) promise.js callback.js try { const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1'; const values = ['Page']; const [result, fields] = await connection.execute({ sql, values, // ... other options }); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1'; const values = ['Page']; connection.execute( { sql, values, // ... other options }, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options)","u":"/node-mysql2/docs/examples/queries/prepared-statements/delete","h":"#executeoptions","p":185},{"i":191,"t":"execute(options: QueryOptions, values: any[]) promise.js callback.js try { const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1'; const values = ['Page']; const [result, fields] = await connection.execute( { sql, // ... other options }, values ); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1'; const values = ['Page']; connection.execute( { sql, // ... other options }, values, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options, values)","u":"/node-mysql2/docs/examples/queries/prepared-statements/delete","h":"#executeoptions-values","p":185},{"i":194,"t":"ResultSetHeader Specification","s":"ResultSetHeader","u":"/node-mysql2/docs/examples/queries/prepared-statements/delete","h":"#resultsetheader","p":185},{"i":196,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/docs/examples/queries/prepared-statements/delete","h":"#queryoptions","p":185},{"i":199,"t":"execute(sql: string, values: any[]) promise.js callback.js try { const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)'; const values = ['Josh', 19, 'Page', 45]; const [result, fields] = await connection.execute(sql, values); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)'; const values = ['Josh', 19, 'Page', 45]; connection.execute(sql, values, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); }); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(sql, values)","u":"/node-mysql2/docs/examples/queries/prepared-statements/insert","h":"#executesql-values","p":197},{"i":201,"t":"execute(options: QueryOptions) promise.js callback.js try { const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)'; const values = ['Josh', 19, 'Page', 45]; const [result, fields] = await connection.execute({ sql, values, // ... other options }); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)'; const values = ['Josh', 19, 'Page', 45]; connection.execute( { sql, values, // ... other options }, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options)","u":"/node-mysql2/docs/examples/queries/prepared-statements/insert","h":"#executeoptions","p":197},{"i":203,"t":"execute(options: QueryOptions, values: any[]) promise.js callback.js try { const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)'; const values = ['Josh', 19, 'Page', 45]; const [result, fields] = await connection.execute( { sql, // ... other options }, values ); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)'; const values = ['Josh', 19, 'Page', 45]; connection.execute( { sql, // ... other options }, values, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options, values)","u":"/node-mysql2/docs/examples/queries/prepared-statements/insert","h":"#executeoptions-values","p":197},{"i":206,"t":"ResultSetHeader Specification","s":"ResultSetHeader","u":"/node-mysql2/docs/examples/queries/prepared-statements/insert","h":"#resultsetheader","p":197},{"i":208,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/docs/examples/queries/prepared-statements/insert","h":"#queryoptions","p":197},{"i":211,"t":"execute(sql: string, values: any[]) promise.js callback.js try { const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?'; const values = ['Page', 45]; const [rows, fields] = await connection.execute(sql, values); console.log(rows); console.log(fields); } catch (err) { console.log(err); } const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?'; const values = ['Page', 45]; connection.execute(sql, values, (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows); console.log(fields); }); rows contains rows returned by server fields contains extra meta data about rows, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(sql, values)","u":"/node-mysql2/docs/examples/queries/prepared-statements/select","h":"#executesql-values","p":209},{"i":213,"t":"execute(options: QueryOptions) promise.js callback.js try { const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?'; const values = ['Page', 45]; const [rows, fields] = await connection.execute({ sql, values, // ... other options }); console.log(rows); console.log(fields); } catch (err) { console.log(err); } const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?'; const values = ['Page', 45]; connection.execute( { sql, values, // ... other options }, (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows); console.log(fields); } ); rows contains rows returned by server fields contains extra meta data about rows, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options)","u":"/node-mysql2/docs/examples/queries/prepared-statements/select","h":"#executeoptions","p":209},{"i":215,"t":"execute(options: QueryOptions, values: any[]) promise.js callback.js try { const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?'; const values = ['Page', 45]; const [rows, fields] = await connection.execute( { sql, // ... other options }, values ); console.log(rows); console.log(fields); } catch (err) { console.log(err); } const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?'; const values = ['Page', 45]; connection.execute( { sql, // ... other options }, values, (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows); console.log(fields); } ); rows contains rows returned by server fields contains extra meta data about rows, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options, values)","u":"/node-mysql2/docs/examples/queries/prepared-statements/select","h":"#executeoptions-values","p":209},{"i":218,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/docs/examples/queries/prepared-statements/select","h":"#queryoptions","p":209},{"i":221,"t":"execute(sql: string, values: any[]) promise.js callback.js try { const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1'; const values = [20, 'Josh']; const [result, fields] = await connection.execute(sql, values); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1'; const values = [20, 'Josh']; connection.execute(sql, values, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); }); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(sql, values)","u":"/node-mysql2/docs/examples/queries/prepared-statements/update","h":"#executesql-values","p":219},{"i":223,"t":"execute(options: QueryOptions) promise.js callback.js try { const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1'; const values = [20, 'Josh']; const [result, fields] = await connection.execute({ sql, values, // ... other options }); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1'; const values = [20, 'Josh']; connection.execute( { sql, values, // ... other options }, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options)","u":"/node-mysql2/docs/examples/queries/prepared-statements/update","h":"#executeoptions","p":219},{"i":225,"t":"execute(options: QueryOptions, values: any[]) promise.js callback.js try { const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1'; const values = [20, 'Josh']; const [result, fields] = await connection.execute( { sql, // ... other options }, values ); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1'; const values = [20, 'Josh']; connection.execute( { sql, // ... other options }, values, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options, values)","u":"/node-mysql2/docs/examples/queries/prepared-statements/update","h":"#executeoptions-values","p":219},{"i":228,"t":"ResultSetHeader Specification","s":"ResultSetHeader","u":"/node-mysql2/docs/examples/queries/prepared-statements/update","h":"#resultsetheader","p":219},{"i":230,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/docs/examples/queries/prepared-statements/update","h":"#queryoptions","p":219},{"i":232,"t":"info For Prepared Statements or Placeholders / Parameters examples, please see here. Usage examples: INSERT SELECT UPDATE DELETE","s":"Simple Queries","u":"/node-mysql2/docs/examples/queries/simple-queries","h":"","p":231},{"i":234,"t":"The examples below also work for the execute method.","s":"DELETE","u":"/node-mysql2/docs/examples/queries/simple-queries/delete","h":"","p":233},{"i":236,"t":"query(sql: string) promise.js callback.js try { const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1'; const [result, fields] = await connection.query(sql); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1'; connection.query(sql, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); }); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(sql)","u":"/node-mysql2/docs/examples/queries/simple-queries/delete","h":"#querysql","p":233},{"i":238,"t":"query(options: QueryOptions) promise.js callback.js try { const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1'; const [result, fields] = await connection.query({ sql, // ... other options }); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1'; connection.query( { sql, // ... other options }, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(options)","u":"/node-mysql2/docs/examples/queries/simple-queries/delete","h":"#queryoptions","p":233},{"i":241,"t":"ResultSetHeader Specification","s":"ResultSetHeader","u":"/node-mysql2/docs/examples/queries/simple-queries/delete","h":"#resultsetheader","p":233},{"i":243,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/docs/examples/queries/simple-queries/delete","h":"#queryoptions-1","p":233},{"i":245,"t":"The examples below also work for the execute method.","s":"INSERT","u":"/node-mysql2/docs/examples/queries/simple-queries/insert","h":"","p":244},{"i":247,"t":"query(sql: string) promise.js callback.js try { const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (\"Josh\", 19), (\"Page\", 45)'; const [result, fields] = await connection.query(sql); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (\"Josh\", 19), (\"Page\", 45)'; connection.query(sql, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); }); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(sql)","u":"/node-mysql2/docs/examples/queries/simple-queries/insert","h":"#querysql","p":244},{"i":249,"t":"query(options: QueryOptions) promise.js callback.js try { const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (\"Josh\", 19), (\"Page\", 45)'; const [result, fields] = await connection.query({ sql, // ... other options }); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (\"Josh\", 19), (\"Page\", 45)'; connection.query( { sql, // ... other options }, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(options)","u":"/node-mysql2/docs/examples/queries/simple-queries/insert","h":"#queryoptions","p":244},{"i":252,"t":"ResultSetHeader Specification","s":"ResultSetHeader","u":"/node-mysql2/docs/examples/queries/simple-queries/insert","h":"#resultsetheader","p":244},{"i":254,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/docs/examples/queries/simple-queries/insert","h":"#queryoptions-1","p":244},{"i":256,"t":"The examples below also work for the execute method.","s":"SELECT","u":"/node-mysql2/docs/examples/queries/simple-queries/select","h":"","p":255},{"i":258,"t":"query(sql: string) promise.js callback.js try { const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45'; const [rows, fields] = await connection.query(sql); console.log(rows); console.log(fields); } catch (err) { console.log(err); } const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45'; connection.query(sql, (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows); console.log(fields); }); rows contains rows returned by server fields contains extra meta data about rows, if available info The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(sql)","u":"/node-mysql2/docs/examples/queries/simple-queries/select","h":"#querysql","p":255},{"i":260,"t":"query(options: QueryOptions) promise.js callback.js try { const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45'; const [rows, fields] = await connection.query({ sql, // ... other options }); console.log(rows); console.log(fields); } catch (err) { console.log(err); } const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45'; connection.query( { sql, // ... other options }, (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows); console.log(fields); } ); rows contains rows returned by server fields contains extra meta data about rows, if available info The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(options)","u":"/node-mysql2/docs/examples/queries/simple-queries/select","h":"#queryoptions","p":255},{"i":262,"t":"query(options: QueryOptions) promise.js callback.js try { const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45'; const [rows, fields] = await connection.query({ sql, rowsAsArray: true, // ... other options }); console.log(rows); console.log(fields); } catch (err) { console.log(err); } const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45'; connection.query( { sql, rowsAsArray: true, // ... other options }, (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows); console.log(fields); } ); rows contains rows returned by server as array fields contains extra meta data about rows, if available info The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(options) — Row as Array","u":"/node-mysql2/docs/examples/queries/simple-queries/select","h":"#queryoptions--row-as-array","p":255},{"i":265,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/docs/examples/queries/simple-queries/select","h":"#queryoptions-1","p":255},{"i":267,"t":"The examples below also work for the execute method.","s":"UPDATE","u":"/node-mysql2/docs/examples/queries/simple-queries/update","h":"","p":266},{"i":269,"t":"query(sql: string) promise.js callback.js try { const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1'; const [result, fields] = await connection.query(sql); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1'; connection.query(sql, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); }); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(sql)","u":"/node-mysql2/docs/examples/queries/simple-queries/update","h":"#querysql","p":266},{"i":271,"t":"query(options: QueryOptions) promise.js callback.js try { const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1'; const [result, fields] = await connection.query({ sql, // ... other options }); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1'; connection.query( { sql, // ... other options }, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available info The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(options)","u":"/node-mysql2/docs/examples/queries/simple-queries/update","h":"#queryoptions","p":266},{"i":274,"t":"ResultSetHeader Specification","s":"ResultSetHeader","u":"/node-mysql2/docs/examples/queries/simple-queries/update","h":"#resultsetheader","p":266},{"i":276,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/docs/examples/queries/simple-queries/update","h":"#queryoptions-1","p":266},{"i":278,"t":"index.js 'use strict'; const mysql = require('mysql2'); const ClientFlags = require('mysql2/lib/constants/client.js'); const server = mysql.createServer(); server.listen(3307); server.on('connection', (conn) => { console.log('connection'); conn.serverHandshake({ protocolVersion: 10, serverVersion: 'node.js rocks', connectionId: 1234, statusFlags: 2, characterSet: 8, capabilityFlags: 0xffffff ^ ClientFlags.COMPRESS, }); conn.on('field_list', (table, fields) => { console.log('field list:', table, fields); conn.writeEof(); }); const remote = mysql.createConnection({ user: 'root', database: 'dbname', host: 'server.example.com', password: 'secret', }); conn.on('query', (sql) => { console.log(`proxying query: ${sql}`); remote.query(sql, function (err) { // overloaded args, either (err, result :object) // or (err, rows :array, columns :array) if (Array.isArray(arguments[1])) { // response to a 'select', 'show' or similar const rows = arguments[1], columns = arguments[2]; console.log('rows', rows); console.log('columns', columns); conn.writeTextResult(rows, columns); } else { // response to an 'insert', 'update' or 'delete' const result = arguments[1]; console.log('result', result); conn.writeOk(result); } }); }); conn.on('end', remote.end.bind(remote)); });","s":"MySQL Proxy","u":"/node-mysql2/docs/examples/tests/mysql-proxy","h":"","p":277},{"i":280,"t":"index.js 'use strict'; const pool = require('mysql2').createPool({ host: 'localhost', user: 'root', database: 'test', password: 'root', }); setInterval(() => { for (let i = 0; i < 5; ++i) { pool.query((err, rows, fields) => { console.log(rows, fields); // Connection is automatically released once query resolves }); } }, 1000); setInterval(() => { for (let i = 0; i < 5; ++i) { pool.getConnection((err, db) => { db.query('select sleep(0.5) as qqq', (err, rows, fields) => { console.log(rows, fields); db.release(); }); }); } }, 1000);","s":"Pool","u":"/node-mysql2/docs/examples/tests/pool","h":"","p":279},{"i":282,"t":"index.js 'use strict'; const mysql = require('mysql2'); const flags = require('mysql2/lib/constants/client.js'); const auth = require('mysql2/lib/auth_41.js'); function authenticate(params, cb) { console.log(params); const doubleSha = auth.doubleSha1('pass123'); const isValid = auth.verifyToken( params.authPluginData1, params.authPluginData2, params.authToken, doubleSha ); if (isValid) { cb(null); } else { // for list of codes lib/constants/errors.js cb(null, { message: 'wrong password dude', code: 1045 }); } } const server = mysql.createServer(); server.listen(3333); server.on('connection', (conn) => { // we can deny connection here: // conn.writeError({ message: 'secret', code: 123 }); // conn.close(); conn.serverHandshake({ protocolVersion: 10, serverVersion: '5.6.10', // 'node.js rocks', connectionId: 1234, statusFlags: 2, characterSet: 8, // capabilityFlags: 0xffffff, // capabilityFlags: -2113931265, capabilityFlags: 2181036031, authCallback: authenticate, }); conn.on('field_list', (table, fields) => { console.log('FIELD LIST:', table, fields); conn.writeEof(); }); conn.on('query', (query) => { conn.writeColumns([ { catalog: 'def', schema: 'test', table: 'test_table', orgTable: 'test_table', name: 'beta', orgName: 'beta', characterSet: 33, columnLength: 384, columnType: 253, flags: 0, decimals: 0, }, ]); conn.writeTextRow(['test тест テスト փորձարկում পরীক্ষা kiểm tra ']); conn.writeTextRow(['ტესტი પરીક્ષણ מבחן פּרובירן اختبار परीक्षण']); conn.writeEof(); conn.close(); }); });","s":"Server","u":"/node-mysql2/docs/examples/tests/server","h":"","p":281},{"i":284,"t":"index.ts db.ts /** * The types are explicity for learning purpose */ import { PoolOptions } from 'mysql2/promise'; import { MySQL } from './db.js'; interface User extends RowDataPacket { id: number; name: string; } const access: PoolOptions = { host: '', user: '', password: '', database: '', }; (async () => { const mysql = new MySQL(access); /** Deleting the `users` table, if it exists */ await mysql.queryResult('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await mysql.queryResult( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await mysql.executeResult( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [users] = await mysql.queryRows( 'SELECT * FROM `users` ORDER BY `name` ASC;' ); users.forEach((user: User) => { console.log('-----------'); console.log('id: ', user.id); console.log('name:', user.name); }); await mysql.connection.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */ /** * The types are explicity for learning purpose */ import { createPool, PoolOptions, Pool, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; export class MySQL { private conn: Pool; private credentials: PoolOptions; constructor(credentials: PoolOptions) { this.credentials = credentials; this.conn = createPool(this.credentials); } /** A random method to simulate a step before to get the class methods */ private ensureConnection() { if (!this?.conn) this.conn = createPool(this.credentials); } /** For `SELECT` and `SHOW` */ get queryRows() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */ get queryRowsAsArray() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For `INSERT`, `UPDATE`, etc. */ get queryResult() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */ get queryResults() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For `SELECT` and `SHOW` */ get executeRows() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */ get executeRowsAsArray() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** For `INSERT`, `UPDATE`, etc. */ get executeResult() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */ get executeResults() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** Expose the Pool Connection */ get connection() { return this.conn; } }","s":"Basic Custom Class","u":"/node-mysql2/docs/examples/typescript/basic-custom-class","h":"","p":283},{"i":286,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ProcedureCallPacket, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { id: number; name: string; } const isResultSetHeader = (data: unknown): data is ResultSetHeader => { if (!data || typeof data !== 'object') return false; const keys = [ 'fieldCount', 'affectedRows', 'insertId', 'info', 'serverStatus', 'warningStatus', 'changedRows', ]; return keys.every((key) => key in data); }; (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Deleting the `getUsers` procedure, if it exists */ await conn.query('DROP PROCEDURE IF EXISTS getUsers'); /** Creating a procedure to get the users */ await conn.query(` CREATE PROCEDURE getUsers() BEGIN SELECT * FROM users ORDER BY name ASC; END `); /** Getting users */ const [procedureResult] = await conn.query>('CALL getUsers()'); procedureResult.forEach((users) => { /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */ if (isResultSetHeader(users)) { console.log('----------------'); console.log('Affected Rows:', users.affectedRows); } else { users.forEach((user) => { console.log('----------------'); console.log('id: ', user.id); console.log('name:', user.name); }); } }); await conn.end(); })(); /** Output * * Inserted: 4 * ---------------- * id: 4 * name: Gween * ---------------- * id: 2 * name: John * ---------------- * id: 1 * name: Josh * ---------------- * id: 3 * name: Marie * ---------------- * Affected Rows: 0 */","s":"Procedure Call Packet","u":"/node-mysql2/docs/examples/typescript/procedure-call/index","h":"","p":285},{"i":288,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ProcedureCallPacket, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { /** id */ 0: number; /** name */ 1: string; } const isResultSetHeader = (data: unknown): data is ResultSetHeader => { if (!data || typeof data !== 'object') return false; const keys = [ 'fieldCount', 'affectedRows', 'insertId', 'info', 'serverStatus', 'warningStatus', 'changedRows', ]; return keys.every((key) => key in data); }; (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', rowsAsArray: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Deleting the `getUsers` procedure, if it exists */ await conn.query('DROP PROCEDURE IF EXISTS getUsers'); /** Creating a procedure to get the users */ await conn.query(` CREATE PROCEDURE getUsers() BEGIN SELECT * FROM users ORDER BY name ASC; END `); /** Getting users */ const [procedureResult] = await conn.query>('CALL getUsers()'); procedureResult.forEach((users) => { /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */ if (isResultSetHeader(users)) { console.log('----------------'); console.log('Affected Rows:', users.affectedRows); } else { users.forEach((user) => { console.log('----------------'); console.log('id: ', user[0]); console.log('name:', user[1]); }); } }); await conn.end(); })(); /** Output * * Inserted: 4 * ---------------- * id: 4 * name: Gween * ---------------- * id: 2 * name: John * ---------------- * id: 1 * name: Josh * ---------------- * id: 3 * name: Marie * ---------------- * Affected Rows: 0 */","s":"Procedure Call Packet (Row as Array)","u":"/node-mysql2/docs/examples/typescript/procedure-call/row-as-array","h":"","p":287},{"i":290,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { id: number; name: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [users] = await conn.query( 'SELECT * FROM `users` ORDER BY `name` ASC;' ); users.forEach((user) => { console.log('-----------'); console.log('id: ', user.id); console.log('name:', user.name); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet","u":"/node-mysql2/docs/examples/typescript/row-data/index","h":"","p":289},{"i":292,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { id: number; name: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', multipleStatements: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [rows] = await conn.query( [ 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2;', 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2 OFFSET 2;', ].join(' ') ); rows.forEach((users) => { users.forEach((user) => { console.log('-----------'); console.log('id: ', user.id); console.log('name:', user.name); }); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet (Multi Statements)","u":"/node-mysql2/docs/examples/typescript/row-data/multi-statements","h":"","p":291},{"i":294,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { /** id */ 0: number; /** name */ 1: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', rowsAsArray: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [users] = await conn.query( 'SELECT * FROM `users` ORDER BY `name` ASC;' ); users.forEach((user) => { console.log('-----------'); console.log('id: ', user[0]); console.log('name:', user[1]); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet (Row as Array)","u":"/node-mysql2/docs/examples/typescript/row-data/row-as-array","h":"","p":293},{"i":296,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { /** id */ 0: number; /** name */ 1: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', multipleStatements: true, rowsAsArray: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [rows] = await conn.query( [ 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2;', 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2 OFFSET 2;', ].join(' ') ); rows.forEach((users) => { users.forEach((user) => { console.log('-----------'); console.log('id: ', user[0]); console.log('name:', user[1]); }); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet (Multi Statements and Row as Array)","u":"/node-mysql2/docs/examples/typescript/row-data/row-as-array-multi-statements","h":"","p":295},{"i":298,"t":"This section provides answers to commonly asked questions about MySQL2. tip To explore the FAQs, please use the sidebar navigation on desktop or access the menu on mobile devices.","s":"Frequently Asked Questions","u":"/node-mysql2/docs/faq","h":"","p":297},{"i":300,"t":"This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as createConnection, createPool, createPoolCluster, execute and query.","s":"How to handle errors?","u":"/node-mysql2/docs/faq/how-to-handle-errors","h":"","p":299},{"i":302,"t":"createConnection 2Stable This solution has been tested and confirmed as the correct answer. Handling connection errors by adding an error event listener: const mysql = require('mysql2'); connection = mysql.createConnection({ host: '', user: '', database: '', }); connection.addListener('error', (err) => { if (err instanceof Error) { console.log(`createConnection error:`, err); } }); createPool 2Stable This solution has been tested. Handling connection errors through callback's err parameter: const mysql = require('mysql2'); const pool = mysql.createPool({ host: '', user: '', database: '', }); pool.getConnection((err, connection) => { if (err instanceof Error) { console.log('pool.getConnection error:', err); return; } }); createPoolCluster 2Stable This solution has been tested. Handling connection errors through callback's err parameter: const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('NodeI', { host: '', user: '', database: '', }); poolCluster.getConnection('NodeI', (err, connection) => { if (err instanceof Error) { console.log('poolCluster.getConnection error:', err); return; } }); execute 2Stable This solution has been tested. Handling execute errors through callback's err parameter: connection.execute('SELEC 1 + 1', (err, rows) => { if (err instanceof Error) { console.log('execute error:', err); return; } console.log(rows); }); It will work for both createConnection, createPool and createPoolCluster connections. query 2Stable This solution has been tested. Handling query errors through callback's err parameter: connection.query('SELEC 1 + 1', (err, rows) => { if (err instanceof Error) { console.log('query error:', err); return; } console.log(rows); }); It will work for both createConnection, createPool and createPoolCluster connections.","s":"Using callbacks","u":"/node-mysql2/docs/faq/how-to-handle-errors","h":"#using-callbacks","p":299},{"i":304,"t":"createConnection 2Stable This solution has been tested and confirmed as the correct answer. Handling connection errors through try-catch block: import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ host: '', user: '', database: '', }); } catch (err) { if (err instanceof Error) { console.log(err); } } createPool 2Stable This solution has been tested. Handling connection errors through try-catch block: import mysql from 'mysql2/promise'; const pool = mysql.createPool({ host: '', user: '', database: '', }); try { const connection = await pool.getConnection(); } catch (err) { if (err instanceof Error) { console.log(err); } } createPoolCluster 2Stable This solution has been tested. Handling connection errors through try-catch block: import mysql from 'mysql2/promise'; const poolCluster = mysql.createPoolCluster(); poolCluster.add('NodeI', { host: '', user: '', database: '', }); try { await poolCluster.getConnection('NodeI'); } catch (err) { if (err instanceof Error) { console.log('createConnection error:', err); } } execute 2Stable This solution has been tested. Handling execute errors through try-catch block: try { const [rows] = await connection.execute('SELEC 1 + 1'); console.log(rows); } catch (err) { if (err instanceof Error) { console.log('execute error:', err); } } It will work for both createConnection, createPool and createPoolCluster connections. query 2Stable This solution has been tested. Handling query errors through try-catch block: try { const [rows] = await connection.query('SELEC 1 + 1'); console.log(rows); } catch (err) { if (err instanceof Error) { console.log('query error:', err); } } It will work for both createConnection, createPool and createPoolCluster connections.","s":"Using promises","u":"/node-mysql2/docs/faq/how-to-handle-errors","h":"#using-promises","p":299},{"i":306,"t":"Discussions #1998 #2282","s":"Related Links","u":"/node-mysql2/docs/faq/how-to-handle-errors","h":"#related-links","p":299},{"i":308,"t":"MySQL2 project is a continuation of MySQL-Native. Protocol parser code was rewritten from scratch and api changed to match popular Node MySQL. MySQL2 team is working together with Node MySQL team to factor out shared code and move it under mysqljs organization. MySQL2 is mostly API compatible with Node MySQL and supports majority of features. MySQL2 also offers these additional features: Faster / Better Performance Prepared Statements MySQL Binary Log Protocol MySQL Server Extended support for Encoding and Collation Promise Wrapper Compression SSL and Authentication Switch Custom Streams Pooling","s":"History and Why MySQL2","u":"/node-mysql2/docs/history-and-why-mysq2","h":"","p":307},{"i":310,"t":"The Stability Badges are indications of a section's stability. The stability indices are as follows: 0Deprecated The feature might generate warnings and does not assure backward compatibility. Experimental: These features are not bound by semantic versioning. They may undergo non-backward compatible changes or be removed in future releases. Their use in production is discouraged. Use caution with Experimental features, especially in libraries. Users might not expect changes from these unstable features. To reduce surprises, consider using a command-line flag for Experimental features. Experimental features are classified into stages: 1Experimental Experimental features at this stage are currently in development and prone to considerable changes. 1.1Early Development Experimental features at this stage are approaching minimum viability. 1.2Release Candidate Experimental features are close to reaching stability. Major changes are not expected, but they could still occur based on user feedback. Testing and feedback are important to ascertain the readiness of these features for stable classification. 2Stable Compatibility with the MySQL ecosystem is a high priority. 3Legacy This feature, while not likely to be removed and still subject to semantic versioning, is not under active maintenance and other options are available. Features are classified as legacy instead of deprecated when they cause no harm and have widespread use in the MySQL ecosystem. It's unlikely that bugs in legacy features will be addressed.","s":"Stability Badges","u":"/node-mysql2/docs/stability-badges","h":"","p":309}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/2",[0,4.512,1,3.687,2,5.936,3,5.936,4,1.437,5,4.837,6,5.936,7,1.871,8,3.687,9,5.936,10,2.61,11,5.936,12,4.837,13,5.936,14,3.687,15,3.087,16,5.274,17,4.295,18,4.837,19,5.936,20,5.936,21,1.492,22,0.537,23,4.512,24,3.849,25,4.251,26,3.687,27,5.274,28,3.187,29,5.936]],["t/4",[4,1.495,14,4.826,24,3.457,26,3.312,30,2.127,31,4.737,32,4.345,33,4.345,34,6.902,35,4.345,36,1.786,37,1.558,38,1.903,39,5.332,40,2.773,41,4.737,42,1.862,43,4.737,44,5.332,45,2.032,46,4.737,47,5.332,48,4.737,49,4.345,50,5.332,51,4.737,52,5.332,53,4.737,54,2.539,55,4.737,56,5.332,57,1.75,58,5.332,59,2.286,60,6.194,61,4.345,62,3.312,63,5.332,64,3.819,65,4.737,66,5.332]],["t/6",[1,4.125,4,1.278,15,3.454,23,5.048,28,3.566,67,4.515,68,6.642,69,3.819,70,4.757,71,3.163,72,3.078,73,4.757,74,6.642,75,5.901,76,5.048,77,5.413,78,6.642,79,4.515]],["t/8",[5,4.907,30,3.283,54,2.868,62,3.74,80,6.021,81,4.907,82,6.553,83,6.021,84,6.021,85,6.021,86,5.35,87,5.35,88,5.35,89,6.142,90,5.892,91,6.253,92,5.35,93,5.35,94,4.576,95,2.06,96,3.905]],["t/10",[4,0.85,21,1.227,22,0.867,28,2.372,37,0.987,42,2.665,45,1.684,59,1.213,71,1.347,72,1.311,79,1.923,95,1.511,97,2.026,98,1.182,99,2.305,100,1.923,101,3.892,102,1.57,103,1.835,104,0.777,105,1.01,106,2.047,107,1.975,108,0.999,109,1.214,110,1.722,111,1.722,112,2.54,113,1.044,114,2.297,115,1.392,116,2.574,117,1.168,118,1.687,119,3.665,120,2.925,121,2.015,122,2.771,123,2.701,124,3.297,125,2.57,126,2.394,127,1.45,128,1.286,129,1.722,130,1.722,131,1.762,132,1.576,133,1.611,134,1.191,135,1.322,136,1.083,137,0.716,138,3.357,139,0.988]],["t/12",[0,3.23,4,1.013,7,0.849,21,1.194,22,0.843,30,1.695,37,0.949,42,2.528,45,1.026,59,1.822,69,2.443,71,3.905,72,3.476,79,1.83,91,2.047,95,1.453,97,1.928,98,1.252,99,2.194,100,1.83,102,1.495,103,1.746,104,1.168,105,0.961,106,1.969,107,1.922,108,0.896,109,0.949,110,1.657,111,1.657,112,2.443,113,1.004,114,2.21,115,1.339,116,1.55,117,0.712,118,1.642,120,2.024,121,1.394,123,1.869,125,1.778,126,2.33,127,1.394,128,1.237,129,1.657,130,1.657,131,1.695,132,1.516,133,1.55,134,0.726,135,0.915,136,0.66,138,2.047,139,0.941,140,2.392,141,2.693,142,2.536,143,2.888,144,3.043,145,1.4,146,2.693,147,1.746,148,2.392,149,2.693,150,2.693,151,2.693,152,1.1,153,1.74,154,2.194,155,1.746,156,3.463,157,0.902,158,3.23,159,2.281,160,4.249,161,3.23,162,4.249,163,4.249,164,1.672,165,2.194,166,2.392,167,2.047,168,1.928,169,2.392]],["t/14",[4,0.879,10,3.568,21,1.739,22,0.826,36,1.772,37,0.487,45,0.831,49,1.777,51,1.938,54,2.518,59,0.935,79,1.482,95,1.226,97,1.562,98,0.879,99,1.777,100,1.482,102,2.534,103,2.961,104,0.599,105,0.778,106,2.451,107,1.153,108,0.876,109,1.02,111,1.398,112,2.062,113,0.847,114,1.865,115,1.13,117,0.577,118,1.453,120,1.708,127,1.177,128,0.635,134,0.588,135,0.983,136,0.535,137,0.74,139,0.762,142,2.725,143,1.482,145,1.865,155,1.414,170,1.938,171,1.938,172,2.181,173,2.181,174,2.181,175,2.181,176,1.938,177,1.482,178,1.482,179,1.938,180,2.181,181,2.181,182,1.938,183,2.181,184,1.171,185,0.795,186,1.577,187,1.809,188,4.5,189,1.925,190,3.586,191,2.268,192,5.288,193,3.429,194,3.586,195,3.586,196,5.288,197,3.586,198,5.288,199,3.586,200,3.586,201,3.586,202,2.75,203,3.586,204,3.586,205,1.355,206,2.181,207,2.181,208,2.181,209,1.134,210,1.938,211,1.938,212,2.181,213,2.181,214,4.31,215,4.698,216,3.185,217,3.185,218,2.863,219,3.185,220,2.181,221,1.658,222,2.181,223,2.181,224,1.465,225,1.414,226,3.185,227,2.922,228,1.99,229,1.99,230,3.586,231,1.482,232,2.181,233,2.181,234,0.85,235,1.938]],["t/16",[4,1.12,10,2.796,16,2.282,21,1.474,22,0.853,24,1.666,28,1.379,30,2.537,45,2.219,70,1.84,73,1.84,98,0.982,102,4.626,104,1.599,105,1.461,106,2.946,107,2.285,108,1.14,109,1.513,110,1.99,111,2.27,112,3.347,113,1.375,114,3.027,115,1.834,116,1.493,118,1.599,120,1.949,121,1.343,123,1.8,127,1.675,133,0.937,137,1.031,139,0.897,142,1.533,159,2.198,188,1.84,189,1.379,224,1.672,234,1.002,236,1.533,237,2.569,238,2.569,239,2.569,240,2.934,241,3.637,242,4.094,243,4.094,244,2.282,245,2.569,246,3.637,247,2.093,248,6.358,249,2.093,250,3.336,251,2.569,252,2.282,253,2.569,254,1.84,255,2.569,256,2.569,257,2.569,258,1.215,259,1.533,260,2.569,261,2.282,262,1.19,263,2.569,264,1.596]],["t/18",[4,0.634,7,1.565,14,2.048,21,0.992,22,0.822,42,2.493,45,1.256,46,4.413,59,1.414,62,2.048,95,1.128,98,1.444,102,2.757,103,3.221,107,1.597,108,0.896,109,1.11,110,1.937,111,1.937,112,2.856,113,1.174,114,2.583,115,1.565,116,2.18,117,0.872,118,1.828,121,1.082,125,2.078,129,1.937,134,0.889,135,1.069,136,0.809,142,1.967,170,4.413,186,1.45,187,1.663,191,2.853,224,2.029,227,4.048,234,2.33,247,2.686,258,1.775,265,2.929,266,2.686,267,4.836,268,2.929,269,3.297,270,3.297,271,2.686,272,5.702,273,2.563,274,2.929,275,5.057,276,4.314,277,4.967,278,1.967,279,2.241,280,2.686,281,2.929,282,3.297,283,3.297,284,4.048,285,3.297,286,3.297,287,2.506]],["t/20",[30,2.83,59,3.041,147,4.599,179,6.3,226,6.3,247,5.779,288,7.092,289,3.2,290,7.092,291,5.079]],["t/22",[1,3.398,4,1.659,10,2.406,14,4.886,15,2.845,23,4.158,24,3.548,28,2.937,30,2.829,34,4.86,54,2.605,59,2.346,60,4.86,61,4.458,62,3.398,69,3.146,70,3.918,71,2.605,72,2.535,76,4.158,77,4.458,79,3.719,102,3.037,128,1.593,144,3.918,205,3.398,284,4.458,292,5.471,293,4.458,294,5.471,295,4.86,296,3.918,297,3.398,298,5.389,299,4.458,300,3.918,301,4.158]],["t/24",[30,2.981,59,3.204,95,2.555,147,4.845]],["t/26",[22,0.664,25,5.256,35,4.704,37,1.29,38,2.619,40,3.817,53,5.128,88,5.128,104,1.586,147,3.743,155,3.743,191,2.475,205,3.585,279,3.924,302,7.339,303,5.772,304,4.074,305,5.772,306,5.128,307,5.772,308,5.128,309,5.772,310,4.387,311,5.772,312,5.128,313,3.445,314,2.458,315,5.772,316,5.772,317,5.772]],["t/28",[1,4.681,4,1.659,14,5.11,27,5.35,28,4.417,32,4.907,67,4.093,71,2.868,72,2.79,81,6.142,94,4.576,128,1.753,271,4.907,318,6.021,319,5.35,320,6.021,321,6.021,322,7.537,323,7.537,324,6.021]],["t/30",[4,1.342,14,4.331,90,4.995,95,2.385,117,1.844,325,6.974,326,6.716,327,8.773,328,6.196]],["t/32",[0,1.662,17,1.257,21,1.058,22,0.834,24,1.418,28,2.456,36,0.733,37,1.307,45,2.534,61,2.928,69,1.257,95,0.748,102,1.214,103,1.418,107,1.155,108,0.877,110,1.401,113,0.849,115,1.132,121,1.179,128,1.542,132,2.372,135,0.471,137,0.583,143,1.486,157,1.204,158,4.026,184,1.174,187,1.813,191,0.938,205,1.358,214,1.782,221,1.662,224,1.468,234,0.853,280,1.782,297,1.358,300,2.573,301,3.476,306,1.943,310,2.731,313,2.73,314,1.96,329,2.187,330,2.187,331,2.187,332,4.316,333,4.064,334,3.727,335,2.94,336,2.187,337,5.658,338,4.191,339,3.727,340,2.187,341,2.187,342,1.943,343,2.187,344,4.574,345,6.647,346,1.662,347,3.192,348,1.943,349,2.187,350,2.187,351,2.187,352,1.782,353,1.633,354,2.187,355,2.187,356,4.574,357,2.187,358,3.192,359,2.39,360,3.192,361,2.187,362,2.187,363,4.506,364,3.593,365,3.192,366,4.064,367,2.928,368,1.782,369,1.782,370,3.593,371,3.593,372,3.593,373,1.662,374,4.574,375,3.593,376,1.566,377,1.566,378,2.187,379,5.297,380,1.782,381,2.187,382,2.187,383,2.187,384,1.943,385,2.187,386,1.782,387,2.187,388,1.782,389,1.782,390,2.187,391,2.187,392,2.187,393,3.593,394,1.943,395,1.662,396,1.358,397,1.662,398,2.187,399,2.187,400,1.943,401,2.33,402,2.187,403,1.566,404,1.943,405,1.943,406,1.943]],["t/34",[21,0.743,22,0.85,28,1.998,37,1.752,45,2.989,107,1.197,108,0.558,110,1.451,113,1.284,121,1.221,126,1.451,128,1.083,132,1.939,137,0.603,152,1.52,165,3.033,214,3.033,221,2.828,224,1.52,297,3.375,300,5.056,301,2.828,313,2.221,314,1.247,332,5.232,333,3.306,334,3.033,337,4.429,338,3.892,339,3.033,358,3.306,359,2.897,360,3.306,401,2.413,403,3.892,404,3.306,405,3.306,407,3.721,408,5.704,409,3.721,410,3.033,411,3.721,412,3.721,413,3.306,414,1.877,415,6.42,416,6.42,417,3.721,418,3.721,419,3.721,420,3.721,421,5.435,422,3.721,423,7.842,424,3.721,425,3.721,426,3.721,427,3.721,428,3.721]],["t/36",[137,1.16,414,3.608,429,6.817,430,7.152,431,5.829,432,7.152,433,7.152,434,5.436]],["t/38",[67,4.946,82,5.53,279,4.946,328,6.465,435,7.277,436,7.277,437,7.277]],["t/40",[14,3.572,22,0.364,30,2.678,54,1.917,55,3.576,59,2.466,82,4.372,86,3.576,87,3.576,90,5.244,94,4.372,95,1.377,96,2.61,106,1.865,114,2.991,128,1.675,176,3.576,184,2.161,205,2.5,287,3.059,291,5.244,314,1.927,326,5.469,413,3.576,429,6.564,431,3.28,434,3.059,438,5.752,439,5.752,440,4.025,441,5.962,442,4.025,443,5.752,444,5.752,445,4.025,446,4.025,447,5.752,448,4.025,449,5.752,450,4.025,451,4.025,452,4.025,453,5.11,454,4.025,455,2.61,456,4.025,457,4.025,458,4.025,459,4.025,460,3.576,461,3.576,462,5.752,463,4.025,464,4.025,465,4.025,466,3.576,467,3.576,468,4.025,469,4.025,470,4.025,471,3.059,472,4.025,473,4.025,474,4.025,475,4.025,476,3.576,477,3.576,478,3.28]],["t/42",[94,4.512,106,2.751,130,2.314,137,0.962,274,5.274,287,4.512,298,4.512,304,3.295,431,4.837,460,5.274,471,4.512,479,5.854,480,5.936,481,5.274,482,7.262,483,5.274,484,5.274,485,6.087,486,5.936,487,5.936,488,6.636,489,5.936,490,5.936,491,5.274,492,5.936,493,3.687,494,5.936]],["t/44",[22,0.805,40,2.922,95,1.921,104,1.544,120,2.675,164,3.489,314,1.882,396,5.221,455,5.867,479,5.166,485,4.578,495,6.389,496,5.618,497,4.991,498,4.578,499,5.618,500,5.618,501,5.618,502,4.991,503,5.878,504,4.578,505,5.618]],["t/46",[22,0.77,54,2.768,79,3.951,95,1.988,104,1.597,133,2.12,164,3.61,202,3.023,258,1.726,273,2.493,275,4.418,314,1.947,414,2.932,479,4.163,485,4.737,503,6.597,504,4.737,506,7.563,507,5.164,508,5.813,509,5.813,510,7.371,511,5.813,512,5.813,513,5.813,514,4.399]],["t/48",[17,3.487,22,0.747,26,3.767,95,2.074,100,4.122,104,1.666,122,2.737,137,0.983,164,3.767,471,5.754,479,5.422,482,6.726,488,6.726,491,5.388,504,4.943,515,7.904,516,6.065,517,6.065,518,4.943,519,5.388]],["t/50",[22,0.805,95,2.254,104,1.811,520,8.564,521,6.59,522,6.59,523,6.59,524,6.59,525,6.59,526,6.59,527,6.59,528,6.59,529,6.59,530,6.59]],["t/52",[41,7.06,62,4.076,64,3.486,90,6.122,106,2.255,115,1.534,147,4.815,153,1.417,268,4.324,284,6.476,304,2.702,326,6.966,353,1.263,429,3.966,471,3.699,479,3.486,531,6.563,532,5.83,533,6.563,534,4.867,535,4.867,536,7.947,537,7.947,538,4.324,539,4.867,540,4.867,541,6.563,542,6.563,543,6.563,544,4.867,545,3.486,546,4.324,547,4.867]],["t/55",[22,0.626,48,6.144,106,3.205,128,2.014,142,4.128,254,4.953,548,6.916,549,6.916,550,5.256,551,3.976,552,6.916,553,6.916,554,6.916]],["t/57",[21,1.714,184,4.011,555,7.471]],["t/59",[1,3.059,22,0.676,28,3.551,36,1.65,42,2.311,76,3.743,98,0.948,103,3.193,118,2.052,119,2.939,127,2.171,128,1.434,142,2.939,267,3.059,291,3.527,363,3.527,366,5.877,367,6.087,497,4.375,545,3.527,550,3.743,556,4.924,557,4.013,558,4.013,559,4.013,560,5.39,561,4.013,562,4.013,563,4.924,564,7.094,565,4.924,566,4.924,567,3.347,568,6.615,569,3.347,570,4.375,571,4.924,572,6.615,573,4.924,574,7.469,575,4.924,576,4.924,577,4.924,578,4.924]],["t/61",[8,3.023,17,2.798,21,0.972,28,2.613,33,3.966,37,1.775,38,2.836,40,2.531,59,2.087,118,1.337,128,1.911,178,3.308,188,5.942,297,3.023,339,5.348,377,3.486,400,4.324,545,5.692,550,4.988,564,7.371,570,5.83,579,6.563,580,5.348,581,4.867,582,4.867,583,4.324,584,4.867,585,4.867,586,4.867,587,4.867,588,4.867,589,4.867,590,4.867,591,4.867,592,4.867,593,3.486,594,4.867,595,4.867,596,4.867,597,4.867,598,4.867]],["t/64",[0,3.515,22,0.871,42,2.848,49,3.769,69,2.659,71,3.019,72,3.352,116,2.312,119,2.76,127,2.08,135,0.996,137,0.75,144,3.313,158,3.515,159,2.483,168,5.838,178,3.144,205,2.873,258,2.31,377,3.313,410,3.769,599,3.769,600,4.109,601,4.625,602,4.625,603,4.625,604,3.313,605,4.625,606,4.109,607,3.515,608,4.109,609,4.625]],["t/66",[1,2.512,21,1.344,22,0.856,33,3.296,40,2.103,42,2.016,71,2.749,72,3.739,96,3.743,103,2.623,115,1.819,127,1.327,135,1.242,137,1.19,140,3.593,145,2.103,155,2.623,167,3.074,168,2.897,177,2.749,178,3.923,182,3.593,184,2.171,205,3.585,236,2.414,244,3.593,266,5.484,267,3.585,273,2.475,275,3.074,279,2.749,334,3.296,414,2.04,608,5.128,610,5.772,611,4.045,612,4.045,613,5.772,614,4.045,615,4.045,616,4.045,617,4.045,618,3.593,619,4.045,620,4.045,621,4.045,622,4.045,623,4.045,624,4.045,625,4.045,626,3.593,627,4.045,628,2.512]],["t/68",[22,0.606,72,3.727,137,1.086,167,5.088,168,6.175,178,4.551,188,4.795,293,5.456,314,2.243,394,5.948,629,6.695,630,6.695,631,6.695,632,6.695]],["t/70",[4,1.074,8,3.466,22,0.828,36,1.869,40,2.902,42,1.949,45,2.127,81,4.547,153,1.625,191,2.393,202,2.902,234,2.8,258,1.657,312,6.38,347,4.958,353,1.448,478,4.547,583,4.958,633,5.58,634,4.958,635,6.38,636,5.58,637,5.58,638,4.241,639,5.58,640,4.958,641,5.58,642,7.182,643,7.182,644,5.58]],["t/72",[22,0.859,30,1.722,71,3.32,72,2.8,98,0.83,116,2.542,118,2.264,127,2.704,135,1.501,136,1.71,152,1.763,153,1.256,154,3.517,155,2.798,156,4.924,157,1.446,159,3.743,258,2.361,414,4.011,606,3.834,635,6.194,645,4.898,646,7.553,647,7.553]],["t/74",[54,3.496,59,3.148,71,3.496,72,3.401,95,2.511,96,4.76]],["t/77",[1,2,4,0.62,8,3.66,22,0.869,28,1.729,36,2.203,37,0.72,70,2.307,71,1.534,72,1.492,98,0.939,116,2.398,121,2.158,127,2.319,128,0.938,135,1.415,137,0.791,138,4.997,142,1.922,143,4.006,152,1.994,153,1.421,177,2.189,187,1.625,191,1.381,234,1.256,258,2.506,267,3.031,273,1.381,308,2.861,313,1.922,314,1.079,348,2.861,401,3.165,414,1.625,599,3.977,648,2.625,649,3.221,650,5.893,651,3.221,652,2.625,653,4.336,654,3.221,655,7.956,656,4.881,657,8.146,658,3.221,659,4.336,660,2.861]],["t/79",[7,1.819,22,0.853,36,2.844,42,2.564,108,0.865,116,2.105,118,2.333,135,1.242,161,4.387,191,2.475,252,5.128,267,4.558,272,4.387,276,3.743,314,1.934,466,5.128,661,5.772,662,5.772,663,5.772]],["t/81",[4,0.608,7,1.835,8,2.988,21,0.961,22,0.84,32,2.575,37,1.301,45,1.833,98,1.121,107,1.016,108,1.05,110,1.232,113,0.747,115,2.208,118,1.322,119,3.476,120,2.774,128,0.92,132,2.323,137,0.512,139,1.104,152,1.291,184,1.696,187,2.427,205,1.963,275,2.402,278,1.886,287,5.61,291,2.263,297,1.963,314,1.951,342,5.785,353,1.248,363,2.263,367,3.92,369,2.575,396,1.963,403,2.263,441,7.027,467,6.557,519,4.274,660,2.807,664,4.81,665,3.777,666,7.381,667,3.16,668,3.16,669,6.511,670,2.807,671,1.696,672,2.263,673,5.825,674,4.81,675,2.871,676,3.16,677,3.16,678,3.16,679,3.16,680,3.16,681,3.16,682,3.16,683,2.807,684,2.807,685,3.16,686,3.16,687,3.16]],["t/83",[4,1.046,10,2.823,21,1.5,22,0.832,42,1.3,45,2.447,95,1.273,107,1.747,108,1.244,110,1.451,111,2.119,112,2.14,113,1.284,115,2.023,133,1.357,137,1.041,139,1.898,184,3.447,185,1.357,189,1.998,193,2.413,246,3.306,272,2.828,279,2.529,296,2.665,297,2.311,314,1.247,359,2.897,376,2.665,386,3.033,388,3.033,403,2.665,551,3.125,626,3.306,659,3.306,665,4.869,688,3.306,689,3.721,690,3.721,691,3.721,692,3.721,693,3.721,694,3.721,695,3.721,696,3.721,697,3.721,698,2.14,699,3.721,700,5.435,701,3.033,702,3.721,703,4.828,704,4.13,705,2.828,706,3.306,707,5.435,708,3.721,709,2.311,710,3.721,711,1.387,712,3.721,713,2.828,714,3.721]],["t/85",[18,5.829,24,4.638,102,3.97,250,5.829,297,4.442,299,5.829,715,7.152,716,4.269,717,7.152]],["t/87",[4,1.239,8,2.938,10,2.83,21,0.945,22,0.866,37,1.057,73,3.387,98,0.91,102,2.625,108,1.097,118,1.3,136,1.16,142,2.823,143,4.375,215,4.202,235,4.202,261,4.202,272,4.892,353,1.227,368,3.854,532,4.202,604,4.61,706,5.718,711,2.399,718,4.73,719,4.73,720,3.854,721,4.73,722,6.437,723,5.718,724,4.73,725,4.73,726,4.73,727,4.73,728,4.73,729,4.73,730,4.73]],["t/89",[4,1.268,10,2.153,22,0.847,43,4.349,45,2.511,107,2.118,108,1.246,109,1.857,110,1.909,115,2.076,118,1.345,127,1.607,153,1.425,189,2.628,216,5.853,224,2,240,3.788,264,3.041,273,2.825,414,2.47,698,2.815,720,5.369,731,4.895,732,4.349,733,4.895,734,4.349,735,4.349,736,5.853,737,4.349,738,4.895,739,4.895,740,4.895,741,4.349]],["t/91",[4,1.067,22,0.842,95,1.896,107,1.782,108,1.254,109,1.238,113,1.31,114,2.883,127,1.819,139,1.936,161,4.213,191,2.377,193,3.595,262,2.569,352,6.451,645,3.595,648,4.517,742,6.353,743,4.925,744,4.925,745,5.543,746,4.925,747,4.925,748,4.925,749,4.925,750,4.925,751,4.925,752,5.543]],["t/94",[30,3.048,57,2.02,67,4.183,82,5.807,89,6.226,90,5.472,91,5.807,92,5.467,93,6.788,137,0.998,403,4.408,406,5.467,580,5.015,665,3.991,688,5.467,753,6.154,754,6.154,755,6.154,756,6.154,757,4.677,758,4.408,759,6.154]],["t/96",[4,1.672,22,0.691,30,3.315,104,2.455,105,2.726,187,3.854,191,2.639,211,5.467,265,5.467,314,2.559,638,4.677,760,7.64,761,7.64]],["t/98",[4,1.258,22,0.836,30,2.609,104,1.797,107,2.102,108,1.189,113,1.545,115,2.499,224,2.671,671,3.51,762,3.884,763,4.24]],["t/100",[4,1.258,22,0.836,30,2.609,104,1.797,107,2.102,108,1.189,113,1.545,115,2.499,224,2.671,671,3.51,764,4,765,6.538]],["t/102",[22,0.872,95,1.735,98,0.976,101,3.634,115,2.547,127,2.761,147,3.29,155,3.29,221,3.856,258,2.399,273,2.894,279,3.448,304,3.746,723,4.507,732,4.507,766,4.587,767,4.191,768,3.623,769,2.126,770,3.634]],["t/105",[4,0.991,22,0.881,30,2.055,37,0.773,95,1.183,104,1.415,107,1.656,108,0.772,110,2.008,113,1.217,115,2.738,116,2.244,120,2.453,127,2.726,137,0.561,191,2.209,224,2.104,258,2.024,262,3.158,267,2.149,273,2.923,276,3.34,314,1.159,514,2.065,766,4.633,768,2.765,771,3.46,772,3.34,773,5.151,774,3.46,775,3.46,776,2.065]],["t/107",[4,0.937,7,1.534,22,0.874,30,1.942,98,0.937,104,1.337,107,1.565,108,0.984,110,1.898,113,1.15,115,2.694,116,2.393,127,2.154,137,0.789,191,2.814,224,1.988,258,1.949,262,2.255,273,3.184,314,1.63,401,3.156,514,2.905,766,3.308,768,2.613,776,2.905,777,4.256,778,4.867]],["t/109",[4,0.843,7,1.381,22,0.846,30,1.749,42,2.134,57,1.438,59,2.619,104,1.204,107,1.409,108,0.916,110,1.709,113,1.036,115,1.925,125,1.834,137,0.99,177,4.152,187,2.211,202,4.159,218,2.992,224,1.79,258,1.814,273,1.88,314,1.468,373,4.642,395,4.642,396,2.722,455,2.842,495,3.331,514,2.616,567,4.152,569,2.979,607,4.642,758,3.139,766,2.979,769,2.215,779,3.572,780,3.894,781,4.642,782,4.375,783,1.978,784,2.147,785,2.031,786,3.894,787,4.383,788,3.139,789,3.139,790,3.139]],["t/111",[4,0.802,7,1.313,22,0.858,30,1.662,42,2.059,57,1.934,104,1.144,107,1.339,108,0.883,110,1.624,113,0.984,115,1.857,125,1.743,137,0.675,187,2.973,191,2.527,193,2.701,202,4.587,224,1.701,258,1.75,273,2.933,396,2.587,401,2.701,455,2.701,495,3.166,514,2.486,567,4.006,569,4.006,758,2.983,766,2.831,769,2.343,777,3.822,779,3.394,782,4.221,783,1.88,784,2.041,785,1.93,786,3.701,788,4.221,789,4.221,790,4.221,791,3.701,792,4.165]],["t/113",[4,0.689,7,1.128,22,0.849,30,1.428,37,1.18,42,2.192,54,1.704,57,1.174,59,1.534,69,3.036,95,1.224,98,1.016,104,0.983,106,2.447,107,1.151,108,0.792,110,1.395,113,0.845,115,1.664,116,1.305,125,1.497,137,0.856,158,4.77,164,2.222,187,3.166,188,2.563,191,1.534,202,3.843,224,1.462,227,2.916,258,1.568,259,2.136,273,2.691,293,2.916,380,2.916,396,2.222,401,2.32,455,2.32,495,2.72,514,2.136,567,2.432,569,2.432,672,2.563,758,2.563,766,2.432,768,1.921,769,2.437,770,4.495,772,2.32,777,2.32,779,2.916,782,2.563,783,1.615,784,1.753,788,2.563,789,2.563,790,2.563,791,3.179,793,6.302,794,3.578,795,3.578,796,3.578,797,6.276,798,2.916,799,3.578,800,3.578,801,5.28]],["t/115",[59,3.016,137,1.14,177,4.78,218,3.445,373,5.345,395,5.345,607,5.345,769,2.216,780,6.248,781,5.345,802,6.248]],["t/117",[12,4.345,17,3.065,30,2.782,89,4.345,95,1.824,106,2.471,137,1.449,147,5.038,701,4.345,716,5.235,768,4.709,769,2.197,770,4.994,777,4.521,803,5.332,804,5.332,805,5.332,806,4.869,807,6.902,808,5.332]],["t/119",[59,2.99,95,2.385,97,4.995,137,1.131,164,4.331,671,3.744,809,6.196,810,6.196,811,6.196,812,6.196,813,6.196,814,6.196]],["t/121",[4,1.754,7,1.832,21,1.473,28,3.957,128,2.357,137,1.195,483,5.164,634,5.164,703,7.191,815,5.813,816,5.813,817,5.813,818,5.813,819,5.813,820,7.371,821,5.813,822,5.813,823,7.371,824,5.813,825,5.813,826,5.813]],["t/123",[54,3.406,57,2.347,59,3.067,71,3.406,72,3.314,95,2.446,98,1.61,101,5.122]],["t/125",[4,1.406,21,1.46,22,0.857,38,2.046,104,1.575,105,2.046,108,1.206,109,1.281,110,2.849,117,1.516,134,1.545,135,1.573,136,1.792,139,2.003,827,5.733,828,1.736,829,1.736,830,6.492,831,3.718]],["t/127",[4,1.283,21,1.332,22,0.862,104,1.369,105,1.778,107,2.144,108,1.126,109,1.113,110,2.599,111,2.599,112,3.833,113,1.575,114,3.467,115,2.101,117,1.318,134,1.343,135,1.435,136,1.635,139,1.741,359,3.009,551,3.833,709,4.141,762,2.441,828,1.509,829,1.509,831,3.231,832,3.569]],["t/129",[4,1.347,21,1.399,22,0.866,104,1.474,105,1.915,108,1.168,109,1.199,110,2.73,117,1.419,134,1.446,135,1.507,136,1.717,139,1.874,713,5.321,762,2.629,828,1.625,829,1.625,831,3.479,832,3.843,833,4.373,834,4.373,835,5.706,836,4.373]],["t/131",[4,1.224,15,3.309,21,1.271,22,0.869,54,2.215,104,1.278,105,1.66,108,1.087,109,1.039,110,2.481,117,1.23,134,1.254,135,1.37,136,1.561,139,1.625,335,3.532,762,2.278,828,1.408,829,1.408,831,3.016,832,3.331,837,3.79,838,5.552,839,6.356,840,5.186,841,3.798,842,3.798,843,5.186,844,3.79]],["t/133",[4,1.248,15,3.933,21,1.296,22,0.854,36,1.269,37,0.846,38,1.352,45,1.444,104,1.041,105,1.352,108,1.067,109,1.449,110,2.147,111,2.147,115,1.735,117,1.456,134,1.484,135,1.628,136,1.746,137,0.893,139,1.323,296,2.713,353,0.983,376,2.713,604,3.943,762,1.856,828,1.147,829,1.147,831,2.457,832,2.713,838,2.575,841,2.261,842,3.286,845,4.839,846,4.839,847,3.087,848,3.087,849,3.087,850,4.487,851,4.487,852,4.487,853,3.087,854,4.487,855,4.487,856,5.506,857,4.487,858,3.087,859,1.125]],["t/135",[15,3.224,17,3.565,22,0.754,26,3.851,62,3.851,64,4.44,254,4.44,338,4.44,346,4.712,757,4.712,784,3.76,841,4.581,842,3.7,845,5.217,846,5.217,860,5.052,861,5.052,862,5.052,863,5.052,864,5.052,865,5.052]],["t/137",[4,1.036,21,1.075,22,0.868,37,1.567,45,1.4,108,1.209,110,2.098,115,1.157,118,2.145,127,2.091,135,1.78,136,1.832,139,1.88,184,2.89,258,1.09,262,2.952,353,1.653,551,3.095,599,5.192,645,3.49,665,3.49,704,5.332,705,4.091,709,3.343,762,1.799,831,3.49,832,2.63,859,1.892,866,2.993,867,2.993,868,4.386,869,2.993,870,2.993,871,2.993,872,4.386]],["t/140",[186,3.345,762,3.727]],["t/142",[4,1.283,7,1.57,22,0.839,25,3.569,73,3.569,108,1.126,111,2.599,118,1.369,137,0.808,139,1.741,202,2.591,249,4.061,258,1.98,359,2.248,363,3.569,377,3.569,518,4.061,551,2.865,675,2.974,735,5.923,772,3.231,873,3.787,874,3.569,875,4.983,876,4.983,877,4.983,878,4.983,879,4.983,880,4.427,881,7.514,882,4.983,883,4.983,884,4.983,885,4.983,886,4.983,887,4.983,888,4.983,889,4.983,890,4.983,891,4.983,892,4.983]],["t/144",[54,3.406,57,2.347,59,3.067,71,3.406,72,3.314,95,2.446,98,1.61,101,5.122]],["t/146",[4,1.278,10,2.92,21,1.497,22,0.856,37,1.107,38,1.768,98,1.278,104,1.361,105,1.768,108,1.2,109,1.107,117,1.31,134,1.335,135,1.612,136,1.629,137,0.803,139,1.73,145,2.576,218,2.427,225,3.212,228,2.75,229,2.75,231,3.367,353,1.285,828,1.5,829,1.5,859,1.471,893,4.953,894,6.641,895,4.307,896,2.75,897,3.548]],["t/148",[4,1.158,10,2.647,21,1.389,22,0.863,37,0.959,98,1.158,104,1.18,105,1.532,107,1.936,108,1.13,109,0.959,111,2.347,112,3.461,113,1.422,114,3.131,115,1.897,117,1.136,134,1.157,135,1.497,136,1.477,137,0.696,139,1.5,145,2.233,189,3.232,218,2.103,225,2.784,228,2.383,229,2.383,231,2.918,353,1.114,359,2.717,551,3.461,709,3.739,764,2.166,828,1.3,829,1.3,859,1.275,895,3.997,896,2.383,897,3.075,898,3.075]],["t/150",[4,1.211,10,2.767,21,1.437,22,0.866,37,1.022,98,1.211,104,1.257,105,1.632,108,1.161,109,1.022,117,1.21,134,1.233,135,1.548,136,1.543,137,0.742,139,1.598,145,2.379,189,3.378,218,2.241,225,2.966,228,2.539,229,2.539,231,3.109,353,1.187,713,4.782,764,2.308,828,1.385,829,1.385,833,3.728,834,3.728,835,5.127,836,3.728,859,1.358,895,4.135,896,2.539,897,3.276,898,3.276]],["t/152",[4,1.111,10,2.538,15,3.002,21,1.344,22,0.868,37,0.904,54,1.926,98,1.111,104,1.111,105,1.443,108,1.1,109,0.904,117,1.07,134,1.09,135,1.448,136,1.416,137,0.656,139,1.413,145,2.103,189,3.099,218,1.981,225,2.623,228,2.245,229,2.245,231,2.749,335,3.204,353,1.05,764,2.04,828,1.225,829,1.225,837,3.296,838,5.274,839,5.98,840,4.703,841,3.445,842,3.445,843,4.703,844,3.296,859,1.201,895,3.869,896,2.245,897,2.897,898,2.897]],["t/154",[4,1.167,10,2.224,15,3.75,21,1.345,22,0.856,36,1.131,37,1.13,38,1.205,45,1.287,98,0.973,104,0.928,105,1.205,108,1.081,109,1.355,111,1.972,115,1.594,117,1.338,134,1.363,135,1.629,136,1.652,137,0.983,139,1.179,145,1.756,189,2.715,218,1.654,225,2.189,228,1.874,229,1.874,231,2.295,296,2.418,353,1.312,376,2.418,604,3.622,741,4.493,764,1.703,828,1.022,829,1.022,838,2.295,841,2.015,842,3.018,845,4.577,846,4.577,847,2.751,848,2.751,849,2.751,850,4.121,851,4.121,852,4.121,853,2.751,854,4.121,855,4.121,857,4.121,858,2.751,859,1.502,895,3.486,896,1.874,897,2.418,898,2.418]],["t/156",[15,3.224,17,3.565,22,0.754,26,3.851,62,3.851,64,4.44,254,4.44,338,4.44,346,4.712,757,4.712,784,3.76,841,4.581,842,3.7,845,5.217,846,5.217,860,5.052,861,5.052,862,5.052,863,5.052,864,5.052,865,5.052]],["t/158",[4,1.077,10,2.462,22,0.863,37,1.608,45,1.477,108,1.229,115,1.221,118,2.185,127,2.156,135,1.712,136,1.612,139,1.955,184,3.005,189,3.005,258,1.151,262,3.045,353,1.705,551,3.219,645,3.63,665,3.63,704,5.469,705,4.255,709,3.477,764,1.955,859,1.951,866,3.159,867,3.159,868,4.562,869,3.159,870,3.159,871,3.159,872,4.562,898,2.776,899,6.571]],["t/161",[186,3.697,314,2.417,762,4.118,764,4.241,806,4.004]],["t/163",[54,3.406,57,2.347,59,3.067,71,3.406,72,3.314,95,2.446,98,1.61,101,5.122]],["t/165",[4,1.22,21,1.445,22,0.86,37,1.033,38,2.262,45,1.763,98,1.22,104,1.271,105,1.65,108,1.166,109,1.033,117,1.223,134,1.247,135,1.557,136,1.555,137,0.75,139,1.616,145,2.405,218,2.266,228,2.567,229,2.567,353,1.2,828,1.401,829,1.401,830,5.632,859,1.373,895,4.159,896,2.567,900,3.144,901,4.625,902,3.937,903,3.937,904,4.309,905,4.309,906,4.54]],["t/167",[4,1.111,21,1.344,22,0.868,37,0.904,38,1.443,45,1.542,98,1.111,104,1.111,105,1.443,107,1.856,108,1.1,109,0.904,111,2.25,112,3.318,113,1.364,114,3.002,115,1.819,117,1.07,134,1.09,135,1.448,136,1.416,137,0.656,139,1.413,145,2.103,218,1.981,228,2.245,229,2.245,313,2.414,353,1.05,359,2.604,551,3.318,709,3.585,764,2.04,828,1.225,829,1.225,859,1.201,895,3.869,896,2.245,900,2.749,902,3.585,903,3.585,904,3.923,905,3.923,906,4.134]],["t/169",[4,1.158,21,1.389,22,0.871,37,0.959,38,1.532,45,1.636,98,1.158,104,1.18,105,1.532,108,1.13,109,0.959,117,1.136,134,1.157,135,1.497,136,1.477,137,0.696,139,1.5,145,2.233,218,2.103,228,2.383,229,2.383,313,2.562,353,1.114,713,4.576,764,2.166,828,1.3,829,1.3,833,3.499,834,3.499,835,4.906,836,3.499,859,1.275,895,3.997,896,2.383,900,2.918,902,3.739,903,3.739,904,4.092,905,4.092,906,4.312]],["t/171",[4,1.067,15,2.882,21,1.302,22,0.871,37,0.854,38,1.364,45,1.457,54,1.821,98,1.067,104,1.05,105,1.364,108,1.072,109,0.854,117,1.011,134,1.031,135,1.403,136,1.359,137,0.62,139,1.335,145,1.988,218,1.873,228,2.122,229,2.122,313,2.282,335,3.077,353,0.992,764,1.929,828,1.158,829,1.158,837,3.116,838,5.159,839,5.827,840,4.517,841,3.308,842,3.308,843,4.517,844,3.116,859,1.135,895,3.749,896,2.122,900,2.599,902,3.442,903,3.442,904,3.767,905,3.767,906,3.97]],["t/173",[4,1.134,15,3.675,21,1.314,22,0.861,36,1.079,37,1.09,38,1.742,45,1.86,98,0.939,104,0.885,105,1.149,108,1.059,109,1.317,111,1.903,115,1.538,117,1.291,134,1.316,135,1.6,136,1.613,137,0.955,139,1.125,145,1.675,218,1.578,228,1.788,229,1.788,296,2.307,313,1.922,353,1.267,376,2.307,604,3.495,764,1.625,828,0.975,829,0.975,838,2.189,841,1.922,842,2.913,845,4.469,846,4.469,847,2.625,848,2.625,849,2.625,850,3.977,851,3.977,852,3.977,853,2.625,854,3.977,855,3.977,857,3.977,858,2.625,859,1.449,895,3.388,896,1.788,900,2.189,902,3.031,903,3.031,904,3.317,905,3.317,906,3.495,907,4.881]],["t/175",[15,3.224,17,3.565,22,0.754,26,3.851,62,3.851,64,4.44,254,4.44,338,4.44,346,4.712,757,4.712,784,3.76,841,4.581,842,3.7,845,5.217,846,5.217,860,5.052,861,5.052,862,5.052,863,5.052,864,5.052,865,5.052]],["t/177",[4,1.01,22,0.868,37,1.542,38,1.266,45,1.352,108,1.254,115,1.118,118,2.118,127,2.049,135,1.659,136,1.532,139,1.833,184,2.817,258,1.053,262,2.894,313,2.117,353,1.621,551,3.017,645,3.403,665,3.403,704,5.244,705,3.988,709,3.259,764,1.79,859,1.854,866,2.891,867,2.891,868,4.276,869,2.891,870,2.891,871,2.891,872,4.276,900,2.412,902,3.259,903,3.259,904,3.567,905,3.567,908,5.247,909,5.247,910,6.244]],["t/180",[186,3.697,314,2.417,762,4.118,764,4.241,806,4.004]],["t/182",[22,0.647,30,2.212,54,2.64,69,3.187,71,4.123,72,3.876,91,4.213,95,1.896,98,1.376,116,2.021,142,3.308,143,3.768,144,3.97,152,2.264,153,2.082,154,4.517,155,3.595,156,5.827,157,1.857,164,3.443,165,4.517,166,4.925,167,4.213,168,3.97,169,4.925,289,2.501,783,2.501,784,2.716,785,2.569,911,5.543,912,5.543,913,4.925]],["t/184",[4,0.724,7,0.729,10,1.655,21,0.462,22,0.858,45,0.882,96,1.5,102,1.284,107,1.21,108,1.1,109,1.586,110,1.467,113,1.124,114,1.203,115,1.726,117,0.612,118,1.034,121,0.759,127,1.561,134,0.624,135,1.179,136,0.567,137,0.61,161,2.86,184,2.941,189,1.242,191,2.039,193,1.5,240,2.163,241,2.055,249,1.885,258,0.687,262,1.744,291,3.924,337,1.885,352,3.876,353,0.6,359,1.698,368,1.885,369,3.066,377,2.695,396,1.437,434,1.758,461,2.055,477,2.055,478,1.885,481,2.055,484,2.055,502,2.055,545,1.657,551,2.734,640,4.867,645,1.5,648,3.876,672,2.695,683,2.055,698,2.734,709,2.954,720,3.066,734,4.225,736,2.055,737,3.343,742,3.343,743,2.055,744,2.055,746,3.343,747,2.055,748,5.356,749,2.055,750,2.055,751,3.343,874,2.695,914,3.763,915,2.313,916,2.313,917,3.763,918,3.763,919,2.055,920,2.313,921,3.763,922,2.313,923,2.313,924,4.756,925,4.225,926,5.479,927,6.028,928,5.479,929,3.763,930,2.313,931,2.313,932,2.313,933,3.763,934,2.313,935,4.756,936,2.313,937,3.763,938,2.313,939,2.313,940,2.313,941,2.313,942,2.313,943,2.313,944,2.313,945,2.313,946,2.313,947,2.313,948,2.313]],["t/187",[7,1.851,21,0.828,22,0.844,36,2.624,37,0.926,38,1.479,42,2.383,57,1.36,98,0.798,108,1.174,109,0.926,113,1.387,117,1.096,118,1.874,121,1.927,122,2.65,125,2.457,126,2.29,128,1.207,129,2.29,130,1.616,131,1.654,132,1.479,133,1.511,134,1.117,135,1.468,136,1.44,137,0.672,152,1.693,153,1.71,157,1.388,185,1.511,209,3.054,234,1.616,258,1.744,289,1.87,353,1.076,711,1.545,769,1.306,785,2.721,828,1.255,829,1.255,859,1.231,949,3.15,950,4.463,951,2.877,952,1.734,953,1.654,954,1.616]],["t/189",[7,2.282,21,0.785,22,0.859,36,2.426,37,0.878,42,2.313,57,1.29,98,0.756,108,1.15,109,0.878,113,1.336,117,1.04,118,1.82,121,1.856,122,2.552,125,2.366,126,2.205,128,1.144,129,2.205,130,1.533,131,1.568,132,1.403,133,1.433,134,1.06,135,1.426,136,1.387,137,0.637,152,1.606,153,1.646,157,1.317,159,3.036,185,1.433,209,2.941,234,1.533,258,1.679,289,1.774,314,1.894,353,1.02,711,1.465,769,1.239,785,2.62,828,1.19,829,1.19,859,1.167,951,2.77,952,1.645,953,1.568,954,1.533,955,2.441,956,1.645]],["t/191",[7,2.268,21,0.774,22,0.862,36,2.557,37,0.866,42,2.295,57,1.272,98,0.746,108,1.144,109,0.866,113,1.323,117,1.025,118,1.805,121,1.837,122,2.526,125,2.342,126,2.183,128,1.129,129,2.183,130,1.511,131,1.547,132,1.383,133,1.413,134,1.045,135,1.414,136,1.373,137,0.628,152,1.583,153,1.63,157,1.298,159,3.005,185,1.413,209,2.911,234,1.511,258,1.662,289,1.749,314,1.875,353,1.006,711,1.445,769,1.221,785,2.594,828,1.174,829,1.174,859,1.151,951,2.742,952,1.622,953,1.547,954,1.511,955,2.408,956,1.622]],["t/194",[186,3.345,769,2.397]],["t/196",[186,3.345,956,3.183]],["t/199",[7,1.812,21,0.804,22,0.847,36,2.778,37,0.899,38,1.436,42,2.344,57,1.321,98,0.775,108,1.161,109,0.899,117,1.065,118,1.844,122,2.595,123,2.529,124,3.088,125,2.407,126,2.242,128,1.172,129,2.242,130,1.569,131,1.606,132,1.436,133,1.468,134,1.085,135,1.445,136,1.411,137,0.653,152,1.644,153,1.675,157,1.348,185,1.468,234,1.569,289,1.816,353,1.045,711,1.5,769,1.268,783,2.595,828,1.219,829,1.219,859,1.195,949,3.059,950,4.372,951,2.818,952,1.684,953,1.606,954,1.569,957,3.088,958,2.665,959,4.119]],["t/201",[7,2.253,21,0.764,22,0.861,36,2.652,37,0.854,42,2.277,57,1.255,98,0.736,108,1.138,109,0.854,117,1.011,118,1.791,122,2.501,123,2.437,124,2.976,125,2.319,126,2.161,128,1.113,129,2.161,130,1.491,131,1.525,132,1.364,133,1.394,134,1.031,135,1.403,136,1.359,137,0.62,152,1.562,153,1.614,157,1.281,159,2.976,185,1.394,234,1.491,289,1.725,314,1.857,353,0.992,711,1.425,769,1.205,783,2.501,828,1.158,829,1.158,859,1.135,951,2.715,952,1.6,953,1.525,954,1.491,955,2.375,956,1.6,957,2.976,958,2.568,959,3.97]],["t/203",[7,2.239,21,0.753,22,0.863,36,2.724,37,0.843,42,2.26,57,1.238,98,0.726,108,1.132,109,0.843,117,0.998,118,1.778,122,2.476,123,2.413,124,2.946,125,2.296,126,2.14,128,1.098,129,2.14,130,1.47,131,1.505,132,1.346,133,1.375,134,1.017,135,1.392,136,1.346,137,0.611,152,1.541,153,1.598,157,1.263,159,2.946,185,1.375,234,1.47,289,1.702,314,1.838,353,0.979,711,1.406,769,1.188,783,2.476,828,1.142,829,1.142,859,1.12,951,2.688,952,1.578,953,1.505,954,1.47,955,2.343,956,1.578,957,2.946,958,2.543,959,3.93]],["t/206",[186,3.345,769,2.397]],["t/208",[186,3.345,956,3.183]],["t/211",[7,1.838,21,0.82,22,0.859,36,2.614,37,1.303,38,1.465,57,1.347,98,0.79,108,1.17,109,0.917,113,1.378,116,2.127,117,1.085,118,1.864,121,1.914,122,2.632,123,2.564,124,3.131,126,2.274,127,2.561,128,1.195,129,2.274,130,1.6,131,1.637,132,1.465,133,1.497,134,1.106,135,1.46,136,1.43,137,0.665,153,1.195,157,1.375,185,1.497,262,2.702,353,1.065,711,1.53,828,1.243,829,1.243,859,1.219,949,3.119,950,4.432,952,1.717,953,1.637,954,1.6]],["t/213",[7,2.273,21,0.778,22,0.868,36,2.416,37,1.255,57,1.278,98,0.749,108,1.146,109,0.87,113,1.327,116,2.048,117,1.03,118,1.81,121,1.843,122,2.535,123,2.47,124,3.015,126,2.19,127,2.509,128,1.134,129,2.19,130,1.518,131,1.554,132,1.39,133,1.42,134,1.05,135,1.418,136,1.378,137,0.631,153,1.134,157,1.305,159,3.015,185,1.42,262,2.603,314,1.882,353,1.011,711,1.452,828,1.179,829,1.179,859,1.156,952,1.629,953,1.554,954,1.518,955,2.419,956,1.629]],["t/215",[7,2.258,21,0.767,22,0.869,36,2.547,37,1.242,57,1.26,98,0.739,108,1.14,109,0.858,113,1.314,116,2.028,117,1.016,118,1.796,121,1.825,122,2.509,123,2.445,124,2.985,126,2.168,127,2.495,128,1.118,129,2.168,130,1.497,131,1.532,132,1.371,133,1.401,134,1.035,135,1.407,136,1.364,137,0.623,153,1.118,157,1.287,159,2.985,185,1.401,262,2.577,314,1.863,353,0.997,711,1.432,828,1.163,829,1.163,859,1.14,952,1.607,953,1.532,954,1.497,955,2.385,956,1.607]],["t/218",[186,3.345,956,3.183]],["t/221",[7,1.788,21,0.789,22,0.851,36,2.575,37,0.882,38,1.409,42,2.32,57,1.296,98,0.76,108,1.153,109,0.882,113,1.341,117,1.045,118,1.825,121,1.862,123,2.495,125,2.374,126,2.212,128,1.15,129,2.212,130,1.54,131,1.576,132,1.409,133,1.44,134,1.065,135,1.429,136,1.392,137,0.64,152,1.613,153,1.652,157,1.323,185,1.44,187,2.862,209,2.951,234,1.54,258,1.685,289,1.782,353,1.025,711,1.472,769,1.244,784,2.78,828,1.196,829,1.196,859,1.173,949,3.002,950,4.312,951,2.78,952,1.652,953,1.576,954,1.54,958,2.629,960,4.064]],["t/223",[7,2.234,21,0.75,22,0.863,36,2.375,37,0.839,42,2.254,57,1.232,98,0.722,108,1.13,109,0.839,113,1.292,117,0.993,118,1.773,121,1.795,123,2.405,125,2.289,126,2.133,128,1.093,129,2.133,130,1.464,131,1.498,132,1.34,133,1.369,134,1.012,135,1.389,136,1.342,137,0.609,152,1.534,153,1.593,157,1.258,159,2.937,185,1.369,187,2.759,209,2.845,234,1.464,258,1.624,289,1.694,314,1.832,353,0.974,711,1.399,769,1.183,784,2.68,828,1.137,829,1.137,859,1.115,951,2.68,952,1.571,953,1.498,954,1.464,955,2.332,956,1.571,958,2.535,960,3.918]],["t/225",[7,2.22,21,0.74,22,0.865,36,2.511,37,0.828,42,2.237,57,1.216,98,0.713,108,1.124,109,0.828,113,1.28,117,0.98,118,1.759,121,1.778,123,2.382,125,2.267,126,2.112,128,1.079,129,2.112,130,1.444,131,1.478,132,1.322,133,1.351,134,0.999,135,1.378,136,1.329,137,0.601,152,1.513,153,1.577,157,1.241,159,2.908,185,1.351,187,2.733,209,2.817,234,1.444,258,1.608,289,1.672,314,1.815,353,0.961,711,1.381,769,1.167,784,2.654,828,1.122,829,1.122,859,1.1,951,2.654,952,1.55,953,1.478,954,1.444,955,2.301,956,1.55,958,2.51,960,3.88]],["t/228",[186,3.345,769,2.397]],["t/230",[186,3.345,956,3.183]],["t/232",[8,4.192,22,0.61,54,3.214,57,2.215,59,2.894,71,3.214,72,3.127,95,2.764,96,4.376,116,2.461,138,5.129,783,3.045,784,3.306,785,3.127,913,5.996]],["t/234",[95,2.533,153,2.156,157,2.481,236,4.42,961,5.628]],["t/236",[7,1.925,21,0.876,22,0.834,37,0.979,38,1.564,42,2.456,57,1.438,98,1.175,108,1.054,109,0.979,113,1.443,117,1.159,118,1.932,121,2.004,122,2.756,125,2.556,126,2.381,128,1.276,129,2.381,130,1.709,131,1.749,132,1.564,133,1.598,134,1.182,135,1.513,136,1.498,137,0.711,152,1.79,153,1.276,157,1.468,185,1.598,209,3.177,234,1.709,258,1.814,289,1.978,353,1.138,593,3.139,711,1.634,769,1.381,785,2.83,828,1.327,829,1.327,859,1.301,951,2.992,952,1.834,953,1.749,954,1.709,962,4.642]],["t/238",[7,2.333,21,0.824,22,0.855,37,0.921,42,2.376,57,1.353,98,1.126,108,1.02,109,0.921,113,1.383,117,1.091,118,1.869,119,3.493,121,1.92,122,2.641,125,2.449,126,2.282,128,1.201,129,2.282,130,1.608,131,1.646,132,1.472,133,1.504,134,1.112,135,1.464,136,1.435,137,0.669,152,1.685,153,1.201,157,1.382,185,1.504,209,3.044,234,1.608,258,1.738,289,1.861,314,1.96,353,1.07,711,1.537,769,1.3,785,2.712,828,1.249,829,1.249,859,1.225,951,2.867,952,1.726,953,1.646,954,1.608,956,1.726,963,2.954]],["t/241",[186,3.345,769,2.397]],["t/243",[186,3.345,956,3.183]],["t/245",[95,2.533,153,2.156,157,2.481,236,4.42,961,5.628]],["t/247",[7,1.911,21,0.867,22,0.821,36,2.031,37,0.969,38,1.548,42,2.442,57,1.424,98,1.167,108,1.048,109,0.969,117,1.147,118,1.921,122,2.736,123,2.667,124,3.256,125,2.537,126,2.364,128,1.263,129,2.364,130,1.691,131,1.731,132,1.548,133,1.582,134,1.169,135,1.505,136,1.487,137,0.703,152,1.772,153,1.263,157,1.453,185,1.582,234,1.691,289,1.957,353,1.126,593,3.107,711,1.617,769,1.367,783,2.736,828,1.314,829,1.314,859,1.288,951,2.971,952,1.815,953,1.731,954,1.691,957,3.256,958,2.81,959,4.343,962,4.609]],["t/249",[7,2.323,21,0.816,22,0.849,36,1.947,37,0.912,42,2.363,57,1.34,98,1.118,108,1.014,109,0.912,117,1.08,118,1.859,119,3.468,122,2.622,123,2.556,124,3.12,125,2.432,126,2.266,128,1.189,129,2.266,130,1.592,131,1.629,132,1.457,133,1.489,134,1.101,135,1.456,136,1.425,137,0.662,152,1.668,153,1.189,157,1.368,185,1.489,234,1.592,289,1.843,314,1.947,353,1.06,711,1.522,769,1.287,783,2.622,828,1.237,829,1.237,859,1.213,951,2.847,952,1.709,953,1.629,954,1.592,956,1.709,957,3.12,958,2.693,959,4.162,963,2.925]],["t/252",[186,3.345,769,2.397]],["t/254",[186,3.345,956,3.183]],["t/256",[95,2.533,153,2.156,157,2.481,236,4.42,961,5.628]],["t/258",[7,1.925,21,0.876,22,0.85,37,1.365,38,1.564,57,1.438,98,1.175,108,1.054,109,0.979,113,1.443,116,2.227,117,1.159,118,1.932,121,2.004,122,2.756,123,2.686,124,3.279,126,2.381,127,2.624,128,1.276,129,2.381,130,1.709,131,1.749,132,1.564,133,1.598,134,1.182,135,1.513,136,1.498,137,0.711,157,1.468,185,1.598,262,2.83,353,1.138,593,3.139,711,1.634,828,1.327,829,1.327,859,1.301,952,1.834,953,1.749,954,1.709,962,4.642]],["t/260",[7,2.333,21,0.824,22,0.863,37,1.307,57,1.353,98,1.126,108,1.02,109,0.921,113,1.383,116,2.134,117,1.091,118,1.869,119,3.493,121,1.92,122,2.641,123,2.573,124,3.142,126,2.282,127,2.565,128,1.201,129,2.282,130,1.608,131,1.646,132,1.472,133,1.504,134,1.112,135,1.464,136,1.435,137,0.669,157,1.382,185,1.504,262,2.712,314,1.96,353,1.07,711,1.537,828,1.249,829,1.249,859,1.225,952,1.726,953,1.646,954,1.608,956,1.726,963,2.954]],["t/262",[7,2.307,21,0.804,22,0.861,37,1.285,57,1.321,98,1.107,108,1.006,109,0.899,113,1.359,116,2.097,117,1.065,118,1.844,119,3.433,121,1.887,122,2.595,123,2.529,124,3.088,126,2.242,127,2.542,128,1.172,129,2.242,130,1.569,131,1.606,132,1.436,133,1.468,134,1.085,135,1.445,136,1.411,137,0.653,157,1.348,185,1.468,191,2.466,262,2.665,267,2.5,276,3.73,314,1.927,353,1.045,711,1.5,828,1.219,829,1.219,859,1.195,952,1.684,953,1.606,954,1.569,956,1.684,963,2.883]],["t/265",[186,3.345,956,3.183]],["t/267",[95,2.533,153,2.156,157,2.481,236,4.42,961,5.628]],["t/269",[7,1.87,21,0.84,22,0.838,37,0.94,38,1.501,42,2.402,57,1.381,98,1.142,108,1.031,109,0.94,113,1.402,117,1.113,118,1.889,121,1.948,123,2.61,125,2.483,126,2.314,128,1.225,129,2.314,130,1.64,131,1.679,132,1.501,133,1.534,134,1.134,135,1.48,136,1.456,137,0.682,152,1.719,153,1.225,157,1.409,185,1.534,187,2.994,209,3.087,234,1.64,258,1.762,289,1.898,353,1.092,593,3.013,711,1.568,769,1.326,784,2.908,828,1.274,829,1.274,859,1.249,951,2.908,952,1.76,953,1.679,954,1.64,958,2.75,960,4.251,962,4.511]],["t/271",[7,2.292,21,0.793,22,0.856,37,0.886,42,2.326,57,1.302,98,1.096,108,0.998,109,0.886,113,1.345,117,1.049,118,1.829,119,3.398,121,1.868,123,2.503,125,2.382,126,2.22,128,1.155,129,2.22,130,1.547,131,1.583,132,1.416,133,1.447,134,1.07,135,1.433,136,1.396,137,0.643,152,1.621,153,1.155,157,1.329,185,1.447,187,2.872,209,2.961,234,1.547,258,1.69,289,1.791,314,1.907,353,1.03,711,1.479,769,1.25,784,2.789,828,1.202,829,1.202,859,1.178,951,2.789,952,1.66,953,1.583,954,1.547,956,1.66,958,2.638,960,4.077,963,2.842]],["t/274",[186,3.345,769,2.397]],["t/276",[186,3.345,956,3.183]],["t/278",[4,0.692,7,1.669,22,0.858,42,2.198,45,1.37,67,2.443,98,0.692,107,1.155,108,1.161,110,1.401,111,1.401,113,0.849,114,1.869,116,1.31,118,1.455,120,2.523,127,2.065,128,1.046,135,1.354,137,0.583,139,1.255,193,2.33,224,1.468,234,1.401,266,5.658,267,3.29,273,1.541,359,1.622,363,3.794,410,2.928,498,2.928,557,2.928,558,2.928,559,2.928,560,2.928,561,2.928,562,2.928,772,2.33,783,1.622,784,1.76,785,1.665,873,2.731,874,2.574,919,3.193,964,3.594,965,3.193,966,3.193,967,3.594,968,3.193,969,3.193,970,3.193,971,3.193,972,3.193,973,3.193,974,3.594,975,3.193,976,3.193,977,3.193,978,3.594,979,3.594,980,3.594,981,3.193,982,3.193,983,3.594,984,3.594,985,3.594,986,3.594,987,3.594,988,5.297,989,3.594,990,3.594,991,3.594,992,3.594,993,3.594,994,3.594,995,3.594,996,3.594]],["t/280",[10,2.068,21,0.94,22,0.873,98,0.905,107,1.512,108,0.705,111,1.834,112,2.704,113,1.111,114,3.335,115,1.482,118,2.153,127,2.104,135,1.012,137,0.763,202,3.335,217,4.178,218,2.304,219,4.178,262,2.971,359,2.122,600,5.697,645,3.05,873,3.575,874,3.368,925,4.178,997,4.703,998,6.412,999,4.703,1000,4.703,1001,6.412,1002,4.178,1003,4.703,1004,4.703,1005,4.703]],["t/282",[4,0.603,17,3.334,21,0.627,22,0.869,25,3.426,35,2.556,45,1.195,67,2.132,96,2.034,98,0.603,108,1.103,115,0.988,118,1.314,120,2.761,121,1.029,128,0.913,137,0.508,139,1.096,193,2.034,202,2.487,224,1.281,273,1.345,300,2.246,332,2.556,359,1.415,386,2.556,388,3.898,498,3.898,503,3.898,557,2.556,558,2.556,559,2.556,560,2.556,561,3.898,562,4.725,618,2.786,873,2.384,874,2.246,880,2.786,965,2.786,966,2.786,968,2.786,969,2.786,970,2.786,971,2.786,972,2.786,973,2.786,975,2.786,976,2.786,977,4.249,981,2.786,982,2.786,1006,3.136,1007,3.136,1008,3.136,1009,4.783,1010,3.136,1011,4.783,1012,3.136,1013,3.136,1014,3.136,1015,3.136,1016,3.136,1017,3.136,1018,3.136,1019,3.136,1020,3.136,1021,3.136,1022,3.136,1023,4.783,1024,3.136,1025,3.136,1026,3.136,1027,3.136,1028,3.136,1029,3.136,1030,3.136,1031,4.783,1032,3.136,1033,4.783,1034,3.136,1035,3.136,1036,3.136,1037,3.136,1038,3.136,1039,3.136,1040,3.136,1041,3.136,1042,3.136,1043,3.136]],["t/284",[4,0.801,10,1.831,12,2.624,21,0.643,22,0.877,36,0.642,37,1.528,38,0.684,40,0.997,104,1.144,105,1.149,106,1.492,107,0.616,108,0.732,109,1.216,111,0.747,113,1.716,116,1.984,120,2.324,121,2.056,157,1.079,184,1.029,185,0.699,191,2.093,224,0.783,240,1.102,250,1.562,258,0.569,259,1.922,273,0.822,278,1.144,304,1.788,335,1.064,359,0.865,401,2.088,414,0.967,493,2,546,1.703,628,1.19,671,1.029,675,3.738,698,1.102,716,1.144,758,3.495,764,2.745,767,1.19,768,1.729,769,0.604,772,3.165,776,1.922,777,2.088,783,2.967,784,2.391,785,0.888,806,1.064,807,2.861,957,1.029,958,1.492,1044,1.243,1045,1.917,1046,2.088,1047,2.088,1048,1.917,1049,1.917,1050,1.917,1051,1.243,1052,1.917,1053,1.243,1054,1.243,1055,1.243,1056,1.243,1057,1.917,1058,2.088,1059,2.088,1060,2.088,1061,1.243,1062,1.243,1063,1.917,1064,1.243,1065,1.243,1066,1.243,1067,1.457,1068,1.243,1069,1.457,1070,1.917,1071,1.917,1072,4.165,1073,3.22,1074,1.917,1075,1.917,1076,4.165,1077,3.22,1078,1.917,1079,1.917,1080,1.917,1081,1.917,1082,1.917,1083,1.917,1084,6.575,1085,3.22,1086,1.917,1087,3.22,1088,3.22,1089,1.917,1090,3.22,1091,1.917,1092,3.22,1093,3.22]],["t/286",[4,0.434,22,0.875,36,0.756,37,0.824,38,0.806,40,1.174,57,0.741,69,1.298,98,0.434,104,0.62,105,0.806,106,2.502,107,0.726,108,0.957,109,1.571,111,0.88,113,1.768,116,1.345,120,2.571,121,2.212,127,1.21,132,2.124,137,0.366,153,0.657,202,1.174,224,0.922,234,0.88,240,1.298,258,0.67,259,3.222,264,1.402,273,0.968,278,1.347,304,1.253,310,1.716,335,2.596,359,1.019,389,1.84,414,1.139,493,1.402,567,1.534,569,1.534,628,1.402,638,1.716,671,1.212,672,1.617,675,4.022,698,2.121,716,2.201,762,1.807,763,1.464,767,1.402,768,2.51,769,1.473,770,1.617,772,1.464,776,2.201,782,1.617,783,2.436,785,1.709,788,1.617,789,1.617,790,1.617,793,4.4,798,1.84,806,2.047,957,1.212,958,1.709,1044,1.464,1046,1.464,1047,1.464,1051,1.464,1053,1.464,1054,1.464,1055,1.464,1056,1.464,1058,2.392,1059,2.392,1060,2.392,1061,1.464,1062,1.464,1064,1.464,1065,1.464,1066,1.464,1067,1.716,1068,1.464,1069,1.716,1094,2.005,1095,2.005,1096,2.005,1097,2.507,1098,2.507,1099,1.534,1100,4.797,1101,3.277,1102,2.005,1103,2.005,1104,2.005,1105,2.005,1106,2.005,1107,2.005,1108,2.005,1109,2.005]],["t/288",[4,0.425,22,0.876,36,0.74,37,0.81,38,0.789,40,1.149,57,0.725,69,1.27,98,0.425,104,0.607,105,0.789,106,2.47,107,0.711,108,0.948,109,1.557,111,0.862,113,1.755,116,1.322,120,2.539,121,2.191,127,1.189,132,2.1,137,0.358,153,0.643,191,0.948,202,1.885,224,0.903,234,0.862,240,1.27,258,1.076,259,3.181,264,1.372,273,0.948,276,1.433,278,1.319,304,1.227,310,1.679,335,2.558,359,0.997,389,1.801,414,1.115,493,1.372,567,1.502,569,1.502,628,1.372,638,1.679,671,1.186,672,1.583,675,3.985,698,2.084,716,2.163,762,1.775,763,1.433,767,1.372,768,2.474,769,1.452,770,1.583,772,1.433,776,2.163,782,1.583,783,2.405,785,1.679,788,1.583,789,1.583,790,1.583,793,4.344,798,1.801,806,2.012,957,1.186,958,1.679,1044,1.433,1046,1.433,1047,1.433,1051,1.433,1053,1.433,1054,1.433,1055,1.433,1056,1.433,1058,2.35,1059,2.35,1060,2.35,1061,1.433,1062,1.433,1064,1.433,1065,1.433,1066,1.433,1068,1.433,1094,1.963,1095,1.963,1096,1.963,1097,2.463,1098,2.463,1099,1.502,1100,4.736,1101,3.22,1102,1.963,1103,1.963,1104,1.963,1105,1.963,1106,1.963,1107,1.963,1108,1.963,1109,1.963,1110,1.801,1111,1.801]],["t/290",[4,0.571,22,0.875,36,0.995,38,1.06,40,1.544,98,0.571,104,0.816,105,1.06,106,2.125,107,0.955,108,0.945,109,1.609,111,1.158,113,1.92,116,1.083,120,3.002,121,2.463,137,0.481,153,0.865,224,1.213,240,1.707,258,0.882,259,2.737,264,1.844,273,1.273,278,1.772,304,1.648,335,1.648,359,1.34,414,1.498,493,1.844,628,1.844,671,1.594,675,4.48,698,1.707,716,2.737,762,2.247,763,1.926,767,1.844,768,3.009,769,0.936,776,2.737,783,2.844,785,1.376,806,2.546,957,1.594,958,2.125,1044,1.926,1046,1.926,1047,1.926,1051,1.926,1053,1.926,1054,1.926,1055,1.926,1056,1.926,1058,2.974,1059,2.974,1060,2.974,1061,1.926,1062,1.926,1064,1.926,1065,1.926,1066,1.926,1067,2.257,1068,1.926,1069,2.257,1097,2.018,1098,2.018,1099,2.018,1112,2.257]],["t/292",[4,0.532,22,0.875,36,0.926,38,0.986,40,1.437,98,0.532,104,0.759,105,0.986,106,2.01,107,0.889,108,0.909,109,1.562,111,1.078,113,1.882,116,1.582,120,2.888,121,2.484,127,0.907,137,0.448,153,0.805,191,1.185,209,2.256,224,1.129,240,1.589,258,0.821,259,2.589,264,1.717,273,2.6,278,1.649,304,1.534,335,1.534,359,1.247,414,1.394,493,1.717,628,2.694,671,1.484,675,4.363,698,1.589,716,2.589,762,2.125,763,1.792,767,1.717,768,2.874,769,0.871,776,2.589,777,1.792,783,2.736,785,1.281,806,2.408,957,1.484,958,2.01,1044,1.792,1046,1.792,1047,1.792,1051,1.792,1053,1.792,1054,1.792,1055,1.792,1056,1.792,1058,2.813,1059,2.813,1060,2.813,1061,1.792,1062,1.792,1064,2.813,1065,1.792,1066,1.792,1067,2.101,1068,1.792,1069,2.101,1097,1.879,1098,1.879,1099,1.879,1112,2.101,1113,2.455,1114,2.455,1115,2.455]],["t/294",[4,0.556,22,0.876,36,0.967,38,1.03,40,1.502,98,0.556,104,0.793,105,1.03,106,2.08,107,0.928,108,0.931,109,1.591,111,1.126,113,1.906,116,1.053,120,2.957,121,2.438,137,0.468,153,0.841,191,1.238,202,1.502,224,1.18,240,1.66,258,1.333,259,2.679,264,1.794,273,1.238,276,1.872,278,1.723,304,1.603,335,1.603,359,1.303,414,1.457,493,1.794,628,1.794,671,1.55,675,4.435,698,1.66,716,2.679,762,2.199,763,1.872,767,1.794,768,2.956,769,0.91,776,2.679,783,2.802,785,1.338,806,2.491,957,1.55,958,2.08,1044,1.872,1046,1.872,1047,1.872,1051,1.872,1053,1.872,1054,1.872,1055,1.872,1056,1.872,1058,2.91,1059,2.91,1060,2.91,1061,1.872,1062,1.872,1064,1.872,1065,1.872,1066,1.872,1068,1.872,1097,1.963,1098,1.963,1099,1.963,1110,2.353,1111,2.353,1112,2.195]],["t/296",[4,0.518,22,0.876,36,0.902,38,0.961,40,1.4,98,0.518,104,0.74,105,0.961,106,1.969,107,0.866,108,0.896,109,1.545,111,1.05,113,1.868,116,1.55,120,2.846,121,2.462,127,0.884,137,0.437,153,0.784,191,1.822,202,1.4,209,2.21,224,1.1,240,1.548,258,1.262,259,2.536,264,1.672,273,2.563,276,1.746,278,1.607,304,1.495,335,1.495,359,1.215,414,1.358,493,1.672,628,2.639,671,1.446,675,4.32,698,1.548,716,2.536,762,2.082,763,1.746,767,1.672,768,2.826,769,0.849,776,2.536,777,1.746,783,2.697,785,1.248,806,2.359,957,1.446,958,1.969,1044,1.746,1046,1.746,1047,1.746,1051,1.746,1053,1.746,1054,1.746,1055,1.746,1056,1.746,1058,2.755,1059,2.755,1060,2.755,1061,1.746,1062,1.746,1064,2.755,1065,1.746,1066,1.746,1068,1.746,1097,1.83,1098,1.83,1099,1.83,1110,2.194,1111,2.194,1112,2.047,1113,2.392,1114,2.392,1115,2.392]],["t/298",[30,2.629,59,2.826,97,4.72,100,4.479,137,1.068,152,2.692,164,4.093,280,5.37,281,5.854,515,5.854,671,3.538,809,5.854,810,5.854,811,5.854,812,5.854,813,5.854,814,5.854,1116,5.37,1117,6.59]],["t/300",[30,2.65,98,1.278,100,4.515,153,1.934,157,2.225,185,2.422,289,2.997,353,2.077,397,5.048,711,2.476,954,2.59,1118,6.642,1119,6.642,1120,6.642,1121,6.642,1122,6.642,1123,6.642]],["t/302",[4,1.028,8,3.759,10,1.211,21,1.511,22,0.861,37,1.352,98,0.832,107,1.718,108,0.986,110,1.074,111,2.083,113,1.262,115,2.073,127,1.42,135,1.889,139,1.866,153,1.26,185,1.948,189,1.479,236,2.582,258,1.797,262,2.005,353,2.242,397,4.999,514,3.926,550,2.094,580,2.245,711,1.991,831,1.786,859,1.953,902,1.711,903,1.711,953,2.415,954,2.083,1002,2.447,1116,2.245,1124,5.844,1125,2.447,1126,2.447,1127,2.755,1128,2.755,1129,6.053,1130,2.755,1131,2.447,1132,2.447,1133,2.755,1134,2.447,1135,2.447,1136,3.843,1137,2.447,1138,2.447]],["t/304",[4,0.996,10,1.154,21,1.432,22,0.863,98,0.801,104,1.422,105,1.847,107,1.665,108,1.025,109,1.436,110,1.024,111,2.018,113,1.223,115,2.025,117,2.075,127,1.367,134,2.115,135,1.78,136,1.022,153,1.213,185,1.888,189,1.409,225,1.702,236,2.486,258,1.75,262,1.93,353,2.146,397,4.884,514,3.835,518,5.237,711,1.93,859,1.908,902,1.631,903,1.631,953,2.564,954,2.018,1116,2.139,1124,5.709,1125,2.332,1126,2.332,1131,2.332,1132,2.332,1134,2.332,1135,2.332,1136,3.7,1137,2.332,1138,2.332,1139,2.625]],["t/306",[148,6.697,1140,7.538,1141,7.538]],["t/308",[1,3.998,4,1.631,5,3.854,10,2.08,14,4.545,15,2.46,17,3.701,22,0.428,23,3.595,24,4.174,26,2.938,30,3.134,31,4.202,69,2.719,70,4.61,71,2.252,72,2.192,75,4.202,76,3.595,77,3.854,102,2.625,128,1.377,144,3.387,236,2.823,295,4.202,297,2.938,298,4.892,299,3.854,300,3.387,301,3.595,319,4.202,365,4.202,384,4.202,408,4.202,455,3.067,652,3.854,665,3.067,701,3.854,781,3.595,806,2.625,1142,4.73,1143,4.73,1144,4.73,1145,4.73,1146,6.437,1147,4.73,1148,4.73,1149,4.73,1150,4.73,1151,4.73,1152,4.73,1153,4.73,1154,4.73]],["t/310",[4,1.003,18,2.867,25,2.52,26,3.859,65,3.126,73,2.52,104,0.967,113,1.232,115,1.109,133,1.283,137,1.114,171,3.126,177,2.391,178,2.391,210,3.126,218,1.723,271,2.867,298,6.696,314,1.179,373,2.674,380,2.867,395,2.674,396,3.239,434,2.674,453,4.633,455,4.456,476,3.126,506,6.105,507,3.126,514,2.1,538,3.126,545,2.52,607,3.963,652,2.867,653,4.633,670,4.633,684,4.633,781,2.674,802,3.126,896,1.953,1155,3.518,1156,3.518,1157,5.215,1158,7.955,1159,3.518,1160,5.215,1161,3.518,1162,3.518,1163,3.518,1164,3.518,1165,3.518,1166,3.518,1167,3.518,1168,3.518,1169,5.215,1170,6.214,1171,3.518,1172,3.518,1173,3.518,1174,3.518,1175,3.518,1176,3.518,1177,3.518,1178,3.518,1179,3.518,1180,3.518,1181,5.215,1182,3.518,1183,3.518,1184,3.518,1185,3.518,1186,5.215,1187,3.518,1188,3.518,1189,3.518,1190,3.518,1191,3.518,1192,5.215,1193,3.518,1194,3.518,1195,3.518,1196,3.518,1197,3.518,1198,3.518,1199,3.518]]],"invertedIndex":[["",{"_index":22,"t":{"2":{"position":[[216,1]]},"10":{"position":[[125,2],[179,2],[233,1],[317,3],[321,2],[350,1],[376,1],[410,1],[438,1],[457,1],[463,2],[488,2],[553,2],[616,1],[630,1],[650,1],[652,2],[678,1],[696,1],[730,1],[758,1],[760,1],[772,1],[774,3],[791,2],[816,1],[830,1],[850,1],[852,2],[882,1],[903,2],[957,1],[1035,3],[1039,2],[1090,1],[1118,1],[1137,1],[1176,1],[1200,2],[1265,2],[1328,1],[1330,2],[1333,2],[1381,1],[1409,1],[1411,1],[1423,1],[1425,3],[1467,1],[1491,1],[1493,2]]},"12":{"position":[[415,1],[450,1],[645,1],[647,2],[701,1],[785,3],[789,2],[863,1],[899,1],[927,1],[929,1],[941,1],[943,3],[966,2],[991,2],[1056,2],[1119,1],[1133,1],[1153,1],[1167,1],[1188,2],[1242,1],[1320,3],[1324,2],[1402,1],[1430,1],[1432,1],[1444,1],[1446,3],[1502,1],[1526,2],[1591,2],[1654,1],[1656,2]]},"14":{"position":[[433,2],[519,1],[651,2],[747,2],[881,3],[897,1],[918,2],[1004,1],[1136,2],[1232,2],[1366,3],[1604,1],[1606,2],[1665,1],[1716,2],[1776,1],[1790,1],[1810,1],[1812,2],[1921,1],[1923,2],[1983,3],[2122,2],[2171,1],[2201,2],[2257,3],[2261,4],[2266,2],[2353,2],[2431,1],[2433,2],[2483,3],[2487,4],[2492,2],[2579,3]]},"16":{"position":[[135,1],[137,2],[179,1],[263,3],[267,2],[306,1],[342,1],[370,1],[372,1],[384,1],[386,3],[404,2],[407,1],[528,2],[582,2],[671,2],[742,1],[845,3],[849,2],[888,1],[924,1],[952,1],[954,1],[966,1],[968,3],[986,2],[1163,1],[1165,2],[1195,1],[1267,3],[1271,2],[1340,1],[1358,2],[1412,1],[1451,1],[1582,1],[1603,2],[1639,1],[1717,3],[1779,2],[1782,1],[1803,2],[1835,2]]},"18":{"position":[[424,1],[527,3],[542,1],[639,3],[677,1],[703,1],[781,3],[807,2],[913,2],[937,1],[951,1],[971,1],[985,1],[1044,2],[1079,1],[1103,2],[1209,2],[1233,1],[1235,2]]},"26":{"position":[[254,1],[278,1]]},"32":{"position":[[837,1],[941,1],[968,2],[980,2],[983,1],[1014,1],[1051,2],[1054,1],[1071,1],[1109,2],[1173,2],[1189,2],[1192,1],[1194,2],[1259,3],[1263,2],[1266,2],[1269,2],[1272,3],[1687,1],[1806,2],[1832,2],[1839,1],[1856,3],[1876,1],[1898,2],[1901,1],[1918,1],[1946,2],[1993,2],[2085,3],[2089,1],[2096,1],[2108,1],[2175,2],[2188,1],[2205,1],[2207,2],[2210,3]]},"34":{"position":[[523,1],[674,1],[676,2],[689,3],[727,2],[740,2],[743,1],[780,1],[836,2],[839,2],[867,2],[880,2],[883,1],[920,1],[976,2],[979,2],[1007,2],[1020,2],[1023,1],[1060,1],[1116,2],[1119,2],[1122,2],[1125,3]]},"40":{"position":[[632,1]]},"44":{"position":[[122,1],[132,1],[191,1],[246,2],[249,2],[252,2]]},"46":{"position":[[49,1],[61,1],[123,2],[170,2]]},"48":{"position":[[7,1],[13,1],[68,1]]},"50":{"position":[[7,1],[27,1],[216,2],[385,2]]},"55":{"position":[[69,1]]},"59":{"position":[[107,2],[255,2],[497,1]]},"64":{"position":[[60,1],[62,1],[64,1],[66,1],[100,2],[103,1],[105,2],[114,1],[116,1],[129,1],[131,1],[133,2],[157,1],[159,1],[161,1],[163,1],[243,3],[247,2],[287,1],[289,1],[291,1],[293,1],[359,1],[361,1],[363,1],[365,1]]},"66":{"position":[[165,1],[167,1],[169,1],[199,2],[202,1],[204,2],[266,3],[295,2],[395,1],[407,2],[423,2],[489,2],[492,1],[494,2],[498,1],[500,1],[502,1],[513,1],[515,1],[517,3],[521,2],[573,2],[683,3]]},"68":{"position":[[22,1]]},"70":{"position":[[63,1],[81,1],[96,1],[114,1],[155,1],[187,1],[230,1],[250,1]]},"72":{"position":[[105,1],[140,1],[201,1],[211,1],[256,2],[259,1],[333,1],[343,1],[388,2],[391,1],[466,1],[476,1],[528,1],[538,1],[583,2],[586,1],[620,1],[622,2],[625,1],[627,2],[630,1],[632,2]]},"77":{"position":[[162,1],[462,1],[500,1],[512,1],[525,2],[540,2],[543,1],[545,2],[578,1],[580,1],[582,1],[621,2],[639,1],[641,1],[648,1],[650,1],[652,3],[686,1],[698,1],[705,2],[720,2],[723,1],[725,2],[735,1],[737,1],[739,1],[767,3],[799,1],[811,1],[818,2],[833,2],[836,1],[838,2],[856,1],[865,3],[869,2],[973,1],[975,1],[977,1],[1006,2],[1009,1],[1011,2],[1029,1],[1038,3]]},"79":{"position":[[14,1],[16,1],[68,2],[112,2],[115,1],[117,2],[170,2],[241,2],[244,4],[249,2],[252,3]]},"81":{"position":[[453,2],[562,1],[590,2],[593,2],[619,1],[693,1],[727,1],[776,1],[798,2],[801,2],[816,2],[898,1],[927,1],[965,1],[1052,2],[1055,1],[1057,2],[1096,1],[1149,1],[1238,3],[1242,3],[1246,2],[1249,1],[1285,2],[1288,3],[1379,2]]},"83":{"position":[[10,1],[40,1],[73,1],[111,1],[226,2],[255,3],[592,1],[635,1],[668,1],[759,1],[777,1],[800,1],[834,2],[837,1],[869,1],[871,2],[895,2],[898,3]]},"87":{"position":[[0,2],[18,2],[33,1],[62,2],[136,2],[191,2],[194,2],[210,2],[271,2],[312,1],[356,2],[483,2],[486,1],[498,1],[563,2],[581,2],[584,1],[617,2],[633,2],[636,1],[656,2],[714,3]]},"89":{"position":[[26,1],[40,1],[80,1],[128,3],[153,1],[182,3],[222,1],[250,1],[264,1],[304,1],[340,3],[344,2],[480,3],[534,1]]},"91":{"position":[[12,1],[42,1],[72,2],[75,1],[85,1],[164,3],[179,1],[287,1],[299,4],[319,3]]},"96":{"position":[[233,1],[266,1]]},"98":{"position":[[14,1],[34,1],[83,1],[85,1],[119,2],[133,1]]},"100":{"position":[[14,1],[28,1],[71,1],[73,1],[107,2],[121,1]]},"102":{"position":[[37,1],[67,2],[70,1],[72,3],[76,1],[85,1],[87,1],[97,1],[99,1],[101,2],[104,3],[131,1],[161,2],[164,1],[166,3],[170,1],[179,1],[181,1],[191,1],[193,1],[195,2],[198,3]]},"105":{"position":[[68,1],[84,1],[112,1],[171,3],[175,2],[223,1],[253,2],[256,1],[277,3],[281,1],[290,1],[292,1],[302,1],[304,1],[306,2],[309,3],[313,2],[390,2],[393,1],[414,3],[418,1],[427,1],[429,1],[454,1],[456,1],[458,2],[461,3],[513,1],[529,1],[557,1],[635,3],[639,2],[688,1],[703,1],[731,2],[734,1],[755,3],[759,1],[768,1],[770,1],[777,1],[779,1],[781,2],[784,1],[786,2],[789,2],[866,2],[869,1],[890,3],[894,1],[903,1],[905,1],[914,1],[916,1],[918,2],[921,3]]},"107":{"position":[[85,1],[101,1],[129,1],[214,3],[228,1],[230,1],[241,1],[263,1],[276,2],[327,2],[330,1],[351,3],[355,1],[364,1],[366,1],[368,1],[378,1],[380,2],[383,1],[385,1],[395,1],[397,1],[399,1],[401,2],[404,3]]},"109":{"position":[[322,1],[340,1],[368,1],[427,3],[441,1],[443,1],[452,1],[457,2],[508,2],[511,1],[534,3],[538,1],[565,1],[618,3],[672,1],[674,2],[677,3]]},"111":{"position":[[173,1],[191,1],[219,1],[304,3],[318,1],[320,1],[329,1],[341,1],[346,2],[400,2],[403,1],[427,3],[431,1],[443,1],[461,1],[514,3],[569,2],[588,1],[641,3],[695,1],[697,1],[699,2],[702,3]]},"113":{"position":[[280,1],[319,1],[347,1],[406,3],[410,3],[430,2],[485,3],[505,2],[565,1],[577,1],[586,3],[590,3],[614,2],[627,1],[720,2],[723,1],[746,3],[750,1],[777,1],[830,3],[884,1],[886,2],[889,3],[1065,3],[1106,2]]},"125":{"position":[[103,1],[122,1],[198,2],[201,1],[215,1],[235,1],[249,1],[287,1],[357,2],[398,2],[401,1],[421,3]]},"127":{"position":[[107,1],[126,1],[210,2],[225,2],[238,3],[242,3],[246,1],[260,1],[280,1],[294,1],[332,1],[410,2],[425,2],[438,3],[442,3],[484,2],[487,1],[507,3]]},"129":{"position":[[107,1],[126,1],[159,2],[162,3],[243,2],[246,3],[250,1],[264,1],[284,1],[298,1],[336,1],[363,2],[366,3],[448,3],[490,2],[493,1],[513,3]]},"131":{"position":[[125,1],[144,1],[177,2],[180,3],[189,1],[191,2],[242,2],[338,2],[341,3],[345,1],[359,1],[379,1],[393,1],[431,1],[458,2],[461,3],[470,1],[472,2],[523,2],[619,2],[622,3],[664,2],[667,1],[687,3]]},"133":{"position":[[294,1],[313,1],[346,2],[349,3],[420,3],[424,1],[438,1],[458,1],[472,1],[486,1],[589,1],[603,1],[623,1],[637,1],[675,1],[702,2],[705,3],[776,3],[818,2],[821,1],[841,3],[924,1],[970,1],[998,1],[1018,3]]},"135":{"position":[[13,1],[77,1],[129,1]]},"137":{"position":[[66,1],[109,1],[148,1],[183,3],[204,1],[251,3],[293,2],[296,1],[316,3],[332,1],[375,1],[414,1],[468,2],[471,1],[513,3],[517,2],[520,3],[562,2],[565,1],[585,3],[666,2],[669,1],[697,1],[725,1],[754,3],[825,2],[828,1],[856,1],[884,1],[913,3],[984,2],[987,1],[1015,1],[1043,1],[1072,3]]},"142":{"position":[[35,1],[71,1],[113,1],[157,2],[217,2],[350,2],[355,1],[377,3],[430,2],[433,1],[461,2],[464,2]]},"146":{"position":[[97,1],[110,1],[192,1],[222,2],[225,3],[262,1],[276,1],[296,1],[310,1],[342,1],[453,1],[481,1],[509,1],[511,2],[514,3],[551,3]]},"148":{"position":[[95,1],[108,1],[180,2],[195,2],[208,3],[212,3],[233,1],[263,2],[266,3],[303,1],[317,1],[337,1],[351,1],[383,1],[455,2],[470,2],[483,3],[487,3],[537,1],[565,1],[593,1],[595,2],[598,3],[635,3]]},"150":{"position":[[95,1],[108,1],[129,2],[132,3],[213,2],[216,3],[237,1],[267,2],[270,3],[307,1],[321,1],[341,1],[355,1],[387,1],[408,2],[411,3],[493,3],[543,1],[571,1],[599,1],[601,2],[604,3],[641,3]]},"152":{"position":[[113,1],[126,1],[147,2],[150,3],[159,1],[161,2],[212,2],[308,2],[311,3],[332,1],[362,2],[365,3],[402,1],[416,1],[436,1],[450,1],[482,1],[503,2],[506,3],[515,1],[517,2],[568,2],[664,2],[667,3],[717,1],[745,1],[773,1],[775,2],[778,3],[815,3]]},"154":{"position":[[282,1],[295,1],[316,2],[319,3],[390,3],[411,1],[441,2],[444,3],[481,1],[495,1],[515,1],[529,1],[543,1],[640,1],[654,1],[674,1],[688,1],[720,1],[741,2],[744,3],[815,3],[865,1],[893,1],[921,1],[923,2],[926,3],[963,3],[1046,1],[1086,1],[1114,1],[1134,3]]},"156":{"position":[[13,1],[77,1],[129,1]]},"158":{"position":[[54,1],[97,1],[136,1],[171,3],[186,1],[227,3],[243,1],[286,1],[319,1],[367,2],[370,1],[412,3],[416,2],[419,3],[494,2],[497,1],[525,1],[553,1],[582,3],[647,2],[650,1],[678,1],[706,1],[735,3],[800,2],[803,1],[831,1],[859,1],[888,3]]},"165":{"position":[[105,1],[125,1],[228,2],[259,7],[284,1],[331,2],[334,3],[371,1],[385,1],[405,1],[419,1],[458,1],[561,2],[592,7],[665,1],[693,1],[721,1],[723,2],[726,3],[763,3]]},"167":{"position":[[103,1],[123,1],[180,1],[233,2],[248,2],[261,3],[265,3],[269,2],[300,7],[325,1],[372,2],[375,3],[412,1],[426,1],[446,1],[460,1],[499,1],[556,1],[609,2],[624,2],[637,3],[641,3],[645,2],[676,7],[749,1],[777,1],[805,1],[807,2],[810,3],[847,3]]},"169":{"position":[[103,1],[123,1],[180,1],[182,2],[185,3],[266,2],[269,3],[273,2],[304,7],[329,1],[376,2],[379,3],[416,1],[430,1],[450,1],[464,1],[503,1],[560,1],[562,2],[565,3],[647,3],[651,2],[682,7],[755,1],[783,1],[811,1],[813,2],[816,3],[853,3]]},"171":{"position":[[121,1],[141,1],[198,1],[200,2],[203,3],[212,1],[214,2],[265,2],[361,2],[364,3],[368,2],[399,7],[424,1],[471,2],[474,3],[511,1],[525,1],[545,1],[559,1],[598,1],[655,1],[657,2],[660,3],[669,1],[671,2],[722,2],[818,2],[821,3],[825,2],[856,7],[929,1],[957,1],[985,1],[987,2],[990,3],[1027,3]]},"173":{"position":[[290,1],[310,1],[367,1],[369,2],[372,3],[443,3],[447,2],[478,7],[503,1],[550,2],[553,3],[590,1],[604,1],[624,1],[638,1],[652,1],[756,1],[770,1],[790,1],[804,1],[843,1],[900,1],[902,2],[905,3],[976,3],[980,2],[1011,7],[1084,1],[1112,1],[1140,1],[1142,2],[1145,3],[1182,3],[1265,1],[1312,1],[1340,1],[1360,3]]},"175":{"position":[[13,1],[77,1],[129,1]]},"177":{"position":[[62,1],[105,1],[144,1],[179,3],[201,1],[258,1],[280,3],[284,2],[315,7],[343,1],[385,1],[428,1],[468,1],[525,1],[554,2],[557,1],[599,3],[603,2],[606,3],[610,2],[641,7],[669,1],[779,2],[782,1],[810,1],[838,1],[867,3],[941,2],[944,1],[972,1],[1000,1],[1029,3],[1103,2],[1106,1],[1134,1],[1162,1],[1191,3]]},"182":{"position":[[105,1],[140,1]]},"184":{"position":[[63,1],[114,1],[124,1],[238,3],[290,1],[348,1],[371,1],[413,1],[425,1],[464,1],[647,1],[759,2],[762,2],[878,2],[889,1],[953,1],[1055,3],[1155,1],[1267,2],[1270,2],[1323,1],[1379,1],[1397,2],[1400,1],[1423,2],[1439,2],[1442,1],[1483,3],[1513,1],[1551,1],[1581,2],[1584,1],[1594,1],[1678,3],[1693,1],[1801,1],[1813,4],[1833,2],[1851,2],[1854,1],[1877,2],[1902,1],[1933,3],[1937,1],[1983,1],[1985,1],[2050,3],[2085,1],[2130,2],[2141,2],[2154,3],[2192,1],[2216,1],[2218,1]]},"187":{"position":[[63,1],[75,1],[111,1],[113,1],[138,1],[173,1],[256,1],[270,1],[290,1],[302,1],[338,1],[340,1],[365,1],[431,2],[434,1],[462,1],[490,1],[534,3]]},"189":{"position":[[58,1],[70,1],[106,1],[108,1],[133,1],[168,1],[210,2],[213,3],[231,3],[277,1],[291,1],[311,1],[323,1],[359,1],[361,1],[386,1],[418,1],[433,2],[436,3],[454,2],[479,2],[482,1],[510,1],[538,1],[582,1],[584,2]]},"191":{"position":[[73,1],[85,1],[121,1],[123,1],[148,1],[183,1],[211,1],[218,2],[221,3],[239,2],[249,2],[294,1],[308,1],[328,1],[340,1],[376,1],[378,1],[403,1],[435,1],[442,2],[445,3],[463,2],[496,2],[499,1],[527,1],[555,1],[599,1],[601,2]]},"199":{"position":[[63,1],[75,1],[120,3],[124,3],[128,7],[149,1],[200,1],[283,1],[297,1],[317,1],[329,1],[374,3],[378,3],[382,7],[403,1],[485,2],[488,1],[516,1],[544,1],[588,3]]},"201":{"position":[[58,1],[70,1],[115,3],[119,3],[123,7],[144,1],[195,1],[237,2],[240,3],[258,3],[304,1],[318,1],[338,1],[350,1],[395,3],[399,3],[403,7],[424,1],[472,1],[487,2],[490,3],[508,2],[533,2],[536,1],[564,1],[592,1],[636,1],[638,2]]},"203":{"position":[[73,1],[85,1],[130,3],[134,3],[138,7],[159,1],[210,1],[238,1],[245,2],[248,3],[266,2],[276,2],[321,1],[335,1],[355,1],[367,1],[412,3],[416,3],[420,7],[441,1],[489,1],[496,2],[499,3],[517,2],[550,2],[553,1],[581,1],[609,1],[653,1],[655,2]]},"211":{"position":[[63,1],[75,1],[85,1],[113,1],[115,1],[127,1],[129,3],[146,1],[183,1],[264,1],[278,1],[298,1],[310,1],[320,1],[348,1],[350,1],[362,1],[364,3],[381,1],[449,2],[452,1],[480,1],[508,1],[550,3]]},"213":{"position":[[58,1],[70,1],[80,1],[108,1],[110,1],[122,1],[124,3],[141,1],[178,1],[220,2],[223,3],[241,3],[285,1],[299,1],[319,1],[331,1],[341,1],[369,1],[371,1],[383,1],[385,3],[402,1],[438,1],[453,2],[456,3],[474,2],[497,2],[500,1],[528,1],[556,1],[598,1],[600,2]]},"215":{"position":[[73,1],[85,1],[95,1],[123,1],[125,1],[137,1],[139,3],[156,1],[193,1],[221,1],[228,2],[231,3],[249,2],[259,2],[302,1],[316,1],[336,1],[348,1],[358,1],[386,1],[388,1],[400,1],[402,3],[419,1],[455,1],[462,2],[465,3],[483,2],[514,2],[517,1],[545,1],[573,1],[615,1],[617,2]]},"221":{"position":[[63,1],[75,1],[103,1],[105,1],[120,1],[122,1],[147,1],[186,1],[269,1],[283,1],[303,1],[315,1],[343,1],[345,1],[360,1],[362,1],[387,1],[457,2],[460,1],[488,1],[516,1],[560,3]]},"223":{"position":[[58,1],[70,1],[98,1],[100,1],[115,1],[117,1],[142,1],[181,1],[223,2],[226,3],[244,3],[290,1],[304,1],[324,1],[336,1],[364,1],[366,1],[381,1],[383,1],[408,1],[444,1],[459,2],[462,3],[480,2],[505,2],[508,1],[536,1],[564,1],[608,1],[610,2]]},"225":{"position":[[73,1],[85,1],[113,1],[115,1],[130,1],[132,1],[157,1],[196,1],[224,1],[231,2],[234,3],[252,2],[262,2],[307,1],[321,1],[341,1],[353,1],[381,1],[383,1],[398,1],[400,1],[425,1],[461,1],[468,2],[471,3],[489,2],[522,2],[525,1],[553,1],[581,1],[625,1],[627,2]]},"232":{"position":[[45,1]]},"236":{"position":[[46,1],[58,1],[94,1],[136,1],[209,1],[223,1],[243,1],[255,1],[291,1],[354,2],[357,1],[385,1],[413,1],[457,3]]},"238":{"position":[[56,1],[68,1],[104,1],[146,1],[178,2],[181,3],[199,3],[245,1],[259,1],[279,1],[291,1],[327,1],[364,1],[371,2],[374,3],[392,2],[417,2],[420,1],[448,1],[476,1],[520,1],[522,2]]},"247":{"position":[[46,1],[58,1],[155,1],[228,1],[242,1],[262,1],[274,1],[392,2],[395,1],[423,1],[451,1],[495,3]]},"249":{"position":[[56,1],[68,1],[165,1],[197,2],[200,3],[218,3],[264,1],[278,1],[298,1],[310,1],[402,1],[409,2],[412,3],[430,2],[455,2],[458,1],[486,1],[514,1],[558,1],[560,2]]},"258":{"position":[[46,1],[58,1],[68,1],[96,1],[115,1],[143,1],[214,1],[228,1],[248,1],[260,1],[270,1],[298,1],[317,1],[366,2],[369,1],[397,1],[425,1],[467,3]]},"260":{"position":[[56,1],[68,1],[78,1],[106,1],[125,1],[153,1],[185,2],[188,3],[206,3],[250,1],[264,1],[284,1],[296,1],[306,1],[334,1],[353,1],[378,1],[385,2],[388,3],[406,2],[429,2],[432,1],[460,1],[488,1],[530,1],[532,2]]},"262":{"position":[[56,1],[68,1],[78,1],[106,1],[125,1],[153,1],[204,2],[207,3],[225,3],[269,1],[283,1],[303,1],[315,1],[325,1],[353,1],[372,1],[397,1],[423,2],[426,3],[444,2],[467,2],[470,1],[498,1],[526,1],[568,1],[570,2]]},"269":{"position":[[46,1],[58,1],[86,1],[104,1],[146,1],[219,1],[233,1],[253,1],[265,1],[293,1],[311,1],[374,2],[377,1],[405,1],[433,1],[477,3]]},"271":{"position":[[56,1],[68,1],[96,1],[114,1],[156,1],[188,2],[191,3],[209,3],[255,1],[269,1],[289,1],[301,1],[329,1],[347,1],[384,1],[391,2],[394,3],[412,2],[437,2],[440,1],[468,1],[496,1],[540,1],[542,2]]},"278":{"position":[[35,1],[74,1],[132,1],[208,2],[211,1],[395,1],[419,3],[461,2],[464,1],[526,3],[543,1],[652,3],[679,2],[682,1],[756,1],[758,2],[807,2],[881,1],[883,2],[939,1],[963,1],[1076,1],[1083,1],[1085,2],[1147,1],[1216,1],[1218,3],[1222,3],[1267,3]]},"280":{"position":[[34,1],[136,3],[155,2],[158,1],[171,1],[178,1],[188,1],[221,2],[224,1],[253,2],[313,3],[317,1],[319,2],[344,2],[347,1],[360,1],[367,1],[377,1],[408,2],[411,1],[470,2],[473,1],[516,3],[520,3],[524,1],[526,2]]},"282":{"position":[[35,1],[68,1],[124,1],[194,1],[233,1],[277,1],[373,2],[389,1],[401,1],[408,1],[410,2],[464,1],[509,3],[513,1],[515,1],[530,1],[606,2],[609,1],[611,2],[643,2],[693,3],[697,2],[783,2],[856,2],[886,2],[976,3],[1018,2],[1021,1],[1083,3],[1112,2],[1115,1],[1137,1],[1324,2],[1327,3],[1356,4],[1361,3],[1365,10],[1376,7],[1393,4],[1424,7],[1432,4],[1437,8],[1446,6],[1453,11],[1496,3],[1500,3]]},"284":{"position":[[15,3],[19,1],[66,2],[76,1],[90,1],[122,1],[130,1],[185,1],[213,1],[241,1],[243,1],[251,3],[261,3],[275,3],[289,3],[293,2],[303,2],[306,2],[309,1],[323,1],[344,3],[389,2],[450,3],[484,2],[606,2],[609,3],[634,2],[654,1],[723,4],[728,4],[733,6],[775,2],[827,3],[845,2],[862,1],[895,1],[932,2],[962,2],[965,1],[991,3],[1012,2],[1058,3],[1092,5],[1098,3],[1109,1],[1111,1],[1125,1],[1139,1],[1147,1],[1161,1],[1175,1],[1183,1],[1196,1],[1210,1],[1218,1],[1231,1],[1245,1],[1253,1],[1267,2],[1270,3],[1274,1],[1321,2],[1331,1],[1396,1],[1440,1],[1534,1],[1553,1],[1578,1],[1610,1],[1612,3],[1683,2],[1713,1],[1742,1],[1774,1],[1776,3],[1804,2],[1823,1],[1907,1],[1909,3],[1965,2],[1991,1],[2077,1],[2079,3],[2112,2],[2133,1],[2217,1],[2219,3],[2297,2],[2319,1],[2405,1],[2407,3],[2435,2],[2456,1],[2542,1],[2544,3],[2600,2],[2628,1],[2716,1],[2718,3],[2751,2],[2774,1],[2860,1],[2862,3],[2940,2],[2964,1],[3052,1],[3054,3],[3085,2],[3105,1],[3125,1],[3127,1]]},"286":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[239,1],[301,1],[329,1],[355,1],[398,2],[401,1],[413,2],[428,3],[467,1],[469,1],[569,2],[596,2],[613,2],[623,2],[626,2],[629,1],[663,1],[665,1],[673,3],[683,3],[697,3],[711,3],[715,2],[729,1],[769,3],[814,2],[885,3],[919,2],[1051,2],[1054,3],[1079,2],[1099,1],[1178,4],[1183,4],[1188,6],[1230,2],[1282,3],[1334,2],[1409,3],[1451,2],[1531,1],[1567,3],[1571,3],[1589,2],[1616,1],[1716,2],[1719,1],[1721,3],[1823,2],[1856,1],[1887,3],[1942,1],[1949,1],[1972,2],[1975,1],[2006,3],[2027,2],[2073,3],[2077,1],[2079,3],[2101,5],[2107,3],[2118,1],[2120,1],[2134,1],[2153,1],[2161,1],[2175,1],[2194,1],[2202,1],[2215,1],[2234,1],[2242,1],[2255,1],[2274,1],[2282,1],[2296,1],[2315,1],[2334,2]]},"288":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[239,1],[301,1],[303,3],[310,2],[324,3],[333,2],[347,1],[373,1],[416,2],[419,1],[431,2],[446,3],[485,1],[487,1],[587,2],[614,2],[631,2],[641,2],[644,2],[647,1],[681,1],[683,1],[691,3],[701,3],[715,3],[729,3],[752,2],[766,1],[806,3],[851,2],[922,3],[956,2],[1088,2],[1091,3],[1116,2],[1136,1],[1215,4],[1220,4],[1225,6],[1267,2],[1319,3],[1371,2],[1446,3],[1488,2],[1568,1],[1604,3],[1608,3],[1626,2],[1653,1],[1753,2],[1756,1],[1758,3],[1860,2],[1893,1],[1924,3],[1979,1],[1986,1],[2009,2],[2012,1],[2043,3],[2064,2],[2108,3],[2112,1],[2114,3],[2136,5],[2142,3],[2153,1],[2155,1],[2169,1],[2188,1],[2196,1],[2210,1],[2229,1],[2237,1],[2250,1],[2269,1],[2277,1],[2290,1],[2309,1],[2317,1],[2331,1],[2350,1],[2369,2]]},"290":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[308,1],[317,2],[320,2],[323,1],[357,1],[359,1],[367,3],[377,3],[391,3],[405,3],[409,2],[423,1],[463,3],[508,2],[579,3],[613,2],[745,2],[748,3],[773,2],[793,1],[872,4],[877,4],[882,6],[924,2],[976,3],[994,2],[1011,1],[1047,1],[1084,2],[1108,2],[1111,1],[1137,3],[1158,2],[1204,3],[1226,5],[1232,3],[1243,1],[1245,1],[1259,1],[1273,1],[1281,1],[1295,1],[1309,1],[1317,1],[1330,1],[1344,1],[1352,1],[1365,1],[1379,1],[1387,1],[1401,2]]},"292":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[308,1],[317,2],[320,2],[323,1],[357,1],[359,1],[367,3],[377,3],[391,3],[405,3],[435,2],[449,1],[489,3],[534,2],[605,3],[639,2],[771,2],[774,3],[799,2],[819,1],[898,4],[903,4],[908,6],[950,2],[1002,3],[1020,2],[1036,1],[1066,1],[1076,1],[1130,1],[1194,2],[1197,2],[1221,2],[1224,1],[1247,2],[1250,1],[1276,3],[1297,2],[1343,3],[1347,3],[1369,5],[1375,3],[1386,1],[1388,1],[1402,1],[1416,1],[1424,1],[1438,1],[1452,1],[1460,1],[1473,1],[1487,1],[1495,1],[1508,1],[1522,1],[1530,1],[1544,2]]},"294":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[282,3],[289,2],[303,3],[312,2],[326,1],[335,2],[338,2],[341,1],[375,1],[377,1],[385,3],[395,3],[409,3],[423,3],[446,2],[460,1],[500,3],[545,2],[616,3],[650,2],[782,2],[785,3],[810,2],[830,1],[909,4],[914,4],[919,6],[961,2],[1013,3],[1031,2],[1048,1],[1084,1],[1121,2],[1145,2],[1148,1],[1174,3],[1195,2],[1239,3],[1261,5],[1267,3],[1278,1],[1280,1],[1294,1],[1308,1],[1316,1],[1330,1],[1344,1],[1352,1],[1365,1],[1379,1],[1387,1],[1400,1],[1414,1],[1422,1],[1436,2]]},"296":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[282,3],[289,2],[303,3],[312,2],[326,1],[335,2],[338,2],[341,1],[375,1],[377,1],[385,3],[395,3],[409,3],[423,3],[472,2],[486,1],[526,3],[571,2],[642,3],[676,2],[808,2],[811,3],[836,2],[856,1],[935,4],[940,4],[945,6],[987,2],[1039,3],[1057,2],[1073,1],[1103,1],[1113,1],[1167,1],[1231,2],[1234,2],[1258,2],[1261,1],[1284,2],[1287,1],[1313,3],[1334,2],[1378,3],[1382,3],[1404,5],[1410,3],[1421,1],[1423,1],[1437,1],[1451,1],[1459,1],[1473,1],[1487,1],[1495,1],[1508,1],[1522,1],[1530,1],[1543,1],[1557,1],[1565,1],[1579,2]]},"302":{"position":[[166,1],[198,1],[231,3],[241,3],[255,3],[259,3],[301,2],[304,1],[332,1],[379,1],[381,3],[508,1],[540,1],[567,3],[577,3],[591,3],[595,3],[636,2],[639,1],[667,1],[724,1],[726,3],[860,1],[899,1],[953,1],[961,3],[971,3],[985,3],[989,3],[1046,2],[1049,1],[1077,1],[1141,1],[1143,3],[1280,1],[1298,2],[1301,1],[1329,1],[1375,1],[1396,3],[1613,1],[1631,2],[1634,1],[1662,1],[1706,1],[1727,3]]},"304":{"position":[[184,1],[203,1],[242,3],[252,3],[266,3],[270,3],[274,1],[288,1],[316,1],[336,1],[338,1],[489,1],[516,3],[526,3],[540,3],[544,3],[552,1],[571,1],[601,1],[615,1],[643,1],[663,1],[665,1],[830,1],[884,1],[892,3],[902,3],[916,3],[920,3],[928,1],[972,1],[986,1],[1014,1],[1061,1],[1063,1],[1165,1],[1180,1],[1216,1],[1242,1],[1256,1],[1284,1],[1322,1],[1324,1],[1508,1],[1523,1],[1557,1],[1583,1],[1597,1],[1625,1],[1661,1],[1663,1]]},"308":{"position":[[398,1]]}}}],["0",{"_index":202,"t":{"14":{"position":[[829,2],[878,2],[1314,2],[1363,2]]},"46":{"position":[[256,2]]},"70":{"position":[[121,2]]},"109":{"position":[[579,2],[596,2],[609,2],[654,2],[670,1]]},"111":{"position":[[475,2],[492,2],[505,2],[551,2],[567,1],[602,2],[619,2],[632,2],[677,2],[693,1]]},"113":{"position":[[791,2],[808,2],[821,2],[866,2],[882,1]]},"142":{"position":[[291,2]]},"280":{"position":[[173,2],[362,2]]},"282":{"position":[[1308,2],[1321,2]]},"286":{"position":[[2332,1]]},"288":{"position":[[313,2],[2367,1]]},"294":{"position":[[292,2]]},"296":{"position":[[292,2]]}}}],["0deprec",{"_index":802,"t":{"115":{"position":[[0,11]]},"310":{"position":[[101,11]]}}}],["0xffffff",{"_index":973,"t":{"278":{"position":[[386,8]]},"282":{"position":[[876,9]]}}}],["1",{"_index":258,"t":{"16":{"position":[[1446,4],[1752,3]]},"18":{"position":[[208,1],[737,1],[1000,1]]},"46":{"position":[[259,2]]},"64":{"position":[[58,1],[155,1],[285,1],[357,1]]},"70":{"position":[[135,1]]},"72":{"position":[[189,3],[222,3],[321,3],[454,3],[516,3]]},"77":{"position":[[517,2],[703,1],[760,3],[764,2],[816,1],[854,1],[858,1],[986,3],[990,3],[1027,1],[1031,1]]},"102":{"position":[[35,1],[39,1],[129,1],[133,1]]},"105":{"position":[[221,1],[225,1],[686,1],[690,1]]},"107":{"position":[[239,1],[243,1]]},"109":{"position":[[449,2],[454,2]]},"111":{"position":[[326,2],[331,2]]},"113":{"position":[[562,2],[567,2]]},"137":{"position":[[448,2]]},"142":{"position":[[347,2],[353,1]]},"158":{"position":[[347,2]]},"177":{"position":[[534,2]]},"184":{"position":[[2138,2]]},"187":{"position":[[121,3],[348,3]]},"189":{"position":[[116,3],[369,3]]},"191":{"position":[[131,3],[386,3]]},"221":{"position":[[130,3],[370,3]]},"223":{"position":[[125,3],[391,3]]},"225":{"position":[[140,3],[408,3]]},"236":{"position":[[109,3],[306,3]]},"238":{"position":[[119,3],[342,3]]},"269":{"position":[[119,3],[326,3]]},"271":{"position":[[129,3],[362,3]]},"284":{"position":[[1216,1]]},"286":{"position":[[2240,1]]},"288":{"position":[[336,2],[2275,1]]},"290":{"position":[[1350,1]]},"292":{"position":[[1493,1]]},"294":{"position":[[315,2],[1385,1]]},"296":{"position":[[315,2],[1528,1]]},"302":{"position":[[1278,1],[1282,3],[1611,1],[1615,3]]},"304":{"position":[[1214,1],[1218,4],[1555,1],[1559,4]]}}}],["1+1",{"_index":696,"t":{"83":{"position":[[284,3]]}}}],["1+:toadd",{"_index":749,"t":{"91":{"position":[[269,8]]},"184":{"position":[[1783,8]]}}}],["1,2",{"_index":658,"t":{"77":{"position":[[608,5]]}}}],["1.0.0",{"_index":502,"t":{"44":{"position":[[202,8]]},"184":{"position":[[2026,8]]}}}],["1.1",{"_index":512,"t":{"46":{"position":[[262,4]]}}}],["1.1earli",{"_index":1174,"t":{"310":{"position":[[756,8]]}}}],["1.2",{"_index":513,"t":{"46":{"position":[[267,4]]}}}],["1.2releas",{"_index":1178,"t":{"310":{"position":[[848,10]]}}}],["10",{"_index":193,"t":{"14":{"position":[[634,3],[647,3],[1119,3],[1132,3]]},"83":{"position":[[237,2]]},"91":{"position":[[296,2]]},"111":{"position":[[532,3]]},"184":{"position":[[1810,2]]},"278":{"position":[[280,3]]},"282":{"position":[[754,3]]}}}],["1000",{"_index":1001,"t":{"280":{"position":[[322,6],[529,6]]}}}],["1045",{"_index":1019,"t":{"282":{"position":[[504,4]]}}}],["1080",{"_index":710,"t":{"83":{"position":[[864,4]]}}}],["12",{"_index":602,"t":{"64":{"position":[[126,2]]}}}],["120",{"_index":887,"t":{"142":{"position":[[335,4]]}}}],["123",{"_index":880,"t":{"142":{"position":[[152,4]]},"282":{"position":[[689,3]]}}}],["1234",{"_index":971,"t":{"278":{"position":[[330,5]]},"282":{"position":[[817,5]]}}}],["137",{"_index":162,"t":{"12":{"position":[[956,5],[1459,5]]}}}],["14",{"_index":243,"t":{"16":{"position":[[400,3],[982,3]]}}}],["16000",{"_index":632,"t":{"68":{"position":[[86,5]]}}}],["18.x",{"_index":436,"t":{"38":{"position":[[60,5]]}}}],["19",{"_index":959,"t":{"199":{"position":[[160,3],[414,3]]},"201":{"position":[[155,3],[435,3]]},"203":{"position":[[170,3],[452,3]]},"247":{"position":[[112,4],[328,4]]},"249":{"position":[[122,4],[364,4]]}}}],["1998",{"_index":1140,"t":{"306":{"position":[[12,5]]}}}],["1experiment",{"_index":538,"t":{"52":{"position":[[144,13]]},"310":{"position":[[642,13]]}}}],["2",{"_index":273,"t":{"18":{"position":[[220,1],[749,1],[1012,1]]},"46":{"position":[[272,1]]},"66":{"position":[[293,1],[464,3]]},"77":{"position":[[523,1]]},"89":{"position":[[195,3],[199,4]]},"102":{"position":[[95,1],[189,1]]},"105":{"position":[[300,1],[701,1],[705,1],[772,2]]},"107":{"position":[[261,1],[265,1],[376,1]]},"109":{"position":[[636,2]]},"111":{"position":[[338,2],[343,2],[659,2]]},"113":{"position":[[574,2],[579,2],[848,2]]},"278":{"position":[[349,2]]},"282":{"position":[[836,2]]},"284":{"position":[[1181,1]]},"286":{"position":[[2200,1]]},"288":{"position":[[2235,1]]},"290":{"position":[[1315,1]]},"292":{"position":[[1117,4],[1171,1],[1180,4],[1458,1]]},"294":{"position":[[1350,1]]},"296":{"position":[[1154,4],[1208,1],[1217,4],[1493,1]]}}}],["2+3",{"_index":929,"t":{"184":{"position":[[785,3],[1292,3]]}}}],["2.0",{"_index":668,"t":{"81":{"position":[[238,3]]}}}],["2.rds.amazonaws.com",{"_index":852,"t":{"133":{"position":[[379,21],[735,21]]},"154":{"position":[[349,21],[774,21]]},"173":{"position":[[402,21],[935,21]]}}}],["20",{"_index":960,"t":{"221":{"position":[[149,4],[389,4]]},"223":{"position":[[144,4],[410,4]]},"225":{"position":[[159,4],[427,4]]},"269":{"position":[[88,2],[295,2]]},"271":{"position":[[98,2],[331,2]]}}}],["2113931265",{"_index":1025,"t":{"282":{"position":[[907,11]]}}}],["2119",{"_index":862,"t":{"135":{"position":[[71,5]]},"156":{"position":[[71,5]]},"175":{"position":[[71,5]]}}}],["2130",{"_index":860,"t":{"135":{"position":[[7,5]]},"156":{"position":[[7,5]]},"175":{"position":[[7,5]]}}}],["2131",{"_index":865,"t":{"135":{"position":[[123,5]]},"156":{"position":[[123,5]]},"175":{"position":[[123,5]]}}}],["2181036031",{"_index":1026,"t":{"282":{"position":[[936,11]]}}}],["2282",{"_index":1141,"t":{"306":{"position":[[18,5]]}}}],["253",{"_index":1039,"t":{"282":{"position":[[1296,4]]}}}],["2stabl",{"_index":514,"t":{"46":{"position":[[289,7],[297,7]]},"105":{"position":[[0,7]]},"107":{"position":[[0,7]]},"109":{"position":[[0,7]]},"111":{"position":[[0,7]]},"113":{"position":[[0,7]]},"302":{"position":[[17,7],[396,7],[748,7],[1155,7],[1492,7]]},"304":{"position":[[17,7],[351,7],[685,7],[1073,7],[1418,7]]},"310":{"position":[[1114,7]]}}}],["3",{"_index":414,"t":{"34":{"position":[[292,3]]},"36":{"position":[[39,2]]},"46":{"position":[[278,2]]},"66":{"position":[[511,1]]},"72":{"position":[[232,3],[354,3],[364,3],[549,3],[559,3]]},"77":{"position":[[646,1]]},"89":{"position":[[388,1]]},"284":{"position":[[1251,1]]},"286":{"position":[[2280,1]]},"288":{"position":[[2315,1]]},"290":{"position":[[1385,1]]},"292":{"position":[[1528,1]]},"294":{"position":[[1420,1]]},"296":{"position":[[1563,1]]}}}],["33",{"_index":1035,"t":{"282":{"position":[[1261,3]]}}}],["3306",{"_index":709,"t":{"83":{"position":[[829,4]]},"127":{"position":[[219,5],[419,5]]},"137":{"position":[[178,4],[508,4]]},"148":{"position":[[189,5],[464,5]]},"158":{"position":[[166,4],[407,4]]},"167":{"position":[[242,5],[618,5]]},"177":{"position":[[174,4],[594,4]]},"184":{"position":[[163,5],[980,5],[1633,5]]}}}],["384",{"_index":1037,"t":{"282":{"position":[[1279,4]]}}}],["3legaci",{"_index":1188,"t":{"310":{"position":[[1181,7]]}}}],["4",{"_index":776,"t":{"105":{"position":[[775,1]]},"107":{"position":[[393,1]]},"284":{"position":[[1123,1],[1145,1]]},"286":{"position":[[2132,1],[2159,1]]},"288":{"position":[[2167,1],[2194,1]]},"290":{"position":[[1257,1],[1279,1]]},"292":{"position":[[1400,1],[1422,1]]},"294":{"position":[[1292,1],[1314,1]]},"296":{"position":[[1435,1],[1457,1]]}}}],["4.5.2",{"_index":759,"t":{"94":{"position":[[224,8]]}}}],["45",{"_index":124,"t":{"10":{"position":[[459,3],[787,3],[1139,4],[1438,4]]},"199":{"position":[[172,4],[426,4]]},"201":{"position":[[167,4],[447,4]]},"203":{"position":[[182,4],[464,4]]},"211":{"position":[[157,4],[392,4]]},"213":{"position":[[152,4],[413,4]]},"215":{"position":[[167,4],[430,4]]},"247":{"position":[[126,5],[342,5]]},"249":{"position":[[136,5],[378,5]]},"258":{"position":[[117,4],[319,4]]},"260":{"position":[[127,4],[355,4]]},"262":{"position":[[127,4],[374,4]]}}}],["5",{"_index":600,"t":{"64":{"position":[[80,3]]},"280":{"position":[[180,2],[369,2]]}}}],["5.6.10",{"_index":1024,"t":{"282":{"position":[[773,9]]}}}],["53",{"_index":163,"t":{"12":{"position":[[962,3],[1465,4]]}}}],["6",{"_index":601,"t":{"64":{"position":[[84,3]]}}}],["6.9.0",{"_index":948,"t":{"184":{"position":[[2207,8]]}}}],["60000",{"_index":198,"t":{"14":{"position":[[740,6],[811,5],[1225,6],[1296,5]]}}}],["8",{"_index":972,"t":{"278":{"position":[[366,2]]},"282":{"position":[[853,2]]}}}],["8bb6118f8fd6935ad0876a3be34a717d32708ffd",{"_index":834,"t":{"129":{"position":[[193,43]]},"150":{"position":[[163,43]]},"169":{"position":[[216,43]]}}}],["_err",{"_index":766,"t":{"102":{"position":[[54,6],[148,6]]},"105":{"position":[[240,6],[377,6],[718,6],[853,6]]},"107":{"position":[[314,6]]},"109":{"position":[[493,6]]},"111":{"position":[[384,6]]},"113":{"position":[[705,6]]}}}],["a,b,c,d",{"_index":661,"t":{"79":{"position":[[31,7]]}}}],["a.j",{"_index":866,"t":{"137":{"position":[[44,4]]},"158":{"position":[[32,4]]},"177":{"position":[[40,4]]}}}],["abov",{"_index":215,"t":{"14":{"position":[[1638,5],[1844,5],[2154,5],[2385,5]]},"87":{"position":[[708,5]]}}}],["accept",{"_index":712,"t":{"83":{"position":[[976,6]]}}}],["access",{"_index":671,"t":{"81":{"position":[[357,6]]},"98":{"position":[[57,7]]},"100":{"position":[[51,7]]},"119":{"position":[[77,6]]},"284":{"position":[[221,7]]},"286":{"position":[[637,7]]},"288":{"position":[[655,7]]},"290":{"position":[[331,7]]},"292":{"position":[[331,7]]},"294":{"position":[[349,7]]},"296":{"position":[[349,7]]},"298":{"position":[[145,6]]}}}],["accord",{"_index":398,"t":{"32":{"position":[[2435,9]]}}}],["accordingli",{"_index":354,"t":{"32":{"position":[[760,12]]}}}],["ack",{"_index":624,"t":{"66":{"position":[[641,3]]}}}],["acquir",{"_index":222,"t":{"14":{"position":[[2044,9]]}}}],["action",{"_index":536,"t":{"52":{"position":[[101,7],[238,7],[335,7],[530,7]]}}}],["activ",{"_index":1190,"t":{"310":{"position":[[1289,6]]}}}],["ad",{"_index":1127,"t":{"302":{"position":[[122,6]]}}}],["add(group",{"_index":900,"t":{"165":{"position":[[0,10]]},"167":{"position":[[0,10]]},"169":{"position":[[0,10]]},"171":{"position":[[0,10]]},"173":{"position":[[0,10]]},"177":{"position":[[0,10]]}}}],["addit",{"_index":297,"t":{"22":{"position":[[228,10]]},"32":{"position":[[599,10]]},"34":{"position":[[245,10],[296,10]]},"61":{"position":[[251,8]]},"81":{"position":[[3,8]]},"83":{"position":[[905,8]]},"85":{"position":[[3,8]]},"308":{"position":[[370,10]]}}}],["addition",{"_index":232,"t":{"14":{"position":[[2583,13]]}}}],["address",{"_index":1199,"t":{"310":{"position":[[1520,10]]}}}],["advanc",{"_index":804,"t":{"117":{"position":[[80,8]]}}}],["affect",{"_index":1109,"t":{"286":{"position":[[2317,8]]},"288":{"position":[[2352,8]]}}}],["affectedrow",{"_index":567,"t":{"59":{"position":[[222,13]]},"109":{"position":[[242,12],[582,13]]},"111":{"position":[[478,13],[605,13]]},"113":{"position":[[794,13]]},"286":{"position":[[485,15]]},"288":{"position":[[503,15]]}}}],["ag",{"_index":123,"t":{"10":{"position":[[451,5],[766,5],[1131,5],[1417,5]]},"12":{"position":[[935,5],[1438,5]]},"16":{"position":[[378,5],[960,5]]},"199":{"position":[[106,6],[360,6]]},"201":{"position":[[101,6],[381,6]]},"203":{"position":[[116,6],[398,6]]},"211":{"position":[[121,5],[356,5]]},"213":{"position":[[116,5],[377,5]]},"215":{"position":[[131,5],[394,5]]},"221":{"position":[[97,5],[337,5]]},"223":{"position":[[92,5],[358,5]]},"225":{"position":[[107,5],[375,5]]},"247":{"position":[[89,6],[305,6]]},"249":{"position":[[99,6],[341,6]]},"258":{"position":[[109,5],[311,5]]},"260":{"position":[[119,5],[347,5]]},"262":{"position":[[119,5],[366,5]]},"269":{"position":[[80,5],[287,5]]},"271":{"position":[[90,5],[323,5]]}}}],["again",{"_index":165,"t":{"12":{"position":[[1693,6]]},"34":{"position":[[396,6]]},"182":{"position":[[245,6]]}}}],["aim",{"_index":292,"t":{"22":{"position":[[7,4]]}}}],["algorithm",{"_index":402,"t":{"32":{"position":[[2592,9]]}}}],["algoritm",{"_index":417,"t":{"34":{"position":[[502,9]]}}}],["allow",{"_index":486,"t":{"42":{"position":[[181,6]]}}}],["alongsid",{"_index":499,"t":{"44":{"position":[[90,9]]}}}],["altern",{"_index":220,"t":{"14":{"position":[[1987,14]]}}}],["alway",{"_index":310,"t":{"26":{"position":[[192,6]]},"32":{"position":[[1488,6],[2239,6]]},"286":{"position":[[1793,6]]},"288":{"position":[[1830,6]]}}}],["amazon",{"_index":845,"t":{"133":{"position":[[56,6],[113,6],[406,7],[762,7]]},"135":{"position":[[36,6],[138,6]]},"154":{"position":[[44,6],[101,6],[376,7],[801,7]]},"156":{"position":[[36,6],[138,6]]},"173":{"position":[[52,6],[109,6],[429,7],[962,7]]},"175":{"position":[[36,6],[138,6]]}}}],["anoth",{"_index":340,"t":{"32":{"position":[[372,7]]}}}],["answer",{"_index":1116,"t":{"298":{"position":[[22,7]]},"302":{"position":[[84,7]]},"304":{"position":[[84,7]]}}}],["api",{"_index":24,"t":{"2":{"position":[[240,3]]},"4":{"position":[[17,3]]},"16":{"position":[[28,4]]},"22":{"position":[[76,3]]},"32":{"position":[[1303,3]]},"85":{"position":[[79,3]]},"308":{"position":[[102,3],[279,3]]}}}],["appli",{"_index":46,"t":{"4":{"position":[[233,7]]},"18":{"position":[[291,8],[339,8]]}}}],["approach",{"_index":1175,"t":{"310":{"position":[[817,11]]}}}],["arg",{"_index":986,"t":{"278":{"position":[[772,5]]}}}],["argument",{"_index":48,"t":{"4":{"position":[[252,10]]},"55":{"position":[[89,9]]}}}],["arguments[1",{"_index":988,"t":{"278":{"position":[[941,13],[1149,13]]}}}],["arguments[2",{"_index":989,"t":{"278":{"position":[[965,13]]}}}],["array",{"_index":267,"t":{"18":{"position":[[80,5],[844,5],[853,6],[875,5],[1140,5],[1149,6],[1171,5]]},"59":{"position":[[536,5]]},"66":{"position":[[230,5],[318,5]]},"77":{"position":[[398,5],[942,5]]},"79":{"position":[[139,5],[148,6]]},"105":{"position":[[11,5]]},"262":{"position":[[614,5]]},"278":{"position":[[824,7],[840,7]]}}}],["array.isarray(arguments[1",{"_index":987,"t":{"278":{"position":[[851,29]]}}}],["asc",{"_index":1064,"t":{"284":{"position":[[926,5]]},"286":{"position":[[1558,4]]},"288":{"position":[[1595,4]]},"290":{"position":[[1078,5]]},"292":{"position":[[1107,3],[1161,3]]},"294":{"position":[[1115,5]]},"296":{"position":[[1144,3],[1198,3]]}}}],["ascertain",{"_index":1182,"t":{"310":{"position":[[1045,9]]}}}],["ask",{"_index":280,"t":{"18":{"position":[[1262,3]]},"32":{"position":[[43,3]]},"298":{"position":[[42,5]]}}}],["assur",{"_index":1156,"t":{"310":{"position":[[162,6]]}}}],["async",{"_index":240,"t":{"16":{"position":[[64,5],[113,5],[1141,5]]},"89":{"position":[[0,5],[224,5]]},"184":{"position":[[92,5],[1962,5]]},"284":{"position":[[296,6]]},"286":{"position":[[616,6]]},"288":{"position":[[634,6]]},"290":{"position":[[310,6]]},"292":{"position":[[310,6]]},"294":{"position":[[328,6]]},"296":{"position":[[328,6]]}}}],["asynchron",{"_index":351,"t":{"32":{"position":[[703,14]]}}}],["attach",{"_index":594,"t":{"61":{"position":[[499,6]]}}}],["attack",{"_index":151,"t":{"12":{"position":[[302,7]]}}}],["auth",{"_index":332,"t":{"32":{"position":[[83,4],[801,4],[952,6],[1869,6]]},"34":{"position":[[702,5],[842,5],[982,5]]},"282":{"position":[[119,4]]}}}],["auth.doublesha1('pass123",{"_index":1010,"t":{"282":{"position":[[235,27]]}}}],["auth.verifytoken",{"_index":1012,"t":{"282":{"position":[[279,17]]}}}],["authcallback",{"_index":1027,"t":{"282":{"position":[[948,13]]}}}],["authent",{"_index":300,"t":{"22":{"position":[[285,14]]},"32":{"position":[[211,14],[610,14]]},"34":{"position":[[34,14],[159,14],[256,14],[412,14]]},"282":{"position":[[962,13]]},"308":{"position":[[558,14]]}}}],["authenticate(param",{"_index":1007,"t":{"282":{"position":[[169,20]]}}}],["authentication::native41",{"_index":399,"t":{"32":{"position":[[2448,24]]}}}],["authnextfactor",{"_index":409,"t":{"34":{"position":[[90,14]]}}}],["author",{"_index":944,"t":{"184":{"position":[[2144,9]]}}}],["authplugin",{"_index":333,"t":{"32":{"position":[[103,11],[928,12],[2480,11]]},"34":{"position":[[661,12]]}}}],["authswitchhandl",{"_index":374,"t":{"32":{"position":[[1318,17],[1778,18],[2508,17]]}}}],["authswitchrequest",{"_index":390,"t":{"32":{"position":[[2130,17]]}}}],["auto",{"_index":470,"t":{"40":{"position":[[709,4]]}}}],["auto_incr",{"_index":1054,"t":{"284":{"position":[[548,15]]},"286":{"position":[[993,15]]},"288":{"position":[[1030,15]]},"290":{"position":[[687,15]]},"292":{"position":[[713,15]]},"294":{"position":[[724,15]]},"296":{"position":[[750,15]]}}}],["automat",{"_index":217,"t":{"14":{"position":[[1733,13],[1940,13]]},"280":{"position":[[270,13]]}}}],["avail",{"_index":133,"t":{"10":{"position":[[606,9],[1318,9]]},"12":{"position":[[1109,9],[1644,9]]},"16":{"position":[[443,9]]},"46":{"position":[[238,9]]},"83":{"position":[[1080,10]]},"187":{"position":[[704,9]]},"189":{"position":[[753,9]]},"191":{"position":[[770,9]]},"199":{"position":[[758,9]]},"201":{"position":[[807,9]]},"203":{"position":[[824,9]]},"211":{"position":[[639,9]]},"213":{"position":[[688,9]]},"215":{"position":[[705,9]]},"221":{"position":[[730,9]]},"223":{"position":[[779,9]]},"225":{"position":[[796,9]]},"236":{"position":[[627,9]]},"238":{"position":[[691,9]]},"247":{"position":[[665,9]]},"249":{"position":[[729,9]]},"258":{"position":[[556,9]]},"260":{"position":[[620,9]]},"262":{"position":[[667,9]]},"269":{"position":[[647,9]]},"271":{"position":[[711,9]]},"310":{"position":[[1330,10]]}}}],["avg",{"_index":44,"t":{"4":{"position":[[212,5]]}}}],["avoid",{"_index":51,"t":{"4":{"position":[[292,5]]},"14":{"position":[[219,5]]}}}],["await",{"_index":109,"t":{"10":{"position":[[235,5],[378,5],[698,5]]},"12":{"position":[[703,5],[865,5]]},"14":{"position":[[1667,5],[2173,5],[2237,5]]},"16":{"position":[[70,6],[181,5],[308,5],[744,5],[890,5],[1414,5]]},"18":{"position":[[426,5],[705,5]]},"89":{"position":[[82,5],[155,5],[204,5],[398,5],[516,5]]},"91":{"position":[[356,5]]},"125":{"position":[[124,5]]},"127":{"position":[[128,5]]},"129":{"position":[[128,5]]},"131":{"position":[[146,5]]},"133":{"position":[[315,5],[488,5],[547,5]]},"146":{"position":[[194,5]]},"148":{"position":[[235,5]]},"150":{"position":[[239,5]]},"152":{"position":[[334,5]]},"154":{"position":[[413,5],[545,5],[604,5]]},"165":{"position":[[286,5]]},"167":{"position":[[327,5]]},"169":{"position":[[331,5]]},"171":{"position":[[426,5]]},"173":{"position":[[505,5],[654,5],[713,5]]},"184":{"position":[[126,5],[292,5],[373,5],[675,5],[930,5],[1183,5],[1364,5],[2007,7]]},"187":{"position":[[175,5]]},"189":{"position":[[170,5]]},"191":{"position":[[185,5]]},"199":{"position":[[202,5]]},"201":{"position":[[197,5]]},"203":{"position":[[212,5]]},"211":{"position":[[185,5]]},"213":{"position":[[180,5]]},"215":{"position":[[195,5]]},"221":{"position":[[188,5]]},"223":{"position":[[183,5]]},"225":{"position":[[198,5]]},"236":{"position":[[138,5]]},"238":{"position":[[148,5]]},"247":{"position":[[157,5]]},"249":{"position":[[167,5]]},"258":{"position":[[145,5]]},"260":{"position":[[155,5]]},"262":{"position":[[155,5]]},"269":{"position":[[148,5]]},"271":{"position":[[158,5]]},"284":{"position":[[392,5],[487,5],[656,5],[864,5],[1062,5]]},"286":{"position":[[731,5],[817,5],[922,5],[1101,5],[1337,5],[1454,5],[1618,5],[2083,5]]},"288":{"position":[[768,5],[854,5],[959,5],[1138,5],[1374,5],[1491,5],[1655,5],[2118,5]]},"290":{"position":[[425,5],[511,5],[616,5],[795,5],[1013,5],[1208,5]]},"292":{"position":[[451,5],[537,5],[642,5],[821,5],[1038,5],[1351,5]]},"294":{"position":[[462,5],[548,5],[653,5],[832,5],[1050,5],[1243,5]]},"296":{"position":[[488,5],[574,5],[679,5],[858,5],[1075,5],[1386,5]]},"304":{"position":[[205,5],[573,5],[930,5],[1182,5],[1525,5]]}}}],["await.j",{"_index":914,"t":{"184":{"position":[[0,8],[2062,11]]}}}],["b",{"_index":466,"t":{"40":{"position":[[622,1]]},"79":{"position":[[197,1]]}}}],["b.j",{"_index":867,"t":{"137":{"position":[[49,4]]},"158":{"position":[[37,4]]},"177":{"position":[[45,4]]}}}],["babel",{"_index":947,"t":{"184":{"position":[[2194,6]]}}}],["babelrc",{"_index":916,"t":{"184":{"position":[[15,8]]}}}],["back",{"_index":349,"t":{"32":{"position":[[659,4]]}}}],["backend",{"_index":820,"t":{"121":{"position":[[118,8],[166,8]]}}}],["backward",{"_index":1157,"t":{"310":{"position":[[169,8],[281,8]]}}}],["badg",{"_index":507,"t":{"46":{"position":[[18,6]]},"310":{"position":[[14,6]]}}}],["bar",{"_index":706,"t":{"83":{"position":[[730,6]]},"87":{"position":[[241,6],[528,6]]}}}],["base",{"_index":18,"t":{"2":{"position":[[170,5]]},"85":{"position":[[73,5]]},"310":{"position":[[983,5]]}}}],["basi",{"_index":66,"t":{"4":{"position":[[517,6]]}}}],["basic",{"_index":808,"t":{"117":{"position":[[608,5]]}}}],["befor",{"_index":546,"t":{"52":{"position":[[474,6]]},"284":{"position":[[1651,6]]}}}],["begin",{"_index":798,"t":{"113":{"position":[[552,5]]},"286":{"position":[[1518,5]]},"288":{"position":[[1555,5]]}}}],["behavior",{"_index":590,"t":{"61":{"position":[[363,8]]}}}],["below",{"_index":961,"t":{"234":{"position":[[13,5]]},"245":{"position":[[13,5]]},"256":{"position":[[13,5]]},"267":{"position":[[13,5]]}}}],["benchmark",{"_index":327,"t":{"30":{"position":[[63,10],[85,10],[115,10]]}}}],["beta",{"_index":1033,"t":{"282":{"position":[[1222,7],[1239,7]]}}}],["better",{"_index":144,"t":{"12":{"position":[[153,6],[1783,6]]},"22":{"position":[[170,6]]},"64":{"position":[[449,6]]},"182":{"position":[[335,6]]},"308":{"position":[[400,6]]}}}],["between",{"_index":406,"t":{"32":{"position":[[2648,7]]},"94":{"position":[[107,7]]}}}],["bin.000007",{"_index":885,"t":{"142":{"position":[[311,12]]}}}],["binari",{"_index":76,"t":{"6":{"position":[[102,6]]},"22":{"position":[[364,6]]},"59":{"position":[[584,6]]},"308":{"position":[[445,6]]}}}],["bind",{"_index":81,"t":{"8":{"position":[[27,8]]},"28":{"position":[[99,8],[173,8]]},"70":{"position":[[4,4]]}}}],["binlog",{"_index":324,"t":{"28":{"position":[[249,6]]}}}],["binlogpo",{"_index":886,"t":{"142":{"position":[[324,10]]}}}],["binlogstream",{"_index":877,"t":{"142":{"position":[[100,12]]}}}],["binlogstream.pip",{"_index":889,"t":{"142":{"position":[[381,18]]}}}],["blob",{"_index":383,"t":{"32":{"position":[[1607,4]]}}}],["block",{"_index":518,"t":{"48":{"position":[[177,6]]},"142":{"position":[[362,8]]},"304":{"position":[[137,6],[435,6],[769,6],[1154,6],[1497,6]]}}}],["bluebird",{"_index":248,"t":{"16":{"position":[[629,8],[645,8],[659,11],[705,8],[835,9]]}}}],["boolean",{"_index":583,"t":{"61":{"position":[[146,7]]},"70":{"position":[[105,7]]}}}],["both",{"_index":1136,"t":{"302":{"position":[[1417,4],[1748,4]]},"304":{"position":[[1343,4],[1682,4]]}}}],["bound",{"_index":1159,"t":{"310":{"position":[[230,5]]}}}],["branch",{"_index":445,"t":{"40":{"position":[[154,6]]}}}],["browser",{"_index":454,"t":{"40":{"position":[[399,7]]}}}],["buffer",{"_index":347,"t":{"32":{"position":[[630,8],[1667,8]]},"70":{"position":[[222,6]]}}}],["buffer.from",{"_index":833,"t":{"129":{"position":[[180,12]]},"150":{"position":[[150,12]]},"169":{"position":[[203,12]]}}}],["buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd",{"_index":836,"t":{"129":{"position":[[384,55]]},"150":{"position":[[429,55]]},"169":{"position":[[583,55]]}}}],["bug",{"_index":1198,"t":{"310":{"position":[[1488,4]]}}}],["build",{"_index":542,"t":{"52":{"position":[[266,5],[306,5]]}}}],["built",{"_index":430,"t":{"36":{"position":[[16,5]]}}}],["bun",{"_index":864,"t":{"135":{"position":[[119,3]]},"156":{"position":[[119,3]]},"175":{"position":[[119,3]]}}}],["byte",{"_index":586,"t":{"61":{"position":[[242,5]]}}}],["bytes/sec",{"_index":694,"t":{"83":{"position":[[240,9]]}}}],["c",{"_index":161,"t":{"12":{"position":[[954,1],[1457,1]]},"79":{"position":[[214,1]]},"91":{"position":[[83,1]]},"184":{"position":[[122,1],[1592,1]]}}}],["c.end",{"_index":751,"t":{"91":{"position":[[310,8]]},"184":{"position":[[936,8],[1824,8]]}}}],["c.execute('select",{"_index":748,"t":{"91":{"position":[[251,17]]},"184":{"position":[[484,17],[569,17],[695,17],[727,17],[1765,17]]}}}],["c.query('show",{"_index":746,"t":{"91":{"position":[[187,13]]},"184":{"position":[[298,13],[1701,13]]}}}],["c.query('som",{"_index":920,"t":{"184":{"position":[[379,13]]}}}],["ca",{"_index":842,"t":{"131":{"position":[[294,3],[575,3]]},"133":{"position":[[202,2],[214,2]]},"135":{"position":[[153,2]]},"152":{"position":[[264,3],[620,3]]},"154":{"position":[[190,2],[202,2]]},"156":{"position":[[153,2]]},"171":{"position":[[317,3],[774,3]]},"173":{"position":[[198,2],[210,2]]},"175":{"position":[[153,2]]}}}],["cach",{"_index":168,"t":{"12":{"position":[[1729,5]]},"64":{"position":[[215,6],[256,6],[322,5],[416,5],[480,5]]},"66":{"position":[[52,5]]},"68":{"position":[[36,6],[63,6],[173,5]]},"182":{"position":[[281,5]]}}}],["call",{"_index":158,"t":{"12":{"position":[[816,4],[1351,4]]},"32":{"position":[[520,4],[560,4],[1549,5],[2556,6]]},"64":{"position":[[209,5]]},"113":{"position":[[89,4],[629,5],[1033,5]]}}}],["callback",{"_index":103,"t":{"10":{"position":[[116,8]]},"12":{"position":[[596,8]]},"14":{"position":[[388,8],[1591,8],[2113,8]]},"18":{"position":[[404,8],[664,8]]},"32":{"position":[[1443,9]]},"59":{"position":[[453,9]]},"66":{"position":[[598,8]]}}}],["callback'",{"_index":1129,"t":{"302":{"position":[[470,10],[822,10],[1226,10],[1561,10]]}}}],["callback(nul",{"_index":385,"t":{"32":{"position":[[1646,14]]}}}],["callback.j",{"_index":829,"t":{"125":{"position":[[51,11]]},"127":{"position":[[55,11]]},"129":{"position":[[55,11]]},"131":{"position":[[55,11]]},"133":{"position":[[242,11]]},"146":{"position":[[45,11]]},"148":{"position":[[43,11]]},"150":{"position":[[43,11]]},"152":{"position":[[43,11]]},"154":{"position":[[230,11]]},"165":{"position":[[53,11]]},"167":{"position":[[51,11]]},"169":{"position":[[51,11]]},"171":{"position":[[51,11]]},"173":{"position":[[238,11]]},"187":{"position":[[47,11]]},"189":{"position":[[42,11]]},"191":{"position":[[57,11]]},"199":{"position":[[47,11]]},"201":{"position":[[42,11]]},"203":{"position":[[57,11]]},"211":{"position":[[47,11]]},"213":{"position":[[42,11]]},"215":{"position":[[57,11]]},"221":{"position":[[47,11]]},"223":{"position":[[42,11]]},"225":{"position":[[57,11]]},"236":{"position":[[30,11]]},"238":{"position":[[40,11]]},"247":{"position":[[30,11]]},"249":{"position":[[40,11]]},"258":{"position":[[30,11]]},"260":{"position":[[40,11]]},"262":{"position":[[40,11]]},"269":{"position":[[30,11]]},"271":{"position":[[40,11]]}}}],["candid",{"_index":1179,"t":{"310":{"position":[[859,9]]}}}],["capabilityflag",{"_index":562,"t":{"59":{"position":[[91,15]]},"278":{"position":[[369,16]]},"282":{"position":[[859,16],[889,16],[919,16]]}}}],["case",{"_index":376,"t":{"32":{"position":[[1461,5]]},"83":{"position":[[352,4]]},"133":{"position":[[148,4]]},"154":{"position":[[136,4]]},"173":{"position":[[144,4]]}}}],["catalog",{"_index":1029,"t":{"282":{"position":[[1139,8]]}}}],["catch",{"_index":134,"t":{"10":{"position":[[618,5],[818,5]]},"12":{"position":[[1121,5]]},"14":{"position":[[1778,5]]},"18":{"position":[[939,5]]},"125":{"position":[[203,5]]},"127":{"position":[[248,5]]},"129":{"position":[[252,5]]},"131":{"position":[[347,5]]},"133":{"position":[[426,5],[591,5]]},"146":{"position":[[264,5]]},"148":{"position":[[305,5]]},"150":{"position":[[309,5]]},"152":{"position":[[404,5]]},"154":{"position":[[483,5],[642,5]]},"165":{"position":[[373,5]]},"167":{"position":[[414,5]]},"169":{"position":[[418,5]]},"171":{"position":[[513,5]]},"173":{"position":[[592,5],[758,5]]},"184":{"position":[[415,5]]},"187":{"position":[[258,5]]},"189":{"position":[[279,5]]},"191":{"position":[[296,5]]},"199":{"position":[[285,5]]},"201":{"position":[[306,5]]},"203":{"position":[[323,5]]},"211":{"position":[[266,5]]},"213":{"position":[[287,5]]},"215":{"position":[[304,5]]},"221":{"position":[[271,5]]},"223":{"position":[[292,5]]},"225":{"position":[[309,5]]},"236":{"position":[[211,5]]},"238":{"position":[[247,5]]},"247":{"position":[[230,5]]},"249":{"position":[[266,5]]},"258":{"position":[[216,5]]},"260":{"position":[[252,5]]},"262":{"position":[[271,5]]},"269":{"position":[[221,5]]},"271":{"position":[[257,5]]},"304":{"position":[[131,5],[276,5],[429,5],[603,5],[763,5],[974,5],[1148,5],[1244,5],[1491,5],[1585,5]]}}}],["catch((err",{"_index":368,"t":{"32":{"position":[[1176,12]]},"87":{"position":[[620,12]]},"184":{"position":[[1426,12]]}}}],["catch(console.log",{"_index":263,"t":{"16":{"position":[[1806,19]]}}}],["catch(funct",{"_index":940,"t":{"184":{"position":[[1880,15]]}}}],["caus",{"_index":1193,"t":{"310":{"position":[[1407,5]]}}}],["caution",{"_index":476,"t":{"40":{"position":[[816,7]]},"310":{"position":[[387,7]]}}}],["cb",{"_index":386,"t":{"32":{"position":[[1835,3]]},"83":{"position":[[754,4]]},"282":{"position":[[190,3]]}}}],["cb(err",{"_index":392,"t":{"32":{"position":[[2196,8]]}}}],["cb(null",{"_index":388,"t":{"32":{"position":[[2065,8]]},"83":{"position":[[874,8]]},"282":{"position":[[391,9],[455,8]]}}}],["cd",{"_index":447,"t":{"40":{"position":[[189,2],[643,2]]}}}],["cert",{"_index":841,"t":{"131":{"position":[[245,5],[526,5]]},"133":{"position":[[217,4]]},"135":{"position":[[26,5],[156,4]]},"152":{"position":[[215,5],[571,5]]},"154":{"position":[[205,4]]},"156":{"position":[[26,5],[156,4]]},"171":{"position":[[268,5],[725,5]]},"173":{"position":[[213,4]]},"175":{"position":[[26,5],[156,4]]}}}],["cert.pem",{"_index":838,"t":{"131":{"position":[[76,8],[283,10],[326,11],[564,10],[607,11]]},"133":{"position":[[205,8]]},"152":{"position":[[64,8],[253,10],[296,11],[609,10],[652,11]]},"154":{"position":[[193,8]]},"171":{"position":[[72,8],[306,10],[349,11],[763,10],[806,11]]},"173":{"position":[[201,8]]}}}],["certs/ca",{"_index":837,"t":{"131":{"position":[[67,8]]},"152":{"position":[[55,8]]},"171":{"position":[[63,8]]}}}],["chang",{"_index":455,"t":{"40":{"position":[[420,7]]},"44":{"position":[[39,7],[106,8],[211,8],[227,6],[304,7],[344,7],[364,6]]},"109":{"position":[[24,7]]},"111":{"position":[[24,7]]},"113":{"position":[[24,7]]},"308":{"position":[[106,7]]},"310":{"position":[[301,7],[471,7],[747,8],[930,7]]}}}],["changedrow",{"_index":782,"t":{"109":{"position":[[148,11],[657,12]]},"111":{"position":[[554,12],[680,12]]},"113":{"position":[[869,12]]},"286":{"position":[[554,14]]},"288":{"position":[[572,14]]}}}],["changeus",{"_index":626,"t":{"66":{"position":[[749,13]]},"83":{"position":[[963,12]]}}}],["characterset",{"_index":561,"t":{"59":{"position":[[77,13]]},"278":{"position":[[352,13]]},"282":{"position":[[839,13],[1247,13]]}}}],["check",{"_index":147,"t":{"12":{"position":[[222,5]]},"20":{"position":[[44,5]]},"24":{"position":[[7,5]]},"26":{"position":[[57,5]]},"52":{"position":[[13,5],[119,5],[158,6]]},"102":{"position":[[374,5]]},"117":{"position":[[13,5],[372,8],[477,8]]}}}],["checkout",{"_index":465,"t":{"40":{"position":[[612,8]]}}}],["choos",{"_index":245,"t":{"16":{"position":[[475,6]]}}}],["ci",{"_index":449,"t":{"40":{"position":[[240,2],[679,2]]}}}],["clash",{"_index":269,"t":{"18":{"position":[[129,9]]}}}],["class",{"_index":12,"t":{"2":{"position":[[124,5]]},"117":{"position":[[628,5]]},"284":{"position":[[1428,5],[1669,5]]}}}],["classif",{"_index":1185,"t":{"310":{"position":[[1098,15]]}}}],["classifi",{"_index":1169,"t":{"310":{"position":[[618,10],[1354,10]]}}}],["clear",{"_index":541,"t":{"52":{"position":[[256,5],[292,5]]}}}],["cli",{"_index":461,"t":{"40":{"position":[[541,3]]},"184":{"position":[[2201,5]]}}}],["client",{"_index":28,"t":{"2":{"position":[[273,7]]},"6":{"position":[[6,6]]},"10":{"position":[[136,6],[863,6]]},"16":{"position":[[539,6]]},"22":{"position":[[384,6]]},"28":{"position":[[68,6],[143,7],[220,6]]},"32":{"position":[[51,6],[1577,6],[2656,6]]},"34":{"position":[[68,6]]},"59":{"position":[[276,6],[383,7]]},"61":{"position":[[318,7]]},"77":{"position":[[171,6]]},"121":{"position":[[237,6],[281,6]]}}}],["clientflag",{"_index":964,"t":{"278":{"position":[[62,11]]}}}],["clientflags.compress",{"_index":974,"t":{"278":{"position":[[397,21]]}}}],["clientplugindata(password1",{"_index":424,"t":{"34":{"position":[[789,27]]}}}],["clientplugindata(password2",{"_index":426,"t":{"34":{"position":[[929,27]]}}}],["clientplugindata(password3",{"_index":428,"t":{"34":{"position":[[1069,27]]}}}],["clone",{"_index":463,"t":{"40":{"position":[[557,5]]}}}],["close",{"_index":178,"t":{"14":{"position":[[138,7]]},"61":{"position":[[405,5]]},"64":{"position":[[250,5]]},"66":{"position":[[72,6],[635,5]]},"68":{"position":[[187,7]]},"310":{"position":[[895,5]]}}}],["co",{"_index":742,"t":{"91":{"position":[[39,2],[353,2]]},"184":{"position":[[1548,2],[2004,2]]}}}],["co(funct",{"_index":744,"t":{"91":{"position":[[59,12]]},"184":{"position":[[1568,12]]}}}],["co.j",{"_index":915,"t":{"184":{"position":[[9,5]]}}}],["code",{"_index":17,"t":{"2":{"position":[[165,4],[192,5]]},"32":{"position":[[821,4]]},"48":{"position":[[172,4]]},"61":{"position":[[230,4]]},"117":{"position":[[24,4]]},"135":{"position":[[98,4]]},"156":{"position":[[98,4]]},"175":{"position":[[98,4]]},"282":{"position":[[425,5],[498,5],[683,5]]},"308":{"position":[[66,4],[217,4]]}}}],["collat",{"_index":1154,"t":{"308":{"position":[[512,9]]}}}],["column",{"_index":266,"t":{"18":{"position":[[16,7]]},"66":{"position":[[239,6],[334,6],[480,8]]},"278":{"position":[[832,7],[955,7],[1029,9],[1066,9]]}}}],["columnlength",{"_index":1036,"t":{"282":{"position":[[1265,13]]}}}],["columntyp",{"_index":1038,"t":{"282":{"position":[[1284,11]]}}}],["come",{"_index":182,"t":{"14":{"position":[[250,5]]},"66":{"position":[[37,5]]}}}],["command",{"_index":545,"t":{"52":{"position":[[466,7]]},"59":{"position":[[203,8]]},"61":{"position":[[6,7],[162,7],[222,7],[291,8]]},"184":{"position":[[842,8]]},"310":{"position":[[547,7]]}}}],["commandcod",{"_index":584,"t":{"61":{"position":[[190,13]]}}}],["commit",{"_index":547,"t":{"52":{"position":[[495,7]]}}}],["commonli",{"_index":1117,"t":{"298":{"position":[[33,8]]}}}],["compat",{"_index":26,"t":{"2":{"position":[[250,10]]},"4":{"position":[[21,10]]},"48":{"position":[[188,10]]},"135":{"position":[[103,10]]},"156":{"position":[[103,10]]},"175":{"position":[[103,10]]},"308":{"position":[[283,10]]},"310":{"position":[[178,14],[290,10],[1122,13]]}}}],["compil",{"_index":483,"t":{"42":{"position":[[121,8]]},"121":{"position":[[101,9]]}}}],["complet",{"_index":460,"t":{"40":{"position":[[500,8]]},"42":{"position":[[52,8]]}}}],["complianc",{"_index":534,"t":{"52":{"position":[[49,10]]}}}],["compon",{"_index":479,"t":{"42":{"position":[[12,9],[165,11],[273,10]]},"44":{"position":[[12,9],[286,10]]},"46":{"position":[[204,10]]},"48":{"position":[[122,9],[230,10]]},"52":{"position":[[173,10]]}}}],["compress",{"_index":23,"t":{"2":{"position":[[218,10]]},"6":{"position":[[123,12]]},"22":{"position":[[352,11]]},"308":{"position":[[538,11]]}}}],["concept",{"_index":805,"t":{"117":{"position":[[89,9]]}}}],["config",{"_index":313,"t":{"26":{"position":[[239,6]]},"32":{"position":[[126,6],[345,6],[1347,6]]},"34":{"position":[[354,6]]},"77":{"position":[[75,6]]},"167":{"position":[[19,7]]},"169":{"position":[[19,7]]},"171":{"position":[[19,7]]},"173":{"position":[[19,7]]},"177":{"position":[[19,7]]}}}],["confirm",{"_index":1125,"t":{"302":{"position":[[59,9]]},"304":{"position":[[59,9]]}}}],["conn",{"_index":224,"t":{"14":{"position":[[2166,4],[2425,5]]},"16":{"position":[[1634,4],[1721,4]]},"18":{"position":[[419,4],[537,4]]},"32":{"position":[[832,4],[1682,4]]},"34":{"position":[[518,4]]},"89":{"position":[[75,4]]},"98":{"position":[[128,4]]},"100":{"position":[[116,4]]},"105":{"position":[[107,4],[552,4]]},"107":{"position":[[124,4]]},"109":{"position":[[363,4]]},"111":{"position":[[214,4]]},"113":{"position":[[342,4]]},"278":{"position":[[201,6]]},"282":{"position":[[599,6]]},"284":{"position":[[1450,5]]},"286":{"position":[[724,4]]},"288":{"position":[[761,4]]},"290":{"position":[[418,4]]},"292":{"position":[[444,4]]},"294":{"position":[[455,4]]},"296":{"position":[[481,4]]}}}],["conn.clos",{"_index":1023,"t":{"282":{"position":[[700,13],[1482,13]]}}}],["conn.end",{"_index":264,"t":{"16":{"position":[[1838,12]]},"89":{"position":[[210,11]]},"286":{"position":[[2089,11]]},"288":{"position":[[2124,11]]},"290":{"position":[[1214,11]]},"292":{"position":[[1357,11]]},"294":{"position":[[1249,11]]},"296":{"position":[[1392,11]]}}}],["conn.execute('select",{"_index":732,"t":{"89":{"position":[[161,20]]},"102":{"position":[[108,20]]}}}],["conn.execute>(sql",{"_index":799,"t":{"113":{"position":[[651,53]]}}}],["conn.query>('cal",{"_index":1102,"t":{"286":{"position":[[1624,45]]},"288":{"position":[[1661,45]]}}}],["conn.query('drop",{"_index":1097,"t":{"286":{"position":[[823,33],[1343,33]]},"288":{"position":[[860,33],[1380,33]]},"290":{"position":[[517,33]]},"292":{"position":[[543,33]]},"294":{"position":[[554,33]]},"296":{"position":[[580,33]]}}}],["conn.query(sql",{"_index":787,"t":{"109":{"position":[[460,32]]}}}],["conn.query(sql",{"_index":792,"t":{"111":{"position":[[349,34]]}}}],["conn.query('select",{"_index":771,"t":{"105":{"position":[[185,35]]}}}],["conn.query('show",{"_index":773,"t":{"105":{"position":[[321,33],[797,33]]}}}],["conn.query(sql",{"_index":778,"t":{"107":{"position":[[279,34]]}}}],["conn.query - -Search the documentation - - + +Search the documentation + + diff --git a/sitemap.xml b/sitemap.xml index 5806386f8e..d82f6ca1f4 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1 +1 @@ -https://sidorares.github.io/node-mysql2/searchweekly0.5https://sidorares.github.io/node-mysql2/docsweekly0.5https://sidorares.github.io/node-mysql2/docs/acknowledgementsweekly0.5https://sidorares.github.io/node-mysql2/docs/api-and-configurationsweekly0.5https://sidorares.github.io/node-mysql2/docs/category/procedure-call-packetweekly0.5https://sidorares.github.io/node-mysql2/docs/category/queriesweekly0.5https://sidorares.github.io/node-mysql2/docs/category/row-data-packetweekly0.5https://sidorares.github.io/node-mysql2/docs/category/sslweekly0.5https://sidorares.github.io/node-mysql2/docs/category/typescriptweekly0.5https://sidorares.github.io/node-mysql2/docs/contributingweekly0.5https://sidorares.github.io/node-mysql2/docs/contributing/websiteweekly0.5https://sidorares.github.io/node-mysql2/docs/documentationweekly0.5https://sidorares.github.io/node-mysql2/docs/documentation/authentication-switchweekly0.5https://sidorares.github.io/node-mysql2/docs/documentation/extrasweekly0.5https://sidorares.github.io/node-mysql2/docs/documentation/mysql-serverweekly0.5https://sidorares.github.io/node-mysql2/docs/documentation/prepared-statementsweekly0.5https://sidorares.github.io/node-mysql2/docs/documentation/promise-wrapperweekly0.5https://sidorares.github.io/node-mysql2/docs/documentation/typescript-examplesweekly0.5https://sidorares.github.io/node-mysql2/docs/examplesweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/binlog-watcherweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/connect-over-socksweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/executeweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/mysqlproxyweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/pass-shaweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/pool-testweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/prepareweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/promise-co-awaitweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/queries/selectweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/serverweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/ssl/rds-sslweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/ssl/select-over-sslweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/typescript/basic-custom-classweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/typescript/procedure-call/procedure-call-packetweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/typescript/procedure-call/row-as-arrayweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/typescript/row-data/multi-statementsweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/typescript/row-data/row-as-arrayweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/typescript/row-data/row-as-array-multi-statementsweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/typescript/row-data/row-data-packetweekly0.5https://sidorares.github.io/node-mysql2/docs/faqweekly0.5https://sidorares.github.io/node-mysql2/docs/faq/how-to-handle-errorsweekly0.5https://sidorares.github.io/node-mysql2/docs/history-and-why-mysq2weekly0.5https://sidorares.github.io/node-mysql2/docs/stability-badgesweekly0.5https://sidorares.github.io/node-mysql2/weekly0.5 \ No newline at end of file +https://sidorares.github.io/node-mysql2/searchweekly0.5https://sidorares.github.io/node-mysql2/docs/tagsweekly0.5https://sidorares.github.io/node-mysql2/docs/tags/create-connectionweekly0.5https://sidorares.github.io/node-mysql2/docs/tags/create-poolweekly0.5https://sidorares.github.io/node-mysql2/docs/tags/create-pool-clusterweekly0.5https://sidorares.github.io/node-mysql2/docs/tags/executeweekly0.5https://sidorares.github.io/node-mysql2/docs/tags/parametersweekly0.5https://sidorares.github.io/node-mysql2/docs/tags/placeholdersweekly0.5https://sidorares.github.io/node-mysql2/docs/tags/prepared-statementsweekly0.5https://sidorares.github.io/node-mysql2/docs/tags/queryweekly0.5https://sidorares.github.io/node-mysql2/docs/tags/rdsweekly0.5https://sidorares.github.io/node-mysql2/docs/tags/sha-1weekly0.5https://sidorares.github.io/node-mysql2/docs/tags/socksweekly0.5https://sidorares.github.io/node-mysql2/docs/tags/sslweekly0.5https://sidorares.github.io/node-mysql2/docs/tags/uriweekly0.5https://sidorares.github.io/node-mysql2/docsweekly0.5https://sidorares.github.io/node-mysql2/docs/acknowledgementsweekly0.5https://sidorares.github.io/node-mysql2/docs/api-and-configurationsweekly0.5https://sidorares.github.io/node-mysql2/docs/contributingweekly0.5https://sidorares.github.io/node-mysql2/docs/contributing/websiteweekly0.5https://sidorares.github.io/node-mysql2/docs/documentationweekly0.5https://sidorares.github.io/node-mysql2/docs/documentation/authentication-switchweekly0.5https://sidorares.github.io/node-mysql2/docs/documentation/extrasweekly0.5https://sidorares.github.io/node-mysql2/docs/documentation/mysql-serverweekly0.5https://sidorares.github.io/node-mysql2/docs/documentation/prepared-statementsweekly0.5https://sidorares.github.io/node-mysql2/docs/documentation/promise-wrapperweekly0.5https://sidorares.github.io/node-mysql2/docs/documentation/typescript-examplesweekly0.5https://sidorares.github.io/node-mysql2/docs/examplesweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/binlog-watcherweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/connections/create-connectionweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/connections/create-poolweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/connections/createPoolClusterweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/promise-wrapper/co-awaitweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/queries/prepared-statementsweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/queries/prepared-statements/deleteweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/queries/prepared-statements/insertweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/queries/prepared-statements/selectweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/queries/prepared-statements/updateweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/queries/simple-queriesweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/queries/simple-queries/deleteweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/queries/simple-queries/insertweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/queries/simple-queries/selectweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/queries/simple-queries/updateweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/tests/mysql-proxyweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/tests/poolweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/tests/serverweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/typescript/basic-custom-classweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/typescript/procedure-call/indexweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/typescript/procedure-call/row-as-arrayweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/typescript/row-data/indexweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/typescript/row-data/multi-statementsweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/typescript/row-data/row-as-arrayweekly0.5https://sidorares.github.io/node-mysql2/docs/examples/typescript/row-data/row-as-array-multi-statementsweekly0.5https://sidorares.github.io/node-mysql2/docs/faqweekly0.5https://sidorares.github.io/node-mysql2/docs/faq/how-to-handle-errorsweekly0.5https://sidorares.github.io/node-mysql2/docs/history-and-why-mysq2weekly0.5https://sidorares.github.io/node-mysql2/docs/stability-badgesweekly0.5https://sidorares.github.io/node-mysql2/weekly0.5 \ No newline at end of file diff --git a/zh-CN/404.html b/zh-CN/404.html index 554f615ad7..cdad1b0df6 100644 --- a/zh-CN/404.html +++ b/zh-CN/404.html @@ -2,10 +2,10 @@ - -找不到页面 | Quickstart - - + +找不到页面 | Quickstart + +

        找不到页面

        我们找不到您要找的页面。

        请联系原始链接来源网站的所有者,并告知他们链接已损坏。

        diff --git a/zh-CN/assets/css/styles.01f7ab29.css b/zh-CN/assets/css/styles.01f7ab29.css deleted file mode 100644 index c06a1d018b..0000000000 --- a/zh-CN/assets/css/styles.01f7ab29.css +++ /dev/null @@ -1 +0,0 @@ -.col,.container{padding:0 var(--ifm-spacing-horizontal);width:100%}.markdown>h2,.markdown>h3,.markdown>h4,.markdown>h5,.markdown>h6{margin-bottom:calc(var(--ifm-heading-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown li,body{word-wrap:break-word}body,ol ol,ol ul,ul ol,ul ul{margin:0}pre,table{overflow:auto}blockquote,pre{margin:0 0 var(--ifm-spacing-vertical)}.breadcrumbs__link,.button{transition-timing-function:var(--ifm-transition-timing-default)}.button,code{vertical-align:middle}.button--outline.button--active,.button--outline:active,.button--outline:hover,:root{--ifm-button-color:var(--ifm-font-color-base-inverse)}.menu__link:hover,a{transition:color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--dark,:root{--ifm-navbar-link-hover-color:var(--ifm-color-primary)}.menu,.navbar-sidebar{overflow-x:hidden}:root,html[data-theme=dark]{--ifm-color-emphasis-500:var(--ifm-color-gray-500)}[data-theme=dark] details.history,[data-theme=light] details.history{--history-summary-icon:var(--docusaurus-details-decoration-color);--history-separator:var(--ifm-table-border-color)}.toggleButton_gllP,html{-webkit-tap-highlight-color:transparent}*,.loader,.loadingRing_RJI3 div{box-sizing:border-box}.clean-list,.containsTaskList_mC6p,.details_lb9f>summary,.dropdown__menu,.menu__list{list-style:none}:root{--ifm-color-scheme:light;--ifm-dark-value:10%;--ifm-darker-value:15%;--ifm-darkest-value:30%;--ifm-light-value:15%;--ifm-lighter-value:30%;--ifm-lightest-value:50%;--ifm-contrast-background-value:90%;--ifm-contrast-foreground-value:70%;--ifm-contrast-background-dark-value:70%;--ifm-contrast-foreground-dark-value:90%;--ifm-color-primary:#3578e5;--ifm-color-secondary:#ebedf0;--ifm-color-success:#00a400;--ifm-color-info:#54c7ec;--ifm-color-warning:#ffba00;--ifm-color-danger:#fa383e;--ifm-color-primary-dark:#306cce;--ifm-color-primary-darker:#2d66c3;--ifm-color-primary-darkest:#2554a0;--ifm-color-primary-light:#538ce9;--ifm-color-primary-lighter:#72a1ed;--ifm-color-primary-lightest:#9abcf2;--ifm-color-primary-contrast-background:#ebf2fc;--ifm-color-primary-contrast-foreground:#102445;--ifm-color-secondary-dark:#d4d5d8;--ifm-color-secondary-darker:#c8c9cc;--ifm-color-secondary-darkest:#a4a6a8;--ifm-color-secondary-light:#eef0f2;--ifm-color-secondary-lighter:#f1f2f5;--ifm-color-secondary-lightest:#f5f6f8;--ifm-color-secondary-contrast-background:#fdfdfe;--ifm-color-secondary-contrast-foreground:#474748;--ifm-color-success-dark:#009400;--ifm-color-success-darker:#008b00;--ifm-color-success-darkest:#007300;--ifm-color-success-light:#26b226;--ifm-color-success-lighter:#4dbf4d;--ifm-color-success-lightest:#80d280;--ifm-color-success-contrast-background:#e6f6e6;--ifm-color-success-contrast-foreground:#003100;--ifm-color-info-dark:#4cb3d4;--ifm-color-info-darker:#47a9c9;--ifm-color-info-darkest:#3b8ba5;--ifm-color-info-light:#6ecfef;--ifm-color-info-lighter:#87d8f2;--ifm-color-info-lightest:#aae3f6;--ifm-color-info-contrast-background:#eef9fd;--ifm-color-info-contrast-foreground:#193c47;--ifm-color-warning-dark:#e6a700;--ifm-color-warning-darker:#d99e00;--ifm-color-warning-darkest:#b38200;--ifm-color-warning-light:#ffc426;--ifm-color-warning-lighter:#ffcf4d;--ifm-color-warning-lightest:#ffdd80;--ifm-color-warning-contrast-background:#fff8e6;--ifm-color-warning-contrast-foreground:#4d3800;--ifm-color-danger-dark:#e13238;--ifm-color-danger-darker:#d53035;--ifm-color-danger-darkest:#af272b;--ifm-color-danger-light:#fb565b;--ifm-color-danger-lighter:#fb7478;--ifm-color-danger-lightest:#fd9c9f;--ifm-color-danger-contrast-background:#ffebec;--ifm-color-danger-contrast-foreground:#4b1113;--ifm-color-white:#fff;--ifm-color-black:#000;--ifm-color-gray-0:var(--ifm-color-white);--ifm-color-gray-100:#f5f6f7;--ifm-color-gray-200:#ebedf0;--ifm-color-gray-300:#dadde1;--ifm-color-gray-400:#ccd0d5;--ifm-color-gray-500:#bec3c9;--ifm-color-gray-600:#8d949e;--ifm-color-gray-700:#606770;--ifm-color-gray-800:#444950;--ifm-color-gray-900:#1c1e21;--ifm-color-gray-1000:var(--ifm-color-black);--ifm-color-emphasis-0:var(--ifm-color-gray-0);--ifm-color-emphasis-100:var(--ifm-color-gray-100);--ifm-color-emphasis-200:var(--ifm-color-gray-200);--ifm-color-emphasis-300:var(--ifm-color-gray-300);--ifm-color-emphasis-400:var(--ifm-color-gray-400);--ifm-color-emphasis-600:var(--ifm-color-gray-600);--ifm-color-emphasis-700:var(--ifm-color-gray-700);--ifm-color-emphasis-800:var(--ifm-color-gray-800);--ifm-color-emphasis-900:var(--ifm-color-gray-900);--ifm-color-emphasis-1000:var(--ifm-color-gray-1000);--ifm-color-content:var(--ifm-color-emphasis-900);--ifm-color-content-inverse:var(--ifm-color-emphasis-0);--ifm-color-content-secondary:#525860;--ifm-background-color:#0000;--ifm-background-surface-color:var(--ifm-color-content-inverse);--ifm-global-border-width:1px;--ifm-global-radius:0.4rem;--ifm-hover-overlay:#0000000d;--ifm-font-color-base:var(--ifm-color-content);--ifm-font-color-base-inverse:var(--ifm-color-content-inverse);--ifm-font-color-secondary:var(--ifm-color-content-secondary);--ifm-font-family-base:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ifm-font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--ifm-font-size-base:100%;--ifm-font-weight-light:300;--ifm-font-weight-normal:400;--ifm-font-weight-semibold:500;--ifm-font-weight-bold:700;--ifm-font-weight-base:var(--ifm-font-weight-normal);--ifm-line-height-base:1.65;--ifm-global-spacing:1rem;--ifm-spacing-vertical:var(--ifm-global-spacing);--ifm-spacing-horizontal:var(--ifm-global-spacing);--ifm-transition-fast:200ms;--ifm-transition-slow:400ms;--ifm-transition-timing-default:cubic-bezier(0.08,0.52,0.52,1);--ifm-global-shadow-lw:0 1px 2px 0 #0000001a;--ifm-global-shadow-md:0 5px 40px #0003;--ifm-global-shadow-tl:0 12px 28px 0 #0003,0 2px 4px 0 #0000001a;--ifm-z-index-dropdown:100;--ifm-z-index-fixed:200;--ifm-z-index-overlay:400;--ifm-container-width:1140px;--ifm-container-width-xl:1320px;--ifm-code-background:#f6f7f8;--ifm-code-border-radius:var(--ifm-global-radius);--ifm-code-font-size:90%;--ifm-code-padding-horizontal:0.1rem;--ifm-code-padding-vertical:0.1rem;--ifm-pre-background:var(--ifm-code-background);--ifm-pre-border-radius:var(--ifm-code-border-radius);--ifm-pre-color:inherit;--ifm-pre-line-height:1.45;--ifm-pre-padding:1rem;--ifm-heading-color:inherit;--ifm-heading-margin-top:0;--ifm-heading-margin-bottom:var(--ifm-spacing-vertical);--ifm-heading-font-family:var(--ifm-font-family-base);--ifm-heading-font-weight:var(--ifm-font-weight-bold);--ifm-heading-line-height:1.25;--ifm-h1-font-size:2rem;--ifm-h2-font-size:1.5rem;--ifm-h3-font-size:1.25rem;--ifm-h4-font-size:1rem;--ifm-h5-font-size:0.875rem;--ifm-h6-font-size:0.85rem;--ifm-image-alignment-padding:1.25rem;--ifm-leading-desktop:1.25;--ifm-leading:calc(var(--ifm-leading-desktop)*1rem);--ifm-list-left-padding:2rem;--ifm-list-margin:1rem;--ifm-list-item-margin:0.25rem;--ifm-list-paragraph-margin:1rem;--ifm-table-cell-padding:0.75rem;--ifm-table-background:#0000;--ifm-table-stripe-background:#00000008;--ifm-table-border-width:1px;--ifm-table-border-color:var(--ifm-color-emphasis-300);--ifm-table-head-background:inherit;--ifm-table-head-color:inherit;--ifm-table-head-font-weight:var(--ifm-font-weight-bold);--ifm-table-cell-color:inherit;--ifm-link-color:var(--ifm-color-primary);--ifm-link-decoration:none;--ifm-link-hover-color:var(--ifm-link-color);--ifm-link-hover-decoration:underline;--ifm-paragraph-margin-bottom:var(--ifm-leading);--ifm-blockquote-font-size:var(--ifm-font-size-base);--ifm-blockquote-border-left-width:2px;--ifm-blockquote-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-blockquote-padding-vertical:0;--ifm-blockquote-shadow:none;--ifm-blockquote-color:var(--ifm-color-emphasis-800);--ifm-blockquote-border-color:var(--ifm-color-emphasis-300);--ifm-hr-background-color:var(--ifm-color-emphasis-500);--ifm-hr-height:1px;--ifm-hr-margin-vertical:1.5rem;--ifm-scrollbar-size:7px;--ifm-scrollbar-track-background-color:#f1f1f1;--ifm-scrollbar-thumb-background-color:silver;--ifm-scrollbar-thumb-hover-background-color:#a7a7a7;--ifm-alert-background-color:inherit;--ifm-alert-border-color:inherit;--ifm-alert-border-radius:var(--ifm-global-radius);--ifm-alert-border-width:0px;--ifm-alert-border-left-width:5px;--ifm-alert-color:var(--ifm-font-color-base);--ifm-alert-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-alert-padding-vertical:var(--ifm-spacing-vertical);--ifm-alert-shadow:var(--ifm-global-shadow-lw);--ifm-avatar-intro-margin:1rem;--ifm-avatar-intro-alignment:inherit;--ifm-avatar-photo-size:3rem;--ifm-badge-background-color:inherit;--ifm-badge-border-color:inherit;--ifm-badge-border-radius:var(--ifm-global-radius);--ifm-badge-border-width:var(--ifm-global-border-width);--ifm-badge-color:var(--ifm-color-white);--ifm-badge-padding-horizontal:calc(var(--ifm-spacing-horizontal)*0.5);--ifm-badge-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-breadcrumb-border-radius:1.5rem;--ifm-breadcrumb-spacing:0.5rem;--ifm-breadcrumb-color-active:var(--ifm-color-primary);--ifm-breadcrumb-item-background-active:var(--ifm-hover-overlay);--ifm-breadcrumb-padding-horizontal:0.8rem;--ifm-breadcrumb-padding-vertical:0.4rem;--ifm-breadcrumb-size-multiplier:1;--ifm-breadcrumb-separator:url('data:image/svg+xml;utf8,');--ifm-breadcrumb-separator-filter:none;--ifm-breadcrumb-separator-size:0.5rem;--ifm-breadcrumb-separator-size-multiplier:1.25;--ifm-button-background-color:inherit;--ifm-button-border-color:var(--ifm-button-background-color);--ifm-button-border-width:var(--ifm-global-border-width);--ifm-button-font-weight:var(--ifm-font-weight-bold);--ifm-button-padding-horizontal:1.5rem;--ifm-button-padding-vertical:0.375rem;--ifm-button-size-multiplier:1;--ifm-button-transition-duration:var(--ifm-transition-fast);--ifm-button-border-radius:calc(var(--ifm-global-radius)*var(--ifm-button-size-multiplier));--ifm-button-group-spacing:2px;--ifm-card-background-color:var(--ifm-background-surface-color);--ifm-card-border-radius:calc(var(--ifm-global-radius)*2);--ifm-card-horizontal-spacing:var(--ifm-global-spacing);--ifm-card-vertical-spacing:var(--ifm-global-spacing);--ifm-toc-border-color:var(--ifm-color-emphasis-300);--ifm-toc-link-color:var(--ifm-color-content-secondary);--ifm-toc-padding-vertical:0.5rem;--ifm-toc-padding-horizontal:0.5rem;--ifm-dropdown-background-color:var(--ifm-background-surface-color);--ifm-dropdown-font-weight:var(--ifm-font-weight-semibold);--ifm-dropdown-link-color:var(--ifm-font-color-base);--ifm-dropdown-hover-background-color:var(--ifm-hover-overlay);--ifm-footer-background-color:var(--ifm-color-emphasis-100);--ifm-footer-color:inherit;--ifm-footer-link-color:var(--ifm-color-emphasis-700);--ifm-footer-link-hover-color:var(--ifm-color-primary);--ifm-footer-link-horizontal-spacing:0.5rem;--ifm-footer-padding-horizontal:calc(var(--ifm-spacing-horizontal)*2);--ifm-footer-padding-vertical:calc(var(--ifm-spacing-vertical)*2);--ifm-footer-title-color:inherit;--ifm-footer-logo-max-width:min(30rem,90vw);--ifm-hero-background-color:var(--ifm-background-surface-color);--ifm-hero-text-color:var(--ifm-color-emphasis-800);--ifm-menu-color:var(--ifm-color-emphasis-700);--ifm-menu-color-active:var(--ifm-color-primary);--ifm-menu-color-background-active:var(--ifm-hover-overlay);--ifm-menu-color-background-hover:var(--ifm-hover-overlay);--ifm-menu-link-padding-horizontal:0.75rem;--ifm-menu-link-padding-vertical:0.375rem;--ifm-menu-link-sublist-icon:url('data:image/svg+xml;utf8,');--ifm-menu-link-sublist-icon-filter:none;--ifm-navbar-background-color:var(--ifm-background-surface-color);--ifm-navbar-height:3.75rem;--ifm-navbar-item-padding-horizontal:0.75rem;--ifm-navbar-item-padding-vertical:0.25rem;--ifm-navbar-link-color:var(--ifm-font-color-base);--ifm-navbar-link-active-color:var(--ifm-link-color);--ifm-navbar-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-navbar-padding-vertical:calc(var(--ifm-spacing-vertical)*0.5);--ifm-navbar-shadow:var(--ifm-global-shadow-lw);--ifm-navbar-search-input-background-color:var(--ifm-color-emphasis-200);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-800);--ifm-navbar-search-input-placeholder-color:var(--ifm-color-emphasis-500);--ifm-navbar-search-input-icon:url('data:image/svg+xml;utf8,');--ifm-navbar-sidebar-width:83vw;--ifm-pagination-border-radius:var(--ifm-global-radius);--ifm-pagination-color-active:var(--ifm-color-primary);--ifm-pagination-font-size:1rem;--ifm-pagination-item-active-background:var(--ifm-hover-overlay);--ifm-pagination-page-spacing:0.2em;--ifm-pagination-padding-horizontal:calc(var(--ifm-spacing-horizontal)*1);--ifm-pagination-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-pagination-nav-border-radius:var(--ifm-global-radius);--ifm-pagination-nav-color-hover:var(--ifm-color-primary);--ifm-pills-color-active:var(--ifm-color-primary);--ifm-pills-color-background-active:var(--ifm-hover-overlay);--ifm-pills-spacing:0.125rem;--ifm-tabs-color:var(--ifm-font-color-secondary);--ifm-tabs-color-active:var(--ifm-color-primary);--ifm-tabs-color-active-border:var(--ifm-tabs-color-active);--ifm-tabs-padding-horizontal:1rem;--ifm-tabs-padding-vertical:1rem;--docusaurus-progress-bar-color:var(--ifm-color-primary);--ifm-color-primary:#45aaf2;--ifm-color-primary-dark:#3d98d1;--ifm-color-primary-darker:#3788bf;--ifm-color-primary-darkest:#2d6e99;--ifm-color-primary-light:#66b5f8;--ifm-color-primary-lighter:#80bff9;--ifm-color-primary-lightest:#99c9fa;--ifm-code-font-size:95%;--docusaurus-highlighted-code-line-bg:#21657e0d;--ifm-table-stripe-background:#c6ddff!important;--ifm-table-background:#fdfdfd7a!important;--docusaurus-announcement-bar-height:auto;--docusaurus-tag-list-border:var(--ifm-color-emphasis-300);--docusaurus-collapse-button-bg:#0000;--docusaurus-collapse-button-bg-hover:#0000001a;--doc-sidebar-width:300px;--doc-sidebar-hidden-width:30px}.badge--danger,.badge--info,.badge--primary,.badge--secondary,.badge--success,.badge--warning{--ifm-badge-border-color:var(--ifm-badge-background-color)}.button--link,.button--outline{--ifm-button-background-color:#0000}html{-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%;background-color:var(--ifm-background-color);color:var(--ifm-font-color-base);color-scheme:var(--ifm-color-scheme);font:var(--ifm-font-size-base)/var(--ifm-line-height-base) var(--ifm-font-family-base);text-rendering:optimizelegibility}iframe{border:0;color-scheme:auto}.container{margin:0 auto;max-width:var(--ifm-container-width)}.container--fluid{max-width:inherit}.row{display:flex;flex-wrap:wrap;margin:0 calc(var(--ifm-spacing-horizontal)*-1)}.list_eTzJ article:last-child,.margin-bottom--none,.margin-vert--none,.markdown>:last-child{margin-bottom:0!important}.margin-top--none,.margin-vert--none,.tabItem_LNqP{margin-top:0!important}.row--no-gutters{margin-left:0;margin-right:0}.margin-horiz--none,.margin-right--none{margin-right:0!important}.row--no-gutters>.col{padding-left:0;padding-right:0}.row--align-top{align-items:flex-start}.row--align-bottom{align-items:flex-end}.menuExternalLink_NmtK,.row--align-center{align-items:center}.row--align-stretch{align-items:stretch}.row--align-baseline{align-items:baseline}.col{--ifm-col-width:100%;flex:1 0;margin-left:0;max-width:var(--ifm-col-width)}.padding-bottom--none,.padding-vert--none{padding-bottom:0!important}.padding-top--none,.padding-vert--none{padding-top:0!important}.padding-horiz--none,.padding-left--none{padding-left:0!important}.padding-horiz--none,.padding-right--none{padding-right:0!important}.col[class*=col--]{flex:0 0 var(--ifm-col-width)}.col--1{--ifm-col-width:8.33333%}.col--offset-1{margin-left:8.33333%}.col--2{--ifm-col-width:16.66667%}.col--offset-2{margin-left:16.66667%}.col--3{--ifm-col-width:25%}.col--offset-3{margin-left:25%}.col--4{--ifm-col-width:33.33333%}.col--offset-4{margin-left:33.33333%}.col--5{--ifm-col-width:41.66667%}.col--offset-5{margin-left:41.66667%}.col--6{--ifm-col-width:50%}.col--offset-6{margin-left:50%}.col--7{--ifm-col-width:58.33333%}.col--offset-7{margin-left:58.33333%}.col--8{--ifm-col-width:66.66667%}.col--offset-8{margin-left:66.66667%}.col--9{--ifm-col-width:75%}.col--offset-9{margin-left:75%}.col--10{--ifm-col-width:83.33333%}.col--offset-10{margin-left:83.33333%}.col--11{--ifm-col-width:91.66667%}.col--offset-11{margin-left:91.66667%}.col--12{--ifm-col-width:100%}.col--offset-12{margin-left:100%}.margin-horiz--none,.margin-left--none{margin-left:0!important}.margin--none{margin:0!important}.margin-bottom--xs,.margin-vert--xs{margin-bottom:.25rem!important}.margin-top--xs,.margin-vert--xs{margin-top:.25rem!important}.margin-horiz--xs,.margin-left--xs{margin-left:.25rem!important}.margin-horiz--xs,.margin-right--xs{margin-right:.25rem!important}.margin--xs{margin:.25rem!important}.margin-bottom--sm,.margin-vert--sm{margin-bottom:.5rem!important}.margin-top--sm,.margin-vert--sm{margin-top:.5rem!important}.margin-horiz--sm,.margin-left--sm{margin-left:.5rem!important}.margin-horiz--sm,.margin-right--sm{margin-right:.5rem!important}.margin--sm{margin:.5rem!important}.margin-bottom--md,.margin-vert--md{margin-bottom:1rem!important}.margin-top--md,.margin-vert--md{margin-top:1rem!important}.margin-horiz--md,.margin-left--md{margin-left:1rem!important}.margin-horiz--md,.margin-right--md{margin-right:1rem!important}.margin--md{margin:1rem!important}.margin-bottom--lg,.margin-vert--lg{margin-bottom:2rem!important}.margin-top--lg,.margin-vert--lg{margin-top:2rem!important}.margin-horiz--lg,.margin-left--lg{margin-left:2rem!important}.margin-horiz--lg,.margin-right--lg{margin-right:2rem!important}.margin--lg{margin:2rem!important}.margin-bottom--xl,.margin-vert--xl{margin-bottom:5rem!important}.margin-top--xl,.margin-vert--xl{margin-top:5rem!important}.margin-horiz--xl,.margin-left--xl{margin-left:5rem!important}.margin-horiz--xl,.margin-right--xl{margin-right:5rem!important}.margin--xl{margin:5rem!important}.padding--none{padding:0!important}.padding-bottom--xs,.padding-vert--xs{padding-bottom:.25rem!important}.padding-top--xs,.padding-vert--xs{padding-top:.25rem!important}.padding-horiz--xs,.padding-left--xs{padding-left:.25rem!important}.padding-horiz--xs,.padding-right--xs{padding-right:.25rem!important}.padding--xs{padding:.25rem!important}.padding-bottom--sm,.padding-vert--sm{padding-bottom:.5rem!important}.padding-top--sm,.padding-vert--sm{padding-top:.5rem!important}.padding-horiz--sm,.padding-left--sm{padding-left:.5rem!important}.padding-horiz--sm,.padding-right--sm{padding-right:.5rem!important}.padding--sm{padding:.5rem!important}.padding-bottom--md,.padding-vert--md{padding-bottom:1rem!important}.padding-top--md,.padding-vert--md{padding-top:1rem!important}.padding-horiz--md,.padding-left--md{padding-left:1rem!important}.padding-horiz--md,.padding-right--md{padding-right:1rem!important}.padding--md{padding:1rem!important}.padding-bottom--lg,.padding-vert--lg{padding-bottom:2rem!important}.padding-top--lg,.padding-vert--lg{padding-top:2rem!important}.padding-horiz--lg,.padding-left--lg{padding-left:2rem!important}.padding-horiz--lg,.padding-right--lg{padding-right:2rem!important}.padding--lg{padding:2rem!important}.padding-bottom--xl,.padding-vert--xl{padding-bottom:5rem!important}.padding-top--xl,.padding-vert--xl{padding-top:5rem!important}.padding-horiz--xl,.padding-left--xl{padding-left:5rem!important}.padding-horiz--xl,.padding-right--xl{padding-right:5rem!important}.padding--xl{padding:5rem!important}code{background-color:var(--ifm-code-background);border:.1rem solid #0000001a;border-radius:var(--ifm-code-border-radius);font-family:var(--ifm-font-family-monospace);font-size:var(--ifm-code-font-size);padding:var(--ifm-code-padding-vertical) var(--ifm-code-padding-horizontal)}a code{color:inherit}pre{background-color:var(--ifm-pre-background);border-radius:var(--ifm-pre-border-radius);color:var(--ifm-pre-color);font:var(--ifm-code-font-size)/var(--ifm-pre-line-height) var(--ifm-font-family-monospace);padding:var(--ifm-pre-padding)}pre code{background-color:initial;border:none;font-size:100%;line-height:inherit;padding:0}kbd{background-color:var(--ifm-color-emphasis-0);border:1px solid var(--ifm-color-emphasis-400);border-radius:.2rem;box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-400);color:var(--ifm-color-emphasis-800);font:80% var(--ifm-font-family-monospace);padding:.15rem .3rem}h1,h2,h3,h4,h5,h6{color:var(--ifm-heading-color);font-family:var(--ifm-heading-font-family);font-weight:var(--ifm-heading-font-weight);line-height:var(--ifm-heading-line-height);margin:var(--ifm-heading-margin-top) 0 var(--ifm-heading-margin-bottom) 0}h1{font-size:var(--ifm-h1-font-size)}h2{font-size:var(--ifm-h2-font-size)}h3{font-size:var(--ifm-h3-font-size)}h4{font-size:var(--ifm-h4-font-size)}h5{font-size:var(--ifm-h5-font-size)}h6{font-size:var(--ifm-h6-font-size)}img{max-width:100%}img[align=right]{padding-left:var(--image-alignment-padding)}img[align=left]{padding-right:var(--image-alignment-padding)}.markdown{--ifm-h1-vertical-rhythm-top:3;--ifm-h2-vertical-rhythm-top:2;--ifm-h3-vertical-rhythm-top:1.5;--ifm-heading-vertical-rhythm-top:1.25;--ifm-h1-vertical-rhythm-bottom:1.25;--ifm-heading-vertical-rhythm-bottom:1}.markdown:after,.markdown:before{content:"";display:table}.markdown:after{clear:both}.markdown h1:first-child{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-h1-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown>h2{--ifm-h2-font-size:2rem;margin-top:calc(var(--ifm-h2-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h3{--ifm-h3-font-size:1.5rem;margin-top:calc(var(--ifm-h3-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h4,.markdown>h5,.markdown>h6{margin-top:calc(var(--ifm-heading-vertical-rhythm-top)*var(--ifm-leading))}.markdown>p,.markdown>pre,.markdown>ul,.tabList__CuJ{margin-bottom:var(--ifm-leading)}.markdown li>p{margin-top:var(--ifm-list-paragraph-margin)}.markdown li+li{margin-top:var(--ifm-list-item-margin)}ol,ul{margin:0 0 var(--ifm-list-margin);padding-left:var(--ifm-list-left-padding)}ol ol,ul ol{list-style-type:lower-roman}ol ol ol,ol ul ol,ul ol ol,ul ul ol{list-style-type:lower-alpha}table{border-collapse:collapse;display:block;margin-bottom:var(--ifm-spacing-vertical)}table thead tr{border-bottom:2px solid var(--ifm-table-border-color)}table thead,table tr:nth-child(2n){background-color:var(--ifm-table-stripe-background)}table tr{background-color:var(--ifm-table-background);border-top:var(--ifm-table-border-width) solid var(--ifm-table-border-color)}table td,table th{border:var(--ifm-table-border-width) solid var(--ifm-table-border-color);padding:var(--ifm-table-cell-padding)}table th{background-color:var(--ifm-table-head-background);color:var(--ifm-table-head-color);font-weight:var(--ifm-table-head-font-weight)}table td{color:var(--ifm-table-cell-color)}strong{font-weight:var(--ifm-font-weight-bold)}a{color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}a:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button:hover,.text--no-decoration,.text--no-decoration:hover,a:not([href]){text-decoration:none}p{margin:0 0 var(--ifm-paragraph-margin-bottom)}blockquote{border-left:var(--ifm-blockquote-border-left-width) solid var(--ifm-blockquote-border-color);box-shadow:var(--ifm-blockquote-shadow);color:var(--ifm-blockquote-color);font-size:var(--ifm-blockquote-font-size);padding:var(--ifm-blockquote-padding-vertical) var(--ifm-blockquote-padding-horizontal)}blockquote>:first-child{margin-top:0}blockquote>:last-child{margin-bottom:0}hr{background-color:var(--ifm-hr-background-color);border:0;height:var(--ifm-hr-height);margin:var(--ifm-hr-margin-vertical) 0}.shadow--lw{box-shadow:var(--ifm-global-shadow-lw)!important}.shadow--md{box-shadow:var(--ifm-global-shadow-md)!important}.shadow--tl{box-shadow:var(--ifm-global-shadow-tl)!important}.text--primary,.wordWrapButtonEnabled_EoeP .wordWrapButtonIcon_Bwma{color:var(--ifm-color-primary)}.text--secondary{color:var(--ifm-color-secondary)}.text--success{color:var(--ifm-color-success)}.text--info{color:var(--ifm-color-info)}.text--warning{color:var(--ifm-color-warning)}.text--danger{color:var(--ifm-color-danger)}.text--center{text-align:center}.text--left,details.history table thead th{text-align:left}.text--justify{text-align:justify}.text--right{text-align:right}.text--capitalize{text-transform:capitalize}.text--lowercase{text-transform:lowercase}.admonitionHeading_Gvgb,.alert__heading,.text--uppercase{text-transform:uppercase}.text--light{font-weight:var(--ifm-font-weight-light)}.text--normal{font-weight:var(--ifm-font-weight-normal)}.text--semibold{font-weight:var(--ifm-font-weight-semibold)}.text--bold{font-weight:var(--ifm-font-weight-bold)}.text--italic{font-style:italic}.text--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text--break{word-wrap:break-word!important;word-break:break-word!important}.clean-btn{background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;padding:0}.alert,.alert .close{color:var(--ifm-alert-foreground-color)}.clean-list{padding-left:0}.alert--primary{--ifm-alert-background-color:var(--ifm-color-primary-contrast-background);--ifm-alert-background-color-highlight:#3578e526;--ifm-alert-foreground-color:var(--ifm-color-primary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-primary-dark)}.alert--secondary{--ifm-alert-background-color:var(--ifm-color-secondary-contrast-background);--ifm-alert-background-color-highlight:#ebedf026;--ifm-alert-foreground-color:var(--ifm-color-secondary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-secondary-dark)}.alert--success{--ifm-alert-background-color:var(--ifm-color-success-contrast-background);--ifm-alert-background-color-highlight:#00a40026;--ifm-alert-foreground-color:var(--ifm-color-success-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-success-dark)}.alert--info{--ifm-alert-background-color:var(--ifm-color-info-contrast-background);--ifm-alert-background-color-highlight:#54c7ec26;--ifm-alert-foreground-color:var(--ifm-color-info-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-info-dark)}.alert--warning{--ifm-alert-background-color:var(--ifm-color-warning-contrast-background);--ifm-alert-background-color-highlight:#ffba0026;--ifm-alert-foreground-color:var(--ifm-color-warning-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-warning-dark)}.alert--danger{--ifm-alert-background-color:var(--ifm-color-danger-contrast-background);--ifm-alert-background-color-highlight:#fa383e26;--ifm-alert-foreground-color:var(--ifm-color-danger-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-danger-dark)}.alert{--ifm-code-background:var(--ifm-alert-background-color-highlight);--ifm-link-color:var(--ifm-alert-foreground-color);--ifm-link-hover-color:var(--ifm-alert-foreground-color);--ifm-link-decoration:underline;--ifm-tabs-color:var(--ifm-alert-foreground-color);--ifm-tabs-color-active:var(--ifm-alert-foreground-color);--ifm-tabs-color-active-border:var(--ifm-alert-border-color);background-color:var(--ifm-alert-background-color);border:var(--ifm-alert-border-width) solid var(--ifm-alert-border-color);border-left-width:var(--ifm-alert-border-left-width);border-radius:var(--ifm-alert-border-radius);box-shadow:var(--ifm-alert-shadow);padding:var(--ifm-alert-padding-vertical) var(--ifm-alert-padding-horizontal)}.alert__heading{align-items:center;display:flex;font:700 var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.5rem}.alert__icon{display:inline-flex;margin-right:.4em}.alert__icon svg{fill:var(--ifm-alert-foreground-color);stroke:var(--ifm-alert-foreground-color);stroke-width:0}.alert .close{margin:calc(var(--ifm-alert-padding-vertical)*-1) calc(var(--ifm-alert-padding-horizontal)*-1) 0 0;opacity:.75}.alert .close:focus,.alert .close:hover{opacity:1}.alert a{text-decoration-color:var(--ifm-alert-border-color)}.alert a:hover{text-decoration-thickness:2px}.avatar{column-gap:var(--ifm-avatar-intro-margin);display:flex}.avatar__photo{border-radius:50%;display:block;height:var(--ifm-avatar-photo-size);overflow:hidden;width:var(--ifm-avatar-photo-size)}.card--full-height,.navbar__logo img,body,html{height:100%}.avatar__photo--sm{--ifm-avatar-photo-size:2rem}.avatar__photo--lg{--ifm-avatar-photo-size:4rem}.avatar__photo--xl{--ifm-avatar-photo-size:6rem}.avatar__intro{display:flex;flex:1 1;flex-direction:column;justify-content:center;text-align:var(--ifm-avatar-intro-alignment)}.badge,.breadcrumbs__item,.breadcrumbs__link,.button,.dropdown>.navbar__link:after,.searchBarContainer_NW3z.searchIndexLoading_EJ1f .searchBarLoadingRing_YnHq{display:inline-block}.avatar__name{font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base)}.avatar__subtitle{margin-top:.25rem}.avatar--vertical{--ifm-avatar-intro-alignment:center;--ifm-avatar-intro-margin:0.5rem;align-items:center;flex-direction:column}.badge{background-color:var(--ifm-badge-background-color);border:var(--ifm-badge-border-width) solid var(--ifm-badge-border-color);border-radius:var(--ifm-badge-border-radius);color:var(--ifm-badge-color);font-size:75%;font-weight:var(--ifm-font-weight-bold);line-height:1;padding:var(--ifm-badge-padding-vertical) var(--ifm-badge-padding-horizontal)}.badge--primary{--ifm-badge-background-color:var(--ifm-color-primary)}.badge--secondary{--ifm-badge-background-color:var(--ifm-color-secondary);color:var(--ifm-color-black)}.breadcrumbs__link,.button.button--secondary.button--outline:not(.button--active):not(:hover){color:var(--ifm-font-color-base)}.badge--success{--ifm-badge-background-color:var(--ifm-color-success)}.badge--info{--ifm-badge-background-color:var(--ifm-color-info)}.badge--warning{--ifm-badge-background-color:var(--ifm-color-warning)}.badge--danger{--ifm-badge-background-color:var(--ifm-color-danger)}.breadcrumbs{margin-bottom:0;padding-left:0}.breadcrumbs__item:not(:last-child):after{background:var(--ifm-breadcrumb-separator) center;content:" ";display:inline-block;filter:var(--ifm-breadcrumb-separator-filter);height:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier));margin:0 var(--ifm-breadcrumb-spacing);opacity:.5;width:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier))}.breadcrumbs__item--active .breadcrumbs__link{background:var(--ifm-breadcrumb-item-background-active);color:var(--ifm-breadcrumb-color-active)}.breadcrumbs__link{border-radius:var(--ifm-breadcrumb-border-radius);font-size:calc(1rem*var(--ifm-breadcrumb-size-multiplier));padding:calc(var(--ifm-breadcrumb-padding-vertical)*var(--ifm-breadcrumb-size-multiplier)) calc(var(--ifm-breadcrumb-padding-horizontal)*var(--ifm-breadcrumb-size-multiplier));transition-duration:var(--ifm-transition-fast);transition-property:background,color}.breadcrumbs__link:any-link:hover,.breadcrumbs__link:link:hover,.breadcrumbs__link:visited:hover,area[href].breadcrumbs__link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs--sm{--ifm-breadcrumb-size-multiplier:0.8}.breadcrumbs--lg{--ifm-breadcrumb-size-multiplier:1.2}.button{background-color:var(--ifm-button-background-color);border:var(--ifm-button-border-width) solid var(--ifm-button-border-color);border-radius:var(--ifm-button-border-radius);cursor:pointer;font-size:calc(.875rem*var(--ifm-button-size-multiplier));font-weight:var(--ifm-button-font-weight);line-height:1.5;padding:calc(var(--ifm-button-padding-vertical)*var(--ifm-button-size-multiplier)) calc(var(--ifm-button-padding-horizontal)*var(--ifm-button-size-multiplier));text-align:center;transition-duration:var(--ifm-button-transition-duration);transition-property:color,background,border-color;-webkit-user-select:none;user-select:none;white-space:nowrap}.button,.button:hover{color:var(--ifm-button-color)}.button--outline{--ifm-button-color:var(--ifm-button-border-color)}.button--outline:hover{--ifm-button-background-color:var(--ifm-button-border-color)}.button--link{--ifm-button-border-color:#0000;color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}.button--link.button--active,.button--link:active,.button--link:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button.disabled,.button:disabled,.button[disabled]{opacity:.65;pointer-events:none}.button--sm{--ifm-button-size-multiplier:0.8}.button--lg{--ifm-button-size-multiplier:1.35}.button--block{display:block;width:100%}.button.button--secondary{color:var(--ifm-color-gray-900)}:where(.button--primary){--ifm-button-background-color:var(--ifm-color-primary);--ifm-button-border-color:var(--ifm-color-primary)}:where(.button--primary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-primary-dark);--ifm-button-border-color:var(--ifm-color-primary-dark)}.button--primary.button--active,.button--primary:active{--ifm-button-background-color:var(--ifm-color-primary-darker);--ifm-button-border-color:var(--ifm-color-primary-darker)}:where(.button--secondary){--ifm-button-background-color:var(--ifm-color-secondary);--ifm-button-border-color:var(--ifm-color-secondary)}:where(.button--secondary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-secondary-dark);--ifm-button-border-color:var(--ifm-color-secondary-dark)}.button--secondary.button--active,.button--secondary:active{--ifm-button-background-color:var(--ifm-color-secondary-darker);--ifm-button-border-color:var(--ifm-color-secondary-darker)}:where(.button--success){--ifm-button-background-color:var(--ifm-color-success);--ifm-button-border-color:var(--ifm-color-success)}:where(.button--success):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-success-dark);--ifm-button-border-color:var(--ifm-color-success-dark)}.button--success.button--active,.button--success:active{--ifm-button-background-color:var(--ifm-color-success-darker);--ifm-button-border-color:var(--ifm-color-success-darker)}:where(.button--info){--ifm-button-background-color:var(--ifm-color-info);--ifm-button-border-color:var(--ifm-color-info)}:where(.button--info):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-info-dark);--ifm-button-border-color:var(--ifm-color-info-dark)}.button--info.button--active,.button--info:active{--ifm-button-background-color:var(--ifm-color-info-darker);--ifm-button-border-color:var(--ifm-color-info-darker)}:where(.button--warning){--ifm-button-background-color:var(--ifm-color-warning);--ifm-button-border-color:var(--ifm-color-warning)}:where(.button--warning):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-warning-dark);--ifm-button-border-color:var(--ifm-color-warning-dark)}.button--warning.button--active,.button--warning:active{--ifm-button-background-color:var(--ifm-color-warning-darker);--ifm-button-border-color:var(--ifm-color-warning-darker)}:where(.button--danger){--ifm-button-background-color:var(--ifm-color-danger);--ifm-button-border-color:var(--ifm-color-danger)}:where(.button--danger):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-danger-dark);--ifm-button-border-color:var(--ifm-color-danger-dark)}.button--danger.button--active,.button--danger:active{--ifm-button-background-color:var(--ifm-color-danger-darker);--ifm-button-border-color:var(--ifm-color-danger-darker)}.button-group{display:inline-flex;gap:var(--ifm-button-group-spacing)}.button-group>.button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.button-group>.button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.button-group--block{display:flex;justify-content:stretch}.button-group--block>.button{flex-grow:1}.card{background-color:var(--ifm-card-background-color);border-radius:var(--ifm-card-border-radius);box-shadow:var(--ifm-global-shadow-lw);display:flex;flex-direction:column;overflow:hidden}.card__image{padding-top:var(--ifm-card-vertical-spacing)}.card__image:first-child{padding-top:0}.card__body,.card__footer,.card__header{padding:var(--ifm-card-vertical-spacing) var(--ifm-card-horizontal-spacing)}.card__body:not(:last-child),.card__footer:not(:last-child),.card__header:not(:last-child){padding-bottom:0}.card__body>:last-child,.card__footer>:last-child,.card__header>:last-child{margin-bottom:0}.card__footer{margin-top:auto}.table-of-contents{font-size:.8rem;margin-bottom:0;padding:var(--ifm-toc-padding-vertical) 0}.table-of-contents,.table-of-contents ul{list-style:none;padding-left:var(--ifm-toc-padding-horizontal)}.table-of-contents li{margin:var(--ifm-toc-padding-vertical) var(--ifm-toc-padding-horizontal)}.table-of-contents__left-border{border-left:1px solid var(--ifm-toc-border-color)}.table-of-contents__link{color:var(--ifm-toc-link-color);display:block}.table-of-contents__link--active,.table-of-contents__link--active code,.table-of-contents__link:hover,.table-of-contents__link:hover code{color:var(--ifm-color-primary);text-decoration:none}.content_knG7 a,.hitFooter_E9YW a,.suggestion_fB_2.cursor_eG29 mark{text-decoration:underline}.close{color:var(--ifm-color-black);float:right;font-size:1.5rem;font-weight:var(--ifm-font-weight-bold);line-height:1;opacity:.5;padding:1rem;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.close:hover{opacity:.7}.close:focus,.theme-code-block-highlighted-line .codeLineNumber_Tfdd:before{opacity:.8}.dropdown{display:inline-flex;font-weight:var(--ifm-dropdown-font-weight);position:relative;vertical-align:top}.dropdown--hoverable:hover .dropdown__menu,.dropdown--show .dropdown__menu{opacity:1;pointer-events:all;transform:translateY(-1px);visibility:visible}.dropdown--right .dropdown__menu{left:inherit;right:0}.dropdown--nocaret .navbar__link:after{content:none!important}.dropdown__menu{background-color:var(--ifm-dropdown-background-color);border-radius:var(--ifm-global-radius);box-shadow:var(--ifm-global-shadow-md);left:0;max-height:80vh;min-width:10rem;opacity:0;overflow-y:auto;padding:.5rem;pointer-events:none;position:absolute;top:calc(100% - var(--ifm-navbar-item-padding-vertical) + .3rem);transform:translateY(-.625rem);transition-duration:var(--ifm-transition-fast);transition-property:opacity,transform,visibility;transition-timing-function:var(--ifm-transition-timing-default);visibility:hidden;z-index:var(--ifm-z-index-dropdown)}.menu__caret,.menu__link,.menu__list-item-collapsible{border-radius:.25rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.dropdown__link{border-radius:.25rem;color:var(--ifm-dropdown-link-color);display:block;font-size:.875rem;margin-top:.2rem;padding:.25rem .5rem;white-space:nowrap}.dropdown__link--active,.dropdown__link:hover{background-color:var(--ifm-dropdown-hover-background-color);color:var(--ifm-dropdown-link-color);text-decoration:none}.dropdown__link--active,.dropdown__link--active:hover{--ifm-dropdown-link-color:var(--ifm-link-color)}.dropdown>.navbar__link:after{border-color:currentcolor #0000;border-style:solid;border-width:.4em .4em 0;content:"";margin-left:.3em;position:relative;top:2px;transform:translateY(-50%)}.footer{background-color:var(--ifm-footer-background-color);color:var(--ifm-footer-color);padding:var(--ifm-footer-padding-vertical) var(--ifm-footer-padding-horizontal)}.footer--dark{--ifm-footer-background-color:#303846;--ifm-footer-color:var(--ifm-footer-link-color);--ifm-footer-link-color:var(--ifm-color-secondary);--ifm-footer-title-color:var(--ifm-color-white)}.footer__links{margin-bottom:1rem}.footer__link-item{color:var(--ifm-footer-link-color);line-height:2}.footer__link-item:hover{color:var(--ifm-footer-link-hover-color)}.footer__link-separator{margin:0 var(--ifm-footer-link-horizontal-spacing)}.footer__logo{margin-top:1rem;max-width:var(--ifm-footer-logo-max-width)}.footer__title{color:var(--ifm-footer-title-color);font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base);margin-bottom:var(--ifm-heading-margin-bottom)}.menu,.navbar__link{font-weight:var(--ifm-font-weight-semibold)}.docItemContainer_Djhp article>:first-child,.docItemContainer_Djhp header+*,.footer__item{margin-top:0}.admonitionContent_BuS1>:last-child,.cardContainer_fWXF :last-child,.collapsibleContent_i85q p:last-child,.details_lb9f>summary>p:last-child,.footer__items,.searchResultItem_U687>h2,.tabItem_Ymn6>:last-child{margin-bottom:0}.codeBlockStandalone_MEMb,[type=checkbox]{padding:0}.hero{align-items:center;background-color:var(--ifm-hero-background-color);color:var(--ifm-hero-text-color);display:flex;padding:4rem 2rem}.hero--primary{--ifm-hero-background-color:var(--ifm-color-primary);--ifm-hero-text-color:var(--ifm-font-color-base-inverse)}.hero--dark{--ifm-hero-background-color:#303846;--ifm-hero-text-color:var(--ifm-color-white)}.hero__title{font-size:3rem}.hero__subtitle{font-size:1.5rem}.menu__list{margin:0;padding-left:0}.menu__caret,.menu__link{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu__list .menu__list{flex:0 0 100%;margin-top:.25rem;padding-left:var(--ifm-menu-link-padding-horizontal)}.menu__list-item:not(:first-child){margin-top:.25rem}.menu__list-item--collapsed .menu__list{height:0;overflow:hidden}.details_lb9f[data-collapsed=false].isBrowser_bmU9>summary:before,.details_lb9f[open]:not(.isBrowser_bmU9)>summary:before,.menu__list-item--collapsed .menu__caret:before,.menu__list-item--collapsed .menu__link--sublist:after{transform:rotate(90deg)}.menu__list-item-collapsible{display:flex;flex-wrap:wrap;position:relative}.menu__caret:hover,.menu__link:hover,.menu__list-item-collapsible--active,.menu__list-item-collapsible:hover{background:var(--ifm-menu-color-background-hover)}.menu__list-item-collapsible .menu__link--active,.menu__list-item-collapsible .menu__link:hover{background:none!important}.menu__caret,.menu__link{align-items:center;display:flex}.navbar-sidebar,.navbar-sidebar__backdrop{bottom:0;opacity:0;transition-duration:var(--ifm-transition-fast);transition-timing-function:ease-in-out;left:0;top:0;visibility:hidden}.menu__link{color:var(--ifm-menu-color);flex:1;line-height:1.25}.menu__link:hover{color:var(--ifm-menu-color);text-decoration:none}.menu__caret:before,.menu__link--sublist-caret:after{content:"";transform:rotate(180deg);transition:transform var(--ifm-transition-fast) linear;height:1.25rem;width:1.25rem;filter:var(--ifm-menu-link-sublist-icon-filter)}.menu__link--sublist-caret:after{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem;margin-left:auto;min-width:1.25rem}.menu__link--active,.menu__link--active:hover{color:var(--ifm-menu-color-active)}.navbar__brand,.navbar__link{color:var(--ifm-navbar-link-color)}.menu__link--active:not(.menu__link--sublist){background-color:var(--ifm-menu-color-background-active)}.menu__caret:before{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem}.navbar--dark,html[data-theme=dark]{--ifm-menu-link-sublist-icon-filter:invert(100%) sepia(94%) saturate(17%) hue-rotate(223deg) brightness(104%) contrast(98%)}.navbar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-navbar-shadow);height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar,.navbar>.container,.navbar>.container-fluid{display:flex}.navbar--fixed-top{position:sticky;top:0;z-index:var(--ifm-z-index-fixed)}.navbar__inner{display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.navbar__brand{align-items:center;display:flex;min-width:0}.navbar__brand:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.announcementBarContent_xLdY,.navbar__title{flex:1 1 auto}.navbar__toggle{display:none;margin-right:.5rem}.navbar__logo{flex:0 0 auto;height:2rem;margin-right:.5rem}.navbar__items{align-items:center;display:flex;flex:1;min-width:0}.navbar__items--center{flex:0 0 auto}.navbar__items--center .navbar__brand{margin:0}.navbar__items--center+.navbar__items--right{flex:1}.navbar__items--right{flex:0 0 auto;justify-content:flex-end}.navbar__items--right>:last-child{padding-right:0}.navbar__item{display:inline-block;padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}#nprogress,.navbar__item.dropdown .navbar__link:not([href]){pointer-events:none}.navbar__link--active,.navbar__link:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.navbar--dark,.navbar--primary{--ifm-menu-color:var(--ifm-color-gray-300);--ifm-navbar-link-color:var(--ifm-color-gray-100);--ifm-navbar-search-input-background-color:#ffffff1a;--ifm-navbar-search-input-placeholder-color:#ffffff80;color:var(--ifm-color-white)}.navbar--dark{--ifm-navbar-background-color:#242526;--ifm-menu-color-background-active:#ffffff0d;--ifm-navbar-search-input-color:var(--ifm-color-white)}.navbar--primary{--ifm-navbar-background-color:var(--ifm-color-primary);--ifm-navbar-link-hover-color:var(--ifm-color-white);--ifm-menu-color-active:var(--ifm-color-white);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-500)}.navbar__search-input{-webkit-appearance:none;appearance:none;background:var(--ifm-navbar-search-input-background-color) var(--ifm-navbar-search-input-icon) no-repeat .75rem center/1rem 1rem;border:none;border-radius:2rem;color:var(--ifm-navbar-search-input-color);cursor:text;display:inline-block;font-size:.9rem;height:2rem;padding:0 .5rem 0 2.25rem;width:12.5rem}.navbar__search-input::placeholder{color:var(--ifm-navbar-search-input-placeholder-color)}.navbar-sidebar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-global-shadow-md);position:fixed;transform:translate3d(-100%,0,0);transition-property:opacity,visibility,transform;width:var(--ifm-navbar-sidebar-width)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar__items{transform:translateZ(0)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar--show .navbar-sidebar__backdrop{opacity:1;visibility:visible}.navbar-sidebar__backdrop{background-color:#0009;position:fixed;right:0;transition-property:opacity,visibility}.navbar-sidebar__brand{align-items:center;box-shadow:var(--ifm-navbar-shadow);display:flex;flex:1;height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar-sidebar__items{display:flex;height:calc(100% - var(--ifm-navbar-height));transition:transform var(--ifm-transition-fast) ease-in-out}.navbar-sidebar__items--show-secondary{transform:translate3d(calc((var(--ifm-navbar-sidebar-width))*-1),0,0)}.navbar-sidebar__item{flex-shrink:0;padding:.5rem;width:calc(var(--ifm-navbar-sidebar-width))}.navbar-sidebar__back{background:var(--ifm-menu-color-background-active);font-size:15px;font-weight:var(--ifm-button-font-weight);margin:0 0 .2rem -.5rem;padding:.6rem 1.5rem;position:relative;text-align:left;top:-.5rem;width:calc(100% + 1rem)}.navbar-sidebar__close{display:flex;margin-left:auto}.pagination{column-gap:var(--ifm-pagination-page-spacing);display:flex;font-size:var(--ifm-pagination-font-size);padding-left:0}.pagination--sm{--ifm-pagination-font-size:0.8rem;--ifm-pagination-padding-horizontal:0.8rem;--ifm-pagination-padding-vertical:0.2rem}.pagination--lg{--ifm-pagination-font-size:1.2rem;--ifm-pagination-padding-horizontal:1.2rem;--ifm-pagination-padding-vertical:0.3rem}.pagination__item{display:inline-flex}.pagination__item>span{padding:var(--ifm-pagination-padding-vertical)}.pagination__item--active .pagination__link{color:var(--ifm-pagination-color-active)}.pagination__item--active .pagination__link,.pagination__item:not(.pagination__item--active):hover .pagination__link{background:var(--ifm-pagination-item-active-background)}.pagination__item--disabled,.pagination__item[disabled]{opacity:.25;pointer-events:none}.pagination__link{border-radius:var(--ifm-pagination-border-radius);color:var(--ifm-font-color-base);display:inline-block;padding:var(--ifm-pagination-padding-vertical) var(--ifm-pagination-padding-horizontal);transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination__link:hover{text-decoration:none}.pagination-nav{grid-gap:var(--ifm-spacing-horizontal);display:grid;gap:var(--ifm-spacing-horizontal);grid-template-columns:repeat(2,1fr)}.pagination-nav__link{border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-pagination-nav-border-radius);display:block;height:100%;line-height:var(--ifm-heading-line-height);padding:var(--ifm-global-spacing);transition:border-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination-nav__link:hover{border-color:var(--ifm-pagination-nav-color-hover);text-decoration:none}.pagination-nav__link--next{grid-column:2/3;text-align:right}.pagination-nav__label{font-size:var(--ifm-h4-font-size);font-weight:var(--ifm-heading-font-weight);word-break:break-word}.pagination-nav__link--prev .pagination-nav__label:before{content:"« "}.pagination-nav__link--next .pagination-nav__label:after{content:" »"}.pagination-nav__sublabel{color:var(--ifm-color-content-secondary);font-size:var(--ifm-h5-font-size);font-weight:var(--ifm-font-weight-semibold);margin-bottom:.25rem}.pills__item,.tabs{font-weight:var(--ifm-font-weight-bold)}.pills{display:flex;gap:var(--ifm-pills-spacing);padding-left:0}.pills__item{border-radius:.5rem;cursor:pointer;display:inline-block;padding:.25rem 1rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs,:not(.containsTaskList_mC6p>li)>.containsTaskList_mC6p{padding-left:0}.pills__item--active{color:var(--ifm-pills-color-active)}.pills__item--active,.pills__item:not(.pills__item--active):hover{background:var(--ifm-pills-color-background-active)}.pills--block{justify-content:stretch}.pills--block .pills__item{flex-grow:1;text-align:center}.tabs{color:var(--ifm-tabs-color);display:flex;margin-bottom:0;overflow-x:auto}.tabs__item{border-bottom:3px solid #0000;border-radius:var(--ifm-global-radius);cursor:pointer;display:inline-flex;padding:var(--ifm-tabs-padding-vertical) var(--ifm-tabs-padding-horizontal);transition:background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs__item--active{border-bottom-color:var(--ifm-tabs-color-active-border);border-bottom-left-radius:0;border-bottom-right-radius:0;color:var(--ifm-tabs-color-active)}.tabs__item:hover{background-color:var(--ifm-hover-overlay)}.tabs--block{justify-content:stretch}.tabs--block .tabs__item{flex-grow:1;justify-content:center}html[data-theme=dark]{--ifm-color-scheme:dark;--ifm-color-emphasis-0:var(--ifm-color-gray-1000);--ifm-color-emphasis-100:var(--ifm-color-gray-900);--ifm-color-emphasis-200:var(--ifm-color-gray-800);--ifm-color-emphasis-300:var(--ifm-color-gray-700);--ifm-color-emphasis-400:var(--ifm-color-gray-600);--ifm-color-emphasis-600:var(--ifm-color-gray-400);--ifm-color-emphasis-700:var(--ifm-color-gray-300);--ifm-color-emphasis-800:var(--ifm-color-gray-200);--ifm-color-emphasis-900:var(--ifm-color-gray-100);--ifm-color-emphasis-1000:var(--ifm-color-gray-0);--ifm-background-color:#1b1b1d;--ifm-background-surface-color:#242526;--ifm-hover-overlay:#ffffff0d;--ifm-color-content:#e3e3e3;--ifm-color-content-secondary:#fff;--ifm-breadcrumb-separator-filter:invert(64%) sepia(11%) saturate(0%) hue-rotate(149deg) brightness(99%) contrast(95%);--ifm-code-background:#ffffff1a;--ifm-scrollbar-track-background-color:#444;--ifm-scrollbar-thumb-background-color:#686868;--ifm-scrollbar-thumb-hover-background-color:#7a7a7a;--ifm-table-stripe-background:#ffffff12;--ifm-toc-border-color:var(--ifm-color-emphasis-200);--ifm-color-primary-contrast-background:#102445;--ifm-color-primary-contrast-foreground:#ebf2fc;--ifm-color-secondary-contrast-background:#474748;--ifm-color-secondary-contrast-foreground:#fdfdfe;--ifm-color-success-contrast-background:#003100;--ifm-color-success-contrast-foreground:#e6f6e6;--ifm-color-info-contrast-background:#193c47;--ifm-color-info-contrast-foreground:#eef9fd;--ifm-color-warning-contrast-background:#4d3800;--ifm-color-warning-contrast-foreground:#fff8e6;--ifm-color-danger-contrast-background:#4b1113;--ifm-color-danger-contrast-foreground:#ffebec}#nprogress .bar{background:var(--docusaurus-progress-bar-color);height:2px;left:0;position:fixed;top:0;width:100%;z-index:1031}#nprogress .peg{box-shadow:0 0 10px var(--docusaurus-progress-bar-color),0 0 5px var(--docusaurus-progress-bar-color);height:100%;opacity:1;position:absolute;right:0;transform:rotate(3deg) translateY(-4px);width:100px}[data-theme=dark]{--ifm-color-primary:#7a77ff;--ifm-color-primary-dark:#5552ff;--ifm-color-primary-darker:#433fff;--ifm-color-primary-darkest:#0c07ff;--ifm-color-primary-light:#9f9cff;--ifm-color-primary-lighter:#b1afff;--ifm-color-primary-lightest:#b1afff;--docusaurus-highlighted-code-line-bg:#0c0d152b;--ifm-table-stripe-background:#5e30a0!important;--ifm-table-background:#0000!important}[data-theme=light] code[class*=language-],[data-theme=light] pre[class*=language-]{background-color:#f9fafb!important}[data-theme=light] code[class*=language-] .token.comment,[data-theme=light] pre[class*=language-] .token.comment{color:#6e7781!important}[data-theme=light] code[class*=language-] .token.string,[data-theme=light] pre[class*=language-] .token.string{color:#0a3069!important}[data-theme=light] code[class*=language-] .token.keyword,[data-theme=light] pre[class*=language-] .token.keyword{color:#cf222e!important}[data-theme=light] code[class*=language-] .token.method,[data-theme=light] pre[class*=language-] .token.method{color:#6639ba!important}[data-theme=light] code[class*=language-] .token.number,[data-theme=light] code[class*=language-] .token.property,[data-theme=light] pre[class*=language-] .token.number,[data-theme=light] pre[class*=language-] .token.property{color:#0550ae!important}code[class*=language-],pre[class*=language-]{font-size:.85em}code[class*=language-] .token.comment,pre[class*=language-] .token.comment{font-size:.9em;font-style:normal!important}.navbar__brand{margin-right:0}.navbar__manual--title{font-weight:700;margin-right:1rem;padding:0}#__docusaurus-base-url-issue-banner-container,.hideAction_vcyE>svg,.navbar.navbar--fixed-top .navbar__item.dropdown.dropdown--hoverable svg,.themedComponent_mlkZ,[data-theme=dark] .lightToggleIcon_pyhR,[data-theme=light] .darkToggleIcon_wfgR,html[data-announcement-bar-initially-dismissed=true] .announcementBar_mb4j{display:none}[title="svg{height:var(--search-local-hit-height,56px);opacity:.5;width:24px}.hitIcon_a7Zy,.hitTree_kk6K>svg{stroke-width:var(--search-local-icon-stroke-width,1.4)}.hitAction_NqkB,.hitIcon_a7Zy{height:20px;width:20px}.hitWrapper_sAK8{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;margin:0 8px;overflow-x:hidden;width:80%}.hitWrapper_sAK8 mark{background:none;color:var(--search-local-highlight-color,var(--ifm-color-primary))}.hitTitle_vyVt{font-size:.9em}.hitPath_ieM4{font-size:.75em}.hitPath_ieM4,.hitTitle_vyVt{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.noResults_l6Q3{flex-direction:column;justify-content:center;padding:var(--search-local-spacing,12px) 0}.noResultsIcon_EBY5{margin-bottom:var(--search-local-spacing,12px)}.hitFooter_E9YW{font-size:.85em;margin-top:var(--search-local-spacing,12px);text-align:center}.cursor_eG29 .hideAction_vcyE>svg,.tocCollapsibleContent_vkbj a{display:block}.suggestion_fB_2.cursor_eG29,.suggestion_fB_2.cursor_eG29 .hitIcon_a7Zy,.suggestion_fB_2.cursor_eG29 .hitPath_ieM4,.suggestion_fB_2.cursor_eG29 .hitTree_kk6K,.suggestion_fB_2.cursor_eG29 mark{color:var(--search-local-hit-active-color,var(--ifm-color-white))!important}.searchBarContainer_NW3z{margin-left:16px}.searchBarContainer_NW3z .searchBarLoadingRing_YnHq{display:none;left:10px;position:absolute;top:6px}.searchBarContainer_NW3z .searchClearButton_qk4g{background:none;border:none;line-height:1rem;padding:0;position:absolute;right:.8rem;top:50%;transform:translateY(-50%)}.navbar__search{position:relative}.searchIndexLoading_EJ1f .navbar__search-input{background-image:none}.searchHintContainer_Pkmr{align-items:center;display:flex;gap:4px;height:100%;justify-content:center;pointer-events:none;position:absolute;right:10px;top:0}.searchHint_iIMx{background-color:var(--ifm-navbar-search-input-background-color);border:1px solid var(--ifm-color-emphasis-500);box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-500);color:var(--ifm-navbar-search-input-placeholder-color)}.loadingRing_RJI3{display:inline-block;height:20px;opacity:var(--search-local-loading-icon-opacity,.5);position:relative;width:20px}.loadingRing_RJI3 div{animation:1.2s cubic-bezier(.5,0,.5,1) infinite b;border:2px solid var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color));border-color:var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color)) #0000 #0000 #0000;border-radius:50%;display:block;height:16px;margin:2px;position:absolute;width:16px}.loadingRing_RJI3 div:first-child{animation-delay:-.45s}.loadingRing_RJI3 div:nth-child(2){animation-delay:-.3s}.loadingRing_RJI3 div:nth-child(3){animation-delay:-.15s}@keyframes b{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@supports selector(:has(*)){.navbarSearchContainer_Bca1:not(:has(>*)){display:none}}.navbarHideable_m1mJ{transition:transform var(--ifm-transition-fast) ease}.navbarHidden_jGov{transform:translate3d(0,calc(-100% - 2px),0)}.errorBoundaryError_a6uf{color:red;white-space:pre-wrap}.errorBoundaryFallback_VBag{color:red;padding:.55rem}.footerLogoLink_BH7S{opacity:.5;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.footerLogoLink_BH7S:hover,.hash-link:focus,:hover>.hash-link{opacity:1}.anchorWithStickyNavbar_LWe7{scroll-margin-top:calc(var(--ifm-navbar-height) + .5rem)}.anchorWithHideOnScrollNavbar_WYt5{scroll-margin-top:.5rem}.hash-link{opacity:0;padding-left:.5rem;transition:opacity var(--ifm-transition-fast);-webkit-user-select:none;user-select:none}.hash-link:before{content:"#"}.mainWrapper_z2l0{display:flex;flex:1 0 auto;flex-direction:column}.docusaurus-mt-lg{margin-top:3rem}#__docusaurus{display:flex;flex-direction:column;min-height:100%}.cardContainer_fWXF{--ifm-link-color:var(--ifm-color-emphasis-800);--ifm-link-hover-color:var(--ifm-color-emphasis-700);--ifm-link-hover-decoration:none;border:1px solid var(--ifm-color-emphasis-200);box-shadow:0 1.5px 3px 0 #00000026;transition:all var(--ifm-transition-fast) ease;transition-property:border,box-shadow}.cardContainer_fWXF:hover{border-color:var(--ifm-color-primary);box-shadow:0 3px 6px 0 #0003}.cardTitle_rnsV{font-size:1.2rem}.cardDescription_PWke{font-size:.8rem}.iconEdit_Z9Sw{margin-right:.3em;vertical-align:sub}.tag_zVej{border:1px solid var(--docusaurus-tag-list-border);transition:border var(--ifm-transition-fast)}.tag_zVej:hover{--docusaurus-tag-list-border:var(--ifm-link-color);text-decoration:none}.tagRegular_sFm0{border-radius:var(--ifm-global-radius);font-size:90%;padding:.2rem .5rem .3rem}.tagWithCount_h2kH{align-items:center;border-left:0;display:flex;padding:0 .5rem 0 1rem;position:relative}.tagWithCount_h2kH:after,.tagWithCount_h2kH:before{border:1px solid var(--docusaurus-tag-list-border);content:"";position:absolute;top:50%;transition:inherit}.tagWithCount_h2kH:before{border-bottom:0;border-right:0;height:1.18rem;right:100%;transform:translate(50%,-50%) rotate(-45deg);width:1.18rem}.tagWithCount_h2kH:after{border-radius:50%;height:.5rem;left:0;transform:translateY(-50%);width:.5rem}.tagWithCount_h2kH span{background:var(--ifm-color-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-color-black);font-size:.7rem;line-height:1.2;margin-left:.3rem;padding:.1rem .4rem}.tags_jXut{display:inline}.tag_QGVx{display:inline-block;margin:0 .4rem .5rem 0}.lastUpdated_vwxv{font-size:smaller;font-style:italic;margin-top:.2rem}.tocCollapsibleButton_TO0P{align-items:center;display:flex;font-size:inherit;justify-content:space-between;padding:.4rem .8rem;width:100%}.tocCollapsibleButton_TO0P:after{background:var(--ifm-menu-link-sublist-icon) 50% 50%/2rem 2rem no-repeat;content:"";filter:var(--ifm-menu-link-sublist-icon-filter);height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast);width:1.25rem}.tocCollapsibleButtonExpanded_MG3E:after,.tocCollapsibleExpanded_sAul{transform:none}.tocCollapsible_ETCw{background-color:var(--ifm-menu-color-background-active);border-radius:var(--ifm-global-radius);margin:1rem 0}.buttonGroup__atx button,.codeBlockContainer_Ckt0{background:var(--prism-background-color);color:var(--prism-color)}.tocCollapsibleContent_vkbj>ul{border-left:none;border-top:1px solid var(--ifm-color-emphasis-300);font-size:15px;padding:.2rem 0}.tocCollapsibleContent_vkbj ul li{margin:.4rem .8rem}.tableOfContents_bqdL{max-height:calc(100vh - var(--ifm-navbar-height) - 2rem);overflow-y:auto;position:sticky;top:calc(var(--ifm-navbar-height) + 1rem)}.codeBlockContainer_Ckt0{border-radius:var(--ifm-code-border-radius);box-shadow:var(--ifm-global-shadow-lw);margin-bottom:var(--ifm-leading)}.codeBlockContent_biex{border-radius:inherit;direction:ltr;position:relative}.codeBlockTitle_Ktv7{border-bottom:1px solid var(--ifm-color-emphasis-300);border-top-left-radius:inherit;border-top-right-radius:inherit;font-size:var(--ifm-code-font-size);font-weight:500;padding:.75rem var(--ifm-pre-padding)}.codeBlock_bY9V{--ifm-pre-background:var(--prism-background-color);margin:0;padding:0}.codeBlockTitle_Ktv7+.codeBlockContent_biex .codeBlock_bY9V{border-top-left-radius:0;border-top-right-radius:0}.codeBlockLines_e6Vv{float:left;font:inherit;min-width:100%;padding:var(--ifm-pre-padding)}.codeBlockLinesWithNumbering_o6Pm{display:table;padding:var(--ifm-pre-padding) 0}.buttonGroup__atx{column-gap:.2rem;display:flex;position:absolute;right:calc(var(--ifm-pre-padding)/2);top:calc(var(--ifm-pre-padding)/2)}.buttonGroup__atx button{align-items:center;border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-global-radius);display:flex;line-height:0;opacity:0;padding:.4rem;transition:opacity var(--ifm-transition-fast) ease-in-out}.buttonGroup__atx button:focus-visible,.buttonGroup__atx button:hover{opacity:1!important}.theme-code-block:hover .buttonGroup__atx button{opacity:.4}:where(:root){--docusaurus-highlighted-code-line-bg:#484d5b}:where([data-theme=dark]){--docusaurus-highlighted-code-line-bg:#646464}.theme-code-block-highlighted-line{background-color:var(--docusaurus-highlighted-code-line-bg);display:block;margin:0 calc(var(--ifm-pre-padding)*-1);padding:0 var(--ifm-pre-padding)}.codeLine_lJS_{counter-increment:a;display:table-row}.codeLineNumber_Tfdd{background:var(--ifm-pre-background);display:table-cell;left:0;overflow-wrap:normal;padding:0 var(--ifm-pre-padding);position:sticky;text-align:right;width:1%}.codeLineNumber_Tfdd:before{content:counter(a);opacity:.4}.codeLineContent_feaV{padding-right:var(--ifm-pre-padding)}.theme-code-block:hover .copyButtonCopied_obH4{opacity:1!important}.copyButtonIcons_eSgA{height:1.125rem;position:relative;width:1.125rem}.copyButtonIcon_y97N,.copyButtonSuccessIcon_LjdS{fill:currentColor;height:inherit;left:0;opacity:inherit;position:absolute;top:0;transition:all var(--ifm-transition-fast) ease;width:inherit}.copyButtonSuccessIcon_LjdS{color:#00d600;left:50%;opacity:0;top:50%;transform:translate(-50%,-50%) scale(.33)}.copyButtonCopied_obH4 .copyButtonIcon_y97N{opacity:0;transform:scale(.33)}.copyButtonCopied_obH4 .copyButtonSuccessIcon_LjdS{opacity:1;transform:translate(-50%,-50%) scale(1);transition-delay:75ms}.wordWrapButtonIcon_Bwma{height:1.2rem;width:1.2rem}.details_lb9f{--docusaurus-details-summary-arrow-size:0.38rem;--docusaurus-details-transition:transform 200ms ease;--docusaurus-details-decoration-color:grey}.details_lb9f>summary{cursor:pointer;padding-left:1rem;position:relative}.details_lb9f>summary::-webkit-details-marker{display:none}.details_lb9f>summary:before{border-color:#0000 #0000 #0000 var(--docusaurus-details-decoration-color);border-style:solid;border-width:var(--docusaurus-details-summary-arrow-size);content:"";left:0;position:absolute;top:.45rem;transform:rotate(0);transform-origin:calc(var(--docusaurus-details-summary-arrow-size)/2) 50%;transition:var(--docusaurus-details-transition)}.collapsibleContent_i85q{border-top:1px solid var(--docusaurus-details-decoration-color);margin-top:1rem;padding-top:1rem}.details_b_Ee{--docusaurus-details-decoration-color:var(--ifm-alert-border-color);--docusaurus-details-transition:transform var(--ifm-transition-fast) ease;border:1px solid var(--ifm-alert-border-color);margin:0 0 var(--ifm-spacing-vertical)}.img_ev3q{height:auto}.admonition_xJq3{margin-bottom:1em}.admonitionHeading_Gvgb{font:var(--ifm-heading-font-weight) var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family)}.admonitionHeading_Gvgb:not(:last-child){margin-bottom:.3rem}.admonitionHeading_Gvgb code{text-transform:none}.admonitionIcon_Rf37{display:inline-block;margin-right:.4em;vertical-align:middle}.admonitionIcon_Rf37 svg{fill:var(--ifm-alert-foreground-color);display:inline-block;height:1.6em;width:1.6em}.breadcrumbHomeIcon_YNFT{height:1.1rem;position:relative;top:1px;vertical-align:top;width:1.1rem}.breadcrumbsContainer_Z_bl{--ifm-breadcrumb-size-multiplier:0.8;margin-bottom:.8rem}.title_kItE{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-leading)*1.25)}.searchContextInput_mXoe,.searchQueryInput_CFBF{background:var(--ifm-background-color);border:var(--ifm-global-border-width) solid var(--ifm-color-content-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-font-color-base);font-size:var(--ifm-font-size-base);margin-bottom:1rem;padding:.5rem;width:100%}.searchResultItem_U687{border-bottom:1px solid #dfe3e8;padding:1rem 0}.searchResultItemPath_uIbk{color:var(--ifm-color-content-secondary);font-size:.8rem;margin:.5rem 0 0}.searchResultItemSummary_oZHr{font-style:italic;margin:.5rem 0 0}.backToTopButton_sjWU{background-color:var(--ifm-color-emphasis-200);border-radius:50%;bottom:1.3rem;box-shadow:var(--ifm-global-shadow-lw);height:3rem;opacity:0;position:fixed;right:1.3rem;transform:scale(0);transition:all var(--ifm-transition-fast) var(--ifm-transition-timing-default);visibility:hidden;width:3rem;z-index:calc(var(--ifm-z-index-fixed) - 1)}.backToTopButton_sjWU:after{background-color:var(--ifm-color-emphasis-1000);content:" ";display:inline-block;height:100%;-webkit-mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;width:100%}.backToTopButtonShow_xfvO{opacity:1;transform:scale(1);visibility:visible}[data-theme=dark]:root{--docusaurus-collapse-button-bg:#ffffff0d;--docusaurus-collapse-button-bg-hover:#ffffff1a}.collapseSidebarButton_PEFL{display:none;margin:0}.docSidebarContainer_YfHR,.sidebarLogo_isFc{display:none}.docMainContainer_TBSr,.docRoot_UBD9{display:flex;width:100%}.docsWrapper_hBAB{display:flex;flex:1 0 auto}@media (min-width:997px){.collapseSidebarButton_PEFL,.expandButton_TmdG{background-color:var(--docusaurus-collapse-button-bg)}:root{--docusaurus-announcement-bar-height:30px}.announcementBarClose_gvF7,.announcementBarPlaceholder_vyr4{flex-basis:50px}.navbarSearchContainer_Bca1{padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.lastUpdated_vwxv{text-align:right}.tocMobile_ITEo{display:none}.docItemCol_VOVn,.generatedIndexPage_vN6x{max-width:75%!important}.list_eTzJ article:nth-last-child(-n+2){margin-bottom:0!important}.collapseSidebarButton_PEFL{border:1px solid var(--ifm-toc-border-color);border-radius:0;bottom:0;display:block!important;height:40px;position:sticky}.collapseSidebarButtonIcon_kv0_{margin-top:4px;transform:rotate(180deg)}.expandButtonIcon_i1dp,[dir=rtl] .collapseSidebarButtonIcon_kv0_{transform:rotate(0)}.collapseSidebarButton_PEFL:focus,.collapseSidebarButton_PEFL:hover,.expandButton_TmdG:focus,.expandButton_TmdG:hover{background-color:var(--docusaurus-collapse-button-bg-hover)}.menuHtmlItem_M9Kj{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu_SIkG{flex-grow:1;padding:.5rem}@supports (scrollbar-gutter:stable){.menu_SIkG{padding:.5rem 0 .5rem .5rem;scrollbar-gutter:stable}}.menuWithAnnouncementBar_GW3s{margin-bottom:var(--docusaurus-announcement-bar-height)}.sidebar_njMd{display:flex;flex-direction:column;height:100%;padding-top:var(--ifm-navbar-height);width:var(--doc-sidebar-width)}.sidebarWithHideableNavbar_wUlq{padding-top:0}.sidebarHidden_VK0M{opacity:0;visibility:hidden}.sidebarLogo_isFc{align-items:center;color:inherit!important;display:flex!important;margin:0 var(--ifm-navbar-padding-horizontal);max-height:var(--ifm-navbar-height);min-height:var(--ifm-navbar-height);text-decoration:none!important}.sidebarLogo_isFc img{height:2rem;margin-right:.5rem}.expandButton_TmdG{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;transition:background-color var(--ifm-transition-fast) ease;width:100%}[dir=rtl] .expandButtonIcon_i1dp{transform:rotate(180deg)}.docSidebarContainer_YfHR{border-right:1px solid var(--ifm-toc-border-color);-webkit-clip-path:inset(0);clip-path:inset(0);display:block;margin-top:calc(var(--ifm-navbar-height)*-1);transition:width var(--ifm-transition-fast) ease;width:var(--doc-sidebar-width);will-change:width}.docSidebarContainerHidden_DPk8{cursor:pointer;width:var(--doc-sidebar-hidden-width)}.sidebarViewport_aRkj{height:100%;max-height:100vh;position:sticky;top:0}.docMainContainer_TBSr{flex-grow:1;max-width:calc(100% - var(--doc-sidebar-width))}.docMainContainerEnhanced_lQrH{max-width:calc(100% - var(--doc-sidebar-hidden-width))}.docItemWrapperEnhanced_JWYK{max-width:calc(var(--ifm-container-width) + var(--doc-sidebar-width))!important}}@media (min-width:1440px){.container{max-width:var(--ifm-container-width-xl)}}@media (max-width:996px){.col{--ifm-col-width:100%;flex-basis:var(--ifm-col-width);margin-left:0}.footer{--ifm-footer-padding-horizontal:0}.colorModeToggle_DEke,.footer__link-separator,.navbar__item,.tableOfContents_bqdL{display:none}.footer__col{margin-bottom:calc(var(--ifm-spacing-vertical)*3)}.footer__link-item{display:block}.hero{padding-left:0;padding-right:0}.navbar>.container,.navbar>.container-fluid{padding:0}.navbar__toggle{display:inherit}.navbar__search-input{width:9rem}.pills--block,.tabs--block{flex-direction:column}.navbarSearchContainer_Bca1{position:absolute;right:var(--ifm-navbar-padding-horizontal)}.docItemContainer_F8PC{padding:0 .3rem}}@media not (max-width:996px){.searchBar_RVTs.searchBarLeft_MXDe .dropdownMenu_qbY6{left:0!important;right:auto!important}}@media only screen and (max-width:996px){.searchQueryColumn_q7nx{max-width:60%!important}.searchContextColumn_oWAF{max-width:40%!important}}@media (max-width:576px){.markdown h1:first-child{--ifm-h1-font-size:2rem}.markdown>h2{--ifm-h2-font-size:1.5rem}.markdown>h3{--ifm-h3-font-size:1.25rem}.navbar__search-input:not(:focus){width:2rem}.searchBar_RVTs .dropdownMenu_qbY6{max-width:calc(100vw - var(--ifm-navbar-padding-horizontal)*2);width:var(--search-local-modal-width-sm,340px)}.searchBarContainer_NW3z:not(.focused_OWtg) .searchClearButton_qk4g,.searchHintContainer_Pkmr{display:none}}@media screen and (max-width:576px){.searchQueryColumn_q7nx{max-width:100%!important}.searchContextColumn_oWAF{max-width:100%!important;padding-left:var(--ifm-spacing-horizontal)!important}}@media (hover:hover){.backToTopButton_sjWU:hover{background-color:var(--ifm-color-emphasis-300)}}@media (pointer:fine){.thin-scrollbar{scrollbar-width:thin}.thin-scrollbar::-webkit-scrollbar{height:var(--ifm-scrollbar-size);width:var(--ifm-scrollbar-size)}.thin-scrollbar::-webkit-scrollbar-track{background:var(--ifm-scrollbar-track-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb{background:var(--ifm-scrollbar-thumb-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--ifm-scrollbar-thumb-hover-background-color)}}@media (prefers-reduced-motion:reduce){:root{--ifm-transition-fast:0ms;--ifm-transition-slow:0ms}}@media print{.announcementBar_mb4j,.footer,.menu,.navbar,.pagination-nav,.table-of-contents,.tocMobile_ITEo{display:none}.tabs{page-break-inside:avoid}.codeBlockLines_e6Vv{white-space:pre-wrap}} \ No newline at end of file diff --git a/zh-CN/assets/css/styles.4c3135ed.css b/zh-CN/assets/css/styles.4c3135ed.css new file mode 100644 index 0000000000..0032d4a2ad --- /dev/null +++ b/zh-CN/assets/css/styles.4c3135ed.css @@ -0,0 +1 @@ +.col,.container{padding:0 var(--ifm-spacing-horizontal);width:100%}.markdown>h2,.markdown>h3,.markdown>h4,.markdown>h5,.markdown>h6{margin-bottom:calc(var(--ifm-heading-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown li,body{word-wrap:break-word}body,ol ol,ol ul,ul ol,ul ul{margin:0}pre,table{overflow:auto}blockquote,pre{margin:0 0 var(--ifm-spacing-vertical)}.breadcrumbs__link,.button{transition-timing-function:var(--ifm-transition-timing-default)}.button,code{vertical-align:middle}.button--outline.button--active,.button--outline:active,.button--outline:hover,:root{--ifm-button-color:var(--ifm-font-color-base-inverse)}.menu__link:hover,a{transition:color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--dark,:root{--ifm-navbar-link-hover-color:var(--ifm-color-primary)}.menu,.navbar-sidebar{overflow-x:hidden}:root,html[data-theme=dark]{--ifm-color-emphasis-500:var(--ifm-color-gray-500)}[data-theme=dark] details.history,[data-theme=light] details.history{--history-summary-icon:var(--docusaurus-details-decoration-color);--history-separator:var(--ifm-table-border-color)}.toggleButton_gllP,html{-webkit-tap-highlight-color:transparent}*,.loader,.loadingRing_RJI3 div{box-sizing:border-box}.clean-list,.containsTaskList_mC6p,.details_lb9f>summary,.dropdown__menu,.menu__list{list-style:none}:root{--ifm-color-scheme:light;--ifm-dark-value:10%;--ifm-darker-value:15%;--ifm-darkest-value:30%;--ifm-light-value:15%;--ifm-lighter-value:30%;--ifm-lightest-value:50%;--ifm-contrast-background-value:90%;--ifm-contrast-foreground-value:70%;--ifm-contrast-background-dark-value:70%;--ifm-contrast-foreground-dark-value:90%;--ifm-color-primary:#3578e5;--ifm-color-secondary:#ebedf0;--ifm-color-success:#00a400;--ifm-color-info:#54c7ec;--ifm-color-warning:#ffba00;--ifm-color-danger:#fa383e;--ifm-color-primary-dark:#306cce;--ifm-color-primary-darker:#2d66c3;--ifm-color-primary-darkest:#2554a0;--ifm-color-primary-light:#538ce9;--ifm-color-primary-lighter:#72a1ed;--ifm-color-primary-lightest:#9abcf2;--ifm-color-primary-contrast-background:#ebf2fc;--ifm-color-primary-contrast-foreground:#102445;--ifm-color-secondary-dark:#d4d5d8;--ifm-color-secondary-darker:#c8c9cc;--ifm-color-secondary-darkest:#a4a6a8;--ifm-color-secondary-light:#eef0f2;--ifm-color-secondary-lighter:#f1f2f5;--ifm-color-secondary-lightest:#f5f6f8;--ifm-color-secondary-contrast-background:#fdfdfe;--ifm-color-secondary-contrast-foreground:#474748;--ifm-color-success-dark:#009400;--ifm-color-success-darker:#008b00;--ifm-color-success-darkest:#007300;--ifm-color-success-light:#26b226;--ifm-color-success-lighter:#4dbf4d;--ifm-color-success-lightest:#80d280;--ifm-color-success-contrast-background:#e6f6e6;--ifm-color-success-contrast-foreground:#003100;--ifm-color-info-dark:#4cb3d4;--ifm-color-info-darker:#47a9c9;--ifm-color-info-darkest:#3b8ba5;--ifm-color-info-light:#6ecfef;--ifm-color-info-lighter:#87d8f2;--ifm-color-info-lightest:#aae3f6;--ifm-color-info-contrast-background:#eef9fd;--ifm-color-info-contrast-foreground:#193c47;--ifm-color-warning-dark:#e6a700;--ifm-color-warning-darker:#d99e00;--ifm-color-warning-darkest:#b38200;--ifm-color-warning-light:#ffc426;--ifm-color-warning-lighter:#ffcf4d;--ifm-color-warning-lightest:#ffdd80;--ifm-color-warning-contrast-background:#fff8e6;--ifm-color-warning-contrast-foreground:#4d3800;--ifm-color-danger-dark:#e13238;--ifm-color-danger-darker:#d53035;--ifm-color-danger-darkest:#af272b;--ifm-color-danger-light:#fb565b;--ifm-color-danger-lighter:#fb7478;--ifm-color-danger-lightest:#fd9c9f;--ifm-color-danger-contrast-background:#ffebec;--ifm-color-danger-contrast-foreground:#4b1113;--ifm-color-white:#fff;--ifm-color-black:#000;--ifm-color-gray-0:var(--ifm-color-white);--ifm-color-gray-100:#f5f6f7;--ifm-color-gray-200:#ebedf0;--ifm-color-gray-300:#dadde1;--ifm-color-gray-400:#ccd0d5;--ifm-color-gray-500:#bec3c9;--ifm-color-gray-600:#8d949e;--ifm-color-gray-700:#606770;--ifm-color-gray-800:#444950;--ifm-color-gray-900:#1c1e21;--ifm-color-gray-1000:var(--ifm-color-black);--ifm-color-emphasis-0:var(--ifm-color-gray-0);--ifm-color-emphasis-100:var(--ifm-color-gray-100);--ifm-color-emphasis-200:var(--ifm-color-gray-200);--ifm-color-emphasis-300:var(--ifm-color-gray-300);--ifm-color-emphasis-400:var(--ifm-color-gray-400);--ifm-color-emphasis-600:var(--ifm-color-gray-600);--ifm-color-emphasis-700:var(--ifm-color-gray-700);--ifm-color-emphasis-800:var(--ifm-color-gray-800);--ifm-color-emphasis-900:var(--ifm-color-gray-900);--ifm-color-emphasis-1000:var(--ifm-color-gray-1000);--ifm-color-content:var(--ifm-color-emphasis-900);--ifm-color-content-inverse:var(--ifm-color-emphasis-0);--ifm-color-content-secondary:#525860;--ifm-background-color:#0000;--ifm-background-surface-color:var(--ifm-color-content-inverse);--ifm-global-border-width:1px;--ifm-global-radius:0.4rem;--ifm-hover-overlay:#0000000d;--ifm-font-color-base:var(--ifm-color-content);--ifm-font-color-base-inverse:var(--ifm-color-content-inverse);--ifm-font-color-secondary:var(--ifm-color-content-secondary);--ifm-font-family-base:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ifm-font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--ifm-font-size-base:100%;--ifm-font-weight-light:300;--ifm-font-weight-normal:400;--ifm-font-weight-semibold:500;--ifm-font-weight-bold:700;--ifm-font-weight-base:var(--ifm-font-weight-normal);--ifm-line-height-base:1.65;--ifm-global-spacing:1rem;--ifm-spacing-vertical:var(--ifm-global-spacing);--ifm-spacing-horizontal:var(--ifm-global-spacing);--ifm-transition-fast:200ms;--ifm-transition-slow:400ms;--ifm-transition-timing-default:cubic-bezier(0.08,0.52,0.52,1);--ifm-global-shadow-lw:0 1px 2px 0 #0000001a;--ifm-global-shadow-md:0 5px 40px #0003;--ifm-global-shadow-tl:0 12px 28px 0 #0003,0 2px 4px 0 #0000001a;--ifm-z-index-dropdown:100;--ifm-z-index-fixed:200;--ifm-z-index-overlay:400;--ifm-container-width:1140px;--ifm-container-width-xl:1320px;--ifm-code-background:#f6f7f8;--ifm-code-border-radius:var(--ifm-global-radius);--ifm-code-font-size:90%;--ifm-code-padding-horizontal:0.1rem;--ifm-code-padding-vertical:0.1rem;--ifm-pre-background:var(--ifm-code-background);--ifm-pre-border-radius:var(--ifm-code-border-radius);--ifm-pre-color:inherit;--ifm-pre-line-height:1.45;--ifm-pre-padding:1rem;--ifm-heading-color:inherit;--ifm-heading-margin-top:0;--ifm-heading-margin-bottom:var(--ifm-spacing-vertical);--ifm-heading-font-family:var(--ifm-font-family-base);--ifm-heading-font-weight:var(--ifm-font-weight-bold);--ifm-heading-line-height:1.25;--ifm-h1-font-size:2rem;--ifm-h2-font-size:1.5rem;--ifm-h3-font-size:1.25rem;--ifm-h4-font-size:1rem;--ifm-h5-font-size:0.875rem;--ifm-h6-font-size:0.85rem;--ifm-image-alignment-padding:1.25rem;--ifm-leading-desktop:1.25;--ifm-leading:calc(var(--ifm-leading-desktop)*1rem);--ifm-list-left-padding:2rem;--ifm-list-margin:1rem;--ifm-list-item-margin:0.25rem;--ifm-list-paragraph-margin:1rem;--ifm-table-cell-padding:0.75rem;--ifm-table-background:#0000;--ifm-table-stripe-background:#00000008;--ifm-table-border-width:1px;--ifm-table-border-color:var(--ifm-color-emphasis-300);--ifm-table-head-background:inherit;--ifm-table-head-color:inherit;--ifm-table-head-font-weight:var(--ifm-font-weight-bold);--ifm-table-cell-color:inherit;--ifm-link-color:var(--ifm-color-primary);--ifm-link-decoration:none;--ifm-link-hover-color:var(--ifm-link-color);--ifm-link-hover-decoration:underline;--ifm-paragraph-margin-bottom:var(--ifm-leading);--ifm-blockquote-font-size:var(--ifm-font-size-base);--ifm-blockquote-border-left-width:2px;--ifm-blockquote-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-blockquote-padding-vertical:0;--ifm-blockquote-shadow:none;--ifm-blockquote-color:var(--ifm-color-emphasis-800);--ifm-blockquote-border-color:var(--ifm-color-emphasis-300);--ifm-hr-background-color:var(--ifm-color-emphasis-500);--ifm-hr-height:1px;--ifm-hr-margin-vertical:1.5rem;--ifm-scrollbar-size:7px;--ifm-scrollbar-track-background-color:#f1f1f1;--ifm-scrollbar-thumb-background-color:silver;--ifm-scrollbar-thumb-hover-background-color:#a7a7a7;--ifm-alert-background-color:inherit;--ifm-alert-border-color:inherit;--ifm-alert-border-radius:var(--ifm-global-radius);--ifm-alert-border-width:0px;--ifm-alert-border-left-width:5px;--ifm-alert-color:var(--ifm-font-color-base);--ifm-alert-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-alert-padding-vertical:var(--ifm-spacing-vertical);--ifm-alert-shadow:var(--ifm-global-shadow-lw);--ifm-avatar-intro-margin:1rem;--ifm-avatar-intro-alignment:inherit;--ifm-avatar-photo-size:3rem;--ifm-badge-background-color:inherit;--ifm-badge-border-color:inherit;--ifm-badge-border-radius:var(--ifm-global-radius);--ifm-badge-border-width:var(--ifm-global-border-width);--ifm-badge-color:var(--ifm-color-white);--ifm-badge-padding-horizontal:calc(var(--ifm-spacing-horizontal)*0.5);--ifm-badge-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-breadcrumb-border-radius:1.5rem;--ifm-breadcrumb-spacing:0.5rem;--ifm-breadcrumb-color-active:var(--ifm-color-primary);--ifm-breadcrumb-item-background-active:var(--ifm-hover-overlay);--ifm-breadcrumb-padding-horizontal:0.8rem;--ifm-breadcrumb-padding-vertical:0.4rem;--ifm-breadcrumb-size-multiplier:1;--ifm-breadcrumb-separator:url('data:image/svg+xml;utf8,');--ifm-breadcrumb-separator-filter:none;--ifm-breadcrumb-separator-size:0.5rem;--ifm-breadcrumb-separator-size-multiplier:1.25;--ifm-button-background-color:inherit;--ifm-button-border-color:var(--ifm-button-background-color);--ifm-button-border-width:var(--ifm-global-border-width);--ifm-button-font-weight:var(--ifm-font-weight-bold);--ifm-button-padding-horizontal:1.5rem;--ifm-button-padding-vertical:0.375rem;--ifm-button-size-multiplier:1;--ifm-button-transition-duration:var(--ifm-transition-fast);--ifm-button-border-radius:calc(var(--ifm-global-radius)*var(--ifm-button-size-multiplier));--ifm-button-group-spacing:2px;--ifm-card-background-color:var(--ifm-background-surface-color);--ifm-card-border-radius:calc(var(--ifm-global-radius)*2);--ifm-card-horizontal-spacing:var(--ifm-global-spacing);--ifm-card-vertical-spacing:var(--ifm-global-spacing);--ifm-toc-border-color:var(--ifm-color-emphasis-300);--ifm-toc-link-color:var(--ifm-color-content-secondary);--ifm-toc-padding-vertical:0.5rem;--ifm-toc-padding-horizontal:0.5rem;--ifm-dropdown-background-color:var(--ifm-background-surface-color);--ifm-dropdown-font-weight:var(--ifm-font-weight-semibold);--ifm-dropdown-link-color:var(--ifm-font-color-base);--ifm-dropdown-hover-background-color:var(--ifm-hover-overlay);--ifm-footer-background-color:var(--ifm-color-emphasis-100);--ifm-footer-color:inherit;--ifm-footer-link-color:var(--ifm-color-emphasis-700);--ifm-footer-link-hover-color:var(--ifm-color-primary);--ifm-footer-link-horizontal-spacing:0.5rem;--ifm-footer-padding-horizontal:calc(var(--ifm-spacing-horizontal)*2);--ifm-footer-padding-vertical:calc(var(--ifm-spacing-vertical)*2);--ifm-footer-title-color:inherit;--ifm-footer-logo-max-width:min(30rem,90vw);--ifm-hero-background-color:var(--ifm-background-surface-color);--ifm-hero-text-color:var(--ifm-color-emphasis-800);--ifm-menu-color:var(--ifm-color-emphasis-700);--ifm-menu-color-active:var(--ifm-color-primary);--ifm-menu-color-background-active:var(--ifm-hover-overlay);--ifm-menu-color-background-hover:var(--ifm-hover-overlay);--ifm-menu-link-padding-horizontal:0.75rem;--ifm-menu-link-padding-vertical:0.375rem;--ifm-menu-link-sublist-icon:url('data:image/svg+xml;utf8,');--ifm-menu-link-sublist-icon-filter:none;--ifm-navbar-background-color:var(--ifm-background-surface-color);--ifm-navbar-height:3.75rem;--ifm-navbar-item-padding-horizontal:0.75rem;--ifm-navbar-item-padding-vertical:0.25rem;--ifm-navbar-link-color:var(--ifm-font-color-base);--ifm-navbar-link-active-color:var(--ifm-link-color);--ifm-navbar-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-navbar-padding-vertical:calc(var(--ifm-spacing-vertical)*0.5);--ifm-navbar-shadow:var(--ifm-global-shadow-lw);--ifm-navbar-search-input-background-color:var(--ifm-color-emphasis-200);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-800);--ifm-navbar-search-input-placeholder-color:var(--ifm-color-emphasis-500);--ifm-navbar-search-input-icon:url('data:image/svg+xml;utf8,');--ifm-navbar-sidebar-width:83vw;--ifm-pagination-border-radius:var(--ifm-global-radius);--ifm-pagination-color-active:var(--ifm-color-primary);--ifm-pagination-font-size:1rem;--ifm-pagination-item-active-background:var(--ifm-hover-overlay);--ifm-pagination-page-spacing:0.2em;--ifm-pagination-padding-horizontal:calc(var(--ifm-spacing-horizontal)*1);--ifm-pagination-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-pagination-nav-border-radius:var(--ifm-global-radius);--ifm-pagination-nav-color-hover:var(--ifm-color-primary);--ifm-pills-color-active:var(--ifm-color-primary);--ifm-pills-color-background-active:var(--ifm-hover-overlay);--ifm-pills-spacing:0.125rem;--ifm-tabs-color:var(--ifm-font-color-secondary);--ifm-tabs-color-active:var(--ifm-color-primary);--ifm-tabs-color-active-border:var(--ifm-tabs-color-active);--ifm-tabs-padding-horizontal:1rem;--ifm-tabs-padding-vertical:1rem;--docusaurus-progress-bar-color:var(--ifm-color-primary);--ifm-color-primary:#45aaf2;--ifm-color-primary-dark:#3d98d1;--ifm-color-primary-darker:#3788bf;--ifm-color-primary-darkest:#2d6e99;--ifm-color-primary-light:#66b5f8;--ifm-color-primary-lighter:#80bff9;--ifm-color-primary-lightest:#99c9fa;--ifm-code-font-size:95%;--docusaurus-highlighted-code-line-bg:#21657e0d;--ifm-table-stripe-background:#c6ddff!important;--ifm-table-background:#fdfdfd7a!important;--docusaurus-announcement-bar-height:auto;--docusaurus-tag-list-border:var(--ifm-color-emphasis-300);--docusaurus-collapse-button-bg:#0000;--docusaurus-collapse-button-bg-hover:#0000001a;--doc-sidebar-width:300px;--doc-sidebar-hidden-width:30px}.badge--danger,.badge--info,.badge--primary,.badge--secondary,.badge--success,.badge--warning{--ifm-badge-border-color:var(--ifm-badge-background-color)}.button--link,.button--outline{--ifm-button-background-color:#0000}html{-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%;background-color:var(--ifm-background-color);color:var(--ifm-font-color-base);color-scheme:var(--ifm-color-scheme);font:var(--ifm-font-size-base)/var(--ifm-line-height-base) var(--ifm-font-family-base);text-rendering:optimizelegibility}iframe{border:0;color-scheme:auto}.container{margin:0 auto;max-width:var(--ifm-container-width)}.container--fluid{max-width:inherit}.row{display:flex;flex-wrap:wrap;margin:0 calc(var(--ifm-spacing-horizontal)*-1)}.margin-bottom--none,.margin-vert--none,.markdown>:last-child{margin-bottom:0!important}.margin-top--none,.margin-vert--none,.tabItem_LNqP{margin-top:0!important}.row--no-gutters{margin-left:0;margin-right:0}.margin-horiz--none,.margin-right--none{margin-right:0!important}.row--no-gutters>.col{padding-left:0;padding-right:0}.row--align-top{align-items:flex-start}.row--align-bottom{align-items:flex-end}.menuExternalLink_NmtK,.row--align-center{align-items:center}.row--align-stretch{align-items:stretch}.row--align-baseline{align-items:baseline}.col{--ifm-col-width:100%;flex:1 0;margin-left:0;max-width:var(--ifm-col-width)}.padding-bottom--none,.padding-vert--none{padding-bottom:0!important}.padding-top--none,.padding-vert--none{padding-top:0!important}.padding-horiz--none,.padding-left--none{padding-left:0!important}.padding-horiz--none,.padding-right--none{padding-right:0!important}.col[class*=col--]{flex:0 0 var(--ifm-col-width)}.col--1{--ifm-col-width:8.33333%}.col--offset-1{margin-left:8.33333%}.col--2{--ifm-col-width:16.66667%}.col--offset-2{margin-left:16.66667%}.col--3{--ifm-col-width:25%}.col--offset-3{margin-left:25%}.col--4{--ifm-col-width:33.33333%}.col--offset-4{margin-left:33.33333%}.col--5{--ifm-col-width:41.66667%}.col--offset-5{margin-left:41.66667%}.col--6{--ifm-col-width:50%}.col--offset-6{margin-left:50%}.col--7{--ifm-col-width:58.33333%}.col--offset-7{margin-left:58.33333%}.col--8{--ifm-col-width:66.66667%}.col--offset-8{margin-left:66.66667%}.col--9{--ifm-col-width:75%}.col--offset-9{margin-left:75%}.col--10{--ifm-col-width:83.33333%}.col--offset-10{margin-left:83.33333%}.col--11{--ifm-col-width:91.66667%}.col--offset-11{margin-left:91.66667%}.col--12{--ifm-col-width:100%}.col--offset-12{margin-left:100%}.margin-horiz--none,.margin-left--none{margin-left:0!important}.margin--none{margin:0!important}.margin-bottom--xs,.margin-vert--xs{margin-bottom:.25rem!important}.margin-top--xs,.margin-vert--xs{margin-top:.25rem!important}.margin-horiz--xs,.margin-left--xs{margin-left:.25rem!important}.margin-horiz--xs,.margin-right--xs{margin-right:.25rem!important}.margin--xs{margin:.25rem!important}.margin-bottom--sm,.margin-vert--sm{margin-bottom:.5rem!important}.margin-top--sm,.margin-vert--sm{margin-top:.5rem!important}.margin-horiz--sm,.margin-left--sm{margin-left:.5rem!important}.margin-horiz--sm,.margin-right--sm{margin-right:.5rem!important}.margin--sm{margin:.5rem!important}.margin-bottom--md,.margin-vert--md{margin-bottom:1rem!important}.margin-top--md,.margin-vert--md{margin-top:1rem!important}.margin-horiz--md,.margin-left--md{margin-left:1rem!important}.margin-horiz--md,.margin-right--md{margin-right:1rem!important}.margin--md{margin:1rem!important}.margin-bottom--lg,.margin-vert--lg{margin-bottom:2rem!important}.margin-top--lg,.margin-vert--lg{margin-top:2rem!important}.margin-horiz--lg,.margin-left--lg{margin-left:2rem!important}.margin-horiz--lg,.margin-right--lg{margin-right:2rem!important}.margin--lg{margin:2rem!important}.margin-bottom--xl,.margin-vert--xl{margin-bottom:5rem!important}.margin-top--xl,.margin-vert--xl{margin-top:5rem!important}.margin-horiz--xl,.margin-left--xl{margin-left:5rem!important}.margin-horiz--xl,.margin-right--xl{margin-right:5rem!important}.margin--xl{margin:5rem!important}.padding--none{padding:0!important}.padding-bottom--xs,.padding-vert--xs{padding-bottom:.25rem!important}.padding-top--xs,.padding-vert--xs{padding-top:.25rem!important}.padding-horiz--xs,.padding-left--xs{padding-left:.25rem!important}.padding-horiz--xs,.padding-right--xs{padding-right:.25rem!important}.padding--xs{padding:.25rem!important}.padding-bottom--sm,.padding-vert--sm{padding-bottom:.5rem!important}.padding-top--sm,.padding-vert--sm{padding-top:.5rem!important}.padding-horiz--sm,.padding-left--sm{padding-left:.5rem!important}.padding-horiz--sm,.padding-right--sm{padding-right:.5rem!important}.padding--sm{padding:.5rem!important}.padding-bottom--md,.padding-vert--md{padding-bottom:1rem!important}.padding-top--md,.padding-vert--md{padding-top:1rem!important}.padding-horiz--md,.padding-left--md{padding-left:1rem!important}.padding-horiz--md,.padding-right--md{padding-right:1rem!important}.padding--md{padding:1rem!important}.padding-bottom--lg,.padding-vert--lg{padding-bottom:2rem!important}.padding-top--lg,.padding-vert--lg{padding-top:2rem!important}.padding-horiz--lg,.padding-left--lg{padding-left:2rem!important}.padding-horiz--lg,.padding-right--lg{padding-right:2rem!important}.padding--lg{padding:2rem!important}.padding-bottom--xl,.padding-vert--xl{padding-bottom:5rem!important}.padding-top--xl,.padding-vert--xl{padding-top:5rem!important}.padding-horiz--xl,.padding-left--xl{padding-left:5rem!important}.padding-horiz--xl,.padding-right--xl{padding-right:5rem!important}.padding--xl{padding:5rem!important}code{background-color:var(--ifm-code-background);border:.1rem solid #0000001a;border-radius:var(--ifm-code-border-radius);font-family:var(--ifm-font-family-monospace);font-size:var(--ifm-code-font-size);padding:var(--ifm-code-padding-vertical) var(--ifm-code-padding-horizontal)}a code{color:inherit}pre{background-color:var(--ifm-pre-background);border-radius:var(--ifm-pre-border-radius);color:var(--ifm-pre-color);font:var(--ifm-code-font-size)/var(--ifm-pre-line-height) var(--ifm-font-family-monospace);padding:var(--ifm-pre-padding)}pre code{background-color:initial;border:none;font-size:100%;line-height:inherit;padding:0}kbd{background-color:var(--ifm-color-emphasis-0);border:1px solid var(--ifm-color-emphasis-400);border-radius:.2rem;box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-400);color:var(--ifm-color-emphasis-800);font:80% var(--ifm-font-family-monospace);padding:.15rem .3rem}h1,h2,h3,h4,h5,h6{color:var(--ifm-heading-color);font-family:var(--ifm-heading-font-family);font-weight:var(--ifm-heading-font-weight);line-height:var(--ifm-heading-line-height);margin:var(--ifm-heading-margin-top) 0 var(--ifm-heading-margin-bottom) 0}h1{font-size:var(--ifm-h1-font-size)}h2{font-size:var(--ifm-h2-font-size)}h3{font-size:var(--ifm-h3-font-size)}h4{font-size:var(--ifm-h4-font-size)}h5{font-size:var(--ifm-h5-font-size)}h6{font-size:var(--ifm-h6-font-size)}img{max-width:100%}img[align=right]{padding-left:var(--image-alignment-padding)}img[align=left]{padding-right:var(--image-alignment-padding)}.markdown{--ifm-h1-vertical-rhythm-top:3;--ifm-h2-vertical-rhythm-top:2;--ifm-h3-vertical-rhythm-top:1.5;--ifm-heading-vertical-rhythm-top:1.25;--ifm-h1-vertical-rhythm-bottom:1.25;--ifm-heading-vertical-rhythm-bottom:1}.markdown:after,.markdown:before{content:"";display:table}.markdown:after{clear:both}.markdown h1:first-child{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-h1-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown>h2{--ifm-h2-font-size:2rem;margin-top:calc(var(--ifm-h2-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h3{--ifm-h3-font-size:1.5rem;margin-top:calc(var(--ifm-h3-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h4,.markdown>h5,.markdown>h6{margin-top:calc(var(--ifm-heading-vertical-rhythm-top)*var(--ifm-leading))}.markdown>p,.markdown>pre,.markdown>ul,.tabList__CuJ{margin-bottom:var(--ifm-leading)}.markdown li>p{margin-top:var(--ifm-list-paragraph-margin)}.markdown li+li{margin-top:var(--ifm-list-item-margin)}ol,ul{margin:0 0 var(--ifm-list-margin);padding-left:var(--ifm-list-left-padding)}ol ol,ul ol{list-style-type:lower-roman}ol ol ol,ol ul ol,ul ol ol,ul ul ol{list-style-type:lower-alpha}table{border-collapse:collapse;display:block;margin-bottom:var(--ifm-spacing-vertical)}table thead tr{border-bottom:2px solid var(--ifm-table-border-color)}table thead,table tr:nth-child(2n){background-color:var(--ifm-table-stripe-background)}table tr{background-color:var(--ifm-table-background);border-top:var(--ifm-table-border-width) solid var(--ifm-table-border-color)}table td,table th{border:var(--ifm-table-border-width) solid var(--ifm-table-border-color);padding:var(--ifm-table-cell-padding)}table th{background-color:var(--ifm-table-head-background);color:var(--ifm-table-head-color);font-weight:var(--ifm-table-head-font-weight)}table td{color:var(--ifm-table-cell-color)}strong{font-weight:var(--ifm-font-weight-bold)}a{color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}a:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button:hover,.text--no-decoration,.text--no-decoration:hover,a:not([href]){text-decoration:none}p{margin:0 0 var(--ifm-paragraph-margin-bottom)}blockquote{border-left:var(--ifm-blockquote-border-left-width) solid var(--ifm-blockquote-border-color);box-shadow:var(--ifm-blockquote-shadow);color:var(--ifm-blockquote-color);font-size:var(--ifm-blockquote-font-size);padding:var(--ifm-blockquote-padding-vertical) var(--ifm-blockquote-padding-horizontal)}blockquote>:first-child{margin-top:0}blockquote>:last-child{margin-bottom:0}hr{background-color:var(--ifm-hr-background-color);border:0;height:var(--ifm-hr-height);margin:var(--ifm-hr-margin-vertical) 0}.shadow--lw{box-shadow:var(--ifm-global-shadow-lw)!important}.shadow--md{box-shadow:var(--ifm-global-shadow-md)!important}.shadow--tl{box-shadow:var(--ifm-global-shadow-tl)!important}.text--primary,.wordWrapButtonEnabled_EoeP .wordWrapButtonIcon_Bwma{color:var(--ifm-color-primary)}.text--secondary{color:var(--ifm-color-secondary)}.text--success{color:var(--ifm-color-success)}.text--info{color:var(--ifm-color-info)}.text--warning{color:var(--ifm-color-warning)}.text--danger{color:var(--ifm-color-danger)}.text--center{text-align:center}.text--left,details.history table thead th{text-align:left}.text--justify{text-align:justify}.text--right{text-align:right}.text--capitalize{text-transform:capitalize}.text--lowercase{text-transform:lowercase}.admonitionHeading_Gvgb,.alert__heading,.text--uppercase{text-transform:uppercase}.text--light{font-weight:var(--ifm-font-weight-light)}.text--normal{font-weight:var(--ifm-font-weight-normal)}.text--semibold{font-weight:var(--ifm-font-weight-semibold)}.text--bold{font-weight:var(--ifm-font-weight-bold)}.text--italic{font-style:italic}.text--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text--break{word-wrap:break-word!important;word-break:break-word!important}.clean-btn{background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;padding:0}.alert,.alert .close{color:var(--ifm-alert-foreground-color)}.clean-list{padding-left:0}.alert--primary{--ifm-alert-background-color:var(--ifm-color-primary-contrast-background);--ifm-alert-background-color-highlight:#3578e526;--ifm-alert-foreground-color:var(--ifm-color-primary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-primary-dark)}.alert--secondary{--ifm-alert-background-color:var(--ifm-color-secondary-contrast-background);--ifm-alert-background-color-highlight:#ebedf026;--ifm-alert-foreground-color:var(--ifm-color-secondary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-secondary-dark)}.alert--success{--ifm-alert-background-color:var(--ifm-color-success-contrast-background);--ifm-alert-background-color-highlight:#00a40026;--ifm-alert-foreground-color:var(--ifm-color-success-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-success-dark)}.alert--info{--ifm-alert-background-color:var(--ifm-color-info-contrast-background);--ifm-alert-background-color-highlight:#54c7ec26;--ifm-alert-foreground-color:var(--ifm-color-info-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-info-dark)}.alert--warning{--ifm-alert-background-color:var(--ifm-color-warning-contrast-background);--ifm-alert-background-color-highlight:#ffba0026;--ifm-alert-foreground-color:var(--ifm-color-warning-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-warning-dark)}.alert--danger{--ifm-alert-background-color:var(--ifm-color-danger-contrast-background);--ifm-alert-background-color-highlight:#fa383e26;--ifm-alert-foreground-color:var(--ifm-color-danger-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-danger-dark)}.alert{--ifm-code-background:var(--ifm-alert-background-color-highlight);--ifm-link-color:var(--ifm-alert-foreground-color);--ifm-link-hover-color:var(--ifm-alert-foreground-color);--ifm-link-decoration:underline;--ifm-tabs-color:var(--ifm-alert-foreground-color);--ifm-tabs-color-active:var(--ifm-alert-foreground-color);--ifm-tabs-color-active-border:var(--ifm-alert-border-color);background-color:var(--ifm-alert-background-color);border:var(--ifm-alert-border-width) solid var(--ifm-alert-border-color);border-left-width:var(--ifm-alert-border-left-width);border-radius:var(--ifm-alert-border-radius);box-shadow:var(--ifm-alert-shadow);padding:var(--ifm-alert-padding-vertical) var(--ifm-alert-padding-horizontal)}.alert__heading{align-items:center;display:flex;font:700 var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.5rem}.alert__icon{display:inline-flex;margin-right:.4em}.alert__icon svg{fill:var(--ifm-alert-foreground-color);stroke:var(--ifm-alert-foreground-color);stroke-width:0}.alert .close{margin:calc(var(--ifm-alert-padding-vertical)*-1) calc(var(--ifm-alert-padding-horizontal)*-1) 0 0;opacity:.75}.alert .close:focus,.alert .close:hover{opacity:1}.alert a{text-decoration-color:var(--ifm-alert-border-color)}.alert a:hover{text-decoration-thickness:2px}.avatar{column-gap:var(--ifm-avatar-intro-margin);display:flex}.avatar__photo{border-radius:50%;display:block;height:var(--ifm-avatar-photo-size);overflow:hidden;width:var(--ifm-avatar-photo-size)}.card--full-height,.navbar__logo img,body,html{height:100%}.avatar__photo--sm{--ifm-avatar-photo-size:2rem}.avatar__photo--lg{--ifm-avatar-photo-size:4rem}.avatar__photo--xl{--ifm-avatar-photo-size:6rem}.avatar__intro{display:flex;flex:1 1;flex-direction:column;justify-content:center;text-align:var(--ifm-avatar-intro-alignment)}.badge,.breadcrumbs__item,.breadcrumbs__link,.button,.dropdown>.navbar__link:after,.searchBarContainer_NW3z.searchIndexLoading_EJ1f .searchBarLoadingRing_YnHq{display:inline-block}.avatar__name{font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base)}.avatar__subtitle{margin-top:.25rem}.avatar--vertical{--ifm-avatar-intro-alignment:center;--ifm-avatar-intro-margin:0.5rem;align-items:center;flex-direction:column}.badge{background-color:var(--ifm-badge-background-color);border:var(--ifm-badge-border-width) solid var(--ifm-badge-border-color);border-radius:var(--ifm-badge-border-radius);color:var(--ifm-badge-color);font-size:75%;font-weight:var(--ifm-font-weight-bold);line-height:1;padding:var(--ifm-badge-padding-vertical) var(--ifm-badge-padding-horizontal)}.badge--primary{--ifm-badge-background-color:var(--ifm-color-primary)}.badge--secondary{--ifm-badge-background-color:var(--ifm-color-secondary);color:var(--ifm-color-black)}.breadcrumbs__link,.button.button--secondary.button--outline:not(.button--active):not(:hover){color:var(--ifm-font-color-base)}.badge--success{--ifm-badge-background-color:var(--ifm-color-success)}.badge--info{--ifm-badge-background-color:var(--ifm-color-info)}.badge--warning{--ifm-badge-background-color:var(--ifm-color-warning)}.badge--danger{--ifm-badge-background-color:var(--ifm-color-danger)}.breadcrumbs{margin-bottom:0;padding-left:0}.breadcrumbs__item:not(:last-child):after{background:var(--ifm-breadcrumb-separator) center;content:" ";display:inline-block;filter:var(--ifm-breadcrumb-separator-filter);height:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier));margin:0 var(--ifm-breadcrumb-spacing);opacity:.5;width:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier))}.breadcrumbs__item--active .breadcrumbs__link{background:var(--ifm-breadcrumb-item-background-active);color:var(--ifm-breadcrumb-color-active)}.breadcrumbs__link{border-radius:var(--ifm-breadcrumb-border-radius);font-size:calc(1rem*var(--ifm-breadcrumb-size-multiplier));padding:calc(var(--ifm-breadcrumb-padding-vertical)*var(--ifm-breadcrumb-size-multiplier)) calc(var(--ifm-breadcrumb-padding-horizontal)*var(--ifm-breadcrumb-size-multiplier));transition-duration:var(--ifm-transition-fast);transition-property:background,color}.breadcrumbs__link:any-link:hover,.breadcrumbs__link:link:hover,.breadcrumbs__link:visited:hover,area[href].breadcrumbs__link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs--sm{--ifm-breadcrumb-size-multiplier:0.8}.breadcrumbs--lg{--ifm-breadcrumb-size-multiplier:1.2}.button{background-color:var(--ifm-button-background-color);border:var(--ifm-button-border-width) solid var(--ifm-button-border-color);border-radius:var(--ifm-button-border-radius);cursor:pointer;font-size:calc(.875rem*var(--ifm-button-size-multiplier));font-weight:var(--ifm-button-font-weight);line-height:1.5;padding:calc(var(--ifm-button-padding-vertical)*var(--ifm-button-size-multiplier)) calc(var(--ifm-button-padding-horizontal)*var(--ifm-button-size-multiplier));text-align:center;transition-duration:var(--ifm-button-transition-duration);transition-property:color,background,border-color;-webkit-user-select:none;user-select:none;white-space:nowrap}.button,.button:hover{color:var(--ifm-button-color)}.button--outline{--ifm-button-color:var(--ifm-button-border-color)}.button--outline:hover{--ifm-button-background-color:var(--ifm-button-border-color)}.button--link{--ifm-button-border-color:#0000;color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}.button--link.button--active,.button--link:active,.button--link:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button.disabled,.button:disabled,.button[disabled]{opacity:.65;pointer-events:none}.button--sm{--ifm-button-size-multiplier:0.8}.button--lg{--ifm-button-size-multiplier:1.35}.button--block{display:block;width:100%}.button.button--secondary{color:var(--ifm-color-gray-900)}:where(.button--primary){--ifm-button-background-color:var(--ifm-color-primary);--ifm-button-border-color:var(--ifm-color-primary)}:where(.button--primary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-primary-dark);--ifm-button-border-color:var(--ifm-color-primary-dark)}.button--primary.button--active,.button--primary:active{--ifm-button-background-color:var(--ifm-color-primary-darker);--ifm-button-border-color:var(--ifm-color-primary-darker)}:where(.button--secondary){--ifm-button-background-color:var(--ifm-color-secondary);--ifm-button-border-color:var(--ifm-color-secondary)}:where(.button--secondary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-secondary-dark);--ifm-button-border-color:var(--ifm-color-secondary-dark)}.button--secondary.button--active,.button--secondary:active{--ifm-button-background-color:var(--ifm-color-secondary-darker);--ifm-button-border-color:var(--ifm-color-secondary-darker)}:where(.button--success){--ifm-button-background-color:var(--ifm-color-success);--ifm-button-border-color:var(--ifm-color-success)}:where(.button--success):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-success-dark);--ifm-button-border-color:var(--ifm-color-success-dark)}.button--success.button--active,.button--success:active{--ifm-button-background-color:var(--ifm-color-success-darker);--ifm-button-border-color:var(--ifm-color-success-darker)}:where(.button--info){--ifm-button-background-color:var(--ifm-color-info);--ifm-button-border-color:var(--ifm-color-info)}:where(.button--info):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-info-dark);--ifm-button-border-color:var(--ifm-color-info-dark)}.button--info.button--active,.button--info:active{--ifm-button-background-color:var(--ifm-color-info-darker);--ifm-button-border-color:var(--ifm-color-info-darker)}:where(.button--warning){--ifm-button-background-color:var(--ifm-color-warning);--ifm-button-border-color:var(--ifm-color-warning)}:where(.button--warning):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-warning-dark);--ifm-button-border-color:var(--ifm-color-warning-dark)}.button--warning.button--active,.button--warning:active{--ifm-button-background-color:var(--ifm-color-warning-darker);--ifm-button-border-color:var(--ifm-color-warning-darker)}:where(.button--danger){--ifm-button-background-color:var(--ifm-color-danger);--ifm-button-border-color:var(--ifm-color-danger)}:where(.button--danger):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-danger-dark);--ifm-button-border-color:var(--ifm-color-danger-dark)}.button--danger.button--active,.button--danger:active{--ifm-button-background-color:var(--ifm-color-danger-darker);--ifm-button-border-color:var(--ifm-color-danger-darker)}.button-group{display:inline-flex;gap:var(--ifm-button-group-spacing)}.button-group>.button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.button-group>.button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.button-group--block{display:flex;justify-content:stretch}.button-group--block>.button{flex-grow:1}.card{background-color:var(--ifm-card-background-color);border-radius:var(--ifm-card-border-radius);box-shadow:var(--ifm-global-shadow-lw);display:flex;flex-direction:column;overflow:hidden}.card__image{padding-top:var(--ifm-card-vertical-spacing)}.card__image:first-child{padding-top:0}.card__body,.card__footer,.card__header{padding:var(--ifm-card-vertical-spacing) var(--ifm-card-horizontal-spacing)}.card__body:not(:last-child),.card__footer:not(:last-child),.card__header:not(:last-child){padding-bottom:0}.card__body>:last-child,.card__footer>:last-child,.card__header>:last-child{margin-bottom:0}.card__footer{margin-top:auto}.table-of-contents{font-size:.8rem;margin-bottom:0;padding:var(--ifm-toc-padding-vertical) 0}.table-of-contents,.table-of-contents ul{list-style:none;padding-left:var(--ifm-toc-padding-horizontal)}.table-of-contents li{margin:var(--ifm-toc-padding-vertical) var(--ifm-toc-padding-horizontal)}.table-of-contents__left-border{border-left:1px solid var(--ifm-toc-border-color)}.table-of-contents__link{color:var(--ifm-toc-link-color);display:block}.table-of-contents__link--active,.table-of-contents__link--active code,.table-of-contents__link:hover,.table-of-contents__link:hover code{color:var(--ifm-color-primary);text-decoration:none}.content_knG7 a,.hitFooter_E9YW a,.suggestion_fB_2.cursor_eG29 mark{text-decoration:underline}.close{color:var(--ifm-color-black);float:right;font-size:1.5rem;font-weight:var(--ifm-font-weight-bold);line-height:1;opacity:.5;padding:1rem;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.close:hover{opacity:.7}.close:focus,.theme-code-block-highlighted-line .codeLineNumber_Tfdd:before{opacity:.8}.dropdown{display:inline-flex;font-weight:var(--ifm-dropdown-font-weight);position:relative;vertical-align:top}.dropdown--hoverable:hover .dropdown__menu,.dropdown--show .dropdown__menu{opacity:1;pointer-events:all;transform:translateY(-1px);visibility:visible}.dropdown--right .dropdown__menu{left:inherit;right:0}.dropdown--nocaret .navbar__link:after{content:none!important}.dropdown__menu{background-color:var(--ifm-dropdown-background-color);border-radius:var(--ifm-global-radius);box-shadow:var(--ifm-global-shadow-md);left:0;max-height:80vh;min-width:10rem;opacity:0;overflow-y:auto;padding:.5rem;pointer-events:none;position:absolute;top:calc(100% - var(--ifm-navbar-item-padding-vertical) + .3rem);transform:translateY(-.625rem);transition-duration:var(--ifm-transition-fast);transition-property:opacity,transform,visibility;transition-timing-function:var(--ifm-transition-timing-default);visibility:hidden;z-index:var(--ifm-z-index-dropdown)}.menu__caret,.menu__link,.menu__list-item-collapsible{border-radius:.25rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.dropdown__link{border-radius:.25rem;color:var(--ifm-dropdown-link-color);display:block;font-size:.875rem;margin-top:.2rem;padding:.25rem .5rem;white-space:nowrap}.dropdown__link--active,.dropdown__link:hover{background-color:var(--ifm-dropdown-hover-background-color);color:var(--ifm-dropdown-link-color);text-decoration:none}.dropdown__link--active,.dropdown__link--active:hover{--ifm-dropdown-link-color:var(--ifm-link-color)}.dropdown>.navbar__link:after{border-color:currentcolor #0000;border-style:solid;border-width:.4em .4em 0;content:"";margin-left:.3em;position:relative;top:2px;transform:translateY(-50%)}.footer{background-color:var(--ifm-footer-background-color);color:var(--ifm-footer-color);padding:var(--ifm-footer-padding-vertical) var(--ifm-footer-padding-horizontal)}.footer--dark{--ifm-footer-background-color:#303846;--ifm-footer-color:var(--ifm-footer-link-color);--ifm-footer-link-color:var(--ifm-color-secondary);--ifm-footer-title-color:var(--ifm-color-white)}.footer__links{margin-bottom:1rem}.footer__link-item{color:var(--ifm-footer-link-color);line-height:2}.footer__link-item:hover{color:var(--ifm-footer-link-hover-color)}.footer__link-separator{margin:0 var(--ifm-footer-link-horizontal-spacing)}.footer__logo{margin-top:1rem;max-width:var(--ifm-footer-logo-max-width)}.footer__title{color:var(--ifm-footer-title-color);font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base);margin-bottom:var(--ifm-heading-margin-bottom)}.menu,.navbar__link{font-weight:var(--ifm-font-weight-semibold)}.docItemContainer_Djhp article>:first-child,.docItemContainer_Djhp header+*,.footer__item{margin-top:0}.admonitionContent_BuS1>:last-child,.collapsibleContent_i85q p:last-child,.details_lb9f>summary>p:last-child,.footer__items,.searchResultItem_U687>h2,.tabItem_Ymn6>:last-child{margin-bottom:0}.codeBlockStandalone_MEMb,[type=checkbox]{padding:0}.hero{align-items:center;background-color:var(--ifm-hero-background-color);color:var(--ifm-hero-text-color);display:flex;padding:4rem 2rem}.hero--primary{--ifm-hero-background-color:var(--ifm-color-primary);--ifm-hero-text-color:var(--ifm-font-color-base-inverse)}.hero--dark{--ifm-hero-background-color:#303846;--ifm-hero-text-color:var(--ifm-color-white)}.hero__title{font-size:3rem}.hero__subtitle{font-size:1.5rem}.menu__list{margin:0;padding-left:0}.menu__caret,.menu__link{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu__list .menu__list{flex:0 0 100%;margin-top:.25rem;padding-left:var(--ifm-menu-link-padding-horizontal)}.menu__list-item:not(:first-child){margin-top:.25rem}.menu__list-item--collapsed .menu__list{height:0;overflow:hidden}.details_lb9f[data-collapsed=false].isBrowser_bmU9>summary:before,.details_lb9f[open]:not(.isBrowser_bmU9)>summary:before,.menu__list-item--collapsed .menu__caret:before,.menu__list-item--collapsed .menu__link--sublist:after{transform:rotate(90deg)}.menu__list-item-collapsible{display:flex;flex-wrap:wrap;position:relative}.menu__caret:hover,.menu__link:hover,.menu__list-item-collapsible--active,.menu__list-item-collapsible:hover{background:var(--ifm-menu-color-background-hover)}.menu__list-item-collapsible .menu__link--active,.menu__list-item-collapsible .menu__link:hover{background:none!important}.menu__caret,.menu__link{align-items:center;display:flex}.navbar-sidebar,.navbar-sidebar__backdrop{bottom:0;opacity:0;transition-duration:var(--ifm-transition-fast);transition-timing-function:ease-in-out;left:0;top:0;visibility:hidden}.menu__link{color:var(--ifm-menu-color);flex:1;line-height:1.25}.menu__link:hover{color:var(--ifm-menu-color);text-decoration:none}.menu__caret:before,.menu__link--sublist-caret:after{content:"";transform:rotate(180deg);transition:transform var(--ifm-transition-fast) linear;height:1.25rem;width:1.25rem;filter:var(--ifm-menu-link-sublist-icon-filter)}.menu__link--sublist-caret:after{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem;margin-left:auto;min-width:1.25rem}.menu__link--active,.menu__link--active:hover{color:var(--ifm-menu-color-active)}.navbar__brand,.navbar__link{color:var(--ifm-navbar-link-color)}.menu__link--active:not(.menu__link--sublist){background-color:var(--ifm-menu-color-background-active)}.menu__caret:before{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem}.navbar--dark,html[data-theme=dark]{--ifm-menu-link-sublist-icon-filter:invert(100%) sepia(94%) saturate(17%) hue-rotate(223deg) brightness(104%) contrast(98%)}.navbar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-navbar-shadow);height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar,.navbar>.container,.navbar>.container-fluid{display:flex}.navbar--fixed-top{position:sticky;top:0;z-index:var(--ifm-z-index-fixed)}.navbar__inner{display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.navbar__brand{align-items:center;display:flex;min-width:0}.navbar__brand:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.announcementBarContent_xLdY,.navbar__title{flex:1 1 auto}.navbar__toggle{display:none;margin-right:.5rem}.navbar__logo{flex:0 0 auto;height:2rem;margin-right:.5rem}.navbar__items{align-items:center;display:flex;flex:1;min-width:0}.navbar__items--center{flex:0 0 auto}.navbar__items--center .navbar__brand{margin:0}.navbar__items--center+.navbar__items--right{flex:1}.navbar__items--right{flex:0 0 auto;justify-content:flex-end}.navbar__items--right>:last-child{padding-right:0}.navbar__item{display:inline-block;padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}#nprogress,.navbar__item.dropdown .navbar__link:not([href]){pointer-events:none}.navbar__link--active,.navbar__link:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.navbar--dark,.navbar--primary{--ifm-menu-color:var(--ifm-color-gray-300);--ifm-navbar-link-color:var(--ifm-color-gray-100);--ifm-navbar-search-input-background-color:#ffffff1a;--ifm-navbar-search-input-placeholder-color:#ffffff80;color:var(--ifm-color-white)}.navbar--dark{--ifm-navbar-background-color:#242526;--ifm-menu-color-background-active:#ffffff0d;--ifm-navbar-search-input-color:var(--ifm-color-white)}.navbar--primary{--ifm-navbar-background-color:var(--ifm-color-primary);--ifm-navbar-link-hover-color:var(--ifm-color-white);--ifm-menu-color-active:var(--ifm-color-white);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-500)}.navbar__search-input{-webkit-appearance:none;appearance:none;background:var(--ifm-navbar-search-input-background-color) var(--ifm-navbar-search-input-icon) no-repeat .75rem center/1rem 1rem;border:none;border-radius:2rem;color:var(--ifm-navbar-search-input-color);cursor:text;display:inline-block;font-size:.9rem;height:2rem;padding:0 .5rem 0 2.25rem;width:12.5rem}.navbar__search-input::placeholder{color:var(--ifm-navbar-search-input-placeholder-color)}.navbar-sidebar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-global-shadow-md);position:fixed;transform:translate3d(-100%,0,0);transition-property:opacity,visibility,transform;width:var(--ifm-navbar-sidebar-width)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar__items{transform:translateZ(0)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar--show .navbar-sidebar__backdrop{opacity:1;visibility:visible}.navbar-sidebar__backdrop{background-color:#0009;position:fixed;right:0;transition-property:opacity,visibility}.navbar-sidebar__brand{align-items:center;box-shadow:var(--ifm-navbar-shadow);display:flex;flex:1;height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar-sidebar__items{display:flex;height:calc(100% - var(--ifm-navbar-height));transition:transform var(--ifm-transition-fast) ease-in-out}.navbar-sidebar__items--show-secondary{transform:translate3d(calc((var(--ifm-navbar-sidebar-width))*-1),0,0)}.navbar-sidebar__item{flex-shrink:0;padding:.5rem;width:calc(var(--ifm-navbar-sidebar-width))}.navbar-sidebar__back{background:var(--ifm-menu-color-background-active);font-size:15px;font-weight:var(--ifm-button-font-weight);margin:0 0 .2rem -.5rem;padding:.6rem 1.5rem;position:relative;text-align:left;top:-.5rem;width:calc(100% + 1rem)}.navbar-sidebar__close{display:flex;margin-left:auto}.pagination{column-gap:var(--ifm-pagination-page-spacing);display:flex;font-size:var(--ifm-pagination-font-size);padding-left:0}.pagination--sm{--ifm-pagination-font-size:0.8rem;--ifm-pagination-padding-horizontal:0.8rem;--ifm-pagination-padding-vertical:0.2rem}.pagination--lg{--ifm-pagination-font-size:1.2rem;--ifm-pagination-padding-horizontal:1.2rem;--ifm-pagination-padding-vertical:0.3rem}.pagination__item{display:inline-flex}.pagination__item>span{padding:var(--ifm-pagination-padding-vertical)}.pagination__item--active .pagination__link{color:var(--ifm-pagination-color-active)}.pagination__item--active .pagination__link,.pagination__item:not(.pagination__item--active):hover .pagination__link{background:var(--ifm-pagination-item-active-background)}.pagination__item--disabled,.pagination__item[disabled]{opacity:.25;pointer-events:none}.pagination__link{border-radius:var(--ifm-pagination-border-radius);color:var(--ifm-font-color-base);display:inline-block;padding:var(--ifm-pagination-padding-vertical) var(--ifm-pagination-padding-horizontal);transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination__link:hover{text-decoration:none}.pagination-nav{grid-gap:var(--ifm-spacing-horizontal);display:grid;gap:var(--ifm-spacing-horizontal);grid-template-columns:repeat(2,1fr)}.pagination-nav__link{border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-pagination-nav-border-radius);display:block;height:100%;line-height:var(--ifm-heading-line-height);padding:var(--ifm-global-spacing);transition:border-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination-nav__link:hover{border-color:var(--ifm-pagination-nav-color-hover);text-decoration:none}.pagination-nav__link--next{grid-column:2/3;text-align:right}.pagination-nav__label{font-size:var(--ifm-h4-font-size);font-weight:var(--ifm-heading-font-weight);word-break:break-word}.pagination-nav__link--prev .pagination-nav__label:before{content:"« "}.pagination-nav__link--next .pagination-nav__label:after{content:" »"}.pagination-nav__sublabel{color:var(--ifm-color-content-secondary);font-size:var(--ifm-h5-font-size);font-weight:var(--ifm-font-weight-semibold);margin-bottom:.25rem}.pills__item,.tabs{font-weight:var(--ifm-font-weight-bold)}.pills{display:flex;gap:var(--ifm-pills-spacing);padding-left:0}.pills__item{border-radius:.5rem;cursor:pointer;display:inline-block;padding:.25rem 1rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs,:not(.containsTaskList_mC6p>li)>.containsTaskList_mC6p{padding-left:0}.pills__item--active{color:var(--ifm-pills-color-active)}.pills__item--active,.pills__item:not(.pills__item--active):hover{background:var(--ifm-pills-color-background-active)}.pills--block{justify-content:stretch}.pills--block .pills__item{flex-grow:1;text-align:center}.tabs{color:var(--ifm-tabs-color);display:flex;margin-bottom:0;overflow-x:auto}.tabs__item{border-bottom:3px solid #0000;border-radius:var(--ifm-global-radius);cursor:pointer;display:inline-flex;padding:var(--ifm-tabs-padding-vertical) var(--ifm-tabs-padding-horizontal);transition:background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs__item--active{border-bottom-color:var(--ifm-tabs-color-active-border);border-bottom-left-radius:0;border-bottom-right-radius:0;color:var(--ifm-tabs-color-active)}.tabs__item:hover{background-color:var(--ifm-hover-overlay)}.tabs--block{justify-content:stretch}.tabs--block .tabs__item{flex-grow:1;justify-content:center}html[data-theme=dark]{--ifm-color-scheme:dark;--ifm-color-emphasis-0:var(--ifm-color-gray-1000);--ifm-color-emphasis-100:var(--ifm-color-gray-900);--ifm-color-emphasis-200:var(--ifm-color-gray-800);--ifm-color-emphasis-300:var(--ifm-color-gray-700);--ifm-color-emphasis-400:var(--ifm-color-gray-600);--ifm-color-emphasis-600:var(--ifm-color-gray-400);--ifm-color-emphasis-700:var(--ifm-color-gray-300);--ifm-color-emphasis-800:var(--ifm-color-gray-200);--ifm-color-emphasis-900:var(--ifm-color-gray-100);--ifm-color-emphasis-1000:var(--ifm-color-gray-0);--ifm-background-color:#1b1b1d;--ifm-background-surface-color:#242526;--ifm-hover-overlay:#ffffff0d;--ifm-color-content:#e3e3e3;--ifm-color-content-secondary:#fff;--ifm-breadcrumb-separator-filter:invert(64%) sepia(11%) saturate(0%) hue-rotate(149deg) brightness(99%) contrast(95%);--ifm-code-background:#ffffff1a;--ifm-scrollbar-track-background-color:#444;--ifm-scrollbar-thumb-background-color:#686868;--ifm-scrollbar-thumb-hover-background-color:#7a7a7a;--ifm-table-stripe-background:#ffffff12;--ifm-toc-border-color:var(--ifm-color-emphasis-200);--ifm-color-primary-contrast-background:#102445;--ifm-color-primary-contrast-foreground:#ebf2fc;--ifm-color-secondary-contrast-background:#474748;--ifm-color-secondary-contrast-foreground:#fdfdfe;--ifm-color-success-contrast-background:#003100;--ifm-color-success-contrast-foreground:#e6f6e6;--ifm-color-info-contrast-background:#193c47;--ifm-color-info-contrast-foreground:#eef9fd;--ifm-color-warning-contrast-background:#4d3800;--ifm-color-warning-contrast-foreground:#fff8e6;--ifm-color-danger-contrast-background:#4b1113;--ifm-color-danger-contrast-foreground:#ffebec}#nprogress .bar{background:var(--docusaurus-progress-bar-color);height:2px;left:0;position:fixed;top:0;width:100%;z-index:1031}#nprogress .peg{box-shadow:0 0 10px var(--docusaurus-progress-bar-color),0 0 5px var(--docusaurus-progress-bar-color);height:100%;opacity:1;position:absolute;right:0;transform:rotate(3deg) translateY(-4px);width:100px}[data-theme=dark]{--ifm-color-primary:#7a77ff;--ifm-color-primary-dark:#5552ff;--ifm-color-primary-darker:#433fff;--ifm-color-primary-darkest:#0c07ff;--ifm-color-primary-light:#9f9cff;--ifm-color-primary-lighter:#b1afff;--ifm-color-primary-lightest:#b1afff;--docusaurus-highlighted-code-line-bg:#0c0d152b;--ifm-table-stripe-background:#5e30a0!important;--ifm-table-background:#0000!important}[data-theme=light] code[class*=language-],[data-theme=light] pre[class*=language-]{background-color:#f9fafb!important}[data-theme=light] code[class*=language-] .token.comment,[data-theme=light] pre[class*=language-] .token.comment{color:#6e7781!important}[data-theme=light] code[class*=language-] .token.string,[data-theme=light] pre[class*=language-] .token.string{color:#0a3069!important}[data-theme=light] code[class*=language-] .token.keyword,[data-theme=light] pre[class*=language-] .token.keyword{color:#cf222e!important}[data-theme=light] code[class*=language-] .token.method,[data-theme=light] pre[class*=language-] .token.method{color:#6639ba!important}[data-theme=light] code[class*=language-] .token.number,[data-theme=light] code[class*=language-] .token.property,[data-theme=light] pre[class*=language-] .token.number,[data-theme=light] pre[class*=language-] .token.property{color:#0550ae!important}code[class*=language-],pre[class*=language-]{font-size:.85em}code[class*=language-] .token.comment,pre[class*=language-] .token.comment{font-size:.9em;font-style:normal!important}.navbar__brand{margin-right:0}.navbar__manual--title{font-weight:700;margin-right:1rem;padding:0}#__docusaurus-base-url-issue-banner-container,.docSidebarContainer_YfHR,.hideAction_vcyE>svg,.navbar.navbar--fixed-top .navbar__item.dropdown.dropdown--hoverable svg,.sidebarLogo_isFc,.themedComponent_mlkZ,[data-theme=dark] .lightToggleIcon_pyhR,[data-theme=light] .darkToggleIcon_wfgR,html[data-announcement-bar-initially-dismissed=true] .announcementBar_mb4j{display:none}[title="svg{height:var(--search-local-hit-height,56px);opacity:.5;width:24px}.hitIcon_a7Zy,.hitTree_kk6K>svg{stroke-width:var(--search-local-icon-stroke-width,1.4)}.hitAction_NqkB,.hitIcon_a7Zy{height:20px;width:20px}.hitWrapper_sAK8{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;margin:0 8px;overflow-x:hidden;width:80%}.hitWrapper_sAK8 mark{background:none;color:var(--search-local-highlight-color,var(--ifm-color-primary))}.hitTitle_vyVt{font-size:.9em}.hitPath_ieM4{font-size:.75em}.hitPath_ieM4,.hitTitle_vyVt{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.noResults_l6Q3{flex-direction:column;justify-content:center;padding:var(--search-local-spacing,12px) 0}.noResultsIcon_EBY5{margin-bottom:var(--search-local-spacing,12px)}.hitFooter_E9YW{font-size:.85em;margin-top:var(--search-local-spacing,12px);text-align:center}.cursor_eG29 .hideAction_vcyE>svg,.tocCollapsibleContent_vkbj a{display:block}.suggestion_fB_2.cursor_eG29,.suggestion_fB_2.cursor_eG29 .hitIcon_a7Zy,.suggestion_fB_2.cursor_eG29 .hitPath_ieM4,.suggestion_fB_2.cursor_eG29 .hitTree_kk6K,.suggestion_fB_2.cursor_eG29 mark{color:var(--search-local-hit-active-color,var(--ifm-color-white))!important}.searchBarContainer_NW3z{margin-left:16px}.searchBarContainer_NW3z .searchBarLoadingRing_YnHq{display:none;left:10px;position:absolute;top:6px}.searchBarContainer_NW3z .searchClearButton_qk4g{background:none;border:none;line-height:1rem;padding:0;position:absolute;right:.8rem;top:50%;transform:translateY(-50%)}.navbar__search{position:relative}.searchIndexLoading_EJ1f .navbar__search-input{background-image:none}.searchHintContainer_Pkmr{align-items:center;display:flex;gap:4px;height:100%;justify-content:center;pointer-events:none;position:absolute;right:10px;top:0}.searchHint_iIMx{background-color:var(--ifm-navbar-search-input-background-color);border:1px solid var(--ifm-color-emphasis-500);box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-500);color:var(--ifm-navbar-search-input-placeholder-color)}.loadingRing_RJI3{display:inline-block;height:20px;opacity:var(--search-local-loading-icon-opacity,.5);position:relative;width:20px}.loadingRing_RJI3 div{animation:1.2s cubic-bezier(.5,0,.5,1) infinite b;border:2px solid var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color));border-color:var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color)) #0000 #0000 #0000;border-radius:50%;display:block;height:16px;margin:2px;position:absolute;width:16px}.loadingRing_RJI3 div:first-child{animation-delay:-.45s}.loadingRing_RJI3 div:nth-child(2){animation-delay:-.3s}.loadingRing_RJI3 div:nth-child(3){animation-delay:-.15s}@keyframes b{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@supports selector(:has(*)){.navbarSearchContainer_Bca1:not(:has(>*)){display:none}}.navbarHideable_m1mJ{transition:transform var(--ifm-transition-fast) ease}.navbarHidden_jGov{transform:translate3d(0,calc(-100% - 2px),0)}.errorBoundaryError_a6uf{color:red;white-space:pre-wrap}.errorBoundaryFallback_VBag{color:red;padding:.55rem}.footerLogoLink_BH7S{opacity:.5;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.footerLogoLink_BH7S:hover,.hash-link:focus,:hover>.hash-link{opacity:1}.anchorWithStickyNavbar_LWe7{scroll-margin-top:calc(var(--ifm-navbar-height) + .5rem)}.anchorWithHideOnScrollNavbar_WYt5{scroll-margin-top:.5rem}.hash-link{opacity:0;padding-left:.5rem;transition:opacity var(--ifm-transition-fast);-webkit-user-select:none;user-select:none}.hash-link:before{content:"#"}.mainWrapper_z2l0{display:flex;flex:1 0 auto;flex-direction:column}.docusaurus-mt-lg{margin-top:3rem}#__docusaurus{display:flex;flex-direction:column;min-height:100%}.iconEdit_Z9Sw{margin-right:.3em;vertical-align:sub}.tag_zVej{border:1px solid var(--docusaurus-tag-list-border);transition:border var(--ifm-transition-fast)}.tag_zVej:hover{--docusaurus-tag-list-border:var(--ifm-link-color);text-decoration:none}.tagRegular_sFm0{border-radius:var(--ifm-global-radius);font-size:90%;padding:.2rem .5rem .3rem}.tagWithCount_h2kH{align-items:center;border-left:0;display:flex;padding:0 .5rem 0 1rem;position:relative}.tagWithCount_h2kH:after,.tagWithCount_h2kH:before{border:1px solid var(--docusaurus-tag-list-border);content:"";position:absolute;top:50%;transition:inherit}.tagWithCount_h2kH:before{border-bottom:0;border-right:0;height:1.18rem;right:100%;transform:translate(50%,-50%) rotate(-45deg);width:1.18rem}.tagWithCount_h2kH:after{border-radius:50%;height:.5rem;left:0;transform:translateY(-50%);width:.5rem}.tagWithCount_h2kH span{background:var(--ifm-color-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-color-black);font-size:.7rem;line-height:1.2;margin-left:.3rem;padding:.1rem .4rem}.tags_jXut{display:inline}.tag_QGVx{display:inline-block;margin:0 .4rem .5rem 0}.lastUpdated_vwxv{font-size:smaller;font-style:italic;margin-top:.2rem}.tocCollapsibleButton_TO0P{align-items:center;display:flex;font-size:inherit;justify-content:space-between;padding:.4rem .8rem;width:100%}.tocCollapsibleButton_TO0P:after{background:var(--ifm-menu-link-sublist-icon) 50% 50%/2rem 2rem no-repeat;content:"";filter:var(--ifm-menu-link-sublist-icon-filter);height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast);width:1.25rem}.tocCollapsibleButtonExpanded_MG3E:after,.tocCollapsibleExpanded_sAul{transform:none}.tocCollapsible_ETCw{background-color:var(--ifm-menu-color-background-active);border-radius:var(--ifm-global-radius);margin:1rem 0}.tocCollapsibleContent_vkbj>ul{border-left:none;border-top:1px solid var(--ifm-color-emphasis-300);font-size:15px;padding:.2rem 0}.tocCollapsibleContent_vkbj ul li{margin:.4rem .8rem}.tableOfContents_bqdL{max-height:calc(100vh - var(--ifm-navbar-height) - 2rem);overflow-y:auto;position:sticky;top:calc(var(--ifm-navbar-height) + 1rem)}.searchContextInput_mXoe,.searchQueryInput_CFBF{background:var(--ifm-background-color);border:var(--ifm-global-border-width) solid var(--ifm-color-content-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-font-color-base);font-size:var(--ifm-font-size-base);margin-bottom:1rem;padding:.5rem;width:100%}.searchResultItem_U687{border-bottom:1px solid #dfe3e8;padding:1rem 0}.searchResultItemPath_uIbk{color:var(--ifm-color-content-secondary);font-size:.8rem;margin:.5rem 0 0}.searchResultItemSummary_oZHr{font-style:italic;margin:.5rem 0 0}.tag_Nnez{display:inline-block;margin:.5rem .5rem 0 1rem}.backToTopButton_sjWU{background-color:var(--ifm-color-emphasis-200);border-radius:50%;bottom:1.3rem;box-shadow:var(--ifm-global-shadow-lw);height:3rem;opacity:0;position:fixed;right:1.3rem;transform:scale(0);transition:all var(--ifm-transition-fast) var(--ifm-transition-timing-default);visibility:hidden;width:3rem;z-index:calc(var(--ifm-z-index-fixed) - 1)}.buttonGroup__atx button,.codeBlockContainer_Ckt0{background:var(--prism-background-color);color:var(--prism-color)}.backToTopButton_sjWU:after{background-color:var(--ifm-color-emphasis-1000);content:" ";display:inline-block;height:100%;-webkit-mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;width:100%}.backToTopButtonShow_xfvO{opacity:1;transform:scale(1);visibility:visible}[data-theme=dark]:root{--docusaurus-collapse-button-bg:#ffffff0d;--docusaurus-collapse-button-bg-hover:#ffffff1a}.collapseSidebarButton_PEFL{display:none;margin:0}.docMainContainer_TBSr,.docRoot_UBD9{display:flex;width:100%}.docsWrapper_hBAB{display:flex;flex:1 0 auto}.codeBlockContainer_Ckt0{border-radius:var(--ifm-code-border-radius);box-shadow:var(--ifm-global-shadow-lw);margin-bottom:var(--ifm-leading)}.codeBlockContent_biex{border-radius:inherit;direction:ltr;position:relative}.codeBlockTitle_Ktv7{border-bottom:1px solid var(--ifm-color-emphasis-300);border-top-left-radius:inherit;border-top-right-radius:inherit;font-size:var(--ifm-code-font-size);font-weight:500;padding:.75rem var(--ifm-pre-padding)}.codeBlock_bY9V{--ifm-pre-background:var(--prism-background-color);margin:0;padding:0}.codeBlockTitle_Ktv7+.codeBlockContent_biex .codeBlock_bY9V{border-top-left-radius:0;border-top-right-radius:0}.codeBlockLines_e6Vv{float:left;font:inherit;min-width:100%;padding:var(--ifm-pre-padding)}.codeBlockLinesWithNumbering_o6Pm{display:table;padding:var(--ifm-pre-padding) 0}.buttonGroup__atx{column-gap:.2rem;display:flex;position:absolute;right:calc(var(--ifm-pre-padding)/2);top:calc(var(--ifm-pre-padding)/2)}.buttonGroup__atx button{align-items:center;border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-global-radius);display:flex;line-height:0;opacity:0;padding:.4rem;transition:opacity var(--ifm-transition-fast) ease-in-out}.buttonGroup__atx button:focus-visible,.buttonGroup__atx button:hover{opacity:1!important}.theme-code-block:hover .buttonGroup__atx button{opacity:.4}:where(:root){--docusaurus-highlighted-code-line-bg:#484d5b}:where([data-theme=dark]){--docusaurus-highlighted-code-line-bg:#646464}.theme-code-block-highlighted-line{background-color:var(--docusaurus-highlighted-code-line-bg);display:block;margin:0 calc(var(--ifm-pre-padding)*-1);padding:0 var(--ifm-pre-padding)}.codeLine_lJS_{counter-increment:a;display:table-row}.codeLineNumber_Tfdd{background:var(--ifm-pre-background);display:table-cell;left:0;overflow-wrap:normal;padding:0 var(--ifm-pre-padding);position:sticky;text-align:right;width:1%}.codeLineNumber_Tfdd:before{content:counter(a);opacity:.4}.codeLineContent_feaV{padding-right:var(--ifm-pre-padding)}.details_lb9f{--docusaurus-details-summary-arrow-size:0.38rem;--docusaurus-details-transition:transform 200ms ease;--docusaurus-details-decoration-color:grey}.details_lb9f>summary{cursor:pointer;padding-left:1rem;position:relative}.details_lb9f>summary::-webkit-details-marker{display:none}.details_lb9f>summary:before{border-color:#0000 #0000 #0000 var(--docusaurus-details-decoration-color);border-style:solid;border-width:var(--docusaurus-details-summary-arrow-size);content:"";left:0;position:absolute;top:.45rem;transform:rotate(0);transform-origin:calc(var(--docusaurus-details-summary-arrow-size)/2) 50%;transition:var(--docusaurus-details-transition)}.collapsibleContent_i85q{border-top:1px solid var(--docusaurus-details-decoration-color);margin-top:1rem;padding-top:1rem}.theme-code-block:hover .copyButtonCopied_obH4{opacity:1!important}.copyButtonIcons_eSgA{height:1.125rem;position:relative;width:1.125rem}.copyButtonIcon_y97N,.copyButtonSuccessIcon_LjdS{fill:currentColor;height:inherit;left:0;opacity:inherit;position:absolute;top:0;transition:all var(--ifm-transition-fast) ease;width:inherit}.copyButtonSuccessIcon_LjdS{color:#00d600;left:50%;opacity:0;top:50%;transform:translate(-50%,-50%) scale(.33)}.copyButtonCopied_obH4 .copyButtonIcon_y97N{opacity:0;transform:scale(.33)}.copyButtonCopied_obH4 .copyButtonSuccessIcon_LjdS{opacity:1;transform:translate(-50%,-50%) scale(1);transition-delay:75ms}.details_b_Ee{--docusaurus-details-decoration-color:var(--ifm-alert-border-color);--docusaurus-details-transition:transform var(--ifm-transition-fast) ease;border:1px solid var(--ifm-alert-border-color);margin:0 0 var(--ifm-spacing-vertical)}.wordWrapButtonIcon_Bwma{height:1.2rem;width:1.2rem}.img_ev3q{height:auto}.admonition_xJq3{margin-bottom:1em}.admonitionHeading_Gvgb{font:var(--ifm-heading-font-weight) var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family)}.admonitionHeading_Gvgb:not(:last-child){margin-bottom:.3rem}.admonitionHeading_Gvgb code{text-transform:none}.admonitionIcon_Rf37{display:inline-block;margin-right:.4em;vertical-align:middle}.admonitionIcon_Rf37 svg{fill:var(--ifm-alert-foreground-color);display:inline-block;height:1.6em;width:1.6em}.breadcrumbHomeIcon_YNFT{height:1.1rem;position:relative;top:1px;vertical-align:top;width:1.1rem}.breadcrumbsContainer_Z_bl{--ifm-breadcrumb-size-multiplier:0.8;margin-bottom:.8rem}@media (min-width:997px){.collapseSidebarButton_PEFL,.expandButton_TmdG{background-color:var(--docusaurus-collapse-button-bg)}:root{--docusaurus-announcement-bar-height:30px}.announcementBarClose_gvF7,.announcementBarPlaceholder_vyr4{flex-basis:50px}.navbarSearchContainer_Bca1{padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.lastUpdated_vwxv{text-align:right}.tocMobile_ITEo{display:none}.collapseSidebarButton_PEFL{border:1px solid var(--ifm-toc-border-color);border-radius:0;bottom:0;display:block!important;height:40px;position:sticky}.collapseSidebarButtonIcon_kv0_{margin-top:4px;transform:rotate(180deg)}.expandButtonIcon_i1dp,[dir=rtl] .collapseSidebarButtonIcon_kv0_{transform:rotate(0)}.collapseSidebarButton_PEFL:focus,.collapseSidebarButton_PEFL:hover,.expandButton_TmdG:focus,.expandButton_TmdG:hover{background-color:var(--docusaurus-collapse-button-bg-hover)}.menuHtmlItem_M9Kj{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu_SIkG{flex-grow:1;padding:.5rem}@supports (scrollbar-gutter:stable){.menu_SIkG{padding:.5rem 0 .5rem .5rem;scrollbar-gutter:stable}}.menuWithAnnouncementBar_GW3s{margin-bottom:var(--docusaurus-announcement-bar-height)}.sidebar_njMd{display:flex;flex-direction:column;height:100%;padding-top:var(--ifm-navbar-height);width:var(--doc-sidebar-width)}.sidebarWithHideableNavbar_wUlq{padding-top:0}.sidebarHidden_VK0M{opacity:0;visibility:hidden}.sidebarLogo_isFc{align-items:center;color:inherit!important;display:flex!important;margin:0 var(--ifm-navbar-padding-horizontal);max-height:var(--ifm-navbar-height);min-height:var(--ifm-navbar-height);text-decoration:none!important}.sidebarLogo_isFc img{height:2rem;margin-right:.5rem}.expandButton_TmdG{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;transition:background-color var(--ifm-transition-fast) ease;width:100%}[dir=rtl] .expandButtonIcon_i1dp{transform:rotate(180deg)}.docSidebarContainer_YfHR{border-right:1px solid var(--ifm-toc-border-color);-webkit-clip-path:inset(0);clip-path:inset(0);display:block;margin-top:calc(var(--ifm-navbar-height)*-1);transition:width var(--ifm-transition-fast) ease;width:var(--doc-sidebar-width);will-change:width}.docSidebarContainerHidden_DPk8{cursor:pointer;width:var(--doc-sidebar-hidden-width)}.sidebarViewport_aRkj{height:100%;max-height:100vh;position:sticky;top:0}.docMainContainer_TBSr{flex-grow:1;max-width:calc(100% - var(--doc-sidebar-width))}.docMainContainerEnhanced_lQrH{max-width:calc(100% - var(--doc-sidebar-hidden-width))}.docItemWrapperEnhanced_JWYK{max-width:calc(var(--ifm-container-width) + var(--doc-sidebar-width))!important}.docItemCol_VOVn{max-width:75%!important}}@media (min-width:1440px){.container{max-width:var(--ifm-container-width-xl)}}@media (max-width:996px){.col{--ifm-col-width:100%;flex-basis:var(--ifm-col-width);margin-left:0}.footer{--ifm-footer-padding-horizontal:0}.colorModeToggle_DEke,.footer__link-separator,.navbar__item,.tableOfContents_bqdL{display:none}.footer__col{margin-bottom:calc(var(--ifm-spacing-vertical)*3)}.footer__link-item{display:block}.hero{padding-left:0;padding-right:0}.navbar>.container,.navbar>.container-fluid{padding:0}.navbar__toggle{display:inherit}.navbar__search-input{width:9rem}.pills--block,.tabs--block{flex-direction:column}.navbarSearchContainer_Bca1{position:absolute;right:var(--ifm-navbar-padding-horizontal)}.docItemContainer_F8PC{padding:0 .3rem}}@media not (max-width:996px){.searchBar_RVTs.searchBarLeft_MXDe .dropdownMenu_qbY6{left:0!important;right:auto!important}}@media only screen and (max-width:996px){.searchQueryColumn_q7nx{max-width:60%!important}.searchContextColumn_oWAF{max-width:40%!important}}@media (max-width:576px){.markdown h1:first-child{--ifm-h1-font-size:2rem}.markdown>h2{--ifm-h2-font-size:1.5rem}.markdown>h3{--ifm-h3-font-size:1.25rem}.navbar__search-input:not(:focus){width:2rem}.searchBar_RVTs .dropdownMenu_qbY6{max-width:calc(100vw - var(--ifm-navbar-padding-horizontal)*2);width:var(--search-local-modal-width-sm,340px)}.searchBarContainer_NW3z:not(.focused_OWtg) .searchClearButton_qk4g,.searchHintContainer_Pkmr{display:none}}@media screen and (max-width:576px){.searchQueryColumn_q7nx{max-width:100%!important}.searchContextColumn_oWAF{max-width:100%!important;padding-left:var(--ifm-spacing-horizontal)!important}}@media (hover:hover){.backToTopButton_sjWU:hover{background-color:var(--ifm-color-emphasis-300)}}@media (pointer:fine){.thin-scrollbar{scrollbar-width:thin}.thin-scrollbar::-webkit-scrollbar{height:var(--ifm-scrollbar-size);width:var(--ifm-scrollbar-size)}.thin-scrollbar::-webkit-scrollbar-track{background:var(--ifm-scrollbar-track-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb{background:var(--ifm-scrollbar-thumb-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--ifm-scrollbar-thumb-hover-background-color)}}@media (prefers-reduced-motion:reduce){:root{--ifm-transition-fast:0ms;--ifm-transition-slow:0ms}}@media print{.announcementBar_mb4j,.footer,.menu,.navbar,.pagination-nav,.table-of-contents,.tocMobile_ITEo{display:none}.tabs{page-break-inside:avoid}.codeBlockLines_e6Vv{white-space:pre-wrap}} \ No newline at end of file diff --git a/zh-CN/assets/js/0397a6cc.c156eb02.js b/zh-CN/assets/js/0397a6cc.c156eb02.js deleted file mode 100644 index 6f746ebd3e..0000000000 --- a/zh-CN/assets/js/0397a6cc.c156eb02.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9444],{8598:e=>{e.exports=JSON.parse('{"title":"SSL","slug":"/category/ssl","permalink":"/node-mysql2/zh-CN/docs/category/ssl","navigation":{"previous":{"title":"Server","permalink":"/node-mysql2/zh-CN/docs/examples/server"},"next":{"title":"RDS SSL","permalink":"/node-mysql2/zh-CN/docs/examples/ssl/rds-ssl"}}}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/07d6bcd5.48009c22.js b/zh-CN/assets/js/07d6bcd5.48009c22.js new file mode 100644 index 0000000000..f84ff3f3b6 --- /dev/null +++ b/zh-CN/assets/js/07d6bcd5.48009c22.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3577],{2944:e=>{e.exports=JSON.parse('{"label":"createPool","permalink":"/node-mysql2/zh-CN/docs/tags/create-pool","allTagsPath":"/node-mysql2/zh-CN/docs/tags","count":1,"items":[{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/zh-CN/docs/examples/connections/create-pool"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/08df0c0c.0006bdd9.js b/zh-CN/assets/js/08df0c0c.0006bdd9.js deleted file mode 100644 index c36ce86301..0000000000 --- a/zh-CN/assets/js/08df0c0c.0006bdd9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[469],{9271:e=>{e.exports=JSON.parse('{"title":"Procedure Call Packet","slug":"/category/procedure-call-packet","permalink":"/node-mysql2/zh-CN/docs/category/procedure-call-packet","navigation":{"previous":{"title":"Basic Custom Class","permalink":"/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-class"},"next":{"title":"Procedure Call Packet","permalink":"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/procedure-call-packet"}}}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/0e27d5d9.37f71223.js b/zh-CN/assets/js/0e27d5d9.37f71223.js new file mode 100644 index 0000000000..d737622c62 --- /dev/null +++ b/zh-CN/assets/js/0e27d5d9.37f71223.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5072],{9247:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>i,toc:()=>d});var a=t(5893),r=t(1151),s=t(4866),o=t(5162);const l={},u="Row Data Packet",i={id:"examples/typescript/row-data/index",title:"Row Data Packet",description:"",source:"@site/docs/examples/typescript/row-data/00-index.mdx",sourceDirName:"examples/typescript/row-data",slug:"/examples/typescript/row-data/index",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/row-data/index",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/row-data/00-index.mdx",tags:[],version:"current",sidebarPosition:0,frontMatter:{},sidebar:"examples",previous:{title:"Procedure Call Packet (Row as Array)",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-array"},next:{title:"Row Data Packet (Row as Array)",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array"}},c={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,r.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.h1,{id:"row-data-packet",children:"Row Data Packet"}),"\n",(0,a.jsx)(s.Z,{children:(0,a.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n id: number;\n name: string;\n}\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Getting users */\n const [users] = await conn.query(\n 'SELECT * FROM `users` ORDER BY `name` ASC;'\n );\n\n users.forEach((user) => {\n console.log('-----------');\n console.log('id: ', user.id);\n console.log('name:', user.name);\n });\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * -----------\n * id: 4\n * name: Gween\n * -----------\n * id: 2\n * name: John\n * -----------\n * id: 1\n * name: Josh\n * -----------\n * id: 3\n * name: Marie\n */\n"})})})})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var a=t(512);const r={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,a.Z)(r.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>k});var a=t(7294),r=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),i=t(7392),c=t(12);function d(e){return a.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,a.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,a.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:a,default:r}}=e;return{value:n,label:t,attributes:a,default:r}}))}(t);return function(e){const n=(0,i.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const r=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,a.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(r.location.search);n.set(s,e),r.replace({...r.location,search:n.toString()})}),[s,r])]}function h(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,s=p(e),[o,u]=(0,a.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const a=t.find((e=>e.default))??t[0];if(!a)throw new Error("Unexpected error: 0 tabValues");return a.value}({defaultValue:n,tabValues:s}))),[i,d]=f({queryString:t,groupId:r}),[h,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,s]=(0,c.Nk)(t);return[r,(0,a.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:r}),w=(()=>{const e=i??h;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{w&&u(w)}),[w]);return{selectedValue:o,selectValue:(0,a.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const w={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var y=t(5893);function x(e){let{className:n,block:t,selectedValue:a,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const n=e.currentTarget,t=u.indexOf(n),r=l[t].value;r!==a&&(i(n),o(r))},d=e=>{let n=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,y.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,y.jsx)("li",{role:"tab",tabIndex:a===n?0:-1,"aria-selected":a===n,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,r.Z)("tabs__item",w.tabItem,s?.className,{"tabs__item--active":a===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:r}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===r));return e?(0,a.cloneElement)(e,{className:"margin-top--md"}):null}return(0,y.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,a.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function g(e){const n=h(e);return(0,y.jsxs)("div",{className:(0,r.Z)("tabs-container",w.tabList),children:[(0,y.jsx)(x,{...e,...n}),(0,y.jsx)(v,{...e,...n})]})}function k(e){const n=(0,b.Z)();return(0,y.jsx)(g,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var a=t(7294);const r={},s=a.createContext(r);function o(e){const n=a.useContext(s);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),a.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/10c30137.8e6ce72a.js b/zh-CN/assets/js/10c30137.8e6ce72a.js deleted file mode 100644 index 9d34129eff..0000000000 --- a/zh-CN/assets/js/10c30137.8e6ce72a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8193],{6161:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>c,default:()=>p,frontMatter:()=>l,metadata:()=>u,toc:()=>d});var r=t(5893),s=t(1151),o=t(4866),a=t(5162);const l={},c="Connect Over Socks",u={id:"examples/connect-over-socks",title:"Connect Over Socks",description:"",source:"@site/docs/examples/connect-over-socks.mdx",sourceDirName:"examples",slug:"/examples/connect-over-socks",permalink:"/node-mysql2/zh-CN/docs/examples/connect-over-socks",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/connect-over-socks.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Binlog Watcher",permalink:"/node-mysql2/zh-CN/docs/examples/binlog-watcher"},next:{title:"Execute",permalink:"/node-mysql2/zh-CN/docs/examples/execute"}},i={},d=[];function m(e){const n={code:"code",h1:"h1",pre:"pre",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"connect-over-socks",children:"Connect Over Socks"}),"\n",(0,r.jsx)(o.Z,{children:(0,r.jsx)(a.Z,{value:"index.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\n// const socksProxy = new SocksConnection({ port: 3306 });\n// const conn = mysql.createConnection({\n// stream: socksProxy,\n// });\n\n// conn.query(\"select 1+1\", function(err, rows, fields) {\n// console.log(err, rows, fields);\n// });\n\nconst conn1 = mysql.createPool({\n debug: 1,\n stream: function () {\n return new SocksConnection({ port: 3306 });\n },\n});\n\nconn1.execute('select sleep(1.1) as www', (err, rows, fields) => {\n console.log(err, rows, fields);\n});\n\nconn1.execute('select sleep(1) as qqq', (err, rows, fields) => {\n console.log(err, rows, fields);\n});\n\nconn1.execute('select sleep(1) as qqq', (err, rows, fields) => {\n console.log(err, rows, fields);\n});\n"})})})})]})}function p(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>a});t(7294);var r=t(512);const s={tabItem:"tabItem_Ymn6"};var o=t(5893);function a(e){let{children:n,hidden:t,className:a}=e;return(0,o.jsx)("div",{role:"tabpanel",className:(0,r.Z)(s.tabItem,a),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>k});var r=t(7294),s=t(512),o=t(2466),a=t(6550),l=t(469),c=t(1980),u=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:s}}=e;return{value:n,label:t,attributes:r,default:s}}))}(t);return function(e){const n=(0,u.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const s=(0,a.k6)(),o=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,c._X)(o),(0,r.useCallback)((e=>{if(!o)return;const n=new URLSearchParams(s.location.search);n.set(o,e),s.replace({...s.location,search:n.toString()})}),[o,s])]}function h(e){const{defaultValue:n,queryString:t=!1,groupId:s}=e,o=m(e),[a,c]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:o}))),[u,d]=f({queryString:t,groupId:s}),[h,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[s,o]=(0,i.Nk)(t);return[s,(0,r.useCallback)((e=>{t&&o.set(e)}),[t,o])]}({groupId:s}),v=(()=>{const e=u??h;return p({value:e,tabValues:o})?e:null})();(0,l.Z)((()=>{v&&c(v)}),[v]);return{selectedValue:a,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:o}))throw new Error(`Can't select invalid tab value=${e}`);c(e),d(e),b(e)}),[d,b,o]),tabValues:o}}var b=t(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=t(5893);function g(e){let{className:n,block:t,selectedValue:r,selectValue:a,tabValues:l}=e;const c=[],{blockElementScrollPositionUntilNextRender:u}=(0,o.o5)(),i=e=>{const n=e.currentTarget,t=c.indexOf(n),s=l[t].value;s!==r&&(u(n),a(s))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=c.indexOf(e.currentTarget)+1;n=c[t]??c[0];break}case"ArrowLeft":{const t=c.indexOf(e.currentTarget)-1;n=c[t]??c[c.length-1];break}}n?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:o}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>c.push(e),onKeyDown:d,onClick:i,...o,className:(0,s.Z)("tabs__item",v.tabItem,o?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function w(e){let{lazy:n,children:t,selectedValue:s}=e;const o=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=o.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:o.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==s})))})}function y(e){const n=h(e);return(0,x.jsxs)("div",{className:(0,s.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(g,{...e,...n}),(0,x.jsx)(w,{...e,...n})]})}function k(e){const n=(0,b.Z)();return(0,x.jsx)(y,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>a});var r=t(7294);const s={},o=r.createContext(s);function a(e){const n=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/11e11f3b.4f42d272.js b/zh-CN/assets/js/11e11f3b.4f42d272.js new file mode 100644 index 0000000000..e367e7dc79 --- /dev/null +++ b/zh-CN/assets/js/11e11f3b.4f42d272.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8625],{3463:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>h,contentTitle:()=>d,default:()=>g,frontMatter:()=>a,metadata:()=>u,toc:()=>m});var r=s(5893),t=s(1151),o=s(4866),c=s(5162),l=s(6393),i=s(4379);const a={sidebar_position:1,tags:["createConnection","URI","SHA1","RDS","SSL","Socks"]},d="createConnection",u={id:"examples/connections/create-connection",title:"createConnection",description:"For queries please see the Simple Queries and Prepared Statements examples.",source:"@site/docs/examples/connections/create-connection.mdx",sourceDirName:"examples/connections",slug:"/examples/connections/create-connection",permalink:"/node-mysql2/zh-CN/docs/examples/connections/create-connection",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/connections/create-connection.mdx",tags:[{label:"createConnection",permalink:"/node-mysql2/zh-CN/docs/tags/create-connection"},{label:"URI",permalink:"/node-mysql2/zh-CN/docs/tags/uri"},{label:"SHA1",permalink:"/node-mysql2/zh-CN/docs/tags/sha-1"},{label:"RDS",permalink:"/node-mysql2/zh-CN/docs/tags/rds"},{label:"SSL",permalink:"/node-mysql2/zh-CN/docs/tags/ssl"},{label:"Socks",permalink:"/node-mysql2/zh-CN/docs/tags/socks"}],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,tags:["createConnection","URI","SHA1","RDS","SSL","Socks"]},sidebar:"examples",previous:{title:"Introduction",permalink:"/node-mysql2/zh-CN/docs/examples"},next:{title:"createPool",permalink:"/node-mysql2/zh-CN/docs/examples/connections/create-pool"}},h={},m=[{value:"createConnection(connectionUri)",id:"createconnectionconnectionuri",level:2},{value:"createConnection(config)",id:"createconnectionconfig",level:2},{value:"createConnection(config) \u2014 SHA1",id:"createconnectionconfig--sha1",level:2},{value:"createConnection(config) \u2014 SSL",id:"createconnectionconfig--ssl",level:2},{value:"createConnection(config) \u2014 RDS SSL",id:"createconnectionconfig--rds-ssl",level:2},{value:"Related Links",id:"related-links",level:3},{value:"createConnection(config) \u2014 Socks",id:"createconnectionconfig--socks",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ConnectionOptions",id:"connectionoptions",level:3}];function p(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"createconnection",children:"createConnection"}),"\n",(0,r.jsx)(n.admonition,{type:"info",children:(0,r.jsxs)(n.p,{children:["For queries please see the ",(0,r.jsx)(n.a,{href:"/docs/examples/queries/simple-queries",children:(0,r.jsx)(n.strong,{children:"Simple Queries"})})," and ",(0,r.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements",children:(0,r.jsx)(n.strong,{children:"Prepared Statements"})})," examples."]})}),"\n",(0,r.jsx)(n.h2,{id:"createconnectionconnectionuri",children:"createConnection(connectionUri)"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:"createConnection(connectionUri: string)"})}),"\n"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(c.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const connection = await mysql.createConnection(\n 'mysql://root:password@localhost:3306/test'\n );\n // highlight-end\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(c.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection(\n 'mysql://root:password@localhost:3306/test'\n);\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})})})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"createconnectionconfig",children:"createConnection(config)"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["createConnection(config: ",(0,r.jsx)(n.a,{href:"#connectionoptions",children:"ConnectionOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(c.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n // port: 3306,\n // password: '',\n });\n // highlight-end\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(c.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n // port: 3306,\n // password: '',\n});\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})})})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"createconnectionconfig--sha1",children:"createConnection(config) \u2014 SHA1"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["createConnection(config: ",(0,r.jsx)(n.a,{href:"#connectionoptions",children:"ConnectionOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(c.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const connection = await mysql.createConnection({\n // ...\n passwordSha1: Buffer.from(\n '8bb6118f8fd6935ad0876a3be34a717d32708ffd',\n 'hex'\n ),\n });\n // highlight-end\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(c.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n // ...\n passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'),\n});\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})})})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"createconnectionconfig--ssl",children:"createConnection(config) \u2014 SSL"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["createConnection(config: ",(0,r.jsx)(n.a,{href:"#connectionoptions",children:"ConnectionOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(c.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const connection = await mysql.createConnection({\n // ...\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n });\n // highlight-end\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(c.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n // ...\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n});\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})})}),(0,r.jsxs)(c.Z,{value:"certs/ca-cert.pem",children:[(0,r.jsx)(i.I,{language:"plan",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/test/fixtures/ssl/certs/ca.pem"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["See ",(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/tree/master/test/fixtures/ssl/certs",children:"ssl/certs"}),"."]}),"\n"]})]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"createconnectionconfig--rds-ssl",children:"createConnection(config) \u2014 RDS SSL"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["createConnection(config: ",(0,r.jsx)(n.a,{href:"#connectionoptions",children:"ConnectionOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["You can use ",(0,r.jsx)(n.strong,{children:"Amazon RDS"})," string as value to ssl property to connect to ",(0,r.jsx)(n.strong,{children:"Amazon RDS"})," MySQL over SSL."]}),"\n",(0,r.jsxs)(n.p,{children:["In that case ",(0,r.jsx)(n.a,{href:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem",children:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem"})," CA cert is used:"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsxs)(c.Z,{value:"promise.js",default:!0,children:[(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const connection = await mysql.createConnection({\n // ...\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n });\n // highlight-end\n} catch (err) {\n console.log(err);\n}\n"})}),(0,r.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"try {\n const [res] = await connection.query('SHOW `status` LIKE \"Ssl_cipher\"');\n await connection.end();\n\n console.log(res);\n} catch (err) {\n console.log(err);\n}\n"})})})]}),(0,r.jsxs)(c.Z,{value:"callback.js",children:[(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n // ...\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n});\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})}),(0,r.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"connectionquery('SHOW `status` LIKE \"Ssl_cipher\"', function (err, res) {\n connection.end();\n\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(res);\n});\n"})})})]})]}),"\n",(0,r.jsx)(n.h3,{id:"related-links",children:"Related Links"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Issues"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/issues/2130",children:"#2130 \u2014 Update TLS certs for Amazon RDS instances"})}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Pull Requests"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/pull/2119",children:"#2119 \u2014 fix: make startTls code compatible with Bun"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/pull/2131",children:"#2131 \u2014 Update Amazon RDS SSL CA cert"})}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"createconnectionconfig--socks",children:"createConnection(config) \u2014 Socks"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["createConnection(config: ",(0,r.jsx)(n.a,{href:"#connectionoptions",children:"ConnectionOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(c.Z,{value:"A.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\nconst socksProxy = new SocksConnection({ port: 3306 });\n// highlight-start\nconst connection = mysql.createConnection({\n stream: socksProxy,\n});\n// highlight-end\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})})}),(0,r.jsx)(c.Z,{value:"B.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\n// highlight-start\nconst connection = mysql.createConnection({\n debug: 1,\n stream: function () {\n return new SocksConnection({ port: 3306 });\n },\n});\n// highlight-end\n\nconnection.addListener('error', (err) => {\n console.log(err);\n});\n"})})})]}),"\n",(0,r.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"connection.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n\nconnection.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n\nconnection.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n"})})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,r.jsx)(n.h3,{id:"connectionoptions",children:"ConnectionOptions"}),"\n",(0,r.jsx)(l.Z,{title:"ConnectionOptions Specification",children:(0,r.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/Connection.d.ts",extractMethod:"ConnectionOptions",methodType:"interface"})})]})}function g(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,s)=>{s.d(n,{Z:()=>c});s(7294);var r=s(512);const t={tabItem:"tabItem_Ymn6"};var o=s(5893);function c(e){let{children:n,hidden:s,className:c}=e;return(0,o.jsx)("div",{role:"tabpanel",className:(0,r.Z)(t.tabItem,c),hidden:s,children:n})}},4866:(e,n,s)=>{s.d(n,{Z:()=>S});var r=s(7294),t=s(512),o=s(2466),c=s(6550),l=s(469),i=s(1980),a=s(7392),d=s(12);function u(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:s}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return u(e).map((e=>{let{props:{value:n,label:s,attributes:r,default:t}}=e;return{value:n,label:s,attributes:r,default:t}}))}(s);return function(e){const n=(0,a.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,s])}function m(e){let{value:n,tabValues:s}=e;return s.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:s}=e;const t=(0,c.k6)(),o=function(e){let{queryString:n=!1,groupId:s}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!s)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:n,groupId:s});return[(0,i._X)(o),(0,r.useCallback)((e=>{if(!o)return;const n=new URLSearchParams(t.location.search);n.set(o,e),t.replace({...t.location,search:n.toString()})}),[o,t])]}function g(e){const{defaultValue:n,queryString:s=!1,groupId:t}=e,o=h(e),[c,i]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!m({value:n,tabValues:s}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=s.find((e=>e.default))??s[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:o}))),[a,u]=p({queryString:s,groupId:t}),[g,x]=function(e){let{groupId:n}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(n),[t,o]=(0,d.Nk)(s);return[t,(0,r.useCallback)((e=>{s&&o.set(e)}),[s,o])]}({groupId:t}),j=(()=>{const e=a??g;return m({value:e,tabValues:o})?e:null})();(0,l.Z)((()=>{j&&i(j)}),[j]);return{selectedValue:c,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:o}))throw new Error(`Can't select invalid tab value=${e}`);i(e),u(e),x(e)}),[u,x,o]),tabValues:o}}var x=s(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=s(5893);function y(e){let{className:n,block:s,selectedValue:r,selectValue:c,tabValues:l}=e;const i=[],{blockElementScrollPositionUntilNextRender:a}=(0,o.o5)(),d=e=>{const n=e.currentTarget,s=i.indexOf(n),t=l[s].value;t!==r&&(a(n),c(t))},u=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const s=i.indexOf(e.currentTarget)+1;n=i[s]??i[0];break}case"ArrowLeft":{const s=i.indexOf(e.currentTarget)-1;n=i[s]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,t.Z)("tabs",{"tabs--block":s},n),children:l.map((e=>{let{value:n,label:s,attributes:o}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>i.push(e),onKeyDown:u,onClick:d,...o,className:(0,t.Z)("tabs__item",j.tabItem,o?.className,{"tabs__item--active":r===n}),children:s??n},n)}))})}function b(e){let{lazy:n,children:s,selectedValue:t}=e;const o=(Array.isArray(s)?s:[s]).filter(Boolean);if(n){const e=o.find((e=>e.props.value===t));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:o.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function q(e){const n=g(e);return(0,f.jsxs)("div",{className:(0,t.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(y,{...e,...n}),(0,f.jsx)(b,{...e,...n})]})}function S(e){const n=(0,x.Z)();return(0,f.jsx)(q,{...e,children:u(e.children)},String(n))}},4379:(e,n,s)=>{s.d(n,{I:()=>i});var r=s(7294),t=s(2263),o=s(9286),c=s(5893);const l=()=>(0,c.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:s,extractMethod:i,methodType:a}=e;const[d,u]=(0,r.useState)(""),[h,m]=(0,r.useState)(!0),[p,g]=(0,r.useState)(!0),{siteConfig:x}=(0,t.Z)(),j=x.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,r.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&a?((e,n,s)=>{const r=e.split("\n"),t=`${s} ${n}`;let o=!1,c=0,l="";for(const i of r)if(i.includes(t)&&(o=!0),o&&(i.includes("{")&&c++,l+=i+"\n",i.includes("}")&&(c--,0===c)))break;return l.trim()||e})(e,i,a):e;u(n||e),m(!1),g(!1)})).catch((()=>{g(!0),m(!1)})),()=>{e.abort()}}),[f,i,a]),(0,c.jsx)(c.Fragment,{children:h?(0,c.jsx)(l,{}):(0,c.jsx)(c.Fragment,{children:p?(0,c.jsxs)("div",{children:["Unable to access the requested link: ",(0,c.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,c.jsx)(o.Z,{className:`language-${s}`,children:d})})})}},6393:(e,n,s)=>{s.d(n,{Z:()=>o});var r=s(4673),t=s(5893);const o=e=>{let{children:n,open:s,title:o}=e;return(0,t.jsx)(r.Z,{open:s,className:"faq",summary:(0,t.jsx)("summary",{children:(0,t.jsx)("strong",{children:o})}),children:(0,t.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/14eb3368.a0a1fb1b.js b/zh-CN/assets/js/14eb3368.a0a1fb1b.js deleted file mode 100644 index 85a65e4753..0000000000 --- a/zh-CN/assets/js/14eb3368.a0a1fb1b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9817],{1310:(e,t,s)=>{s.d(t,{Z:()=>p});s(7294);var n=s(512),i=s(5281),a=s(3438),r=s(8596),c=s(9960),l=s(5999),o=s(4996),d=s(5893);function m(e){return(0,d.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,d.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"})})}const u={breadcrumbHomeIcon:"breadcrumbHomeIcon_YNFT"};function h(){const e=(0,o.Z)("/");return(0,d.jsx)("li",{className:"breadcrumbs__item",children:(0,d.jsx)(c.Z,{"aria-label":(0,l.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,d.jsx)(m,{className:u.breadcrumbHomeIcon})})})}const b={breadcrumbsContainer:"breadcrumbsContainer_Z_bl"};function x(e){let{children:t,href:s,isLast:n}=e;const i="breadcrumbs__link";return n?(0,d.jsx)("span",{className:i,itemProp:"name",children:t}):s?(0,d.jsx)(c.Z,{className:i,href:s,itemProp:"item",children:(0,d.jsx)("span",{itemProp:"name",children:t})}):(0,d.jsx)("span",{className:i,children:t})}function v(e){let{children:t,active:s,index:i,addMicrodata:a}=e;return(0,d.jsxs)("li",{...a&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,n.Z)("breadcrumbs__item",{"breadcrumbs__item--active":s}),children:[t,(0,d.jsx)("meta",{itemProp:"position",content:String(i+1)})]})}function p(){const e=(0,a.s1)(),t=(0,r.Ns)();return e?(0,d.jsx)("nav",{className:(0,n.Z)(i.k.docs.docBreadcrumbs,b.breadcrumbsContainer),"aria-label":(0,l.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,d.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[t&&(0,d.jsx)(h,{}),e.map(((t,s)=>{const n=s===e.length-1,i="category"===t.type&&t.linkUnlisted?void 0:t.href;return(0,d.jsx)(v,{active:n,index:s,addMicrodata:!!i,children:(0,d.jsx)(x,{href:i,isLast:n,children:t.label})},s)}))]})}):null}},4228:(e,t,s)=>{s.r(t),s.d(t,{default:()=>I});s(7294);var n=s(1944),i=s(3438),a=s(4996),r=s(512),c=s(9960),l=s(3919),o=s(5999),d=s(2503);const m={cardContainer:"cardContainer_fWXF",cardTitle:"cardTitle_rnsV",cardDescription:"cardDescription_PWke"};var u=s(5893);function h(e){let{href:t,children:s}=e;return(0,u.jsx)(c.Z,{href:t,className:(0,r.Z)("card padding--lg",m.cardContainer),children:s})}function b(e){let{href:t,icon:s,title:n,description:i}=e;return(0,u.jsxs)(h,{href:t,children:[(0,u.jsxs)(d.Z,{as:"h2",className:(0,r.Z)("text--truncate",m.cardTitle),title:n,children:[s," ",n]}),i&&(0,u.jsx)("p",{className:(0,r.Z)("text--truncate",m.cardDescription),title:i,children:i})]})}function x(e){let{item:t}=e;const s=(0,i.LM)(t);return s?(0,u.jsx)(b,{href:s,icon:"\ud83d\uddc3\ufe0f",title:t.label,description:t.description??(0,o.I)({message:"{count} items",id:"theme.docs.DocCard.categoryDescription",description:"The default description for a category card in the generated index about how many items this category includes"},{count:t.items.length})}):null}function v(e){let{item:t}=e;const s=(0,l.Z)(t.href)?"\ud83d\udcc4\ufe0f":"\ud83d\udd17",n=(0,i.xz)(t.docId??void 0);return(0,u.jsx)(b,{href:t.href,icon:s,title:t.label,description:t.description??n?.description})}function p(e){let{item:t}=e;switch(t.type){case"link":return(0,u.jsx)(v,{item:t});case"category":return(0,u.jsx)(x,{item:t});default:throw new Error(`unknown item type ${JSON.stringify(t)}`)}}function g(e){let{className:t}=e;const s=(0,i.jA)();return(0,u.jsx)(j,{items:s.items,className:t})}function j(e){const{items:t,className:s}=e;if(!t)return(0,u.jsx)(g,{...e});const n=(0,i.MN)(t);return(0,u.jsx)("section",{className:(0,r.Z)("row",s),children:n.map(((e,t)=>(0,u.jsx)("article",{className:"col col--6 margin-bottom--lg",children:(0,u.jsx)(p,{item:e})},t)))})}var f=s(4966),N=s(3120),Z=s(4364),L=s(1310);const _={generatedIndexPage:"generatedIndexPage_vN6x",list:"list_eTzJ",title:"title_kItE"};function k(e){let{categoryGeneratedIndex:t}=e;return(0,u.jsx)(n.d,{title:t.title,description:t.description,keywords:t.keywords,image:(0,a.Z)(t.image)})}function T(e){let{categoryGeneratedIndex:t}=e;const s=(0,i.jA)();return(0,u.jsxs)("div",{className:_.generatedIndexPage,children:[(0,u.jsx)(N.Z,{}),(0,u.jsx)(L.Z,{}),(0,u.jsx)(Z.Z,{}),(0,u.jsxs)("header",{children:[(0,u.jsx)(d.Z,{as:"h1",className:_.title,children:t.title}),t.description&&(0,u.jsx)("p",{children:t.description})]}),(0,u.jsx)("article",{className:"margin-top--lg",children:(0,u.jsx)(j,{items:s.items,className:_.list})}),(0,u.jsx)("footer",{className:"margin-top--lg",children:(0,u.jsx)(f.Z,{previous:t.navigation.previous,next:t.navigation.next})})]})}function I(e){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(k,{...e}),(0,u.jsx)(T,{...e})]})}},4966:(e,t,s)=>{s.d(t,{Z:()=>l});s(7294);var n=s(5999),i=s(512),a=s(9960),r=s(5893);function c(e){const{permalink:t,title:s,subLabel:n,isNext:c}=e;return(0,r.jsxs)(a.Z,{className:(0,i.Z)("pagination-nav__link",c?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[n&&(0,r.jsx)("div",{className:"pagination-nav__sublabel",children:n}),(0,r.jsx)("div",{className:"pagination-nav__label",children:s})]})}function l(e){const{previous:t,next:s}=e;return(0,r.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,n.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[t&&(0,r.jsx)(c,{...t,subLabel:(0,r.jsx)(n.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),s&&(0,r.jsx)(c,{...s,subLabel:(0,r.jsx)(n.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}},4364:(e,t,s)=>{s.d(t,{Z:()=>l});s(7294);var n=s(512),i=s(5999),a=s(5281),r=s(4477),c=s(5893);function l(e){let{className:t}=e;const s=(0,r.E)();return s.badge?(0,c.jsx)("span",{className:(0,n.Z)(t,a.k.docs.docVersionBadge,"badge badge--secondary"),children:(0,c.jsx)(i.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:s.label},children:"Version: {versionLabel}"})}):null}},3120:(e,t,s)=>{s.d(t,{Z:()=>v});s(7294);var n=s(512),i=s(2263),a=s(9960),r=s(5999),c=s(143),l=s(5281),o=s(373),d=s(4477),m=s(5893);const u={unreleased:function(e){let{siteTitle:t,versionMetadata:s}=e;return(0,m.jsx)(r.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,m.jsx)("b",{children:s.label})},children:"This is unreleased documentation for {siteTitle} {versionLabel} version."})},unmaintained:function(e){let{siteTitle:t,versionMetadata:s}=e;return(0,m.jsx)(r.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,m.jsx)("b",{children:s.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function h(e){const t=u[e.versionMetadata.banner];return(0,m.jsx)(t,{...e})}function b(e){let{versionLabel:t,to:s,onClick:n}=e;return(0,m.jsx)(r.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:(0,m.jsx)("b",{children:(0,m.jsx)(a.Z,{to:s,onClick:n,children:(0,m.jsx)(r.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:s}=e;const{siteConfig:{title:a}}=(0,i.Z)(),{pluginId:r}=(0,c.gA)({failfast:!0}),{savePreferredVersionName:d}=(0,o.J)(r),{latestDocSuggestion:u,latestVersionSuggestion:x}=(0,c.Jo)(r),v=u??(p=x).docs.find((e=>e.id===p.mainDocId));var p;return(0,m.jsxs)("div",{className:(0,n.Z)(t,l.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,m.jsx)("div",{children:(0,m.jsx)(h,{siteTitle:a,versionMetadata:s})}),(0,m.jsx)("div",{className:"margin-top--md",children:(0,m.jsx)(b,{versionLabel:x.label,to:v.path,onClick:()=>d(x.name)})})]})}function v(e){let{className:t}=e;const s=(0,d.E)();return s.banner?(0,m.jsx)(x,{className:t,versionMetadata:s}):null}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/1568425c.69831b13.js b/zh-CN/assets/js/1568425c.69831b13.js new file mode 100644 index 0000000000..5fca327c11 --- /dev/null +++ b/zh-CN/assets/js/1568425c.69831b13.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9458],{904:(e,s,i)=>{i.r(s),i.d(s,{assets:()=>c,contentTitle:()=>l,default:()=>p,frontMatter:()=>n,metadata:()=>a,toc:()=>o});var r=i(5893),t=i(1151);const n={},l="Simple Queries",a={id:"examples/queries/simple-queries/index",title:"Simple Queries",description:"For Prepared Statements or Placeholders / Parameters examples, please see here.",source:"@site/docs/examples/queries/simple-queries/index.mdx",sourceDirName:"examples/queries/simple-queries",slug:"/examples/queries/simple-queries/",permalink:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/simple-queries/index.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"createPoolCluster",permalink:"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster"},next:{title:"INSERT",permalink:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/insert"}},c={},o=[];function d(e){const s={a:"a",admonition:"admonition",h1:"h1",hr:"hr",input:"input",li:"li",p:"p",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.h1,{id:"simple-queries",children:"Simple Queries"}),"\n",(0,r.jsx)(s.admonition,{type:"info",children:(0,r.jsxs)(s.p,{children:["For ",(0,r.jsx)(s.strong,{children:"Prepared Statements"})," or ",(0,r.jsx)(s.strong,{children:"Placeholders"})," / ",(0,r.jsx)(s.strong,{children:"Parameters"})," examples, please see ",(0,r.jsx)(s.a,{href:"/docs/examples/queries/prepared-statements",children:"here"}),"."]})}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.p,{children:"Usage examples:"}),"\n",(0,r.jsxs)(s.ul,{className:"contains-task-list",children:["\n",(0,r.jsxs)(s.li,{className:"task-list-item",children:[(0,r.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,r.jsx)(s.a,{href:"/docs/examples/queries/simple-queries/insert",children:(0,r.jsx)(s.strong,{children:"INSERT"})})]}),"\n",(0,r.jsxs)(s.li,{className:"task-list-item",children:[(0,r.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,r.jsx)(s.a,{href:"/docs/examples/queries/simple-queries/select",children:(0,r.jsx)(s.strong,{children:"SELECT"})})]}),"\n",(0,r.jsxs)(s.li,{className:"task-list-item",children:[(0,r.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,r.jsx)(s.a,{href:"/docs/examples/queries/simple-queries/update",children:(0,r.jsx)(s.strong,{children:"UPDATE"})})]}),"\n",(0,r.jsxs)(s.li,{className:"task-list-item",children:[(0,r.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,r.jsx)(s.a,{href:"/docs/examples/queries/simple-queries/delete",children:(0,r.jsx)(s.strong,{children:"DELETE"})})]}),"\n"]})]})}function p(e={}){const{wrapper:s}={...(0,t.a)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},1151:(e,s,i)=>{i.d(s,{Z:()=>a,a:()=>l});var r=i(7294);const t={},n=r.createContext(t);function l(e){const s=r.useContext(n);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function a(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),r.createElement(n.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/17896441.569c1c67.js b/zh-CN/assets/js/17896441.569c1c67.js new file mode 100644 index 0000000000..4c7525c8dd --- /dev/null +++ b/zh-CN/assets/js/17896441.569c1c67.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7918],{9047:(e,t,n)=>{n.d(t,{Z:()=>H});var s=n(7294),i=n(5893);function a(e){const{mdxAdmonitionTitle:t,rest:n}=function(e){const t=s.Children.toArray(e),n=t.find((e=>s.isValidElement(e)&&"mdxAdmonitionTitle"===e.type)),a=t.filter((e=>e!==n)),l=n?.props.children;return{mdxAdmonitionTitle:l,rest:a.length>0?(0,i.jsx)(i.Fragment,{children:a}):null}}(e.children),a=e.title??t;return{...e,...a&&{title:a},children:n}}var l=n(512),o=n(5999),r=n(5281);const c={admonition:"admonition_xJq3",admonitionHeading:"admonitionHeading_Gvgb",admonitionIcon:"admonitionIcon_Rf37",admonitionContent:"admonitionContent_BuS1"};function d(e){let{type:t,className:n,children:s}=e;return(0,i.jsx)("div",{className:(0,l.Z)(r.k.common.admonition,r.k.common.admonitionType(t),c.admonition,n),children:s})}function u(e){let{icon:t,title:n}=e;return(0,i.jsxs)("div",{className:c.admonitionHeading,children:[(0,i.jsx)("span",{className:c.admonitionIcon,children:t}),n]})}function m(e){let{children:t}=e;return t?(0,i.jsx)("div",{className:c.admonitionContent,children:t}):null}function h(e){const{type:t,icon:n,title:s,children:a,className:l}=e;return(0,i.jsxs)(d,{type:t,className:l,children:[(0,i.jsx)(u,{title:s,icon:n}),(0,i.jsx)(m,{children:a})]})}function x(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.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"})})}const v={icon:(0,i.jsx)(x,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function f(e){return(0,i.jsx)(h,{...v,...e,className:(0,l.Z)("alert alert--secondary",e.className),children:e.children})}function p(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.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"})})}const j={icon:(0,i.jsx)(p,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function g(e){return(0,i.jsx)(h,{...j,...e,className:(0,l.Z)("alert alert--success",e.className),children:e.children})}function b(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.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"})})}const N={icon:(0,i.jsx)(b,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function C(e){return(0,i.jsx)(h,{...N,...e,className:(0,l.Z)("alert alert--info",e.className),children:e.children})}function L(e){return(0,i.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,i.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"})})}const Z={icon:(0,i.jsx)(L,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function _(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.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"})})}const k={icon:(0,i.jsx)(_,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const T={icon:(0,i.jsx)(L,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const y={...{note:f,tip:g,info:C,warning:function(e){return(0,i.jsx)(h,{...Z,...e,className:(0,l.Z)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,i.jsx)(h,{...k,...e,className:(0,l.Z)("alert alert--danger",e.className),children:e.children})}},...{secondary:e=>(0,i.jsx)(f,{title:"secondary",...e}),important:e=>(0,i.jsx)(C,{title:"important",...e}),success:e=>(0,i.jsx)(g,{title:"success",...e}),caution:function(e){return(0,i.jsx)(h,{...T,...e,className:(0,l.Z)("alert alert--warning",e.className),children:e.children})}}};function H(e){const t=a(e),n=(s=t.type,y[s]||(console.warn(`No admonition component found for admonition type "${s}". Using Info as fallback.`),y.info));var s;return(0,i.jsx)(n,{...t})}},4758:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ve});var s=n(7294),i=n(1944),a=n(902),l=n(5893);const o=s.createContext(null);function r(e){let{children:t,content:n}=e;const i=function(e){return(0,s.useMemo)((()=>({metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc})),[e])}(n);return(0,l.jsx)(o.Provider,{value:i,children:t})}function c(){const e=(0,s.useContext)(o);if(null===e)throw new a.i6("DocProvider");return e}function d(){const{metadata:e,frontMatter:t,assets:n}=c();return(0,l.jsx)(i.d,{title:e.title,description:e.description,keywords:t.keywords,image:n.image??t.image})}var u=n(512),m=n(7524),h=n(5999),x=n(3692);function v(e){const{permalink:t,title:n,subLabel:s,isNext:i}=e;return(0,l.jsxs)(x.Z,{className:(0,u.Z)("pagination-nav__link",i?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[s&&(0,l.jsx)("div",{className:"pagination-nav__sublabel",children:s}),(0,l.jsx)("div",{className:"pagination-nav__label",children:n})]})}function f(e){const{previous:t,next:n}=e;return(0,l.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,h.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[t&&(0,l.jsx)(v,{...t,subLabel:(0,l.jsx)(h.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),n&&(0,l.jsx)(v,{...n,subLabel:(0,l.jsx)(h.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}function p(){const{metadata:e}=c();return(0,l.jsx)(f,{previous:e.previous,next:e.next})}var j=n(2263),g=n(143),b=n(5281),N=n(373),C=n(4477);const L={unreleased:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,l.jsx)(h.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,l.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,l.jsx)(h.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,l.jsx)("b",{children:n.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function Z(e){const t=L[e.versionMetadata.banner];return(0,l.jsx)(t,{...e})}function _(e){let{versionLabel:t,to:n,onClick:s}=e;return(0,l.jsx)(h.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:(0,l.jsx)("b",{children:(0,l.jsx)(x.Z,{to:n,onClick:s,children:(0,l.jsx)(h.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 k(e){let{className:t,versionMetadata:n}=e;const{siteConfig:{title:s}}=(0,j.Z)(),{pluginId:i}=(0,g.gA)({failfast:!0}),{savePreferredVersionName:a}=(0,N.J)(i),{latestDocSuggestion:o,latestVersionSuggestion:r}=(0,g.Jo)(i),c=o??(d=r).docs.find((e=>e.id===d.mainDocId));var d;return(0,l.jsxs)("div",{className:(0,u.Z)(t,b.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,l.jsx)("div",{children:(0,l.jsx)(Z,{siteTitle:s,versionMetadata:n})}),(0,l.jsx)("div",{className:"margin-top--md",children:(0,l.jsx)(_,{versionLabel:r.label,to:c.path,onClick:()=>a(r.name)})})]})}function T(e){let{className:t}=e;const n=(0,C.E)();return n.banner?(0,l.jsx)(k,{className:t,versionMetadata:n}):null}function y(e){let{className:t}=e;const n=(0,C.E)();return n.badge?(0,l.jsx)("span",{className:(0,u.Z)(t,b.k.docs.docVersionBadge,"badge badge--secondary"),children:(0,l.jsx)(h.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label},children:"Version: {versionLabel}"})}):null}function H(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:n}=e;return(0,l.jsx)(h.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:(0,l.jsx)("b",{children:(0,l.jsx)("time",{dateTime:new Date(1e3*t).toISOString(),children:n})})},children:" on {date}"})}function w(e){let{lastUpdatedBy:t}=e;return(0,l.jsx)(h.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:(0,l.jsx)("b",{children:t})},children:" by {user}"})}function U(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:n,lastUpdatedBy:s}=e;return(0,l.jsxs)("span",{className:b.k.common.lastUpdated,children:[(0,l.jsx)(h.Z,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t&&n?(0,l.jsx)(H,{lastUpdatedAt:t,formattedLastUpdatedAt:n}):"",byUser:s?(0,l.jsx)(w,{lastUpdatedBy:s}):""},children:"Last updated{atDate}{byUser}"}),!1]})}const A={iconEdit:"iconEdit_Z9Sw"};function M(e){let{className:t,...n}=e;return(0,l.jsx)("svg",{fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,u.Z)(A.iconEdit,t),"aria-hidden":"true",...n,children:(0,l.jsx)("g",{children:(0,l.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 B(e){let{editUrl:t}=e;return(0,l.jsxs)(x.Z,{to:t,className:b.k.common.editThisPage,children:[(0,l.jsx)(M,{}),(0,l.jsx)(h.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page",children:"Edit this page"})]})}var I=n(3008);const E={tags:"tags_jXut",tag:"tag_QGVx"};function z(e){let{tags:t}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("b",{children:(0,l.jsx)(h.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,l.jsx)("ul",{className:(0,u.Z)(E.tags,"padding--none","margin-left--sm"),children:t.map((e=>{let{label:t,permalink:n}=e;return(0,l.jsx)("li",{className:E.tag,children:(0,l.jsx)(I.Z,{label:t,permalink:n})},n)}))})]})}const V={lastUpdated:"lastUpdated_vwxv"};function R(e){return(0,l.jsx)("div",{className:(0,u.Z)(b.k.docs.docFooterTagsRow,"row margin-bottom--sm"),children:(0,l.jsx)("div",{className:"col",children:(0,l.jsx)(z,{...e})})})}function O(e){let{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:s,formattedLastUpdatedAt:i}=e;return(0,l.jsxs)("div",{className:(0,u.Z)(b.k.docs.docFooterEditMetaRow,"row"),children:[(0,l.jsx)("div",{className:"col",children:t&&(0,l.jsx)(B,{editUrl:t})}),(0,l.jsx)("div",{className:(0,u.Z)("col",V.lastUpdated),children:(n||s)&&(0,l.jsx)(U,{lastUpdatedAt:n,formattedLastUpdatedAt:i,lastUpdatedBy:s})})]})}function S(){const{metadata:e}=c(),{editUrl:t,lastUpdatedAt:n,formattedLastUpdatedAt:s,lastUpdatedBy:i,tags:a}=e,o=a.length>0,r=!!(t||n||i);return o||r?(0,l.jsxs)("footer",{className:(0,u.Z)(b.k.docs.docFooter,"docusaurus-mt-lg"),children:[o&&(0,l.jsx)(R,{tags:a}),r&&(0,l.jsx)(O,{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:i,formattedLastUpdatedAt:s})]}):null}var F=n(6043),P=n(6668);function D(e){const t=e.map((e=>({...e,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);t.forEach(((e,t)=>{const s=n.slice(2,e.level);e.parentIndex=Math.max(...s),n[e.level]=t}));const s=[];return t.forEach((e=>{const{parentIndex:n,...i}=e;n>=0?t[n].children.push(i):s.push(i)})),s}function q(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:s}=e;return t.flatMap((e=>{const t=q({toc:e.children,minHeadingLevel:n,maxHeadingLevel:s});return function(e){return e.level>=n&&e.level<=s}(e)?[{...e,children:t}]:t}))}function G(e){const t=e.getBoundingClientRect();return t.top===t.bottom?G(e.parentNode):t}function W(e,t){let{anchorTopOffset:n}=t;const s=e.find((e=>G(e).top>=n));if(s){return function(e){return e.top>0&&e.bottom{e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}function J(e){const t=(0,s.useRef)(void 0),n=$();(0,s.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:s,linkActiveClassName:i,minHeadingLevel:a,maxHeadingLevel:l}=e;function o(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(s),o=function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e;const s=[];for(let i=t;i<=n;i+=1)s.push(`h${i}.anchor`);return Array.from(document.querySelectorAll(s.join()))}({minHeadingLevel:a,maxHeadingLevel:l}),r=W(o,{anchorTopOffset:n.current}),c=e.find((e=>r&&r.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,n){n?(t.current&&t.current!==e&&t.current.classList.remove(i),e.classList.add(i),t.current=e):e.classList.remove(i)}(e,e===c)}))}return document.addEventListener("scroll",o),document.addEventListener("resize",o),o(),()=>{document.removeEventListener("scroll",o),document.removeEventListener("resize",o)}}),[e,n])}function Q(e){let{toc:t,className:n,linkClassName:s,isChild:i}=e;return t.length?(0,l.jsx)("ul",{className:i?void 0:n,children:t.map((e=>(0,l.jsxs)("li",{children:[(0,l.jsx)(x.Z,{to:`#${e.id}`,className:s??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,l.jsx)(Q,{isChild:!0,toc:e.children,className:n,linkClassName:s})]},e.id)))}):null}const X=s.memo(Q);function Y(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:i="table-of-contents__link",linkActiveClassName:a,minHeadingLevel:o,maxHeadingLevel:r,...c}=e;const d=(0,P.L)(),u=o??d.tableOfContents.minHeadingLevel,m=r??d.tableOfContents.maxHeadingLevel,h=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:i}=e;return(0,s.useMemo)((()=>q({toc:D(t),minHeadingLevel:n,maxHeadingLevel:i})),[t,n,i])}({toc:t,minHeadingLevel:u,maxHeadingLevel:m});return J((0,s.useMemo)((()=>{if(i&&a)return{linkClassName:i,linkActiveClassName:a,minHeadingLevel:u,maxHeadingLevel:m}}),[i,a,u,m])),(0,l.jsx)(X,{toc:h,className:n,linkClassName:i,...c})}const K={tocCollapsibleButton:"tocCollapsibleButton_TO0P",tocCollapsibleButtonExpanded:"tocCollapsibleButtonExpanded_MG3E"};function ee(e){let{collapsed:t,...n}=e;return(0,l.jsx)("button",{type:"button",...n,className:(0,u.Z)("clean-btn",K.tocCollapsibleButton,!t&&K.tocCollapsibleButtonExpanded,n.className),children:(0,l.jsx)(h.Z,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component",children:"On this page"})})}const te={tocCollapsible:"tocCollapsible_ETCw",tocCollapsibleContent:"tocCollapsibleContent_vkbj",tocCollapsibleExpanded:"tocCollapsibleExpanded_sAul"};function ne(e){let{toc:t,className:n,minHeadingLevel:s,maxHeadingLevel:i}=e;const{collapsed:a,toggleCollapsed:o}=(0,F.u)({initialState:!0});return(0,l.jsxs)("div",{className:(0,u.Z)(te.tocCollapsible,!a&&te.tocCollapsibleExpanded,n),children:[(0,l.jsx)(ee,{collapsed:a,onClick:o}),(0,l.jsx)(F.z,{lazy:!0,className:te.tocCollapsibleContent,collapsed:a,children:(0,l.jsx)(Y,{toc:t,minHeadingLevel:s,maxHeadingLevel:i})})]})}const se={tocMobile:"tocMobile_ITEo"};function ie(){const{toc:e,frontMatter:t}=c();return(0,l.jsx)(ne,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:(0,u.Z)(b.k.docs.docTocMobile,se.tocMobile)})}const ae={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"},le="table-of-contents__link toc-highlight",oe="table-of-contents__link--active";function re(e){let{className:t,...n}=e;return(0,l.jsx)("div",{className:(0,u.Z)(ae.tableOfContents,"thin-scrollbar",t),children:(0,l.jsx)(Y,{...n,linkClassName:le,linkActiveClassName:oe})})}function ce(){const{toc:e,frontMatter:t}=c();return(0,l.jsx)(re,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:b.k.docs.docTocDesktop})}var de=n(2503),ue=n(1151),me=n(5742),he=n(9286);function xe(e){return(0,l.jsx)("code",{...e})}var ve=n(4673);function fe(e){const t=s.Children.toArray(e.children),n=t.find((e=>s.isValidElement(e)&&"summary"===e.type)),i=(0,l.jsx)(l.Fragment,{children:t.filter((e=>e!==n))});return(0,l.jsx)(ve.Z,{...e,summary:n,children:i})}function pe(e){return(0,l.jsx)(de.Z,{...e})}const je={containsTaskList:"containsTaskList_mC6p"};function ge(e){if(void 0!==e)return(0,u.Z)(e,e?.includes("contains-task-list")&&je.containsTaskList)}const be={img:"img_ev3q"};var Ne=n(9047);const Ce={Head:me.Z,details:fe,Details:fe,code:function(e){return function(e){return void 0!==e.children&&s.Children.toArray(e.children).every((e=>"string"==typeof e&&!e.includes("\n")))}(e)?(0,l.jsx)(xe,{...e}):(0,l.jsx)(he.Z,{...e})},a:function(e){return(0,l.jsx)(x.Z,{...e})},pre:function(e){return(0,l.jsx)(l.Fragment,{children:e.children})},ul:function(e){return(0,l.jsx)("ul",{...e,className:ge(e.className)})},img:function(e){return(0,l.jsx)("img",{loading:"lazy",...e,className:(t=e.className,(0,u.Z)(t,be.img))});var t},h1:e=>(0,l.jsx)(pe,{as:"h1",...e}),h2:e=>(0,l.jsx)(pe,{as:"h2",...e}),h3:e=>(0,l.jsx)(pe,{as:"h3",...e}),h4:e=>(0,l.jsx)(pe,{as:"h4",...e}),h5:e=>(0,l.jsx)(pe,{as:"h5",...e}),h6:e=>(0,l.jsx)(pe,{as:"h6",...e}),admonition:Ne.Z,mermaid:()=>null};function Le(e){let{children:t}=e;return(0,l.jsx)(ue.Z,{components:Ce,children:t})}function Ze(e){let{children:t}=e;const n=function(){const{metadata:e,frontMatter:t,contentTitle:n}=c();return t.hide_title||void 0!==n?null:e.title}();return(0,l.jsxs)("div",{className:(0,u.Z)(b.k.docs.docMarkdown,"markdown"),children:[n&&(0,l.jsx)("header",{children:(0,l.jsx)(de.Z,{as:"h1",children:n})}),(0,l.jsx)(Le,{children:t})]})}var _e=n(3438),ke=n(8596),Te=n(4996);function ye(e){return(0,l.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,l.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"})})}const He={breadcrumbHomeIcon:"breadcrumbHomeIcon_YNFT"};function we(){const e=(0,Te.Z)("/");return(0,l.jsx)("li",{className:"breadcrumbs__item",children:(0,l.jsx)(x.Z,{"aria-label":(0,h.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,l.jsx)(ye,{className:He.breadcrumbHomeIcon})})})}const Ue={breadcrumbsContainer:"breadcrumbsContainer_Z_bl"};function Ae(e){let{children:t,href:n,isLast:s}=e;const i="breadcrumbs__link";return s?(0,l.jsx)("span",{className:i,itemProp:"name",children:t}):n?(0,l.jsx)(x.Z,{className:i,href:n,itemProp:"item",children:(0,l.jsx)("span",{itemProp:"name",children:t})}):(0,l.jsx)("span",{className:i,children:t})}function Me(e){let{children:t,active:n,index:s,addMicrodata:i}=e;return(0,l.jsxs)("li",{...i&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,u.Z)("breadcrumbs__item",{"breadcrumbs__item--active":n}),children:[t,(0,l.jsx)("meta",{itemProp:"position",content:String(s+1)})]})}function Be(){const e=(0,_e.s1)(),t=(0,ke.Ns)();return e?(0,l.jsx)("nav",{className:(0,u.Z)(b.k.docs.docBreadcrumbs,Ue.breadcrumbsContainer),"aria-label":(0,h.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,l.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[t&&(0,l.jsx)(we,{}),e.map(((t,n)=>{const s=n===e.length-1,i="category"===t.type&&t.linkUnlisted?void 0:t.href;return(0,l.jsx)(Me,{active:s,index:n,addMicrodata:!!i,children:(0,l.jsx)(Ae,{href:i,isLast:s,children:t.label})},n)}))]})}):null}var Ie=n(2212);const Ee={docItemContainer:"docItemContainer_Djhp",docItemCol:"docItemCol_VOVn"};function ze(e){let{children:t}=e;const n=function(){const{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,l.jsx)(ie,{}):void 0,desktop:!i||"desktop"!==n&&"ssr"!==n?void 0:(0,l.jsx)(ce,{})}}(),{metadata:{unlisted:s}}=c();return(0,l.jsxs)("div",{className:"row",children:[(0,l.jsxs)("div",{className:(0,u.Z)("col",!n.hidden&&Ee.docItemCol),children:[s&&(0,l.jsx)(Ie.Z,{}),(0,l.jsx)(T,{}),(0,l.jsxs)("div",{className:Ee.docItemContainer,children:[(0,l.jsxs)("article",{children:[(0,l.jsx)(Be,{}),(0,l.jsx)(y,{}),n.mobile,(0,l.jsx)(Ze,{children:t}),(0,l.jsx)(S,{})]}),(0,l.jsx)(p,{})]})]}),n.desktop&&(0,l.jsx)("div",{className:"col col--3",children:n.desktop})]})}function Ve(e){const t=`docs-doc-id-${e.content.metadata.id}`,n=e.content;return(0,l.jsx)(r,{content:e.content,children:(0,l.jsxs)(i.FG,{className:t,children:[(0,l.jsx)(d,{}),(0,l.jsx)(ze,{children:(0,l.jsx)(n,{})})]})})}},3008:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var s=n(512),i=n(3692);const a={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};var l=n(5893);function o(e){let{permalink:t,label:n,count:o}=e;return(0,l.jsxs)(i.Z,{href:t,className:(0,s.Z)(a.tag,o?a.tagWithCount:a.tagRegular),children:[n,o&&(0,l.jsx)("span",{children:o})]})}},2212:(e,t,n)=>{n.d(t,{Z:()=>h});n(7294);var s=n(512),i=n(5999),a=n(5742),l=n(5893);function o(){return(0,l.jsx)(i.Z,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function r(){return(0,l.jsx)(i.Z,{id:"theme.unlistedContent.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 c(){return(0,l.jsx)(a.Z,{children:(0,l.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}var d=n(5281),u=n(9047);function m(e){let{className:t}=e;return(0,l.jsx)(u.Z,{type:"caution",title:(0,l.jsx)(o,{}),className:(0,s.Z)(t,d.k.common.unlistedBanner),children:(0,l.jsx)(r,{})})}function h(e){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c,{}),(0,l.jsx)(m,{...e})]})}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/17896441.6fafa0da.js b/zh-CN/assets/js/17896441.6fafa0da.js deleted file mode 100644 index eea20a3dba..0000000000 --- a/zh-CN/assets/js/17896441.6fafa0da.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7918],{4673:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var s=n(7294),a=n(512),o=n(2389),i=n(6043);const l={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var c=n(5893);function r(e){return!!e&&("SUMMARY"===e.tagName||r(e.parentElement))}function d(e,t){return!!e&&(e===t||d(e.parentElement,t))}function u(e){let{summary:t,children:n,...u}=e;const m=(0,o.Z)(),h=(0,s.useRef)(null),{collapsed:p,setCollapsed:f}=(0,i.u)({initialState:!u.open}),[x,b]=(0,s.useState)(u.open),g=s.isValidElement(t)?t:(0,c.jsx)("summary",{children:t??"Details"});return(0,c.jsxs)("details",{...u,ref:h,open:x,"data-collapsed":p,className:(0,a.Z)(l.details,m&&l.isBrowser,u.className),onMouseDown:e=>{r(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const t=e.target;r(t)&&d(t,h.current)&&(e.preventDefault(),p?(f(!1),b(!0)):f(!0))},children:[g,(0,c.jsx)(i.z,{lazy:!1,collapsed:p,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{f(e),b(!e)},children:(0,c.jsx)("div",{className:l.collapsibleContent,children:n})})]})}const m={details:"details_b_Ee"},h="alert alert--info";function p(e){let{...t}=e;return(0,c.jsx)(u,{...t,className:(0,a.Z)(h,m.details,t.className)})}},1310:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});n(7294);var s=n(512),a=n(5281),o=n(3438),i=n(8596),l=n(9960),c=n(5999),r=n(4996),d=n(5893);function u(e){return(0,d.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,d.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"})})}const m={breadcrumbHomeIcon:"breadcrumbHomeIcon_YNFT"};function h(){const e=(0,r.Z)("/");return(0,d.jsx)("li",{className:"breadcrumbs__item",children:(0,d.jsx)(l.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,d.jsx)(u,{className:m.breadcrumbHomeIcon})})})}const p={breadcrumbsContainer:"breadcrumbsContainer_Z_bl"};function f(e){let{children:t,href:n,isLast:s}=e;const a="breadcrumbs__link";return s?(0,d.jsx)("span",{className:a,itemProp:"name",children:t}):n?(0,d.jsx)(l.Z,{className:a,href:n,itemProp:"item",children:(0,d.jsx)("span",{itemProp:"name",children:t})}):(0,d.jsx)("span",{className:a,children:t})}function x(e){let{children:t,active:n,index:a,addMicrodata:o}=e;return(0,d.jsxs)("li",{...o&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,s.Z)("breadcrumbs__item",{"breadcrumbs__item--active":n}),children:[t,(0,d.jsx)("meta",{itemProp:"position",content:String(a+1)})]})}function b(){const e=(0,o.s1)(),t=(0,i.Ns)();return e?(0,d.jsx)("nav",{className:(0,s.Z)(a.k.docs.docBreadcrumbs,p.breadcrumbsContainer),"aria-label":(0,c.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,d.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[t&&(0,d.jsx)(h,{}),e.map(((t,n)=>{const s=n===e.length-1,a="category"===t.type&&t.linkUnlisted?void 0:t.href;return(0,d.jsx)(x,{active:s,index:n,addMicrodata:!!a,children:(0,d.jsx)(f,{href:a,isLast:s,children:t.label})},n)}))]})}):null}},9678:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>gt});var s=n(7294),a=n(1944),o=n(902),i=n(5893);const l=s.createContext(null);function c(e){let{children:t,content:n}=e;const a=function(e){return(0,s.useMemo)((()=>({metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc})),[e])}(n);return(0,i.jsx)(l.Provider,{value:a,children:t})}function r(){const e=(0,s.useContext)(l);if(null===e)throw new o.i6("DocProvider");return e}function d(){const{metadata:e,frontMatter:t,assets:n}=r();return(0,i.jsx)(a.d,{title:e.title,description:e.description,keywords:t.keywords,image:n.image??t.image})}var u=n(512),m=n(7524),h=n(4966);function p(){const{metadata:e}=r();return(0,i.jsx)(h.Z,{previous:e.previous,next:e.next})}var f=n(3120),x=n(4364),b=n(5281),g=n(5999);function j(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:n}=e;return(0,i.jsx)(g.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:(0,i.jsx)("b",{children:(0,i.jsx)("time",{dateTime:new Date(1e3*t).toISOString(),children:n})})},children:" on {date}"})}function v(e){let{lastUpdatedBy:t}=e;return(0,i.jsx)(g.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:(0,i.jsx)("b",{children:t})},children:" by {user}"})}function N(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:n,lastUpdatedBy:s}=e;return(0,i.jsxs)("span",{className:b.k.common.lastUpdated,children:[(0,i.jsx)(g.Z,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t&&n?(0,i.jsx)(j,{lastUpdatedAt:t,formattedLastUpdatedAt:n}):"",byUser:s?(0,i.jsx)(v,{lastUpdatedBy:s}):""},children:"Last updated{atDate}{byUser}"}),!1]})}var C=n(9960);const k={iconEdit:"iconEdit_Z9Sw"};function L(e){let{className:t,...n}=e;return(0,i.jsx)("svg",{fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,u.Z)(k.iconEdit,t),"aria-hidden":"true",...n,children:(0,i.jsx)("g",{children:(0,i.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 y(e){let{editUrl:t}=e;return(0,i.jsxs)(C.Z,{to:t,className:b.k.common.editThisPage,children:[(0,i.jsx)(L,{}),(0,i.jsx)(g.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page",children:"Edit this page"})]})}const w={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};function B(e){let{permalink:t,label:n,count:s}=e;return(0,i.jsxs)(C.Z,{href:t,className:(0,u.Z)(w.tag,s?w.tagWithCount:w.tagRegular),children:[n,s&&(0,i.jsx)("span",{children:s})]})}const _={tags:"tags_jXut",tag:"tag_QGVx"};function Z(e){let{tags:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("b",{children:(0,i.jsx)(g.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,i.jsx)("ul",{className:(0,u.Z)(_.tags,"padding--none","margin-left--sm"),children:t.map((e=>{let{label:t,permalink:n}=e;return(0,i.jsx)("li",{className:_.tag,children:(0,i.jsx)(B,{label:t,permalink:n})},n)}))})]})}const T={lastUpdated:"lastUpdated_vwxv"};function E(e){return(0,i.jsx)("div",{className:(0,u.Z)(b.k.docs.docFooterTagsRow,"row margin-bottom--sm"),children:(0,i.jsx)("div",{className:"col",children:(0,i.jsx)(Z,{...e})})})}function H(e){let{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:s,formattedLastUpdatedAt:a}=e;return(0,i.jsxs)("div",{className:(0,u.Z)(b.k.docs.docFooterEditMetaRow,"row"),children:[(0,i.jsx)("div",{className:"col",children:t&&(0,i.jsx)(y,{editUrl:t})}),(0,i.jsx)("div",{className:(0,u.Z)("col",T.lastUpdated),children:(n||s)&&(0,i.jsx)(N,{lastUpdatedAt:n,formattedLastUpdatedAt:a,lastUpdatedBy:s})})]})}function A(){const{metadata:e}=r(),{editUrl:t,lastUpdatedAt:n,formattedLastUpdatedAt:s,lastUpdatedBy:a,tags:o}=e,l=o.length>0,c=!!(t||n||a);return l||c?(0,i.jsxs)("footer",{className:(0,u.Z)(b.k.docs.docFooter,"docusaurus-mt-lg"),children:[l&&(0,i.jsx)(E,{tags:o}),c&&(0,i.jsx)(H,{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:a,formattedLastUpdatedAt:s})]}):null}var I=n(6043),M=n(6668);function S(e){const t=e.map((e=>({...e,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);t.forEach(((e,t)=>{const s=n.slice(2,e.level);e.parentIndex=Math.max(...s),n[e.level]=t}));const s=[];return t.forEach((e=>{const{parentIndex:n,...a}=e;n>=0?t[n].children.push(a):s.push(a)})),s}function U(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:s}=e;return t.flatMap((e=>{const t=U({toc:e.children,minHeadingLevel:n,maxHeadingLevel:s});return function(e){return e.level>=n&&e.level<=s}(e)?[{...e,children:t}]:t}))}function z(e){const t=e.getBoundingClientRect();return t.top===t.bottom?z(e.parentNode):t}function V(e,t){let{anchorTopOffset:n}=t;const s=e.find((e=>z(e).top>=n));if(s){return function(e){return e.top>0&&e.bottom{e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}function O(e){const t=(0,s.useRef)(void 0),n=R();(0,s.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:s,linkActiveClassName:a,minHeadingLevel:o,maxHeadingLevel:i}=e;function l(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(s),l=function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e;const s=[];for(let a=t;a<=n;a+=1)s.push(`h${a}.anchor`);return Array.from(document.querySelectorAll(s.join()))}({minHeadingLevel:o,maxHeadingLevel:i}),c=V(l,{anchorTopOffset:n.current}),r=e.find((e=>c&&c.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,n){n?(t.current&&t.current!==e&&t.current.classList.remove(a),e.classList.add(a),t.current=e):e.classList.remove(a)}(e,e===r)}))}return document.addEventListener("scroll",l),document.addEventListener("resize",l),l(),()=>{document.removeEventListener("scroll",l),document.removeEventListener("resize",l)}}),[e,n])}function P(e){let{toc:t,className:n,linkClassName:s,isChild:a}=e;return t.length?(0,i.jsx)("ul",{className:a?void 0:n,children:t.map((e=>(0,i.jsxs)("li",{children:[(0,i.jsx)(C.Z,{to:`#${e.id}`,className:s??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,i.jsx)(P,{isChild:!0,toc:e.children,className:n,linkClassName:s})]},e.id)))}):null}const $=s.memo(P);function D(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:a="table-of-contents__link",linkActiveClassName:o,minHeadingLevel:l,maxHeadingLevel:c,...r}=e;const d=(0,M.L)(),u=l??d.tableOfContents.minHeadingLevel,m=c??d.tableOfContents.maxHeadingLevel,h=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:a}=e;return(0,s.useMemo)((()=>U({toc:S(t),minHeadingLevel:n,maxHeadingLevel:a})),[t,n,a])}({toc:t,minHeadingLevel:u,maxHeadingLevel:m});return O((0,s.useMemo)((()=>{if(a&&o)return{linkClassName:a,linkActiveClassName:o,minHeadingLevel:u,maxHeadingLevel:m}}),[a,o,u,m])),(0,i.jsx)($,{toc:h,className:n,linkClassName:a,...r})}const W={tocCollapsibleButton:"tocCollapsibleButton_TO0P",tocCollapsibleButtonExpanded:"tocCollapsibleButtonExpanded_MG3E"};function F(e){let{collapsed:t,...n}=e;return(0,i.jsx)("button",{type:"button",...n,className:(0,u.Z)("clean-btn",W.tocCollapsibleButton,!t&&W.tocCollapsibleButtonExpanded,n.className),children:(0,i.jsx)(g.Z,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component",children:"On this page"})})}const q={tocCollapsible:"tocCollapsible_ETCw",tocCollapsibleContent:"tocCollapsibleContent_vkbj",tocCollapsibleExpanded:"tocCollapsibleExpanded_sAul"};function G(e){let{toc:t,className:n,minHeadingLevel:s,maxHeadingLevel:a}=e;const{collapsed:o,toggleCollapsed:l}=(0,I.u)({initialState:!0});return(0,i.jsxs)("div",{className:(0,u.Z)(q.tocCollapsible,!o&&q.tocCollapsibleExpanded,n),children:[(0,i.jsx)(F,{collapsed:o,onClick:l}),(0,i.jsx)(I.z,{lazy:!0,className:q.tocCollapsibleContent,collapsed:o,children:(0,i.jsx)(D,{toc:t,minHeadingLevel:s,maxHeadingLevel:a})})]})}const J={tocMobile:"tocMobile_ITEo"};function Y(){const{toc:e,frontMatter:t}=r();return(0,i.jsx)(G,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:(0,u.Z)(b.k.docs.docTocMobile,J.tocMobile)})}const Q={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"},X="table-of-contents__link toc-highlight",K="table-of-contents__link--active";function ee(e){let{className:t,...n}=e;return(0,i.jsx)("div",{className:(0,u.Z)(Q.tableOfContents,"thin-scrollbar",t),children:(0,i.jsx)(D,{...n,linkClassName:X,linkActiveClassName:K})})}function te(){const{toc:e,frontMatter:t}=r();return(0,i.jsx)(ee,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:b.k.docs.docTocDesktop})}var ne=n(2503),se=n(1151),ae=n(5742),oe=n(2389),ie=n(2949);function le(){const{prism:e}=(0,M.L)(),{colorMode:t}=(0,ie.I)(),n=e.theme,s=e.darkTheme||n;return"dark"===t?s:n}var ce=n(7594),re=n.n(ce);const de=/title=(?["'])(?.*?)\1/,ue=/\{(?<range>[\d,-]+)\}/,me={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"},lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""}};function he(e,t){const n=e.map((e=>{const{start:n,end:s}=me[e];return`(?:${n}\\s*(${t.flatMap((e=>[e.line,e.block?.start,e.block?.end].filter(Boolean))).join("|")})\\s*${s})`})).join("|");return new RegExp(`^\\s*(?:${n})\\s*$`)}function pe(e,t){let n=e.replace(/\n$/,"");const{language:s,magicComments:a,metastring:o}=t;if(o&&ue.test(o)){const e=o.match(ue).groups.range;if(0===a.length)throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${o}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);const t=a[0].className,s=re()(e).filter((e=>e>0)).map((e=>[e-1,[t]]));return{lineClassNames:Object.fromEntries(s),code:n}}if(void 0===s)return{lineClassNames:{},code:n};const i=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return he(["js","jsBlock"],t);case"jsx":case"tsx":return he(["js","jsBlock","jsx"],t);case"html":return he(["js","jsBlock","html"],t);case"python":case"py":case"bash":return he(["bash"],t);case"markdown":case"md":return he(["html","jsx","bash"],t);case"tex":case"latex":case"matlab":return he(["tex"],t);case"lua":case"haskell":case"sql":return he(["lua"],t);case"wasm":return he(["wasm"],t);default:return he(Object.keys(me).filter((e=>!["lua","wasm","tex","latex","matlab"].includes(e))),t)}}(s,a),l=n.split("\n"),c=Object.fromEntries(a.map((e=>[e.className,{start:0,range:""}]))),r=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 h=0;h<l.length;){const e=l[h].match(i);if(!e){h+=1;continue}const t=e.slice(1).find((e=>void 0!==e));r[t]?c[r[t]].range+=`${h},`:d[t]?c[d[t]].start=h:u[t]&&(c[u[t]].range+=`${c[u[t]].start}-${h-1},`),l.splice(h,1)}n=l.join("\n");const m={};return Object.entries(c).forEach((e=>{let[t,{range:n}]=e;re()(n).forEach((e=>{m[e]??=[],m[e].push(t)}))})),{lineClassNames:m,code:n}}const fe={codeBlockContainer:"codeBlockContainer_Ckt0"};function xe(e){let{as:t,...n}=e;const s=function(e){const t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach((e=>{let[s,a]=e;const o=t[s];o&&"string"==typeof a&&(n[o]=a)})),n}(le());return(0,i.jsx)(t,{...n,style:s,className:(0,u.Z)(n.className,fe.codeBlockContainer,b.k.common.codeBlock)})}const be={codeBlockContent:"codeBlockContent_biex",codeBlockTitle:"codeBlockTitle_Ktv7",codeBlock:"codeBlock_bY9V",codeBlockStandalone:"codeBlockStandalone_MEMb",codeBlockLines:"codeBlockLines_e6Vv",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_o6Pm",buttonGroup:"buttonGroup__atx"};function ge(e){let{children:t,className:n}=e;return(0,i.jsx)(xe,{as:"pre",tabIndex:0,className:(0,u.Z)(be.codeBlockStandalone,"thin-scrollbar",n),children:(0,i.jsx)("code",{className:be.codeBlockLines,children:t})})}const je={attributes:!0,characterData:!0,childList:!0,subtree:!0};function ve(e,t){const[n,a]=(0,s.useState)(),i=(0,s.useCallback)((()=>{a(e.current?.closest("[role=tabpanel][hidden]"))}),[e,a]);(0,s.useEffect)((()=>{i()}),[i]),function(e,t,n){void 0===n&&(n=je);const a=(0,o.zX)(t),i=(0,o.Ql)(n);(0,s.useEffect)((()=>{const t=new MutationObserver(a);return e&&t.observe(e,i),()=>t.disconnect()}),[e,a,i])}(n,(e=>{e.forEach((e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),i())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}var Ne=n(2573);const Ce={codeLine:"codeLine_lJS_",codeLineNumber:"codeLineNumber_Tfdd",codeLineContent:"codeLineContent_feaV"};function ke(e){let{line:t,classNames:n,showLineNumbers:s,getLineProps:a,getTokenProps:o}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");const l=a({line:t,className:(0,u.Z)(n,s&&Ce.codeLine)}),c=t.map(((e,t)=>(0,i.jsx)("span",{...o({token:e,key:t})},t)));return(0,i.jsxs)("span",{...l,children:[s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:Ce.codeLineNumber}),(0,i.jsx)("span",{className:Ce.codeLineContent,children:c})]}):c,(0,i.jsx)("br",{})]})}function Le(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.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 ye(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}const we={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function Be(e){let{code:t,className:n}=e;const[a,o]=(0,s.useState)(!1),l=(0,s.useRef)(void 0),c=(0,s.useCallback)((()=>{!function(e,t){let{target:n=document.body}=void 0===t?{}:t;if("string"!=typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const s=document.createElement("textarea"),a=document.activeElement;s.value=e,s.setAttribute("readonly",""),s.style.contain="strict",s.style.position="absolute",s.style.left="-9999px",s.style.fontSize="12pt";const o=document.getSelection(),i=o.rangeCount>0&&o.getRangeAt(0);n.append(s),s.select(),s.selectionStart=0,s.selectionEnd=e.length;let l=!1;try{l=document.execCommand("copy")}catch{}s.remove(),i&&(o.removeAllRanges(),o.addRange(i)),a&&a.focus()}(t),o(!0),l.current=window.setTimeout((()=>{o(!1)}),1e3)}),[t]);return(0,s.useEffect)((()=>()=>window.clearTimeout(l.current)),[]),(0,i.jsx)("button",{type:"button","aria-label":a?(0,g.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,g.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,g.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,u.Z)("clean-btn",n,we.copyButton,a&&we.copyButtonCopied),onClick:c,children:(0,i.jsxs)("span",{className:we.copyButtonIcons,"aria-hidden":"true",children:[(0,i.jsx)(Le,{className:we.copyButtonIcon}),(0,i.jsx)(ye,{className:we.copyButtonSuccessIcon})]})})}function _e(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.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"})})}const Ze={wordWrapButtonIcon:"wordWrapButtonIcon_Bwma",wordWrapButtonEnabled:"wordWrapButtonEnabled_EoeP"};function Te(e){let{className:t,onClick:n,isEnabled:s}=e;const a=(0,g.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,i.jsx)("button",{type:"button",onClick:n,className:(0,u.Z)("clean-btn",t,s&&Ze.wordWrapButtonEnabled),"aria-label":a,title:a,children:(0,i.jsx)(_e,{className:Ze.wordWrapButtonIcon,"aria-hidden":"true"})})}function Ee(e){let{children:t,className:n="",metastring:a,title:o,showLineNumbers:l,language:c}=e;const{prism:{defaultLanguage:r,magicComments:d}}=(0,M.L)(),m=function(e){return e?.toLowerCase()}(c??function(e){const t=e.split(" ").find((e=>e.startsWith("language-")));return t?.replace(/language-/,"")}(n)??r),h=le(),p=function(){const[e,t]=(0,s.useState)(!1),[n,a]=(0,s.useState)(!1),o=(0,s.useRef)(null),i=(0,s.useCallback)((()=>{const n=o.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[o,e]),l=(0,s.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=o.current,n=e>t||o.current.querySelector("code").hasAttribute("style");a(n)}),[o]);return ve(o,l),(0,s.useEffect)((()=>{l()}),[e,l]),(0,s.useEffect)((()=>(window.addEventListener("resize",l,{passive:!0}),()=>{window.removeEventListener("resize",l)})),[l]),{codeBlockRef:o,isEnabled:e,isCodeScrollable:n,toggle:i}}(),f=function(e){return e?.match(de)?.groups.title??""}(a)||o,{lineClassNames:x,code:b}=pe(t,{metastring:a,language:m,magicComments:d}),g=l??function(e){return Boolean(e?.includes("showLineNumbers"))}(a);return(0,i.jsxs)(xe,{as:"div",className:(0,u.Z)(n,m&&!n.includes(`language-${m}`)&&`language-${m}`),children:[f&&(0,i.jsx)("div",{className:be.codeBlockTitle,children:f}),(0,i.jsxs)("div",{className:be.codeBlockContent,children:[(0,i.jsx)(Ne.y$,{theme:h,code:b,language:m??"text",children:e=>{let{className:t,style:n,tokens:s,getLineProps:a,getTokenProps:o}=e;return(0,i.jsx)("pre",{tabIndex:0,ref:p.codeBlockRef,className:(0,u.Z)(t,be.codeBlock,"thin-scrollbar"),style:n,children:(0,i.jsx)("code",{className:(0,u.Z)(be.codeBlockLines,g&&be.codeBlockLinesWithNumbering),children:s.map(((e,t)=>(0,i.jsx)(ke,{line:e,getLineProps:a,getTokenProps:o,classNames:x[t],showLineNumbers:g},t)))})})}}),(0,i.jsxs)("div",{className:be.buttonGroup,children:[(p.isEnabled||p.isCodeScrollable)&&(0,i.jsx)(Te,{className:be.codeButton,onClick:()=>p.toggle(),isEnabled:p.isEnabled}),(0,i.jsx)(Be,{className:be.codeButton,code:b})]})]})]})}function He(e){let{children:t,...n}=e;const a=(0,oe.Z)(),o=function(e){return s.Children.toArray(e).some((e=>(0,s.isValidElement)(e)))?e:Array.isArray(e)?e.join(""):e}(t),l="string"==typeof o?Ee:ge;return(0,i.jsx)(l,{...n,children:o},String(a))}var Ae=n(4673);function Ie(e){const t=s.Children.toArray(e.children),n=t.find((e=>s.isValidElement(e)&&"summary"===e.type)),a=(0,i.jsx)(i.Fragment,{children:t.filter((e=>e!==n))});return(0,i.jsx)(Ae.Z,{...e,summary:n,children:a})}function Me(e){return(0,i.jsx)(ne.Z,{...e})}const Se={containsTaskList:"containsTaskList_mC6p"};function Ue(e){if(void 0!==e)return(0,u.Z)(e,e?.includes("contains-task-list")&&Se.containsTaskList)}const ze={img:"img_ev3q"};function Ve(e){const{mdxAdmonitionTitle:t,rest:n}=function(e){const t=s.Children.toArray(e),n=t.find((e=>s.isValidElement(e)&&"mdxAdmonitionTitle"===e.type)),a=t.filter((e=>e!==n)),o=n?.props.children;return{mdxAdmonitionTitle:o,rest:a.length>0?(0,i.jsx)(i.Fragment,{children:a}):null}}(e.children),a=e.title??t;return{...e,...a&&{title:a},children:n}}const Re={admonition:"admonition_xJq3",admonitionHeading:"admonitionHeading_Gvgb",admonitionIcon:"admonitionIcon_Rf37",admonitionContent:"admonitionContent_BuS1"};function Oe(e){let{type:t,className:n,children:s}=e;return(0,i.jsx)("div",{className:(0,u.Z)(b.k.common.admonition,b.k.common.admonitionType(t),Re.admonition,n),children:s})}function Pe(e){let{icon:t,title:n}=e;return(0,i.jsxs)("div",{className:Re.admonitionHeading,children:[(0,i.jsx)("span",{className:Re.admonitionIcon,children:t}),n]})}function $e(e){let{children:t}=e;return t?(0,i.jsx)("div",{className:Re.admonitionContent,children:t}):null}function De(e){const{type:t,icon:n,title:s,children:a,className:o}=e;return(0,i.jsxs)(Oe,{type:t,className:o,children:[(0,i.jsx)(Pe,{title:s,icon:n}),(0,i.jsx)($e,{children:a})]})}function We(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.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"})})}const Fe={icon:(0,i.jsx)(We,{}),title:(0,i.jsx)(g.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function qe(e){return(0,i.jsx)(De,{...Fe,...e,className:(0,u.Z)("alert alert--secondary",e.className),children:e.children})}function Ge(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.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"})})}const Je={icon:(0,i.jsx)(Ge,{}),title:(0,i.jsx)(g.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function Ye(e){return(0,i.jsx)(De,{...Je,...e,className:(0,u.Z)("alert alert--success",e.className),children:e.children})}function Qe(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.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"})})}const Xe={icon:(0,i.jsx)(Qe,{}),title:(0,i.jsx)(g.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function Ke(e){return(0,i.jsx)(De,{...Xe,...e,className:(0,u.Z)("alert alert--info",e.className),children:e.children})}function et(e){return(0,i.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,i.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"})})}const tt={icon:(0,i.jsx)(et,{}),title:(0,i.jsx)(g.Z,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function nt(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.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"})})}const st={icon:(0,i.jsx)(nt,{}),title:(0,i.jsx)(g.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const at={icon:(0,i.jsx)(et,{}),title:(0,i.jsx)(g.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const ot={...{note:qe,tip:Ye,info:Ke,warning:function(e){return(0,i.jsx)(De,{...tt,...e,className:(0,u.Z)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,i.jsx)(De,{...st,...e,className:(0,u.Z)("alert alert--danger",e.className),children:e.children})}},...{secondary:e=>(0,i.jsx)(qe,{title:"secondary",...e}),important:e=>(0,i.jsx)(Ke,{title:"important",...e}),success:e=>(0,i.jsx)(Ye,{title:"success",...e}),caution:function(e){return(0,i.jsx)(De,{...at,...e,className:(0,u.Z)("alert alert--warning",e.className),children:e.children})}}};function it(e){const t=Ve(e),n=(s=t.type,ot[s]||(console.warn(`No admonition component found for admonition type "${s}". Using Info as fallback.`),ot.info));var s;return(0,i.jsx)(n,{...t})}const lt={Head:ae.Z,details:Ie,Details:Ie,code:function(e){return s.Children.toArray(e.children).every((e=>"string"==typeof e&&!e.includes("\n")))?(0,i.jsx)("code",{...e}):(0,i.jsx)(He,{...e})},a:function(e){return(0,i.jsx)(C.Z,{...e})},pre:function(e){return(0,i.jsx)(i.Fragment,{children:e.children})},ul:function(e){return(0,i.jsx)("ul",{...e,className:Ue(e.className)})},img:function(e){return(0,i.jsx)("img",{loading:"lazy",...e,className:(t=e.className,(0,u.Z)(t,ze.img))});var t},h1:e=>(0,i.jsx)(Me,{as:"h1",...e}),h2:e=>(0,i.jsx)(Me,{as:"h2",...e}),h3:e=>(0,i.jsx)(Me,{as:"h3",...e}),h4:e=>(0,i.jsx)(Me,{as:"h4",...e}),h5:e=>(0,i.jsx)(Me,{as:"h5",...e}),h6:e=>(0,i.jsx)(Me,{as:"h6",...e}),admonition:it,mermaid:()=>null};function ct(e){let{children:t}=e;return(0,i.jsx)(se.Z,{components:lt,children:t})}function rt(e){let{children:t}=e;const n=function(){const{metadata:e,frontMatter:t,contentTitle:n}=r();return t.hide_title||void 0!==n?null:e.title}();return(0,i.jsxs)("div",{className:(0,u.Z)(b.k.docs.docMarkdown,"markdown"),children:[n&&(0,i.jsx)("header",{children:(0,i.jsx)(ne.Z,{as:"h1",children:n})}),(0,i.jsx)(ct,{children:t})]})}var dt=n(1310);function ut(){return(0,i.jsx)(g.Z,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function mt(){return(0,i.jsx)(g.Z,{id:"theme.unlistedContent.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 ht(){return(0,i.jsx)(ae.Z,{children:(0,i.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function pt(e){let{className:t}=e;return(0,i.jsx)(it,{type:"caution",title:(0,i.jsx)(ut,{}),className:(0,u.Z)(t,b.k.common.unlistedBanner),children:(0,i.jsx)(mt,{})})}function ft(e){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ht,{}),(0,i.jsx)(pt,{...e})]})}const xt={docItemContainer:"docItemContainer_Djhp",docItemCol:"docItemCol_VOVn"};function bt(e){let{children:t}=e;const n=function(){const{frontMatter:e,toc:t}=r(),n=(0,m.i)(),s=e.hide_table_of_contents,a=!s&&t.length>0;return{hidden:s,mobile:a?(0,i.jsx)(Y,{}):void 0,desktop:!a||"desktop"!==n&&"ssr"!==n?void 0:(0,i.jsx)(te,{})}}(),{metadata:{unlisted:s}}=r();return(0,i.jsxs)("div",{className:"row",children:[(0,i.jsxs)("div",{className:(0,u.Z)("col",!n.hidden&&xt.docItemCol),children:[s&&(0,i.jsx)(ft,{}),(0,i.jsx)(f.Z,{}),(0,i.jsxs)("div",{className:xt.docItemContainer,children:[(0,i.jsxs)("article",{children:[(0,i.jsx)(dt.Z,{}),(0,i.jsx)(x.Z,{}),n.mobile,(0,i.jsx)(rt,{children:t}),(0,i.jsx)(A,{})]}),(0,i.jsx)(p,{})]})]}),n.desktop&&(0,i.jsx)("div",{className:"col col--3",children:n.desktop})]})}function gt(e){const t=`docs-doc-id-${e.content.metadata.id}`,n=e.content;return(0,i.jsx)(c,{content:e.content,children:(0,i.jsxs)(a.FG,{className:t,children:[(0,i.jsx)(d,{}),(0,i.jsx)(bt,{children:(0,i.jsx)(n,{})})]})})}},4966:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});n(7294);var s=n(5999),a=n(512),o=n(9960),i=n(5893);function l(e){const{permalink:t,title:n,subLabel:s,isNext:l}=e;return(0,i.jsxs)(o.Z,{className:(0,a.Z)("pagination-nav__link",l?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[s&&(0,i.jsx)("div",{className:"pagination-nav__sublabel",children:s}),(0,i.jsx)("div",{className:"pagination-nav__label",children:n})]})}function c(e){const{previous:t,next:n}=e;return(0,i.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,s.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[t&&(0,i.jsx)(l,{...t,subLabel:(0,i.jsx)(s.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),n&&(0,i.jsx)(l,{...n,subLabel:(0,i.jsx)(s.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}},4364:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});n(7294);var s=n(512),a=n(5999),o=n(5281),i=n(4477),l=n(5893);function c(e){let{className:t}=e;const n=(0,i.E)();return n.badge?(0,l.jsx)("span",{className:(0,s.Z)(t,o.k.docs.docVersionBadge,"badge badge--secondary"),children:(0,l.jsx)(a.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label},children:"Version: {versionLabel}"})}):null}},3120:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});n(7294);var s=n(512),a=n(2263),o=n(9960),i=n(5999),l=n(143),c=n(5281),r=n(373),d=n(4477),u=n(5893);const m={unreleased:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,u.jsx)(i.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,u.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,u.jsx)(i.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,u.jsx)("b",{children:n.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function h(e){const t=m[e.versionMetadata.banner];return(0,u.jsx)(t,{...e})}function p(e){let{versionLabel:t,to:n,onClick:s}=e;return(0,u.jsx)(i.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:(0,u.jsx)("b",{children:(0,u.jsx)(o.Z,{to:n,onClick:s,children:(0,u.jsx)(i.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 f(e){let{className:t,versionMetadata:n}=e;const{siteConfig:{title:o}}=(0,a.Z)(),{pluginId:i}=(0,l.gA)({failfast:!0}),{savePreferredVersionName:d}=(0,r.J)(i),{latestDocSuggestion:m,latestVersionSuggestion:f}=(0,l.Jo)(i),x=m??(b=f).docs.find((e=>e.id===b.mainDocId));var b;return(0,u.jsxs)("div",{className:(0,s.Z)(t,c.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,u.jsx)("div",{children:(0,u.jsx)(h,{siteTitle:o,versionMetadata:n})}),(0,u.jsx)("div",{className:"margin-top--md",children:(0,u.jsx)(p,{versionLabel:f.label,to:x.path,onClick:()=>d(f.name)})})]})}function x(e){let{className:t}=e;const n=(0,d.E)();return n.banner?(0,u.jsx)(f,{className:t,versionMetadata:n}):null}},7594:(e,t)=>{function n(e){let t,n=[];for(let s of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(s))n.push(parseInt(s,10));else if(t=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,s,a,o]=t;if(s&&o){s=parseInt(s),o=parseInt(o);const e=s<o?1:-1;"-"!==a&&".."!==a&&"\u2025"!==a||(o+=e);for(let t=s;t!==o;t+=e)n.push(t)}}return n}t.default=n,e.exports=n},1151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l,a:()=>i});var s=n(7294);const a={},o=s.createContext(a);function i(e){const t=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:i(e.components),s.createElement(o.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/1a4e3797.5fb5e418.js b/zh-CN/assets/js/1a4e3797.5fb5e418.js deleted file mode 100644 index a7600067f6..0000000000 --- a/zh-CN/assets/js/1a4e3797.5fb5e418.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7920],{2027:(e,t,r)=>{r.r(t),r.d(t,{default:()=>$});var s=r(7294),a=r(2263),n=r(8862),c=r(5742),l=r(9960),o=r(5999);const u=["zero","one","two","few","many","other"];function h(e){return u.filter((t=>e.includes(t)))}const i={locale:"en",pluralForms:h(["one","other"]),select:e=>1===e?"one":"other"};function m(){const{i18n:{currentLocale:e}}=(0,a.Z)();return(0,s.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:h(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),i}}),[e])}function d(){const e=m();return{selectMessage:(t,r)=>function(e,t,r){const s=e.split("|");if(1===s.length)return s[0];s.length>r.pluralForms.length&&console.error(`For locale=${r.locale}, a maximum of ${r.pluralForms.length} plural forms are expected (${r.pluralForms.join(",")}), but the message contains ${s.length}: ${e}`);const a=r.select(t),n=r.pluralForms.indexOf(a);return s[Math.min(n,s.length-1)]}(r,t,e)}}var p=r(1728),g=r(6550),x=r(2389),f=r(8087);const y=function(){const e=(0,x.Z)(),t=(0,g.k6)(),r=(0,g.TH)(),{siteConfig:{baseUrl:s}}=(0,a.Z)(),n=e?new URLSearchParams(r.search):null,c=n?.get("q")||"",l=n?.get("ctx")||"",o=n?.get("version")||"",u=e=>{const t=new URLSearchParams(r.search);return e?t.set("q",e):t.delete("q"),t};return{searchValue:c,searchContext:l&&Array.isArray(f.Kc)&&f.Kc.some((e=>"string"==typeof e?e===l:e.path===l))?l:"",searchVersion:o,updateSearchPath:e=>{const r=u(e);t.replace({search:r.toString()})},updateSearchContext:e=>{const s=new URLSearchParams(r.search);s.set("ctx",e),t.replace({search:s.toString()})},generateSearchPageLink:e=>{const t=u(e);return`${s}search?${t.toString()}`}}};var S=r(22),C=r(8202),j=r(2539),I=r(726),w=r(1073),v=r(311),R=r(3926);const P={searchContextInput:"searchContextInput_mXoe",searchQueryInput:"searchQueryInput_CFBF",searchResultItem:"searchResultItem_U687",searchResultItemPath:"searchResultItemPath_uIbk",searchResultItemSummary:"searchResultItemSummary_oZHr",searchQueryColumn:"searchQueryColumn_q7nx",searchContextColumn:"searchContextColumn_oWAF"};var b=r(51),_=r(5893);function F(){const{siteConfig:{baseUrl:e},i18n:{currentLocale:t}}=(0,a.Z)(),{selectMessage:r}=d(),{searchValue:n,searchContext:l,searchVersion:u,updateSearchPath:h,updateSearchContext:i}=y(),[m,g]=(0,s.useState)(n),[x,j]=(0,s.useState)(),[I,w]=(0,s.useState)(),R=`${e}${u}`,F=(0,s.useMemo)((()=>m?(0,o.I)({id:"theme.SearchPage.existingResultsTitle",message:'Search results for "{query}"',description:"The search page title for non-empty query"},{query:m}):(0,o.I)({id:"theme.SearchPage.emptyResultsTitle",message:"Search the documentation",description:"The search page title for empty query"})),[m]);(0,s.useEffect)((()=>{h(m),x&&(m?x(m,(e=>{w(e)})):w(void 0))}),[m,x]);const $=(0,s.useCallback)((e=>{g(e.target.value)}),[]);return(0,s.useEffect)((()=>{n&&n!==m&&g(n)}),[n]),(0,s.useEffect)((()=>{!async function(){const{wrappedIndexes:e,zhDictionary:t}=!Array.isArray(f.Kc)||l||f.pQ?await(0,S.w)(R,l):{wrappedIndexes:[],zhDictionary:[]};j((()=>(0,C.v)(e,t,100)))}()}),[l,R]),(0,_.jsxs)(s.Fragment,{children:[(0,_.jsxs)(c.Z,{children:[(0,_.jsx)("meta",{property:"robots",content:"noindex, follow"}),(0,_.jsx)("title",{children:F})]}),(0,_.jsxs)("div",{className:"container margin-vert--lg",children:[(0,_.jsx)("h1",{children:F}),(0,_.jsxs)("div",{className:"row",children:[(0,_.jsx)("div",{className:(0,p.Z)("col",{[P.searchQueryColumn]:Array.isArray(f.Kc),"col--9":Array.isArray(f.Kc),"col--12":!Array.isArray(f.Kc)}),children:(0,_.jsx)("input",{type:"search",name:"q",className:P.searchQueryInput,"aria-label":"Search",onChange:$,value:m,autoComplete:"off",autoFocus:!0})}),Array.isArray(f.Kc)?(0,_.jsx)("div",{className:(0,p.Z)("col","col--3","padding-left--none",P.searchContextColumn),children:(0,_.jsxs)("select",{name:"search-context",className:P.searchContextInput,id:"context-selector",value:l,onChange:e=>i(e.target.value),children:[f.pQ&&(0,_.jsx)("option",{value:"",children:(0,o.I)({id:"theme.SearchPage.searchContext.everywhere",message:"everywhere"})}),f.Kc.map((e=>{const{label:r,path:s}=(0,b._)(e,t);return(0,_.jsx)("option",{value:s,children:r},s)}))]})}):null]}),!x&&m&&(0,_.jsx)("div",{children:(0,_.jsx)(v.Z,{})}),I&&(I.length>0?(0,_.jsx)("p",{children:r(I.length,(0,o.I)({id:"theme.SearchPage.documentsFound.plurals",message:"1 document found|{count} documents found",description:'Pluralized label for "{count} documents found". 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)'},{count:I.length}))}):(0,_.jsx)("p",{children:(0,o.I)({id:"theme.SearchPage.noResultsText",message:"No documents were found",description:"The paragraph for empty search result"})})),(0,_.jsx)("section",{children:I&&I.map((e=>(0,_.jsx)(A,{searchResult:e},e.document.i)))})]})]})}function A(e){let{searchResult:{document:t,type:r,page:s,tokens:a,metadata:n}}=e;const c=0===r,o=2===r,u=(c?t.b:s.b).slice(),h=o?t.s:t.t;c||u.push(s.t);let i="";if(f.vc&&a.length>0){const e=new URLSearchParams;for(const t of a)e.append("_highlight",t);i=`?${e.toString()}`}return(0,_.jsxs)("article",{className:P.searchResultItem,children:[(0,_.jsx)("h2",{children:(0,_.jsx)(l.Z,{to:t.u+i+(t.h||""),dangerouslySetInnerHTML:{__html:o?(0,j.C)(h,a):(0,I.o)(h,(0,w.m)(n,"t"),a,100)}})}),u.length>0&&(0,_.jsx)("p",{className:P.searchResultItemPath,children:(0,R.e)(u)}),o&&(0,_.jsx)("p",{className:P.searchResultItemSummary,dangerouslySetInnerHTML:{__html:(0,I.o)(t.t,(0,w.m)(n,"t"),a,100)}})]})}const $=function(){return(0,_.jsx)(n.Z,{children:(0,_.jsx)(F,{})})}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/1a4e3797.b37fdfae.js b/zh-CN/assets/js/1a4e3797.b37fdfae.js new file mode 100644 index 0000000000..3013e31893 --- /dev/null +++ b/zh-CN/assets/js/1a4e3797.b37fdfae.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7920],{8824:(e,t,r)=>{r.d(t,{c:()=>u});var s=r(7294),a=r(2263);const n=["zero","one","two","few","many","other"];function c(e){return n.filter((t=>e.includes(t)))}const l={locale:"en",pluralForms:c(["one","other"]),select:e=>1===e?"one":"other"};function o(){const{i18n:{currentLocale:e}}=(0,a.Z)();return(0,s.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:c(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),l}}),[e])}function u(){const e=o();return{selectMessage:(t,r)=>function(e,t,r){const s=e.split("|");if(1===s.length)return s[0];s.length>r.pluralForms.length&&console.error(`For locale=${r.locale}, a maximum of ${r.pluralForms.length} plural forms are expected (${r.pluralForms.join(",")}), but the message contains ${s.length}: ${e}`);const a=r.select(t),n=r.pluralForms.indexOf(a);return s[Math.min(n,s.length-1)]}(r,t,e)}}},1473:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var s=r(7294),a=r(2263),n=r(8862),c=r(5742),l=r(3692),o=r(5999),u=r(8824),h=r(1728),i=r(6550),m=r(2389),d=r(8087);const p=function(){const e=(0,m.Z)(),t=(0,i.k6)(),r=(0,i.TH)(),{siteConfig:{baseUrl:s}}=(0,a.Z)(),n=e?new URLSearchParams(r.search):null,c=n?.get("q")||"",l=n?.get("ctx")||"",o=n?.get("version")||"",u=e=>{const t=new URLSearchParams(r.search);return e?t.set("q",e):t.delete("q"),t};return{searchValue:c,searchContext:l&&Array.isArray(d.Kc)&&d.Kc.some((e=>"string"==typeof e?e===l:e.path===l))?l:"",searchVersion:o,updateSearchPath:e=>{const r=u(e);t.replace({search:r.toString()})},updateSearchContext:e=>{const s=new URLSearchParams(r.search);s.set("ctx",e),t.replace({search:s.toString()})},generateSearchPageLink:e=>{const t=u(e);return`${s}search?${t.toString()}`}}};var g=r(22),x=r(8202),f=r(2539),y=r(726),S=r(1073),C=r(311),j=r(3926);const I={searchContextInput:"searchContextInput_mXoe",searchQueryInput:"searchQueryInput_CFBF",searchResultItem:"searchResultItem_U687",searchResultItemPath:"searchResultItemPath_uIbk",searchResultItemSummary:"searchResultItemSummary_oZHr",searchQueryColumn:"searchQueryColumn_q7nx",searchContextColumn:"searchContextColumn_oWAF"};var w=r(51),v=r(5893);function R(){const{siteConfig:{baseUrl:e},i18n:{currentLocale:t}}=(0,a.Z)(),{selectMessage:r}=(0,u.c)(),{searchValue:n,searchContext:l,searchVersion:i,updateSearchPath:m,updateSearchContext:f}=p(),[y,S]=(0,s.useState)(n),[j,R]=(0,s.useState)(),[b,_]=(0,s.useState)(),F=`${e}${i}`,A=(0,s.useMemo)((()=>y?(0,o.I)({id:"theme.SearchPage.existingResultsTitle",message:'Search results for "{query}"',description:"The search page title for non-empty query"},{query:y}):(0,o.I)({id:"theme.SearchPage.emptyResultsTitle",message:"Search the documentation",description:"The search page title for empty query"})),[y]);(0,s.useEffect)((()=>{m(y),j&&(y?j(y,(e=>{_(e)})):_(void 0))}),[y,j]);const $=(0,s.useCallback)((e=>{S(e.target.value)}),[]);return(0,s.useEffect)((()=>{n&&n!==y&&S(n)}),[n]),(0,s.useEffect)((()=>{!async function(){const{wrappedIndexes:e,zhDictionary:t}=!Array.isArray(d.Kc)||l||d.pQ?await(0,g.w)(F,l):{wrappedIndexes:[],zhDictionary:[]};R((()=>(0,x.v)(e,t,100)))}()}),[l,F]),(0,v.jsxs)(s.Fragment,{children:[(0,v.jsxs)(c.Z,{children:[(0,v.jsx)("meta",{property:"robots",content:"noindex, follow"}),(0,v.jsx)("title",{children:A})]}),(0,v.jsxs)("div",{className:"container margin-vert--lg",children:[(0,v.jsx)("h1",{children:A}),(0,v.jsxs)("div",{className:"row",children:[(0,v.jsx)("div",{className:(0,h.Z)("col",{[I.searchQueryColumn]:Array.isArray(d.Kc),"col--9":Array.isArray(d.Kc),"col--12":!Array.isArray(d.Kc)}),children:(0,v.jsx)("input",{type:"search",name:"q",className:I.searchQueryInput,"aria-label":"Search",onChange:$,value:y,autoComplete:"off",autoFocus:!0})}),Array.isArray(d.Kc)?(0,v.jsx)("div",{className:(0,h.Z)("col","col--3","padding-left--none",I.searchContextColumn),children:(0,v.jsxs)("select",{name:"search-context",className:I.searchContextInput,id:"context-selector",value:l,onChange:e=>f(e.target.value),children:[d.pQ&&(0,v.jsx)("option",{value:"",children:(0,o.I)({id:"theme.SearchPage.searchContext.everywhere",message:"everywhere"})}),d.Kc.map((e=>{const{label:r,path:s}=(0,w._)(e,t);return(0,v.jsx)("option",{value:s,children:r},s)}))]})}):null]}),!j&&y&&(0,v.jsx)("div",{children:(0,v.jsx)(C.Z,{})}),b&&(b.length>0?(0,v.jsx)("p",{children:r(b.length,(0,o.I)({id:"theme.SearchPage.documentsFound.plurals",message:"1 document found|{count} documents found",description:'Pluralized label for "{count} documents found". 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)'},{count:b.length}))}):(0,v.jsx)("p",{children:(0,o.I)({id:"theme.SearchPage.noResultsText",message:"No documents were found",description:"The paragraph for empty search result"})})),(0,v.jsx)("section",{children:b&&b.map((e=>(0,v.jsx)(P,{searchResult:e},e.document.i)))})]})]})}function P(e){let{searchResult:{document:t,type:r,page:s,tokens:a,metadata:n}}=e;const c=0===r,o=2===r,u=(c?t.b:s.b).slice(),h=o?t.s:t.t;c||u.push(s.t);let i="";if(d.vc&&a.length>0){const e=new URLSearchParams;for(const t of a)e.append("_highlight",t);i=`?${e.toString()}`}return(0,v.jsxs)("article",{className:I.searchResultItem,children:[(0,v.jsx)("h2",{children:(0,v.jsx)(l.Z,{to:t.u+i+(t.h||""),dangerouslySetInnerHTML:{__html:o?(0,f.C)(h,a):(0,y.o)(h,(0,S.m)(n,"t"),a,100)}})}),u.length>0&&(0,v.jsx)("p",{className:I.searchResultItemPath,children:(0,j.e)(u)}),o&&(0,v.jsx)("p",{className:I.searchResultItemSummary,dangerouslySetInnerHTML:{__html:(0,y.o)(t.t,(0,S.m)(n,"t"),a,100)}})]})}const b=function(){return(0,v.jsx)(n.Z,{children:(0,v.jsx)(R,{})})}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/1f08bd40.d0b9bb8f.js b/zh-CN/assets/js/1f08bd40.d0b9bb8f.js deleted file mode 100644 index dcb7f60d2e..0000000000 --- a/zh-CN/assets/js/1f08bd40.d0b9bb8f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[312],{5467:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>l,default:()=>m,frontMatter:()=>u,metadata:()=>i,toc:()=>d});var a=n(5893),r=n(1151),s=n(4866),o=n(5162);const u={},l="Row Data Packet",i={id:"examples/typescript/row-data/row-data-packet",title:"Row Data Packet",description:"",source:"@site/docs/examples/typescript/row-data/00-row-data-packet.mdx",sourceDirName:"examples/typescript/row-data",slug:"/examples/typescript/row-data/row-data-packet",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-data-packet",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/row-data/00-row-data-packet.mdx",tags:[],version:"current",sidebarPosition:0,frontMatter:{},sidebar:"examples",previous:{title:"Row Data Packet",permalink:"/node-mysql2/zh-CN/docs/category/row-data-packet"},next:{title:"Row Data Packet (Row as Array)",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,r.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h1,{id:"row-data-packet",children:"Row Data Packet"}),"\n",(0,a.jsx)(s.Z,{children:(0,a.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n id: number;\n name: string;\n}\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Getting users */\n const [users] = await conn.query<User[]>(\n 'SELECT * FROM `users` ORDER BY `name` ASC;'\n );\n\n users.forEach((user) => {\n console.log('-----------');\n console.log('id: ', user.id);\n console.log('name:', user.name);\n });\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * -----------\n * id: 4\n * name: Gween\n * -----------\n * id: 2\n * name: John\n * -----------\n * id: 1\n * name: Josh\n * -----------\n * id: 3\n * name: Marie\n */\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,r.a)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var a=n(512);const r={tabItem:"tabItem_Ymn6"};var s=n(5893);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,a.Z)(r.tabItem,o),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>k});var a=n(7294),r=n(512),s=n(2466),o=n(6550),u=n(469),l=n(1980),i=n(7392),c=n(12);function d(e){return a.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,a.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,a.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:a,default:r}}=e;return{value:t,label:n,attributes:a,default:r}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const r=(0,o.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,l._X)(s),(0,a.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(r.location.search);t.set(s,e),r.replace({...r.location,search:t.toString()})}),[s,r])]}function h(e){const{defaultValue:t,queryString:n=!1,groupId:r}=e,s=p(e),[o,l]=(0,a.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const a=n.find((e=>e.default))??n[0];if(!a)throw new Error("Unexpected error: 0 tabValues");return a.value}({defaultValue:t,tabValues:s}))),[i,d]=f({queryString:n,groupId:r}),[h,b]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[r,s]=(0,c.Nk)(n);return[r,(0,a.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:r}),w=(()=>{const e=i??h;return m({value:e,tabValues:s})?e:null})();(0,u.Z)((()=>{w&&l(w)}),[w]);return{selectedValue:o,selectValue:(0,a.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=n(2389);const w={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var y=n(5893);function v(e){let{className:t,block:n,selectedValue:a,selectValue:o,tabValues:u}=e;const l=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=l.indexOf(t),r=u[n].value;r!==a&&(i(t),o(r))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=l.indexOf(e.currentTarget)+1;t=l[n]??l[0];break}case"ArrowLeft":{const n=l.indexOf(e.currentTarget)-1;t=l[n]??l[l.length-1];break}}t?.focus()};return(0,y.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":n},t),children:u.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,y.jsx)("li",{role:"tab",tabIndex:a===t?0:-1,"aria-selected":a===t,ref:e=>l.push(e),onKeyDown:d,onClick:c,...s,className:(0,r.Z)("tabs__item",w.tabItem,s?.className,{"tabs__item--active":a===t}),children:n??t},t)}))})}function g(e){let{lazy:t,children:n,selectedValue:r}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===r));return e?(0,a.cloneElement)(e,{className:"margin-top--md"}):null}return(0,y.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,a.cloneElement)(e,{key:t,hidden:e.props.value!==r})))})}function x(e){const t=h(e);return(0,y.jsxs)("div",{className:(0,r.Z)("tabs-container",w.tabList),children:[(0,y.jsx)(v,{...e,...t}),(0,y.jsx)(g,{...e,...t})]})}function k(e){const t=(0,b.Z)();return(0,y.jsx)(x,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>u,a:()=>o});var a=n(7294);const r={},s=a.createContext(r);function o(e){const t=a.useContext(s);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function u(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),a.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/22161331.df0f36b5.js b/zh-CN/assets/js/22161331.df0f36b5.js new file mode 100644 index 0000000000..cb78c09ae2 --- /dev/null +++ b/zh-CN/assets/js/22161331.df0f36b5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[556],{7165:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>p,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),s=t(1151),o=t(4866),a=t(5162);const l={},u="MySQL Proxy",c={id:"examples/tests/mysql-proxy",title:"MySQL Proxy",description:"",source:"@site/docs/examples/tests/mysql-proxy.mdx",sourceDirName:"examples/tests",slug:"/examples/tests/mysql-proxy",permalink:"/node-mysql2/zh-CN/docs/examples/tests/mysql-proxy",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/tests/mysql-proxy.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"await \u2014 co",permalink:"/node-mysql2/zh-CN/docs/examples/promise-wrapper/co-await"},next:{title:"Pool",permalink:"/node-mysql2/zh-CN/docs/examples/tests/pool"}},i={},d=[];function m(e){const n={code:"code",h1:"h1",pre:"pre",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"mysql-proxy",children:"MySQL Proxy"}),"\n",(0,r.jsx)(o.Z,{children:(0,r.jsx)(a.Z,{value:"index.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst ClientFlags = require('mysql2/lib/constants/client.js');\n\nconst server = mysql.createServer();\nserver.listen(3307);\n\nserver.on('connection', (conn) => {\n console.log('connection');\n\n conn.serverHandshake({\n protocolVersion: 10,\n serverVersion: 'node.js rocks',\n connectionId: 1234,\n statusFlags: 2,\n characterSet: 8,\n capabilityFlags: 0xffffff ^ ClientFlags.COMPRESS,\n });\n\n conn.on('field_list', (table, fields) => {\n console.log('field list:', table, fields);\n conn.writeEof();\n });\n\n const remote = mysql.createConnection({\n user: 'root',\n database: 'dbname',\n host: 'server.example.com',\n password: 'secret',\n });\n\n conn.on('query', (sql) => {\n console.log(`proxying query: ${sql}`);\n remote.query(sql, function (err) {\n // overloaded args, either (err, result :object)\n // or (err, rows :array, columns :array)\n if (Array.isArray(arguments[1])) {\n // response to a 'select', 'show' or similar\n const rows = arguments[1],\n columns = arguments[2];\n console.log('rows', rows);\n console.log('columns', columns);\n conn.writeTextResult(rows, columns);\n } else {\n // response to an 'insert', 'update' or 'delete'\n const result = arguments[1];\n console.log('result', result);\n conn.writeOk(result);\n }\n });\n });\n\n conn.on('end', remote.end.bind(remote));\n});\n"})})})})]})}function p(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>a});t(7294);var r=t(512);const s={tabItem:"tabItem_Ymn6"};var o=t(5893);function a(e){let{children:n,hidden:t,className:a}=e;return(0,o.jsx)("div",{role:"tabpanel",className:(0,r.Z)(s.tabItem,a),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>q});var r=t(7294),s=t(512),o=t(2466),a=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:s}}=e;return{value:n,label:t,attributes:r,default:s}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const s=(0,a.k6)(),o=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(o),(0,r.useCallback)((e=>{if(!o)return;const n=new URLSearchParams(s.location.search);n.set(o,e),s.replace({...s.location,search:n.toString()})}),[o,s])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:s}=e,o=m(e),[a,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:o}))),[c,d]=f({queryString:t,groupId:s}),[b,h]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[s,o]=(0,i.Nk)(t);return[s,(0,r.useCallback)((e=>{t&&o.set(e)}),[t,o])]}({groupId:s}),y=(()=>{const e=c??b;return p({value:e,tabValues:o})?e:null})();(0,l.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:a,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:o}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,o]),tabValues:o}}var h=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=t(5893);function x(e){let{className:n,block:t,selectedValue:r,selectValue:a,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,o.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),s=l[t].value;s!==r&&(c(n),a(s))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:o}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...o,className:(0,s.Z)("tabs__item",y.tabItem,o?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function g(e){let{lazy:n,children:t,selectedValue:s}=e;const o=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=o.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:o.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==s})))})}function w(e){const n=b(e);return(0,v.jsxs)("div",{className:(0,s.Z)("tabs-container",y.tabList),children:[(0,v.jsx)(x,{...e,...n}),(0,v.jsx)(g,{...e,...n})]})}function q(e){const n=(0,h.Z)();return(0,v.jsx)(w,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>a});var r=t(7294);const s={},o=r.createContext(s);function a(e){const n=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/27e19f0f.e8b66b8e.js b/zh-CN/assets/js/27e19f0f.e8b66b8e.js deleted file mode 100644 index c9b0344064..0000000000 --- a/zh-CN/assets/js/27e19f0f.e8b66b8e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6753],{9540:e=>{e.exports=JSON.parse('{"title":"TypeScript","slug":"/category/typescript","permalink":"/node-mysql2/zh-CN/docs/category/typescript","navigation":{"previous":{"title":"Select Over SSL","permalink":"/node-mysql2/zh-CN/docs/examples/ssl/select-over-ssl"},"next":{"title":"Basic Custom Class","permalink":"/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-class"}}}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/2bc14e22.d776a8f3.js b/zh-CN/assets/js/2bc14e22.7a8d82bf.js similarity index 63% rename from zh-CN/assets/js/2bc14e22.d776a8f3.js rename to zh-CN/assets/js/2bc14e22.7a8d82bf.js index 3d802c4f9e..ce51a5828f 100644 --- a/zh-CN/assets/js/2bc14e22.d776a8f3.js +++ b/zh-CN/assets/js/2bc14e22.7a8d82bf.js @@ -1,2 +1,2 @@ -/*! For license information please see 2bc14e22.d776a8f3.js.LICENSE.txt */ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2839],{4760:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>x,frontMatter:()=>a,metadata:()=>i,toc:()=>h});var t=s(5893),r=s(1151),l=s(8609),c=s(3901);const a={},o="Using MySQL2 with TypeScript",i={id:"documentation/typescript-examples",title:"Using MySQL2 with TypeScript",description:"Installation",source:"@site/docs/documentation/typescript-examples.mdx",sourceDirName:"documentation",slug:"/documentation/typescript-examples",permalink:"/node-mysql2/zh-CN/docs/documentation/typescript-examples",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/documentation/typescript-examples.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Promise Wrappers",permalink:"/node-mysql2/zh-CN/docs/documentation/promise-wrapper"},next:{title:"API\u914d\u7f6e\u9879",permalink:"/node-mysql2/zh-CN/docs/api-and-configurations"}},d={},h=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"Connection",id:"connection",level:3},{value:"Pool Connection",id:"pool-connection",level:3},{value:"Query and Execute",id:"query-and-execute",level:3},{value:"A simple query",id:"a-simple-query",level:4},{value:"Type Specification",id:"type-specification",level:2},{value:"RowDataPacket[]",id:"rowdatapacket",level:3},{value:"RowDataPacket[][]",id:"rowdatapacket-1",level:3},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"ResultSetHeader[]",id:"resultsetheader-1",level:3},{value:"ProcedureCallPacket",id:"procedurecallpacket",level:3},{value:"OkPacket",id:"okpacket",level:3},{value:"Examples",id:"examples",level:2}];function u(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",br:"br",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"using-mysql2-with-typescript",children:"Using MySQL2 with TypeScript"}),"\n",(0,t.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm install --save mysql2\nnpm install --save-dev @types/node\n"})}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"@types/node"})," ensure the proper interaction between ",(0,t.jsx)(n.strong,{children:"TypeScript"})," and the ",(0,t.jsx)(n.strong,{children:"Node.js"})," modules used by ",(0,t.jsx)(n.strong,{children:"MySQL2"})," (",(0,t.jsx)(n.em,{children:"net"}),", ",(0,t.jsx)(n.em,{children:"events"}),", ",(0,t.jsx)(n.em,{children:"stream"}),", ",(0,t.jsx)(n.em,{children:"tls"}),", etc.)."]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:["Requires ",(0,t.jsx)(n.strong,{children:"TypeScript"})," ",(0,t.jsx)(n.code,{children:">=4.5.2"}),"."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsxs)(n.p,{children:["You can import ",(0,t.jsx)(n.strong,{children:"MySQL2"})," in two ways:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["By setting the ",(0,t.jsx)(n.code,{children:"esModuleInterop"})," option to ",(0,t.jsx)(n.code,{children:"true"})," in ",(0,t.jsx)(n.code,{children:"tsconfig.json"})]}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql from 'mysql2';\nimport mysql from 'mysql2/promise';\n"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["By setting the ",(0,t.jsx)(n.code,{children:"esModuleInterop"})," option to ",(0,t.jsx)(n.code,{children:"false"})," in ",(0,t.jsx)(n.code,{children:"tsconfig.json"})]}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import * as mysql from 'mysql2';\nimport * as mysql from 'mysql2/promise';\n"})}),"\n",(0,t.jsx)(n.h3,{id:"connection",children:"Connection"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ConnectionOptions } from 'mysql2';\n\nconst access: ConnectionOptions = {\n user: 'test',\n database: 'test',\n};\n\nconst conn = mysql.createConnection(access);\n"})}),"\n",(0,t.jsx)(n.h3,{id:"pool-connection",children:"Pool Connection"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { PoolOptions } from 'mysql2';\n\nconst access: PoolOptions = {\n user: 'test',\n database: 'test',\n};\n\nconst conn = mysql.createPool(access);\n"})}),"\n",(0,t.jsx)(n.h3,{id:"query-and-execute",children:"Query and Execute"}),"\n",(0,t.jsx)(n.h4,{id:"a-simple-query",children:"A simple query"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"conn.query('SELECT 1 + 1 AS `test`;', (_err, rows) => {\n /**\n * @rows: [ { test: 2 } ]\n */\n});\n\nconn.execute('SELECT 1 + 1 AS `test`;', (_err, rows) => {\n /**\n * @rows: [ { test: 2 } ]\n */\n});\n"})}),"\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"rows"})," output will be these possible types:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"RowDataPacket[]"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"RowDataPacket[][]"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"ResultSetHeader"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"ResultSetHeader[]"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"ProcedureCallPacket"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"In this example, you need to manually check the output types"}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"type-specification",children:"Type Specification"}),"\n",(0,t.jsx)(n.h3,{id:"rowdatapacket",children:"RowDataPacket[]"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(n.p,{children:"An array with the returned rows, for example:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { RowDataPacket } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\n// SELECT\nconn.query<RowDataPacket[]>('SELECT 1 + 1 AS `test`;', (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ { test: 2 } ]\n */\n});\n\n// SHOW\nconn.query<RowDataPacket[]>('SHOW TABLES FROM `test`;', (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ { Tables_in_test: 'test' } ]\n */\n});\n"})}),"\n",(0,t.jsxs)(n.p,{children:["Using ",(0,t.jsx)(n.code,{children:"rowsAsArray"})," option as ",(0,t.jsx)(n.code,{children:"true"}),":"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { RowDataPacket } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n rowsAsArray: true,\n});\n\n// SELECT\nconn.query<RowDataPacket[]>(\n 'SELECT 1 + 1 AS test, 2 + 2 AS test;',\n (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ [ 2, 4 ] ]\n */\n }\n);\n\n// SHOW\nconn.query<RowDataPacket[]>('SHOW TABLES FROM `test`;', (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ [ 'test' ] ]\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"rowdatapacket-1",children:"RowDataPacket[][]"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsxs)(n.p,{children:["Using ",(0,t.jsx)(n.code,{children:"multipleStatements"})," option as ",(0,t.jsx)(n.code,{children:"true"})," with multiple queries:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { RowDataPacket } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n multipleStatements: true,\n});\n\nconst sql = `\n SELECT 1 + 1 AS test;\n SELECT 2 + 2 AS test;\n`;\n\nconn.query<RowDataPacket[][]>(sql, (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ [ { test: 2 } ], [ { test: 4 } ] ]\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(l.A,{records:[{version:"3.5.1",changes:[(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.strong,{children:"OkPacket"})," is deprecated and might be removed in the future major release.",(0,t.jsx)(n.br,{}),"Please use ",(0,t.jsx)(n.strong,{children:"ResultSetHeader"})," instead."]}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.strong,{children:"changedRows"})," option is deprecated and might be removed in the future major release.",(0,t.jsx)(n.br,{}),"Please use ",(0,t.jsx)(n.strong,{children:"affectedRows"})," instead."]})]}]}),"\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.code,{children:"INSERT"}),", ",(0,t.jsx)(n.code,{children:"UPDATE"}),", ",(0,t.jsx)(n.code,{children:"DELETE"}),", ",(0,t.jsx)(n.code,{children:"TRUNCATE"}),", etc.:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ResultSetHeader } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\nconst sql = `\n SET @1 = 1;\n`;\n\nconn.query<ResultSetHeader>(sql, (_err, result) => {\n console.log(result);\n /**\n * @result: ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 2,\n warningStatus: 0,\n changedRows: 0\n }\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"resultsetheader-1",children:"ResultSetHeader[]"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(l.A,{records:[{version:"3.5.1",changes:[(0,t.jsxs)(t.Fragment,{children:["Introduce ",(0,t.jsx)(n.strong,{children:"ResultSetHeader[]"})]})]}]}),"\n",(0,t.jsxs)(n.p,{children:["For multiples ",(0,t.jsx)(n.code,{children:"INSERT"}),", ",(0,t.jsx)(n.code,{children:"UPDATE"}),", ",(0,t.jsx)(n.code,{children:"DELETE"}),", ",(0,t.jsx)(n.code,{children:"TRUNCATE"}),", etc. when using ",(0,t.jsx)(n.code,{children:"multipleStatements"})," as ",(0,t.jsx)(n.code,{children:"true"}),":"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ResultSetHeader } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n multipleStatements: true,\n});\n\nconst sql = `\n SET @1 = 1;\n SET @2 = 2;\n`;\n\nconn.query<ResultSetHeader[]>(sql, (_err, results) => {\n console.log(results);\n /**\n * @results: [\n ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 10,\n warningStatus: 0,\n changedRows: 0\n },\n ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 2,\n warningStatus: 0,\n changedRows: 0\n }\n ]\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"procedurecallpacket",children:"ProcedureCallPacket"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(l.A,{records:[{version:"3.5.1",changes:[(0,t.jsxs)(t.Fragment,{children:["Introduce ",(0,t.jsx)(n.strong,{children:"ProcedureCallPacket"})]})]}]}),"\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["By performing a ",(0,t.jsx)(n.strong,{children:"Call Procedure"})," using ",(0,t.jsx)(n.code,{children:"INSERT"}),", ",(0,t.jsx)(n.code,{children:"UPDATE"}),", etc., the return will be a ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket<ResultSetHeader>"})," (even if you perform multiples queries and set ",(0,t.jsx)(n.code,{children:"multipleStatements"})," to ",(0,t.jsx)(n.code,{children:"true"}),"):"]})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ProcedureCallPacket, ResultSetHeader } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\n/** ResultSetHeader */\nconn.query('DROP PROCEDURE IF EXISTS myProcedure');\n\n/** ResultSetHeader */\nconn.query(`\n CREATE PROCEDURE myProcedure()\n BEGIN\n SET @1 = 1;\n SET @2 = 2;\n END\n `);\n\n/** ProcedureCallPacket */\nconst sql = 'CALL myProcedure()';\n\nconn.query<ProcedureCallPacket<ResultSetHeader>>(sql, (_err, result) => {\n console.log(result);\n /**\n * @result: ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 2,\n warningStatus: 0,\n changedRows: 0\n }\n */\n});\n"})}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.code,{children:"CREATE PROCEDURE"})," and ",(0,t.jsx)(n.code,{children:"DROP PROCEDURE"}),", these returns will be the ",(0,t.jsx)(n.em,{children:"default"})," ",(0,t.jsx)(n.code,{children:"ResultSetHeader"}),"."]}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["By using ",(0,t.jsx)(n.code,{children:"SELECT"})," and ",(0,t.jsx)(n.code,{children:"SHOW"})," queries in a ",(0,t.jsx)(n.strong,{children:"Procedure Call"}),", it groups the results as:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"/** ProcedureCallPacket<RowDataPacket[]> */\n[RowDataPacket[], ResultSetHeader]\n"})}),"\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket<RowDataPacket[]>"}),", please see the following examples."]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"okpacket",children:"OkPacket"}),"\n",(0,t.jsx)(c.X,{level:0,message:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.strong,{children:"OkPacket"})," is deprecated and might be removed in the future major release.",(0,t.jsx)(n.br,{}),"Please use ",(0,t.jsx)(n.strong,{children:"ResultSetHeader"})," instead."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"examples",children:"Examples"}),"\n",(0,t.jsxs)(n.p,{children:["You can also check some code examples using ",(0,t.jsx)(n.strong,{children:"MySQL2"})," and ",(0,t.jsx)(n.strong,{children:"TypeScript"})," to understand advanced concepts:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/row-data-packet",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/row-as-array",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," and ",(0,t.jsx)(n.code,{children:"rowAsArray"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/multi-statements",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," and ",(0,t.jsx)(n.code,{children:"multipleStatements"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/row-as-array-multi-statements",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"}),", ",(0,t.jsx)(n.code,{children:"rowAsArray"})," and ",(0,t.jsx)(n.code,{children:"multipleStatements"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/procedure-call/procedure-call-packet",children:["Checking for ",(0,t.jsx)(n.code,{children:"ResultSetHeader"}),", extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," from ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/procedure-call/row-as-array",children:["Checking for ",(0,t.jsx)(n.code,{children:"ResultSetHeader"}),", extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," and ",(0,t.jsx)(n.code,{children:"rowAsArray"})," from ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/basic-custom-class",children:["Creating a basic custom ",(0,t.jsx)(n.strong,{children:"MySQL2"})," ",(0,t.jsx)(n.strong,{children:"Class"})]})}),"\n"]})]})}function x(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}},4673:(e,n,s)=>{s.d(n,{Z:()=>p});var t=s(7294),r=s(512),l=s(2389),c=s(6043);const a={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var o=s(5893);function i(e){return!!e&&("SUMMARY"===e.tagName||i(e.parentElement))}function d(e,n){return!!e&&(e===n||d(e.parentElement,n))}function h(e){let{summary:n,children:s,...h}=e;const u=(0,l.Z)(),x=(0,t.useRef)(null),{collapsed:p,setCollapsed:j}=(0,c.u)({initialState:!h.open}),[m,y]=(0,t.useState)(h.open),g=t.isValidElement(n)?n:(0,o.jsx)("summary",{children:n??"Details"});return(0,o.jsxs)("details",{...h,ref:x,open:m,"data-collapsed":p,className:(0,r.Z)(a.details,u&&a.isBrowser,h.className),onMouseDown:e=>{i(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const n=e.target;i(n)&&d(n,x.current)&&(e.preventDefault(),p?(j(!1),y(!0)):j(!0))},children:[g,(0,o.jsx)(c.z,{lazy:!1,collapsed:p,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{j(e),y(!e)},children:(0,o.jsx)("div",{className:a.collapsibleContent,children:s})})]})}const u={details:"details_b_Ee"},x="alert alert--info";function p(e){let{...n}=e;return(0,o.jsx)(h,{...n,className:(0,r.Z)(x,u.details,n.className)})}},8609:(e,n,s)=>{s.d(n,{A:()=>c});var t=s(4673);const r=(0,s(4297).Z)("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]);var l=s(5893);const c=e=>{let{records:n,open:s}=e;return(0,l.jsx)(t.Z,{open:s,summary:(0,l.jsxs)("summary",{children:[(0,l.jsx)(r,{})," History"]}),className:"history",children:(0,l.jsxs)("table",{children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{children:"Version"}),(0,l.jsx)("th",{children:"Changes"})]})}),(0,l.jsx)("tbody",{children:n.map(((e,n)=>(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:(0,l.jsxs)("strong",{children:["v",e.version.replace(/[^0-9.]/g,"")]})}),(0,l.jsx)("td",{children:(0,l.jsx)("div",{className:"changes",children:e.changes.map(((e,n)=>(0,l.jsx)("section",{children:e},`change:${n}`)))})})]},`record:${n}`)))})]})})}},3901:(e,n,s)=>{s.d(n,{X:()=>u});var t=s(9960),r=s(4297);const l=(0,r.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),c=(0,r.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),a=(0,r.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),o=(0,r.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),i=(0,r.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),d=(0,r.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var h=s(5893);const u=e=>{let{level:n,message:s}=e;const r={0:{title:"Deprecated",icon:(0,h.jsx)(l,{})},1:{title:"Experimental",icon:(0,h.jsx)(c,{})},1.1:{title:"Early Development",icon:(0,h.jsx)(a,{})},1.2:{title:"Release Candidate",icon:(0,h.jsx)(o,{})},2:{title:"Stable",icon:(0,h.jsx)(i,{})},3:{title:"Legacy",icon:(0,h.jsx)(d,{})}};return(0,h.jsxs)("section",{className:"stability","data-level":n,children:[(0,h.jsx)(t.Z,{to:"/docs/stability-badges",children:(0,h.jsxs)("header",{children:[(0,h.jsx)("strong",{children:n}),(0,h.jsx)("span",{children:r[n].title}),r[n].icon]})}),s?(0,h.jsx)("p",{children:s}):null]})}},4297:(e,n,s)=>{s.d(n,{Z:()=>l});var t=s(7294),r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const l=(e,n)=>{const s=(0,t.forwardRef)((({color:s="currentColor",size:l=24,strokeWidth:c=2,absoluteStrokeWidth:a,className:o="",children:i,...d},h)=>{return(0,t.createElement)("svg",{ref:h,...r,width:l,height:l,stroke:s,strokeWidth:a?24*Number(c)/Number(l):c,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,o].join(" "),...d},[...n.map((([e,n])=>(0,t.createElement)(e,n))),...Array.isArray(i)?i:[i]]);var u}));return s.displayName=`${e}`,s}},1151:(e,n,s)=>{s.d(n,{Z:()=>a,a:()=>c});var t=s(7294);const r={},l=t.createContext(r);function c(e){const n=t.useContext(l);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),t.createElement(l.Provider,{value:n},e.children)}}}]); \ No newline at end of file +/*! For license information please see 2bc14e22.7a8d82bf.js.LICENSE.txt */ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2839],{4760:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>x,frontMatter:()=>a,metadata:()=>i,toc:()=>h});var t=s(5893),r=s(1151),l=s(8609),c=s(3901);const a={},o="Using MySQL2 with TypeScript",i={id:"documentation/typescript-examples",title:"Using MySQL2 with TypeScript",description:"Installation",source:"@site/docs/documentation/typescript-examples.mdx",sourceDirName:"documentation",slug:"/documentation/typescript-examples",permalink:"/node-mysql2/zh-CN/docs/documentation/typescript-examples",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/documentation/typescript-examples.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Promise Wrappers",permalink:"/node-mysql2/zh-CN/docs/documentation/promise-wrapper"},next:{title:"API\u914d\u7f6e\u9879",permalink:"/node-mysql2/zh-CN/docs/api-and-configurations"}},d={},h=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"Connection",id:"connection",level:3},{value:"Pool Connection",id:"pool-connection",level:3},{value:"Query and Execute",id:"query-and-execute",level:3},{value:"A simple query",id:"a-simple-query",level:4},{value:"Type Specification",id:"type-specification",level:2},{value:"RowDataPacket[]",id:"rowdatapacket",level:3},{value:"RowDataPacket[][]",id:"rowdatapacket-1",level:3},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"ResultSetHeader[]",id:"resultsetheader-1",level:3},{value:"ProcedureCallPacket",id:"procedurecallpacket",level:3},{value:"OkPacket",id:"okpacket",level:3},{value:"Examples",id:"examples",level:2}];function u(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",br:"br",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"using-mysql2-with-typescript",children:"Using MySQL2 with TypeScript"}),"\n",(0,t.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm install --save mysql2\nnpm install --save-dev @types/node\n"})}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"@types/node"})," ensure the proper interaction between ",(0,t.jsx)(n.strong,{children:"TypeScript"})," and the ",(0,t.jsx)(n.strong,{children:"Node.js"})," modules used by ",(0,t.jsx)(n.strong,{children:"MySQL2"})," (",(0,t.jsx)(n.em,{children:"net"}),", ",(0,t.jsx)(n.em,{children:"events"}),", ",(0,t.jsx)(n.em,{children:"stream"}),", ",(0,t.jsx)(n.em,{children:"tls"}),", etc.)."]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:["Requires ",(0,t.jsx)(n.strong,{children:"TypeScript"})," ",(0,t.jsx)(n.code,{children:">=4.5.2"}),"."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsxs)(n.p,{children:["You can import ",(0,t.jsx)(n.strong,{children:"MySQL2"})," in two ways:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["By setting the ",(0,t.jsx)(n.code,{children:"esModuleInterop"})," option to ",(0,t.jsx)(n.code,{children:"true"})," in ",(0,t.jsx)(n.code,{children:"tsconfig.json"})]}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql from 'mysql2';\nimport mysql from 'mysql2/promise';\n"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["By setting the ",(0,t.jsx)(n.code,{children:"esModuleInterop"})," option to ",(0,t.jsx)(n.code,{children:"false"})," in ",(0,t.jsx)(n.code,{children:"tsconfig.json"})]}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import * as mysql from 'mysql2';\nimport * as mysql from 'mysql2/promise';\n"})}),"\n",(0,t.jsx)(n.h3,{id:"connection",children:"Connection"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ConnectionOptions } from 'mysql2';\n\nconst access: ConnectionOptions = {\n user: 'test',\n database: 'test',\n};\n\nconst conn = mysql.createConnection(access);\n"})}),"\n",(0,t.jsx)(n.h3,{id:"pool-connection",children:"Pool Connection"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { PoolOptions } from 'mysql2';\n\nconst access: PoolOptions = {\n user: 'test',\n database: 'test',\n};\n\nconst conn = mysql.createPool(access);\n"})}),"\n",(0,t.jsx)(n.h3,{id:"query-and-execute",children:"Query and Execute"}),"\n",(0,t.jsx)(n.h4,{id:"a-simple-query",children:"A simple query"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"conn.query('SELECT 1 + 1 AS `test`;', (_err, rows) => {\n /**\n * @rows: [ { test: 2 } ]\n */\n});\n\nconn.execute('SELECT 1 + 1 AS `test`;', (_err, rows) => {\n /**\n * @rows: [ { test: 2 } ]\n */\n});\n"})}),"\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"rows"})," output will be these possible types:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"RowDataPacket[]"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"RowDataPacket[][]"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"ResultSetHeader"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"ResultSetHeader[]"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"ProcedureCallPacket"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"In this example, you need to manually check the output types"}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"type-specification",children:"Type Specification"}),"\n",(0,t.jsx)(n.h3,{id:"rowdatapacket",children:"RowDataPacket[]"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(n.p,{children:"An array with the returned rows, for example:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { RowDataPacket } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\n// SELECT\nconn.query<RowDataPacket[]>('SELECT 1 + 1 AS `test`;', (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ { test: 2 } ]\n */\n});\n\n// SHOW\nconn.query<RowDataPacket[]>('SHOW TABLES FROM `test`;', (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ { Tables_in_test: 'test' } ]\n */\n});\n"})}),"\n",(0,t.jsxs)(n.p,{children:["Using ",(0,t.jsx)(n.code,{children:"rowsAsArray"})," option as ",(0,t.jsx)(n.code,{children:"true"}),":"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { RowDataPacket } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n rowsAsArray: true,\n});\n\n// SELECT\nconn.query<RowDataPacket[]>(\n 'SELECT 1 + 1 AS test, 2 + 2 AS test;',\n (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ [ 2, 4 ] ]\n */\n }\n);\n\n// SHOW\nconn.query<RowDataPacket[]>('SHOW TABLES FROM `test`;', (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ [ 'test' ] ]\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"rowdatapacket-1",children:"RowDataPacket[][]"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsxs)(n.p,{children:["Using ",(0,t.jsx)(n.code,{children:"multipleStatements"})," option as ",(0,t.jsx)(n.code,{children:"true"})," with multiple queries:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { RowDataPacket } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n multipleStatements: true,\n});\n\nconst sql = `\n SELECT 1 + 1 AS test;\n SELECT 2 + 2 AS test;\n`;\n\nconn.query<RowDataPacket[][]>(sql, (_err, rows) => {\n console.log(rows);\n /**\n * @rows: [ [ { test: 2 } ], [ { test: 4 } ] ]\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(l.A,{records:[{version:"3.5.1",changes:[(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.strong,{children:"OkPacket"})," is deprecated and might be removed in the future major release.",(0,t.jsx)(n.br,{}),"Please use ",(0,t.jsx)(n.strong,{children:"ResultSetHeader"})," instead."]}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.strong,{children:"changedRows"})," option is deprecated and might be removed in the future major release.",(0,t.jsx)(n.br,{}),"Please use ",(0,t.jsx)(n.strong,{children:"affectedRows"})," instead."]})]}]}),"\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.code,{children:"INSERT"}),", ",(0,t.jsx)(n.code,{children:"UPDATE"}),", ",(0,t.jsx)(n.code,{children:"DELETE"}),", ",(0,t.jsx)(n.code,{children:"TRUNCATE"}),", etc.:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ResultSetHeader } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\nconst sql = `\n SET @1 = 1;\n`;\n\nconn.query<ResultSetHeader>(sql, (_err, result) => {\n console.log(result);\n /**\n * @result: ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 2,\n warningStatus: 0,\n changedRows: 0\n }\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"resultsetheader-1",children:"ResultSetHeader[]"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(l.A,{records:[{version:"3.5.1",changes:[(0,t.jsxs)(t.Fragment,{children:["Introduce ",(0,t.jsx)(n.strong,{children:"ResultSetHeader[]"})]})]}]}),"\n",(0,t.jsxs)(n.p,{children:["For multiples ",(0,t.jsx)(n.code,{children:"INSERT"}),", ",(0,t.jsx)(n.code,{children:"UPDATE"}),", ",(0,t.jsx)(n.code,{children:"DELETE"}),", ",(0,t.jsx)(n.code,{children:"TRUNCATE"}),", etc. when using ",(0,t.jsx)(n.code,{children:"multipleStatements"})," as ",(0,t.jsx)(n.code,{children:"true"}),":"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ResultSetHeader } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n multipleStatements: true,\n});\n\nconst sql = `\n SET @1 = 1;\n SET @2 = 2;\n`;\n\nconn.query<ResultSetHeader[]>(sql, (_err, results) => {\n console.log(results);\n /**\n * @results: [\n ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 10,\n warningStatus: 0,\n changedRows: 0\n },\n ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 2,\n warningStatus: 0,\n changedRows: 0\n }\n ]\n */\n});\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"procedurecallpacket",children:"ProcedureCallPacket"}),"\n",(0,t.jsx)(c.X,{level:2}),"\n",(0,t.jsx)(l.A,{records:[{version:"3.5.1",changes:[(0,t.jsxs)(t.Fragment,{children:["Introduce ",(0,t.jsx)(n.strong,{children:"ProcedureCallPacket"})]})]}]}),"\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["By performing a ",(0,t.jsx)(n.strong,{children:"Call Procedure"})," using ",(0,t.jsx)(n.code,{children:"INSERT"}),", ",(0,t.jsx)(n.code,{children:"UPDATE"}),", etc., the return will be a ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket<ResultSetHeader>"})," (even if you perform multiples queries and set ",(0,t.jsx)(n.code,{children:"multipleStatements"})," to ",(0,t.jsx)(n.code,{children:"true"}),"):"]})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"import mysql, { ProcedureCallPacket, ResultSetHeader } from 'mysql2';\n\nconst conn = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\n/** ResultSetHeader */\nconn.query('DROP PROCEDURE IF EXISTS myProcedure');\n\n/** ResultSetHeader */\nconn.query(`\n CREATE PROCEDURE myProcedure()\n BEGIN\n SET @1 = 1;\n SET @2 = 2;\n END\n `);\n\n/** ProcedureCallPacket */\nconst sql = 'CALL myProcedure()';\n\nconn.query<ProcedureCallPacket<ResultSetHeader>>(sql, (_err, result) => {\n console.log(result);\n /**\n * @result: ResultSetHeader {\n fieldCount: 0,\n affectedRows: 0,\n insertId: 0,\n info: '',\n serverStatus: 2,\n warningStatus: 0,\n changedRows: 0\n }\n */\n});\n"})}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.code,{children:"CREATE PROCEDURE"})," and ",(0,t.jsx)(n.code,{children:"DROP PROCEDURE"}),", these returns will be the ",(0,t.jsx)(n.em,{children:"default"})," ",(0,t.jsx)(n.code,{children:"ResultSetHeader"}),"."]}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["By using ",(0,t.jsx)(n.code,{children:"SELECT"})," and ",(0,t.jsx)(n.code,{children:"SHOW"})," queries in a ",(0,t.jsx)(n.strong,{children:"Procedure Call"}),", it groups the results as:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"/** ProcedureCallPacket<RowDataPacket[]> */\n[RowDataPacket[], ResultSetHeader]\n"})}),"\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket<RowDataPacket[]>"}),", please see the following examples."]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"okpacket",children:"OkPacket"}),"\n",(0,t.jsx)(c.X,{level:0,message:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.strong,{children:"OkPacket"})," is deprecated and might be removed in the future major release.",(0,t.jsx)(n.br,{}),"Please use ",(0,t.jsx)(n.strong,{children:"ResultSetHeader"})," instead."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"examples",children:"Examples"}),"\n",(0,t.jsxs)(n.p,{children:["You can also check some code examples using ",(0,t.jsx)(n.strong,{children:"MySQL2"})," and ",(0,t.jsx)(n.strong,{children:"TypeScript"})," to understand advanced concepts:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/index",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/row-as-array",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," and ",(0,t.jsx)(n.code,{children:"rowAsArray"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/multi-statements",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," and ",(0,t.jsx)(n.code,{children:"multipleStatements"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/row-data/row-as-array-multi-statements",children:["Extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"}),", ",(0,t.jsx)(n.code,{children:"rowAsArray"})," and ",(0,t.jsx)(n.code,{children:"multipleStatements"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/procedure-call/index",children:["Checking for ",(0,t.jsx)(n.code,{children:"ResultSetHeader"}),", extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," from ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/procedure-call/row-as-array",children:["Checking for ",(0,t.jsx)(n.code,{children:"ResultSetHeader"}),", extending and using ",(0,t.jsx)(n.strong,{children:"Interfaces"})," with ",(0,t.jsx)(n.code,{children:"RowDataPacket"})," and ",(0,t.jsx)(n.code,{children:"rowAsArray"})," from ",(0,t.jsx)(n.code,{children:"ProcedureCallPacket"})]})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsxs)(n.a,{href:"/docs/examples/typescript/basic-custom-class",children:["Creating a basic custom ",(0,t.jsx)(n.strong,{children:"MySQL2"})," ",(0,t.jsx)(n.strong,{children:"Class"})]})}),"\n"]})]})}function x(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}},4673:(e,n,s)=>{s.d(n,{Z:()=>p});var t=s(7294),r=s(512),l=s(2389),c=s(6043);const a={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var o=s(5893);function i(e){return!!e&&("SUMMARY"===e.tagName||i(e.parentElement))}function d(e,n){return!!e&&(e===n||d(e.parentElement,n))}function h(e){let{summary:n,children:s,...h}=e;const u=(0,l.Z)(),x=(0,t.useRef)(null),{collapsed:p,setCollapsed:j}=(0,c.u)({initialState:!h.open}),[m,y]=(0,t.useState)(h.open),g=t.isValidElement(n)?n:(0,o.jsx)("summary",{children:n??"Details"});return(0,o.jsxs)("details",{...h,ref:x,open:m,"data-collapsed":p,className:(0,r.Z)(a.details,u&&a.isBrowser,h.className),onMouseDown:e=>{i(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const n=e.target;i(n)&&d(n,x.current)&&(e.preventDefault(),p?(j(!1),y(!0)):j(!0))},children:[g,(0,o.jsx)(c.z,{lazy:!1,collapsed:p,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{j(e),y(!e)},children:(0,o.jsx)("div",{className:a.collapsibleContent,children:s})})]})}const u={details:"details_b_Ee"},x="alert alert--info";function p(e){let{...n}=e;return(0,o.jsx)(h,{...n,className:(0,r.Z)(x,u.details,n.className)})}},8609:(e,n,s)=>{s.d(n,{A:()=>c});var t=s(4673);const r=(0,s(4297).Z)("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]);var l=s(5893);const c=e=>{let{records:n,open:s}=e;return(0,l.jsx)(t.Z,{open:s,summary:(0,l.jsxs)("summary",{children:[(0,l.jsx)(r,{})," History"]}),className:"history",children:(0,l.jsxs)("table",{children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{children:"Version"}),(0,l.jsx)("th",{children:"Changes"})]})}),(0,l.jsx)("tbody",{children:n.map(((e,n)=>(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:(0,l.jsxs)("strong",{children:["v",e.version.replace(/[^0-9.]/g,"")]})}),(0,l.jsx)("td",{children:(0,l.jsx)("div",{className:"changes",children:e.changes.map(((e,n)=>(0,l.jsx)("section",{children:e},`change:${n}`)))})})]},`record:${n}`)))})]})})}},3901:(e,n,s)=>{s.d(n,{X:()=>u});var t=s(3692),r=s(4297);const l=(0,r.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),c=(0,r.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),a=(0,r.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),o=(0,r.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),i=(0,r.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),d=(0,r.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var h=s(5893);const u=e=>{let{level:n,message:s}=e;const r={0:{title:"Deprecated",icon:(0,h.jsx)(l,{})},1:{title:"Experimental",icon:(0,h.jsx)(c,{})},1.1:{title:"Early Development",icon:(0,h.jsx)(a,{})},1.2:{title:"Release Candidate",icon:(0,h.jsx)(o,{})},2:{title:"Stable",icon:(0,h.jsx)(i,{})},3:{title:"Legacy",icon:(0,h.jsx)(d,{})}};return(0,h.jsxs)("section",{className:"stability","data-level":n,children:[(0,h.jsx)(t.Z,{to:"/docs/stability-badges",children:(0,h.jsxs)("header",{children:[(0,h.jsx)("strong",{children:n}),(0,h.jsx)("span",{children:r[n].title}),r[n].icon]})}),s?(0,h.jsx)("p",{children:s}):null]})}},4297:(e,n,s)=>{s.d(n,{Z:()=>l});var t=s(7294),r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const l=(e,n)=>{const s=(0,t.forwardRef)((({color:s="currentColor",size:l=24,strokeWidth:c=2,absoluteStrokeWidth:a,className:o="",children:i,...d},h)=>{return(0,t.createElement)("svg",{ref:h,...r,width:l,height:l,stroke:s,strokeWidth:a?24*Number(c)/Number(l):c,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,o].join(" "),...d},[...n.map((([e,n])=>(0,t.createElement)(e,n))),...Array.isArray(i)?i:[i]]);var u}));return s.displayName=`${e}`,s}},1151:(e,n,s)=>{s.d(n,{Z:()=>a,a:()=>c});var t=s(7294);const r={},l=t.createContext(r);function c(e){const n=t.useContext(l);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),t.createElement(l.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/2bc14e22.7a8d82bf.js.LICENSE.txt b/zh-CN/assets/js/2bc14e22.7a8d82bf.js.LICENSE.txt new file mode 100644 index 0000000000..3d48b22d31 --- /dev/null +++ b/zh-CN/assets/js/2bc14e22.7a8d82bf.js.LICENSE.txt @@ -0,0 +1,6 @@ +/** + * @license lucide-react v0.306.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */ diff --git a/zh-CN/assets/js/2bc14e22.d776a8f3.js.LICENSE.txt b/zh-CN/assets/js/2bc14e22.d776a8f3.js.LICENSE.txt deleted file mode 100644 index 4b1ddb7671..0000000000 --- a/zh-CN/assets/js/2bc14e22.d776a8f3.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/** - * @license lucide-react v0.303.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ diff --git a/zh-CN/assets/js/2bfbae62.f52f260b.js b/zh-CN/assets/js/2bfbae62.f52f260b.js new file mode 100644 index 0000000000..d95fc5cbc9 --- /dev/null +++ b/zh-CN/assets/js/2bfbae62.f52f260b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9292],{8368:e=>{e.exports=JSON.parse('{"label":"URI","permalink":"/node-mysql2/zh-CN/docs/tags/uri","allTagsPath":"/node-mysql2/zh-CN/docs/tags","count":3,"items":[{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/zh-CN/docs/examples/connections/create-connection"},{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/zh-CN/docs/examples/connections/create-pool"},{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/3720c009.8c42b22a.js b/zh-CN/assets/js/3720c009.8c42b22a.js new file mode 100644 index 0000000000..93b7ade9e4 --- /dev/null +++ b/zh-CN/assets/js/3720c009.8c42b22a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3751],{9861:(t,e,s)=>{s.r(e),s.d(e,{default:()=>p});s(7294);var a=s(512),r=s(1944),l=s(5281),n=s(5999);const c=()=>(0,n.I)({id:"theme.tags.tagsPageTitle",message:"Tags",description:"The title of the tag list page"});var i=s(3008),g=s(2503);const o={tag:"tag_Nnez"};var u=s(5893);function h(t){let{letterEntry:e}=t;return(0,u.jsxs)("article",{children:[(0,u.jsx)(g.Z,{as:"h2",id:e.letter,children:e.letter}),(0,u.jsx)("ul",{className:"padding--none",children:e.tags.map((t=>(0,u.jsx)("li",{className:o.tag,children:(0,u.jsx)(i.Z,{...t})},t.permalink)))}),(0,u.jsx)("hr",{})]})}function d(t){let{tags:e}=t;const s=function(t){const e={};return Object.values(t).forEach((t=>{const s=function(t){return t[0].toUpperCase()}(t.label);e[s]??=[],e[s].push(t)})),Object.entries(e).sort(((t,e)=>{let[s]=t,[a]=e;return s.localeCompare(a)})).map((t=>{let[e,s]=t;return{letter:e,tags:s.sort(((t,e)=>t.label.localeCompare(e.label)))}}))}(e);return(0,u.jsx)("section",{className:"margin-vert--lg",children:s.map((t=>(0,u.jsx)(h,{letterEntry:t},t.letter)))})}var j=s(197);function m(t){let{title:e}=t;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(r.d,{title:e}),(0,u.jsx)(j.Z,{tag:"doc_tags_list"})]})}function x(t){let{tags:e,title:s}=t;return(0,u.jsx)(r.FG,{className:(0,a.Z)(l.k.page.docsTagsListPage),children:(0,u.jsx)("div",{className:"container margin-vert--lg",children:(0,u.jsx)("div",{className:"row",children:(0,u.jsxs)("main",{className:"col col--8 col--offset-2",children:[(0,u.jsx)(g.Z,{as:"h1",children:s}),(0,u.jsx)(d,{tags:e})]})})})})}function p(t){const e=c();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(m,{...t,title:e}),(0,u.jsx)(x,{...t,title:e})]})}},3008:(t,e,s)=>{s.d(e,{Z:()=>c});s(7294);var a=s(512),r=s(3692);const l={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};var n=s(5893);function c(t){let{permalink:e,label:s,count:c}=t;return(0,n.jsxs)(r.Z,{href:e,className:(0,a.Z)(l.tag,c?l.tagWithCount:l.tagRegular),children:[s,c&&(0,n.jsx)("span",{children:c})]})}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/3be0564c.5c66fcaa.js b/zh-CN/assets/js/3be0564c.5c66fcaa.js deleted file mode 100644 index 9c235893fa..0000000000 --- a/zh-CN/assets/js/3be0564c.5c66fcaa.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9594],{3034:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>h,frontMatter:()=>l,metadata:()=>i,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),o=n(5162);const l={},u="Binlog Watcher",i={id:"examples/binlog-watcher",title:"Binlog Watcher",description:"",source:"@site/docs/examples/binlog-watcher.mdx",sourceDirName:"examples",slug:"/examples/binlog-watcher",permalink:"/node-mysql2/zh-CN/docs/examples/binlog-watcher",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/binlog-watcher.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Introduction",permalink:"/node-mysql2/zh-CN/docs/examples"},next:{title:"Connect Over Socks",permalink:"/node-mysql2/zh-CN/docs/examples/connect-over-socks"}},c={},d=[];function m(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"binlog-watcher",children:"Binlog Watcher"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst through2 = require('through2');\n\nconst binlogStream = mysql.createBinlogStream({\n serverId: 123, // slave ID, first field in \"show slave hosts\" sql response\n // you can also specify slave host, username, password and port\n masterId: 0,\n filename: 'mysql-bin.000007',\n binlogPos: 120,\n flags: 1, // 1 = \"non-blocking mode\"\n});\n\nbinlogStream.pipe(\n through2.obj((obj, enc, next) => {\n console.log(obj);\n next();\n })\n);\n"})})})})]})}function h(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>j});var r=n(7294),a=n(512),s=n(2466),o=n(6550),l=n(469),u=n(1980),i=n(7392),c=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function h(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function p(e){let{queryString:t=!1,groupId:n}=e;const a=(0,o.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=m(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!h({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[i,d]=p({queryString:n,groupId:a}),[b,f]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,c.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),g=(()=>{const e=i??b;return h({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{g&&u(g)}),[g]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!h({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),f(e)}),[d,f,s]),tabValues:s}}var f=n(2389);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=n(5893);function x(e){let{className:t,block:n,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=u.indexOf(t),a=l[n].value;a!==r&&(i(t),o(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:l.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,a.Z)("tabs__item",g.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function y(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function w(e){const t=b(e);return(0,v.jsxs)("div",{className:(0,a.Z)("tabs-container",g.tabList),children:[(0,v.jsx)(x,{...e,...t}),(0,v.jsx)(y,{...e,...t})]})}function j(e){const t=(0,f.Z)();return(0,v.jsx)(w,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>o});var r=n(7294);const a={},s=r.createContext(a);function o(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/3be0564c.b2f3e498.js b/zh-CN/assets/js/3be0564c.b2f3e498.js new file mode 100644 index 0000000000..46ce20db9c --- /dev/null +++ b/zh-CN/assets/js/3be0564c.b2f3e498.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9594],{3034:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>p,frontMatter:()=>o,metadata:()=>i,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),l=n(5162);const o={},u="Binlog Watcher",i={id:"examples/binlog-watcher",title:"Binlog Watcher",description:"",source:"@site/docs/examples/binlog-watcher.mdx",sourceDirName:"examples",slug:"/examples/binlog-watcher",permalink:"/node-mysql2/zh-CN/docs/examples/binlog-watcher",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/binlog-watcher.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"DELETE",permalink:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/delete"},next:{title:"await \u2014 co",permalink:"/node-mysql2/zh-CN/docs/examples/promise-wrapper/co-await"}},c={},d=[];function m(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"binlog-watcher",children:"Binlog Watcher"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(l.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst through2 = require('through2');\n\nconst binlogStream = mysql.createBinlogStream({\n serverId: 123, // slave ID, first field in \"show slave hosts\" sql response\n // you can also specify slave host, username, password and port\n masterId: 0,\n filename: 'mysql-bin.000007',\n binlogPos: 120,\n flags: 1, // 1 = \"non-blocking mode\"\n});\n\nbinlogStream.pipe(\n through2.obj((obj, enc, next) => {\n console.log(obj);\n next();\n })\n);\n"})})})})]})}function p(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function l(e){let{children:t,hidden:n,className:l}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,l),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>j});var r=n(7294),a=n(512),s=n(2466),l=n(6550),o=n(469),u=n(1980),i=n(7392),c=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function p(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function h(e){let{queryString:t=!1,groupId:n}=e;const a=(0,l.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=m(e),[l,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!p({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[i,d]=h({queryString:n,groupId:a}),[b,f]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,c.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),g=(()=>{const e=i??b;return p({value:e,tabValues:s})?e:null})();(0,o.Z)((()=>{g&&u(g)}),[g]);return{selectedValue:l,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),f(e)}),[d,f,s]),tabValues:s}}var f=n(2389);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=n(5893);function x(e){let{className:t,block:n,selectedValue:r,selectValue:l,tabValues:o}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=u.indexOf(t),a=o[n].value;a!==r&&(i(t),l(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,a.Z)("tabs__item",g.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function w(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function y(e){const t=b(e);return(0,v.jsxs)("div",{className:(0,a.Z)("tabs-container",g.tabList),children:[(0,v.jsx)(x,{...e,...t}),(0,v.jsx)(w,{...e,...t})]})}function j(e){const t=(0,f.Z)();return(0,v.jsx)(y,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>o,a:()=>l});var r=n(7294);const a={},s=r.createContext(a);function l(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:l(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/3bea1af6.2ee4307a.js b/zh-CN/assets/js/3bea1af6.2ee4307a.js deleted file mode 100644 index 8954fd1214..0000000000 --- a/zh-CN/assets/js/3bea1af6.2ee4307a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9264],{3006:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>i,contentTitle:()=>u,default:()=>p,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),o=n(5162);const l={},u="Execute",c={id:"examples/execute",title:"Execute",description:"",source:"@site/docs/examples/execute.mdx",sourceDirName:"examples",slug:"/examples/execute",permalink:"/node-mysql2/zh-CN/docs/examples/execute",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/execute.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Connect Over Socks",permalink:"/node-mysql2/zh-CN/docs/examples/connect-over-socks"},next:{title:"MySQL Proxy",permalink:"/node-mysql2/zh-CN/docs/examples/mysqlproxy"}},i={},d=[];function m(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"execute",children:"Execute"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\n// get the client\nconst mysql = require('mysql2');\n\n// create the connection to database\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\nconnection.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [1, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n connection.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [3, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n connection.unprepare('select ?+1 as qqq, ? as rrr, ? as yyy');\n connection.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [3, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n }\n );\n }\n );\n }\n);\n"})})})})]})}function p(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(7294),a=n(512),s=n(2466),o=n(6550),l=n(469),u=n(1980),c=n(7392),i=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,c.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function p(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const a=(0,o.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function h(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=m(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!p({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[c,d]=f({queryString:n,groupId:a}),[h,b]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,i.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),x=(()=>{const e=c??h;return p({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{x&&u(x)}),[x]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=n(2389);const x={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=n(5893);function y(e){let{className:t,block:n,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const t=e.currentTarget,n=u.indexOf(t),a=l[n].value;a!==r&&(c(t),o(a))},d=e=>{let t=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:l.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",x.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function g(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function q(e){const t=h(e);return(0,v.jsxs)("div",{className:(0,a.Z)("tabs-container",x.tabList),children:[(0,v.jsx)(y,{...e,...t}),(0,v.jsx)(g,{...e,...t})]})}function w(e){const t=(0,b.Z)();return(0,v.jsx)(q,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>o});var r=n(7294);const a={},s=r.createContext(a);function o(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/3e73bf99.e0626624.js b/zh-CN/assets/js/3e73bf99.e0626624.js new file mode 100644 index 0000000000..cfca79162e --- /dev/null +++ b/zh-CN/assets/js/3e73bf99.e0626624.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[297],{7270:e=>{e.exports=JSON.parse('{"label":"Placeholders","permalink":"/node-mysql2/zh-CN/docs/tags/placeholders","allTagsPath":"/node-mysql2/zh-CN/docs/tags","count":4,"items":[{"id":"examples/queries/prepared-statements/delete","title":"DELETE","description":"execute(sql, values)","permalink":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/delete"},{"id":"examples/queries/prepared-statements/insert","title":"INSERT","description":"execute(sql, values)","permalink":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/insert"},{"id":"examples/queries/prepared-statements/select","title":"SELECT","description":"execute(sql, values)","permalink":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/select"},{"id":"examples/queries/prepared-statements/update","title":"UPDATE","description":"execute(sql, values)","permalink":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/update"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/43758d02.9b810770.js b/zh-CN/assets/js/43758d02.9b810770.js deleted file mode 100644 index f1123d81e3..0000000000 --- a/zh-CN/assets/js/43758d02.9b810770.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[764],{3230:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>i,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),o=n(5162);const l={},u="Pool Test",i={id:"examples/pool-test",title:"Pool Test",description:"",source:"@site/docs/examples/pool-test.mdx",sourceDirName:"examples",slug:"/examples/pool-test",permalink:"/node-mysql2/zh-CN/docs/examples/pool-test",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/pool-test.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Pass SHA",permalink:"/node-mysql2/zh-CN/docs/examples/pass-sha"},next:{title:"Prepared Statements",permalink:"/node-mysql2/zh-CN/docs/examples/prepare"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"pool-test",children:"Pool Test"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst pool = require('mysql2').createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n password: 'root',\n});\n\nsetInterval(() => {\n for (let i = 0; i < 5; ++i) {\n pool.query((err, rows, fields) => {\n console.log(rows, fields);\n // Connection is automatically released once query resolves\n });\n }\n}, 1000);\n\nsetInterval(() => {\n for (let i = 0; i < 5; ++i) {\n pool.getConnection((err, db) => {\n db.query('select sleep(0.5) as qqq', (err, rows, fields) => {\n console.log(rows, fields);\n db.release();\n });\n });\n }\n}, 1000);\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>q});var r=n(7294),a=n(512),s=n(2466),o=n(6550),l=n(469),u=n(1980),i=n(7392),c=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const a=(0,o.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function h(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[i,d]=f({queryString:n,groupId:a}),[h,b]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,c.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),v=(()=>{const e=i??h;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=n(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=n(5893);function g(e){let{className:t,block:n,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=u.indexOf(t),a=l[n].value;a!==r&&(i(t),o(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:l.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function y(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function w(e){const t=h(e);return(0,x.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(g,{...e,...t}),(0,x.jsx)(y,{...e,...t})]})}function q(e){const t=(0,b.Z)();return(0,x.jsx)(w,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>o});var r=n(7294);const a={},s=r.createContext(a);function o(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/4b983390.aac15e10.js b/zh-CN/assets/js/4b983390.aac15e10.js new file mode 100644 index 0000000000..fa0b6959ab --- /dev/null +++ b/zh-CN/assets/js/4b983390.aac15e10.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2019],{7899:e=>{e.exports=JSON.parse('{"label":"RDS","permalink":"/node-mysql2/zh-CN/docs/tags/rds","allTagsPath":"/node-mysql2/zh-CN/docs/tags","count":3,"items":[{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/zh-CN/docs/examples/connections/create-connection"},{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/zh-CN/docs/examples/connections/create-pool"},{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/4e547710.7a8fa8e2.js b/zh-CN/assets/js/4e547710.7a8fa8e2.js deleted file mode 100644 index e5813eff82..0000000000 --- a/zh-CN/assets/js/4e547710.7a8fa8e2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1449],{9393:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>u,contentTitle:()=>c,default:()=>m,frontMatter:()=>l,metadata:()=>i,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},c="Promise CO Await",i={id:"examples/promise-co-await",title:"Promise CO Await",description:"",source:"@site/docs/examples/promise-co-await.mdx",sourceDirName:"examples",slug:"/examples/promise-co-await",permalink:"/node-mysql2/zh-CN/docs/examples/promise-co-await",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/promise-co-await.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Prepared Statements",permalink:"/node-mysql2/zh-CN/docs/examples/prepare"},next:{title:"Queries",permalink:"/node-mysql2/zh-CN/docs/category/queries"}},u={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"promise-co-await",children:"Promise CO Await"}),"\n",(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(o.Z,{value:"await.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2/promise');\n\nasync function test() {\n const c = await mysql.createConnection({\n port: 3306,\n user: 'testuser',\n namedPlaceholders: true,\n password: 'testpassword',\n });\n console.log('connected!');\n const [rows, fields] = await c.query('show databases');\n console.log(rows);\n\n try {\n const [rows, fields] = await c.query('some invalid sql here');\n } catch (e) {\n console.log('caught exception!', e);\n }\n\n console.log(await c.execute('select sleep(0.5)'));\n console.log('after first sleep');\n console.log(await c.execute('select sleep(0.5)'));\n console.log('after second sleep');\n let start = +new Date();\n console.log(\n await Promise.all([\n c.execute('select sleep(2.5)'),\n c.execute('select sleep(2.5)'),\n ])\n );\n console.log(\n 'after 2+3 parallel sleep which is in fact not parallel because commands are queued per connection'\n );\n let end = +new Date();\n console.log(end - start);\n await c.end();\n\n const p = mysql.createPool({\n port: 3306,\n user: 'testuser',\n namedPlaceholders: true,\n password: 'testpassword',\n });\n console.log(await p.execute('select sleep(0.5)'));\n console.log('after first pool sleep');\n start = +new Date();\n console.log(\n await Promise.all([\n p.execute('select sleep(2.5)'),\n p.execute('select sleep(2.5)'),\n ])\n );\n console.log('after 2+3 parallel pool sleep');\n end = +new Date();\n console.log(end - start);\n await p.end();\n}\n\ntest()\n .then(() => {\n console.log('done');\n })\n .catch((err) => {\n console.log('error!', err);\n throw err;\n });\n"})})}),(0,r.jsx)(o.Z,{value:"co.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2/promise');\nconst co = require('co');\n\nco(function* () {\n const c = yield mysql.createConnection({\n port: 3306,\n user: 'root',\n namedPlaceholders: true,\n });\n const rows = yield c.query('show databases');\n console.log(rows);\n console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 }));\n yield c.end();\n})\n .then(function () {\n console.log('done');\n })\n .catch(function (err) {\n console.log(err);\n throw err;\n });\n"})})}),(0,r.jsx)(o.Z,{value:".babelrc",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{\n "plugins": ["transform-async-to-generator"]\n}\n'})})}),(0,r.jsx)(o.Z,{value:"package.json",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{\n "name": "promise-co-await",\n "version": "1.0.0",\n "description": "",\n "main": "await.js",\n "scripts": {\n "test": "echo \\"Error: no test specified\\" && exit 1"\n },\n "author": "",\n "license": "ISC",\n "dependencies": {\n "babel-cli": "^6.9.0"\n }\n}\n'})})})]})]})}function m(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>j});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),c=t(1980),i=t(7392),u=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,i.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function h(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,c._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function f(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=p(e),[o,c]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[i,d]=h({queryString:t,groupId:a}),[f,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,u.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),g=(()=>{const e=i??f;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{g&&c(g)}),[g]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);c(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var w=t(5893);function x(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const c=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),u=e=>{const n=e.currentTarget,t=c.indexOf(n),a=l[t].value;a!==r&&(i(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const t=c.indexOf(e.currentTarget)+1;n=c[t]??c[0];break}case"ArrowLeft":{const t=c.indexOf(e.currentTarget)-1;n=c[t]??c[c.length-1];break}}n?.focus()};return(0,w.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,w.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>c.push(e),onKeyDown:d,onClick:u,...s,className:(0,a.Z)("tabs__item",g.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,w.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function y(e){const n=f(e);return(0,w.jsxs)("div",{className:(0,a.Z)("tabs-container",g.tabList),children:[(0,w.jsx)(x,{...e,...n}),(0,w.jsx)(v,{...e,...n})]})}function j(e){const n=(0,b.Z)();return(0,w.jsx)(y,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/5020.614bd897.js b/zh-CN/assets/js/5020.614bd897.js new file mode 100644 index 0000000000..b95a55ddd6 --- /dev/null +++ b/zh-CN/assets/js/5020.614bd897.js @@ -0,0 +1 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5020],{9286:(e,t,n)=>{"use strict";n.d(t,{Z:()=>H});var s=n(7294),o=n(2389),c=n(512),a=n(2949),r=n(6668);function l(){const{prism:e}=(0,r.L)(),{colorMode:t}=(0,a.I)(),n=e.theme,s=e.darkTheme||n;return"dark"===t?s:n}var i=n(5281),u=n(7594),d=n.n(u);const m=/title=(?<quote>["'])(?<title>.*?)\1/,p=/\{(?<range>[\d,-]+)\}/,b={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}},f={...b,lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""},vb:{start:"['\u2018\u2019]",end:""},rem:{start:"[Rr][Ee][Mm]\\b",end:""},f90:{start:"!",end:""},ml:{start:"\\(\\*",end:"\\*\\)"},cobol:{start:"\\*>",end:""}},h=Object.keys(b);function g(e,t){const n=e.map((e=>{const{start:n,end:s}=f[e];return`(?:${n}\\s*(${t.flatMap((e=>[e.line,e.block?.start,e.block?.end].filter(Boolean))).join("|")})\\s*${s})`})).join("|");return new RegExp(`^\\s*(?:${n})\\s*$`)}function k(e,t){let n=e.replace(/\n$/,"");const{language:s,magicComments:o,metastring:c}=t;if(c&&p.test(c)){const e=c.match(p).groups.range;if(0===o.length)throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${c}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);const t=o[0].className,s=d()(e).filter((e=>e>0)).map((e=>[e-1,[t]]));return{lineClassNames:Object.fromEntries(s),code:n}}if(void 0===s)return{lineClassNames:{},code:n};const a=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":case"sql":return g(["lua"],t);case"wasm":return g(["wasm"],t);case"vb":case"vbnet":case"vba":case"visual-basic":return g(["vb","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(h,t)}}(s,o),r=n.split("\n"),l=Object.fromEntries(o.map((e=>[e.className,{start:0,range:""}]))),i=Object.fromEntries(o.filter((e=>e.line)).map((e=>{let{className:t,line:n}=e;return[n,t]}))),u=Object.fromEntries(o.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.start,t]}))),m=Object.fromEntries(o.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.end,t]})));for(let d=0;d<r.length;){const e=r[d].match(a);if(!e){d+=1;continue}const t=e.slice(1).find((e=>void 0!==e));i[t]?l[i[t]].range+=`${d},`:u[t]?l[u[t]].start=d:m[t]&&(l[m[t]].range+=`${l[m[t]].start}-${d-1},`),r.splice(d,1)}n=r.join("\n");const b={};return Object.entries(l).forEach((e=>{let[t,{range:n}]=e;d()(n).forEach((e=>{b[e]??=[],b[e].push(t)}))})),{lineClassNames:b,code:n}}const x={codeBlockContainer:"codeBlockContainer_Ckt0"};var j=n(5893);function B(e){let{as:t,...n}=e;const s=function(e){const t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach((e=>{let[s,o]=e;const c=t[s];c&&"string"==typeof o&&(n[c]=o)})),n}(l());return(0,j.jsx)(t,{...n,style:s,className:(0,c.Z)(n.className,x.codeBlockContainer,i.k.common.codeBlock)})}const y={codeBlockContent:"codeBlockContent_biex",codeBlockTitle:"codeBlockTitle_Ktv7",codeBlock:"codeBlock_bY9V",codeBlockStandalone:"codeBlockStandalone_MEMb",codeBlockLines:"codeBlockLines_e6Vv",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_o6Pm",buttonGroup:"buttonGroup__atx"};function v(e){let{children:t,className:n}=e;return(0,j.jsx)(B,{as:"pre",tabIndex:0,className:(0,c.Z)(y.codeBlockStandalone,"thin-scrollbar",n),children:(0,j.jsx)("code",{className:y.codeBlockLines,children:t})})}var C=n(902);const N={attributes:!0,characterData:!0,childList:!0,subtree:!0};function w(e,t){const[n,o]=(0,s.useState)(),c=(0,s.useCallback)((()=>{o(e.current?.closest("[role=tabpanel][hidden]"))}),[e,o]);(0,s.useEffect)((()=>{c()}),[c]),function(e,t,n){void 0===n&&(n=N);const o=(0,C.zX)(t),c=(0,C.Ql)(n);(0,s.useEffect)((()=>{const t=new MutationObserver(o);return e&&t.observe(e,c),()=>t.disconnect()}),[e,o,c])}(n,(e=>{e.forEach((e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),c())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}var E=n(2573);const L={codeLine:"codeLine_lJS_",codeLineNumber:"codeLineNumber_Tfdd",codeLineContent:"codeLineContent_feaV"};function S(e){let{line:t,classNames:n,showLineNumbers:s,getLineProps:o,getTokenProps:a}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");const r=o({line:t,className:(0,c.Z)(n,s&&L.codeLine)}),l=t.map(((e,t)=>(0,j.jsx)("span",{...a({token:e,key:t})},t)));return(0,j.jsxs)("span",{...r,children:[s?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("span",{className:L.codeLineNumber}),(0,j.jsx)("span",{className:L.codeLineContent,children:l})]}):l,(0,j.jsx)("br",{})]})}var _=n(5999);function I(e){return(0,j.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,j.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 A(e){return(0,j.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,j.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}const T={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function Z(e){let{code:t,className:n}=e;const[o,a]=(0,s.useState)(!1),r=(0,s.useRef)(void 0),l=(0,s.useCallback)((()=>{!function(e,t){let{target:n=document.body}=void 0===t?{}:t;if("string"!=typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const s=document.createElement("textarea"),o=document.activeElement;s.value=e,s.setAttribute("readonly",""),s.style.contain="strict",s.style.position="absolute",s.style.left="-9999px",s.style.fontSize="12pt";const c=document.getSelection(),a=c.rangeCount>0&&c.getRangeAt(0);n.append(s),s.select(),s.selectionStart=0,s.selectionEnd=e.length;let r=!1;try{r=document.execCommand("copy")}catch{}s.remove(),a&&(c.removeAllRanges(),c.addRange(a)),o&&o.focus()}(t),a(!0),r.current=window.setTimeout((()=>{a(!1)}),1e3)}),[t]);return(0,s.useEffect)((()=>()=>window.clearTimeout(r.current)),[]),(0,j.jsx)("button",{type:"button","aria-label":o?(0,_.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,_.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,_.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,c.Z)("clean-btn",n,T.copyButton,o&&T.copyButtonCopied),onClick:l,children:(0,j.jsxs)("span",{className:T.copyButtonIcons,"aria-hidden":"true",children:[(0,j.jsx)(I,{className:T.copyButtonIcon}),(0,j.jsx)(A,{className:T.copyButtonSuccessIcon})]})})}function M(e){return(0,j.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,j.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"})})}const $={wordWrapButtonIcon:"wordWrapButtonIcon_Bwma",wordWrapButtonEnabled:"wordWrapButtonEnabled_EoeP"};function W(e){let{className:t,onClick:n,isEnabled:s}=e;const o=(0,_.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,j.jsx)("button",{type:"button",onClick:n,className:(0,c.Z)("clean-btn",t,s&&$.wordWrapButtonEnabled),"aria-label":o,title:o,children:(0,j.jsx)(M,{className:$.wordWrapButtonIcon,"aria-hidden":"true"})})}function R(e){let{children:t,className:n="",metastring:o,title:a,showLineNumbers:i,language:u}=e;const{prism:{defaultLanguage:d,magicComments:p}}=(0,r.L)(),b=function(e){return e?.toLowerCase()}(u??function(e){const t=e.split(" ").find((e=>e.startsWith("language-")));return t?.replace(/language-/,"")}(n)??d),f=l(),h=function(){const[e,t]=(0,s.useState)(!1),[n,o]=(0,s.useState)(!1),c=(0,s.useRef)(null),a=(0,s.useCallback)((()=>{const n=c.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[c,e]),r=(0,s.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=c.current,n=e>t||c.current.querySelector("code").hasAttribute("style");o(n)}),[c]);return w(c,r),(0,s.useEffect)((()=>{r()}),[e,r]),(0,s.useEffect)((()=>(window.addEventListener("resize",r,{passive:!0}),()=>{window.removeEventListener("resize",r)})),[r]),{codeBlockRef:c,isEnabled:e,isCodeScrollable:n,toggle:a}}(),g=function(e){return e?.match(m)?.groups.title??""}(o)||a,{lineClassNames:x,code:v}=k(t,{metastring:o,language:b,magicComments:p}),C=i??function(e){return Boolean(e?.includes("showLineNumbers"))}(o);return(0,j.jsxs)(B,{as:"div",className:(0,c.Z)(n,b&&!n.includes(`language-${b}`)&&`language-${b}`),children:[g&&(0,j.jsx)("div",{className:y.codeBlockTitle,children:g}),(0,j.jsxs)("div",{className:y.codeBlockContent,children:[(0,j.jsx)(E.y$,{theme:f,code:v,language:b??"text",children:e=>{let{className:t,style:n,tokens:s,getLineProps:o,getTokenProps:a}=e;return(0,j.jsx)("pre",{tabIndex:0,ref:h.codeBlockRef,className:(0,c.Z)(t,y.codeBlock,"thin-scrollbar"),style:n,children:(0,j.jsx)("code",{className:(0,c.Z)(y.codeBlockLines,C&&y.codeBlockLinesWithNumbering),children:s.map(((e,t)=>(0,j.jsx)(S,{line:e,getLineProps:o,getTokenProps:a,classNames:x[t],showLineNumbers:C},t)))})})}}),(0,j.jsxs)("div",{className:y.buttonGroup,children:[(h.isEnabled||h.isCodeScrollable)&&(0,j.jsx)(W,{className:y.codeButton,onClick:()=>h.toggle(),isEnabled:h.isEnabled}),(0,j.jsx)(Z,{className:y.codeButton,code:v})]})]})]})}function H(e){let{children:t,...n}=e;const c=(0,o.Z)(),a=function(e){return s.Children.toArray(e).some((e=>(0,s.isValidElement)(e)))?e:Array.isArray(e)?e.join(""):e}(t),r="string"==typeof a?R:v;return(0,j.jsx)(r,{...n,children:a},String(c))}},4673:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var s=n(7294),o=n(512),c=n(2389),a=n(6043);const r={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var l=n(5893);function i(e){return!!e&&("SUMMARY"===e.tagName||i(e.parentElement))}function u(e,t){return!!e&&(e===t||u(e.parentElement,t))}function d(e){let{summary:t,children:n,...d}=e;const m=(0,c.Z)(),p=(0,s.useRef)(null),{collapsed:b,setCollapsed:f}=(0,a.u)({initialState:!d.open}),[h,g]=(0,s.useState)(d.open),k=s.isValidElement(t)?t:(0,l.jsx)("summary",{children:t??"Details"});return(0,l.jsxs)("details",{...d,ref:p,open:h,"data-collapsed":b,className:(0,o.Z)(r.details,m&&r.isBrowser,d.className),onMouseDown:e=>{i(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const t=e.target;i(t)&&u(t,p.current)&&(e.preventDefault(),b?(f(!1),g(!0)):f(!0))},children:[k,(0,l.jsx)(a.z,{lazy:!1,collapsed:b,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{f(e),g(!e)},children:(0,l.jsx)("div",{className:r.collapsibleContent,children:n})})]})}const m={details:"details_b_Ee"},p="alert alert--info";function b(e){let{...t}=e;return(0,l.jsx)(d,{...t,className:(0,o.Z)(p,m.details,t.className)})}},7594:(e,t)=>{function n(e){let t,n=[];for(let s of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(s))n.push(parseInt(s,10));else if(t=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,s,o,c]=t;if(s&&c){s=parseInt(s),c=parseInt(c);const e=s<c?1:-1;"-"!==o&&".."!==o&&"\u2025"!==o||(c+=e);for(let t=s;t!==c;t+=e)n.push(t)}}return n}t.default=n,e.exports=n},1151:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r,a:()=>a});var s=n(7294);const o={},c=s.createContext(o);function a(e){const t=s.useContext(c);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),s.createElement(c.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/546b1c5f.21223b82.js b/zh-CN/assets/js/546b1c5f.ddaa566a.js similarity index 83% rename from zh-CN/assets/js/546b1c5f.21223b82.js rename to zh-CN/assets/js/546b1c5f.ddaa566a.js index 85906b1334..b556a4b38b 100644 --- a/zh-CN/assets/js/546b1c5f.21223b82.js +++ b/zh-CN/assets/js/546b1c5f.ddaa566a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8263],{403:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>p,frontMatter:()=>t,metadata:()=>i,toc:()=>l});var s=o(5893),r=o(1151);const t={},c="Promise Wrappers",i={id:"documentation/promise-wrapper",title:"Promise Wrappers",description:"In addition to errback interface there is thin wrapper to expose Promise-based api",source:"@site/docs/documentation/promise-wrapper.mdx",sourceDirName:"documentation",slug:"/documentation/promise-wrapper",permalink:"/node-mysql2/zh-CN/docs/documentation/promise-wrapper",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/documentation/promise-wrapper.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Prepared Statements",permalink:"/node-mysql2/zh-CN/docs/documentation/prepared-statements"},next:{title:"Using MySQL2 with TypeScript",permalink:"/node-mysql2/zh-CN/docs/documentation/typescript-examples"}},a={},l=[{value:"Basic Promise",id:"basic-promise",level:2},{value:"ES7 Async Await",id:"es7-async-await",level:2},{value:"With CO",id:"with-co",level:2}];function m(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"promise-wrappers",children:"Promise Wrappers"}),"\n",(0,s.jsx)(n.p,{children:"In addition to errback interface there is thin wrapper to expose Promise-based api"}),"\n",(0,s.jsx)(n.h2,{id:"basic-promise",children:"Basic Promise"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"/* eslint-env es6 */\nconst mysql = require('mysql2/promise'); // or require('mysql2').createConnectionPromise\nmysql\n .createConnection({\n /* same parameters as for non-promise createConnection */\n })\n .then((conn) => conn.query('select foo from bar'))\n .then(([rows, fields]) => console.log(rows[0].foo));\n"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const pool = require('mysql2/promise').createPool({}); // or require('mysql2').createPoolPromise({}) or require('mysql2').createPool({}).promise()\npool\n .getConnection()\n .then((conn) => {\n const res = conn.query('select foo from bar');\n conn.release();\n return res;\n })\n .then((result) => {\n console.log(result[0][0].foo);\n })\n .catch((err) => {\n console.log(err); // any of connection time or query time errors from above\n });\n"})}),"\n",(0,s.jsx)(n.h2,{id:"es7-async-await",children:"ES7 Async Await"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"async function example1() {\n const mysql = require('mysql2/promise');\n const conn = await mysql.createConnection({ database: test });\n const [rows, fields] = await conn.execute('select ?+? as sum', [2, 2]);\n await conn.end();\n}\n\nasync function example2() {\n const mysql = require('mysql2/promise');\n const pool = mysql.createPool({ database: test });\n // execute in parallel, next console.log in 3 seconds\n await Promise.all([\n pool.query('select sleep(2)'),\n pool.query('select sleep(3)'),\n ]);\n console.log('3 seconds after');\n await pool.end();\n}\n"})}),"\n",(0,s.jsxs)(n.h2,{id:"with-co",children:["With ",(0,s.jsx)(n.a,{href:"https://github.com/tj/co",children:"CO"})]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst co = require('co');\nco(function* () {\n const c = yield mysql.createConnectionPromise({\n user: 'root',\n namedPlaceholders: true,\n });\n const rows = yield c.query('show databases');\n console.log(rows);\n console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 }));\n yield c.end();\n});\n"})}),"\n",(0,s.jsxs)(n.p,{children:["Examples in ",(0,s.jsx)(n.a,{href:"/docs/examples/promise-co-await",children:"/examples/promise-co-await"})]})]})}function p(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},1151:(e,n,o)=>{o.d(n,{Z:()=>i,a:()=>c});var s=o(7294);const r={},t=s.createContext(r);function c(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8263],{403:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>m,frontMatter:()=>t,metadata:()=>i,toc:()=>l});var s=o(5893),r=o(1151);const t={},c="Promise Wrappers",i={id:"documentation/promise-wrapper",title:"Promise Wrappers",description:"In addition to errback interface there is thin wrapper to expose Promise-based api",source:"@site/docs/documentation/promise-wrapper.mdx",sourceDirName:"documentation",slug:"/documentation/promise-wrapper",permalink:"/node-mysql2/zh-CN/docs/documentation/promise-wrapper",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/documentation/promise-wrapper.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Prepared Statements",permalink:"/node-mysql2/zh-CN/docs/documentation/prepared-statements"},next:{title:"Using MySQL2 with TypeScript",permalink:"/node-mysql2/zh-CN/docs/documentation/typescript-examples"}},a={},l=[{value:"Basic Promise",id:"basic-promise",level:2},{value:"ES7 Async Await",id:"es7-async-await",level:2},{value:"With CO",id:"with-co",level:2}];function p(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"promise-wrappers",children:"Promise Wrappers"}),"\n",(0,s.jsx)(n.p,{children:"In addition to errback interface there is thin wrapper to expose Promise-based api"}),"\n",(0,s.jsx)(n.h2,{id:"basic-promise",children:"Basic Promise"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"/* eslint-env es6 */\nconst mysql = require('mysql2/promise'); // or require('mysql2').createConnectionPromise\nmysql\n .createConnection({\n /* same parameters as for non-promise createConnection */\n })\n .then((conn) => conn.query('select foo from bar'))\n .then(([rows, fields]) => console.log(rows[0].foo));\n"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const pool = require('mysql2/promise').createPool({}); // or require('mysql2').createPoolPromise({}) or require('mysql2').createPool({}).promise()\npool\n .getConnection()\n .then((conn) => {\n const res = conn.query('select foo from bar');\n conn.release();\n return res;\n })\n .then((result) => {\n console.log(result[0][0].foo);\n })\n .catch((err) => {\n console.log(err); // any of connection time or query time errors from above\n });\n"})}),"\n",(0,s.jsx)(n.h2,{id:"es7-async-await",children:"ES7 Async Await"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"async function example1() {\n const mysql = require('mysql2/promise');\n const conn = await mysql.createConnection({ database: test });\n const [rows, fields] = await conn.execute('select ?+? as sum', [2, 2]);\n await conn.end();\n}\n\nasync function example2() {\n const mysql = require('mysql2/promise');\n const pool = mysql.createPool({ database: test });\n // execute in parallel, next console.log in 3 seconds\n await Promise.all([\n pool.query('select sleep(2)'),\n pool.query('select sleep(3)'),\n ]);\n console.log('3 seconds after');\n await pool.end();\n}\n"})}),"\n",(0,s.jsxs)(n.h2,{id:"with-co",children:["With ",(0,s.jsx)(n.a,{href:"https://github.com/tj/co",children:"CO"})]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst co = require('co');\nco(function* () {\n const c = yield mysql.createConnectionPromise({\n user: 'root',\n namedPlaceholders: true,\n });\n const rows = yield c.query('show databases');\n console.log(rows);\n console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 }));\n yield c.end();\n});\n"})}),"\n",(0,s.jsxs)(n.p,{children:["Examples in ",(0,s.jsx)(n.a,{href:"/docs/examples/promise-wrapper/co-await",children:"/examples/promise-co-await"})]})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(p,{...e})}):p(e)}},1151:(e,n,o)=>{o.d(n,{Z:()=>i,a:()=>c});var s=o(7294);const r={},t=s.createContext(r);function c(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/54768732.8a0b1c4d.js b/zh-CN/assets/js/54768732.8a0b1c4d.js new file mode 100644 index 0000000000..762e230f2c --- /dev/null +++ b/zh-CN/assets/js/54768732.8a0b1c4d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[576],{3990:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>h,contentTitle:()=>c,default:()=>x,frontMatter:()=>u,metadata:()=>d,toc:()=>p});var t=n(5893),s=n(1151),l=n(4866),a=n(5162),o=n(6393),i=n(4379);const u={sidebar_position:2,tags:["query"]},c="UPDATE",d={id:"examples/queries/simple-queries/update",title:"UPDATE",description:"The examples below also work for the execute method.",source:"@site/docs/examples/queries/simple-queries/update.mdx",sourceDirName:"examples/queries/simple-queries",slug:"/examples/queries/simple-queries/update",permalink:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/update",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/simple-queries/update.mdx",tags:[{label:"query",permalink:"/node-mysql2/zh-CN/docs/tags/query"}],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2,tags:["query"]},sidebar:"examples",previous:{title:"SELECT",permalink:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/select"},next:{title:"DELETE",permalink:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/delete"}},h={},p=[{value:"query(sql)",id:"querysql",level:2},{value:"query(options)",id:"queryoptions",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"QueryOptions",id:"queryoptions-1",level:3}];function m(e){const r={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.h1,{id:"update",children:"UPDATE"}),"\n",(0,t.jsxs)(r.p,{children:["The examples below also work for the ",(0,t.jsx)(r.a,{href:"/docs/examples/queries/prepared-statements/update",children:(0,t.jsx)(r.code,{children:"execute"})})," method."]}),"\n",(0,t.jsx)(r.h2,{id:"querysql",children:"query(sql)"}),"\n",(0,t.jsxs)(r.blockquote,{children:["\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"query(sql: string)"})}),"\n"]}),"\n",(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"try {\n const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1';\n\n // highlight-next-line\n const [result, fields] = await connection.query(sql);\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"callback.js",children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1';\n\nconnection.query(sql, (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n});\n"})})})]}),"\n",(0,t.jsxs)(r.ul,{children:["\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"result"}),": contains a ",(0,t.jsx)(r.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,t.jsx)(r.admonition,{type:"info",children:(0,t.jsxs)(r.p,{children:["The connection used for the query (",(0,t.jsx)(r.code,{children:".query()"}),") can be obtained through the ",(0,t.jsx)(r.code,{children:"createConnection"}),", ",(0,t.jsx)(r.code,{children:"createPool"})," or ",(0,t.jsx)(r.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,t.jsx)(r.hr,{}),"\n",(0,t.jsx)(r.h2,{id:"queryoptions",children:"query(options)"}),"\n",(0,t.jsxs)(r.blockquote,{children:["\n",(0,t.jsx)(r.p,{children:(0,t.jsxs)(r.strong,{children:["query(options: ",(0,t.jsx)(r.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"try {\n const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1';\n\n // highlight-start\n const [result, fields] = await connection.query({\n sql,\n // ... other options\n });\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"callback.js",children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1';\n\nconnection.query(\n {\n sql,\n // ... other options\n },\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,t.jsxs)(r.ul,{children:["\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"result"}),": contains a ",(0,t.jsx)(r.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,t.jsx)(r.admonition,{type:"info",children:(0,t.jsxs)(r.p,{children:["The connection used for the query (",(0,t.jsx)(r.code,{children:".query()"}),") can be obtained through the ",(0,t.jsx)(r.code,{children:"createConnection"}),", ",(0,t.jsx)(r.code,{children:"createPool"})," or ",(0,t.jsx)(r.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,t.jsx)(r.hr,{}),"\n",(0,t.jsx)(r.h2,{id:"glossary",children:"Glossary"}),"\n",(0,t.jsx)(r.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,t.jsx)(o.Z,{title:"ResultSetHeader Specification",children:(0,t.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts",extractMethod:"ResultSetHeader",methodType:"interface"})}),"\n",(0,t.jsx)(r.h3,{id:"queryoptions-1",children:"QueryOptions"}),"\n",(0,t.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,t.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function x(e={}){const{wrapper:r}={...(0,s.a)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},5162:(e,r,n)=>{n.d(r,{Z:()=>a});n(7294);var t=n(512);const s={tabItem:"tabItem_Ymn6"};var l=n(5893);function a(e){let{children:r,hidden:n,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,t.Z)(s.tabItem,a),hidden:n,children:r})}},4866:(e,r,n)=>{n.d(r,{Z:()=>v});var t=n(7294),s=n(512),l=n(2466),a=n(6550),o=n(469),i=n(1980),u=n(7392),c=n(12);function d(e){return t.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,t.isValidElement)(e)&&function(e){const{props:r}=e;return!!r&&"object"==typeof r&&"value"in r}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:r,children:n}=e;return(0,t.useMemo)((()=>{const e=r??function(e){return d(e).map((e=>{let{props:{value:r,label:n,attributes:t,default:s}}=e;return{value:r,label:n,attributes:t,default:s}}))}(n);return function(e){const r=(0,u.l)(e,((e,r)=>e.value===r.value));if(r.length>0)throw new Error(`Docusaurus error: Duplicate values "${r.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[r,n])}function p(e){let{value:r,tabValues:n}=e;return n.some((e=>e.value===r))}function m(e){let{queryString:r=!1,groupId:n}=e;const s=(0,a.k6)(),l=function(e){let{queryString:r=!1,groupId:n}=e;if("string"==typeof r)return r;if(!1===r)return null;if(!0===r&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:r,groupId:n});return[(0,i._X)(l),(0,t.useCallback)((e=>{if(!l)return;const r=new URLSearchParams(s.location.search);r.set(l,e),s.replace({...s.location,search:r.toString()})}),[l,s])]}function x(e){const{defaultValue:r,queryString:n=!1,groupId:s}=e,l=h(e),[a,i]=(0,t.useState)((()=>function(e){let{defaultValue:r,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(r){if(!p({value:r,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${r}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return r}const t=n.find((e=>e.default))??n[0];if(!t)throw new Error("Unexpected error: 0 tabValues");return t.value}({defaultValue:r,tabValues:l}))),[u,d]=m({queryString:n,groupId:s}),[x,f]=function(e){let{groupId:r}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(r),[s,l]=(0,c.Nk)(n);return[s,(0,t.useCallback)((e=>{n&&l.set(e)}),[n,l])]}({groupId:s}),b=(()=>{const e=u??x;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{b&&i(b)}),[b]);return{selectedValue:a,selectValue:(0,t.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),f(e)}),[d,f,l]),tabValues:l}}var f=n(2389);const b={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=n(5893);function j(e){let{className:r,block:n,selectedValue:t,selectValue:a,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:u}=(0,l.o5)(),c=e=>{const r=e.currentTarget,n=i.indexOf(r),s=o[n].value;s!==t&&(u(r),a(s))},d=e=>{let r=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=i.indexOf(e.currentTarget)+1;r=i[n]??i[0];break}case"ArrowLeft":{const n=i.indexOf(e.currentTarget)-1;r=i[n]??i[i.length-1];break}}r?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":n},r),children:o.map((e=>{let{value:r,label:n,attributes:l}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:t===r?0:-1,"aria-selected":t===r,ref:e=>i.push(e),onKeyDown:d,onClick:c,...l,className:(0,s.Z)("tabs__item",b.tabItem,l?.className,{"tabs__item--active":t===r}),children:n??r},r)}))})}function q(e){let{lazy:r,children:n,selectedValue:s}=e;const l=(Array.isArray(n)?n:[n]).filter(Boolean);if(r){const e=l.find((e=>e.props.value===s));return e?(0,t.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:l.map(((e,r)=>(0,t.cloneElement)(e,{key:r,hidden:e.props.value!==s})))})}function y(e){const r=x(e);return(0,g.jsxs)("div",{className:(0,s.Z)("tabs-container",b.tabList),children:[(0,g.jsx)(j,{...e,...r}),(0,g.jsx)(q,{...e,...r})]})}function v(e){const r=(0,f.Z)();return(0,g.jsx)(y,{...e,children:d(e.children)},String(r))}},4379:(e,r,n)=>{n.d(r,{I:()=>i});var t=n(7294),s=n(2263),l=n(9286),a=n(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),i=e=>{let{url:r,language:n,extractMethod:i,methodType:u}=e;const[c,d]=(0,t.useState)(""),[h,p]=(0,t.useState)(!0),[m,x]=(0,t.useState)(!0),{siteConfig:f}=(0,s.Z)(),b=f.baseUrl.replace(/\/$/,""),g=/^\//.test(r)?`${b}${r}`:r;return(0,t.useEffect)((()=>{const e=new AbortController,r=e.signal;return fetch(g,{signal:r}).then((e=>e.text())).then((e=>{const r=i&&u?((e,r,n)=>{const t=e.split("\n"),s=`${n} ${r}`;let l=!1,a=0,o="";for(const i of t)if(i.includes(s)&&(l=!0),l&&(i.includes("{")&&a++,o+=i+"\n",i.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,i,u):e;d(r||e),p(!1),x(!1)})).catch((()=>{x(!0),p(!1)})),()=>{e.abort()}}),[g,i,u]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:m?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:g}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${n}`,children:c})})})}},6393:(e,r,n)=>{n.d(r,{Z:()=>l});var t=n(4673),s=n(5893);const l=e=>{let{children:r,open:n,title:l}=e;return(0,s.jsx)(t.Z,{open:n,className:"faq",summary:(0,s.jsx)("summary",{children:(0,s.jsx)("strong",{children:l})}),children:(0,s.jsx)("section",{children:r})})}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/54dbd6f3.bcef5c5a.js b/zh-CN/assets/js/54dbd6f3.bcef5c5a.js deleted file mode 100644 index 075203811e..0000000000 --- a/zh-CN/assets/js/54dbd6f3.bcef5c5a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4917],{929:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>i,contentTitle:()=>u,default:()=>p,frontMatter:()=>o,metadata:()=>c,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),l=n(5162);const o={},u="SELECT",c={id:"examples/queries/select",title:"SELECT",description:"",source:"@site/docs/examples/queries/select.mdx",sourceDirName:"examples/queries",slug:"/examples/queries/select",permalink:"/node-mysql2/zh-CN/docs/examples/queries/select",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/select.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Queries",permalink:"/node-mysql2/zh-CN/docs/category/queries"},next:{title:"Server",permalink:"/node-mysql2/zh-CN/docs/examples/server"}},i={},d=[];function m(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"select",children:"SELECT"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(l.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\n// get the client\nconst mysql = require('mysql2');\n\n// create the connection to database\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// simple query\nconnection.query(\n 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45',\n (err, results, fields) => {\n console.log(results); // results contains rows returned by server\n console.log(fields); // fields contains extra meta data about results, if available\n }\n);\n\n// with placeholder\nconnection.query(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Page', 45],\n (err, results) => {\n console.log(results);\n }\n);\n"})})})})]})}function p(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function l(e){let{children:t,hidden:n,className:l}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,l),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(7294),a=n(512),s=n(2466),l=n(6550),o=n(469),u=n(1980),c=n(7392),i=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,c.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function p(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const a=(0,l.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function h(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=m(e),[l,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!p({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[c,d]=f({queryString:n,groupId:a}),[h,b]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,i.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),v=(()=>{const e=c??h;return p({value:e,tabValues:s})?e:null})();(0,o.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:l,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=n(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=n(5893);function x(e){let{className:t,block:n,selectedValue:r,selectValue:l,tabValues:o}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const t=e.currentTarget,n=u.indexOf(t),a=o[n].value;a!==r&&(c(t),l(a))},d=e=>{let t=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function y(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function q(e){const t=h(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,g.jsx)(x,{...e,...t}),(0,g.jsx)(y,{...e,...t})]})}function w(e){const t=(0,b.Z)();return(0,g.jsx)(q,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>o,a:()=>l});var r=n(7294);const a={},s=r.createContext(a);function l(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:l(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/54eaaaae.18d06985.js b/zh-CN/assets/js/54eaaaae.18d06985.js new file mode 100644 index 0000000000..234ec7a64b --- /dev/null +++ b/zh-CN/assets/js/54eaaaae.18d06985.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1420],{1:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>u,contentTitle:()=>d,default:()=>g,frontMatter:()=>a,metadata:()=>h,toc:()=>p});var s=o(5893),r=o(1151),l=o(4866),t=o(5162),c=o(6393),i=o(4379);const a={sidebar_position:2,tags:["createPool","URI","SHA1","RDS","SSL","Socks"]},d="createPool",h={id:"examples/connections/create-pool",title:"createPool",description:"For queries please see the Simple Queries and Prepared Statements examples.",source:"@site/docs/examples/connections/create-pool.mdx",sourceDirName:"examples/connections",slug:"/examples/connections/create-pool",permalink:"/node-mysql2/zh-CN/docs/examples/connections/create-pool",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/connections/create-pool.mdx",tags:[{label:"createPool",permalink:"/node-mysql2/zh-CN/docs/tags/create-pool"},{label:"URI",permalink:"/node-mysql2/zh-CN/docs/tags/uri"},{label:"SHA1",permalink:"/node-mysql2/zh-CN/docs/tags/sha-1"},{label:"RDS",permalink:"/node-mysql2/zh-CN/docs/tags/rds"},{label:"SSL",permalink:"/node-mysql2/zh-CN/docs/tags/ssl"},{label:"Socks",permalink:"/node-mysql2/zh-CN/docs/tags/socks"}],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2,tags:["createPool","URI","SHA1","RDS","SSL","Socks"]},sidebar:"examples",previous:{title:"createConnection",permalink:"/node-mysql2/zh-CN/docs/examples/connections/create-connection"},next:{title:"createPoolCluster",permalink:"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster"}},u={},p=[{value:"createPool(connectionUri)",id:"createpoolconnectionuri",level:2},{value:"createPool(config)",id:"createpoolconfig",level:2},{value:"createPool(config) \u2014 SHA1",id:"createpoolconfig--sha1",level:2},{value:"createPool(config) \u2014 SSL",id:"createpoolconfig--ssl",level:2},{value:"createPool(config) \u2014 RDS SSL",id:"createpoolconfig--rds-ssl",level:2},{value:"Related Links",id:"related-links",level:3},{value:"createPool(config) \u2014 Socks",id:"createpoolconfig--socks",level:2},{value:"Glossary",id:"glossary",level:2},{value:"PoolOptions",id:"pooloptions",level:3}];function m(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"createpool",children:"createPool"}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["For queries please see the ",(0,s.jsx)(n.a,{href:"/docs/examples/queries/simple-queries",children:(0,s.jsx)(n.strong,{children:"Simple Queries"})})," and ",(0,s.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements",children:(0,s.jsx)(n.strong,{children:"Prepared Statements"})})," examples."]})}),"\n",(0,s.jsx)(n.h2,{id:"createpoolconnectionuri",children:"createPool(connectionUri)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"createPool(connectionUri: string)"})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const pool = mysql.createPool('mysql://root:password@localhost:3306/test');\n const connection = await pool.getConnection();\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(t.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool('mysql://root:password@localhost:3306/test');\n\npool.getConnection(function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})})]}),"\n",(0,s.jsxs)(n.admonition,{type:"warning",children:[(0,s.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"pool.releaseConnection(connection)"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"createpoolconfig",children:"createPool(config)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["createPool(config: ",(0,s.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n // port: 3306,\n // password: '',\n });\n const connection = await pool.getConnection();\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(t.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n // port: 3306,\n // password: '',\n});\n\npool.getConnection(function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})})]}),"\n",(0,s.jsxs)(n.admonition,{type:"warning",children:[(0,s.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"pool.releaseConnection(connection)"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"createpoolconfig--sha1",children:"createPool(config) \u2014 SHA1"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["createPool(config: ",(0,s.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const pool = mysql.createPool({\n // ...\n passwordSha1: Buffer.from(\n '8bb6118f8fd6935ad0876a3be34a717d32708ffd',\n 'hex'\n ),\n });\n const connection = await pool.getConnection();\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(t.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool({\n // ...\n passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'),\n});\n\npool.getConnection(function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})})]}),"\n",(0,s.jsxs)(n.admonition,{type:"warning",children:[(0,s.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"pool.releaseConnection(connection)"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"createpoolconfig--ssl",children:"createPool(config) \u2014 SSL"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["createPool(config: ",(0,s.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const pool = mysql.createPool({\n // ...\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n });\n const connection = await pool.getConnection();\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(t.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool({\n // ...\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n});\n\npool.getConnection(function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})}),(0,s.jsxs)(t.Z,{value:"certs/ca-cert.pem",children:[(0,s.jsx)(i.I,{language:"plan",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/test/fixtures/ssl/certs/ca.pem"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["See ",(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/tree/master/test/fixtures/ssl/certs",children:"ssl/certs"}),"."]}),"\n"]})]})]}),"\n",(0,s.jsxs)(n.admonition,{type:"warning",children:[(0,s.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"pool.releaseConnection(connection)"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"createpoolconfig--rds-ssl",children:"createPool(config) \u2014 RDS SSL"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["createPool(config: ",(0,s.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["You can use ",(0,s.jsx)(n.strong,{children:"Amazon RDS"})," string as value to ssl property to connect to ",(0,s.jsx)(n.strong,{children:"Amazon RDS"})," MySQL over SSL."]}),"\n",(0,s.jsxs)(n.p,{children:["In that case ",(0,s.jsx)(n.a,{href:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem",children:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem"})," CA cert is used:"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsxs)(t.Z,{value:"promise.js",default:!0,children:[(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const pool = mysql.createPool({\n // ...\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n });\n const connection = await pool.getConnection();\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})}),(0,s.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const [res] = await connection.query('SHOW `status` LIKE \"Ssl_cipher\"');\n await pool.end();\n\n console.log(res);\n} catch (err) {\n console.log(err);\n}\n"})})})]}),(0,s.jsxs)(t.Z,{value:"callback.js",children:[(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool({\n // ...\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n});\n\npool.getConnection(function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})}),(0,s.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connectionquery('SHOW `status` LIKE \"Ssl_cipher\"', function (err, res) {\n pool.end();\n\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(res);\n});\n"})})})]})]}),"\n",(0,s.jsxs)(n.admonition,{type:"warning",children:[(0,s.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"pool.releaseConnection(connection)"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,s.jsx)(n.h3,{id:"related-links",children:"Related Links"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Issues"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/issues/2130",children:"#2130 \u2014 Update TLS certs for Amazon RDS instances"})}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Pull Requests"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/pull/2119",children:"#2119 \u2014 fix: make startTls code compatible with Bun"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/pull/2131",children:"#2131 \u2014 Update Amazon RDS SSL CA cert"})}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"createpoolconfig--socks",children:"createPool(config) \u2014 Socks"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["createPool(config: ",(0,s.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(t.Z,{value:"A.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\nconst socksProxy = new SocksConnection({ port: 3306 });\n// highlight-start\nconst pool = mysql.createPool({\n stream: socksProxy,\n});\n// highlight-end\n"})})}),(0,s.jsx)(t.Z,{value:"B.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\n// highlight-start\nconst pool = mysql.createPool({\n debug: 1,\n stream: function () {\n return new SocksConnection({ port: 3306 });\n },\n});\n// highlight-end\n"})})})]}),"\n",(0,s.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"pool.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n\npool.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n\npool.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n"})})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,s.jsx)(n.h3,{id:"pooloptions",children:"PoolOptions"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"PoolOptions"})," extends all options from ",(0,s.jsx)(n.strong,{children:"ConnectionOptions"}),":"]}),"\n",(0,s.jsx)(c.Z,{title:"ConnectionOptions Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/Connection.d.ts",extractMethod:"ConnectionOptions",methodType:"interface"})}),"\n"]}),"\n",(0,s.jsx)(c.Z,{title:"PoolOptions Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/Pool.d.ts",extractMethod:"PoolOptions",methodType:"interface"})})]})}function g(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},5162:(e,n,o)=>{o.d(n,{Z:()=>t});o(7294);var s=o(512);const r={tabItem:"tabItem_Ymn6"};var l=o(5893);function t(e){let{children:n,hidden:o,className:t}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,s.Z)(r.tabItem,t),hidden:o,children:n})}},4866:(e,n,o)=>{o.d(n,{Z:()=>S});var s=o(7294),r=o(512),l=o(2466),t=o(6550),c=o(469),i=o(1980),a=o(7392),d=o(12);function h(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:n,children:o}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return h(e).map((e=>{let{props:{value:n,label:o,attributes:s,default:r}}=e;return{value:n,label:o,attributes:s,default:r}}))}(o);return function(e){const n=(0,a.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,o])}function p(e){let{value:n,tabValues:o}=e;return o.some((e=>e.value===n))}function m(e){let{queryString:n=!1,groupId:o}=e;const r=(0,t.k6)(),l=function(e){let{queryString:n=!1,groupId:o}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!o)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return o??null}({queryString:n,groupId:o});return[(0,i._X)(l),(0,s.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(r.location.search);n.set(l,e),r.replace({...r.location,search:n.toString()})}),[l,r])]}function g(e){const{defaultValue:n,queryString:o=!1,groupId:r}=e,l=u(e),[t,i]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:o}=e;if(0===o.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:o}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${o.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=o.find((e=>e.default))??o[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:l}))),[a,h]=m({queryString:o,groupId:r}),[g,x]=function(e){let{groupId:n}=e;const o=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,l]=(0,d.Nk)(o);return[r,(0,s.useCallback)((e=>{o&&l.set(e)}),[o,l])]}({groupId:r}),j=(()=>{const e=a??g;return p({value:e,tabValues:l})?e:null})();(0,c.Z)((()=>{j&&i(j)}),[j]);return{selectedValue:t,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),h(e),x(e)}),[h,x,l]),tabValues:l}}var x=o(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=o(5893);function y(e){let{className:n,block:o,selectedValue:s,selectValue:t,tabValues:c}=e;const i=[],{blockElementScrollPositionUntilNextRender:a}=(0,l.o5)(),d=e=>{const n=e.currentTarget,o=i.indexOf(n),r=c[o].value;r!==s&&(a(n),t(r))},h=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const o=i.indexOf(e.currentTarget)+1;n=i[o]??i[0];break}case"ArrowLeft":{const o=i.indexOf(e.currentTarget)-1;n=i[o]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":o},n),children:c.map((e=>{let{value:n,label:o,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>i.push(e),onKeyDown:h,onClick:d,...l,className:(0,r.Z)("tabs__item",j.tabItem,l?.className,{"tabs__item--active":s===n}),children:o??n},n)}))})}function b(e){let{lazy:n,children:o,selectedValue:r}=e;const l=(Array.isArray(o)?o:[o]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===r));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function q(e){const n=g(e);return(0,f.jsxs)("div",{className:(0,r.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(y,{...e,...n}),(0,f.jsx)(b,{...e,...n})]})}function S(e){const n=(0,x.Z)();return(0,f.jsx)(q,{...e,children:h(e.children)},String(n))}},4379:(e,n,o)=>{o.d(n,{I:()=>i});var s=o(7294),r=o(2263),l=o(9286),t=o(5893);const c=()=>(0,t.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:o,extractMethod:i,methodType:a}=e;const[d,h]=(0,s.useState)(""),[u,p]=(0,s.useState)(!0),[m,g]=(0,s.useState)(!0),{siteConfig:x}=(0,r.Z)(),j=x.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,s.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&a?((e,n,o)=>{const s=e.split("\n"),r=`${o} ${n}`;let l=!1,t=0,c="";for(const i of s)if(i.includes(r)&&(l=!0),l&&(i.includes("{")&&t++,c+=i+"\n",i.includes("}")&&(t--,0===t)))break;return c.trim()||e})(e,i,a):e;h(n||e),p(!1),g(!1)})).catch((()=>{g(!0),p(!1)})),()=>{e.abort()}}),[f,i,a]),(0,t.jsx)(t.Fragment,{children:u?(0,t.jsx)(c,{}):(0,t.jsx)(t.Fragment,{children:m?(0,t.jsxs)("div",{children:["Unable to access the requested link: ",(0,t.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,t.jsx)(l.Z,{className:`language-${o}`,children:d})})})}},6393:(e,n,o)=>{o.d(n,{Z:()=>l});var s=o(4673),r=o(5893);const l=e=>{let{children:n,open:o,title:l}=e;return(0,r.jsx)(s.Z,{open:o,className:"faq",summary:(0,r.jsx)("summary",{children:(0,r.jsx)("strong",{children:l})}),children:(0,r.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/55960ee5.d48c22da.js b/zh-CN/assets/js/55960ee5.d48c22da.js new file mode 100644 index 0000000000..dc67b68daf --- /dev/null +++ b/zh-CN/assets/js/55960ee5.d48c22da.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4121],{8070:e=>{e.exports=JSON.parse('[{"label":"Prepared Statements","permalink":"/node-mysql2/zh-CN/docs/tags/prepared-statements","count":5},{"label":"execute","permalink":"/node-mysql2/zh-CN/docs/tags/execute","count":5},{"label":"createConnection","permalink":"/node-mysql2/zh-CN/docs/tags/create-connection","count":1},{"label":"URI","permalink":"/node-mysql2/zh-CN/docs/tags/uri","count":3},{"label":"SHA1","permalink":"/node-mysql2/zh-CN/docs/tags/sha-1","count":3},{"label":"RDS","permalink":"/node-mysql2/zh-CN/docs/tags/rds","count":3},{"label":"SSL","permalink":"/node-mysql2/zh-CN/docs/tags/ssl","count":3},{"label":"Socks","permalink":"/node-mysql2/zh-CN/docs/tags/socks","count":3},{"label":"createPool","permalink":"/node-mysql2/zh-CN/docs/tags/create-pool","count":1},{"label":"createPoolCluster","permalink":"/node-mysql2/zh-CN/docs/tags/create-pool-cluster","count":1},{"label":"Placeholders","permalink":"/node-mysql2/zh-CN/docs/tags/placeholders","count":4},{"label":"Parameters","permalink":"/node-mysql2/zh-CN/docs/tags/parameters","count":4},{"label":"query","permalink":"/node-mysql2/zh-CN/docs/tags/query","count":4}]')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/5748a325.0001eff2.js b/zh-CN/assets/js/5748a325.0001eff2.js deleted file mode 100644 index ef6cedcd3a..0000000000 --- a/zh-CN/assets/js/5748a325.0001eff2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1647],{4444:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>f,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},u="Server",c={id:"examples/server",title:"Server",description:"",source:"@site/docs/examples/server.mdx",sourceDirName:"examples",slug:"/examples/server",permalink:"/node-mysql2/zh-CN/docs/examples/server",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/server.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"SELECT",permalink:"/node-mysql2/zh-CN/docs/examples/queries/select"},next:{title:"SSL",permalink:"/node-mysql2/zh-CN/docs/category/ssl"}},i={},d=[];function m(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"server",children:"Server"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst flags = require('mysql2/lib/constants/client.js');\nconst auth = require('mysql2/lib/auth_41.js');\n\nfunction authenticate(params, cb) {\n console.log(params);\n const doubleSha = auth.doubleSha1('pass123');\n const isValid = auth.verifyToken(\n params.authPluginData1,\n params.authPluginData2,\n params.authToken,\n doubleSha\n );\n if (isValid) {\n cb(null);\n } else {\n // for list of codes lib/constants/errors.js\n cb(null, { message: 'wrong password dude', code: 1045 });\n }\n}\n\nconst server = mysql.createServer();\nserver.listen(3333);\nserver.on('connection', (conn) => {\n // we can deny connection here:\n // conn.writeError({ message: 'secret', code: 123 });\n // conn.close();\n conn.serverHandshake({\n protocolVersion: 10,\n serverVersion: '5.6.10', // 'node.js rocks',\n connectionId: 1234,\n statusFlags: 2,\n characterSet: 8,\n // capabilityFlags: 0xffffff,\n // capabilityFlags: -2113931265,\n capabilityFlags: 2181036031,\n authCallback: authenticate,\n });\n\n conn.on('field_list', (table, fields) => {\n console.log('FIELD LIST:', table, fields);\n conn.writeEof();\n });\n\n conn.on('query', (query) => {\n conn.writeColumns([\n {\n catalog: 'def',\n schema: 'test',\n table: 'test_table',\n orgTable: 'test_table',\n name: 'beta',\n orgName: 'beta',\n characterSet: 33,\n columnLength: 384,\n columnType: 253,\n flags: 0,\n decimals: 0,\n },\n ]);\n conn.writeTextRow(['test \u0442\u0435\u0441\u0442 \u30c6\u30b9\u30c8 \u0583\u0578\u0580\u0571\u0561\u0580\u056f\u0578\u0582\u0574 \u09aa\u09b0\u09c0\u0995\u09cd\u09b7\u09be ki\u1ec3m tra ']);\n conn.writeTextRow(['\u10e2\u10d4\u10e1\u10e2\u10d8 \u0aaa\u0ab0\u0ac0\u0a95\u0acd\u0ab7\u0aa3 \u05de\u05d1\u05d7\u05df \u05e4\u05bc\u05e8\u05d5\u05d1\u05d9\u05e8\u05df \u0627\u062e\u062a\u0628\u0627\u0631 \u092a\u0930\u0940\u0915\u094d\u0937\u0923']);\n conn.writeEof();\n conn.close();\n });\n});\n"})})})})]})}function f(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>k});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function f(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=m(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!f({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[c,d]=p({queryString:t,groupId:a}),[b,h]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,i.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),v=(()=>{const e=c??b;return f({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!f({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,s]),tabValues:s}}var h=t(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function y(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),a=l[t].value;a!==r&&(c(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function x(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function w(e){const n=b(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,g.jsx)(y,{...e,...n}),(0,g.jsx)(x,{...e,...n})]})}function k(e){const n=(0,h.Z)();return(0,g.jsx)(w,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/5814edec.c63b68d1.js b/zh-CN/assets/js/5814edec.c63b68d1.js deleted file mode 100644 index e9f8f5ff7e..0000000000 --- a/zh-CN/assets/js/5814edec.c63b68d1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3561],{3788:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>l,default:()=>m,frontMatter:()=>u,metadata:()=>i,toc:()=>d});var a=n(5893),r=n(1151),s=n(4866),o=n(5162);const u={},l="Row Data Packet (Row as Array)",i={id:"examples/typescript/row-data/row-as-array",title:"Row Data Packet (Row as Array)",description:"",source:"@site/docs/examples/typescript/row-data/01-row-as-array.mdx",sourceDirName:"examples/typescript/row-data",slug:"/examples/typescript/row-data/row-as-array",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/row-data/01-row-as-array.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"examples",previous:{title:"Row Data Packet",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-data-packet"},next:{title:"Row Data Packet (Multi Statements)",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/row-data/multi-statements"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,r.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h1,{id:"row-data-packet-row-as-array",children:"Row Data Packet (Row as Array)"}),"\n",(0,a.jsx)(s.Z,{children:(0,a.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n /** id */\n 0: number;\n /** name */\n 1: string;\n}\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n rowsAsArray: true,\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Getting users */\n const [users] = await conn.query<User[]>(\n 'SELECT * FROM `users` ORDER BY `name` ASC;'\n );\n\n users.forEach((user) => {\n console.log('-----------');\n console.log('id: ', user[0]);\n console.log('name:', user[1]);\n });\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * -----------\n * id: 4\n * name: Gween\n * -----------\n * id: 2\n * name: John\n * -----------\n * id: 1\n * name: Josh\n * -----------\n * id: 3\n * name: Marie\n */\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,r.a)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var a=n(512);const r={tabItem:"tabItem_Ymn6"};var s=n(5893);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,a.Z)(r.tabItem,o),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>k});var a=n(7294),r=n(512),s=n(2466),o=n(6550),u=n(469),l=n(1980),i=n(7392),c=n(12);function d(e){return a.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,a.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,a.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:a,default:r}}=e;return{value:t,label:n,attributes:a,default:r}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const r=(0,o.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,l._X)(s),(0,a.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(r.location.search);t.set(s,e),r.replace({...r.location,search:t.toString()})}),[s,r])]}function h(e){const{defaultValue:t,queryString:n=!1,groupId:r}=e,s=p(e),[o,l]=(0,a.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const a=n.find((e=>e.default))??n[0];if(!a)throw new Error("Unexpected error: 0 tabValues");return a.value}({defaultValue:t,tabValues:s}))),[i,d]=f({queryString:n,groupId:r}),[h,b]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[r,s]=(0,c.Nk)(n);return[r,(0,a.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:r}),w=(()=>{const e=i??h;return m({value:e,tabValues:s})?e:null})();(0,u.Z)((()=>{w&&l(w)}),[w]);return{selectedValue:o,selectValue:(0,a.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=n(2389);const w={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var y=n(5893);function v(e){let{className:t,block:n,selectedValue:a,selectValue:o,tabValues:u}=e;const l=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=l.indexOf(t),r=u[n].value;r!==a&&(i(t),o(r))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=l.indexOf(e.currentTarget)+1;t=l[n]??l[0];break}case"ArrowLeft":{const n=l.indexOf(e.currentTarget)-1;t=l[n]??l[l.length-1];break}}t?.focus()};return(0,y.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":n},t),children:u.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,y.jsx)("li",{role:"tab",tabIndex:a===t?0:-1,"aria-selected":a===t,ref:e=>l.push(e),onKeyDown:d,onClick:c,...s,className:(0,r.Z)("tabs__item",w.tabItem,s?.className,{"tabs__item--active":a===t}),children:n??t},t)}))})}function g(e){let{lazy:t,children:n,selectedValue:r}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===r));return e?(0,a.cloneElement)(e,{className:"margin-top--md"}):null}return(0,y.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,a.cloneElement)(e,{key:t,hidden:e.props.value!==r})))})}function x(e){const t=h(e);return(0,y.jsxs)("div",{className:(0,r.Z)("tabs-container",w.tabList),children:[(0,y.jsx)(v,{...e,...t}),(0,y.jsx)(g,{...e,...t})]})}function k(e){const t=(0,b.Z)();return(0,y.jsx)(x,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>u,a:()=>o});var a=n(7294);const r={},s=a.createContext(r);function o(e){const t=a.useContext(s);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function u(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),a.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/5814edec.d1d718df.js b/zh-CN/assets/js/5814edec.d1d718df.js new file mode 100644 index 0000000000..a46d345625 --- /dev/null +++ b/zh-CN/assets/js/5814edec.d1d718df.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3561],{3788:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>l,default:()=>m,frontMatter:()=>u,metadata:()=>i,toc:()=>d});var a=t(5893),r=t(1151),s=t(4866),o=t(5162);const u={},l="Row Data Packet (Row as Array)",i={id:"examples/typescript/row-data/row-as-array",title:"Row Data Packet (Row as Array)",description:"",source:"@site/docs/examples/typescript/row-data/01-row-as-array.mdx",sourceDirName:"examples/typescript/row-data",slug:"/examples/typescript/row-data/row-as-array",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/row-data/01-row-as-array.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"examples",previous:{title:"Row Data Packet",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/row-data/index"},next:{title:"Row Data Packet (Multi Statements)",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/row-data/multi-statements"}},c={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,r.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.h1,{id:"row-data-packet-row-as-array",children:"Row Data Packet (Row as Array)"}),"\n",(0,a.jsx)(s.Z,{children:(0,a.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n /** id */\n 0: number;\n /** name */\n 1: string;\n}\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n rowsAsArray: true,\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Getting users */\n const [users] = await conn.query<User[]>(\n 'SELECT * FROM `users` ORDER BY `name` ASC;'\n );\n\n users.forEach((user) => {\n console.log('-----------');\n console.log('id: ', user[0]);\n console.log('name:', user[1]);\n });\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * -----------\n * id: 4\n * name: Gween\n * -----------\n * id: 2\n * name: John\n * -----------\n * id: 1\n * name: Josh\n * -----------\n * id: 3\n * name: Marie\n */\n"})})})})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var a=t(512);const r={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,a.Z)(r.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>k});var a=t(7294),r=t(512),s=t(2466),o=t(6550),u=t(469),l=t(1980),i=t(7392),c=t(12);function d(e){return a.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,a.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,a.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:a,default:r}}=e;return{value:n,label:t,attributes:a,default:r}}))}(t);return function(e){const n=(0,i.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const r=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,l._X)(s),(0,a.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(r.location.search);n.set(s,e),r.replace({...r.location,search:n.toString()})}),[s,r])]}function h(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,s=p(e),[o,l]=(0,a.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const a=t.find((e=>e.default))??t[0];if(!a)throw new Error("Unexpected error: 0 tabValues");return a.value}({defaultValue:n,tabValues:s}))),[i,d]=f({queryString:t,groupId:r}),[h,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,s]=(0,c.Nk)(t);return[r,(0,a.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:r}),w=(()=>{const e=i??h;return m({value:e,tabValues:s})?e:null})();(0,u.Z)((()=>{w&&l(w)}),[w]);return{selectedValue:o,selectValue:(0,a.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const w={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var y=t(5893);function v(e){let{className:n,block:t,selectedValue:a,selectValue:o,tabValues:u}=e;const l=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const n=e.currentTarget,t=l.indexOf(n),r=u[t].value;r!==a&&(i(n),o(r))},d=e=>{let n=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const t=l.indexOf(e.currentTarget)+1;n=l[t]??l[0];break}case"ArrowLeft":{const t=l.indexOf(e.currentTarget)-1;n=l[t]??l[l.length-1];break}}n?.focus()};return(0,y.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":t},n),children:u.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,y.jsx)("li",{role:"tab",tabIndex:a===n?0:-1,"aria-selected":a===n,ref:e=>l.push(e),onKeyDown:d,onClick:c,...s,className:(0,r.Z)("tabs__item",w.tabItem,s?.className,{"tabs__item--active":a===n}),children:t??n},n)}))})}function g(e){let{lazy:n,children:t,selectedValue:r}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===r));return e?(0,a.cloneElement)(e,{className:"margin-top--md"}):null}return(0,y.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,a.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function x(e){const n=h(e);return(0,y.jsxs)("div",{className:(0,r.Z)("tabs-container",w.tabList),children:[(0,y.jsx)(v,{...e,...n}),(0,y.jsx)(g,{...e,...n})]})}function k(e){const n=(0,b.Z)();return(0,y.jsx)(x,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>u,a:()=>o});var a=t(7294);const r={},s=a.createContext(r);function o(e){const n=a.useContext(s);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function u(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),a.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/59e52bc2.0388a862.js b/zh-CN/assets/js/59e52bc2.0388a862.js new file mode 100644 index 0000000000..dcd5c6764d --- /dev/null +++ b/zh-CN/assets/js/59e52bc2.0388a862.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[641],{8602:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>h,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var t=n(5893),s=n(1151),l=n(4866),a=n(5162),o=n(6393),i=n(4379);const c={sidebar_position:3,tags:["query"]},u="DELETE",d={id:"examples/queries/simple-queries/delete",title:"DELETE",description:"The examples below also work for the execute method.",source:"@site/docs/examples/queries/simple-queries/delete.mdx",sourceDirName:"examples/queries/simple-queries",slug:"/examples/queries/simple-queries/delete",permalink:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/delete",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/simple-queries/delete.mdx",tags:[{label:"query",permalink:"/node-mysql2/zh-CN/docs/tags/query"}],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3,tags:["query"]},sidebar:"examples",previous:{title:"UPDATE",permalink:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/update"},next:{title:"Prepared Statements",permalink:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/"}},h={},p=[{value:"query(sql)",id:"querysql",level:2},{value:"query(options)",id:"queryoptions",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"QueryOptions",id:"queryoptions-1",level:3}];function m(e){const r={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.h1,{id:"delete",children:"DELETE"}),"\n",(0,t.jsxs)(r.p,{children:["The examples below also work for the ",(0,t.jsx)(r.a,{href:"/docs/examples/queries/prepared-statements/delete",children:(0,t.jsx)(r.code,{children:"execute"})})," method."]}),"\n",(0,t.jsx)(r.h2,{id:"querysql",children:"query(sql)"}),"\n",(0,t.jsxs)(r.blockquote,{children:["\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"query(sql: string)"})}),"\n"]}),"\n",(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"try {\n const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1';\n\n // highlight-next-line\n const [result, fields] = await connection.query(sql);\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"callback.js",children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1';\n\nconnection.query(sql, (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n});\n"})})})]}),"\n",(0,t.jsxs)(r.ul,{children:["\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"result"}),": contains a ",(0,t.jsx)(r.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,t.jsx)(r.admonition,{type:"info",children:(0,t.jsxs)(r.p,{children:["The connection used for the query (",(0,t.jsx)(r.code,{children:".query()"}),") can be obtained through the ",(0,t.jsx)(r.code,{children:"createConnection"}),", ",(0,t.jsx)(r.code,{children:"createPool"})," or ",(0,t.jsx)(r.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,t.jsx)(r.hr,{}),"\n",(0,t.jsx)(r.h2,{id:"queryoptions",children:"query(options)"}),"\n",(0,t.jsxs)(r.blockquote,{children:["\n",(0,t.jsx)(r.p,{children:(0,t.jsxs)(r.strong,{children:["query(options: ",(0,t.jsx)(r.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"try {\n const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1';\n\n // highlight-start\n const [result, fields] = await connection.query({\n sql,\n // ... other options\n });\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"callback.js",children:(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-js",children:"const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1';\n\nconnection.query(\n {\n sql,\n // ... other options\n },\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,t.jsxs)(r.ul,{children:["\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"result"}),": contains a ",(0,t.jsx)(r.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,t.jsxs)(r.li,{children:[(0,t.jsx)(r.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,t.jsx)(r.admonition,{type:"info",children:(0,t.jsxs)(r.p,{children:["The connection used for the query (",(0,t.jsx)(r.code,{children:".query()"}),") can be obtained through the ",(0,t.jsx)(r.code,{children:"createConnection"}),", ",(0,t.jsx)(r.code,{children:"createPool"})," or ",(0,t.jsx)(r.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,t.jsx)(r.hr,{}),"\n",(0,t.jsx)(r.h2,{id:"glossary",children:"Glossary"}),"\n",(0,t.jsx)(r.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,t.jsx)(o.Z,{title:"ResultSetHeader Specification",children:(0,t.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts",extractMethod:"ResultSetHeader",methodType:"interface"})}),"\n",(0,t.jsx)(r.h3,{id:"queryoptions-1",children:"QueryOptions"}),"\n",(0,t.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,t.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function x(e={}){const{wrapper:r}={...(0,s.a)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},5162:(e,r,n)=>{n.d(r,{Z:()=>a});n(7294);var t=n(512);const s={tabItem:"tabItem_Ymn6"};var l=n(5893);function a(e){let{children:r,hidden:n,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,t.Z)(s.tabItem,a),hidden:n,children:r})}},4866:(e,r,n)=>{n.d(r,{Z:()=>v});var t=n(7294),s=n(512),l=n(2466),a=n(6550),o=n(469),i=n(1980),c=n(7392),u=n(12);function d(e){return t.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,t.isValidElement)(e)&&function(e){const{props:r}=e;return!!r&&"object"==typeof r&&"value"in r}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:r,children:n}=e;return(0,t.useMemo)((()=>{const e=r??function(e){return d(e).map((e=>{let{props:{value:r,label:n,attributes:t,default:s}}=e;return{value:r,label:n,attributes:t,default:s}}))}(n);return function(e){const r=(0,c.l)(e,((e,r)=>e.value===r.value));if(r.length>0)throw new Error(`Docusaurus error: Duplicate values "${r.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[r,n])}function p(e){let{value:r,tabValues:n}=e;return n.some((e=>e.value===r))}function m(e){let{queryString:r=!1,groupId:n}=e;const s=(0,a.k6)(),l=function(e){let{queryString:r=!1,groupId:n}=e;if("string"==typeof r)return r;if(!1===r)return null;if(!0===r&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:r,groupId:n});return[(0,i._X)(l),(0,t.useCallback)((e=>{if(!l)return;const r=new URLSearchParams(s.location.search);r.set(l,e),s.replace({...s.location,search:r.toString()})}),[l,s])]}function x(e){const{defaultValue:r,queryString:n=!1,groupId:s}=e,l=h(e),[a,i]=(0,t.useState)((()=>function(e){let{defaultValue:r,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(r){if(!p({value:r,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${r}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return r}const t=n.find((e=>e.default))??n[0];if(!t)throw new Error("Unexpected error: 0 tabValues");return t.value}({defaultValue:r,tabValues:l}))),[c,d]=m({queryString:n,groupId:s}),[x,f]=function(e){let{groupId:r}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(r),[s,l]=(0,u.Nk)(n);return[s,(0,t.useCallback)((e=>{n&&l.set(e)}),[n,l])]}({groupId:s}),b=(()=>{const e=c??x;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{b&&i(b)}),[b]);return{selectedValue:a,selectValue:(0,t.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),f(e)}),[d,f,l]),tabValues:l}}var f=n(2389);const b={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=n(5893);function j(e){let{className:r,block:n,selectedValue:t,selectValue:a,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,l.o5)(),u=e=>{const r=e.currentTarget,n=i.indexOf(r),s=o[n].value;s!==t&&(c(r),a(s))},d=e=>{let r=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const n=i.indexOf(e.currentTarget)+1;r=i[n]??i[0];break}case"ArrowLeft":{const n=i.indexOf(e.currentTarget)-1;r=i[n]??i[i.length-1];break}}r?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":n},r),children:o.map((e=>{let{value:r,label:n,attributes:l}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:t===r?0:-1,"aria-selected":t===r,ref:e=>i.push(e),onKeyDown:d,onClick:u,...l,className:(0,s.Z)("tabs__item",b.tabItem,l?.className,{"tabs__item--active":t===r}),children:n??r},r)}))})}function y(e){let{lazy:r,children:n,selectedValue:s}=e;const l=(Array.isArray(n)?n:[n]).filter(Boolean);if(r){const e=l.find((e=>e.props.value===s));return e?(0,t.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:l.map(((e,r)=>(0,t.cloneElement)(e,{key:r,hidden:e.props.value!==s})))})}function q(e){const r=x(e);return(0,g.jsxs)("div",{className:(0,s.Z)("tabs-container",b.tabList),children:[(0,g.jsx)(j,{...e,...r}),(0,g.jsx)(y,{...e,...r})]})}function v(e){const r=(0,f.Z)();return(0,g.jsx)(q,{...e,children:d(e.children)},String(r))}},4379:(e,r,n)=>{n.d(r,{I:()=>i});var t=n(7294),s=n(2263),l=n(9286),a=n(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),i=e=>{let{url:r,language:n,extractMethod:i,methodType:c}=e;const[u,d]=(0,t.useState)(""),[h,p]=(0,t.useState)(!0),[m,x]=(0,t.useState)(!0),{siteConfig:f}=(0,s.Z)(),b=f.baseUrl.replace(/\/$/,""),g=/^\//.test(r)?`${b}${r}`:r;return(0,t.useEffect)((()=>{const e=new AbortController,r=e.signal;return fetch(g,{signal:r}).then((e=>e.text())).then((e=>{const r=i&&c?((e,r,n)=>{const t=e.split("\n"),s=`${n} ${r}`;let l=!1,a=0,o="";for(const i of t)if(i.includes(s)&&(l=!0),l&&(i.includes("{")&&a++,o+=i+"\n",i.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,i,c):e;d(r||e),p(!1),x(!1)})).catch((()=>{x(!0),p(!1)})),()=>{e.abort()}}),[g,i,c]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:m?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:g}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${n}`,children:u})})})}},6393:(e,r,n)=>{n.d(r,{Z:()=>l});var t=n(4673),s=n(5893);const l=e=>{let{children:r,open:n,title:l}=e;return(0,s.jsx)(t.Z,{open:n,className:"faq",summary:(0,s.jsx)("summary",{children:(0,s.jsx)("strong",{children:l})}),children:(0,s.jsx)("section",{children:r})})}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/67592901.40b1dcf5.js b/zh-CN/assets/js/67592901.40b1dcf5.js new file mode 100644 index 0000000000..d722d76640 --- /dev/null +++ b/zh-CN/assets/js/67592901.40b1dcf5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4723],{4741:e=>{e.exports=JSON.parse('{"label":"createConnection","permalink":"/node-mysql2/zh-CN/docs/tags/create-connection","allTagsPath":"/node-mysql2/zh-CN/docs/tags","count":1,"items":[{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/zh-CN/docs/examples/connections/create-connection"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/75b440d9.f9aada59.js b/zh-CN/assets/js/75b440d9.f9aada59.js deleted file mode 100644 index d6fb101327..0000000000 --- a/zh-CN/assets/js/75b440d9.f9aada59.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9521],{3083:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>i,contentTitle:()=>u,default:()=>m,frontMatter:()=>o,metadata:()=>c,toc:()=>d});var n=r(5893),s=r(1151),a=r(4866),l=r(5162);const o={},u="Select Over SSL",c={id:"examples/ssl/select-over-ssl",title:"Select Over SSL",description:"- See examples/ssl/certs.",source:"@site/docs/examples/ssl/select-over-ssl.mdx",sourceDirName:"examples/ssl",slug:"/examples/ssl/select-over-ssl",permalink:"/node-mysql2/zh-CN/docs/examples/ssl/select-over-ssl",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/ssl/select-over-ssl.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"RDS SSL",permalink:"/node-mysql2/zh-CN/docs/examples/ssl/rds-ssl"},next:{title:"TypeScript",permalink:"/node-mysql2/zh-CN/docs/category/typescript"}},i={},d=[];function p(e){const t={a:"a",code:"code",h1:"h1",li:"li",pre:"pre",ul:"ul",...(0,s.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h1,{id:"select-over-ssl",children:"Select Over SSL"}),"\n",(0,n.jsx)(a.Z,{children:(0,n.jsx)(l.Z,{value:"index.js",default:!0,children:(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst fs = require('fs');\nconst mysql = require('mysql2');\n\nconst conn = mysql.createConnection({\n user: 'root',\n password: '',\n database: 'test',\n host: '127.0.0.1',\n port: '3306',\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n});\n\nconn.query('select 1+1 as test', function (err, res) {\n console.log(res);\n conn.query('select repeat(\"a\", 100) as test', function (err, res) {\n console.log(res);\n });\n});\n"})})})}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:["See ",(0,n.jsx)(t.a,{href:"https://github.com/sidorares/node-mysql2/tree/master/examples/ssl/certs",children:"examples/ssl/certs"}),"."]}),"\n"]})]})}function m(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},5162:(e,t,r)=>{r.d(t,{Z:()=>l});r(7294);var n=r(512);const s={tabItem:"tabItem_Ymn6"};var a=r(5893);function l(e){let{children:t,hidden:r,className:l}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,n.Z)(s.tabItem,l),hidden:r,children:t})}},4866:(e,t,r)=>{r.d(t,{Z:()=>w});var n=r(7294),s=r(512),a=r(2466),l=r(6550),o=r(469),u=r(1980),c=r(7392),i=r(12);function d(e){return n.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,n.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:r}=e;return(0,n.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:r,attributes:n,default:s}}=e;return{value:t,label:r,attributes:n,default:s}}))}(r);return function(e){const t=(0,c.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,r])}function m(e){let{value:t,tabValues:r}=e;return r.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:r}=e;const s=(0,l.k6)(),a=function(e){let{queryString:t=!1,groupId:r}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!r)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return r??null}({queryString:t,groupId:r});return[(0,u._X)(a),(0,n.useCallback)((e=>{if(!a)return;const t=new URLSearchParams(s.location.search);t.set(a,e),s.replace({...s.location,search:t.toString()})}),[a,s])]}function h(e){const{defaultValue:t,queryString:r=!1,groupId:s}=e,a=p(e),[l,u]=(0,n.useState)((()=>function(e){let{defaultValue:t,tabValues:r}=e;if(0===r.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:r}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${r.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const n=r.find((e=>e.default))??r[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:t,tabValues:a}))),[c,d]=f({queryString:r,groupId:s}),[h,b]=function(e){let{groupId:t}=e;const r=function(e){return e?`docusaurus.tab.${e}`:null}(t),[s,a]=(0,i.Nk)(r);return[s,(0,n.useCallback)((e=>{r&&a.set(e)}),[r,a])]}({groupId:s}),v=(()=>{const e=c??h;return m({value:e,tabValues:a})?e:null})();(0,o.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:l,selectValue:(0,n.useCallback)((e=>{if(!m({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,a]),tabValues:a}}var b=r(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=r(5893);function y(e){let{className:t,block:r,selectedValue:n,selectValue:l,tabValues:o}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,a.o5)(),i=e=>{const t=e.currentTarget,r=u.indexOf(t),s=o[r].value;s!==n&&(c(t),l(s))},d=e=>{let t=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const r=u.indexOf(e.currentTarget)+1;t=u[r]??u[0];break}case"ArrowLeft":{const r=u.indexOf(e.currentTarget)-1;t=u[r]??u[u.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":r},t),children:o.map((e=>{let{value:t,label:r,attributes:a}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:n===t?0:-1,"aria-selected":n===t,ref:e=>u.push(e),onKeyDown:d,onClick:i,...a,className:(0,s.Z)("tabs__item",v.tabItem,a?.className,{"tabs__item--active":n===t}),children:r??t},t)}))})}function g(e){let{lazy:t,children:r,selectedValue:s}=e;const a=(Array.isArray(r)?r:[r]).filter(Boolean);if(t){const e=a.find((e=>e.props.value===s));return e?(0,n.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:a.map(((e,t)=>(0,n.cloneElement)(e,{key:t,hidden:e.props.value!==s})))})}function S(e){const t=h(e);return(0,x.jsxs)("div",{className:(0,s.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(y,{...e,...t}),(0,x.jsx)(g,{...e,...t})]})}function w(e){const t=(0,b.Z)();return(0,x.jsx)(S,{...e,children:d(e.children)},String(t))}},1151:(e,t,r)=>{r.d(t,{Z:()=>o,a:()=>l});var n=r(7294);const s={},a=n.createContext(s);function l(e){const t=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:l(e.components),n.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/7647f2e2.2a5ccf2b.js b/zh-CN/assets/js/7647f2e2.2a5ccf2b.js new file mode 100644 index 0000000000..7bbe080a77 --- /dev/null +++ b/zh-CN/assets/js/7647f2e2.2a5ccf2b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1578],{1762:e=>{e.exports=JSON.parse('{"label":"Socks","permalink":"/node-mysql2/zh-CN/docs/tags/socks","allTagsPath":"/node-mysql2/zh-CN/docs/tags","count":3,"items":[{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/zh-CN/docs/examples/connections/create-connection"},{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/zh-CN/docs/examples/connections/create-pool"},{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/76dfa484.c577723b.js b/zh-CN/assets/js/76dfa484.c577723b.js new file mode 100644 index 0000000000..339bf42436 --- /dev/null +++ b/zh-CN/assets/js/76dfa484.c577723b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3433],{7345:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>o,default:()=>p,frontMatter:()=>l,metadata:()=>i,toc:()=>c});var r=n(5893),s=n(1151),a=(n(4866),n(5162),n(4442));const l={slug:"/examples",title:"Introduction"},o="Examples",i={id:"examples/index",title:"Introduction",description:"To explore the examples, please use the sidebar navigation on desktop or access the menu on mobile devices.",source:"@site/docs/examples/00-index.mdx",sourceDirName:"examples",slug:"/examples",permalink:"/node-mysql2/zh-CN/docs/examples",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/00-index.mdx",tags:[],version:"current",sidebarPosition:0,frontMatter:{slug:"/examples",title:"Introduction"},sidebar:"examples",next:{title:"createConnection",permalink:"/node-mysql2/zh-CN/docs/examples/connections/create-connection"}},u={},c=[{value:"Examples using MySQL server API",id:"examples-using-mysql-server-api",level:2}];function d(e){const t={a:"a",admonition:"admonition",h1:"h1",h2:"h2",li:"li",p:"p",strong:"strong",ul:"ul",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.V,{title:"Examples"}),"\n",(0,r.jsx)(t.h1,{id:"examples",children:"Examples"}),"\n",(0,r.jsx)(t.admonition,{type:"tip",children:(0,r.jsxs)(t.p,{children:["To explore the examples, please use the ",(0,r.jsx)(t.strong,{children:"sidebar navigation"})," on desktop or access the ",(0,r.jsx)(t.strong,{children:"menu"})," on mobile devices."]})}),"\n",(0,r.jsx)(t.h2,{id:"examples-using-mysql-server-api",children:"Examples using MySQL server API"}),"\n",(0,r.jsxs)(t.ul,{children:["\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.a,{href:"https://github.com/sidorares/mysql-pg-proxy",children:"MySQL-pg-proxy"})," - MySQL to Postgres proxy server."]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.a,{href:"https://github.com/sidorares/mysqlite.js",children:"MySQLite.js"})," - MySQL server with JS-only (emscripten compiled) sqlite backend."]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.a,{href:"https://github.com/eugeneware/sql-engine",children:"SQL-engine"})," - MySQL server with LevelDB backend."]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.a,{href:"https://github.com/sidorares/mysql-osquery-proxy",children:"MySQL-osquery-proxy"})," - Connect to ",(0,r.jsx)(t.a,{href:"https://osquery.io/",children:"facebook osquery"})," using MySQL client"]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.a,{href:"https://github.com/implydata/plyql",children:"PlyQL"})," - Connect to ",(0,r.jsx)(t.a,{href:"https://druid.io/",children:"Druid"})," using MySQL client"]}),"\n"]})]})}function p(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var r=n(512);const s={tabItem:"tabItem_Ymn6"};var a=n(5893);function l(e){let{children:t,hidden:n,className:l}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,r.Z)(s.tabItem,l),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(7294),s=n(512),a=n(2466),l=n(6550),o=n(469),i=n(1980),u=n(7392),c=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:s}}=e;return{value:t,label:n,attributes:r,default:s}}))}(n);return function(e){const t=(0,u.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function h(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function m(e){let{queryString:t=!1,groupId:n}=e;const s=(0,l.k6)(),a=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,i._X)(a),(0,r.useCallback)((e=>{if(!a)return;const t=new URLSearchParams(s.location.search);t.set(a,e),s.replace({...s.location,search:t.toString()})}),[a,s])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:s}=e,a=p(e),[l,i]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!h({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:a}))),[u,d]=m({queryString:n,groupId:s}),[b,f]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[s,a]=(0,c.Nk)(n);return[s,(0,r.useCallback)((e=>{n&&a.set(e)}),[n,a])]}({groupId:s}),x=(()=>{const e=u??b;return h({value:e,tabValues:a})?e:null})();(0,o.Z)((()=>{x&&i(x)}),[x]);return{selectedValue:l,selectValue:(0,r.useCallback)((e=>{if(!h({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),f(e)}),[d,f,a]),tabValues:a}}var f=n(2389);const x={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=n(5893);function g(e){let{className:t,block:n,selectedValue:r,selectValue:l,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:u}=(0,a.o5)(),c=e=>{const t=e.currentTarget,n=i.indexOf(t),s=o[n].value;s!==r&&(u(t),l(s))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=i.indexOf(e.currentTarget)+1;t=i[n]??i[0];break}case"ArrowLeft":{const n=i.indexOf(e.currentTarget)-1;t=i[n]??i[i.length-1];break}}t?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:a}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>i.push(e),onKeyDown:d,onClick:c,...a,className:(0,s.Z)("tabs__item",x.tabItem,a?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function y(e){let{lazy:t,children:n,selectedValue:s}=e;const a=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=a.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:a.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==s})))})}function j(e){const t=b(e);return(0,v.jsxs)("div",{className:(0,s.Z)("tabs-container",x.tabList),children:[(0,v.jsx)(g,{...e,...t}),(0,v.jsx)(y,{...e,...t})]})}function w(e){const t=(0,f.Z)();return(0,v.jsx)(j,{...e,children:d(e.children)},String(t))}},4442:(e,t,n)=>{n.d(t,{V:()=>a});var r=n(5742),s=n(5893);const a=e=>{let{title:t}=e;return(0,s.jsx)(r.Z,{children:(0,s.jsx)("title",{children:t})})}},1151:(e,t,n)=>{n.d(t,{Z:()=>o,a:()=>l});var r=n(7294);const s={},a=r.createContext(s);function l(e){const t=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:l(e.components),r.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/76dfa484.f0e14b28.js b/zh-CN/assets/js/76dfa484.f0e14b28.js deleted file mode 100644 index c6cb98adfe..0000000000 --- a/zh-CN/assets/js/76dfa484.f0e14b28.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3433],{7345:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>i,default:()=>h,frontMatter:()=>c,metadata:()=>u,toc:()=>m});var r=s(5893),t=s(1151),o=s(4866),a=s(5162),l=s(4442);const c={slug:"/examples",title:"Introduction"},i="Examples",u={id:"examples/index",title:"Introduction",description:"Simple SELECT",source:"@site/docs/examples/00-index.mdx",sourceDirName:"examples",slug:"/examples",permalink:"/node-mysql2/zh-CN/docs/examples",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/00-index.mdx",tags:[],version:"current",sidebarPosition:0,frontMatter:{slug:"/examples",title:"Introduction"},sidebar:"examples",next:{title:"Binlog Watcher",permalink:"/node-mysql2/zh-CN/docs/examples/binlog-watcher"}},d={},m=[{value:"Simple <code>SELECT</code>",id:"simple-select",level:2},{value:"Prepared Statement and Parameters",id:"prepared-statement-and-parameters",level:2},{value:"Connecting over encrypted connection",id:"connecting-over-encrypted-connection",level:2},{value:"Simple MySQL proxy server",id:"simple-mysql-proxy-server",level:2},{value:"Examples using MySQL server API",id:"examples-using-mysql-server-api",level:2}];function p(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",hr:"hr",li:"li",p:"p",pre:"pre",ul:"ul",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.V,{title:"Examples"}),"\n",(0,r.jsx)(n.h1,{id:"examples",children:"Examples"}),"\n",(0,r.jsxs)(n.h2,{id:"simple-select",children:["Simple ",(0,r.jsx)(n.code,{children:"SELECT"})]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(a.Z,{value:"Promise",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nconst connection = await mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\nconst [rows] = await connection.query('SELECT 1+1 AS `test1`');\n// ...\n"})})}),(0,r.jsx)(a.Z,{value:"Callback",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\nconnection.query('SELECT 1+1 AS `test1`', (err, rows) => {\n // ...\n});\n"})})})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"prepared-statement-and-parameters",children:"Prepared Statement and Parameters"}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(a.Z,{value:"Promise",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nconst connection = await mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\nconst [rows] = await connection.execute('SELECT 1+? AS `test1`', [10]);\n// ...\n"})})}),(0,r.jsx)(a.Z,{value:"Callback",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n user: 'test',\n database: 'test',\n});\n\nconnection.execute('SELECT 1+? as test1', [10], (err, rows) => {\n // ...\n});\n"})})})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"connecting-over-encrypted-connection",children:"Connecting over encrypted connection"}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(a.Z,{value:"Promise",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import fs from 'fs';\nimport mysql from 'mysql2/promise';\n\nconst connection = await mysql.createConnection({\n user: 'test',\n database: 'test',\n ssl: {\n key: fs.readFileSync('./certs/client-key.pem'),\n cert: fs.readFileSync('./certs/client-cert.pem'),\n },\n});\n\nconsole.log(await connection.query('SELECT 1+1 AS `test1`'));\n"})})}),(0,r.jsx)(a.Z,{value:"Callback",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const fs = require('fs');\nconst mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n user: 'test',\n database: 'test',\n ssl: {\n key: fs.readFileSync('./certs/client-key.pem'),\n cert: fs.readFileSync('./certs/client-cert.pem'),\n },\n});\n\nconnection.query('SELECT 1+1 AS `test1`', console.log);\n"})})})]}),"\n",(0,r.jsxs)(n.p,{children:["You can use 'Amazon RDS' string as value to ssl property to connect to Amazon RDS mysql over ssl (in that case ",(0,r.jsx)(n.a,{href:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem",children:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem"})," CA cert is used)"]}),"\n",(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(a.Z,{value:"Promise",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n const connection = await mysql.createConnection({\n user: 'foo',\n password: 'bar',\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n });\n\n const [res] = await connection.query(\"SHOW `status` LIKE 'Ssl_cipher'\");\n\n console.log(res);\n connection.end();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(a.Z,{value:"Callback",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst connection = mysql.createConnection({\n user: 'foo',\n password: 'bar',\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n});\n\nconnection.query(\"SHOW `status` LIKE 'Ssl_cipher'\", (err, res) => {\n console.log(err, res);\n connection.end();\n});\n"})})})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"simple-mysql-proxy-server",children:"Simple MySQL proxy server"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst server = mysql.createServer();\nserver.listen(3307);\nserver.on('connection', (conn) => {\n console.log('connection');\n\n conn.serverHandshake({\n protocolVersion: 10,\n serverVersion: 'node.js rocks',\n connectionId: 1234,\n statusFlags: 2,\n characterSet: 8,\n capabilityFlags: 0xffffff,\n });\n\n conn.on('field_list', (table, fields) => {\n console.log('field list:', table, fields);\n conn.writeEof();\n });\n\n const remote = mysql.createConnection({\n user: 'root',\n database: 'dbname',\n host: 'server.example.com',\n password: 'secret',\n });\n\n conn.on('query', (sql) => {\n console.log(`proxying query: ${sql}`);\n remote.query(sql, function (err) {\n // overloaded args, either (err, result :object)\n // or (err, rows :array, columns :array)\n if (Array.isArray(arguments[1])) {\n // response to a 'select', 'show' or similar\n const rows = arguments[1],\n columns = arguments[2];\n console.log('rows', rows);\n console.log('columns', columns);\n conn.writeTextResult(rows, columns);\n } else {\n // response to an 'insert', 'update' or 'delete'\n const result = arguments[1];\n console.log('result', result);\n conn.writeOk(result);\n }\n });\n });\n\n conn.on('end', remote.end.bind(remote));\n});\n"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"examples-using-mysql-server-api",children:"Examples using MySQL server API"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://github.com/sidorares/mysql-pg-proxy",children:"MySQL-pg-proxy"})," - MySQL to Postgres proxy server."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://github.com/sidorares/mysqlite.js",children:"MySQLite.js"})," - MySQL server with JS-only (emscripten compiled) sqlite backend."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://github.com/eugeneware/sql-engine",children:"SQL-engine"})," - MySQL server with LevelDB backend."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://github.com/sidorares/mysql-osquery-proxy",children:"MySQL-osquery-proxy"})," - Connect to ",(0,r.jsx)(n.a,{href:"https://osquery.io/",children:"facebook osquery"})," using MySQL client"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://github.com/implydata/plyql",children:"PlyQL"})," - Connect to ",(0,r.jsx)(n.a,{href:"https://druid.io/",children:"Druid"})," using MySQL client"]}),"\n"]})]})}function h(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,s)=>{s.d(n,{Z:()=>a});s(7294);var r=s(512);const t={tabItem:"tabItem_Ymn6"};var o=s(5893);function a(e){let{children:n,hidden:s,className:a}=e;return(0,o.jsx)("div",{role:"tabpanel",className:(0,r.Z)(t.tabItem,a),hidden:s,children:n})}},4866:(e,n,s)=>{s.d(n,{Z:()=>q});var r=s(7294),t=s(512),o=s(2466),a=s(6550),l=s(469),c=s(1980),i=s(7392),u=s(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:s}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:s,attributes:r,default:t}}=e;return{value:n,label:s,attributes:r,default:t}}))}(s);return function(e){const n=(0,i.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,s])}function p(e){let{value:n,tabValues:s}=e;return s.some((e=>e.value===n))}function h(e){let{queryString:n=!1,groupId:s}=e;const t=(0,a.k6)(),o=function(e){let{queryString:n=!1,groupId:s}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!s)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:n,groupId:s});return[(0,c._X)(o),(0,r.useCallback)((e=>{if(!o)return;const n=new URLSearchParams(t.location.search);n.set(o,e),t.replace({...t.location,search:n.toString()})}),[o,t])]}function y(e){const{defaultValue:n,queryString:s=!1,groupId:t}=e,o=m(e),[a,c]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:s}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=s.find((e=>e.default))??s[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:o}))),[i,d]=h({queryString:s,groupId:t}),[y,x]=function(e){let{groupId:n}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(n),[t,o]=(0,u.Nk)(s);return[t,(0,r.useCallback)((e=>{s&&o.set(e)}),[s,o])]}({groupId:t}),f=(()=>{const e=i??y;return p({value:e,tabValues:o})?e:null})();(0,l.Z)((()=>{f&&c(f)}),[f]);return{selectedValue:a,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:o}))throw new Error(`Can't select invalid tab value=${e}`);c(e),d(e),x(e)}),[d,x,o]),tabValues:o}}var x=s(2389);const f={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var b=s(5893);function g(e){let{className:n,block:s,selectedValue:r,selectValue:a,tabValues:l}=e;const c=[],{blockElementScrollPositionUntilNextRender:i}=(0,o.o5)(),u=e=>{const n=e.currentTarget,s=c.indexOf(n),t=l[s].value;t!==r&&(i(n),a(t))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const s=c.indexOf(e.currentTarget)+1;n=c[s]??c[0];break}case"ArrowLeft":{const s=c.indexOf(e.currentTarget)-1;n=c[s]??c[c.length-1];break}}n?.focus()};return(0,b.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,t.Z)("tabs",{"tabs--block":s},n),children:l.map((e=>{let{value:n,label:s,attributes:o}=e;return(0,b.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>c.push(e),onKeyDown:d,onClick:u,...o,className:(0,t.Z)("tabs__item",f.tabItem,o?.className,{"tabs__item--active":r===n}),children:s??n},n)}))})}function v(e){let{lazy:n,children:s,selectedValue:t}=e;const o=(Array.isArray(s)?s:[s]).filter(Boolean);if(n){const e=o.find((e=>e.props.value===t));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,b.jsx)("div",{className:"margin-top--md",children:o.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function j(e){const n=y(e);return(0,b.jsxs)("div",{className:(0,t.Z)("tabs-container",f.tabList),children:[(0,b.jsx)(g,{...e,...n}),(0,b.jsx)(v,{...e,...n})]})}function q(e){const n=(0,x.Z)();return(0,b.jsx)(j,{...e,children:d(e.children)},String(n))}},4442:(e,n,s)=>{s.d(n,{V:()=>o});var r=s(5742),t=s(5893);const o=e=>{let{title:n}=e;return(0,t.jsx)(r.Z,{children:(0,t.jsx)("title",{children:n})})}},1151:(e,n,s)=>{s.d(n,{Z:()=>l,a:()=>a});var r=s(7294);const t={},o=r.createContext(t);function a(e){const n=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/7ccab252.674014b3.js b/zh-CN/assets/js/7ccab252.674014b3.js new file mode 100644 index 0000000000..942685ad2a --- /dev/null +++ b/zh-CN/assets/js/7ccab252.674014b3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8054],{3467:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>c,contentTitle:()=>i,default:()=>o,frontMatter:()=>a,metadata:()=>d,toc:()=>l});var n=t(5893),r=t(1151);const a={},i="Prepared Statements",d={id:"examples/queries/prepared-statements/index",title:"Prepared Statements",description:"MySQL2 provides execute helper which will prepare and query the statement.",source:"@site/docs/examples/queries/prepared-statements/index.mdx",sourceDirName:"examples/queries/prepared-statements",slug:"/examples/queries/prepared-statements/",permalink:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/prepared-statements/index.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"DELETE",permalink:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/delete"},next:{title:"INSERT",permalink:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/insert"}},c={},l=[];function p(e){const s={a:"a",admonition:"admonition",code:"code",h1:"h1",hr:"hr",input:"input",li:"li",p:"p",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.h1,{id:"prepared-statements",children:"Prepared Statements"}),"\n",(0,n.jsxs)(s.p,{children:["MySQL2 provides ",(0,n.jsx)(s.code,{children:"execute"})," helper which will prepare and query the statement.\nYou can also manually prepare / unprepare statement with ",(0,n.jsx)(s.code,{children:"prepare"})," / ",(0,n.jsx)(s.code,{children:"unprepare"})," methods."]}),"\n",(0,n.jsxs)(s.p,{children:["See detailed documentaion in ",(0,n.jsx)(s.a,{href:"/docs/documentation/prepared-statements",children:"Prepared Statements"}),"."]}),"\n",(0,n.jsx)(s.admonition,{type:"tip",children:(0,n.jsxs)(s.p,{children:["If you execute same statement again, it will be picked form a ",(0,n.jsx)(s.strong,{children:"LRU cache"})," which will save query preparation time and give better performance."]})}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.p,{children:"Usage examples:"}),"\n",(0,n.jsxs)(s.ul,{className:"contains-task-list",children:["\n",(0,n.jsxs)(s.li,{className:"task-list-item",children:[(0,n.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,n.jsx)(s.a,{href:"/docs/examples/queries/prepared-statements/insert",children:(0,n.jsx)(s.strong,{children:"INSERT"})})]}),"\n",(0,n.jsxs)(s.li,{className:"task-list-item",children:[(0,n.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,n.jsx)(s.a,{href:"/docs/examples/queries/prepared-statements/select",children:(0,n.jsx)(s.strong,{children:"SELECT"})})]}),"\n",(0,n.jsxs)(s.li,{className:"task-list-item",children:[(0,n.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,n.jsx)(s.a,{href:"/docs/examples/queries/prepared-statements/update",children:(0,n.jsx)(s.strong,{children:"UPDATE"})})]}),"\n",(0,n.jsxs)(s.li,{className:"task-list-item",children:[(0,n.jsx)(s.input,{type:"checkbox",checked:!0,disabled:!0})," ",(0,n.jsx)(s.a,{href:"/docs/examples/queries/prepared-statements/delete",children:(0,n.jsx)(s.strong,{children:"DELETE"})})]}),"\n"]})]})}function o(e={}){const{wrapper:s}={...(0,r.a)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},1151:(e,s,t)=>{t.d(s,{Z:()=>d,a:()=>i});var n=t(7294);const r={},a=n.createContext(r);function i(e){const s=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),n.createElement(a.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/7fbd6b3a.e365c3b2.js b/zh-CN/assets/js/7fbd6b3a.e365c3b2.js new file mode 100644 index 0000000000..a74b067de7 --- /dev/null +++ b/zh-CN/assets/js/7fbd6b3a.e365c3b2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9964],{8937:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>m,frontMatter:()=>i,metadata:()=>d,toc:()=>p});var r=s(5893),t=s(1151),l=s(4866),a=s(5162),o=s(6393),c=s(4379);const i={sidebar_position:1,tags:["Prepared Statements","Placeholders","Parameters","execute"]},u="SELECT",d={id:"examples/queries/prepared-statements/select",title:"SELECT",description:"execute(sql, values)",source:"@site/docs/examples/queries/prepared-statements/select.mdx",sourceDirName:"examples/queries/prepared-statements",slug:"/examples/queries/prepared-statements/select",permalink:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/select",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/prepared-statements/select.mdx",tags:[{label:"Prepared Statements",permalink:"/node-mysql2/zh-CN/docs/tags/prepared-statements"},{label:"Placeholders",permalink:"/node-mysql2/zh-CN/docs/tags/placeholders"},{label:"Parameters",permalink:"/node-mysql2/zh-CN/docs/tags/parameters"},{label:"execute",permalink:"/node-mysql2/zh-CN/docs/tags/execute"}],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,tags:["Prepared Statements","Placeholders","Parameters","execute"]},sidebar:"examples",previous:{title:"INSERT",permalink:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/insert"},next:{title:"UPDATE",permalink:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/update"}},h={},p=[{value:"execute(sql, values)",id:"executesql-values",level:2},{value:"execute(options)",id:"executeoptions",level:2},{value:"execute(options, values)",id:"executeoptions-values",level:2},{value:"Glossary",id:"glossary",level:2},{value:"QueryOptions",id:"queryoptions",level:3}];function x(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"select",children:"SELECT"}),"\n",(0,r.jsx)(n.h2,{id:"executesql-values",children:"execute(sql, values)"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:"execute(sql: string, values: any[])"})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';\n const values = ['Page', 45];\n\n // highlight-next-line\n const [rows, fields] = await connection.execute(sql, values);\n\n console.log(rows);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(a.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';\nconst values = ['Page', 45];\n\nconnection.execute(sql, values, (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows);\n console.log(fields);\n});\n"})})})]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"rows"})," contains rows returned by server"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"fields"})," contains extra meta data about rows, if available"]}),"\n"]}),"\n",(0,r.jsx)(n.admonition,{type:"info",children:(0,r.jsxs)(n.p,{children:["The connection used for the query (",(0,r.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,r.jsx)(n.code,{children:"createConnection"}),", ",(0,r.jsx)(n.code,{children:"createPool"})," or ",(0,r.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"executeoptions",children:"execute(options)"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["execute(options: ",(0,r.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';\n const values = ['Page', 45];\n\n // highlight-start\n const [rows, fields] = await connection.execute({\n sql,\n values,\n // ... other options\n });\n // highlight-end\n\n console.log(rows);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(a.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';\nconst values = ['Page', 45];\n\nconnection.execute(\n {\n sql,\n values,\n // ... other options\n },\n (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"rows"})," contains rows returned by server"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"fields"})," contains extra meta data about rows, if available"]}),"\n"]}),"\n",(0,r.jsx)(n.admonition,{type:"info",children:(0,r.jsxs)(n.p,{children:["The connection used for the query (",(0,r.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,r.jsx)(n.code,{children:"createConnection"}),", ",(0,r.jsx)(n.code,{children:"createPool"})," or ",(0,r.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"executeoptions-values",children:"execute(options, values)"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["execute(options: ",(0,r.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),", values: any[])"]})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';\n const values = ['Page', 45];\n\n // highlight-start\n const [rows, fields] = await connection.execute(\n {\n sql,\n // ... other options\n },\n values\n );\n // highlight-end\n\n console.log(rows);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(a.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';\nconst values = ['Page', 45];\n\nconnection.execute(\n {\n sql,\n // ... other options\n },\n values,\n (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"rows"})," contains rows returned by server"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"fields"})," contains extra meta data about rows, if available"]}),"\n"]}),"\n",(0,r.jsx)(n.admonition,{type:"info",children:(0,r.jsxs)(n.p,{children:["The connection used for the query (",(0,r.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,r.jsx)(n.code,{children:"createConnection"}),", ",(0,r.jsx)(n.code,{children:"createPool"})," or ",(0,r.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,r.jsx)(n.h3,{id:"queryoptions",children:"QueryOptions"}),"\n",(0,r.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,r.jsx)(c.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function m(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(x,{...e})}):x(e)}},5162:(e,n,s)=>{s.d(n,{Z:()=>a});s(7294);var r=s(512);const t={tabItem:"tabItem_Ymn6"};var l=s(5893);function a(e){let{children:n,hidden:s,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,r.Z)(t.tabItem,a),hidden:s,children:n})}},4866:(e,n,s)=>{s.d(n,{Z:()=>q});var r=s(7294),t=s(512),l=s(2466),a=s(6550),o=s(469),c=s(1980),i=s(7392),u=s(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:s}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:s,attributes:r,default:t}}=e;return{value:n,label:s,attributes:r,default:t}}))}(s);return function(e){const n=(0,i.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,s])}function p(e){let{value:n,tabValues:s}=e;return s.some((e=>e.value===n))}function x(e){let{queryString:n=!1,groupId:s}=e;const t=(0,a.k6)(),l=function(e){let{queryString:n=!1,groupId:s}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!s)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:n,groupId:s});return[(0,c._X)(l),(0,r.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(t.location.search);n.set(l,e),t.replace({...t.location,search:n.toString()})}),[l,t])]}function m(e){const{defaultValue:n,queryString:s=!1,groupId:t}=e,l=h(e),[a,c]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:s}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=s.find((e=>e.default))??s[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:l}))),[i,d]=x({queryString:s,groupId:t}),[m,g]=function(e){let{groupId:n}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(n),[t,l]=(0,u.Nk)(s);return[t,(0,r.useCallback)((e=>{s&&l.set(e)}),[s,l])]}({groupId:t}),j=(()=>{const e=i??m;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{j&&c(j)}),[j]);return{selectedValue:a,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);c(e),d(e),g(e)}),[d,g,l]),tabValues:l}}var g=s(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=s(5893);function b(e){let{className:n,block:s,selectedValue:r,selectValue:a,tabValues:o}=e;const c=[],{blockElementScrollPositionUntilNextRender:i}=(0,l.o5)(),u=e=>{const n=e.currentTarget,s=c.indexOf(n),t=o[s].value;t!==r&&(i(n),a(t))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const s=c.indexOf(e.currentTarget)+1;n=c[s]??c[0];break}case"ArrowLeft":{const s=c.indexOf(e.currentTarget)-1;n=c[s]??c[c.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,t.Z)("tabs",{"tabs--block":s},n),children:o.map((e=>{let{value:n,label:s,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>c.push(e),onKeyDown:d,onClick:u,...l,className:(0,t.Z)("tabs__item",j.tabItem,l?.className,{"tabs__item--active":r===n}),children:s??n},n)}))})}function v(e){let{lazy:n,children:s,selectedValue:t}=e;const l=(Array.isArray(s)?s:[s]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===t));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function y(e){const n=m(e);return(0,f.jsxs)("div",{className:(0,t.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(b,{...e,...n}),(0,f.jsx)(v,{...e,...n})]})}function q(e){const n=(0,g.Z)();return(0,f.jsx)(y,{...e,children:d(e.children)},String(n))}},4379:(e,n,s)=>{s.d(n,{I:()=>c});var r=s(7294),t=s(2263),l=s(9286),a=s(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),c=e=>{let{url:n,language:s,extractMethod:c,methodType:i}=e;const[u,d]=(0,r.useState)(""),[h,p]=(0,r.useState)(!0),[x,m]=(0,r.useState)(!0),{siteConfig:g}=(0,t.Z)(),j=g.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,r.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=c&&i?((e,n,s)=>{const r=e.split("\n"),t=`${s} ${n}`;let l=!1,a=0,o="";for(const c of r)if(c.includes(t)&&(l=!0),l&&(c.includes("{")&&a++,o+=c+"\n",c.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,c,i):e;d(n||e),p(!1),m(!1)})).catch((()=>{m(!0),p(!1)})),()=>{e.abort()}}),[f,c,i]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:x?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${s}`,children:u})})})}},6393:(e,n,s)=>{s.d(n,{Z:()=>l});var r=s(4673),t=s(5893);const l=e=>{let{children:n,open:s,title:l}=e;return(0,t.jsx)(r.Z,{open:s,className:"faq",summary:(0,t.jsx)("summary",{children:(0,t.jsx)("strong",{children:l})}),children:(0,t.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/8b8ccc10.9bf8a5cf.js b/zh-CN/assets/js/8b8ccc10.9bf8a5cf.js new file mode 100644 index 0000000000..b2f740bb3e --- /dev/null +++ b/zh-CN/assets/js/8b8ccc10.9bf8a5cf.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8534],{3961:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>m,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var s=t(5893),r=t(1151),l=t(4866),a=t(5162),o=t(6393),i=t(4379);const c={sidebar_position:3,tags:["Prepared Statements","Placeholders","Parameters","execute"]},u="DELETE",d={id:"examples/queries/prepared-statements/delete",title:"DELETE",description:"execute(sql, values)",source:"@site/docs/examples/queries/prepared-statements/delete.mdx",sourceDirName:"examples/queries/prepared-statements",slug:"/examples/queries/prepared-statements/delete",permalink:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/delete",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/prepared-statements/delete.mdx",tags:[{label:"Prepared Statements",permalink:"/node-mysql2/zh-CN/docs/tags/prepared-statements"},{label:"Placeholders",permalink:"/node-mysql2/zh-CN/docs/tags/placeholders"},{label:"Parameters",permalink:"/node-mysql2/zh-CN/docs/tags/parameters"},{label:"execute",permalink:"/node-mysql2/zh-CN/docs/tags/execute"}],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3,tags:["Prepared Statements","Placeholders","Parameters","execute"]},sidebar:"examples",previous:{title:"UPDATE",permalink:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/update"},next:{title:"Binlog Watcher",permalink:"/node-mysql2/zh-CN/docs/examples/binlog-watcher"}},h={},p=[{value:"execute(sql, values)",id:"executesql-values",level:2},{value:"execute(options)",id:"executeoptions",level:2},{value:"execute(options, values)",id:"executeoptions-values",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"QueryOptions",id:"queryoptions",level:3}];function x(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"delete",children:"DELETE"}),"\n",(0,s.jsx)(n.h2,{id:"executesql-values",children:"execute(sql, values)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"execute(sql: string, values: any[])"})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';\n const values = ['Page'];\n\n // highlight-next-line\n const [result, fields] = await connection.execute(sql, values);\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';\nconst values = ['Page'];\n\nconnection.execute(sql, values, (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n});\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"executeoptions",children:"execute(options)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["execute(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';\n const values = ['Page'];\n\n // highlight-start\n const [result, fields] = await connection.execute({\n sql,\n values,\n // ... other options\n });\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';\nconst values = ['Page'];\n\nconnection.execute(\n {\n sql,\n values,\n // ... other options\n },\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"executeoptions-values",children:"execute(options, values)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["execute(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),", values: any[])"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';\n const values = ['Page'];\n\n // highlight-start\n const [result, fields] = await connection.execute(\n {\n sql,\n // ... other options\n },\n values\n );\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';\nconst values = ['Page'];\n\nconnection.execute(\n {\n sql,\n // ... other options\n },\n values,\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,s.jsx)(n.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,s.jsx)(o.Z,{title:"ResultSetHeader Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts",extractMethod:"ResultSetHeader",methodType:"interface"})}),"\n",(0,s.jsx)(n.h3,{id:"queryoptions",children:"QueryOptions"}),"\n",(0,s.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(x,{...e})}):x(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>a});t(7294);var s=t(512);const r={tabItem:"tabItem_Ymn6"};var l=t(5893);function a(e){let{children:n,hidden:t,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,s.Z)(r.tabItem,a),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>q});var s=t(7294),r=t(512),l=t(2466),a=t(6550),o=t(469),i=t(1980),c=t(7392),u=t(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:t}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:s,default:r}}=e;return{value:n,label:t,attributes:s,default:r}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function x(e){let{queryString:n=!1,groupId:t}=e;const r=(0,a.k6)(),l=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,i._X)(l),(0,s.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(r.location.search);n.set(l,e),r.replace({...r.location,search:n.toString()})}),[l,r])]}function m(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,l=h(e),[a,i]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=t.find((e=>e.default))??t[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:l}))),[c,d]=x({queryString:t,groupId:r}),[m,g]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,l]=(0,u.Nk)(t);return[r,(0,s.useCallback)((e=>{t&&l.set(e)}),[t,l])]}({groupId:r}),j=(()=>{const e=c??m;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{j&&i(j)}),[j]);return{selectedValue:a,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),g(e)}),[d,g,l]),tabValues:l}}var g=t(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=t(5893);function b(e){let{className:n,block:t,selectedValue:s,selectValue:a,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,l.o5)(),u=e=>{const n=e.currentTarget,t=i.indexOf(n),r=o[t].value;r!==s&&(c(n),a(r))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const t=i.indexOf(e.currentTarget)+1;n=i[t]??i[0];break}case"ArrowLeft":{const t=i.indexOf(e.currentTarget)-1;n=i[t]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":t},n),children:o.map((e=>{let{value:n,label:t,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>i.push(e),onKeyDown:d,onClick:u,...l,className:(0,r.Z)("tabs__item",j.tabItem,l?.className,{"tabs__item--active":s===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:r}=e;const l=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===r));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function y(e){const n=m(e);return(0,f.jsxs)("div",{className:(0,r.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(b,{...e,...n}),(0,f.jsx)(v,{...e,...n})]})}function q(e){const n=(0,g.Z)();return(0,f.jsx)(y,{...e,children:d(e.children)},String(n))}},4379:(e,n,t)=>{t.d(n,{I:()=>i});var s=t(7294),r=t(2263),l=t(9286),a=t(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:t,extractMethod:i,methodType:c}=e;const[u,d]=(0,s.useState)(""),[h,p]=(0,s.useState)(!0),[x,m]=(0,s.useState)(!0),{siteConfig:g}=(0,r.Z)(),j=g.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,s.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&c?((e,n,t)=>{const s=e.split("\n"),r=`${t} ${n}`;let l=!1,a=0,o="";for(const i of s)if(i.includes(r)&&(l=!0),l&&(i.includes("{")&&a++,o+=i+"\n",i.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,i,c):e;d(n||e),p(!1),m(!1)})).catch((()=>{m(!0),p(!1)})),()=>{e.abort()}}),[f,i,c]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:x?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${t}`,children:u})})})}},6393:(e,n,t)=>{t.d(n,{Z:()=>l});var s=t(4673),r=t(5893);const l=e=>{let{children:n,open:t,title:l}=e;return(0,r.jsx)(s.Z,{open:t,className:"faq",summary:(0,r.jsx)("summary",{children:(0,r.jsx)("strong",{children:l})}),children:(0,r.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/8fcb4d7f.b5ad74bd.js b/zh-CN/assets/js/8fcb4d7f.b5ad74bd.js new file mode 100644 index 0000000000..913799d72b --- /dev/null +++ b/zh-CN/assets/js/8fcb4d7f.b5ad74bd.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[81],{3050:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>m,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var s=r(5893),t=r(1151),l=r(4866),o=r(5162),a=r(6393),i=r(4379);const c={sidebar_position:1,tags:["query"]},u="SELECT",d={id:"examples/queries/simple-queries/select",title:"SELECT",description:"The examples below also work for the execute method.",source:"@site/docs/examples/queries/simple-queries/select.mdx",sourceDirName:"examples/queries/simple-queries",slug:"/examples/queries/simple-queries/select",permalink:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/select",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/simple-queries/select.mdx",tags:[{label:"query",permalink:"/node-mysql2/zh-CN/docs/tags/query"}],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,tags:["query"]},sidebar:"examples",previous:{title:"INSERT",permalink:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/insert"},next:{title:"UPDATE",permalink:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/update"}},h={},p=[{value:"query(sql)",id:"querysql",level:2},{value:"query(options)",id:"queryoptions",level:2},{value:"query(options) \u2014 Row as Array",id:"queryoptions--row-as-array",level:2},{value:"Glossary",id:"glossary",level:2},{value:"QueryOptions",id:"queryoptions-1",level:3}];function x(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"select",children:"SELECT"}),"\n",(0,s.jsxs)(n.p,{children:["The examples below also work for the ",(0,s.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements/select",children:(0,s.jsx)(n.code,{children:"execute"})})," method."]}),"\n",(0,s.jsx)(n.h2,{id:"querysql",children:"query(sql)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"query(sql: string)"})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(o.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45';\n\n // highlight-next-line\n const [rows, fields] = await connection.query(sql);\n\n console.log(rows);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(o.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45';\n\nconnection.query(sql, (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows);\n console.log(fields);\n});\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"rows"})," contains rows returned by server"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about rows, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:".query()"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"queryoptions",children:"query(options)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["query(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(o.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45';\n\n // highlight-start\n const [rows, fields] = await connection.query({\n sql,\n // ... other options\n });\n // highlight-end\n\n console.log(rows);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(o.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45';\n\nconnection.query(\n {\n sql,\n // ... other options\n },\n (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"rows"})," contains rows returned by server"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about rows, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:".query()"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"queryoptions--row-as-array",children:"query(options) \u2014 Row as Array"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["query(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(o.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45';\n\n // highlight-start\n const [rows, fields] = await connection.query({\n sql,\n rowsAsArray: true,\n // ... other options\n });\n // highlight-end\n\n console.log(rows);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(o.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45';\n\nconnection.query(\n {\n sql,\n rowsAsArray: true,\n // ... other options\n },\n (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"rows"})," contains rows returned by server as array"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about rows, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:".query()"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,s.jsx)(n.h3,{id:"queryoptions-1",children:"QueryOptions"}),"\n",(0,s.jsx)(a.Z,{title:"QueryOptions Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function m(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(x,{...e})}):x(e)}},5162:(e,n,r)=>{r.d(n,{Z:()=>o});r(7294);var s=r(512);const t={tabItem:"tabItem_Ymn6"};var l=r(5893);function o(e){let{children:n,hidden:r,className:o}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,s.Z)(t.tabItem,o),hidden:r,children:n})}},4866:(e,n,r)=>{r.d(n,{Z:()=>v});var s=r(7294),t=r(512),l=r(2466),o=r(6550),a=r(469),i=r(1980),c=r(7392),u=r(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:r}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:r,attributes:s,default:t}}=e;return{value:n,label:r,attributes:s,default:t}}))}(r);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,r])}function p(e){let{value:n,tabValues:r}=e;return r.some((e=>e.value===n))}function x(e){let{queryString:n=!1,groupId:r}=e;const t=(0,o.k6)(),l=function(e){let{queryString:n=!1,groupId:r}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!r)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return r??null}({queryString:n,groupId:r});return[(0,i._X)(l),(0,s.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(t.location.search);n.set(l,e),t.replace({...t.location,search:n.toString()})}),[l,t])]}function m(e){const{defaultValue:n,queryString:r=!1,groupId:t}=e,l=h(e),[o,i]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:r}=e;if(0===r.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:r}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${r.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=r.find((e=>e.default))??r[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:l}))),[c,d]=x({queryString:r,groupId:t}),[m,g]=function(e){let{groupId:n}=e;const r=function(e){return e?`docusaurus.tab.${e}`:null}(n),[t,l]=(0,u.Nk)(r);return[t,(0,s.useCallback)((e=>{r&&l.set(e)}),[r,l])]}({groupId:t}),j=(()=>{const e=c??m;return p({value:e,tabValues:l})?e:null})();(0,a.Z)((()=>{j&&i(j)}),[j]);return{selectedValue:o,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),g(e)}),[d,g,l]),tabValues:l}}var g=r(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=r(5893);function b(e){let{className:n,block:r,selectedValue:s,selectValue:o,tabValues:a}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,l.o5)(),u=e=>{const n=e.currentTarget,r=i.indexOf(n),t=a[r].value;t!==s&&(c(n),o(t))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const r=i.indexOf(e.currentTarget)+1;n=i[r]??i[0];break}case"ArrowLeft":{const r=i.indexOf(e.currentTarget)-1;n=i[r]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,t.Z)("tabs",{"tabs--block":r},n),children:a.map((e=>{let{value:n,label:r,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>i.push(e),onKeyDown:d,onClick:u,...l,className:(0,t.Z)("tabs__item",j.tabItem,l?.className,{"tabs__item--active":s===n}),children:r??n},n)}))})}function y(e){let{lazy:n,children:r,selectedValue:t}=e;const l=(Array.isArray(r)?r:[r]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===t));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function q(e){const n=m(e);return(0,f.jsxs)("div",{className:(0,t.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(b,{...e,...n}),(0,f.jsx)(y,{...e,...n})]})}function v(e){const n=(0,g.Z)();return(0,f.jsx)(q,{...e,children:d(e.children)},String(n))}},4379:(e,n,r)=>{r.d(n,{I:()=>i});var s=r(7294),t=r(2263),l=r(9286),o=r(5893);const a=()=>(0,o.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:r,extractMethod:i,methodType:c}=e;const[u,d]=(0,s.useState)(""),[h,p]=(0,s.useState)(!0),[x,m]=(0,s.useState)(!0),{siteConfig:g}=(0,t.Z)(),j=g.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,s.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&c?((e,n,r)=>{const s=e.split("\n"),t=`${r} ${n}`;let l=!1,o=0,a="";for(const i of s)if(i.includes(t)&&(l=!0),l&&(i.includes("{")&&o++,a+=i+"\n",i.includes("}")&&(o--,0===o)))break;return a.trim()||e})(e,i,c):e;d(n||e),p(!1),m(!1)})).catch((()=>{m(!0),p(!1)})),()=>{e.abort()}}),[f,i,c]),(0,o.jsx)(o.Fragment,{children:h?(0,o.jsx)(a,{}):(0,o.jsx)(o.Fragment,{children:x?(0,o.jsxs)("div",{children:["Unable to access the requested link: ",(0,o.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,o.jsx)(l.Z,{className:`language-${r}`,children:u})})})}},6393:(e,n,r)=>{r.d(n,{Z:()=>l});var s=r(4673),t=r(5893);const l=e=>{let{children:n,open:r,title:l}=e;return(0,t.jsx)(s.Z,{open:r,className:"faq",summary:(0,t.jsx)("summary",{children:(0,t.jsx)("strong",{children:l})}),children:(0,t.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/935f2afb.28768658.js b/zh-CN/assets/js/935f2afb.28768658.js new file mode 100644 index 0000000000..314f42a8ba --- /dev/null +++ b/zh-CN/assets/js/935f2afb.28768658.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[53],{1109:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"docs":[{"type":"link","label":"Quickstart","href":"/node-mysql2/zh-CN/docs/","docId":"index","unlisted":false},{"type":"link","label":"MySQL2\u7684\u5386\u53f2\u4ee5\u53ca\u9009\u62e9\u539f\u56e0","href":"/node-mysql2/zh-CN/docs/history-and-why-mysq2","docId":"history-and-why-mysq2","unlisted":false},{"type":"link","label":"Stability Badges","href":"/node-mysql2/zh-CN/docs/stability-badges","docId":"stability-badges","unlisted":false},{"type":"category","label":"Documentation","items":[{"type":"link","label":"Introduction","href":"/node-mysql2/zh-CN/docs/documentation","docId":"documentation/index","unlisted":false},{"type":"link","label":"Authentication Switch Request","href":"/node-mysql2/zh-CN/docs/documentation/authentication-switch","docId":"documentation/authentication-switch","unlisted":false},{"type":"link","label":"Extra Features","href":"/node-mysql2/zh-CN/docs/documentation/extras","docId":"documentation/extras","unlisted":false},{"type":"link","label":"MySQL Server API","href":"/node-mysql2/zh-CN/docs/documentation/mysql-server","docId":"documentation/mysql-server","unlisted":false},{"type":"link","label":"Prepared Statements","href":"/node-mysql2/zh-CN/docs/documentation/prepared-statements","docId":"documentation/prepared-statements","unlisted":false},{"type":"link","label":"Promise Wrappers","href":"/node-mysql2/zh-CN/docs/documentation/promise-wrapper","docId":"documentation/promise-wrapper","unlisted":false},{"type":"link","label":"Using MySQL2 with TypeScript","href":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","docId":"documentation/typescript-examples","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"link","label":"API\u914d\u7f6e\u9879","href":"/node-mysql2/zh-CN/docs/api-and-configurations","docId":"api-and-configurations","unlisted":false},{"type":"link","label":"\u9e23\u8c22","href":"/node-mysql2/zh-CN/docs/acknowledgements","docId":"acknowledgements","unlisted":false},{"type":"category","label":"\u8d21\u732e","items":[{"type":"link","label":"MySQL2","href":"/node-mysql2/zh-CN/docs/contributing","docId":"contributing/index","unlisted":false},{"type":"link","label":"Documentation Site","href":"/node-mysql2/zh-CN/docs/contributing/website","docId":"contributing/website","unlisted":false}],"collapsed":true,"collapsible":true}],"examples":[{"type":"link","label":"Introduction","href":"/node-mysql2/zh-CN/docs/examples","docId":"examples/index","unlisted":false},{"type":"category","label":"Connections","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"createConnection","href":"/node-mysql2/zh-CN/docs/examples/connections/create-connection","docId":"examples/connections/create-connection","unlisted":false},{"type":"link","label":"createPool","href":"/node-mysql2/zh-CN/docs/examples/connections/create-pool","docId":"examples/connections/create-pool","unlisted":false},{"type":"link","label":"createPoolCluster","href":"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster","docId":"examples/connections/createPoolCluster","unlisted":false}]},{"type":"category","label":"Queries","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Simple Queries","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"INSERT","href":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/insert","docId":"examples/queries/simple-queries/insert","unlisted":false},{"type":"link","label":"SELECT","href":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/select","docId":"examples/queries/simple-queries/select","unlisted":false},{"type":"link","label":"UPDATE","href":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/update","docId":"examples/queries/simple-queries/update","unlisted":false},{"type":"link","label":"DELETE","href":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/delete","docId":"examples/queries/simple-queries/delete","unlisted":false}],"href":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/"},{"type":"category","label":"Prepared Statements","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"INSERT","href":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/insert","docId":"examples/queries/prepared-statements/insert","unlisted":false},{"type":"link","label":"SELECT","href":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/select","docId":"examples/queries/prepared-statements/select","unlisted":false},{"type":"link","label":"UPDATE","href":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/update","docId":"examples/queries/prepared-statements/update","unlisted":false},{"type":"link","label":"DELETE","href":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/delete","docId":"examples/queries/prepared-statements/delete","unlisted":false}],"href":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/"}]},{"type":"link","label":"Binlog Watcher","href":"/node-mysql2/zh-CN/docs/examples/binlog-watcher","docId":"examples/binlog-watcher","unlisted":false},{"type":"category","label":"Promise Wrapper","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"await \u2014 co","href":"/node-mysql2/zh-CN/docs/examples/promise-wrapper/co-await","docId":"examples/promise-wrapper/co-await","unlisted":false}]},{"type":"category","label":"Tests","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"MySQL Proxy","href":"/node-mysql2/zh-CN/docs/examples/tests/mysql-proxy","docId":"examples/tests/mysql-proxy","unlisted":false},{"type":"link","label":"Pool","href":"/node-mysql2/zh-CN/docs/examples/tests/pool","docId":"examples/tests/pool","unlisted":false},{"type":"link","label":"Server","href":"/node-mysql2/zh-CN/docs/examples/tests/server","docId":"examples/tests/server","unlisted":false}]},{"type":"category","label":"TypeScript","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Basic Custom Class","href":"/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-class","docId":"examples/typescript/basic-custom-class","unlisted":false},{"type":"category","label":"Procedure Call","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Procedure Call Packet","href":"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/index","docId":"examples/typescript/procedure-call/index","unlisted":false},{"type":"link","label":"Procedure Call Packet (Row as Array)","href":"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-array","docId":"examples/typescript/procedure-call/row-as-array","unlisted":false}]},{"type":"category","label":"Row Data","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Row Data Packet","href":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/index","docId":"examples/typescript/row-data/index","unlisted":false},{"type":"link","label":"Row Data Packet (Row as Array)","href":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array","docId":"examples/typescript/row-data/row-as-array","unlisted":false},{"type":"link","label":"Row Data Packet (Multi Statements)","href":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/multi-statements","docId":"examples/typescript/row-data/multi-statements","unlisted":false},{"type":"link","label":"Row Data Packet (Multi Statements and Row as Array)","href":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array-multi-statements","docId":"examples/typescript/row-data/row-as-array-multi-statements","unlisted":false}]}]}],"faq":[{"type":"link","label":"Introduction","href":"/node-mysql2/zh-CN/docs/faq","docId":"faq/index","unlisted":false},{"type":"link","label":"How to handle errors?","href":"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors","docId":"faq/how-to-handle-errors","unlisted":false}]},"docs":{"acknowledgements":{"id":"acknowledgements","title":"\u9e23\u8c22","description":"- \u5185\u90e8\u534f\u8bae\u7531@sidorares\u7f16\u5199 MySQL-Native","sidebar":"docs"},"api-and-configurations":{"id":"api-and-configurations","title":"API\u914d\u7f6e\u9879","description":"MySQL2\u5927\u90e8\u5206\u7684API\u4e0e Node MySQL \u57fa\u672c\u4e0a\u76f8\u540c\uff0c\u4f60\u5e94\u8be5\u67e5\u770b\u4ed6\u4eec\u7684API\u6587\u6863\u6765\u77e5\u9053\u66f4\u591a\u7684API\u9009\u9879\u3002","sidebar":"docs"},"contributing/index":{"id":"contributing/index","title":"MySQL2","description":"\u5982\u679c\u8981\u4e3anode-mysql2\u505a\u4e9b\u8d21\u732e.\u8bf7\u67e5\u9605 Contributing.md \u6765\u83b7\u5f97\u66f4\u591a\u8be6\u7ec6\u4fe1\u606f\u3002","sidebar":"docs"},"contributing/website":{"id":"contributing/website","title":"Documentation Site","description":"This website is built using Docusaurus 3, a modern static website generator.","sidebar":"docs"},"documentation/authentication-switch":{"id":"documentation/authentication-switch","title":"Authentication Switch Request","description":"During the connection phase the server may ask the client to switch to a different auth method.","sidebar":"docs"},"documentation/extras":{"id":"documentation/extras","title":"Extra Features","description":"Named placeholders","sidebar":"docs"},"documentation/index":{"id":"documentation/index","title":"Introduction","description":"[node-mysql]//github.com/mysqljs/mysql","sidebar":"docs"},"documentation/mysql-server":{"id":"documentation/mysql-server","title":"MySQL Server API","description":"Server","sidebar":"docs"},"documentation/prepared-statements":{"id":"documentation/prepared-statements","title":"Prepared Statements","description":"Automatic creation, cached and re-used by connection","sidebar":"docs"},"documentation/promise-wrapper":{"id":"documentation/promise-wrapper","title":"Promise Wrappers","description":"In addition to errback interface there is thin wrapper to expose Promise-based api","sidebar":"docs"},"documentation/typescript-examples":{"id":"documentation/typescript-examples","title":"Using MySQL2 with TypeScript","description":"Installation","sidebar":"docs"},"examples/binlog-watcher":{"id":"examples/binlog-watcher","title":"Binlog Watcher","description":"","sidebar":"examples"},"examples/connections/create-connection":{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","sidebar":"examples"},"examples/connections/create-pool":{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","sidebar":"examples"},"examples/connections/createPoolCluster":{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","sidebar":"examples"},"examples/index":{"id":"examples/index","title":"Introduction","description":"To explore the examples, please use the sidebar navigation on desktop or access the menu on mobile devices.","sidebar":"examples"},"examples/promise-wrapper/co-await":{"id":"examples/promise-wrapper/co-await","title":"await \u2014 co","description":"","sidebar":"examples"},"examples/queries/prepared-statements/delete":{"id":"examples/queries/prepared-statements/delete","title":"DELETE","description":"execute(sql, values)","sidebar":"examples"},"examples/queries/prepared-statements/index":{"id":"examples/queries/prepared-statements/index","title":"Prepared Statements","description":"MySQL2 provides execute helper which will prepare and query the statement.","sidebar":"examples"},"examples/queries/prepared-statements/insert":{"id":"examples/queries/prepared-statements/insert","title":"INSERT","description":"execute(sql, values)","sidebar":"examples"},"examples/queries/prepared-statements/select":{"id":"examples/queries/prepared-statements/select","title":"SELECT","description":"execute(sql, values)","sidebar":"examples"},"examples/queries/prepared-statements/update":{"id":"examples/queries/prepared-statements/update","title":"UPDATE","description":"execute(sql, values)","sidebar":"examples"},"examples/queries/simple-queries/delete":{"id":"examples/queries/simple-queries/delete","title":"DELETE","description":"The examples below also work for the execute method.","sidebar":"examples"},"examples/queries/simple-queries/index":{"id":"examples/queries/simple-queries/index","title":"Simple Queries","description":"For Prepared Statements or Placeholders / Parameters examples, please see here.","sidebar":"examples"},"examples/queries/simple-queries/insert":{"id":"examples/queries/simple-queries/insert","title":"INSERT","description":"The examples below also work for the execute method.","sidebar":"examples"},"examples/queries/simple-queries/select":{"id":"examples/queries/simple-queries/select","title":"SELECT","description":"The examples below also work for the execute method.","sidebar":"examples"},"examples/queries/simple-queries/update":{"id":"examples/queries/simple-queries/update","title":"UPDATE","description":"The examples below also work for the execute method.","sidebar":"examples"},"examples/tests/mysql-proxy":{"id":"examples/tests/mysql-proxy","title":"MySQL Proxy","description":"","sidebar":"examples"},"examples/tests/pool":{"id":"examples/tests/pool","title":"Pool","description":"","sidebar":"examples"},"examples/tests/server":{"id":"examples/tests/server","title":"Server","description":"","sidebar":"examples"},"examples/typescript/basic-custom-class":{"id":"examples/typescript/basic-custom-class","title":"Basic Custom Class","description":"","sidebar":"examples"},"examples/typescript/procedure-call/index":{"id":"examples/typescript/procedure-call/index","title":"Procedure Call Packet","description":"","sidebar":"examples"},"examples/typescript/procedure-call/row-as-array":{"id":"examples/typescript/procedure-call/row-as-array","title":"Procedure Call Packet (Row as Array)","description":"","sidebar":"examples"},"examples/typescript/row-data/index":{"id":"examples/typescript/row-data/index","title":"Row Data Packet","description":"","sidebar":"examples"},"examples/typescript/row-data/multi-statements":{"id":"examples/typescript/row-data/multi-statements","title":"Row Data Packet (Multi Statements)","description":"","sidebar":"examples"},"examples/typescript/row-data/row-as-array":{"id":"examples/typescript/row-data/row-as-array","title":"Row Data Packet (Row as Array)","description":"","sidebar":"examples"},"examples/typescript/row-data/row-as-array-multi-statements":{"id":"examples/typescript/row-data/row-as-array-multi-statements","title":"Row Data Packet (Multi Statements and Row as Array)","description":"","sidebar":"examples"},"faq/how-to-handle-errors":{"id":"faq/how-to-handle-errors","title":"How to handle errors?","description":"This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as createConnection, createPool, createPoolCluster, execute and query.","sidebar":"faq"},"faq/index":{"id":"faq/index","title":"Introduction","description":"This section provides answers to commonly asked questions about MySQL2.","sidebar":"faq"},"history-and-why-mysq2":{"id":"history-and-why-mysq2","title":"MySQL2\u7684\u5386\u53f2\u4ee5\u53ca\u9009\u62e9\u539f\u56e0","description":"MySQL2 \u9879\u76ee\u662f MySQL-Native \u7684\u5ef6\u7eed\u3002 \u534f\u8bae\u89e3\u6790\u5668\u4ee3\u7801\u4ece\u5934\u5f00\u59cb\u91cd\u5199\uff0capi \u66f4\u6539\u4e3a\u5339\u914d\u6d41\u884c\u7684 mysqljs/mysql\u3002 MySQL2 \u56e2\u961f\u6b63\u5728\u4e0e mysqljs/mysql \u56e2\u961f\u5408\u4f5c\uff0c\u5c06\u5171\u4eab\u4ee3\u7801\u5206\u89e3\u5e76\u79fb\u81f3 mysqljs \u7ec4\u7ec7\u4e0b\u3002","sidebar":"docs"},"index":{"id":"index","title":"Quickstart","description":"\u9002\u7528\u4e8eNode.js\u7684MySQL\u5ba2\u6237\u7aef\uff0c\u4e13\u6ce8\u4e8e\u6027\u80fd\u4f18\u5316","sidebar":"docs"},"stability-badges":{"id":"stability-badges","title":"Stability Badges","description":"The Stability Badges are indications of a section\'s stability.","sidebar":"docs"}}}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/935f2afb.8bb3ea34.js b/zh-CN/assets/js/935f2afb.8bb3ea34.js deleted file mode 100644 index 481c7471f9..0000000000 --- a/zh-CN/assets/js/935f2afb.8bb3ea34.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[53],{1109:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"docs":[{"type":"link","label":"Quickstart","href":"/node-mysql2/zh-CN/docs/","docId":"index","unlisted":false},{"type":"link","label":"MySQL2\u7684\u5386\u53f2\u4ee5\u53ca\u9009\u62e9\u539f\u56e0","href":"/node-mysql2/zh-CN/docs/history-and-why-mysq2","docId":"history-and-why-mysq2","unlisted":false},{"type":"link","label":"Stability Badges","href":"/node-mysql2/zh-CN/docs/stability-badges","docId":"stability-badges","unlisted":false},{"type":"category","label":"Documentation","items":[{"type":"link","label":"Introduction","href":"/node-mysql2/zh-CN/docs/documentation","docId":"documentation/index","unlisted":false},{"type":"link","label":"Authentication Switch Request","href":"/node-mysql2/zh-CN/docs/documentation/authentication-switch","docId":"documentation/authentication-switch","unlisted":false},{"type":"link","label":"Extra Features","href":"/node-mysql2/zh-CN/docs/documentation/extras","docId":"documentation/extras","unlisted":false},{"type":"link","label":"MySQL Server API","href":"/node-mysql2/zh-CN/docs/documentation/mysql-server","docId":"documentation/mysql-server","unlisted":false},{"type":"link","label":"Prepared Statements","href":"/node-mysql2/zh-CN/docs/documentation/prepared-statements","docId":"documentation/prepared-statements","unlisted":false},{"type":"link","label":"Promise Wrappers","href":"/node-mysql2/zh-CN/docs/documentation/promise-wrapper","docId":"documentation/promise-wrapper","unlisted":false},{"type":"link","label":"Using MySQL2 with TypeScript","href":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","docId":"documentation/typescript-examples","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"link","label":"API\u914d\u7f6e\u9879","href":"/node-mysql2/zh-CN/docs/api-and-configurations","docId":"api-and-configurations","unlisted":false},{"type":"link","label":"\u9e23\u8c22","href":"/node-mysql2/zh-CN/docs/acknowledgements","docId":"acknowledgements","unlisted":false},{"type":"category","label":"\u8d21\u732e","items":[{"type":"link","label":"MySQL2","href":"/node-mysql2/zh-CN/docs/contributing","docId":"contributing/index","unlisted":false},{"type":"link","label":"Documentation Site","href":"/node-mysql2/zh-CN/docs/contributing/website","docId":"contributing/website","unlisted":false}],"collapsed":true,"collapsible":true}],"examples":[{"type":"link","label":"Introduction","href":"/node-mysql2/zh-CN/docs/examples","docId":"examples/index","unlisted":false},{"type":"link","label":"Binlog Watcher","href":"/node-mysql2/zh-CN/docs/examples/binlog-watcher","docId":"examples/binlog-watcher","unlisted":false},{"type":"link","label":"Connect Over Socks","href":"/node-mysql2/zh-CN/docs/examples/connect-over-socks","docId":"examples/connect-over-socks","unlisted":false},{"type":"link","label":"Execute","href":"/node-mysql2/zh-CN/docs/examples/execute","docId":"examples/execute","unlisted":false},{"type":"link","label":"MySQL Proxy","href":"/node-mysql2/zh-CN/docs/examples/mysqlproxy","docId":"examples/mysqlproxy","unlisted":false},{"type":"link","label":"Pass SHA","href":"/node-mysql2/zh-CN/docs/examples/pass-sha","docId":"examples/pass-sha","unlisted":false},{"type":"link","label":"Pool Test","href":"/node-mysql2/zh-CN/docs/examples/pool-test","docId":"examples/pool-test","unlisted":false},{"type":"link","label":"Prepared Statements","href":"/node-mysql2/zh-CN/docs/examples/prepare","docId":"examples/prepare","unlisted":false},{"type":"link","label":"Promise CO Await","href":"/node-mysql2/zh-CN/docs/examples/promise-co-await","docId":"examples/promise-co-await","unlisted":false},{"type":"category","label":"Queries","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"SELECT","href":"/node-mysql2/zh-CN/docs/examples/queries/select","docId":"examples/queries/select","unlisted":false}],"href":"/node-mysql2/zh-CN/docs/category/queries"},{"type":"link","label":"Server","href":"/node-mysql2/zh-CN/docs/examples/server","docId":"examples/server","unlisted":false},{"type":"category","label":"SSL","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"RDS SSL","href":"/node-mysql2/zh-CN/docs/examples/ssl/rds-ssl","docId":"examples/ssl/rds-ssl","unlisted":false},{"type":"link","label":"Select Over SSL","href":"/node-mysql2/zh-CN/docs/examples/ssl/select-over-ssl","docId":"examples/ssl/select-over-ssl","unlisted":false}],"href":"/node-mysql2/zh-CN/docs/category/ssl"},{"type":"category","label":"TypeScript","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Basic Custom Class","href":"/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-class","docId":"examples/typescript/basic-custom-class","unlisted":false},{"type":"category","label":"Procedure Call Packet","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Procedure Call Packet","href":"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/procedure-call-packet","docId":"examples/typescript/procedure-call/procedure-call-packet","unlisted":false},{"type":"link","label":"Procedure Call Packet (Row as Array)","href":"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-array","docId":"examples/typescript/procedure-call/row-as-array","unlisted":false}],"href":"/node-mysql2/zh-CN/docs/category/procedure-call-packet"},{"type":"category","label":"Row Data Packet","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Row Data Packet","href":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-data-packet","docId":"examples/typescript/row-data/row-data-packet","unlisted":false},{"type":"link","label":"Row Data Packet (Row as Array)","href":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array","docId":"examples/typescript/row-data/row-as-array","unlisted":false},{"type":"link","label":"Row Data Packet (Multi Statements)","href":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/multi-statements","docId":"examples/typescript/row-data/multi-statements","unlisted":false},{"type":"link","label":"Row Data Packet (Multi Statements and Row as Array)","href":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array-multi-statements","docId":"examples/typescript/row-data/row-as-array-multi-statements","unlisted":false}],"href":"/node-mysql2/zh-CN/docs/category/row-data-packet"}],"href":"/node-mysql2/zh-CN/docs/category/typescript"}],"faq":[{"type":"link","label":"Introduction","href":"/node-mysql2/zh-CN/docs/faq","docId":"faq/index","unlisted":false},{"type":"link","label":"How to handle errors?","href":"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors","docId":"faq/how-to-handle-errors","unlisted":false}]},"docs":{"acknowledgements":{"id":"acknowledgements","title":"\u9e23\u8c22","description":"- \u5185\u90e8\u534f\u8bae\u7531@sidorares\u7f16\u5199 MySQL-Native","sidebar":"docs"},"api-and-configurations":{"id":"api-and-configurations","title":"API\u914d\u7f6e\u9879","description":"MySQL2\u5927\u90e8\u5206\u7684API\u4e0e Node MySQL \u57fa\u672c\u4e0a\u76f8\u540c\uff0c\u4f60\u5e94\u8be5\u67e5\u770b\u4ed6\u4eec\u7684API\u6587\u6863\u6765\u77e5\u9053\u66f4\u591a\u7684API\u9009\u9879\u3002","sidebar":"docs"},"contributing/index":{"id":"contributing/index","title":"MySQL2","description":"\u5982\u679c\u8981\u4e3anode-mysql2\u505a\u4e9b\u8d21\u732e.\u8bf7\u67e5\u9605 Contributing.md \u6765\u83b7\u5f97\u66f4\u591a\u8be6\u7ec6\u4fe1\u606f\u3002","sidebar":"docs"},"contributing/website":{"id":"contributing/website","title":"Documentation Site","description":"This website is built using Docusaurus 3, a modern static website generator.","sidebar":"docs"},"documentation/authentication-switch":{"id":"documentation/authentication-switch","title":"Authentication Switch Request","description":"During the connection phase the server may ask the client to switch to a different auth method.","sidebar":"docs"},"documentation/extras":{"id":"documentation/extras","title":"Extra Features","description":"Named placeholders","sidebar":"docs"},"documentation/index":{"id":"documentation/index","title":"Introduction","description":"[node-mysql]//github.com/mysqljs/mysql","sidebar":"docs"},"documentation/mysql-server":{"id":"documentation/mysql-server","title":"MySQL Server API","description":"Server","sidebar":"docs"},"documentation/prepared-statements":{"id":"documentation/prepared-statements","title":"Prepared Statements","description":"Automatic creation, cached and re-used by connection","sidebar":"docs"},"documentation/promise-wrapper":{"id":"documentation/promise-wrapper","title":"Promise Wrappers","description":"In addition to errback interface there is thin wrapper to expose Promise-based api","sidebar":"docs"},"documentation/typescript-examples":{"id":"documentation/typescript-examples","title":"Using MySQL2 with TypeScript","description":"Installation","sidebar":"docs"},"examples/binlog-watcher":{"id":"examples/binlog-watcher","title":"Binlog Watcher","description":"","sidebar":"examples"},"examples/connect-over-socks":{"id":"examples/connect-over-socks","title":"Connect Over Socks","description":"","sidebar":"examples"},"examples/execute":{"id":"examples/execute","title":"Execute","description":"","sidebar":"examples"},"examples/index":{"id":"examples/index","title":"Introduction","description":"Simple SELECT","sidebar":"examples"},"examples/mysqlproxy":{"id":"examples/mysqlproxy","title":"MySQL Proxy","description":"","sidebar":"examples"},"examples/pass-sha":{"id":"examples/pass-sha","title":"Pass SHA","description":"","sidebar":"examples"},"examples/pool-test":{"id":"examples/pool-test","title":"Pool Test","description":"","sidebar":"examples"},"examples/prepare":{"id":"examples/prepare","title":"Prepared Statements","description":"","sidebar":"examples"},"examples/promise-co-await":{"id":"examples/promise-co-await","title":"Promise CO Await","description":"","sidebar":"examples"},"examples/queries/select":{"id":"examples/queries/select","title":"SELECT","description":"","sidebar":"examples"},"examples/server":{"id":"examples/server","title":"Server","description":"","sidebar":"examples"},"examples/ssl/rds-ssl":{"id":"examples/ssl/rds-ssl","title":"RDS SSL","description":"","sidebar":"examples"},"examples/ssl/select-over-ssl":{"id":"examples/ssl/select-over-ssl","title":"Select Over SSL","description":"- See examples/ssl/certs.","sidebar":"examples"},"examples/typescript/basic-custom-class":{"id":"examples/typescript/basic-custom-class","title":"Basic Custom Class","description":"","sidebar":"examples"},"examples/typescript/procedure-call/procedure-call-packet":{"id":"examples/typescript/procedure-call/procedure-call-packet","title":"Procedure Call Packet","description":"","sidebar":"examples"},"examples/typescript/procedure-call/row-as-array":{"id":"examples/typescript/procedure-call/row-as-array","title":"Procedure Call Packet (Row as Array)","description":"","sidebar":"examples"},"examples/typescript/row-data/multi-statements":{"id":"examples/typescript/row-data/multi-statements","title":"Row Data Packet (Multi Statements)","description":"","sidebar":"examples"},"examples/typescript/row-data/row-as-array":{"id":"examples/typescript/row-data/row-as-array","title":"Row Data Packet (Row as Array)","description":"","sidebar":"examples"},"examples/typescript/row-data/row-as-array-multi-statements":{"id":"examples/typescript/row-data/row-as-array-multi-statements","title":"Row Data Packet (Multi Statements and Row as Array)","description":"","sidebar":"examples"},"examples/typescript/row-data/row-data-packet":{"id":"examples/typescript/row-data/row-data-packet","title":"Row Data Packet","description":"","sidebar":"examples"},"faq/how-to-handle-errors":{"id":"faq/how-to-handle-errors","title":"How to handle errors?","description":"This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as createConnection, createPool, createPoolCluster, execute and query.","sidebar":"faq"},"faq/index":{"id":"faq/index","title":"Introduction","description":"This section provides answers to commonly asked questions about MySQL2.","sidebar":"faq"},"history-and-why-mysq2":{"id":"history-and-why-mysq2","title":"MySQL2\u7684\u5386\u53f2\u4ee5\u53ca\u9009\u62e9\u539f\u56e0","description":"MySQL2 \u9879\u76ee\u662f MySQL-Native \u7684\u5ef6\u7eed\u3002 \u534f\u8bae\u89e3\u6790\u5668\u4ee3\u7801\u4ece\u5934\u5f00\u59cb\u91cd\u5199\uff0capi \u66f4\u6539\u4e3a\u5339\u914d\u6d41\u884c\u7684 mysqljs/mysql\u3002 MySQL2 \u56e2\u961f\u6b63\u5728\u4e0e mysqljs/mysql \u56e2\u961f\u5408\u4f5c\uff0c\u5c06\u5171\u4eab\u4ee3\u7801\u5206\u89e3\u5e76\u79fb\u81f3 mysqljs \u7ec4\u7ec7\u4e0b\u3002","sidebar":"docs"},"index":{"id":"index","title":"Quickstart","description":"\u9002\u7528\u4e8eNode.js\u7684MySQL\u5ba2\u6237\u7aef\uff0c\u4e13\u6ce8\u4e8e\u6027\u80fd\u4f18\u5316","sidebar":"docs"},"stability-badges":{"id":"stability-badges","title":"Stability Badges","description":"The Stability Badges are indications of a section\'s stability.","sidebar":"docs"}}}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/93f3cbcf.406eeaa0.js b/zh-CN/assets/js/93f3cbcf.406eeaa0.js deleted file mode 100644 index bdefed9bb0..0000000000 --- a/zh-CN/assets/js/93f3cbcf.406eeaa0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1883],{4972:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>p,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),s=t(1151),a=t(4866),o=t(5162);const l={},u="MySQL Proxy",c={id:"examples/mysqlproxy",title:"MySQL Proxy",description:"",source:"@site/docs/examples/mysqlproxy.mdx",sourceDirName:"examples",slug:"/examples/mysqlproxy",permalink:"/node-mysql2/zh-CN/docs/examples/mysqlproxy",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/mysqlproxy.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Execute",permalink:"/node-mysql2/zh-CN/docs/examples/execute"},next:{title:"Pass SHA",permalink:"/node-mysql2/zh-CN/docs/examples/pass-sha"}},i={},d=[];function m(e){const n={code:"code",h1:"h1",pre:"pre",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"mysql-proxy",children:"MySQL Proxy"}),"\n",(0,r.jsx)(a.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst ClientFlags = require('mysql2/lib/constants/client.js');\n\nconst server = mysql.createServer();\nserver.listen(3307);\n\nserver.on('connection', (conn) => {\n console.log('connection');\n\n conn.serverHandshake({\n protocolVersion: 10,\n serverVersion: 'node.js rocks',\n connectionId: 1234,\n statusFlags: 2,\n characterSet: 8,\n capabilityFlags: 0xffffff ^ ClientFlags.COMPRESS,\n });\n\n conn.on('field_list', (table, fields) => {\n console.log('field list:', table, fields);\n conn.writeEof();\n });\n\n const remote = mysql.createConnection({\n user: 'root',\n database: 'dbname',\n host: 'server.example.com',\n password: 'secret',\n });\n\n conn.on('query', (sql) => {\n console.log(`proxying query: ${sql}`);\n remote.query(sql, function (err) {\n // overloaded args, either (err, result :object)\n // or (err, rows :array, columns :array)\n if (Array.isArray(arguments[1])) {\n // response to a 'select', 'show' or similar\n const rows = arguments[1],\n columns = arguments[2];\n console.log('rows', rows);\n console.log('columns', columns);\n conn.writeTextResult(rows, columns);\n } else {\n // response to an 'insert', 'update' or 'delete'\n const result = arguments[1];\n console.log('result', result);\n conn.writeOk(result);\n }\n });\n });\n\n conn.on('end', remote.end.bind(remote));\n});\n"})})})})]})}function p(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const s={tabItem:"tabItem_Ymn6"};var a=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,r.Z)(s.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>q});var r=t(7294),s=t(512),a=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:s}}=e;return{value:n,label:t,attributes:r,default:s}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const s=(0,o.k6)(),a=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(a),(0,r.useCallback)((e=>{if(!a)return;const n=new URLSearchParams(s.location.search);n.set(a,e),s.replace({...s.location,search:n.toString()})}),[a,s])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:s}=e,a=m(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:a}))),[c,d]=f({queryString:t,groupId:s}),[b,h]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[s,a]=(0,i.Nk)(t);return[s,(0,r.useCallback)((e=>{t&&a.set(e)}),[t,a])]}({groupId:s}),y=(()=>{const e=c??b;return p({value:e,tabValues:a})?e:null})();(0,l.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,a]),tabValues:a}}var h=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=t(5893);function x(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,a.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),s=l[t].value;s!==r&&(c(n),o(s))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:a}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...a,className:(0,s.Z)("tabs__item",y.tabItem,a?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function g(e){let{lazy:n,children:t,selectedValue:s}=e;const a=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=a.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:a.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==s})))})}function w(e){const n=b(e);return(0,v.jsxs)("div",{className:(0,s.Z)("tabs-container",y.tabList),children:[(0,v.jsx)(x,{...e,...n}),(0,v.jsx)(g,{...e,...n})]})}function q(e){const n=(0,h.Z)();return(0,v.jsx)(w,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const s={},a=r.createContext(s);function o(e){const n=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),r.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/9570cbb2.b6676e96.js b/zh-CN/assets/js/9570cbb2.b6676e96.js new file mode 100644 index 0000000000..bad361ba05 --- /dev/null +++ b/zh-CN/assets/js/9570cbb2.b6676e96.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1782],{8549:e=>{e.exports=JSON.parse('{"label":"Parameters","permalink":"/node-mysql2/zh-CN/docs/tags/parameters","allTagsPath":"/node-mysql2/zh-CN/docs/tags","count":4,"items":[{"id":"examples/queries/prepared-statements/delete","title":"DELETE","description":"execute(sql, values)","permalink":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/delete"},{"id":"examples/queries/prepared-statements/insert","title":"INSERT","description":"execute(sql, values)","permalink":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/insert"},{"id":"examples/queries/prepared-statements/select","title":"SELECT","description":"execute(sql, values)","permalink":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/select"},{"id":"examples/queries/prepared-statements/update","title":"UPDATE","description":"execute(sql, values)","permalink":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/update"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/95bd4756.bb5473ad.js b/zh-CN/assets/js/95bd4756.bb5473ad.js deleted file mode 100644 index e45d359062..0000000000 --- a/zh-CN/assets/js/95bd4756.bb5473ad.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9667],{7190:e=>{e.exports=JSON.parse('{"title":"Row Data Packet","slug":"/category/row-data-packet","permalink":"/node-mysql2/zh-CN/docs/category/row-data-packet","navigation":{"previous":{"title":"Procedure Call Packet (Row as Array)","permalink":"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-array"},"next":{"title":"Row Data Packet","permalink":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-data-packet"}}}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/9d6e5507.c47bf4a5.js b/zh-CN/assets/js/9d6e5507.c47bf4a5.js new file mode 100644 index 0000000000..c6694d347d --- /dev/null +++ b/zh-CN/assets/js/9d6e5507.c47bf4a5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5762],{2304:e=>{e.exports=JSON.parse('{"label":"execute","permalink":"/node-mysql2/zh-CN/docs/tags/execute","allTagsPath":"/node-mysql2/zh-CN/docs/tags","count":5,"items":[{"id":"examples/queries/prepared-statements/delete","title":"DELETE","description":"execute(sql, values)","permalink":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/delete"},{"id":"examples/queries/prepared-statements/insert","title":"INSERT","description":"execute(sql, values)","permalink":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/insert"},{"id":"documentation/prepared-statements","title":"Prepared Statements","description":"Automatic creation, cached and re-used by connection","permalink":"/node-mysql2/zh-CN/docs/documentation/prepared-statements"},{"id":"examples/queries/prepared-statements/select","title":"SELECT","description":"execute(sql, values)","permalink":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/select"},{"id":"examples/queries/prepared-statements/update","title":"UPDATE","description":"execute(sql, values)","permalink":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/update"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/9df47158.766f8d31.js b/zh-CN/assets/js/9df47158.766f8d31.js deleted file mode 100644 index 779ab2a060..0000000000 --- a/zh-CN/assets/js/9df47158.766f8d31.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9010],{9964:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>u,contentTitle:()=>c,default:()=>p,frontMatter:()=>i,metadata:()=>d,toc:()=>h});var t=s(5893),o=s(1151),r=s(4866),l=s(5162),a=s(4442);const i={slug:"/",position:1,title:"Quickstart",description:"\u9002\u7528\u4e8eNode.js\u7684MySQL\u5ba2\u6237\u7aef\uff0c\u4e13\u6ce8\u4e8e\u6027\u80fd\u4f18\u5316"},c="MySQL2",d={id:"index",title:"Quickstart",description:"\u9002\u7528\u4e8eNode.js\u7684MySQL\u5ba2\u6237\u7aef\uff0c\u4e13\u6ce8\u4e8e\u6027\u80fd\u4f18\u5316",source:"@site/i18n/zh-CN/docusaurus-plugin-content-docs/current/index.mdx",sourceDirName:".",slug:"/",permalink:"/node-mysql2/zh-CN/docs/",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/index.mdx",tags:[],version:"current",frontMatter:{slug:"/",position:1,title:"Quickstart",description:"\u9002\u7528\u4e8eNode.js\u7684MySQL\u5ba2\u6237\u7aef\uff0c\u4e13\u6ce8\u4e8e\u6027\u80fd\u4f18\u5316"},sidebar:"docs",next:{title:"MySQL2\u7684\u5386\u53f2\u4ee5\u53ca\u9009\u62e9\u539f\u56e0",permalink:"/node-mysql2/zh-CN/docs/history-and-why-mysq2"}},u={},h=[{value:"\u5b89\u88c5",id:"\u5b89\u88c5",level:2},{value:"\u67e5\u8be2\u6570\u636e",id:"\u67e5\u8be2\u6570\u636e",level:3},{value:"SQL\u9884\u5904\u7406\u7684\u4f7f\u7528",id:"sql\u9884\u5904\u7406\u7684\u4f7f\u7528",level:3},{value:"\u8fde\u63a5\u6c60\u7684\u4f7f\u7528",id:"\u8fde\u63a5\u6c60\u7684\u4f7f\u7528",level:3},{value:"Promise\u5c01\u88c5",id:"promise\u5c01\u88c5",level:3},{value:"\u7ed3\u679c\u8fd4\u56de",id:"\u7ed3\u679c\u8fd4\u56de",level:3},{value:"\u8fde\u63a5\u7ea7\u522b",id:"\u8fde\u63a5\u7ea7\u522b",level:4},{value:"\u67e5\u8be2\u7ea7\u522b",id:"\u67e5\u8be2\u7ea7\u522b",level:4}];function m(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",hr:"hr",img:"img",li:"li",p:"p",pre:"pre",ul:"ul",...(0,o.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.V,{title:"MySQL2 | Quickstart"}),"\n",(0,t.jsx)(n.h1,{id:"mysql2",children:"MySQL2"}),"\n","\n",(0,t.jsx)(n.p,{children:"\u9002\u7528\u4e8eNode.js\u7684MySQL\u5ba2\u6237\u7aef\uff0c\u4e13\u6ce8\u4e8e\u6027\u80fd\u4f18\u5316\u3002\u652f\u6301SQL\u9884\u5904\u7406\u3001\u975eUTF-8\u7f16\u7801\u652f\u6301\u3001\u4e8c\u8fdb\u5236\u6587\u4ef6\u7f16\u7801\u652f\u6301\u3001\u538b\u7f29\u548cSSL\u7b49\u7b49 \u67e5\u770b\u66f4\u591a\u3002"}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://npmjs.org/package/mysql2",children:(0,t.jsx)(n.img,{src:"https://img.shields.io/npm/v/mysql2.svg",alt:"NPM Version"})}),"\n",(0,t.jsx)(n.a,{href:"https://npmjs.org/package/mysql2",children:(0,t.jsx)(n.img,{src:"https://img.shields.io/npm/dm/mysql2.svg",alt:"NPM Downloads"})}),"\n",(0,t.jsx)(n.a,{href:"https://nodejs.org/download/",children:(0,t.jsx)(n.img,{src:"https://img.shields.io/node/v/mysql2.svg",alt:"Node.js Version"})}),"\n",(0,t.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/blob/master/License",children:(0,t.jsx)(n.img,{src:"https://img.shields.io/npm/l/mysql2.svg?maxAge=2592000",alt:"License"})})]}),"\n",(0,t.jsx)(n.h2,{id:"\u5b89\u88c5",children:"\u5b89\u88c5"}),"\n",(0,t.jsx)(n.p,{children:"MySQL2 \u53ef\u4ee5\u8de8\u5e73\u53f0\u4f7f\u7528\uff0c\u6beb\u65e0\u7591\u95ee\u53ef\u4ee5\u5b89\u88c5\u5728 Linux\u3001Mac OS \u6216 Windows \u4e0a\u3002"}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(l.Z,{value:"JavaScript",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm install --save mysql2\n"})})}),(0,t.jsxs)(l.Z,{value:"TypeScript",children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm install --save mysql2\nnpm install --save-dev @types/node\n"})}),(0,t.jsxs)(n.p,{children:["For TypeScript documentation and examples, see ",(0,t.jsx)(n.a,{href:"/docs/documentation/typescript-examples",children:"here"}),"."]})]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"\u67e5\u8be2\u6570\u636e",children:"\u67e5\u8be2\u6570\u636e"}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(l.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"// \u5bfc\u5165\u6a21\u5757\nimport mysql from 'mysql2/promise';\n\n// \u521b\u5efa\u4e00\u4e2a\u6570\u636e\u5e93\u8fde\u63a5\nconst connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// \u7b80\u5355\u67e5\u8be2\ntry {\n const [results, fields] = await connection.query(\n 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45'\n );\n\n console.log(results); // \u7ed3\u679c\u96c6\n console.log(fields); // \u989d\u5916\u7684\u5143\u6570\u636e\uff08\u5982\u679c\u6709\u7684\u8bdd\uff09\n} catch (err) {\n console.log(err);\n}\n\n// \u4f7f\u7528\u5360\u4f4d\u7b26\ntry {\n const [results] = await connection.query(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Page', 45]\n );\n\n console.log(results);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(l.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"// \u5bfc\u5165\u6a21\u5757\nconst mysql = require('mysql2');\n\n// \u521b\u5efa\u4e00\u4e2a\u6570\u636e\u5e93\u8fde\u63a5\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// \u7b80\u5355\u67e5\u8be2\nconnection.query(\n 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45',\n function (err, results, fields) {\n console.log(results); // \u7ed3\u679c\u96c6\n console.log(fields); // \u989d\u5916\u7684\u5143\u6570\u636e\uff08\u5982\u679c\u6709\u7684\u8bdd\uff09\n }\n);\n\n// \u4f7f\u7528\u5360\u4f4d\u7b26\nconnection.query(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Page', 45],\n function (err, results) {\n console.log(results);\n }\n);\n"})})})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"sql\u9884\u5904\u7406\u7684\u4f7f\u7528",children:"SQL\u9884\u5904\u7406\u7684\u4f7f\u7528"}),"\n",(0,t.jsx)(n.p,{children:"\u4f7f\u7528 MySQL2\uff0c\u60a8\u8fd8\u53ef\u4ee5\u63d0\u524d\u51c6\u5907\u597dSQL\u9884\u5904\u7406\u8bed\u53e5\u3002 \u4f7f\u7528\u51c6\u5907\u597d\u7684SQL\u9884\u5904\u7406\u8bed\u53e5\uff0cMySQL \u4e0d\u5fc5\u6bcf\u6b21\u90fd\u4e3a\u76f8\u540c\u7684\u67e5\u8be2\u505a\u51c6\u5907\uff0c\u8fd9\u4f1a\u5e26\u6765\u66f4\u597d\u7684\u6027\u80fd\u3002 \u5982\u679c\u60a8\u4e0d\u77e5\u9053\u4e3a\u4ec0\u4e48\u5b83\u4eec\u5f88\u91cd\u8981\uff0c\u8bf7\u67e5\u770b\u8fd9\u4e9b\u8ba8\u8bba\uff1a"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"https://stackoverflow.com/questions/8263371/how-can-prepared-statements-protect-from-sql-injection-attacks",children:"\u5982\u4f55\u9632\u6b62\u9884\u5904\u7406\u8bed\u53e5SQL\u6ce8\u5165\u653b\u51fb"})}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["MySQL2 \u63d0\u4f9b\u4e86 ",(0,t.jsx)(n.code,{children:"execute"})," \u8f85\u52a9\u51fd\u6570\uff0c\u5b83\u5c06\u51c6\u5907\u548c\u67e5\u8be2\u8bed\u53e5\u3002 \u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528 ",(0,t.jsx)(n.code,{children:"prepare"})," / ",(0,t.jsx)(n.code,{children:"unprepare"})," \u65b9\u6cd5\u624b\u52a8\u51c6\u5907/\u53d6\u6d88\u51c6\u5907\u3002"]}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(l.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // \u521b\u5efa\u4e00\u4e2a\u6570\u636e\u5e93\u8fde\u63a5\n const connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n });\n\n // execute \u5c06\u5728\u5185\u90e8\u8c03\u7528 prepare \u548c query\n const [results, fields] = await connection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Rick C-137', 53]\n );\n\n console.log(results); // \u7ed3\u679c\u96c6\n console.log(fields); // \u989d\u5916\u7684\u5143\u6570\u636e\uff08\u5982\u679c\u6709\u7684\u8bdd\uff09\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(l.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\n// \u521b\u5efa\u4e00\u4e2a\u6570\u636e\u5e93\u8fde\u63a5\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// execute \u5c06\u5728\u5185\u90e8\u8c03\u7528 prepare \u548c query\nconnection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Rick C-137', 53],\n function (err, results, fields) {\n console.log(results); // \u7ed3\u679c\u96c6\n console.log(fields); // \u989d\u5916\u7684\u5143\u6570\u636e\uff08\u5982\u679c\u6709\u7684\u8bdd\uff09\n }\n);\n"})})})]}),"\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsx)(n.p,{children:"\u5982\u679c\u518d\u6b21\u6267\u884c\u76f8\u540c\u7684\u8bed\u53e5\uff0c\u4ed6\u5c06\u4ece\u7f13\u5b58\u4e2d\u9009\u53d6\uff0c\u8fd9\u80fd\u6709\u6548\u7684\u8282\u7701\u51c6\u5907\u67e5\u8be2\u65f6\u95f4\u83b7\u5f97\u66f4\u597d\u7684\u6027\u80fd\u3002"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"\u8fde\u63a5\u6c60\u7684\u4f7f\u7528",children:"\u8fde\u63a5\u6c60\u7684\u4f7f\u7528"}),"\n",(0,t.jsx)(n.p,{children:"\u8fde\u63a5\u6c60\u901a\u8fc7\u91cd\u7528\u4ee5\u524d\u7684\u8fde\u63a5\u6765\u5e2e\u52a9\u51cf\u5c11\u8fde\u63a5\u5230 MySQL \u670d\u52a1\u5668\u6240\u82b1\u8d39\u7684\u65f6\u95f4\uff0c\u5f53\u4f60\u5b8c\u6210\u5b83\u4eec\u65f6\u8ba9\u5b83\u4eec\u4fdd\u6301\u6253\u5f00\u800c\u4e0d\u662f\u5173\u95ed\u3002"}),"\n",(0,t.jsx)(n.p,{children:"\u8fd9\u6539\u5584\u4e86\u67e5\u8be2\u7684\u5ef6\u8fdf\uff0c\u56e0\u4e3a\u60a8\u907f\u514d\u4e86\u5efa\u7acb\u65b0\u8fde\u63a5\u6240\u5e26\u6765\u7684\u6240\u6709\u5f00\u9500\u3002"}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(l.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\n// \u521b\u5efa\u8fde\u63a5\u6c60\uff0c\u8bbe\u7f6e\u8fde\u63a5\u6c60\u7684\u53c2\u6570\nconst pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n waitForConnections: true,\n connectionLimit: 10,\n maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit`\n idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000\n queueLimit: 0,\n enableKeepAlive: true,\n keepAliveInitialDelay: 0,\n});\n"})})}),(0,t.jsx)(l.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\n// \u521b\u5efa\u8fde\u63a5\u6c60\uff0c\u8bbe\u7f6e\u8fde\u63a5\u6c60\u7684\u53c2\u6570\nconst pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n waitForConnections: true,\n connectionLimit: 10,\n maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit`\n idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000\n queueLimit: 0,\n enableKeepAlive: true,\n keepAliveInitialDelay: 0,\n});\n"})})})]}),"\n",(0,t.jsx)(n.admonition,{type:"note",children:(0,t.jsx)(n.p,{children:"\u8be5\u6c60\u4e0d\u4f1a\u9884\u5148\u521b\u5efa\u6240\u6709\u8fde\u63a5\uff0c\u800c\u662f\u6839\u636e\u9700\u8981\u521b\u5efa\u5b83\u4eec\uff0c\u76f4\u5230\u8fbe\u5230\u8fde\u63a5\u9650\u5236\u3002"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsxs)(n.p,{children:["\u60a8\u53ef\u4ee5\u50cf\u76f4\u63a5\u8fde\u63a5\u4e00\u6837\u4f7f\u7528\u6c60\uff08\u4f7f\u7528 ",(0,t.jsx)(n.code,{children:"pool.query()"})," \u548c ",(0,t.jsx)(n.code,{children:"pool.execute()"}),"\uff09\uff1a"]}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(l.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"try {\n // For pool initialization, see above\n const [rows, fields] = await pool.query('SELECT `field` FROM `table`');\n // Connection is automatically released when query resolves\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(l.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"// For pool initialization, see above\npool.query('SELECT `field` FROM `table`', function (err, rows, fields) {\n // Connection is automatically released when query resolves\n});\n"})})})]}),"\n",(0,t.jsx)(n.p,{children:"\u6216\u8005\uff0c\u4e5f\u53ef\u4ee5\u624b\u52a8\u4ece\u6c60\u4e2d\u83b7\u53d6\u8fde\u63a5\u5e76\u7a0d\u540e\u8fd4\u56de\uff1a"}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(l.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"// For pool initialization, see above\nconst conn = await pool.getConnection();\n\n// Do something with the connection\nawait conn.query(/* ... */);\n\n// Don't forget to release the connection when finished!\npool.releaseConnection(conn);\n"})})}),(0,t.jsx)(l.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"// For pool initialization, see above\npool.getConnection(function (err, conn) {\n // Do something with the connection\n conn.query(/* ... */);\n\n // Don't forget to release the connection when finished!\n pool.releaseConnection(conn);\n});\n"})})})]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["Additionally, directly release the connection using the ",(0,t.jsx)(n.code,{children:"connection"})," object:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"conn.release();\n"})}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"promise\u5c01\u88c5",children:"Promise\u5c01\u88c5"}),"\n",(0,t.jsx)(n.p,{children:"MySQL2 \u4e5f\u652f\u6301 Promise API\u3002 \u8fd9\u4e0e ES7 \u5f02\u6b65\u7b49\u5f85\u975e\u5e38\u6709\u6548\u3002"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nasync function main() {\n // create the connection\n const connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n });\n\n // query database\n const [rows, fields] = await connection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Morty', 14]\n );\n}\n"})}),"\n",(0,t.jsxs)(n.p,{children:["MySQL2 \u4f7f\u7528\u8303\u56f4\u5185\u53ef\u7528\u7684\u9ed8\u8ba4 ",(0,t.jsx)(n.code,{children:"Promise"})," \u5bf9\u8c61\u3002 \u4f46\u662f\u4f60\u53ef\u4ee5\u9009\u62e9\u4f60\u60f3\u4f7f\u7528\u7684 ",(0,t.jsx)(n.code,{children:"Promise"})," \u5b9e\u73b0\u3002"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"// \u5bfc\u5165\u6a21\u5757\nimport mysql from 'mysql2/promise';\n\n// get the promise implementation, we will use bluebird\nimport bluebird from 'bluebird';\n\n// create the connection, specify bluebird as Promise\nconst connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n Promise: bluebird,\n});\n\n// query database\nconst [rows, fields] = await connection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Morty', 14]\n);\n"})}),"\n",(0,t.jsxs)(n.p,{children:["MySQL2 \u8fd8\u5728 Pools \u4e0a\u516c\u5f00\u4e86\u4e00\u4e2a ",(0,t.jsx)(n.code,{children:".promise()"}),"\u51fd\u6570\uff0c\u56e0\u6b64\u60a8\u53ef\u4ee5\u4ece\u540c\u4e00\u4e2a\u6c60\u521b\u5efa\u4e00\u4e2a promise/non-promise \u8fde\u63a5\u3002"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2';\n\nasync function main() {\n // create the pool\n const pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n });\n\n // now get a Promise wrapped instance of that pool\n const promisePool = pool.promise();\n\n // query database using promises\n const [rows, fields] = await promisePool.query('SELECT 1');\n}\n"})}),"\n",(0,t.jsxs)(n.p,{children:["MySQL2 \u5728 Connections \u4e0a\u516c\u5f00\u4e86\u4e00\u4e2a ",(0,t.jsx)(n.code,{children:".promise()"}),"\u51fd\u6570\uff0c\u4ee5\u201c\u5347\u7ea7\u201d\u73b0\u6709\u7684 non-promise \u8fde\u63a5\u4ee5\u4f7f\u7528 Promise\u3002"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",metastring:"{11}",children:"const mysql = require('mysql2');\n\n// create the connection\nconst conn = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\nconn\n .promise()\n .query('SELECT 1')\n .then(([rows, fields]) => {\n console.log(rows);\n })\n .catch(console.log)\n .then(() => conn.end());\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"\u7ed3\u679c\u8fd4\u56de",children:"\u7ed3\u679c\u8fd4\u56de"}),"\n",(0,t.jsxs)(n.p,{children:["\u5982\u679c\u4f60\u6709\u4e24\u4e2a\u76f8\u540c\u540d\u79f0\u7684\u5217\uff0c\u4f60\u53ef\u80fd\u5e0c\u671b\u4ee5\u6570\u7ec4\u800c\u4e0d\u662f\u5bf9\u8c61\u7684\u5f62\u5f0f\u83b7\u53d6\u7ed3\u679c\uff0c\u4e3a\u4e86\u9632\u6b62\u51b2\u7a81\uff0c\u8fd9\u662f\u4e0e ",(0,t.jsx)(n.a,{href:"https://github.com/mysqljs/mysql",children:"Node MySQL"})," \u5e93\u7684\u533a\u522b\u3002"]}),"\n",(0,t.jsxs)(n.p,{children:["\u4f8b\u5982\uff1a ",(0,t.jsx)(n.code,{children:"SELECT 1 AS `foo`, 2 AS `foo`"}),"."]}),"\n",(0,t.jsx)(n.p,{children:"\u60a8\u53ef\u4ee5\u5728\u8fde\u63a5\u7ea7\u522b\uff08\u9002\u7528\u4e8e\u6240\u6709\u67e5\u8be2\uff09\u6216\u67e5\u8be2\u7ea7\u522b\uff08\u4ec5\u9002\u7528\u4e8e\u8be5\u7279\u5b9a\u67e5\u8be2\uff09\u542f\u7528\u6b64\u8bbe\u7f6e\u3002"}),"\n",(0,t.jsx)(n.h4,{id:"\u8fde\u63a5\u7ea7\u522b",children:"\u8fde\u63a5\u7ea7\u522b"}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(l.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",metastring:"{5}",children:"const conn = await mysql.createConnection({\n host: 'localhost',\n database: 'test',\n user: 'root',\n rowsAsArray: true,\n});\n"})})}),(0,t.jsx)(l.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",metastring:"{5}",children:"const conn = mysql.createConnection({\n host: 'localhost',\n database: 'test',\n user: 'root',\n rowsAsArray: true,\n});\n"})})})]}),"\n",(0,t.jsx)(n.h4,{id:"\u67e5\u8be2\u7ea7\u522b",children:"\u67e5\u8be2\u7ea7\u522b"}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(l.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",metastring:"{4}",children:"try {\n const [results, fields] = await conn.query({\n sql: 'SELECT 1 AS `foo`, 2 AS `foo`',\n rowsAsArray: true,\n });\n\n console.log(results); // \u8fd4\u56de\u6570\u7ec4\u800c\u4e0d\u662f\u6570\u7ec4\u5bf9\u8c61\n console.log(fields); // \u65e0\u53d8\u5316\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(l.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",metastring:"{4}",children:"conn.query(\n {\n sql: 'SELECT 1 AS `foo`, 2 AS `foo`',\n rowsAsArray: true,\n },\n function (err, results, fields) {\n console.log(results); // in this query, results will be an array of arrays rather than an array of objects\n console.log(fields); // fields are unchanged\n }\n);\n"})})})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.admonition,{title:"Getting Help",type:"tip",children:(0,t.jsxs)(n.p,{children:["Need help? Ask your question on ",(0,t.jsx)(n.a,{href:"https://stackoverflow.com/questions/tagged/mysql2",children:"Stack Overflow"})," or ",(0,t.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/discussions",children:"GitHub"}),".\nIf you've encountered an issue, please ",(0,t.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/issues",children:"file it on GitHub"}),"."]})})]})}function p(e={}){const{wrapper:n}={...(0,o.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},5162:(e,n,s)=>{s.d(n,{Z:()=>l});s(7294);var t=s(512);const o={tabItem:"tabItem_Ymn6"};var r=s(5893);function l(e){let{children:n,hidden:s,className:l}=e;return(0,r.jsx)("div",{role:"tabpanel",className:(0,t.Z)(o.tabItem,l),hidden:s,children:n})}},4866:(e,n,s)=>{s.d(n,{Z:()=>q});var t=s(7294),o=s(512),r=s(2466),l=s(6550),a=s(469),i=s(1980),c=s(7392),d=s(12);function u(e){return t.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,t.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:s}=e;return(0,t.useMemo)((()=>{const e=n??function(e){return u(e).map((e=>{let{props:{value:n,label:s,attributes:t,default:o}}=e;return{value:n,label:s,attributes:t,default:o}}))}(s);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,s])}function m(e){let{value:n,tabValues:s}=e;return s.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:s}=e;const o=(0,l.k6)(),r=function(e){let{queryString:n=!1,groupId:s}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!s)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:n,groupId:s});return[(0,i._X)(r),(0,t.useCallback)((e=>{if(!r)return;const n=new URLSearchParams(o.location.search);n.set(r,e),o.replace({...o.location,search:n.toString()})}),[r,o])]}function j(e){const{defaultValue:n,queryString:s=!1,groupId:o}=e,r=h(e),[l,i]=(0,t.useState)((()=>function(e){let{defaultValue:n,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:s}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const t=s.find((e=>e.default))??s[0];if(!t)throw new Error("Unexpected error: 0 tabValues");return t.value}({defaultValue:n,tabValues:r}))),[c,u]=p({queryString:s,groupId:o}),[j,x]=function(e){let{groupId:n}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(n),[o,r]=(0,d.Nk)(s);return[o,(0,t.useCallback)((e=>{s&&r.set(e)}),[s,r])]}({groupId:o}),g=(()=>{const e=c??j;return m({value:e,tabValues:r})?e:null})();(0,a.Z)((()=>{g&&i(g)}),[g]);return{selectedValue:l,selectValue:(0,t.useCallback)((e=>{if(!m({value:e,tabValues:r}))throw new Error(`Can't select invalid tab value=${e}`);i(e),u(e),x(e)}),[u,x,r]),tabValues:r}}var x=s(2389);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=s(5893);function y(e){let{className:n,block:s,selectedValue:t,selectValue:l,tabValues:a}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,r.o5)(),d=e=>{const n=e.currentTarget,s=i.indexOf(n),o=a[s].value;o!==t&&(c(n),l(o))},u=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const s=i.indexOf(e.currentTarget)+1;n=i[s]??i[0];break}case"ArrowLeft":{const s=i.indexOf(e.currentTarget)-1;n=i[s]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,o.Z)("tabs",{"tabs--block":s},n),children:a.map((e=>{let{value:n,label:s,attributes:r}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:t===n?0:-1,"aria-selected":t===n,ref:e=>i.push(e),onKeyDown:u,onClick:d,...r,className:(0,o.Z)("tabs__item",g.tabItem,r?.className,{"tabs__item--active":t===n}),children:s??n},n)}))})}function b(e){let{lazy:n,children:s,selectedValue:o}=e;const r=(Array.isArray(s)?s:[s]).filter(Boolean);if(n){const e=r.find((e=>e.props.value===o));return e?(0,t.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:r.map(((e,n)=>(0,t.cloneElement)(e,{key:n,hidden:e.props.value!==o})))})}function v(e){const n=j(e);return(0,f.jsxs)("div",{className:(0,o.Z)("tabs-container",g.tabList),children:[(0,f.jsx)(y,{...e,...n}),(0,f.jsx)(b,{...e,...n})]})}function q(e){const n=(0,x.Z)();return(0,f.jsx)(v,{...e,children:u(e.children)},String(n))}},4442:(e,n,s)=>{s.d(n,{V:()=>r});var t=s(5742),o=s(5893);const r=e=>{let{title:n}=e;return(0,o.jsx)(t.Z,{children:(0,o.jsx)("title",{children:n})})}},1151:(e,n,s)=>{s.d(n,{Z:()=>a,a:()=>l});var t=s(7294);const o={},r=t.createContext(o);function l(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:l(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/9df47158.c7301fcf.js b/zh-CN/assets/js/9df47158.c7301fcf.js new file mode 100644 index 0000000000..2f1b38da14 --- /dev/null +++ b/zh-CN/assets/js/9df47158.c7301fcf.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9010],{9964:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>u,contentTitle:()=>c,default:()=>p,frontMatter:()=>i,metadata:()=>d,toc:()=>h});var t=s(5893),o=s(1151),r=s(4866),l=s(5162),a=s(4442);const i={slug:"/",position:1,title:"Quickstart",description:"\u9002\u7528\u4e8eNode.js\u7684MySQL\u5ba2\u6237\u7aef\uff0c\u4e13\u6ce8\u4e8e\u6027\u80fd\u4f18\u5316"},c="MySQL2",d={id:"index",title:"Quickstart",description:"\u9002\u7528\u4e8eNode.js\u7684MySQL\u5ba2\u6237\u7aef\uff0c\u4e13\u6ce8\u4e8e\u6027\u80fd\u4f18\u5316",source:"@site/i18n/zh-CN/docusaurus-plugin-content-docs/current/index.mdx",sourceDirName:".",slug:"/",permalink:"/node-mysql2/zh-CN/docs/",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/index.mdx",tags:[],version:"current",frontMatter:{slug:"/",position:1,title:"Quickstart",description:"\u9002\u7528\u4e8eNode.js\u7684MySQL\u5ba2\u6237\u7aef\uff0c\u4e13\u6ce8\u4e8e\u6027\u80fd\u4f18\u5316"},sidebar:"docs",next:{title:"MySQL2\u7684\u5386\u53f2\u4ee5\u53ca\u9009\u62e9\u539f\u56e0",permalink:"/node-mysql2/zh-CN/docs/history-and-why-mysq2"}},u={},h=[{value:"\u5b89\u88c5",id:"\u5b89\u88c5",level:2},{value:"\u67e5\u8be2\u6570\u636e",id:"\u67e5\u8be2\u6570\u636e",level:3},{value:"SQL\u9884\u5904\u7406\u7684\u4f7f\u7528",id:"sql\u9884\u5904\u7406\u7684\u4f7f\u7528",level:3},{value:"\u8fde\u63a5\u6c60\u7684\u4f7f\u7528",id:"using-connection-pools",level:3},{value:"Promise\u5c01\u88c5",id:"promise\u5c01\u88c5",level:3},{value:"\u7ed3\u679c\u8fd4\u56de",id:"\u7ed3\u679c\u8fd4\u56de",level:3},{value:"\u8fde\u63a5\u7ea7\u522b",id:"\u8fde\u63a5\u7ea7\u522b",level:4},{value:"\u67e5\u8be2\u7ea7\u522b",id:"\u67e5\u8be2\u7ea7\u522b",level:4}];function m(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",hr:"hr",img:"img",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,o.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.V,{title:"MySQL2 | Quickstart"}),"\n",(0,t.jsx)(n.h1,{id:"mysql2",children:"MySQL2"}),"\n","\n",(0,t.jsx)(n.p,{children:"\u9002\u7528\u4e8eNode.js\u7684MySQL\u5ba2\u6237\u7aef\uff0c\u4e13\u6ce8\u4e8e\u6027\u80fd\u4f18\u5316\u3002\u652f\u6301SQL\u9884\u5904\u7406\u3001\u975eUTF-8\u7f16\u7801\u652f\u6301\u3001\u4e8c\u8fdb\u5236\u6587\u4ef6\u7f16\u7801\u652f\u6301\u3001\u538b\u7f29\u548cSSL\u7b49\u7b49 \u67e5\u770b\u66f4\u591a\u3002"}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://npmjs.org/package/mysql2",children:(0,t.jsx)(n.img,{src:"https://img.shields.io/npm/v/mysql2.svg",alt:"NPM Version"})}),"\n",(0,t.jsx)(n.a,{href:"https://npmjs.org/package/mysql2",children:(0,t.jsx)(n.img,{src:"https://img.shields.io/npm/dm/mysql2.svg",alt:"NPM Downloads"})}),"\n",(0,t.jsx)(n.a,{href:"https://nodejs.org/download/",children:(0,t.jsx)(n.img,{src:"https://img.shields.io/node/v/mysql2.svg",alt:"Node.js Version"})}),"\n",(0,t.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/blob/master/License",children:(0,t.jsx)(n.img,{src:"https://img.shields.io/npm/l/mysql2.svg?maxAge=2592000",alt:"License"})})]}),"\n",(0,t.jsx)(n.h2,{id:"\u5b89\u88c5",children:"\u5b89\u88c5"}),"\n",(0,t.jsx)(n.p,{children:"MySQL2 \u53ef\u4ee5\u8de8\u5e73\u53f0\u4f7f\u7528\uff0c\u6beb\u65e0\u7591\u95ee\u53ef\u4ee5\u5b89\u88c5\u5728 Linux\u3001Mac OS \u6216 Windows \u4e0a\u3002"}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(l.Z,{value:"JavaScript",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm install --save mysql2\n"})})}),(0,t.jsxs)(l.Z,{value:"TypeScript",children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm install --save mysql2\nnpm install --save-dev @types/node\n"})}),(0,t.jsxs)(n.p,{children:["For TypeScript documentation and examples, see ",(0,t.jsx)(n.a,{href:"/docs/documentation/typescript-examples",children:"here"}),"."]})]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"\u67e5\u8be2\u6570\u636e",children:"\u67e5\u8be2\u6570\u636e"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["To explore more queries examples, please visit the example sections ",(0,t.jsx)(n.a,{href:"/docs/examples/queries/simple-queries",children:(0,t.jsx)(n.strong,{children:"Simple Queries"})})," and ",(0,t.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements",children:(0,t.jsx)(n.strong,{children:"Prepared Statements"})}),"."]}),"\n"]}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(l.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"// \u5bfc\u5165\u6a21\u5757\nimport mysql from 'mysql2/promise';\n\n// \u521b\u5efa\u4e00\u4e2a\u6570\u636e\u5e93\u8fde\u63a5\nconst connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// \u7b80\u5355\u67e5\u8be2\ntry {\n const [results, fields] = await connection.query(\n 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45'\n );\n\n console.log(results); // \u7ed3\u679c\u96c6\n console.log(fields); // \u989d\u5916\u7684\u5143\u6570\u636e\uff08\u5982\u679c\u6709\u7684\u8bdd\uff09\n} catch (err) {\n console.log(err);\n}\n\n// \u4f7f\u7528\u5360\u4f4d\u7b26\ntry {\n const [results] = await connection.query(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Page', 45]\n );\n\n console.log(results);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(l.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"// \u5bfc\u5165\u6a21\u5757\nconst mysql = require('mysql2');\n\n// \u521b\u5efa\u4e00\u4e2a\u6570\u636e\u5e93\u8fde\u63a5\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// \u7b80\u5355\u67e5\u8be2\nconnection.query(\n 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45',\n function (err, results, fields) {\n console.log(results); // \u7ed3\u679c\u96c6\n console.log(fields); // \u989d\u5916\u7684\u5143\u6570\u636e\uff08\u5982\u679c\u6709\u7684\u8bdd\uff09\n }\n);\n\n// \u4f7f\u7528\u5360\u4f4d\u7b26\nconnection.query(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Page', 45],\n function (err, results) {\n console.log(results);\n }\n);\n"})})})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"sql\u9884\u5904\u7406\u7684\u4f7f\u7528",children:"SQL\u9884\u5904\u7406\u7684\u4f7f\u7528"}),"\n",(0,t.jsx)(n.p,{children:"\u4f7f\u7528 MySQL2\uff0c\u60a8\u8fd8\u53ef\u4ee5\u63d0\u524d\u51c6\u5907\u597dSQL\u9884\u5904\u7406\u8bed\u53e5\u3002 \u4f7f\u7528\u51c6\u5907\u597d\u7684SQL\u9884\u5904\u7406\u8bed\u53e5\uff0cMySQL \u4e0d\u5fc5\u6bcf\u6b21\u90fd\u4e3a\u76f8\u540c\u7684\u67e5\u8be2\u505a\u51c6\u5907\uff0c\u8fd9\u4f1a\u5e26\u6765\u66f4\u597d\u7684\u6027\u80fd\u3002 \u5982\u679c\u60a8\u4e0d\u77e5\u9053\u4e3a\u4ec0\u4e48\u5b83\u4eec\u5f88\u91cd\u8981\uff0c\u8bf7\u67e5\u770b\u8fd9\u4e9b\u8ba8\u8bba\uff1a"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"https://stackoverflow.com/questions/8263371/how-can-prepared-statements-protect-from-sql-injection-attacks",children:"\u5982\u4f55\u9632\u6b62\u9884\u5904\u7406\u8bed\u53e5SQL\u6ce8\u5165\u653b\u51fb"})}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["MySQL2 \u63d0\u4f9b\u4e86 ",(0,t.jsx)(n.code,{children:"execute"})," \u8f85\u52a9\u51fd\u6570\uff0c\u5b83\u5c06\u51c6\u5907\u548c\u67e5\u8be2\u8bed\u53e5\u3002 \u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528 ",(0,t.jsx)(n.code,{children:"prepare"})," / ",(0,t.jsx)(n.code,{children:"unprepare"})," \u65b9\u6cd5\u624b\u52a8\u51c6\u5907/\u53d6\u6d88\u51c6\u5907\u3002"]}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["To explore more Prepared Statements and Placeholders examples, please visit the example section ",(0,t.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements",children:(0,t.jsx)(n.strong,{children:"Prepared Statements"})}),"."]}),"\n"]}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(l.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // \u521b\u5efa\u4e00\u4e2a\u6570\u636e\u5e93\u8fde\u63a5\n const connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n });\n\n // execute \u5c06\u5728\u5185\u90e8\u8c03\u7528 prepare \u548c query\n const [results, fields] = await connection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Rick C-137', 53]\n );\n\n console.log(results); // \u7ed3\u679c\u96c6\n console.log(fields); // \u989d\u5916\u7684\u5143\u6570\u636e\uff08\u5982\u679c\u6709\u7684\u8bdd\uff09\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(l.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\n// \u521b\u5efa\u4e00\u4e2a\u6570\u636e\u5e93\u8fde\u63a5\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// execute \u5c06\u5728\u5185\u90e8\u8c03\u7528 prepare \u548c query\nconnection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Rick C-137', 53],\n function (err, results, fields) {\n console.log(results); // \u7ed3\u679c\u96c6\n console.log(fields); // \u989d\u5916\u7684\u5143\u6570\u636e\uff08\u5982\u679c\u6709\u7684\u8bdd\uff09\n }\n);\n"})})})]}),"\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsx)(n.p,{children:"\u5982\u679c\u518d\u6b21\u6267\u884c\u76f8\u540c\u7684\u8bed\u53e5\uff0c\u4ed6\u5c06\u4ece\u7f13\u5b58\u4e2d\u9009\u53d6\uff0c\u8fd9\u80fd\u6709\u6548\u7684\u8282\u7701\u51c6\u5907\u67e5\u8be2\u65f6\u95f4\u83b7\u5f97\u66f4\u597d\u7684\u6027\u80fd\u3002"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"using-connection-pools",children:"\u8fde\u63a5\u6c60\u7684\u4f7f\u7528"}),"\n",(0,t.jsx)(n.p,{children:"\u8fde\u63a5\u6c60\u901a\u8fc7\u91cd\u7528\u4ee5\u524d\u7684\u8fde\u63a5\u6765\u5e2e\u52a9\u51cf\u5c11\u8fde\u63a5\u5230 MySQL \u670d\u52a1\u5668\u6240\u82b1\u8d39\u7684\u65f6\u95f4\uff0c\u5f53\u4f60\u5b8c\u6210\u5b83\u4eec\u65f6\u8ba9\u5b83\u4eec\u4fdd\u6301\u6253\u5f00\u800c\u4e0d\u662f\u5173\u95ed\u3002"}),"\n",(0,t.jsx)(n.p,{children:"\u8fd9\u6539\u5584\u4e86\u67e5\u8be2\u7684\u5ef6\u8fdf\uff0c\u56e0\u4e3a\u60a8\u907f\u514d\u4e86\u5efa\u7acb\u65b0\u8fde\u63a5\u6240\u5e26\u6765\u7684\u6240\u6709\u5f00\u9500\u3002"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["To explore more Connection Pools examples, please visit the example section ",(0,t.jsx)(n.a,{href:"/docs/examples/connections/create-pool",children:(0,t.jsx)(n.strong,{children:"createPool"})}),"."]}),"\n"]}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(l.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\n// \u521b\u5efa\u8fde\u63a5\u6c60\uff0c\u8bbe\u7f6e\u8fde\u63a5\u6c60\u7684\u53c2\u6570\nconst pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n waitForConnections: true,\n connectionLimit: 10,\n maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit`\n idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000\n queueLimit: 0,\n enableKeepAlive: true,\n keepAliveInitialDelay: 0,\n});\n"})})}),(0,t.jsx)(l.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\n// \u521b\u5efa\u8fde\u63a5\u6c60\uff0c\u8bbe\u7f6e\u8fde\u63a5\u6c60\u7684\u53c2\u6570\nconst pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n waitForConnections: true,\n connectionLimit: 10,\n maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit`\n idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000\n queueLimit: 0,\n enableKeepAlive: true,\n keepAliveInitialDelay: 0,\n});\n"})})})]}),"\n",(0,t.jsx)(n.admonition,{type:"note",children:(0,t.jsx)(n.p,{children:"\u8be5\u6c60\u4e0d\u4f1a\u9884\u5148\u521b\u5efa\u6240\u6709\u8fde\u63a5\uff0c\u800c\u662f\u6839\u636e\u9700\u8981\u521b\u5efa\u5b83\u4eec\uff0c\u76f4\u5230\u8fbe\u5230\u8fde\u63a5\u9650\u5236\u3002"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsxs)(n.p,{children:["\u60a8\u53ef\u4ee5\u50cf\u76f4\u63a5\u8fde\u63a5\u4e00\u6837\u4f7f\u7528\u6c60\uff08\u4f7f\u7528 ",(0,t.jsx)(n.code,{children:"pool.query()"})," \u548c ",(0,t.jsx)(n.code,{children:"pool.execute()"}),"\uff09\uff1a"]}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(l.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"try {\n // For pool initialization, see above\n const [rows, fields] = await pool.query('SELECT `field` FROM `table`');\n // Connection is automatically released when query resolves\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(l.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"// For pool initialization, see above\npool.query('SELECT `field` FROM `table`', function (err, rows, fields) {\n // Connection is automatically released when query resolves\n});\n"})})})]}),"\n",(0,t.jsx)(n.p,{children:"\u6216\u8005\uff0c\u4e5f\u53ef\u4ee5\u624b\u52a8\u4ece\u6c60\u4e2d\u83b7\u53d6\u8fde\u63a5\u5e76\u7a0d\u540e\u8fd4\u56de\uff1a"}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(l.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"// For pool initialization, see above\nconst conn = await pool.getConnection();\n\n// Do something with the connection\nawait conn.query(/* ... */);\n\n// Don't forget to release the connection when finished!\npool.releaseConnection(conn);\n"})})}),(0,t.jsx)(l.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"// For pool initialization, see above\npool.getConnection(function (err, conn) {\n // Do something with the connection\n conn.query(/* ... */);\n\n // Don't forget to release the connection when finished!\n pool.releaseConnection(conn);\n});\n"})})})]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["Additionally, directly release the connection using the ",(0,t.jsx)(n.code,{children:"connection"})," object:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"conn.release();\n"})}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"promise\u5c01\u88c5",children:"Promise\u5c01\u88c5"}),"\n",(0,t.jsx)(n.p,{children:"MySQL2 \u4e5f\u652f\u6301 Promise API\u3002 \u8fd9\u4e0e ES7 \u5f02\u6b65\u7b49\u5f85\u975e\u5e38\u6709\u6548\u3002"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nasync function main() {\n // create the connection\n const connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n });\n\n // query database\n const [rows, fields] = await connection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Morty', 14]\n );\n}\n"})}),"\n",(0,t.jsxs)(n.p,{children:["MySQL2 \u4f7f\u7528\u8303\u56f4\u5185\u53ef\u7528\u7684\u9ed8\u8ba4 ",(0,t.jsx)(n.code,{children:"Promise"})," \u5bf9\u8c61\u3002 \u4f46\u662f\u4f60\u53ef\u4ee5\u9009\u62e9\u4f60\u60f3\u4f7f\u7528\u7684 ",(0,t.jsx)(n.code,{children:"Promise"})," \u5b9e\u73b0\u3002"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"// \u5bfc\u5165\u6a21\u5757\nimport mysql from 'mysql2/promise';\n\n// get the promise implementation, we will use bluebird\nimport bluebird from 'bluebird';\n\n// create the connection, specify bluebird as Promise\nconst connection = await mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n Promise: bluebird,\n});\n\n// query database\nconst [rows, fields] = await connection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Morty', 14]\n);\n"})}),"\n",(0,t.jsxs)(n.p,{children:["MySQL2 \u8fd8\u5728 Pools \u4e0a\u516c\u5f00\u4e86\u4e00\u4e2a ",(0,t.jsx)(n.code,{children:".promise()"}),"\u51fd\u6570\uff0c\u56e0\u6b64\u60a8\u53ef\u4ee5\u4ece\u540c\u4e00\u4e2a\u6c60\u521b\u5efa\u4e00\u4e2a promise/non-promise \u8fde\u63a5\u3002"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2';\n\nasync function main() {\n // create the pool\n const pool = mysql.createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n });\n\n // now get a Promise wrapped instance of that pool\n const promisePool = pool.promise();\n\n // query database using promises\n const [rows, fields] = await promisePool.query('SELECT 1');\n}\n"})}),"\n",(0,t.jsxs)(n.p,{children:["MySQL2 \u5728 Connections \u4e0a\u516c\u5f00\u4e86\u4e00\u4e2a ",(0,t.jsx)(n.code,{children:".promise()"}),"\u51fd\u6570\uff0c\u4ee5\u201c\u5347\u7ea7\u201d\u73b0\u6709\u7684 non-promise \u8fde\u63a5\u4ee5\u4f7f\u7528 Promise\u3002"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",metastring:"{11}",children:"const mysql = require('mysql2');\n\n// create the connection\nconst conn = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\nconn\n .promise()\n .query('SELECT 1')\n .then(([rows, fields]) => {\n console.log(rows);\n })\n .catch(console.log)\n .then(() => conn.end());\n"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"\u7ed3\u679c\u8fd4\u56de",children:"\u7ed3\u679c\u8fd4\u56de"}),"\n",(0,t.jsxs)(n.p,{children:["\u5982\u679c\u4f60\u6709\u4e24\u4e2a\u76f8\u540c\u540d\u79f0\u7684\u5217\uff0c\u4f60\u53ef\u80fd\u5e0c\u671b\u4ee5\u6570\u7ec4\u800c\u4e0d\u662f\u5bf9\u8c61\u7684\u5f62\u5f0f\u83b7\u53d6\u7ed3\u679c\uff0c\u4e3a\u4e86\u9632\u6b62\u51b2\u7a81\uff0c\u8fd9\u662f\u4e0e ",(0,t.jsx)(n.a,{href:"https://github.com/mysqljs/mysql",children:"Node MySQL"})," \u5e93\u7684\u533a\u522b\u3002"]}),"\n",(0,t.jsxs)(n.p,{children:["\u4f8b\u5982\uff1a ",(0,t.jsx)(n.code,{children:"SELECT 1 AS `foo`, 2 AS `foo`"}),"."]}),"\n",(0,t.jsx)(n.p,{children:"\u60a8\u53ef\u4ee5\u5728\u8fde\u63a5\u7ea7\u522b\uff08\u9002\u7528\u4e8e\u6240\u6709\u67e5\u8be2\uff09\u6216\u67e5\u8be2\u7ea7\u522b\uff08\u4ec5\u9002\u7528\u4e8e\u8be5\u7279\u5b9a\u67e5\u8be2\uff09\u542f\u7528\u6b64\u8bbe\u7f6e\u3002"}),"\n",(0,t.jsx)(n.h4,{id:"\u8fde\u63a5\u7ea7\u522b",children:"\u8fde\u63a5\u7ea7\u522b"}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(l.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",metastring:"{5}",children:"const conn = await mysql.createConnection({\n host: 'localhost',\n database: 'test',\n user: 'root',\n rowsAsArray: true,\n});\n"})})}),(0,t.jsx)(l.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",metastring:"{5}",children:"const conn = mysql.createConnection({\n host: 'localhost',\n database: 'test',\n user: 'root',\n rowsAsArray: true,\n});\n"})})})]}),"\n",(0,t.jsx)(n.h4,{id:"\u67e5\u8be2\u7ea7\u522b",children:"\u67e5\u8be2\u7ea7\u522b"}),"\n",(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(l.Z,{value:"Promise",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",metastring:"{4}",children:"try {\n const [results, fields] = await conn.query({\n sql: 'SELECT 1 AS `foo`, 2 AS `foo`',\n rowsAsArray: true,\n });\n\n console.log(results); // \u8fd4\u56de\u6570\u7ec4\u800c\u4e0d\u662f\u6570\u7ec4\u5bf9\u8c61\n console.log(fields); // \u65e0\u53d8\u5316\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(l.Z,{value:"Callback",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",metastring:"{4}",children:"conn.query(\n {\n sql: 'SELECT 1 AS `foo`, 2 AS `foo`',\n rowsAsArray: true,\n },\n function (err, results, fields) {\n console.log(results); // in this query, results will be an array of arrays rather than an array of objects\n console.log(fields); // fields are unchanged\n }\n);\n"})})})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.admonition,{title:"Getting Help",type:"tip",children:(0,t.jsxs)(n.p,{children:["Need help? Ask your question on ",(0,t.jsx)(n.a,{href:"https://stackoverflow.com/questions/tagged/mysql2",children:"Stack Overflow"})," or ",(0,t.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/discussions",children:"GitHub"}),".\nIf you've encountered an issue, please ",(0,t.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/issues",children:"file it on GitHub"}),"."]})})]})}function p(e={}){const{wrapper:n}={...(0,o.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},5162:(e,n,s)=>{s.d(n,{Z:()=>l});s(7294);var t=s(512);const o={tabItem:"tabItem_Ymn6"};var r=s(5893);function l(e){let{children:n,hidden:s,className:l}=e;return(0,r.jsx)("div",{role:"tabpanel",className:(0,t.Z)(o.tabItem,l),hidden:s,children:n})}},4866:(e,n,s)=>{s.d(n,{Z:()=>q});var t=s(7294),o=s(512),r=s(2466),l=s(6550),a=s(469),i=s(1980),c=s(7392),d=s(12);function u(e){return t.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,t.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:s}=e;return(0,t.useMemo)((()=>{const e=n??function(e){return u(e).map((e=>{let{props:{value:n,label:s,attributes:t,default:o}}=e;return{value:n,label:s,attributes:t,default:o}}))}(s);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,s])}function m(e){let{value:n,tabValues:s}=e;return s.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:s}=e;const o=(0,l.k6)(),r=function(e){let{queryString:n=!1,groupId:s}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!s)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:n,groupId:s});return[(0,i._X)(r),(0,t.useCallback)((e=>{if(!r)return;const n=new URLSearchParams(o.location.search);n.set(r,e),o.replace({...o.location,search:n.toString()})}),[r,o])]}function x(e){const{defaultValue:n,queryString:s=!1,groupId:o}=e,r=h(e),[l,i]=(0,t.useState)((()=>function(e){let{defaultValue:n,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:s}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const t=s.find((e=>e.default))??s[0];if(!t)throw new Error("Unexpected error: 0 tabValues");return t.value}({defaultValue:n,tabValues:r}))),[c,u]=p({queryString:s,groupId:o}),[x,j]=function(e){let{groupId:n}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(n),[o,r]=(0,d.Nk)(s);return[o,(0,t.useCallback)((e=>{s&&r.set(e)}),[s,r])]}({groupId:o}),g=(()=>{const e=c??x;return m({value:e,tabValues:r})?e:null})();(0,a.Z)((()=>{g&&i(g)}),[g]);return{selectedValue:l,selectValue:(0,t.useCallback)((e=>{if(!m({value:e,tabValues:r}))throw new Error(`Can't select invalid tab value=${e}`);i(e),u(e),j(e)}),[u,j,r]),tabValues:r}}var j=s(2389);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=s(5893);function y(e){let{className:n,block:s,selectedValue:t,selectValue:l,tabValues:a}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,r.o5)(),d=e=>{const n=e.currentTarget,s=i.indexOf(n),o=a[s].value;o!==t&&(c(n),l(o))},u=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const s=i.indexOf(e.currentTarget)+1;n=i[s]??i[0];break}case"ArrowLeft":{const s=i.indexOf(e.currentTarget)-1;n=i[s]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,o.Z)("tabs",{"tabs--block":s},n),children:a.map((e=>{let{value:n,label:s,attributes:r}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:t===n?0:-1,"aria-selected":t===n,ref:e=>i.push(e),onKeyDown:u,onClick:d,...r,className:(0,o.Z)("tabs__item",g.tabItem,r?.className,{"tabs__item--active":t===n}),children:s??n},n)}))})}function b(e){let{lazy:n,children:s,selectedValue:o}=e;const r=(Array.isArray(s)?s:[s]).filter(Boolean);if(n){const e=r.find((e=>e.props.value===o));return e?(0,t.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:r.map(((e,n)=>(0,t.cloneElement)(e,{key:n,hidden:e.props.value!==o})))})}function v(e){const n=x(e);return(0,f.jsxs)("div",{className:(0,o.Z)("tabs-container",g.tabList),children:[(0,f.jsx)(y,{...e,...n}),(0,f.jsx)(b,{...e,...n})]})}function q(e){const n=(0,j.Z)();return(0,f.jsx)(v,{...e,children:u(e.children)},String(n))}},4442:(e,n,s)=>{s.d(n,{V:()=>r});var t=s(5742),o=s(5893);const r=e=>{let{title:n}=e;return(0,o.jsx)(t.Z,{children:(0,o.jsx)("title",{children:n})})}},1151:(e,n,s)=>{s.d(n,{Z:()=>a,a:()=>l});var t=s(7294);const o={},r=t.createContext(o);function l(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:l(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/a0fa2d29.941e6a85.js b/zh-CN/assets/js/a0fa2d29.941e6a85.js deleted file mode 100644 index 8a14566ee9..0000000000 --- a/zh-CN/assets/js/a0fa2d29.941e6a85.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[465],{9797:e=>{e.exports=JSON.parse('{"title":"Queries","slug":"/category/queries","permalink":"/node-mysql2/zh-CN/docs/category/queries","navigation":{"previous":{"title":"Promise CO Await","permalink":"/node-mysql2/zh-CN/docs/examples/promise-co-await"},"next":{"title":"SELECT","permalink":"/node-mysql2/zh-CN/docs/examples/queries/select"}}}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/a55c4658.44cd17e3.js b/zh-CN/assets/js/a55c4658.44cd17e3.js new file mode 100644 index 0000000000..77b4f2ebba --- /dev/null +++ b/zh-CN/assets/js/a55c4658.44cd17e3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[452],{9547:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var s=r(5893),t=r(1151),l=r(4866),a=r(5162),o=r(6393),i=r(4379);const c={sidebar_position:0,tags:["query"]},u="INSERT",d={id:"examples/queries/simple-queries/insert",title:"INSERT",description:"The examples below also work for the execute method.",source:"@site/docs/examples/queries/simple-queries/insert.mdx",sourceDirName:"examples/queries/simple-queries",slug:"/examples/queries/simple-queries/insert",permalink:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/insert",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/simple-queries/insert.mdx",tags:[{label:"query",permalink:"/node-mysql2/zh-CN/docs/tags/query"}],version:"current",sidebarPosition:0,frontMatter:{sidebar_position:0,tags:["query"]},sidebar:"examples",previous:{title:"Simple Queries",permalink:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/"},next:{title:"SELECT",permalink:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/select"}},h={},p=[{value:"query(sql)",id:"querysql",level:2},{value:"query(options)",id:"queryoptions",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"QueryOptions",id:"queryoptions-1",level:3}];function m(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"insert",children:"INSERT"}),"\n",(0,s.jsxs)(n.p,{children:["The examples below also work for the ",(0,s.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements/insert",children:(0,s.jsx)(n.code,{children:"execute"})})," method."]}),"\n",(0,s.jsx)(n.h2,{id:"querysql",children:"query(sql)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"query(sql: string)"})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:'try {\n const sql =\n \'INSERT INTO `users`(`name`, `age`) VALUES ("Josh", 19), ("Page", 45)\';\n\n // highlight-next-line\n const [result, fields] = await connection.query(sql);\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n'})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:'const sql =\n \'INSERT INTO `users`(`name`, `age`) VALUES ("Josh", 19), ("Page", 45)\';\n\nconnection.query(sql, (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n});\n'})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:".query()"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"queryoptions",children:"query(options)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["query(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:'try {\n const sql =\n \'INSERT INTO `users`(`name`, `age`) VALUES ("Josh", 19), ("Page", 45)\';\n\n // highlight-start\n const [result, fields] = await connection.query({\n sql,\n // ... other options\n });\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n'})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:'const sql =\n \'INSERT INTO `users`(`name`, `age`) VALUES ("Josh", 19), ("Page", 45)\';\n\nconnection.query(\n {\n sql,\n // ... other options\n },\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n'})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:".query()"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,s.jsx)(n.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,s.jsx)(o.Z,{title:"ResultSetHeader Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts",extractMethod:"ResultSetHeader",methodType:"interface"})}),"\n",(0,s.jsx)(n.h3,{id:"queryoptions-1",children:"QueryOptions"}),"\n",(0,s.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function x(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},5162:(e,n,r)=>{r.d(n,{Z:()=>a});r(7294);var s=r(512);const t={tabItem:"tabItem_Ymn6"};var l=r(5893);function a(e){let{children:n,hidden:r,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,s.Z)(t.tabItem,a),hidden:r,children:n})}},4866:(e,n,r)=>{r.d(n,{Z:()=>v});var s=r(7294),t=r(512),l=r(2466),a=r(6550),o=r(469),i=r(1980),c=r(7392),u=r(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:r}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:r,attributes:s,default:t}}=e;return{value:n,label:r,attributes:s,default:t}}))}(r);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,r])}function p(e){let{value:n,tabValues:r}=e;return r.some((e=>e.value===n))}function m(e){let{queryString:n=!1,groupId:r}=e;const t=(0,a.k6)(),l=function(e){let{queryString:n=!1,groupId:r}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!r)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return r??null}({queryString:n,groupId:r});return[(0,i._X)(l),(0,s.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(t.location.search);n.set(l,e),t.replace({...t.location,search:n.toString()})}),[l,t])]}function x(e){const{defaultValue:n,queryString:r=!1,groupId:t}=e,l=h(e),[a,i]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:r}=e;if(0===r.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:r}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${r.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=r.find((e=>e.default))??r[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:l}))),[c,d]=m({queryString:r,groupId:t}),[x,f]=function(e){let{groupId:n}=e;const r=function(e){return e?`docusaurus.tab.${e}`:null}(n),[t,l]=(0,u.Nk)(r);return[t,(0,s.useCallback)((e=>{r&&l.set(e)}),[r,l])]}({groupId:t}),b=(()=>{const e=c??x;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{b&&i(b)}),[b]);return{selectedValue:a,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),f(e)}),[d,f,l]),tabValues:l}}var f=r(2389);const b={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=r(5893);function j(e){let{className:n,block:r,selectedValue:s,selectValue:a,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,l.o5)(),u=e=>{const n=e.currentTarget,r=i.indexOf(n),t=o[r].value;t!==s&&(c(n),a(t))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const r=i.indexOf(e.currentTarget)+1;n=i[r]??i[0];break}case"ArrowLeft":{const r=i.indexOf(e.currentTarget)-1;n=i[r]??i[i.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,t.Z)("tabs",{"tabs--block":r},n),children:o.map((e=>{let{value:n,label:r,attributes:l}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>i.push(e),onKeyDown:d,onClick:u,...l,className:(0,t.Z)("tabs__item",b.tabItem,l?.className,{"tabs__item--active":s===n}),children:r??n},n)}))})}function q(e){let{lazy:n,children:r,selectedValue:t}=e;const l=(Array.isArray(r)?r:[r]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===t));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function y(e){const n=x(e);return(0,g.jsxs)("div",{className:(0,t.Z)("tabs-container",b.tabList),children:[(0,g.jsx)(j,{...e,...n}),(0,g.jsx)(q,{...e,...n})]})}function v(e){const n=(0,f.Z)();return(0,g.jsx)(y,{...e,children:d(e.children)},String(n))}},4379:(e,n,r)=>{r.d(n,{I:()=>i});var s=r(7294),t=r(2263),l=r(9286),a=r(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:r,extractMethod:i,methodType:c}=e;const[u,d]=(0,s.useState)(""),[h,p]=(0,s.useState)(!0),[m,x]=(0,s.useState)(!0),{siteConfig:f}=(0,t.Z)(),b=f.baseUrl.replace(/\/$/,""),g=/^\//.test(n)?`${b}${n}`:n;return(0,s.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(g,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&c?((e,n,r)=>{const s=e.split("\n"),t=`${r} ${n}`;let l=!1,a=0,o="";for(const i of s)if(i.includes(t)&&(l=!0),l&&(i.includes("{")&&a++,o+=i+"\n",i.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,i,c):e;d(n||e),p(!1),x(!1)})).catch((()=>{x(!0),p(!1)})),()=>{e.abort()}}),[g,i,c]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:m?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:g}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${r}`,children:u})})})}},6393:(e,n,r)=>{r.d(n,{Z:()=>l});var s=r(4673),t=r(5893);const l=e=>{let{children:n,open:r,title:l}=e;return(0,t.jsx)(s.Z,{open:r,className:"faq",summary:(0,t.jsx)("summary",{children:(0,t.jsx)("strong",{children:l})}),children:(0,t.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/a89f5446.6a21ae56.js b/zh-CN/assets/js/a89f5446.6a21ae56.js new file mode 100644 index 0000000000..4292ddbe6f --- /dev/null +++ b/zh-CN/assets/js/a89f5446.6a21ae56.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6641],{1158:e=>{e.exports=JSON.parse('{"label":"createPoolCluster","permalink":"/node-mysql2/zh-CN/docs/tags/create-pool-cluster","allTagsPath":"/node-mysql2/zh-CN/docs/tags","count":1,"items":[{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/a94703ab.10844fc8.js b/zh-CN/assets/js/a94703ab.265346fe.js similarity index 99% rename from zh-CN/assets/js/a94703ab.10844fc8.js rename to zh-CN/assets/js/a94703ab.265346fe.js index 8c71625a78..1b13e4354a 100644 --- a/zh-CN/assets/js/a94703ab.10844fc8.js +++ b/zh-CN/assets/js/a94703ab.265346fe.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4368],{2674:(e,t,n)=>{n.r(t),n.d(t,{default:()=>be});var a=n(7294),o=n(512),i=n(1944),s=n(5281),l=n(3438),r=n(1116),c=n(5999),d=n(2466),u=n(5936);const m={backToTopButton:"backToTopButton_sjWU",backToTopButtonShow:"backToTopButtonShow_xfvO"};var b=n(5893);function h(){const{shown:e,scrollToTop:t}=function(e){let{threshold:t}=e;const[n,o]=(0,a.useState)(!1),i=(0,a.useRef)(!1),{startScroll:s,cancelScroll:l}=(0,d.Ct)();return(0,d.RF)(((e,n)=>{let{scrollY:a}=e;const s=n?.scrollY;s&&(i.current?i.current=!1:a>=s?(l(),o(!1)):a<t?o(!1):a+window.innerHeight<document.documentElement.scrollHeight&&o(!0))})),(0,u.S)((e=>{e.location.hash&&(i.current=!0,o(!1))})),{shown:n,scrollToTop:()=>s(0)}}({threshold:300});return(0,b.jsx)("button",{"aria-label":(0,c.I)({id:"theme.BackToTopButton.buttonAriaLabel",message:"Scroll back to top",description:"The ARIA label for the back to top button"}),className:(0,o.Z)("clean-btn",s.k.common.backToTopButton,m.backToTopButton,e&&m.backToTopButtonShow),type:"button",onClick:t})}var p=n(1442),x=n(6550),f=n(7524),j=n(6668),k=n(1327);function _(e){return(0,b.jsx)("svg",{width:"20",height:"20","aria-hidden":"true",...e,children:(0,b.jsxs)("g",{fill:"#7a7a7a",children:[(0,b.jsx)("path",{d:"M9.992 10.023c0 .2-.062.399-.172.547l-4.996 7.492a.982.982 0 01-.828.454H1c-.55 0-1-.453-1-1 0-.2.059-.403.168-.551l4.629-6.942L.168 3.078A.939.939 0 010 2.528c0-.548.45-.997 1-.997h2.996c.352 0 .649.18.828.45L9.82 9.472c.11.148.172.347.172.55zm0 0"}),(0,b.jsx)("path",{d:"M19.98 10.023c0 .2-.058.399-.168.547l-4.996 7.492a.987.987 0 01-.828.454h-3c-.547 0-.996-.453-.996-1 0-.2.059-.403.168-.551l4.625-6.942-4.625-6.945a.939.939 0 01-.168-.55 1 1 0 01.996-.997h3c.348 0 .649.18.828.45l4.996 7.492c.11.148.168.347.168.55zm0 0"})]})})}const v={collapseSidebarButton:"collapseSidebarButton_PEFL",collapseSidebarButtonIcon:"collapseSidebarButtonIcon_kv0_"};function g(e){let{onClick:t}=e;return(0,b.jsx)("button",{type:"button",title:(0,c.I)({id:"theme.docs.sidebar.collapseButtonTitle",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),"aria-label":(0,c.I)({id:"theme.docs.sidebar.collapseButtonAriaLabel",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),className:(0,o.Z)("button button--secondary button--outline",v.collapseSidebarButton),onClick:t,children:(0,b.jsx)(_,{className:v.collapseSidebarButtonIcon})})}var C=n(9689),S=n(902);const I=Symbol("EmptyContext"),N=a.createContext(I);function T(e){let{children:t}=e;const[n,o]=(0,a.useState)(null),i=(0,a.useMemo)((()=>({expandedItem:n,setExpandedItem:o})),[n]);return(0,b.jsx)(N.Provider,{value:i,children:t})}var B=n(6043),Z=n(8596),A=n(9960),L=n(2389);function y(e){let{collapsed:t,categoryLabel:n,onClick:a}=e;return(0,b.jsx)("button",{"aria-label":t?(0,c.I)({id:"theme.DocSidebarItem.expandCategoryAriaLabel",message:"Expand sidebar category '{label}'",description:"The ARIA label to expand the sidebar category"},{label:n}):(0,c.I)({id:"theme.DocSidebarItem.collapseCategoryAriaLabel",message:"Collapse sidebar category '{label}'",description:"The ARIA label to collapse the sidebar category"},{label:n}),type:"button",className:"clean-btn menu__caret",onClick:a})}function w(e){let{item:t,onItemClick:n,activePath:i,level:r,index:c,...d}=e;const{items:u,label:m,collapsible:h,className:p,href:x}=t,{docs:{sidebar:{autoCollapseCategories:f}}}=(0,j.L)(),k=function(e){const t=(0,L.Z)();return(0,a.useMemo)((()=>e.href&&!e.linkUnlisted?e.href:!t&&e.collapsible?(0,l.LM)(e):void 0),[e,t])}(t),_=(0,l._F)(t,i),v=(0,Z.Mg)(x,i),{collapsed:g,setCollapsed:C}=(0,B.u)({initialState:()=>!!h&&(!_&&t.collapsed)}),{expandedItem:T,setExpandedItem:w}=function(){const e=(0,a.useContext)(N);if(e===I)throw new S.i6("DocSidebarItemsExpandedStateProvider");return e}(),E=function(e){void 0===e&&(e=!g),w(e?null:c),C(e)};return function(e){let{isActive:t,collapsed:n,updateCollapsed:o}=e;const i=(0,S.D9)(t);(0,a.useEffect)((()=>{t&&!i&&n&&o(!1)}),[t,i,n,o])}({isActive:_,collapsed:g,updateCollapsed:E}),(0,a.useEffect)((()=>{h&&null!=T&&T!==c&&f&&C(!0)}),[h,T,c,C,f]),(0,b.jsxs)("li",{className:(0,o.Z)(s.k.docs.docSidebarItemCategory,s.k.docs.docSidebarItemCategoryLevel(r),"menu__list-item",{"menu__list-item--collapsed":g},p),children:[(0,b.jsxs)("div",{className:(0,o.Z)("menu__list-item-collapsible",{"menu__list-item-collapsible--active":v}),children:[(0,b.jsx)(A.Z,{className:(0,o.Z)("menu__link",{"menu__link--sublist":h,"menu__link--sublist-caret":!x&&h,"menu__link--active":_}),onClick:h?e=>{n?.(t),x?E(!1):(e.preventDefault(),E())}:()=>{n?.(t)},"aria-current":v?"page":void 0,"aria-expanded":h?!g:void 0,href:h?k??"#":k,...d,children:m}),x&&h&&(0,b.jsx)(y,{collapsed:g,categoryLabel:m,onClick:e=>{e.preventDefault(),E()}})]}),(0,b.jsx)(B.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:g,children:(0,b.jsx)(V,{items:u,tabIndex:g?-1:0,onItemClick:n,activePath:i,level:r+1})})]})}var E=n(3919),H=n(9471);const M={menuExternalLink:"menuExternalLink_NmtK"};function R(e){let{item:t,onItemClick:n,activePath:a,level:i,index:r,...c}=e;const{href:d,label:u,className:m,autoAddBaseUrl:h}=t,p=(0,l._F)(t,a),x=(0,E.Z)(d);return(0,b.jsx)("li",{className:(0,o.Z)(s.k.docs.docSidebarItemLink,s.k.docs.docSidebarItemLinkLevel(i),"menu__list-item",m),children:(0,b.jsxs)(A.Z,{className:(0,o.Z)("menu__link",!x&&M.menuExternalLink,{"menu__link--active":p}),autoAddBaseUrl:h,"aria-current":p?"page":void 0,to:d,...x&&{onClick:n?()=>n(t):void 0},...c,children:[u,!x&&(0,b.jsx)(H.Z,{})]})},u)}const W={menuHtmlItem:"menuHtmlItem_M9Kj"};function F(e){let{item:t,level:n,index:a}=e;const{value:i,defaultStyle:l,className:r}=t;return(0,b.jsx)("li",{className:(0,o.Z)(s.k.docs.docSidebarItemLink,s.k.docs.docSidebarItemLinkLevel(n),l&&[W.menuHtmlItem,"menu__list-item"],r),dangerouslySetInnerHTML:{__html:i}},a)}function P(e){let{item:t,...n}=e;switch(t.type){case"category":return(0,b.jsx)(w,{item:t,...n});case"html":return(0,b.jsx)(F,{item:t,...n});default:return(0,b.jsx)(R,{item:t,...n})}}function D(e){let{items:t,...n}=e;const a=(0,l.f)(t,n.activePath);return(0,b.jsx)(T,{children:a.map(((e,t)=>(0,b.jsx)(P,{item:e,index:t,...n},t)))})}const V=(0,a.memo)(D),U={menu:"menu_SIkG",menuWithAnnouncementBar:"menuWithAnnouncementBar_GW3s"};function K(e){let{path:t,sidebar:n,className:i}=e;const l=function(){const{isActive:e}=(0,C.nT)(),[t,n]=(0,a.useState)(e);return(0,d.RF)((t=>{let{scrollY:a}=t;e&&n(0===a)}),[e]),e&&t}();return(0,b.jsx)("nav",{"aria-label":(0,c.I)({id:"theme.docs.sidebar.navAriaLabel",message:"Docs sidebar",description:"The ARIA label for the sidebar navigation"}),className:(0,o.Z)("menu thin-scrollbar",U.menu,l&&U.menuWithAnnouncementBar,i),children:(0,b.jsx)("ul",{className:(0,o.Z)(s.k.docs.docSidebarMenu,"menu__list"),children:(0,b.jsx)(V,{items:n,activePath:t,level:1})})})}const Y="sidebar_njMd",z="sidebarWithHideableNavbar_wUlq",G="sidebarHidden_VK0M",O="sidebarLogo_isFc";function q(e){let{path:t,sidebar:n,onCollapse:a,isHidden:i}=e;const{navbar:{hideOnScroll:s},docs:{sidebar:{hideable:l}}}=(0,j.L)();return(0,b.jsxs)("div",{className:(0,o.Z)(Y,s&&z,i&&G),children:[s&&(0,b.jsx)(k.Z,{tabIndex:-1,className:O}),(0,b.jsx)(K,{path:t,sidebar:n}),l&&(0,b.jsx)(g,{onClick:a})]})}const J=a.memo(q);var Q=n(3102),X=n(3163);const $=e=>{let{sidebar:t,path:n}=e;const a=(0,X.e)();return(0,b.jsx)("ul",{className:(0,o.Z)(s.k.docs.docSidebarMenu,"menu__list"),children:(0,b.jsx)(V,{items:t,activePath:n,onItemClick:e=>{"category"===e.type&&e.href&&a.toggle(),"link"===e.type&&a.toggle()},level:1})})};function ee(e){return(0,b.jsx)(Q.Zo,{component:$,props:e})}const te=a.memo(ee);function ne(e){const t=(0,f.i)(),n="desktop"===t||"ssr"===t,a="mobile"===t;return(0,b.jsxs)(b.Fragment,{children:[n&&(0,b.jsx)(J,{...e}),a&&(0,b.jsx)(te,{...e})]})}const ae={expandButton:"expandButton_TmdG",expandButtonIcon:"expandButtonIcon_i1dp"};function oe(e){let{toggleSidebar:t}=e;return(0,b.jsx)("div",{className:ae.expandButton,title:(0,c.I)({id:"theme.docs.sidebar.expandButtonTitle",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),"aria-label":(0,c.I)({id:"theme.docs.sidebar.expandButtonAriaLabel",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),tabIndex:0,role:"button",onKeyDown:t,onClick:t,children:(0,b.jsx)(_,{className:ae.expandButtonIcon})})}const ie={docSidebarContainer:"docSidebarContainer_YfHR",docSidebarContainerHidden:"docSidebarContainerHidden_DPk8",sidebarViewport:"sidebarViewport_aRkj"};function se(e){let{children:t}=e;const n=(0,r.V)();return(0,b.jsx)(a.Fragment,{children:t},n?.name??"noSidebar")}function le(e){let{sidebar:t,hiddenSidebarContainer:n,setHiddenSidebarContainer:i}=e;const{pathname:l}=(0,x.TH)(),[r,c]=(0,a.useState)(!1),d=(0,a.useCallback)((()=>{r&&c(!1),!r&&(0,p.n)()&&c(!0),i((e=>!e))}),[i,r]);return(0,b.jsx)("aside",{className:(0,o.Z)(s.k.docs.docSidebarContainer,ie.docSidebarContainer,n&&ie.docSidebarContainerHidden),onTransitionEnd:e=>{e.currentTarget.classList.contains(ie.docSidebarContainer)&&n&&c(!0)},children:(0,b.jsx)(se,{children:(0,b.jsxs)("div",{className:(0,o.Z)(ie.sidebarViewport,r&&ie.sidebarViewportHidden),children:[(0,b.jsx)(ne,{sidebar:t,path:l,onCollapse:d,isHidden:r}),r&&(0,b.jsx)(oe,{toggleSidebar:d})]})})})}const re={docMainContainer:"docMainContainer_TBSr",docMainContainerEnhanced:"docMainContainerEnhanced_lQrH",docItemWrapperEnhanced:"docItemWrapperEnhanced_JWYK"};function ce(e){let{hiddenSidebarContainer:t,children:n}=e;const a=(0,r.V)();return(0,b.jsx)("main",{className:(0,o.Z)(re.docMainContainer,(t||!a)&&re.docMainContainerEnhanced),children:(0,b.jsx)("div",{className:(0,o.Z)("container padding-top--md padding-bottom--lg",re.docItemWrapper,t&&re.docItemWrapperEnhanced),children:n})})}const de={docRoot:"docRoot_UBD9",docsWrapper:"docsWrapper_hBAB"};function ue(e){let{children:t}=e;const n=(0,r.V)(),[o,i]=(0,a.useState)(!1);return(0,b.jsxs)("div",{className:de.docsWrapper,children:[(0,b.jsx)(h,{}),(0,b.jsxs)("div",{className:de.docRoot,children:[n&&(0,b.jsx)(le,{sidebar:n.items,hiddenSidebarContainer:o,setHiddenSidebarContainer:i}),(0,b.jsx)(ce,{hiddenSidebarContainer:o,children:t})]})]})}var me=n(5658);function be(e){const t=(0,l.SN)(e);if(!t)return(0,b.jsx)(me.Z,{});const{docElement:n,sidebarName:a,sidebarItems:c}=t;return(0,b.jsx)(i.FG,{className:(0,o.Z)(s.k.page.docsDocPage),children:(0,b.jsx)(r.b,{name:a,items:c,children:(0,b.jsx)(ue,{children:n})})})}},5658:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var a=n(512),o=n(5999),i=n(2503),s=n(5893);function l(e){let{className:t}=e;return(0,s.jsx)("main",{className:(0,a.Z)("container margin-vert--xl",t),children:(0,s.jsx)("div",{className:"row",children:(0,s.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,s.jsx)(i.Z,{as:"h1",className:"hero__title",children:(0,s.jsx)(o.Z,{id:"theme.NotFound.title",description:"The title of the 404 page",children:"Page Not Found"})}),(0,s.jsx)("p",{children:(0,s.jsx)(o.Z,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page",children:"We could not find what you were looking for."})}),(0,s.jsx)("p",{children:(0,s.jsx)(o.Z,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page",children:"Please contact the owner of the site that linked you to the original URL and let them know their link is broken."})})]})})})}}}]); \ No newline at end of file +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4368],{2674:(e,t,n)=>{n.r(t),n.d(t,{default:()=>be});var a=n(7294),o=n(512),i=n(1944),s=n(5281),l=n(3438),r=n(1116),c=n(5999),d=n(2466),u=n(5936);const m={backToTopButton:"backToTopButton_sjWU",backToTopButtonShow:"backToTopButtonShow_xfvO"};var b=n(5893);function h(){const{shown:e,scrollToTop:t}=function(e){let{threshold:t}=e;const[n,o]=(0,a.useState)(!1),i=(0,a.useRef)(!1),{startScroll:s,cancelScroll:l}=(0,d.Ct)();return(0,d.RF)(((e,n)=>{let{scrollY:a}=e;const s=n?.scrollY;s&&(i.current?i.current=!1:a>=s?(l(),o(!1)):a<t?o(!1):a+window.innerHeight<document.documentElement.scrollHeight&&o(!0))})),(0,u.S)((e=>{e.location.hash&&(i.current=!0,o(!1))})),{shown:n,scrollToTop:()=>s(0)}}({threshold:300});return(0,b.jsx)("button",{"aria-label":(0,c.I)({id:"theme.BackToTopButton.buttonAriaLabel",message:"Scroll back to top",description:"The ARIA label for the back to top button"}),className:(0,o.Z)("clean-btn",s.k.common.backToTopButton,m.backToTopButton,e&&m.backToTopButtonShow),type:"button",onClick:t})}var p=n(1442),x=n(6550),f=n(7524),j=n(6668),k=n(1327);function _(e){return(0,b.jsx)("svg",{width:"20",height:"20","aria-hidden":"true",...e,children:(0,b.jsxs)("g",{fill:"#7a7a7a",children:[(0,b.jsx)("path",{d:"M9.992 10.023c0 .2-.062.399-.172.547l-4.996 7.492a.982.982 0 01-.828.454H1c-.55 0-1-.453-1-1 0-.2.059-.403.168-.551l4.629-6.942L.168 3.078A.939.939 0 010 2.528c0-.548.45-.997 1-.997h2.996c.352 0 .649.18.828.45L9.82 9.472c.11.148.172.347.172.55zm0 0"}),(0,b.jsx)("path",{d:"M19.98 10.023c0 .2-.058.399-.168.547l-4.996 7.492a.987.987 0 01-.828.454h-3c-.547 0-.996-.453-.996-1 0-.2.059-.403.168-.551l4.625-6.942-4.625-6.945a.939.939 0 01-.168-.55 1 1 0 01.996-.997h3c.348 0 .649.18.828.45l4.996 7.492c.11.148.168.347.168.55zm0 0"})]})})}const v={collapseSidebarButton:"collapseSidebarButton_PEFL",collapseSidebarButtonIcon:"collapseSidebarButtonIcon_kv0_"};function g(e){let{onClick:t}=e;return(0,b.jsx)("button",{type:"button",title:(0,c.I)({id:"theme.docs.sidebar.collapseButtonTitle",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),"aria-label":(0,c.I)({id:"theme.docs.sidebar.collapseButtonAriaLabel",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),className:(0,o.Z)("button button--secondary button--outline",v.collapseSidebarButton),onClick:t,children:(0,b.jsx)(_,{className:v.collapseSidebarButtonIcon})})}var C=n(9689),S=n(902);const I=Symbol("EmptyContext"),N=a.createContext(I);function T(e){let{children:t}=e;const[n,o]=(0,a.useState)(null),i=(0,a.useMemo)((()=>({expandedItem:n,setExpandedItem:o})),[n]);return(0,b.jsx)(N.Provider,{value:i,children:t})}var B=n(6043),Z=n(8596),A=n(3692),L=n(2389);function y(e){let{collapsed:t,categoryLabel:n,onClick:a}=e;return(0,b.jsx)("button",{"aria-label":t?(0,c.I)({id:"theme.DocSidebarItem.expandCategoryAriaLabel",message:"Expand sidebar category '{label}'",description:"The ARIA label to expand the sidebar category"},{label:n}):(0,c.I)({id:"theme.DocSidebarItem.collapseCategoryAriaLabel",message:"Collapse sidebar category '{label}'",description:"The ARIA label to collapse the sidebar category"},{label:n}),type:"button",className:"clean-btn menu__caret",onClick:a})}function w(e){let{item:t,onItemClick:n,activePath:i,level:r,index:c,...d}=e;const{items:u,label:m,collapsible:h,className:p,href:x}=t,{docs:{sidebar:{autoCollapseCategories:f}}}=(0,j.L)(),k=function(e){const t=(0,L.Z)();return(0,a.useMemo)((()=>e.href&&!e.linkUnlisted?e.href:!t&&e.collapsible?(0,l.LM)(e):void 0),[e,t])}(t),_=(0,l._F)(t,i),v=(0,Z.Mg)(x,i),{collapsed:g,setCollapsed:C}=(0,B.u)({initialState:()=>!!h&&(!_&&t.collapsed)}),{expandedItem:T,setExpandedItem:w}=function(){const e=(0,a.useContext)(N);if(e===I)throw new S.i6("DocSidebarItemsExpandedStateProvider");return e}(),E=function(e){void 0===e&&(e=!g),w(e?null:c),C(e)};return function(e){let{isActive:t,collapsed:n,updateCollapsed:o}=e;const i=(0,S.D9)(t);(0,a.useEffect)((()=>{t&&!i&&n&&o(!1)}),[t,i,n,o])}({isActive:_,collapsed:g,updateCollapsed:E}),(0,a.useEffect)((()=>{h&&null!=T&&T!==c&&f&&C(!0)}),[h,T,c,C,f]),(0,b.jsxs)("li",{className:(0,o.Z)(s.k.docs.docSidebarItemCategory,s.k.docs.docSidebarItemCategoryLevel(r),"menu__list-item",{"menu__list-item--collapsed":g},p),children:[(0,b.jsxs)("div",{className:(0,o.Z)("menu__list-item-collapsible",{"menu__list-item-collapsible--active":v}),children:[(0,b.jsx)(A.Z,{className:(0,o.Z)("menu__link",{"menu__link--sublist":h,"menu__link--sublist-caret":!x&&h,"menu__link--active":_}),onClick:h?e=>{n?.(t),x?E(!1):(e.preventDefault(),E())}:()=>{n?.(t)},"aria-current":v?"page":void 0,"aria-expanded":h?!g:void 0,href:h?k??"#":k,...d,children:m}),x&&h&&(0,b.jsx)(y,{collapsed:g,categoryLabel:m,onClick:e=>{e.preventDefault(),E()}})]}),(0,b.jsx)(B.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:g,children:(0,b.jsx)(V,{items:u,tabIndex:g?-1:0,onItemClick:n,activePath:i,level:r+1})})]})}var E=n(3919),H=n(9471);const M={menuExternalLink:"menuExternalLink_NmtK"};function R(e){let{item:t,onItemClick:n,activePath:a,level:i,index:r,...c}=e;const{href:d,label:u,className:m,autoAddBaseUrl:h}=t,p=(0,l._F)(t,a),x=(0,E.Z)(d);return(0,b.jsx)("li",{className:(0,o.Z)(s.k.docs.docSidebarItemLink,s.k.docs.docSidebarItemLinkLevel(i),"menu__list-item",m),children:(0,b.jsxs)(A.Z,{className:(0,o.Z)("menu__link",!x&&M.menuExternalLink,{"menu__link--active":p}),autoAddBaseUrl:h,"aria-current":p?"page":void 0,to:d,...x&&{onClick:n?()=>n(t):void 0},...c,children:[u,!x&&(0,b.jsx)(H.Z,{})]})},u)}const W={menuHtmlItem:"menuHtmlItem_M9Kj"};function F(e){let{item:t,level:n,index:a}=e;const{value:i,defaultStyle:l,className:r}=t;return(0,b.jsx)("li",{className:(0,o.Z)(s.k.docs.docSidebarItemLink,s.k.docs.docSidebarItemLinkLevel(n),l&&[W.menuHtmlItem,"menu__list-item"],r),dangerouslySetInnerHTML:{__html:i}},a)}function P(e){let{item:t,...n}=e;switch(t.type){case"category":return(0,b.jsx)(w,{item:t,...n});case"html":return(0,b.jsx)(F,{item:t,...n});default:return(0,b.jsx)(R,{item:t,...n})}}function D(e){let{items:t,...n}=e;const a=(0,l.f)(t,n.activePath);return(0,b.jsx)(T,{children:a.map(((e,t)=>(0,b.jsx)(P,{item:e,index:t,...n},t)))})}const V=(0,a.memo)(D),U={menu:"menu_SIkG",menuWithAnnouncementBar:"menuWithAnnouncementBar_GW3s"};function K(e){let{path:t,sidebar:n,className:i}=e;const l=function(){const{isActive:e}=(0,C.nT)(),[t,n]=(0,a.useState)(e);return(0,d.RF)((t=>{let{scrollY:a}=t;e&&n(0===a)}),[e]),e&&t}();return(0,b.jsx)("nav",{"aria-label":(0,c.I)({id:"theme.docs.sidebar.navAriaLabel",message:"Docs sidebar",description:"The ARIA label for the sidebar navigation"}),className:(0,o.Z)("menu thin-scrollbar",U.menu,l&&U.menuWithAnnouncementBar,i),children:(0,b.jsx)("ul",{className:(0,o.Z)(s.k.docs.docSidebarMenu,"menu__list"),children:(0,b.jsx)(V,{items:n,activePath:t,level:1})})})}const Y="sidebar_njMd",z="sidebarWithHideableNavbar_wUlq",G="sidebarHidden_VK0M",O="sidebarLogo_isFc";function q(e){let{path:t,sidebar:n,onCollapse:a,isHidden:i}=e;const{navbar:{hideOnScroll:s},docs:{sidebar:{hideable:l}}}=(0,j.L)();return(0,b.jsxs)("div",{className:(0,o.Z)(Y,s&&z,i&&G),children:[s&&(0,b.jsx)(k.Z,{tabIndex:-1,className:O}),(0,b.jsx)(K,{path:t,sidebar:n}),l&&(0,b.jsx)(g,{onClick:a})]})}const J=a.memo(q);var Q=n(3102),X=n(3163);const $=e=>{let{sidebar:t,path:n}=e;const a=(0,X.e)();return(0,b.jsx)("ul",{className:(0,o.Z)(s.k.docs.docSidebarMenu,"menu__list"),children:(0,b.jsx)(V,{items:t,activePath:n,onItemClick:e=>{"category"===e.type&&e.href&&a.toggle(),"link"===e.type&&a.toggle()},level:1})})};function ee(e){return(0,b.jsx)(Q.Zo,{component:$,props:e})}const te=a.memo(ee);function ne(e){const t=(0,f.i)(),n="desktop"===t||"ssr"===t,a="mobile"===t;return(0,b.jsxs)(b.Fragment,{children:[n&&(0,b.jsx)(J,{...e}),a&&(0,b.jsx)(te,{...e})]})}const ae={expandButton:"expandButton_TmdG",expandButtonIcon:"expandButtonIcon_i1dp"};function oe(e){let{toggleSidebar:t}=e;return(0,b.jsx)("div",{className:ae.expandButton,title:(0,c.I)({id:"theme.docs.sidebar.expandButtonTitle",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),"aria-label":(0,c.I)({id:"theme.docs.sidebar.expandButtonAriaLabel",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),tabIndex:0,role:"button",onKeyDown:t,onClick:t,children:(0,b.jsx)(_,{className:ae.expandButtonIcon})})}const ie={docSidebarContainer:"docSidebarContainer_YfHR",docSidebarContainerHidden:"docSidebarContainerHidden_DPk8",sidebarViewport:"sidebarViewport_aRkj"};function se(e){let{children:t}=e;const n=(0,r.V)();return(0,b.jsx)(a.Fragment,{children:t},n?.name??"noSidebar")}function le(e){let{sidebar:t,hiddenSidebarContainer:n,setHiddenSidebarContainer:i}=e;const{pathname:l}=(0,x.TH)(),[r,c]=(0,a.useState)(!1),d=(0,a.useCallback)((()=>{r&&c(!1),!r&&(0,p.n)()&&c(!0),i((e=>!e))}),[i,r]);return(0,b.jsx)("aside",{className:(0,o.Z)(s.k.docs.docSidebarContainer,ie.docSidebarContainer,n&&ie.docSidebarContainerHidden),onTransitionEnd:e=>{e.currentTarget.classList.contains(ie.docSidebarContainer)&&n&&c(!0)},children:(0,b.jsx)(se,{children:(0,b.jsxs)("div",{className:(0,o.Z)(ie.sidebarViewport,r&&ie.sidebarViewportHidden),children:[(0,b.jsx)(ne,{sidebar:t,path:l,onCollapse:d,isHidden:r}),r&&(0,b.jsx)(oe,{toggleSidebar:d})]})})})}const re={docMainContainer:"docMainContainer_TBSr",docMainContainerEnhanced:"docMainContainerEnhanced_lQrH",docItemWrapperEnhanced:"docItemWrapperEnhanced_JWYK"};function ce(e){let{hiddenSidebarContainer:t,children:n}=e;const a=(0,r.V)();return(0,b.jsx)("main",{className:(0,o.Z)(re.docMainContainer,(t||!a)&&re.docMainContainerEnhanced),children:(0,b.jsx)("div",{className:(0,o.Z)("container padding-top--md padding-bottom--lg",re.docItemWrapper,t&&re.docItemWrapperEnhanced),children:n})})}const de={docRoot:"docRoot_UBD9",docsWrapper:"docsWrapper_hBAB"};function ue(e){let{children:t}=e;const n=(0,r.V)(),[o,i]=(0,a.useState)(!1);return(0,b.jsxs)("div",{className:de.docsWrapper,children:[(0,b.jsx)(h,{}),(0,b.jsxs)("div",{className:de.docRoot,children:[n&&(0,b.jsx)(le,{sidebar:n.items,hiddenSidebarContainer:o,setHiddenSidebarContainer:i}),(0,b.jsx)(ce,{hiddenSidebarContainer:o,children:t})]})]})}var me=n(5658);function be(e){const t=(0,l.SN)(e);if(!t)return(0,b.jsx)(me.Z,{});const{docElement:n,sidebarName:a,sidebarItems:c}=t;return(0,b.jsx)(i.FG,{className:(0,o.Z)(s.k.page.docsDocPage),children:(0,b.jsx)(r.b,{name:a,items:c,children:(0,b.jsx)(ue,{children:n})})})}},5658:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var a=n(512),o=n(5999),i=n(2503),s=n(5893);function l(e){let{className:t}=e;return(0,s.jsx)("main",{className:(0,a.Z)("container margin-vert--xl",t),children:(0,s.jsx)("div",{className:"row",children:(0,s.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,s.jsx)(i.Z,{as:"h1",className:"hero__title",children:(0,s.jsx)(o.Z,{id:"theme.NotFound.title",description:"The title of the 404 page",children:"Page Not Found"})}),(0,s.jsx)("p",{children:(0,s.jsx)(o.Z,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page",children:"We could not find what you were looking for."})}),(0,s.jsx)("p",{children:(0,s.jsx)(o.Z,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page",children:"Please contact the owner of the site that linked you to the original URL and let them know their link is broken."})})]})})})}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/ad7b17cf.a53934cd.js b/zh-CN/assets/js/ad7b17cf.a53934cd.js new file mode 100644 index 0000000000..f977ab2ca6 --- /dev/null +++ b/zh-CN/assets/js/ad7b17cf.a53934cd.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2030],{923:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>u,contentTitle:()=>c,default:()=>m,frontMatter:()=>l,metadata:()=>i,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},c="await \u2014 co",i={id:"examples/promise-wrapper/co-await",title:"await \u2014 co",description:"",source:"@site/docs/examples/promise-wrapper/co-await.mdx",sourceDirName:"examples/promise-wrapper",slug:"/examples/promise-wrapper/co-await",permalink:"/node-mysql2/zh-CN/docs/examples/promise-wrapper/co-await",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/promise-wrapper/co-await.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Binlog Watcher",permalink:"/node-mysql2/zh-CN/docs/examples/binlog-watcher"},next:{title:"MySQL Proxy",permalink:"/node-mysql2/zh-CN/docs/examples/tests/mysql-proxy"}},u={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"await--co",children:"await \u2014 co"}),"\n",(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(o.Z,{value:"await.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2/promise');\n\nasync function test() {\n const c = await mysql.createConnection({\n port: 3306,\n user: 'testuser',\n namedPlaceholders: true,\n password: 'testpassword',\n });\n console.log('connected!');\n const [rows, fields] = await c.query('show databases');\n console.log(rows);\n\n try {\n const [rows, fields] = await c.query('some invalid sql here');\n } catch (e) {\n console.log('caught exception!', e);\n }\n\n console.log(await c.execute('select sleep(0.5)'));\n console.log('after first sleep');\n console.log(await c.execute('select sleep(0.5)'));\n console.log('after second sleep');\n let start = +new Date();\n console.log(\n await Promise.all([\n c.execute('select sleep(2.5)'),\n c.execute('select sleep(2.5)'),\n ])\n );\n console.log(\n 'after 2+3 parallel sleep which is in fact not parallel because commands are queued per connection'\n );\n let end = +new Date();\n console.log(end - start);\n await c.end();\n\n const p = mysql.createPool({\n port: 3306,\n user: 'testuser',\n namedPlaceholders: true,\n password: 'testpassword',\n });\n console.log(await p.execute('select sleep(0.5)'));\n console.log('after first pool sleep');\n start = +new Date();\n console.log(\n await Promise.all([\n p.execute('select sleep(2.5)'),\n p.execute('select sleep(2.5)'),\n ])\n );\n console.log('after 2+3 parallel pool sleep');\n end = +new Date();\n console.log(end - start);\n await p.end();\n}\n\ntest()\n .then(() => {\n console.log('done');\n })\n .catch((err) => {\n console.log('error!', err);\n throw err;\n });\n"})})}),(0,r.jsx)(o.Z,{value:"co.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2/promise');\nconst co = require('co');\n\nco(function* () {\n const c = yield mysql.createConnection({\n port: 3306,\n user: 'root',\n namedPlaceholders: true,\n });\n const rows = yield c.query('show databases');\n console.log(rows);\n console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 }));\n yield c.end();\n})\n .then(function () {\n console.log('done');\n })\n .catch(function (err) {\n console.log(err);\n throw err;\n });\n"})})}),(0,r.jsx)(o.Z,{value:".babelrc",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{\n "plugins": ["transform-async-to-generator"]\n}\n'})})}),(0,r.jsx)(o.Z,{value:"package.json",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{\n "name": "promise-co-await",\n "version": "1.0.0",\n "description": "",\n "main": "await.js",\n "scripts": {\n "test": "echo \\"Error: no test specified\\" && exit 1"\n },\n "author": "",\n "license": "ISC",\n "dependencies": {\n "babel-cli": "^6.9.0"\n }\n}\n'})})})]})]})}function m(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>j});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),c=t(1980),i=t(7392),u=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,i.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function h(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,c._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function f(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=p(e),[o,c]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[i,d]=h({queryString:t,groupId:a}),[f,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,u.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),w=(()=>{const e=i??f;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{w&&c(w)}),[w]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);c(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const w={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function x(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const c=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),u=e=>{const n=e.currentTarget,t=c.indexOf(n),a=l[t].value;a!==r&&(i(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const t=c.indexOf(e.currentTarget)+1;n=c[t]??c[0];break}case"ArrowLeft":{const t=c.indexOf(e.currentTarget)-1;n=c[t]??c[c.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>c.push(e),onKeyDown:d,onClick:u,...s,className:(0,a.Z)("tabs__item",w.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function y(e){const n=f(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",w.tabList),children:[(0,g.jsx)(x,{...e,...n}),(0,g.jsx)(v,{...e,...n})]})}function j(e){const n=(0,b.Z)();return(0,g.jsx)(y,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/b07748b5.26915157.js b/zh-CN/assets/js/b07748b5.26915157.js new file mode 100644 index 0000000000..0f4d146b12 --- /dev/null +++ b/zh-CN/assets/js/b07748b5.26915157.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4403],{214:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>h,contentTitle:()=>d,default:()=>m,frontMatter:()=>a,metadata:()=>u,toc:()=>p});var r=s(5893),o=s(1151),l=s(4866),t=s(5162),c=s(6393),i=s(4379);const a={sidebar_position:3,tags:["createPoolCluster","URI","SHA1","RDS","SSL","Socks"]},d="createPoolCluster",u={id:"examples/connections/createPoolCluster",title:"createPoolCluster",description:"For queries please see the Simple Queries and Prepared Statements examples.",source:"@site/docs/examples/connections/createPoolCluster.mdx",sourceDirName:"examples/connections",slug:"/examples/connections/createPoolCluster",permalink:"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/connections/createPoolCluster.mdx",tags:[{label:"createPoolCluster",permalink:"/node-mysql2/zh-CN/docs/tags/create-pool-cluster"},{label:"URI",permalink:"/node-mysql2/zh-CN/docs/tags/uri"},{label:"SHA1",permalink:"/node-mysql2/zh-CN/docs/tags/sha-1"},{label:"RDS",permalink:"/node-mysql2/zh-CN/docs/tags/rds"},{label:"SSL",permalink:"/node-mysql2/zh-CN/docs/tags/ssl"},{label:"Socks",permalink:"/node-mysql2/zh-CN/docs/tags/socks"}],version:"current",sidebarPosition:3,frontMatter:{sidebar_position:3,tags:["createPoolCluster","URI","SHA1","RDS","SSL","Socks"]},sidebar:"examples",previous:{title:"createPool",permalink:"/node-mysql2/zh-CN/docs/examples/connections/create-pool"},next:{title:"Simple Queries",permalink:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/"}},h={},p=[{value:"add(group, connectionUri)",id:"addgroup-connectionuri",level:2},{value:"add(group, config)",id:"addgroup-config",level:2},{value:"add(group, config) \u2014 SHA1",id:"addgroup-config--sha1",level:2},{value:"add(group, config) \u2014 SSL",id:"addgroup-config--ssl",level:2},{value:"add(group, config) \u2014 RDS SSL",id:"addgroup-config--rds-ssl",level:2},{value:"Related Links",id:"related-links",level:3},{value:"add(group, config) \u2014 Socks",id:"addgroup-config--socks",level:2},{value:"Glossary",id:"glossary",level:2},{value:"PoolOptions",id:"pooloptions",level:3}];function g(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,o.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"createpoolcluster",children:"createPoolCluster"}),"\n",(0,r.jsx)(n.admonition,{type:"info",children:(0,r.jsxs)(n.p,{children:["For queries please see the ",(0,r.jsx)(n.a,{href:"/docs/examples/queries/simple-queries",children:(0,r.jsx)(n.strong,{children:"Simple Queries"})})," and ",(0,r.jsx)(n.a,{href:"/docs/examples/queries/prepared-statements",children:(0,r.jsx)(n.strong,{children:"Prepared Statements"})})," examples."]})}),"\n",(0,r.jsx)(n.h2,{id:"addgroup-connectionuri",children:"add(group, connectionUri)"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:"add(group: string, connectionUri: string)"})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const poolCluster = mysql.createPoolCluster();\n\n poolCluster.add('clusterA', 'mysql://root:password@localhost:3306/test');\n // poolCluster.add('clusterB', '...');\n\n const connection = await poolCluster.getConnection('clusterA');\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(t.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', 'mysql://root:password@localhost:3306/test');\n// poolCluster.add('clusterB', '...');\n\npoolCluster.getConnection('clusterA', function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})})]}),"\n",(0,r.jsxs)(n.admonition,{type:"warning",children:[(0,r.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"addgroup-config",children:"add(group, config)"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["add(group: string, config: ",(0,r.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const poolCluster = mysql.createPoolCluster();\n\n poolCluster.add('clusterA', {\n host: 'localhost',\n user: 'root',\n database: 'test',\n // port: 3306,\n // password: '',\n });\n // poolCluster.add('clusterB', '...');\n\n const connection = await poolCluster.getConnection('clusterA');\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(t.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', {\n host: 'localhost',\n user: 'root',\n database: 'test',\n // port: 3306,\n // password: '',\n});\n// poolCluster.add('clusterB', '...');\n\npoolCluster.getConnection('clusterA', function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})})]}),"\n",(0,r.jsxs)(n.admonition,{type:"warning",children:[(0,r.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"addgroup-config--sha1",children:"add(group, config) \u2014 SHA1"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["add(group: string, config: ",(0,r.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const poolCluster = mysql.createPoolCluster();\n\n poolCluster.add('clusterA', {\n // ...\n passwordSha1: Buffer.from(\n '8bb6118f8fd6935ad0876a3be34a717d32708ffd',\n 'hex'\n ),\n });\n // poolCluster.add('clusterB', '...');\n\n const connection = await poolCluster.getConnection('clusterA');\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(t.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', {\n // ...\n passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'),\n});\n// poolCluster.add('clusterB', '...');\n\npoolCluster.getConnection('clusterA', function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})})]}),"\n",(0,r.jsxs)(n.admonition,{type:"warning",children:[(0,r.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"addgroup-config--ssl",children:"add(group, config) \u2014 SSL"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["add(group: string, config: ",(0,r.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(t.Z,{value:"promise.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const poolCluster = mysql.createPoolCluster();\n\n poolCluster.add('clusterA', {\n // ...\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n });\n // poolCluster.add('clusterB', '...');\n\n const connection = await poolCluster.getConnection('clusterA');\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,r.jsx)(t.Z,{value:"callback.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', {\n // ...\n ssl: {\n // key: fs.readFileSync('./certs/client-key.pem'),\n // cert: fs.readFileSync('./certs/client-cert.pem')\n ca: fs.readFileSync('./certs/ca-cert.pem'),\n },\n});\n// poolCluster.add('clusterB', '...');\n\npoolCluster.getConnection('clusterA', function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})})}),(0,r.jsxs)(t.Z,{value:"certs/ca-cert.pem",children:[(0,r.jsx)(i.I,{language:"plan",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/test/fixtures/ssl/certs/ca.pem"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["See ",(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/tree/master/test/fixtures/ssl/certs",children:"ssl/certs"}),"."]}),"\n"]})]})]}),"\n",(0,r.jsxs)(n.admonition,{type:"warning",children:[(0,r.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"addgroup-config--rds-ssl",children:"add(group, config) \u2014 RDS SSL"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["add(group: string, config: ",(0,r.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["You can use ",(0,r.jsx)(n.strong,{children:"Amazon RDS"})," string as value to ssl property to connect to ",(0,r.jsx)(n.strong,{children:"Amazon RDS"})," MySQL over SSL."]}),"\n",(0,r.jsxs)(n.p,{children:["In that case ",(0,r.jsx)(n.a,{href:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem",children:"https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem"})," CA cert is used:"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsxs)(t.Z,{value:"promise.js",default:!0,children:[(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n // highlight-start\n const poolCluster = mysql.createPoolCluster();\n\n poolCluster.add('clusterA', {\n // ...\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n });\n // poolCluster.add('clusterB', '...');\n\n const connection = await poolCluster.getConnection('clusterA');\n // highlight-end\n // ... some query\n\n // highlight-next-line\n connection.release();\n} catch (err) {\n console.log(err);\n}\n"})}),(0,r.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"try {\n const [res] = await connection.query('SHOW `status` LIKE \"Ssl_cipher\"');\n await poolCluster.end();\n\n console.log(res);\n} catch (err) {\n console.log(err);\n}\n"})})})]}),(0,r.jsxs)(t.Z,{value:"callback.js",children:[(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', {\n // ...\n host: 'db.id.ap-southeast-2.rds.amazonaws.com',\n ssl: 'Amazon RDS',\n});\n// poolCluster.add('clusterB', '...');\n\npoolCluster.getConnection('clusterA', function (err, connection) {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n // ... some query\n\n connection.release();\n});\n"})}),(0,r.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"connectionquery('SHOW `status` LIKE \"Ssl_cipher\"', function (err, res) {\n poolCluster.end();\n\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(res);\n});\n"})})})]})]}),"\n",(0,r.jsxs)(n.admonition,{type:"warning",children:[(0,r.jsx)(n.p,{children:"Don't forget to release the connection when finished by using:"}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"connection.release()"})}),"\n"]})]}),"\n",(0,r.jsx)(n.h3,{id:"related-links",children:"Related Links"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Issues"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/issues/2130",children:"#2130 \u2014 Update TLS certs for Amazon RDS instances"})}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Pull Requests"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/pull/2119",children:"#2119 \u2014 fix: make startTls code compatible with Bun"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/pull/2131",children:"#2131 \u2014 Update Amazon RDS SSL CA cert"})}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"addgroup-config--socks",children:"add(group, config) \u2014 Socks"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["add(group: string, config: ",(0,r.jsx)(n.a,{href:"#pooloptions",children:"PoolOptions"}),")"]})}),"\n"]}),"\n",(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(t.Z,{value:"A.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\nconst socksProxy = new SocksConnection({ port: 3306 });\n// highlight-start\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', {\n stream: socksProxy,\n});\n// poolCluster.add('clusterB', '...');\n\nconst poolNamespace = poolCluster.of('clusterA');\n// highlight-end\n"})})}),(0,r.jsx)(t.Z,{value:"B.js",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\nconst SocksConnection = require('socksjs');\n\n// highlight-start\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('clusterA', {\n debug: 1,\n stream: function () {\n return new SocksConnection({ port: 3306 });\n },\n});\n// poolCluster.add('clusterB', '...');\n\nconst poolNamespace = poolCluster.of('clusterA');\n// highlight-end\n"})})})]}),"\n",(0,r.jsx)(n.admonition,{title:"Testing",type:"tip",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"poolNamespace.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n\npoolNamespace.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n\npoolNamespace.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(rows, fields);\n});\n"})})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,r.jsx)(n.h3,{id:"pooloptions",children:"PoolOptions"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"PoolOptions"})," extends all options from ",(0,r.jsx)(n.strong,{children:"ConnectionOptions"}),":"]}),"\n",(0,r.jsx)(c.Z,{title:"ConnectionOptions Specification",children:(0,r.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/Connection.d.ts",extractMethod:"ConnectionOptions",methodType:"interface"})}),"\n"]}),"\n",(0,r.jsx)(c.Z,{title:"PoolOptions Specification",children:(0,r.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/Pool.d.ts",extractMethod:"PoolOptions",methodType:"interface"})})]})}function m(e={}){const{wrapper:n}={...(0,o.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(g,{...e})}):g(e)}},5162:(e,n,s)=>{s.d(n,{Z:()=>t});s(7294);var r=s(512);const o={tabItem:"tabItem_Ymn6"};var l=s(5893);function t(e){let{children:n,hidden:s,className:t}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,r.Z)(o.tabItem,t),hidden:s,children:n})}},4866:(e,n,s)=>{s.d(n,{Z:()=>C});var r=s(7294),o=s(512),l=s(2466),t=s(6550),c=s(469),i=s(1980),a=s(7392),d=s(12);function u(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:s}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return u(e).map((e=>{let{props:{value:n,label:s,attributes:r,default:o}}=e;return{value:n,label:s,attributes:r,default:o}}))}(s);return function(e){const n=(0,a.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,s])}function p(e){let{value:n,tabValues:s}=e;return s.some((e=>e.value===n))}function g(e){let{queryString:n=!1,groupId:s}=e;const o=(0,t.k6)(),l=function(e){let{queryString:n=!1,groupId:s}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!s)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:n,groupId:s});return[(0,i._X)(l),(0,r.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(o.location.search);n.set(l,e),o.replace({...o.location,search:n.toString()})}),[l,o])]}function m(e){const{defaultValue:n,queryString:s=!1,groupId:o}=e,l=h(e),[t,i]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:s}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=s.find((e=>e.default))??s[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:l}))),[a,u]=g({queryString:s,groupId:o}),[m,x]=function(e){let{groupId:n}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(n),[o,l]=(0,d.Nk)(s);return[o,(0,r.useCallback)((e=>{s&&l.set(e)}),[s,l])]}({groupId:o}),j=(()=>{const e=a??m;return p({value:e,tabValues:l})?e:null})();(0,c.Z)((()=>{j&&i(j)}),[j]);return{selectedValue:t,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),u(e),x(e)}),[u,x,l]),tabValues:l}}var x=s(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=s(5893);function y(e){let{className:n,block:s,selectedValue:r,selectValue:t,tabValues:c}=e;const i=[],{blockElementScrollPositionUntilNextRender:a}=(0,l.o5)(),d=e=>{const n=e.currentTarget,s=i.indexOf(n),o=c[s].value;o!==r&&(a(n),t(o))},u=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const s=i.indexOf(e.currentTarget)+1;n=i[s]??i[0];break}case"ArrowLeft":{const s=i.indexOf(e.currentTarget)-1;n=i[s]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,o.Z)("tabs",{"tabs--block":s},n),children:c.map((e=>{let{value:n,label:s,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>i.push(e),onKeyDown:u,onClick:d,...l,className:(0,o.Z)("tabs__item",j.tabItem,l?.className,{"tabs__item--active":r===n}),children:s??n},n)}))})}function b(e){let{lazy:n,children:s,selectedValue:o}=e;const l=(Array.isArray(s)?s:[s]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===o));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==o})))})}function q(e){const n=m(e);return(0,f.jsxs)("div",{className:(0,o.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(y,{...e,...n}),(0,f.jsx)(b,{...e,...n})]})}function C(e){const n=(0,x.Z)();return(0,f.jsx)(q,{...e,children:u(e.children)},String(n))}},4379:(e,n,s)=>{s.d(n,{I:()=>i});var r=s(7294),o=s(2263),l=s(9286),t=s(5893);const c=()=>(0,t.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:s,extractMethod:i,methodType:a}=e;const[d,u]=(0,r.useState)(""),[h,p]=(0,r.useState)(!0),[g,m]=(0,r.useState)(!0),{siteConfig:x}=(0,o.Z)(),j=x.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,r.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&a?((e,n,s)=>{const r=e.split("\n"),o=`${s} ${n}`;let l=!1,t=0,c="";for(const i of r)if(i.includes(o)&&(l=!0),l&&(i.includes("{")&&t++,c+=i+"\n",i.includes("}")&&(t--,0===t)))break;return c.trim()||e})(e,i,a):e;u(n||e),p(!1),m(!1)})).catch((()=>{m(!0),p(!1)})),()=>{e.abort()}}),[f,i,a]),(0,t.jsx)(t.Fragment,{children:h?(0,t.jsx)(c,{}):(0,t.jsx)(t.Fragment,{children:g?(0,t.jsxs)("div",{children:["Unable to access the requested link: ",(0,t.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,t.jsx)(l.Z,{className:`language-${s}`,children:d})})})}},6393:(e,n,s)=>{s.d(n,{Z:()=>l});var r=s(4673),o=s(5893);const l=e=>{let{children:n,open:s,title:l}=e;return(0,o.jsx)(r.Z,{open:s,className:"faq",summary:(0,o.jsx)("summary",{children:(0,o.jsx)("strong",{children:l})}),children:(0,o.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/b5168752.68c58ab5.js b/zh-CN/assets/js/b5168752.68c58ab5.js new file mode 100644 index 0000000000..1dceefc674 --- /dev/null +++ b/zh-CN/assets/js/b5168752.68c58ab5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7615],{2951:e=>{e.exports=JSON.parse('{"label":"SHA1","permalink":"/node-mysql2/zh-CN/docs/tags/sha-1","allTagsPath":"/node-mysql2/zh-CN/docs/tags","count":3,"items":[{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/zh-CN/docs/examples/connections/create-connection"},{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/zh-CN/docs/examples/connections/create-pool"},{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/b80d201b.44ad2ef4.js b/zh-CN/assets/js/b80d201b.44ad2ef4.js new file mode 100644 index 0000000000..091b4882b4 --- /dev/null +++ b/zh-CN/assets/js/b80d201b.44ad2ef4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6061],{1384:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>m,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var s=t(5893),r=t(1151),l=t(4866),a=t(5162),o=t(6393),i=t(4379);const c={sidebar_position:2,tags:["Prepared Statements","Placeholders","Parameters","execute"]},u="UPDATE",d={id:"examples/queries/prepared-statements/update",title:"UPDATE",description:"execute(sql, values)",source:"@site/docs/examples/queries/prepared-statements/update.mdx",sourceDirName:"examples/queries/prepared-statements",slug:"/examples/queries/prepared-statements/update",permalink:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/update",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/prepared-statements/update.mdx",tags:[{label:"Prepared Statements",permalink:"/node-mysql2/zh-CN/docs/tags/prepared-statements"},{label:"Placeholders",permalink:"/node-mysql2/zh-CN/docs/tags/placeholders"},{label:"Parameters",permalink:"/node-mysql2/zh-CN/docs/tags/parameters"},{label:"execute",permalink:"/node-mysql2/zh-CN/docs/tags/execute"}],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2,tags:["Prepared Statements","Placeholders","Parameters","execute"]},sidebar:"examples",previous:{title:"SELECT",permalink:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/select"},next:{title:"DELETE",permalink:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/delete"}},h={},p=[{value:"execute(sql, values)",id:"executesql-values",level:2},{value:"execute(options)",id:"executeoptions",level:2},{value:"execute(options, values)",id:"executeoptions-values",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"QueryOptions",id:"queryoptions",level:3}];function x(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"update",children:"UPDATE"}),"\n",(0,s.jsx)(n.h2,{id:"executesql-values",children:"execute(sql, values)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"execute(sql: string, values: any[])"})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';\n const values = [20, 'Josh'];\n\n // highlight-next-line\n const [result, fields] = await connection.execute(sql, values);\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';\nconst values = [20, 'Josh'];\n\nconnection.execute(sql, values, (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n});\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"executeoptions",children:"execute(options)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["execute(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';\n const values = [20, 'Josh'];\n\n // highlight-start\n const [result, fields] = await connection.execute({\n sql,\n values,\n // ... other options\n });\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';\nconst values = [20, 'Josh'];\n\nconnection.execute(\n {\n sql,\n values,\n // ... other options\n },\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"executeoptions-values",children:"execute(options, values)"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["execute(options: ",(0,s.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),", values: any[])"]})}),"\n"]}),"\n",(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';\n const values = [20, 'Josh'];\n\n // highlight-start\n const [result, fields] = await connection.execute(\n {\n sql,\n // ... other options\n },\n values\n );\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,s.jsx)(a.Z,{value:"callback.js",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';\nconst values = [20, 'Josh'];\n\nconnection.execute(\n {\n sql,\n // ... other options\n },\n values,\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"result"}),": contains a ",(0,s.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["The connection used for the query (",(0,s.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"})," or ",(0,s.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,s.jsx)(n.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,s.jsx)(o.Z,{title:"ResultSetHeader Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts",extractMethod:"ResultSetHeader",methodType:"interface"})}),"\n",(0,s.jsx)(n.h3,{id:"queryoptions",children:"QueryOptions"}),"\n",(0,s.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,s.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(x,{...e})}):x(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>a});t(7294);var s=t(512);const r={tabItem:"tabItem_Ymn6"};var l=t(5893);function a(e){let{children:n,hidden:t,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,s.Z)(r.tabItem,a),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>q});var s=t(7294),r=t(512),l=t(2466),a=t(6550),o=t(469),i=t(1980),c=t(7392),u=t(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:t}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:s,default:r}}=e;return{value:n,label:t,attributes:s,default:r}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function x(e){let{queryString:n=!1,groupId:t}=e;const r=(0,a.k6)(),l=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,i._X)(l),(0,s.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(r.location.search);n.set(l,e),r.replace({...r.location,search:n.toString()})}),[l,r])]}function m(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,l=h(e),[a,i]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=t.find((e=>e.default))??t[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:l}))),[c,d]=x({queryString:t,groupId:r}),[m,j]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,l]=(0,u.Nk)(t);return[r,(0,s.useCallback)((e=>{t&&l.set(e)}),[t,l])]}({groupId:r}),g=(()=>{const e=c??m;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{g&&i(g)}),[g]);return{selectedValue:a,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),j(e)}),[d,j,l]),tabValues:l}}var j=t(2389);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=t(5893);function b(e){let{className:n,block:t,selectedValue:s,selectValue:a,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,l.o5)(),u=e=>{const n=e.currentTarget,t=i.indexOf(n),r=o[t].value;r!==s&&(c(n),a(r))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const t=i.indexOf(e.currentTarget)+1;n=i[t]??i[0];break}case"ArrowLeft":{const t=i.indexOf(e.currentTarget)-1;n=i[t]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":t},n),children:o.map((e=>{let{value:n,label:t,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>i.push(e),onKeyDown:d,onClick:u,...l,className:(0,r.Z)("tabs__item",g.tabItem,l?.className,{"tabs__item--active":s===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:r}=e;const l=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===r));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function y(e){const n=m(e);return(0,f.jsxs)("div",{className:(0,r.Z)("tabs-container",g.tabList),children:[(0,f.jsx)(b,{...e,...n}),(0,f.jsx)(v,{...e,...n})]})}function q(e){const n=(0,j.Z)();return(0,f.jsx)(y,{...e,children:d(e.children)},String(n))}},4379:(e,n,t)=>{t.d(n,{I:()=>i});var s=t(7294),r=t(2263),l=t(9286),a=t(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:t,extractMethod:i,methodType:c}=e;const[u,d]=(0,s.useState)(""),[h,p]=(0,s.useState)(!0),[x,m]=(0,s.useState)(!0),{siteConfig:j}=(0,r.Z)(),g=j.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${g}${n}`:n;return(0,s.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&c?((e,n,t)=>{const s=e.split("\n"),r=`${t} ${n}`;let l=!1,a=0,o="";for(const i of s)if(i.includes(r)&&(l=!0),l&&(i.includes("{")&&a++,o+=i+"\n",i.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,i,c):e;d(n||e),p(!1),m(!1)})).catch((()=>{m(!0),p(!1)})),()=>{e.abort()}}),[f,i,c]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:x?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${t}`,children:u})})})}},6393:(e,n,t)=>{t.d(n,{Z:()=>l});var s=t(4673),r=t(5893);const l=e=>{let{children:n,open:t,title:l}=e;return(0,r.jsx)(s.Z,{open:t,className:"faq",summary:(0,r.jsx)("summary",{children:(0,r.jsx)("strong",{children:l})}),children:(0,r.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/bc31cbdb.3e20d441.js b/zh-CN/assets/js/bc31cbdb.3e20d441.js deleted file mode 100644 index c365d3e72f..0000000000 --- a/zh-CN/assets/js/bc31cbdb.3e20d441.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1437],{861:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>f,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},u="Procedure Call Packet (Row as Array)",c={id:"examples/typescript/procedure-call/row-as-array",title:"Procedure Call Packet (Row as Array)",description:"",source:"@site/docs/examples/typescript/procedure-call/01-row-as-array.mdx",sourceDirName:"examples/typescript/procedure-call",slug:"/examples/typescript/procedure-call/row-as-array",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-array",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/procedure-call/01-row-as-array.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"examples",previous:{title:"Procedure Call Packet",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/procedure-call-packet"},next:{title:"Row Data Packet",permalink:"/node-mysql2/zh-CN/docs/category/row-data-packet"}},i={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"procedure-call-packet-row-as-array",children:"Procedure Call Packet (Row as Array)"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ProcedureCallPacket,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n /** id */\n 0: number;\n /** name */\n 1: string;\n}\n\nconst isResultSetHeader = (data: unknown): data is ResultSetHeader => {\n if (!data || typeof data !== 'object') return false;\n\n const keys = [\n 'fieldCount',\n 'affectedRows',\n 'insertId',\n 'info',\n 'serverStatus',\n 'warningStatus',\n 'changedRows',\n ];\n\n return keys.every((key) => key in data);\n};\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n rowsAsArray: true,\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Deleting the `getUsers` procedure, if it exists */\n await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');\n\n /** Creating a procedure to get the users */\n await conn.query<ResultSetHeader>(`\n CREATE PROCEDURE getUsers()\n BEGIN\n SELECT * FROM users ORDER BY name ASC;\n END\n `);\n\n /** Getting users */\n // highlight-start\n const [procedureResult] =\n await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');\n\n procedureResult.forEach((users) => {\n /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */\n if (isResultSetHeader(users)) {\n console.log('----------------');\n console.log('Affected Rows:', users.affectedRows);\n } else {\n users.forEach((user) => {\n console.log('----------------');\n console.log('id: ', user[0]);\n console.log('name:', user[1]);\n });\n }\n });\n // highlight-end\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * ----------------\n * id: 4\n * name: Gween\n * ----------------\n * id: 2\n * name: John\n * ----------------\n * id: 1\n * name: Josh\n * ----------------\n * id: 3\n * name: Marie\n * ----------------\n * Affected Rows: 0\n */\n"})})})})]})}function f(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>x});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function f(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function m(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function h(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!f({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[c,d]=m({queryString:t,groupId:a}),[h,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,i.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),y=(()=>{const e=c??h;return f({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!f({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function w(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),a=l[t].value;a!==r&&(c(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",y.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function R(e){const n=h(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",y.tabList),children:[(0,g.jsx)(w,{...e,...n}),(0,g.jsx)(v,{...e,...n})]})}function x(e){const n=(0,b.Z)();return(0,g.jsx)(R,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/bc31cbdb.d6f5b907.js b/zh-CN/assets/js/bc31cbdb.d6f5b907.js new file mode 100644 index 0000000000..e7f9662aaa --- /dev/null +++ b/zh-CN/assets/js/bc31cbdb.d6f5b907.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1437],{861:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},u="Procedure Call Packet (Row as Array)",c={id:"examples/typescript/procedure-call/row-as-array",title:"Procedure Call Packet (Row as Array)",description:"",source:"@site/docs/examples/typescript/procedure-call/01-row-as-array.mdx",sourceDirName:"examples/typescript/procedure-call",slug:"/examples/typescript/procedure-call/row-as-array",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-array",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/procedure-call/01-row-as-array.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"examples",previous:{title:"Procedure Call Packet",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/index"},next:{title:"Row Data Packet",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/row-data/index"}},i={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"procedure-call-packet-row-as-array",children:"Procedure Call Packet (Row as Array)"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ProcedureCallPacket,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n /** id */\n 0: number;\n /** name */\n 1: string;\n}\n\nconst isResultSetHeader = (data: unknown): data is ResultSetHeader => {\n if (!data || typeof data !== 'object') return false;\n\n const keys = [\n 'fieldCount',\n 'affectedRows',\n 'insertId',\n 'info',\n 'serverStatus',\n 'warningStatus',\n 'changedRows',\n ];\n\n return keys.every((key) => key in data);\n};\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n rowsAsArray: true,\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Deleting the `getUsers` procedure, if it exists */\n await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');\n\n /** Creating a procedure to get the users */\n await conn.query<ResultSetHeader>(`\n CREATE PROCEDURE getUsers()\n BEGIN\n SELECT * FROM users ORDER BY name ASC;\n END\n `);\n\n /** Getting users */\n // highlight-start\n const [procedureResult] =\n await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');\n\n procedureResult.forEach((users) => {\n /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */\n if (isResultSetHeader(users)) {\n console.log('----------------');\n console.log('Affected Rows:', users.affectedRows);\n } else {\n users.forEach((user) => {\n console.log('----------------');\n console.log('id: ', user[0]);\n console.log('name:', user[1]);\n });\n }\n });\n // highlight-end\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * ----------------\n * id: 4\n * name: Gween\n * ----------------\n * id: 2\n * name: John\n * ----------------\n * id: 1\n * name: Josh\n * ----------------\n * id: 3\n * name: Marie\n * ----------------\n * Affected Rows: 0\n */\n"})})})})]})}function m(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>R});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function h(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[c,d]=f({queryString:t,groupId:a}),[h,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,i.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),y=(()=>{const e=c??h;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function w(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),a=l[t].value;a!==r&&(c(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",y.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function x(e){const n=h(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",y.tabList),children:[(0,g.jsx)(w,{...e,...n}),(0,g.jsx)(v,{...e,...n})]})}function R(e){const n=(0,b.Z)();return(0,g.jsx)(x,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/bd3157e1.7ee0260c.js b/zh-CN/assets/js/bd3157e1.7ee0260c.js new file mode 100644 index 0000000000..cdae5adfab --- /dev/null +++ b/zh-CN/assets/js/bd3157e1.7ee0260c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8241],{1135:e=>{e.exports=JSON.parse('{"label":"SSL","permalink":"/node-mysql2/zh-CN/docs/tags/ssl","allTagsPath":"/node-mysql2/zh-CN/docs/tags","count":3,"items":[{"id":"examples/connections/create-connection","title":"createConnection","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/zh-CN/docs/examples/connections/create-connection"},{"id":"examples/connections/create-pool","title":"createPool","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/zh-CN/docs/examples/connections/create-pool"},{"id":"examples/connections/createPoolCluster","title":"createPoolCluster","description":"For queries please see the Simple Queries and Prepared Statements examples.","permalink":"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/c024e603.7094d8cf.js b/zh-CN/assets/js/c024e603.7094d8cf.js new file mode 100644 index 0000000000..94af118b92 --- /dev/null +++ b/zh-CN/assets/js/c024e603.7094d8cf.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6463],{9543:e=>{e.exports=JSON.parse('{"label":"Prepared Statements","permalink":"/node-mysql2/zh-CN/docs/tags/prepared-statements","allTagsPath":"/node-mysql2/zh-CN/docs/tags","count":5,"items":[{"id":"examples/queries/prepared-statements/delete","title":"DELETE","description":"execute(sql, values)","permalink":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/delete"},{"id":"examples/queries/prepared-statements/insert","title":"INSERT","description":"execute(sql, values)","permalink":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/insert"},{"id":"documentation/prepared-statements","title":"Prepared Statements","description":"Automatic creation, cached and re-used by connection","permalink":"/node-mysql2/zh-CN/docs/documentation/prepared-statements"},{"id":"examples/queries/prepared-statements/select","title":"SELECT","description":"execute(sql, values)","permalink":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/select"},{"id":"examples/queries/prepared-statements/update","title":"UPDATE","description":"execute(sql, values)","permalink":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/update"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/cdbda324.165064d3.js.LICENSE.txt b/zh-CN/assets/js/cdbda324.165064d3.js.LICENSE.txt deleted file mode 100644 index 4b1ddb7671..0000000000 --- a/zh-CN/assets/js/cdbda324.165064d3.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/** - * @license lucide-react v0.303.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ diff --git a/zh-CN/assets/js/cdbda324.165064d3.js b/zh-CN/assets/js/cdbda324.4bee815a.js similarity index 99% rename from zh-CN/assets/js/cdbda324.165064d3.js rename to zh-CN/assets/js/cdbda324.4bee815a.js index b6d750c4bb..689d5d6881 100644 --- a/zh-CN/assets/js/cdbda324.165064d3.js +++ b/zh-CN/assets/js/cdbda324.4bee815a.js @@ -1,2 +1,2 @@ -/*! For license information please see cdbda324.165064d3.js.LICENSE.txt */ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4116],{1851:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>h,contentTitle:()=>i,default:()=>g,frontMatter:()=>c,metadata:()=>a,toc:()=>d});var s=r(5893),t=r(1151),o=r(6393),l=r(3901);const c={},i="How to handle errors?",a={id:"faq/how-to-handle-errors",title:"How to handle errors?",description:"This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as createConnection, createPool, createPoolCluster, execute and query.",source:"@site/docs/faq/how-to-handle-errors.mdx",sourceDirName:"faq",slug:"/faq/how-to-handle-errors",permalink:"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/faq/how-to-handle-errors.mdx",tags:[],version:"current",frontMatter:{},sidebar:"faq",previous:{title:"Introduction",permalink:"/node-mysql2/zh-CN/docs/faq"}},h={},d=[{value:"Using callbacks",id:"using-callbacks",level:2},{value:"Using promises",id:"using-promises",level:2},{value:"Related Links",id:"related-links",level:2}];function u(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"how-to-handle-errors",children:"How to handle errors?"}),"\n",(0,s.jsxs)(n.p,{children:["This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"}),", ",(0,s.jsx)(n.code,{children:"createPoolCluster"}),", ",(0,s.jsx)(n.code,{children:"execute"})," and ",(0,s.jsx)(n.code,{children:"query"}),"."]}),"\n",(0,s.jsx)(n.h2,{id:"using-callbacks",children:"Using callbacks"}),"\n",(0,s.jsxs)(o.Z,{title:"createConnection",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested and confirmed as the correct answer."}),(0,s.jsx)(n.p,{children:"Handling connection errors by adding an error event listener:"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconnection = mysql.createConnection({\n host: '',\n user: '',\n database: '',\n});\n\n// highlight-start\nconnection.addListener('error', (err) => {\n if (err instanceof Error) {\n console.log(`createConnection error:`, err);\n }\n});\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPool",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool({\n host: '',\n user: '',\n database: '',\n});\n\npool.getConnection((err, connection) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('pool.getConnection error:', err);\n return;\n }\n // highlight-end\n});\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPoolCluster",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('NodeI', {\n host: '',\n user: '',\n database: '',\n});\n\npoolCluster.getConnection('NodeI', (err, connection) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('poolCluster.getConnection error:', err);\n return;\n }\n // highlight-end\n});\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"execute",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"execute"})," errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connection.execute('SELEC 1 + 1', (err, rows) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('execute error:', err);\n return;\n }\n // highlight-end\n\n console.log(rows);\n});\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsxs)(o.Z,{title:"query",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"query"})," errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connection.query('SELEC 1 + 1', (err, rows) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('query error:', err);\n return;\n }\n // highlight-end\n\n console.log(rows);\n});\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsx)(n.h2,{id:"using-promises",children:"Using promises"}),"\n",(0,s.jsxs)(o.Z,{title:"createConnection",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested and confirmed as the correct answer."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n const connection = await mysql.createConnection({\n host: '',\n user: '',\n database: '',\n });\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log(err);\n }\n}\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPool",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nconst pool = mysql.createPool({\n host: '',\n user: '',\n database: '',\n});\n\ntry {\n const connection = await pool.getConnection();\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log(err);\n }\n}\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPoolCluster",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('NodeI', {\n host: '',\n user: '',\n database: '',\n});\n\ntry {\n await poolCluster.getConnection('NodeI');\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log('createConnection error:', err);\n }\n}\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"execute",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"execute"})," errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const [rows] = await connection.execute('SELEC 1 + 1');\n console.log(rows);\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log('execute error:', err);\n }\n}\n// highlight-end\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsxs)(o.Z,{title:"query",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"query"})," errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const [rows] = await connection.query('SELEC 1 + 1');\n console.log(rows);\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log('query error:', err);\n }\n}\n// highlight-end\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"related-links",children:"Related Links"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Discussions","\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/discussions/1998",children:"#1998"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/discussions/2282",children:"#2282"})}),"\n"]}),"\n"]}),"\n"]})]})}function g(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},4673:(e,n,r)=>{r.d(n,{Z:()=>x});var s=r(7294),t=r(512),o=r(2389),l=r(6043);const c={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var i=r(5893);function a(e){return!!e&&("SUMMARY"===e.tagName||a(e.parentElement))}function h(e,n){return!!e&&(e===n||h(e.parentElement,n))}function d(e){let{summary:n,children:r,...d}=e;const u=(0,o.Z)(),g=(0,s.useRef)(null),{collapsed:x,setCollapsed:j}=(0,l.u)({initialState:!d.open}),[p,m]=(0,s.useState)(d.open),y=s.isValidElement(n)?n:(0,i.jsx)("summary",{children:n??"Details"});return(0,i.jsxs)("details",{...d,ref:g,open:p,"data-collapsed":x,className:(0,t.Z)(c.details,u&&c.isBrowser,d.className),onMouseDown:e=>{a(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const n=e.target;a(n)&&h(n,g.current)&&(e.preventDefault(),x?(j(!1),m(!0)):j(!0))},children:[y,(0,i.jsx)(l.z,{lazy:!1,collapsed:x,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{j(e),m(!e)},children:(0,i.jsx)("div",{className:c.collapsibleContent,children:r})})]})}const u={details:"details_b_Ee"},g="alert alert--info";function x(e){let{...n}=e;return(0,i.jsx)(d,{...n,className:(0,t.Z)(g,u.details,n.className)})}},6393:(e,n,r)=>{r.d(n,{Z:()=>o});var s=r(4673),t=r(5893);const o=e=>{let{children:n,open:r,title:o}=e;return(0,t.jsx)(s.Z,{open:r,className:"faq",summary:(0,t.jsx)("summary",{children:(0,t.jsx)("strong",{children:o})}),children:(0,t.jsx)("section",{children:n})})}},3901:(e,n,r)=>{r.d(n,{X:()=>u});var s=r(9960),t=r(4297);const o=(0,t.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),l=(0,t.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),c=(0,t.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),i=(0,t.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),a=(0,t.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),h=(0,t.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var d=r(5893);const u=e=>{let{level:n,message:r}=e;const t={0:{title:"Deprecated",icon:(0,d.jsx)(o,{})},1:{title:"Experimental",icon:(0,d.jsx)(l,{})},1.1:{title:"Early Development",icon:(0,d.jsx)(c,{})},1.2:{title:"Release Candidate",icon:(0,d.jsx)(i,{})},2:{title:"Stable",icon:(0,d.jsx)(a,{})},3:{title:"Legacy",icon:(0,d.jsx)(h,{})}};return(0,d.jsxs)("section",{className:"stability","data-level":n,children:[(0,d.jsx)(s.Z,{to:"/docs/stability-badges",children:(0,d.jsxs)("header",{children:[(0,d.jsx)("strong",{children:n}),(0,d.jsx)("span",{children:t[n].title}),t[n].icon]})}),r?(0,d.jsx)("p",{children:r}):null]})}},4297:(e,n,r)=>{r.d(n,{Z:()=>o});var s=r(7294),t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const o=(e,n)=>{const r=(0,s.forwardRef)((({color:r="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:c,className:i="",children:a,...h},d)=>{return(0,s.createElement)("svg",{ref:d,...t,width:o,height:o,stroke:r,strokeWidth:c?24*Number(l)/Number(o):l,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,i].join(" "),...h},[...n.map((([e,n])=>(0,s.createElement)(e,n))),...Array.isArray(a)?a:[a]]);var u}));return r.displayName=`${e}`,r}},1151:(e,n,r)=>{r.d(n,{Z:()=>c,a:()=>l});var s=r(7294);const t={},o=s.createContext(t);function l(e){const n=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),s.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file +/*! For license information please see cdbda324.4bee815a.js.LICENSE.txt */ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4116],{1851:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>h,contentTitle:()=>i,default:()=>g,frontMatter:()=>c,metadata:()=>a,toc:()=>d});var s=r(5893),t=r(1151),o=r(6393),l=r(3901);const c={},i="How to handle errors?",a={id:"faq/how-to-handle-errors",title:"How to handle errors?",description:"This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as createConnection, createPool, createPoolCluster, execute and query.",source:"@site/docs/faq/how-to-handle-errors.mdx",sourceDirName:"faq",slug:"/faq/how-to-handle-errors",permalink:"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/faq/how-to-handle-errors.mdx",tags:[],version:"current",frontMatter:{},sidebar:"faq",previous:{title:"Introduction",permalink:"/node-mysql2/zh-CN/docs/faq"}},h={},d=[{value:"Using callbacks",id:"using-callbacks",level:2},{value:"Using promises",id:"using-promises",level:2},{value:"Related Links",id:"related-links",level:2}];function u(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"how-to-handle-errors",children:"How to handle errors?"}),"\n",(0,s.jsxs)(n.p,{children:["This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as ",(0,s.jsx)(n.code,{children:"createConnection"}),", ",(0,s.jsx)(n.code,{children:"createPool"}),", ",(0,s.jsx)(n.code,{children:"createPoolCluster"}),", ",(0,s.jsx)(n.code,{children:"execute"})," and ",(0,s.jsx)(n.code,{children:"query"}),"."]}),"\n",(0,s.jsx)(n.h2,{id:"using-callbacks",children:"Using callbacks"}),"\n",(0,s.jsxs)(o.Z,{title:"createConnection",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested and confirmed as the correct answer."}),(0,s.jsx)(n.p,{children:"Handling connection errors by adding an error event listener:"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconnection = mysql.createConnection({\n host: '',\n user: '',\n database: '',\n});\n\n// highlight-start\nconnection.addListener('error', (err) => {\n if (err instanceof Error) {\n console.log(`createConnection error:`, err);\n }\n});\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPool",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst pool = mysql.createPool({\n host: '',\n user: '',\n database: '',\n});\n\npool.getConnection((err, connection) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('pool.getConnection error:', err);\n return;\n }\n // highlight-end\n});\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPoolCluster",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const mysql = require('mysql2');\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('NodeI', {\n host: '',\n user: '',\n database: '',\n});\n\npoolCluster.getConnection('NodeI', (err, connection) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('poolCluster.getConnection error:', err);\n return;\n }\n // highlight-end\n});\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"execute",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"execute"})," errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connection.execute('SELEC 1 + 1', (err, rows) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('execute error:', err);\n return;\n }\n // highlight-end\n\n console.log(rows);\n});\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsxs)(o.Z,{title:"query",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"query"})," errors through callback's ",(0,s.jsx)(n.code,{children:"err"})," parameter:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connection.query('SELEC 1 + 1', (err, rows) => {\n // highlight-start\n if (err instanceof Error) {\n console.log('query error:', err);\n return;\n }\n // highlight-end\n\n console.log(rows);\n});\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsx)(n.h2,{id:"using-promises",children:"Using promises"}),"\n",(0,s.jsxs)(o.Z,{title:"createConnection",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested and confirmed as the correct answer."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\ntry {\n const connection = await mysql.createConnection({\n host: '',\n user: '',\n database: '',\n });\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log(err);\n }\n}\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPool",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nconst pool = mysql.createPool({\n host: '',\n user: '',\n database: '',\n});\n\ntry {\n const connection = await pool.getConnection();\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log(err);\n }\n}\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"createPoolCluster",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling connection errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"import mysql from 'mysql2/promise';\n\nconst poolCluster = mysql.createPoolCluster();\n\npoolCluster.add('NodeI', {\n host: '',\n user: '',\n database: '',\n});\n\ntry {\n await poolCluster.getConnection('NodeI');\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log('createConnection error:', err);\n }\n}\n// highlight-end\n"})})]}),"\n",(0,s.jsxs)(o.Z,{title:"execute",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"execute"})," errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const [rows] = await connection.execute('SELEC 1 + 1');\n console.log(rows);\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log('execute error:', err);\n }\n}\n// highlight-end\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsxs)(o.Z,{title:"query",children:[(0,s.jsx)(l.X,{level:2,message:"This solution has been tested."}),(0,s.jsxs)(n.p,{children:["Handling ",(0,s.jsx)(n.code,{children:"query"})," errors through ",(0,s.jsx)(n.code,{children:"try-catch"})," block:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"try {\n const [rows] = await connection.query('SELEC 1 + 1');\n console.log(rows);\n // highlight-start\n} catch (err) {\n if (err instanceof Error) {\n console.log('query error:', err);\n }\n}\n// highlight-end\n"})}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["It will work for both ",(0,s.jsx)(n.strong,{children:"createConnection"}),", ",(0,s.jsx)(n.strong,{children:"createPool"})," and ",(0,s.jsx)(n.strong,{children:"createPoolCluster"})," connections."]}),"\n"]})]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h2,{id:"related-links",children:"Related Links"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Discussions","\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/discussions/1998",children:"#1998"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2/discussions/2282",children:"#2282"})}),"\n"]}),"\n"]}),"\n"]})]})}function g(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},4673:(e,n,r)=>{r.d(n,{Z:()=>x});var s=r(7294),t=r(512),o=r(2389),l=r(6043);const c={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var i=r(5893);function a(e){return!!e&&("SUMMARY"===e.tagName||a(e.parentElement))}function h(e,n){return!!e&&(e===n||h(e.parentElement,n))}function d(e){let{summary:n,children:r,...d}=e;const u=(0,o.Z)(),g=(0,s.useRef)(null),{collapsed:x,setCollapsed:j}=(0,l.u)({initialState:!d.open}),[p,m]=(0,s.useState)(d.open),y=s.isValidElement(n)?n:(0,i.jsx)("summary",{children:n??"Details"});return(0,i.jsxs)("details",{...d,ref:g,open:p,"data-collapsed":x,className:(0,t.Z)(c.details,u&&c.isBrowser,d.className),onMouseDown:e=>{a(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const n=e.target;a(n)&&h(n,g.current)&&(e.preventDefault(),x?(j(!1),m(!0)):j(!0))},children:[y,(0,i.jsx)(l.z,{lazy:!1,collapsed:x,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{j(e),m(!e)},children:(0,i.jsx)("div",{className:c.collapsibleContent,children:r})})]})}const u={details:"details_b_Ee"},g="alert alert--info";function x(e){let{...n}=e;return(0,i.jsx)(d,{...n,className:(0,t.Z)(g,u.details,n.className)})}},6393:(e,n,r)=>{r.d(n,{Z:()=>o});var s=r(4673),t=r(5893);const o=e=>{let{children:n,open:r,title:o}=e;return(0,t.jsx)(s.Z,{open:r,className:"faq",summary:(0,t.jsx)("summary",{children:(0,t.jsx)("strong",{children:o})}),children:(0,t.jsx)("section",{children:n})})}},3901:(e,n,r)=>{r.d(n,{X:()=>u});var s=r(3692),t=r(4297);const o=(0,t.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),l=(0,t.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),c=(0,t.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),i=(0,t.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),a=(0,t.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),h=(0,t.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var d=r(5893);const u=e=>{let{level:n,message:r}=e;const t={0:{title:"Deprecated",icon:(0,d.jsx)(o,{})},1:{title:"Experimental",icon:(0,d.jsx)(l,{})},1.1:{title:"Early Development",icon:(0,d.jsx)(c,{})},1.2:{title:"Release Candidate",icon:(0,d.jsx)(i,{})},2:{title:"Stable",icon:(0,d.jsx)(a,{})},3:{title:"Legacy",icon:(0,d.jsx)(h,{})}};return(0,d.jsxs)("section",{className:"stability","data-level":n,children:[(0,d.jsx)(s.Z,{to:"/docs/stability-badges",children:(0,d.jsxs)("header",{children:[(0,d.jsx)("strong",{children:n}),(0,d.jsx)("span",{children:t[n].title}),t[n].icon]})}),r?(0,d.jsx)("p",{children:r}):null]})}},4297:(e,n,r)=>{r.d(n,{Z:()=>o});var s=r(7294),t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const o=(e,n)=>{const r=(0,s.forwardRef)((({color:r="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:c,className:i="",children:a,...h},d)=>{return(0,s.createElement)("svg",{ref:d,...t,width:o,height:o,stroke:r,strokeWidth:c?24*Number(l)/Number(o):l,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,i].join(" "),...h},[...n.map((([e,n])=>(0,s.createElement)(e,n))),...Array.isArray(a)?a:[a]]);var u}));return r.displayName=`${e}`,r}},1151:(e,n,r)=>{r.d(n,{Z:()=>c,a:()=>l});var s=r(7294);const t={},o=s.createContext(t);function l(e){const n=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),s.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/cdbda324.4bee815a.js.LICENSE.txt b/zh-CN/assets/js/cdbda324.4bee815a.js.LICENSE.txt new file mode 100644 index 0000000000..3d48b22d31 --- /dev/null +++ b/zh-CN/assets/js/cdbda324.4bee815a.js.LICENSE.txt @@ -0,0 +1,6 @@ +/** + * @license lucide-react v0.306.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */ diff --git a/zh-CN/assets/js/cffacdf0.999e7b25.js b/zh-CN/assets/js/cffacdf0.999e7b25.js new file mode 100644 index 0000000000..ba6a7b150c --- /dev/null +++ b/zh-CN/assets/js/cffacdf0.999e7b25.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8406],{5721:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>p,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},u="Server",c={id:"examples/tests/server",title:"Server",description:"",source:"@site/docs/examples/tests/server.mdx",sourceDirName:"examples/tests",slug:"/examples/tests/server",permalink:"/node-mysql2/zh-CN/docs/examples/tests/server",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/tests/server.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Pool",permalink:"/node-mysql2/zh-CN/docs/examples/tests/pool"},next:{title:"Basic Custom Class",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-class"}},i={},d=[];function m(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"server",children:"Server"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\nconst flags = require('mysql2/lib/constants/client.js');\nconst auth = require('mysql2/lib/auth_41.js');\n\nfunction authenticate(params, cb) {\n console.log(params);\n const doubleSha = auth.doubleSha1('pass123');\n const isValid = auth.verifyToken(\n params.authPluginData1,\n params.authPluginData2,\n params.authToken,\n doubleSha\n );\n if (isValid) {\n cb(null);\n } else {\n // for list of codes lib/constants/errors.js\n cb(null, { message: 'wrong password dude', code: 1045 });\n }\n}\n\nconst server = mysql.createServer();\nserver.listen(3333);\nserver.on('connection', (conn) => {\n // we can deny connection here:\n // conn.writeError({ message: 'secret', code: 123 });\n // conn.close();\n conn.serverHandshake({\n protocolVersion: 10,\n serverVersion: '5.6.10', // 'node.js rocks',\n connectionId: 1234,\n statusFlags: 2,\n characterSet: 8,\n // capabilityFlags: 0xffffff,\n // capabilityFlags: -2113931265,\n capabilityFlags: 2181036031,\n authCallback: authenticate,\n });\n\n conn.on('field_list', (table, fields) => {\n console.log('FIELD LIST:', table, fields);\n conn.writeEof();\n });\n\n conn.on('query', (query) => {\n conn.writeColumns([\n {\n catalog: 'def',\n schema: 'test',\n table: 'test_table',\n orgTable: 'test_table',\n name: 'beta',\n orgName: 'beta',\n characterSet: 33,\n columnLength: 384,\n columnType: 253,\n flags: 0,\n decimals: 0,\n },\n ]);\n conn.writeTextRow(['test \u0442\u0435\u0441\u0442 \u30c6\u30b9\u30c8 \u0583\u0578\u0580\u0571\u0561\u0580\u056f\u0578\u0582\u0574 \u09aa\u09b0\u09c0\u0995\u09cd\u09b7\u09be ki\u1ec3m tra ']);\n conn.writeTextRow(['\u10e2\u10d4\u10e1\u10e2\u10d8 \u0aaa\u0ab0\u0ac0\u0a95\u0acd\u0ab7\u0aa3 \u05de\u05d1\u05d7\u05df \u05e4\u05bc\u05e8\u05d5\u05d1\u05d9\u05e8\u05df \u0627\u062e\u062a\u0628\u0627\u0631 \u092a\u0930\u0940\u0915\u094d\u0937\u0923']);\n conn.writeEof();\n conn.close();\n });\n});\n"})})})})]})}function p(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>k});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=m(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[c,d]=f({queryString:t,groupId:a}),[b,h]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,i.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),v=(()=>{const e=c??b;return p({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,s]),tabValues:s}}var h=t(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function y(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),a=l[t].value;a!==r&&(c(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function x(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function w(e){const n=b(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,g.jsx)(y,{...e,...n}),(0,g.jsx)(x,{...e,...n})]})}function k(e){const n=(0,h.Z)();return(0,g.jsx)(w,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/d2002d6f.9642730e.js b/zh-CN/assets/js/d2002d6f.9642730e.js deleted file mode 100644 index cc1dfbea0a..0000000000 --- a/zh-CN/assets/js/d2002d6f.9642730e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7184],{1185:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>o,metadata:()=>i,toc:()=>d});var n=r(5893),a=r(1151),s=r(4866),l=r(5162);const o={},u="Pass SHA",i={id:"examples/pass-sha",title:"Pass SHA",description:"",source:"@site/docs/examples/pass-sha.mdx",sourceDirName:"examples",slug:"/examples/pass-sha",permalink:"/node-mysql2/zh-CN/docs/examples/pass-sha",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/pass-sha.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"MySQL Proxy",permalink:"/node-mysql2/zh-CN/docs/examples/mysqlproxy"},next:{title:"Pool Test",permalink:"/node-mysql2/zh-CN/docs/examples/pool-test"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h1,{id:"pass-sha",children:"Pass SHA"}),"\n",(0,n.jsx)(s.Z,{children:(0,n.jsx)(l.Z,{value:"index.js",default:!0,children:(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2').createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'),\n});\n\nmysql.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [1, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n }\n);\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},5162:(e,t,r)=>{r.d(t,{Z:()=>l});r(7294);var n=r(512);const a={tabItem:"tabItem_Ymn6"};var s=r(5893);function l(e){let{children:t,hidden:r,className:l}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,n.Z)(a.tabItem,l),hidden:r,children:t})}},4866:(e,t,r)=>{r.d(t,{Z:()=>q});var n=r(7294),a=r(512),s=r(2466),l=r(6550),o=r(469),u=r(1980),i=r(7392),c=r(12);function d(e){return n.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,n.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:r}=e;return(0,n.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:r,attributes:n,default:a}}=e;return{value:t,label:r,attributes:n,default:a}}))}(r);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,r])}function m(e){let{value:t,tabValues:r}=e;return r.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:r}=e;const a=(0,l.k6)(),s=function(e){let{queryString:t=!1,groupId:r}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!r)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return r??null}({queryString:t,groupId:r});return[(0,u._X)(s),(0,n.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function h(e){const{defaultValue:t,queryString:r=!1,groupId:a}=e,s=p(e),[l,u]=(0,n.useState)((()=>function(e){let{defaultValue:t,tabValues:r}=e;if(0===r.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:r}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${r.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const n=r.find((e=>e.default))??r[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:t,tabValues:s}))),[i,d]=f({queryString:r,groupId:a}),[h,b]=function(e){let{groupId:t}=e;const r=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,c.Nk)(r);return[a,(0,n.useCallback)((e=>{r&&s.set(e)}),[r,s])]}({groupId:a}),v=(()=>{const e=i??h;return m({value:e,tabValues:s})?e:null})();(0,o.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:l,selectValue:(0,n.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=r(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=r(5893);function y(e){let{className:t,block:r,selectedValue:n,selectValue:l,tabValues:o}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,r=u.indexOf(t),a=o[r].value;a!==n&&(i(t),l(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const r=u.indexOf(e.currentTarget)+1;t=u[r]??u[0];break}case"ArrowLeft":{const r=u.indexOf(e.currentTarget)-1;t=u[r]??u[u.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":r},t),children:o.map((e=>{let{value:t,label:r,attributes:s}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:n===t?0:-1,"aria-selected":n===t,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":n===t}),children:r??t},t)}))})}function g(e){let{lazy:t,children:r,selectedValue:a}=e;const s=(Array.isArray(r)?r:[r]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,n.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,n.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function w(e){const t=h(e);return(0,x.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(y,{...e,...t}),(0,x.jsx)(g,{...e,...t})]})}function q(e){const t=(0,b.Z)();return(0,x.jsx)(w,{...e,children:d(e.children)},String(t))}},1151:(e,t,r)=>{r.d(t,{Z:()=>o,a:()=>l});var n=r(7294);const a={},s=n.createContext(a);function l(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:l(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/db044f71.6c67a975.js.LICENSE.txt b/zh-CN/assets/js/db044f71.6c67a975.js.LICENSE.txt deleted file mode 100644 index 4b1ddb7671..0000000000 --- a/zh-CN/assets/js/db044f71.6c67a975.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/** - * @license lucide-react v0.303.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ diff --git a/zh-CN/assets/js/db044f71.6c67a975.js b/zh-CN/assets/js/db044f71.ad539a4f.js similarity index 98% rename from zh-CN/assets/js/db044f71.6c67a975.js rename to zh-CN/assets/js/db044f71.ad539a4f.js index 82d655db71..164ede27bb 100644 --- a/zh-CN/assets/js/db044f71.6c67a975.js +++ b/zh-CN/assets/js/db044f71.ad539a4f.js @@ -1,2 +1,2 @@ -/*! For license information please see db044f71.6c67a975.js.LICENSE.txt */ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6159],{8009:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>u,frontMatter:()=>r,metadata:()=>l,toc:()=>d});var a=s(5893),i=s(1151),n=s(3901);const r={},o="Stability Badges",l={id:"stability-badges",title:"Stability Badges",description:"The Stability Badges are indications of a section's stability.",source:"@site/docs/stability-badges.mdx",sourceDirName:".",slug:"/stability-badges",permalink:"/node-mysql2/zh-CN/docs/stability-badges",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/stability-badges.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"MySQL2\u7684\u5386\u53f2\u4ee5\u53ca\u9009\u62e9\u539f\u56e0",permalink:"/node-mysql2/zh-CN/docs/history-and-why-mysq2"},next:{title:"Introduction",permalink:"/node-mysql2/zh-CN/docs/documentation"}},c={},d=[];function h(e){const t={blockquote:"blockquote",h1:"h1",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...(0,i.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h1,{id:"stability-badges",children:"Stability Badges"}),"\n",(0,a.jsxs)(t.p,{children:["The ",(0,a.jsx)(t.strong,{children:"Stability Badges"})," are indications of a section's stability."]}),"\n",(0,a.jsx)(t.p,{children:"The stability indices are as follows:"}),"\n",(0,a.jsx)(n.X,{level:0,message:"The feature might generate warnings and does not assure backward compatibility."}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsxs)(t.p,{children:[(0,a.jsx)(t.strong,{children:"Experimental"}),": These features are not bound by semantic versioning. They may undergo non-backward compatible changes or be removed in future releases. Their use in production is discouraged."]}),"\n",(0,a.jsxs)(t.blockquote,{children:["\n",(0,a.jsx)(t.p,{children:"Use caution with Experimental features, especially in libraries. Users might not expect changes from these unstable features. To reduce surprises, consider using a command-line flag for Experimental features."}),"\n"]}),"\n",(0,a.jsx)(t.p,{children:"Experimental features are classified into stages:"}),"\n",(0,a.jsx)(n.X,{level:1,message:"Experimental features at this stage are currently in development and prone to considerable changes."}),"\n",(0,a.jsx)(n.X,{level:1.1,message:"Experimental features at this stage are approaching minimum viability."}),"\n",(0,a.jsx)(n.X,{level:1.2,message:"Experimental features are close to reaching stability. Major changes are not expected, but they could still occur based on user feedback. Testing and feedback are important to ascertain the readiness of these features for stable classification."}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(n.X,{level:2,message:"Compatibility with the MySQL ecosystem is a high priority."}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(n.X,{level:3,message:"This feature, while not likely to be removed and still subject to semantic versioning, is not under active maintenance and other options are available."}),"\n",(0,a.jsxs)(t.ul,{children:["\n",(0,a.jsx)(t.li,{children:"Features are classified as legacy instead of deprecated when they cause no harm and have widespread use in the MySQL ecosystem. It's unlikely that bugs in legacy features will be addressed."}),"\n"]})]})}function u(e={}){const{wrapper:t}={...(0,i.a)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(h,{...e})}):h(e)}},3901:(e,t,s)=>{s.d(t,{X:()=>u});var a=s(9960),i=s(4297);const n=(0,i.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),r=(0,i.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),o=(0,i.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),l=(0,i.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),c=(0,i.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),d=(0,i.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var h=s(5893);const u=e=>{let{level:t,message:s}=e;const i={0:{title:"Deprecated",icon:(0,h.jsx)(n,{})},1:{title:"Experimental",icon:(0,h.jsx)(r,{})},1.1:{title:"Early Development",icon:(0,h.jsx)(o,{})},1.2:{title:"Release Candidate",icon:(0,h.jsx)(l,{})},2:{title:"Stable",icon:(0,h.jsx)(c,{})},3:{title:"Legacy",icon:(0,h.jsx)(d,{})}};return(0,h.jsxs)("section",{className:"stability","data-level":t,children:[(0,h.jsx)(a.Z,{to:"/docs/stability-badges",children:(0,h.jsxs)("header",{children:[(0,h.jsx)("strong",{children:t}),(0,h.jsx)("span",{children:i[t].title}),i[t].icon]})}),s?(0,h.jsx)("p",{children:s}):null]})}},4297:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(7294),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const n=(e,t)=>{const s=(0,a.forwardRef)((({color:s="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:l="",children:c,...d},h)=>{return(0,a.createElement)("svg",{ref:h,...i,width:n,height:n,stroke:s,strokeWidth:o?24*Number(r)/Number(n):r,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,l].join(" "),...d},[...t.map((([e,t])=>(0,a.createElement)(e,t))),...Array.isArray(c)?c:[c]]);var u}));return s.displayName=`${e}`,s}},1151:(e,t,s)=>{s.d(t,{Z:()=>o,a:()=>r});var a=s(7294);const i={},n=a.createContext(i);function r(e){const t=a.useContext(n);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),a.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file +/*! For license information please see db044f71.ad539a4f.js.LICENSE.txt */ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6159],{8009:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>u,frontMatter:()=>r,metadata:()=>l,toc:()=>d});var a=s(5893),i=s(1151),n=s(3901);const r={},o="Stability Badges",l={id:"stability-badges",title:"Stability Badges",description:"The Stability Badges are indications of a section's stability.",source:"@site/docs/stability-badges.mdx",sourceDirName:".",slug:"/stability-badges",permalink:"/node-mysql2/zh-CN/docs/stability-badges",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/stability-badges.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"MySQL2\u7684\u5386\u53f2\u4ee5\u53ca\u9009\u62e9\u539f\u56e0",permalink:"/node-mysql2/zh-CN/docs/history-and-why-mysq2"},next:{title:"Introduction",permalink:"/node-mysql2/zh-CN/docs/documentation"}},c={},d=[];function h(e){const t={blockquote:"blockquote",h1:"h1",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...(0,i.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h1,{id:"stability-badges",children:"Stability Badges"}),"\n",(0,a.jsxs)(t.p,{children:["The ",(0,a.jsx)(t.strong,{children:"Stability Badges"})," are indications of a section's stability."]}),"\n",(0,a.jsx)(t.p,{children:"The stability indices are as follows:"}),"\n",(0,a.jsx)(n.X,{level:0,message:"The feature might generate warnings and does not assure backward compatibility."}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsxs)(t.p,{children:[(0,a.jsx)(t.strong,{children:"Experimental"}),": These features are not bound by semantic versioning. They may undergo non-backward compatible changes or be removed in future releases. Their use in production is discouraged."]}),"\n",(0,a.jsxs)(t.blockquote,{children:["\n",(0,a.jsx)(t.p,{children:"Use caution with Experimental features, especially in libraries. Users might not expect changes from these unstable features. To reduce surprises, consider using a command-line flag for Experimental features."}),"\n"]}),"\n",(0,a.jsx)(t.p,{children:"Experimental features are classified into stages:"}),"\n",(0,a.jsx)(n.X,{level:1,message:"Experimental features at this stage are currently in development and prone to considerable changes."}),"\n",(0,a.jsx)(n.X,{level:1.1,message:"Experimental features at this stage are approaching minimum viability."}),"\n",(0,a.jsx)(n.X,{level:1.2,message:"Experimental features are close to reaching stability. Major changes are not expected, but they could still occur based on user feedback. Testing and feedback are important to ascertain the readiness of these features for stable classification."}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(n.X,{level:2,message:"Compatibility with the MySQL ecosystem is a high priority."}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(n.X,{level:3,message:"This feature, while not likely to be removed and still subject to semantic versioning, is not under active maintenance and other options are available."}),"\n",(0,a.jsxs)(t.ul,{children:["\n",(0,a.jsx)(t.li,{children:"Features are classified as legacy instead of deprecated when they cause no harm and have widespread use in the MySQL ecosystem. It's unlikely that bugs in legacy features will be addressed."}),"\n"]})]})}function u(e={}){const{wrapper:t}={...(0,i.a)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(h,{...e})}):h(e)}},3901:(e,t,s)=>{s.d(t,{X:()=>u});var a=s(3692),i=s(4297);const n=(0,i.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),r=(0,i.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),o=(0,i.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),l=(0,i.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),c=(0,i.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),d=(0,i.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var h=s(5893);const u=e=>{let{level:t,message:s}=e;const i={0:{title:"Deprecated",icon:(0,h.jsx)(n,{})},1:{title:"Experimental",icon:(0,h.jsx)(r,{})},1.1:{title:"Early Development",icon:(0,h.jsx)(o,{})},1.2:{title:"Release Candidate",icon:(0,h.jsx)(l,{})},2:{title:"Stable",icon:(0,h.jsx)(c,{})},3:{title:"Legacy",icon:(0,h.jsx)(d,{})}};return(0,h.jsxs)("section",{className:"stability","data-level":t,children:[(0,h.jsx)(a.Z,{to:"/docs/stability-badges",children:(0,h.jsxs)("header",{children:[(0,h.jsx)("strong",{children:t}),(0,h.jsx)("span",{children:i[t].title}),i[t].icon]})}),s?(0,h.jsx)("p",{children:s}):null]})}},4297:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(7294),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const n=(e,t)=>{const s=(0,a.forwardRef)((({color:s="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:l="",children:c,...d},h)=>{return(0,a.createElement)("svg",{ref:h,...i,width:n,height:n,stroke:s,strokeWidth:o?24*Number(r)/Number(n):r,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,l].join(" "),...d},[...t.map((([e,t])=>(0,a.createElement)(e,t))),...Array.isArray(c)?c:[c]]);var u}));return s.displayName=`${e}`,s}},1151:(e,t,s)=>{s.d(t,{Z:()=>o,a:()=>r});var a=s(7294);const i={},n=a.createContext(i);function r(e){const t=a.useContext(n);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),a.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/db044f71.ad539a4f.js.LICENSE.txt b/zh-CN/assets/js/db044f71.ad539a4f.js.LICENSE.txt new file mode 100644 index 0000000000..3d48b22d31 --- /dev/null +++ b/zh-CN/assets/js/db044f71.ad539a4f.js.LICENSE.txt @@ -0,0 +1,6 @@ +/** + * @license lucide-react v0.306.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */ diff --git a/zh-CN/assets/js/dcf552eb.ba8779b5.js b/zh-CN/assets/js/dcf552eb.ba8779b5.js deleted file mode 100644 index d463cb7a3a..0000000000 --- a/zh-CN/assets/js/dcf552eb.ba8779b5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4338],{6259:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>i,contentTitle:()=>u,default:()=>m,frontMatter:()=>o,metadata:()=>c,toc:()=>d});var r=n(5893),s=n(1151),a=n(4866),l=n(5162);const o={},u="RDS SSL",c={id:"examples/ssl/rds-ssl",title:"RDS SSL",description:"",source:"@site/docs/examples/ssl/rds-ssl.mdx",sourceDirName:"examples/ssl",slug:"/examples/ssl/rds-ssl",permalink:"/node-mysql2/zh-CN/docs/examples/ssl/rds-ssl",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/ssl/rds-ssl.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"SSL",permalink:"/node-mysql2/zh-CN/docs/category/ssl"},next:{title:"Select Over SSL",permalink:"/node-mysql2/zh-CN/docs/examples/ssl/select-over-ssl"}},i={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"rds-ssl",children:"RDS SSL"}),"\n",(0,r.jsx)(a.Z,{children:(0,r.jsx)(l.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst mysql = require('mysql2');\n\nconst conn = mysql.createConnection({\n user: process.env.USER,\n password: process.env.PASSWORD,\n database: process.env.DB,\n host: process.env.HOST,\n port: 3306,\n ssl: 'Amazon RDS',\n});\n\nconn.query(\"show status like 'Ssl_cipher'\", function (err, res) {\n console.log(err, res);\n conn.end();\n});\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var r=n(512);const s={tabItem:"tabItem_Ymn6"};var a=n(5893);function l(e){let{children:t,hidden:n,className:l}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,r.Z)(s.tabItem,l),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(7294),s=n(512),a=n(2466),l=n(6550),o=n(469),u=n(1980),c=n(7392),i=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:s}}=e;return{value:t,label:n,attributes:r,default:s}}))}(n);return function(e){const t=(0,c.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const s=(0,l.k6)(),a=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(a),(0,r.useCallback)((e=>{if(!a)return;const t=new URLSearchParams(s.location.search);t.set(a,e),s.replace({...s.location,search:t.toString()})}),[a,s])]}function h(e){const{defaultValue:t,queryString:n=!1,groupId:s}=e,a=p(e),[l,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:a}))),[c,d]=f({queryString:n,groupId:s}),[h,b]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[s,a]=(0,i.Nk)(n);return[s,(0,r.useCallback)((e=>{n&&a.set(e)}),[n,a])]}({groupId:s}),v=(()=>{const e=c??h;return m({value:e,tabValues:a})?e:null})();(0,o.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:l,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,a]),tabValues:a}}var b=n(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=n(5893);function g(e){let{className:t,block:n,selectedValue:r,selectValue:l,tabValues:o}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,a.o5)(),i=e=>{const t=e.currentTarget,n=u.indexOf(t),s=o[n].value;s!==r&&(c(t),l(s))},d=e=>{let t=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.Z)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:a}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:i,...a,className:(0,s.Z)("tabs__item",v.tabItem,a?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function y(e){let{lazy:t,children:n,selectedValue:s}=e;const a=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=a.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:a.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==s})))})}function S(e){const t=h(e);return(0,x.jsxs)("div",{className:(0,s.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(g,{...e,...t}),(0,x.jsx)(y,{...e,...t})]})}function w(e){const t=(0,b.Z)();return(0,x.jsx)(S,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>o,a:()=>l});var r=n(7294);const s={},a=r.createContext(s);function l(e){const t=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:l(e.components),r.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/df04d3c8.3f3e40e3.js b/zh-CN/assets/js/df04d3c8.3f3e40e3.js new file mode 100644 index 0000000000..8d1c95098f --- /dev/null +++ b/zh-CN/assets/js/df04d3c8.3f3e40e3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9140],{107:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},u="Procedure Call Packet",c={id:"examples/typescript/procedure-call/index",title:"Procedure Call Packet",description:"",source:"@site/docs/examples/typescript/procedure-call/00-index.mdx",sourceDirName:"examples/typescript/procedure-call",slug:"/examples/typescript/procedure-call/index",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/index",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/procedure-call/00-index.mdx",tags:[],version:"current",sidebarPosition:0,frontMatter:{},sidebar:"examples",previous:{title:"Basic Custom Class",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-class"},next:{title:"Procedure Call Packet (Row as Array)",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-array"}},i={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"procedure-call-packet",children:"Procedure Call Packet"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ProcedureCallPacket,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n id: number;\n name: string;\n}\n\nconst isResultSetHeader = (data: unknown): data is ResultSetHeader => {\n if (!data || typeof data !== 'object') return false;\n\n const keys = [\n 'fieldCount',\n 'affectedRows',\n 'insertId',\n 'info',\n 'serverStatus',\n 'warningStatus',\n 'changedRows',\n ];\n\n return keys.every((key) => key in data);\n};\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Deleting the `getUsers` procedure, if it exists */\n await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');\n\n /** Creating a procedure to get the users */\n await conn.query<ResultSetHeader>(`\n CREATE PROCEDURE getUsers()\n BEGIN\n SELECT * FROM users ORDER BY name ASC;\n END\n `);\n\n /** Getting users */\n // highlight-start\n const [procedureResult] =\n await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');\n\n procedureResult.forEach((users) => {\n /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */\n if (isResultSetHeader(users)) {\n console.log('----------------');\n console.log('Affected Rows:', users.affectedRows);\n } else {\n users.forEach((user) => {\n console.log('----------------');\n console.log('id: ', user.id);\n console.log('name:', user.name);\n });\n }\n });\n // highlight-end\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * ----------------\n * id: 4\n * name: Gween\n * ----------------\n * id: 2\n * name: John\n * ----------------\n * id: 1\n * name: Josh\n * ----------------\n * id: 3\n * name: Marie\n * ----------------\n * Affected Rows: 0\n */\n"})})})})]})}function m(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>R});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function h(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[c,d]=f({queryString:t,groupId:a}),[h,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,i.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),y=(()=>{const e=c??h;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function w(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),a=l[t].value;a!==r&&(c(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",y.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function x(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function v(e){const n=h(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",y.tabList),children:[(0,g.jsx)(w,{...e,...n}),(0,g.jsx)(x,{...e,...n})]})}function R(e){const n=(0,b.Z)();return(0,g.jsx)(v,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/df203c0f.56844b1b.js b/zh-CN/assets/js/df203c0f.56844b1b.js new file mode 100644 index 0000000000..319894edee --- /dev/null +++ b/zh-CN/assets/js/df203c0f.56844b1b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9924],{9047:(e,n,t)=>{t.d(n,{Z:()=>M});var i=t(7294),s=t(5893);function o(e){const{mdxAdmonitionTitle:n,rest:t}=function(e){const n=i.Children.toArray(e),t=n.find((e=>i.isValidElement(e)&&"mdxAdmonitionTitle"===e.type)),o=n.filter((e=>e!==t)),l=t?.props.children;return{mdxAdmonitionTitle:l,rest:o.length>0?(0,s.jsx)(s.Fragment,{children:o}):null}}(e.children),o=e.title??n;return{...e,...o&&{title:o},children:t}}var l=t(512),a=t(5999),r=t(5281);const c={admonition:"admonition_xJq3",admonitionHeading:"admonitionHeading_Gvgb",admonitionIcon:"admonitionIcon_Rf37",admonitionContent:"admonitionContent_BuS1"};function d(e){let{type:n,className:t,children:i}=e;return(0,s.jsx)("div",{className:(0,l.Z)(r.k.common.admonition,r.k.common.admonitionType(n),c.admonition,t),children:i})}function u(e){let{icon:n,title:t}=e;return(0,s.jsxs)("div",{className:c.admonitionHeading,children:[(0,s.jsx)("span",{className:c.admonitionIcon,children:n}),t]})}function h(e){let{children:n}=e;return n?(0,s.jsx)("div",{className:c.admonitionContent,children:n}):null}function m(e){const{type:n,icon:t,title:i,children:o,className:l}=e;return(0,s.jsxs)(d,{type:n,className:l,children:[(0,s.jsx)(u,{title:i,icon:t}),(0,s.jsx)(h,{children:o})]})}function g(e){return(0,s.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,s.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"})})}const x={icon:(0,s.jsx)(g,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function f(e){return(0,s.jsx)(m,{...x,...e,className:(0,l.Z)("alert alert--secondary",e.className),children:e.children})}function j(e){return(0,s.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,s.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"})})}const p={icon:(0,s.jsx)(j,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function v(e){return(0,s.jsx)(m,{...p,...e,className:(0,l.Z)("alert alert--success",e.className),children:e.children})}function N(e){return(0,s.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,s.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"})})}const Z={icon:(0,s.jsx)(N,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function w(e){return(0,s.jsx)(m,{...Z,...e,className:(0,l.Z)("alert alert--info",e.className),children:e.children})}function T(e){return(0,s.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,s.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"})})}const b={icon:(0,s.jsx)(T,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function y(e){return(0,s.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,s.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"})})}const z={icon:(0,s.jsx)(y,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const C={icon:(0,s.jsx)(T,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const k={...{note:f,tip:v,info:w,warning:function(e){return(0,s.jsx)(m,{...b,...e,className:(0,l.Z)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,s.jsx)(m,{...z,...e,className:(0,l.Z)("alert alert--danger",e.className),children:e.children})}},...{secondary:e=>(0,s.jsx)(f,{title:"secondary",...e}),important:e=>(0,s.jsx)(w,{title:"important",...e}),success:e=>(0,s.jsx)(v,{title:"success",...e}),caution:function(e){return(0,s.jsx)(m,{...C,...e,className:(0,l.Z)("alert alert--warning",e.className),children:e.children})}}};function M(e){const n=o(e),t=(i=n.type,k[i]||(console.warn(`No admonition component found for admonition type "${i}". Using Info as fallback.`),k.info));var i;return(0,s.jsx)(t,{...n})}},491:(e,n,t)=>{t.r(n),t.d(n,{default:()=>j});t(7294);var i=t(512),s=t(3692),o=t(8824),l=t(1944),a=t(5281),r=t(5999),c=t(197),d=t(2212),u=t(2503),h=t(5893);function m(e){const n=function(){const{selectMessage:e}=(0,o.c)();return n=>e(n,(0,r.I)({id:"theme.docs.tagDocListPageTitle.nDocsTagged",description:'Pluralized label for "{count} docs tagged". 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 doc tagged|{count} docs tagged"},{count:n}))}();return(0,r.I)({id:"theme.docs.tagDocListPageTitle",description:"The title of the page for a docs tag",message:'{nDocsTagged} with "{tagName}"'},{nDocsTagged:n(e.tag.count),tagName:e.tag.label})}function g(e){let{doc:n}=e;return(0,h.jsxs)("article",{className:"margin-vert--lg",children:[(0,h.jsx)(s.Z,{to:n.permalink,children:(0,h.jsx)(u.Z,{as:"h2",children:n.title})}),n.description&&(0,h.jsx)("p",{children:n.description})]})}function x(e){let{title:n}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(l.d,{title:n}),(0,h.jsx)(c.Z,{tag:"doc_tag_doc_list"})]})}function f(e){let{tag:n,title:t}=e;return(0,h.jsx)(l.FG,{className:(0,i.Z)(a.k.page.docsTagDocListPage),children:(0,h.jsx)("div",{className:"container margin-vert--lg",children:(0,h.jsx)("div",{className:"row",children:(0,h.jsxs)("main",{className:"col col--8 col--offset-2",children:[n.unlisted&&(0,h.jsx)(d.Z,{}),(0,h.jsxs)("header",{className:"margin-bottom--xl",children:[(0,h.jsx)(u.Z,{as:"h1",children:t}),(0,h.jsx)(s.Z,{href:n.allTagsPath,children:(0,h.jsx)(r.Z,{id:"theme.tags.tagsPageLink",description:"The label of the link targeting the tag list page",children:"View All Tags"})})]}),(0,h.jsx)("section",{className:"margin-vert--lg",children:n.items.map((e=>(0,h.jsx)(g,{doc:e},e.id)))})]})})})})}function j(e){const n=m(e);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(x,{...e,title:n}),(0,h.jsx)(f,{...e,title:n})]})}},2212:(e,n,t)=>{t.d(n,{Z:()=>m});t(7294);var i=t(512),s=t(5999),o=t(5742),l=t(5893);function a(){return(0,l.jsx)(s.Z,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function r(){return(0,l.jsx)(s.Z,{id:"theme.unlistedContent.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 c(){return(0,l.jsx)(o.Z,{children:(0,l.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}var d=t(5281),u=t(9047);function h(e){let{className:n}=e;return(0,l.jsx)(u.Z,{type:"caution",title:(0,l.jsx)(a,{}),className:(0,i.Z)(n,d.k.common.unlistedBanner),children:(0,l.jsx)(r,{})})}function m(e){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c,{}),(0,l.jsx)(h,{...e})]})}},8824:(e,n,t)=>{t.d(n,{c:()=>c});var i=t(7294),s=t(2263);const o=["zero","one","two","few","many","other"];function l(e){return o.filter((n=>e.includes(n)))}const a={locale:"en",pluralForms:l(["one","other"]),select:e=>1===e?"one":"other"};function r(){const{i18n:{currentLocale:e}}=(0,s.Z)();return(0,i.useMemo)((()=>{try{return function(e){const n=new Intl.PluralRules(e);return{locale:e,pluralForms:l(n.resolvedOptions().pluralCategories),select:e=>n.select(e)}}(e)}catch(n){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${n.message}\n`),a}}),[e])}function c(){const e=r();return{selectMessage:(n,t)=>function(e,n,t){const i=e.split("|");if(1===i.length)return i[0];i.length>t.pluralForms.length&&console.error(`For locale=${t.locale}, a maximum of ${t.pluralForms.length} plural forms are expected (${t.pluralForms.join(",")}), but the message contains ${i.length}: ${e}`);const s=t.select(n),o=t.pluralForms.indexOf(s);return i[Math.min(o,i.length-1)]}(t,n,e)}}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/e19cd79a.5eae6886.js b/zh-CN/assets/js/e19cd79a.5eae6886.js new file mode 100644 index 0000000000..883d3b56e3 --- /dev/null +++ b/zh-CN/assets/js/e19cd79a.5eae6886.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1429],{2998:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>m,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var t=s(5893),r=s(1151),l=s(4866),a=s(5162),o=s(6393),i=s(4379);const c={sidebar_position:0,tags:["Prepared Statements","Placeholders","Parameters","execute"]},u="INSERT",d={id:"examples/queries/prepared-statements/insert",title:"INSERT",description:"execute(sql, values)",source:"@site/docs/examples/queries/prepared-statements/insert.mdx",sourceDirName:"examples/queries/prepared-statements",slug:"/examples/queries/prepared-statements/insert",permalink:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/insert",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/queries/prepared-statements/insert.mdx",tags:[{label:"Prepared Statements",permalink:"/node-mysql2/zh-CN/docs/tags/prepared-statements"},{label:"Placeholders",permalink:"/node-mysql2/zh-CN/docs/tags/placeholders"},{label:"Parameters",permalink:"/node-mysql2/zh-CN/docs/tags/parameters"},{label:"execute",permalink:"/node-mysql2/zh-CN/docs/tags/execute"}],version:"current",sidebarPosition:0,frontMatter:{sidebar_position:0,tags:["Prepared Statements","Placeholders","Parameters","execute"]},sidebar:"examples",previous:{title:"Prepared Statements",permalink:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/"},next:{title:"SELECT",permalink:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/select"}},h={},p=[{value:"execute(sql, values)",id:"executesql-values",level:2},{value:"execute(options)",id:"executeoptions",level:2},{value:"execute(options, values)",id:"executeoptions-values",level:2},{value:"Glossary",id:"glossary",level:2},{value:"ResultSetHeader",id:"resultsetheader",level:3},{value:"QueryOptions",id:"queryoptions",level:3}];function x(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"insert",children:"INSERT"}),"\n",(0,t.jsx)(n.h2,{id:"executesql-values",children:"execute(sql, values)"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"execute(sql: string, values: any[])"})}),"\n"]}),"\n",(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';\n const values = ['Josh', 19, 'Page', 45];\n\n // highlight-next-line\n const [result, fields] = await connection.execute(sql, values);\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"callback.js",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';\nconst values = ['Josh', 19, 'Page', 45];\n\nconnection.execute(sql, values, (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n});\n"})})})]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"result"}),": contains a ",(0,t.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:["The connection used for the query (",(0,t.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,t.jsx)(n.code,{children:"createConnection"}),", ",(0,t.jsx)(n.code,{children:"createPool"})," or ",(0,t.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"executeoptions",children:"execute(options)"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsxs)(n.strong,{children:["execute(options: ",(0,t.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),")"]})}),"\n"]}),"\n",(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';\n const values = ['Josh', 19, 'Page', 45];\n\n // highlight-start\n const [result, fields] = await connection.execute({\n sql,\n values,\n // ... other options\n });\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"callback.js",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';\nconst values = ['Josh', 19, 'Page', 45];\n\nconnection.execute(\n {\n sql,\n values,\n // ... other options\n },\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"result"}),": contains a ",(0,t.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:["The connection used for the query (",(0,t.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,t.jsx)(n.code,{children:"createConnection"}),", ",(0,t.jsx)(n.code,{children:"createPool"})," or ",(0,t.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"executeoptions-values",children:"execute(options, values)"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsxs)(n.strong,{children:["execute(options: ",(0,t.jsx)(n.a,{href:"#queryoptions",children:"QueryOptions"}),", values: any[])"]})}),"\n"]}),"\n",(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(a.Z,{value:"promise.js",default:!0,children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"try {\n const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';\n const values = ['Josh', 19, 'Page', 45];\n\n // highlight-start\n const [result, fields] = await connection.execute(\n {\n sql,\n // ... other options\n },\n values\n );\n // highlight-end\n\n console.log(result);\n console.log(fields);\n} catch (err) {\n console.log(err);\n}\n"})})}),(0,t.jsx)(a.Z,{value:"callback.js",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-js",children:"const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';\nconst values = ['Josh', 19, 'Page', 45];\n\nconnection.execute(\n {\n sql,\n // ... other options\n },\n values,\n (err, result, fields) => {\n if (err instanceof Error) {\n console.log(err);\n return;\n }\n\n console.log(result);\n console.log(fields);\n }\n);\n"})})})]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"result"}),": contains a ",(0,t.jsx)(n.a,{href:"#resultsetheader",children:"ResultSetHeader"})," object, which provides details about the operation executed by the server."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"fields"})," contains extra meta data about the operation, if available"]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:["The connection used for the query (",(0,t.jsx)(n.code,{children:"execute"}),") can be obtained through the ",(0,t.jsx)(n.code,{children:"createConnection"}),", ",(0,t.jsx)(n.code,{children:"createPool"})," or ",(0,t.jsx)(n.code,{children:"createPoolCluster"})," methods."]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"glossary",children:"Glossary"}),"\n",(0,t.jsx)(n.h3,{id:"resultsetheader",children:"ResultSetHeader"}),"\n",(0,t.jsx)(o.Z,{title:"ResultSetHeader Specification",children:(0,t.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts",extractMethod:"ResultSetHeader",methodType:"interface"})}),"\n",(0,t.jsx)(n.h3,{id:"queryoptions",children:"QueryOptions"}),"\n",(0,t.jsx)(o.Z,{title:"QueryOptions Specification",children:(0,t.jsx)(i.I,{language:"ts",url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/typings/mysql/lib/protocol/sequences/Query.d.ts",extractMethod:"QueryOptions",methodType:"interface"})})]})}function m(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(x,{...e})}):x(e)}},5162:(e,n,s)=>{s.d(n,{Z:()=>a});s(7294);var t=s(512);const r={tabItem:"tabItem_Ymn6"};var l=s(5893);function a(e){let{children:n,hidden:s,className:a}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,t.Z)(r.tabItem,a),hidden:s,children:n})}},4866:(e,n,s)=>{s.d(n,{Z:()=>q});var t=s(7294),r=s(512),l=s(2466),a=s(6550),o=s(469),i=s(1980),c=s(7392),u=s(12);function d(e){return t.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,t.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:s}=e;return(0,t.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:s,attributes:t,default:r}}=e;return{value:n,label:s,attributes:t,default:r}}))}(s);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,s])}function p(e){let{value:n,tabValues:s}=e;return s.some((e=>e.value===n))}function x(e){let{queryString:n=!1,groupId:s}=e;const r=(0,a.k6)(),l=function(e){let{queryString:n=!1,groupId:s}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!s)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:n,groupId:s});return[(0,i._X)(l),(0,t.useCallback)((e=>{if(!l)return;const n=new URLSearchParams(r.location.search);n.set(l,e),r.replace({...r.location,search:n.toString()})}),[l,r])]}function m(e){const{defaultValue:n,queryString:s=!1,groupId:r}=e,l=h(e),[a,i]=(0,t.useState)((()=>function(e){let{defaultValue:n,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:s}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const t=s.find((e=>e.default))??s[0];if(!t)throw new Error("Unexpected error: 0 tabValues");return t.value}({defaultValue:n,tabValues:l}))),[c,d]=x({queryString:s,groupId:r}),[m,g]=function(e){let{groupId:n}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,l]=(0,u.Nk)(s);return[r,(0,t.useCallback)((e=>{s&&l.set(e)}),[s,l])]}({groupId:r}),j=(()=>{const e=c??m;return p({value:e,tabValues:l})?e:null})();(0,o.Z)((()=>{j&&i(j)}),[j]);return{selectedValue:a,selectValue:(0,t.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),g(e)}),[d,g,l]),tabValues:l}}var g=s(2389);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=s(5893);function b(e){let{className:n,block:s,selectedValue:t,selectValue:a,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:c}=(0,l.o5)(),u=e=>{const n=e.currentTarget,s=i.indexOf(n),r=o[s].value;r!==t&&(c(n),a(r))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const s=i.indexOf(e.currentTarget)+1;n=i[s]??i[0];break}case"ArrowLeft":{const s=i.indexOf(e.currentTarget)-1;n=i[s]??i[i.length-1];break}}n?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":s},n),children:o.map((e=>{let{value:n,label:s,attributes:l}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:t===n?0:-1,"aria-selected":t===n,ref:e=>i.push(e),onKeyDown:d,onClick:u,...l,className:(0,r.Z)("tabs__item",j.tabItem,l?.className,{"tabs__item--active":t===n}),children:s??n},n)}))})}function v(e){let{lazy:n,children:s,selectedValue:r}=e;const l=(Array.isArray(s)?s:[s]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===r));return e?(0,t.cloneElement)(e,{className:"margin-top--md"}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,t.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function y(e){const n=m(e);return(0,f.jsxs)("div",{className:(0,r.Z)("tabs-container",j.tabList),children:[(0,f.jsx)(b,{...e,...n}),(0,f.jsx)(v,{...e,...n})]})}function q(e){const n=(0,g.Z)();return(0,f.jsx)(y,{...e,children:d(e.children)},String(n))}},4379:(e,n,s)=>{s.d(n,{I:()=>i});var t=s(7294),r=s(2263),l=s(9286),a=s(5893);const o=()=>(0,a.jsx)("span",{className:"loader"}),i=e=>{let{url:n,language:s,extractMethod:i,methodType:c}=e;const[u,d]=(0,t.useState)(""),[h,p]=(0,t.useState)(!0),[x,m]=(0,t.useState)(!0),{siteConfig:g}=(0,r.Z)(),j=g.baseUrl.replace(/\/$/,""),f=/^\//.test(n)?`${j}${n}`:n;return(0,t.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(f,{signal:n}).then((e=>e.text())).then((e=>{const n=i&&c?((e,n,s)=>{const t=e.split("\n"),r=`${s} ${n}`;let l=!1,a=0,o="";for(const i of t)if(i.includes(r)&&(l=!0),l&&(i.includes("{")&&a++,o+=i+"\n",i.includes("}")&&(a--,0===a)))break;return o.trim()||e})(e,i,c):e;d(n||e),p(!1),m(!1)})).catch((()=>{m(!0),p(!1)})),()=>{e.abort()}}),[f,i,c]),(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(o,{}):(0,a.jsx)(a.Fragment,{children:x?(0,a.jsxs)("div",{children:["Unable to access the requested link: ",(0,a.jsx)("code",{children:f}),". Please verify the link or try again later."]}):(0,a.jsx)(l.Z,{className:`language-${s}`,children:u})})})}},6393:(e,n,s)=>{s.d(n,{Z:()=>l});var t=s(4673),r=s(5893);const l=e=>{let{children:n,open:s,title:l}=e;return(0,r.jsx)(t.Z,{open:s,className:"faq",summary:(0,r.jsx)("summary",{children:(0,r.jsx)("strong",{children:l})}),children:(0,r.jsx)("section",{children:n})})}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/e32cf8b2.d54b09d8.js b/zh-CN/assets/js/e32cf8b2.d54b09d8.js new file mode 100644 index 0000000000..6a8dbc4165 --- /dev/null +++ b/zh-CN/assets/js/e32cf8b2.d54b09d8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8474],{151:e=>{e.exports=JSON.parse('{"label":"query","permalink":"/node-mysql2/zh-CN/docs/tags/query","allTagsPath":"/node-mysql2/zh-CN/docs/tags","count":4,"items":[{"id":"examples/queries/simple-queries/delete","title":"DELETE","description":"The examples below also work for the execute method.","permalink":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/delete"},{"id":"examples/queries/simple-queries/insert","title":"INSERT","description":"The examples below also work for the execute method.","permalink":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/insert"},{"id":"examples/queries/simple-queries/select","title":"SELECT","description":"The examples below also work for the execute method.","permalink":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/select"},{"id":"examples/queries/simple-queries/update","title":"UPDATE","description":"The examples below also work for the execute method.","permalink":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/update"}],"unlisted":false}')}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/e3a2ad82.14bb2504.js b/zh-CN/assets/js/e3a2ad82.14bb2504.js deleted file mode 100644 index 84b1bc683d..0000000000 --- a/zh-CN/assets/js/e3a2ad82.14bb2504.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5775],{2017:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var r=t(5893),a=t(1151),s=t(4866),o=t(5162);const l={},u="Procedure Call Packet",c={id:"examples/typescript/procedure-call/procedure-call-packet",title:"Procedure Call Packet",description:"",source:"@site/docs/examples/typescript/procedure-call/00-procedure-call-packet.mdx",sourceDirName:"examples/typescript/procedure-call",slug:"/examples/typescript/procedure-call/procedure-call-packet",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/procedure-call-packet",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/procedure-call/00-procedure-call-packet.mdx",tags:[],version:"current",sidebarPosition:0,frontMatter:{},sidebar:"examples",previous:{title:"Procedure Call Packet",permalink:"/node-mysql2/zh-CN/docs/category/procedure-call-packet"},next:{title:"Procedure Call Packet (Row as Array)",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-array"}},i={},d=[];function p(e){const n={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"procedure-call-packet",children:"Procedure Call Packet"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"/**\n * The types are explicity for learning purpose\n * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`\n */\n\nimport mysql, {\n ConnectionOptions,\n ProcedureCallPacket,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\ninterface User extends RowDataPacket {\n id: number;\n name: string;\n}\n\nconst isResultSetHeader = (data: unknown): data is ResultSetHeader => {\n if (!data || typeof data !== 'object') return false;\n\n const keys = [\n 'fieldCount',\n 'affectedRows',\n 'insertId',\n 'info',\n 'serverStatus',\n 'warningStatus',\n 'changedRows',\n ];\n\n return keys.every((key) => key in data);\n};\n\n(async () => {\n const access: ConnectionOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n };\n\n const conn = await mysql.createConnection(access);\n\n /** Deleting the `users` table, if it exists */\n await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await conn.query<ResultSetHeader>(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await conn.execute<ResultSetHeader>(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Deleting the `getUsers` procedure, if it exists */\n await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');\n\n /** Creating a procedure to get the users */\n await conn.query<ResultSetHeader>(`\n CREATE PROCEDURE getUsers()\n BEGIN\n SELECT * FROM users ORDER BY name ASC;\n END\n `);\n\n /** Getting users */\n // highlight-start\n const [procedureResult] =\n await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');\n\n procedureResult.forEach((users) => {\n /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */\n if (isResultSetHeader(users)) {\n console.log('----------------');\n console.log('Affected Rows:', users.affectedRows);\n } else {\n users.forEach((user) => {\n console.log('----------------');\n console.log('id: ', user.id);\n console.log('name:', user.name);\n });\n }\n });\n // highlight-end\n\n await conn.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * ----------------\n * id: 4\n * name: Gween\n * ----------------\n * id: 2\n * name: John\n * ----------------\n * id: 1\n * name: Josh\n * ----------------\n * id: 3\n * name: Marie\n * ----------------\n * Affected Rows: 0\n */\n"})})})})]})}function m(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var r=t(512);const a={tabItem:"tabItem_Ymn6"};var s=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>k});var r=t(7294),a=t(512),s=t(2466),o=t(6550),l=t(469),u=t(1980),c=t(7392),i=t(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:n,children:t}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:r,default:a}}=e;return{value:n,label:t,attributes:r,default:a}}))}(t);return function(e){const n=(0,c.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function f(e){let{queryString:n=!1,groupId:t}=e;const a=(0,o.k6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(a.location.search);n.set(s,e),a.replace({...a.location,search:n.toString()})}),[s,a])]}function h(e){const{defaultValue:n,queryString:t=!1,groupId:a}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:s}))),[c,d]=f({queryString:t,groupId:a}),[h,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,s]=(0,i.Nk)(t);return[a,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:a}),y=(()=>{const e=c??h;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function w(e){let{className:n,block:t,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.o5)(),i=e=>{const n=e.currentTarget,t=u.indexOf(n),a=l[t].value;a!==r&&(c(n),o(a))},d=e=>{let n=null;switch(e.key){case"Enter":i(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>u.push(e),onKeyDown:d,onClick:i,...s,className:(0,a.Z)("tabs__item",y.tabItem,s?.className,{"tabs__item--active":r===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:a}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function x(e){const n=h(e);return(0,g.jsxs)("div",{className:(0,a.Z)("tabs-container",y.tabList),children:[(0,g.jsx)(w,{...e,...n}),(0,g.jsx)(v,{...e,...n})]})}function k(e){const n=(0,b.Z)();return(0,g.jsx)(x,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var r=t(7294);const a={},s=r.createContext(a);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/e9842ab8.7339367c.js b/zh-CN/assets/js/e9842ab8.7339367c.js deleted file mode 100644 index 3366a369ba..0000000000 --- a/zh-CN/assets/js/e9842ab8.7339367c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8218],{492:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>o,metadata:()=>i,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),l=n(5162);const o={},u="Prepared Statements",i={id:"examples/prepare",title:"Prepared Statements",description:"",source:"@site/docs/examples/prepare.mdx",sourceDirName:"examples",slug:"/examples/prepare",permalink:"/node-mysql2/zh-CN/docs/examples/prepare",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/prepare.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Pool Test",permalink:"/node-mysql2/zh-CN/docs/examples/pool-test"},next:{title:"Promise CO Await",permalink:"/node-mysql2/zh-CN/docs/examples/promise-co-await"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"prepared-statements",children:"Prepared Statements"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(l.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\n// get the client\nconst mysql = require('mysql2');\n\n// create the connection to database\nconst connection = mysql.createConnection({\n host: 'localhost',\n user: 'root',\n database: 'test',\n});\n\n// execute will internally call prepare and query\nconnection.execute(\n 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',\n ['Rick C-137', 53],\n (err, results, fields) => {\n console.log(results); // results contains rows returned by server\n console.log(fields); // fields contains extra meta data about results, if available\n\n // If you execute same statement again, it will be picked form a LRU cache\n // which will save query preparation time and give better performance\n }\n);\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>l});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function l(e){let{children:t,hidden:n,className:l}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,l),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>k});var r=n(7294),a=n(512),s=n(2466),l=n(6550),o=n(469),u=n(1980),i=n(7392),c=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const a=(0,l.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function h(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=p(e),[l,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[i,d]=f({queryString:n,groupId:a}),[h,b]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,c.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),v=(()=>{const e=i??h;return m({value:e,tabValues:s})?e:null})();(0,o.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:l,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),b(e)}),[d,b,s]),tabValues:s}}var b=n(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=n(5893);function g(e){let{className:t,block:n,selectedValue:r,selectValue:l,tabValues:o}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=u.indexOf(t),a=o[n].value;a!==r&&(i(t),l(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function y(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function w(e){const t=h(e);return(0,x.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(g,{...e,...t}),(0,x.jsx)(y,{...e,...t})]})}function k(e){const t=(0,b.Z)();return(0,x.jsx)(w,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>o,a:()=>l});var r=n(7294);const a={},s=r.createContext(a);function l(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:l(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/f43af5ae.50705533.js b/zh-CN/assets/js/f43af5ae.50705533.js deleted file mode 100644 index b1ab79de75..0000000000 --- a/zh-CN/assets/js/f43af5ae.50705533.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5909],{104:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>u,default:()=>p,frontMatter:()=>i,metadata:()=>l,toc:()=>d});var s=t(5893),r=t(1151),a=t(4866),o=t(5162);const i={},u="Basic Custom Class",l={id:"examples/typescript/basic-custom-class",title:"Basic Custom Class",description:"",source:"@site/docs/examples/typescript/basic-custom-class.mdx",sourceDirName:"examples/typescript",slug:"/examples/typescript/basic-custom-class",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-class",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/basic-custom-class.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"TypeScript",permalink:"/node-mysql2/zh-CN/docs/category/typescript"},next:{title:"Procedure Call Packet",permalink:"/node-mysql2/zh-CN/docs/category/procedure-call-packet"}},c={},d=[];function m(e){const n={code:"code",h1:"h1",pre:"pre",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"basic-custom-class",children:"Basic Custom Class"}),"\n",(0,s.jsxs)(a.Z,{children:[(0,s.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n */\n\nimport { PoolOptions } from 'mysql2/promise';\nimport { MySQL } from './db.js';\n\ninterface User extends RowDataPacket {\n id: number;\n name: string;\n}\n\nconst access: PoolOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n};\n\n(async () => {\n const mysql = new MySQL(access);\n\n /** Deleting the `users` table, if it exists */\n await mysql.queryResult('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await mysql.queryResult(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await mysql.executeResult(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Getting users */\n const [users] = await mysql.queryRows(\n 'SELECT * FROM `users` ORDER BY `name` ASC;'\n );\n\n users.forEach((user: User) => {\n console.log('-----------');\n console.log('id: ', user.id);\n console.log('name:', user.name);\n });\n\n await mysql.connection.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * -----------\n * id: 4\n * name: Gween\n * -----------\n * id: 2\n * name: John\n * -----------\n * id: 1\n * name: Josh\n * -----------\n * id: 3\n * name: Marie\n */\n"})})}),(0,s.jsx)(o.Z,{value:"db.ts",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n */\n\nimport {\n createPool,\n PoolOptions,\n Pool,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\nexport class MySQL {\n private conn: Pool;\n private credentials: PoolOptions;\n\n constructor(credentials: PoolOptions) {\n this.credentials = credentials;\n this.conn = createPool(this.credentials);\n }\n\n /** A random method to simulate a step before to get the class methods */\n private ensureConnection() {\n if (!this?.conn) this.conn = createPool(this.credentials);\n }\n\n /** For `SELECT` and `SHOW` */\n get queryRows() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<RowDataPacket[]>;\n }\n\n /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */\n get queryRowsAsArray() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<RowDataPacket[][]>;\n }\n\n /** For `INSERT`, `UPDATE`, etc. */\n get queryResult() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<ResultSetHeader>;\n }\n\n /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */\n get queryResults() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<ResultSetHeader[]>;\n }\n\n /** For `SELECT` and `SHOW` */\n get executeRows() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<RowDataPacket[]>;\n }\n\n /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */\n get executeRowsAsArray() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<RowDataPacket[][]>;\n }\n\n /** For `INSERT`, `UPDATE`, etc. */\n get executeResult() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<ResultSetHeader>;\n }\n\n /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */\n get executeResults() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<ResultSetHeader[]>;\n }\n\n /** Expose the Pool Connection */\n get connection() {\n return this.conn;\n }\n}\n"})})})]})]})}function p(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var s=t(512);const r={tabItem:"tabItem_Ymn6"};var a=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,s.Z)(r.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>E});var s=t(7294),r=t(512),a=t(2466),o=t(6550),i=t(469),u=t(1980),l=t(7392),c=t(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:t}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:s,default:r}}=e;return{value:n,label:t,attributes:s,default:r}}))}(t);return function(e){const n=(0,l.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function h(e){let{queryString:n=!1,groupId:t}=e;const r=(0,o.k6)(),a=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,u._X)(a),(0,s.useCallback)((e=>{if(!a)return;const n=new URLSearchParams(r.location.search);n.set(a,e),r.replace({...r.location,search:n.toString()})}),[a,r])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,a=m(e),[o,u]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=t.find((e=>e.default))??t[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:a}))),[l,d]=h({queryString:t,groupId:r}),[b,f]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,a]=(0,c.Nk)(t);return[r,(0,s.useCallback)((e=>{t&&a.set(e)}),[t,a])]}({groupId:r}),y=(()=>{const e=l??b;return p({value:e,tabValues:a})?e:null})();(0,i.Z)((()=>{y&&u(y)}),[y]);return{selectedValue:o,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),f(e)}),[d,f,a]),tabValues:a}}var f=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function x(e){let{className:n,block:t,selectedValue:s,selectValue:o,tabValues:i}=e;const u=[],{blockElementScrollPositionUntilNextRender:l}=(0,a.o5)(),c=e=>{const n=e.currentTarget,t=u.indexOf(n),r=i[t].value;r!==s&&(l(n),o(r))},d=e=>{let n=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const t=u.indexOf(e.currentTarget)+1;n=u[t]??u[0];break}case"ArrowLeft":{const t=u.indexOf(e.currentTarget)-1;n=u[t]??u[u.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":t},n),children:i.map((e=>{let{value:n,label:t,attributes:a}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>u.push(e),onKeyDown:d,onClick:c,...a,className:(0,r.Z)("tabs__item",y.tabItem,a?.className,{"tabs__item--active":s===n}),children:t??n},n)}))})}function w(e){let{lazy:n,children:t,selectedValue:r}=e;const a=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=a.find((e=>e.props.value===r));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:a.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function v(e){const n=b(e);return(0,g.jsxs)("div",{className:(0,r.Z)("tabs-container",y.tabList),children:[(0,g.jsx)(x,{...e,...n}),(0,g.jsx)(w,{...e,...n})]})}function E(e){const n=(0,f.Z)();return(0,g.jsx)(v,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>i,a:()=>o});var s=t(7294);const r={},a=s.createContext(r);function o(e){const n=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),s.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/f43af5ae.973dd9b6.js b/zh-CN/assets/js/f43af5ae.973dd9b6.js new file mode 100644 index 0000000000..f54956fd0e --- /dev/null +++ b/zh-CN/assets/js/f43af5ae.973dd9b6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5909],{104:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>l,default:()=>p,frontMatter:()=>i,metadata:()=>u,toc:()=>d});var s=t(5893),r=t(1151),a=t(4866),o=t(5162);const i={},l="Basic Custom Class",u={id:"examples/typescript/basic-custom-class",title:"Basic Custom Class",description:"",source:"@site/docs/examples/typescript/basic-custom-class.mdx",sourceDirName:"examples/typescript",slug:"/examples/typescript/basic-custom-class",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-class",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/typescript/basic-custom-class.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"Server",permalink:"/node-mysql2/zh-CN/docs/examples/tests/server"},next:{title:"Procedure Call Packet",permalink:"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/index"}},c={},d=[];function m(e){const n={code:"code",h1:"h1",pre:"pre",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"basic-custom-class",children:"Basic Custom Class"}),"\n",(0,s.jsxs)(a.Z,{children:[(0,s.jsx)(o.Z,{value:"index.ts",default:!0,children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n */\n\nimport { PoolOptions } from 'mysql2/promise';\nimport { MySQL } from './db.js';\n\ninterface User extends RowDataPacket {\n id: number;\n name: string;\n}\n\nconst access: PoolOptions = {\n host: '',\n user: '',\n password: '',\n database: '',\n};\n\n(async () => {\n const mysql = new MySQL(access);\n\n /** Deleting the `users` table, if it exists */\n await mysql.queryResult('DROP TABLE IF EXISTS `users`;');\n\n /** Creating a minimal user table */\n await mysql.queryResult(\n 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'\n );\n\n /** Inserting some users */\n const [inserted] = await mysql.executeResult(\n 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',\n ['Josh', 'John', 'Marie', 'Gween']\n );\n\n console.log('Inserted:', inserted.affectedRows);\n\n /** Getting users */\n const [users] = await mysql.queryRows(\n 'SELECT * FROM `users` ORDER BY `name` ASC;'\n );\n\n users.forEach((user: User) => {\n console.log('-----------');\n console.log('id: ', user.id);\n console.log('name:', user.name);\n });\n\n await mysql.connection.end();\n})();\n\n/** Output\n *\n * Inserted: 4\n * -----------\n * id: 4\n * name: Gween\n * -----------\n * id: 2\n * name: John\n * -----------\n * id: 1\n * name: Josh\n * -----------\n * id: 3\n * name: Marie\n */\n"})})}),(0,s.jsx)(o.Z,{value:"db.ts",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"/**\n * The types are explicity for learning purpose\n */\n\nimport {\n createPool,\n PoolOptions,\n Pool,\n ResultSetHeader,\n RowDataPacket,\n} from 'mysql2/promise';\n\nexport class MySQL {\n private conn: Pool;\n private credentials: PoolOptions;\n\n constructor(credentials: PoolOptions) {\n this.credentials = credentials;\n this.conn = createPool(this.credentials);\n }\n\n /** A random method to simulate a step before to get the class methods */\n private ensureConnection() {\n if (!this?.conn) this.conn = createPool(this.credentials);\n }\n\n /** For `SELECT` and `SHOW` */\n get queryRows() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<RowDataPacket[]>;\n }\n\n /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */\n get queryRowsAsArray() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<RowDataPacket[][]>;\n }\n\n /** For `INSERT`, `UPDATE`, etc. */\n get queryResult() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<ResultSetHeader>;\n }\n\n /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */\n get queryResults() {\n this.ensureConnection();\n return this.conn.query.bind(this.conn)<ResultSetHeader[]>;\n }\n\n /** For `SELECT` and `SHOW` */\n get executeRows() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<RowDataPacket[]>;\n }\n\n /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */\n get executeRowsAsArray() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<RowDataPacket[][]>;\n }\n\n /** For `INSERT`, `UPDATE`, etc. */\n get executeResult() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<ResultSetHeader>;\n }\n\n /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */\n get executeResults() {\n this.ensureConnection();\n return this.conn.execute.bind(this.conn)<ResultSetHeader[]>;\n }\n\n /** Expose the Pool Connection */\n get connection() {\n return this.conn;\n }\n}\n"})})})]})]})}function p(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},5162:(e,n,t)=>{t.d(n,{Z:()=>o});t(7294);var s=t(512);const r={tabItem:"tabItem_Ymn6"};var a=t(5893);function o(e){let{children:n,hidden:t,className:o}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,s.Z)(r.tabItem,o),hidden:t,children:n})}},4866:(e,n,t)=>{t.d(n,{Z:()=>E});var s=t(7294),r=t(512),a=t(2466),o=t(6550),i=t(469),l=t(1980),u=t(7392),c=t(12);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function m(e){const{values:n,children:t}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:s,default:r}}=e;return{value:n,label:t,attributes:s,default:r}}))}(t);return function(e){const n=(0,u.l)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function h(e){let{queryString:n=!1,groupId:t}=e;const r=(0,o.k6)(),a=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,l._X)(a),(0,s.useCallback)((e=>{if(!a)return;const n=new URLSearchParams(r.location.search);n.set(a,e),r.replace({...r.location,search:n.toString()})}),[a,r])]}function b(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,a=m(e),[o,l]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=t.find((e=>e.default))??t[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:a}))),[u,d]=h({queryString:t,groupId:r}),[b,f]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,a]=(0,c.Nk)(t);return[r,(0,s.useCallback)((e=>{t&&a.set(e)}),[t,a])]}({groupId:r}),y=(()=>{const e=u??b;return p({value:e,tabValues:a})?e:null})();(0,i.Z)((()=>{y&&l(y)}),[y]);return{selectedValue:o,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),f(e)}),[d,f,a]),tabValues:a}}var f=t(2389);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=t(5893);function x(e){let{className:n,block:t,selectedValue:s,selectValue:o,tabValues:i}=e;const l=[],{blockElementScrollPositionUntilNextRender:u}=(0,a.o5)(),c=e=>{const n=e.currentTarget,t=l.indexOf(n),r=i[t].value;r!==s&&(u(n),o(r))},d=e=>{let n=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const t=l.indexOf(e.currentTarget)+1;n=l[t]??l[0];break}case"ArrowLeft":{const t=l.indexOf(e.currentTarget)-1;n=l[t]??l[l.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":t},n),children:i.map((e=>{let{value:n,label:t,attributes:a}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>l.push(e),onKeyDown:d,onClick:c,...a,className:(0,r.Z)("tabs__item",y.tabItem,a?.className,{"tabs__item--active":s===n}),children:t??n},n)}))})}function v(e){let{lazy:n,children:t,selectedValue:r}=e;const a=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=a.find((e=>e.props.value===r));return e?(0,s.cloneElement)(e,{className:"margin-top--md"}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:a.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function w(e){const n=b(e);return(0,g.jsxs)("div",{className:(0,r.Z)("tabs-container",y.tabList),children:[(0,g.jsx)(x,{...e,...n}),(0,g.jsx)(v,{...e,...n})]})}function E(e){const n=(0,f.Z)();return(0,g.jsx)(w,{...e,children:d(e.children)},String(n))}},1151:(e,n,t)=>{t.d(n,{Z:()=>i,a:()=>o});var s=t(7294);const r={},a=s.createContext(r);function o(e){const n=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),s.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/f54f1246.a0ffeec8.js b/zh-CN/assets/js/f54f1246.a0ffeec8.js new file mode 100644 index 0000000000..46cb04f221 --- /dev/null +++ b/zh-CN/assets/js/f54f1246.a0ffeec8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[630],{4990:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>a,default:()=>p,frontMatter:()=>c,metadata:()=>o,toc:()=>l});var r=t(5893),s=t(1151);const c={tags:["Prepared Statements","execute"]},a="Prepared Statements",o={id:"documentation/prepared-statements",title:"Prepared Statements",description:"Automatic creation, cached and re-used by connection",source:"@site/docs/documentation/prepared-statements.mdx",sourceDirName:"documentation",slug:"/documentation/prepared-statements",permalink:"/node-mysql2/zh-CN/docs/documentation/prepared-statements",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/documentation/prepared-statements.mdx",tags:[{label:"Prepared Statements",permalink:"/node-mysql2/zh-CN/docs/tags/prepared-statements"},{label:"execute",permalink:"/node-mysql2/zh-CN/docs/tags/execute"}],version:"current",frontMatter:{tags:["Prepared Statements","execute"]},sidebar:"docs",previous:{title:"MySQL Server API",permalink:"/node-mysql2/zh-CN/docs/documentation/mysql-server"},next:{title:"Promise Wrappers",permalink:"/node-mysql2/zh-CN/docs/documentation/promise-wrapper"}},i={},l=[{value:"Automatic creation, cached and re-used by connection",id:"automatic-creation-cached-and-re-used-by-connection",level:2},{value:"Manual prepare / execute",id:"manual-prepare--execute",level:2},{value:"Configuration",id:"configuration",level:2},{value:"Serialization of bind parameters",id:"serialization-of-bind-parameters",level:2},{value:"Prepared Statements Helper",id:"prepared-statements-helper",level:2},{value:"Examples",id:"examples",level:2}];function d(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",ul:"ul",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"prepared-statements",children:"Prepared Statements"}),"\n",(0,r.jsx)(n.h2,{id:"automatic-creation-cached-and-re-used-by-connection",children:"Automatic creation, cached and re-used by connection"}),"\n",(0,r.jsxs)(n.p,{children:["Similar to ",(0,r.jsx)(n.code,{children:"connection.query()"}),"."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"connection.execute('select 1 + ? + ? as result', [5, 6], (err, rows) => {\n // rows: [ { result: 12 } ]\n // internally 'select 1 + ? + ? as result' is prepared first. On subsequent calls cached statement is re-used\n});\n\n// close cached statement for 'select 1 + ? + ? as result'. noop if not in cache\nconnection.unprepare('select 1 + ? + ? as result');\n"})}),"\n",(0,r.jsxs)(n.p,{children:["Note that ",(0,r.jsx)(n.code,{children:"connection.execute()"})," will cache the prepared statement for better performance, remove the cache with ",(0,r.jsx)(n.code,{children:"connection.unprepare()"})," when you're done."]}),"\n",(0,r.jsx)(n.h2,{id:"manual-prepare--execute",children:"Manual prepare / execute"}),"\n",(0,r.jsxs)(n.p,{children:["Manually prepared statements doesn't comes with LRU cache and SHOULD be closed using ",(0,r.jsx)(n.code,{children:"statement.close()"})," instead of ",(0,r.jsx)(n.code,{children:"connection.unprepare()"}),"."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"connection.prepare('select ? + ? as tests', (err, statement) => {\n // statement.parameters - array of column definitions, length === number of params, here 2\n // statement.columns - array of result column definitions. Can be empty if result schema is dynamic / not known\n // statement.id\n // statement.query\n\n statement.execute([1, 2], (err, rows, columns) => {\n // -> [ { tests: 3 } ]\n });\n\n // don't use connection.unprepare(), it won't work!\n // note that there is no callback here. There is no statement close ack at protocol level.\n statement.close();\n});\n"})}),"\n",(0,r.jsxs)(n.p,{children:["Note that you should not use statement after connection reset (",(0,r.jsx)(n.code,{children:"changeUser()"})," or disconnect). Statement scope is connection, you need to prepare statement for each new connection in order to use it."]}),"\n",(0,r.jsx)(n.h2,{id:"configuration",children:"Configuration"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"maxPreparedStatements"})," : We keep the cached statements in a ",(0,r.jsx)(n.a,{href:"https://github.com/isaacs/node-lru-cache",children:"lru-cache"}),". Default size is ",(0,r.jsx)(n.code,{children:"16000"})," but you can use this option to override it. Any statements that are dropped from cache will be ",(0,r.jsx)(n.code,{children:"closed"}),"."]}),"\n",(0,r.jsx)(n.h2,{id:"serialization-of-bind-parameters",children:"Serialization of bind parameters"}),"\n",(0,r.jsxs)(n.p,{children:["The bind parameter values passed to ",(0,r.jsx)(n.code,{children:"execute"})," are serialized JS -> MySQL as:"]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"null"})," -> ",(0,r.jsx)(n.code,{children:"NULL"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"number"})," -> ",(0,r.jsx)(n.code,{children:"DOUBLE"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"boolean"})," -> ",(0,r.jsx)(n.code,{children:"TINY"})," (0 for false, 1 for true)"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"object"})," -> depending on prototype:","\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"Date"})," -> ",(0,r.jsx)(n.code,{children:"DATETIME"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"JSON"})," like object - ",(0,r.jsx)(n.code,{children:"JSON"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"Buffer"})," -> ",(0,r.jsx)(n.code,{children:"VAR_STRING"})]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["Other -> ",(0,r.jsx)(n.code,{children:"VAR_STRING"})]}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["Passing in ",(0,r.jsx)(n.code,{children:"undefined"})," or a ",(0,r.jsx)(n.code,{children:"function"})," will result in an error."]}),"\n",(0,r.jsx)(n.h2,{id:"prepared-statements-helper",children:"Prepared Statements Helper"}),"\n",(0,r.jsxs)(n.p,{children:["MySQL2 provides ",(0,r.jsx)(n.code,{children:"execute"})," helper which will prepare and query the statement. You can also manually prepare / unprepare statement with ",(0,r.jsx)(n.code,{children:"prepare"})," / ",(0,r.jsx)(n.code,{children:"unprepare"})," methods."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-js",children:"connection.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [1, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n connection.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [3, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n connection.unprepare('select ?+1 as qqq, ? as rrr, ? as yyy');\n connection.execute(\n 'select ?+1 as qqq, ? as rrr, ? as yyy',\n [3, null, 3],\n (err, rows, fields) => {\n console.log(err, rows, fields);\n }\n );\n }\n );\n }\n);\n"})}),"\n",(0,r.jsx)(n.h2,{id:"examples",children:"Examples"}),"\n",(0,r.jsxs)(n.p,{children:["For Prepared Statements examples, please see ",(0,r.jsx)(n.a,{href:"http://localhost:3000/node-mysql2/docs/examples/queries/prepared-statements",children:"here"}),"."]})]})}function p(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},1151:(e,n,t)=>{t.d(n,{Z:()=>o,a:()=>a});var r=t(7294);const s={},c=r.createContext(s);function a(e){const n=r.useContext(c);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),r.createElement(c.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/f54f1246.be3648fa.js b/zh-CN/assets/js/f54f1246.be3648fa.js deleted file mode 100644 index d602220a2c..0000000000 --- a/zh-CN/assets/js/f54f1246.be3648fa.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[630],{4990:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>o,default:()=>h,frontMatter:()=>c,metadata:()=>a,toc:()=>d});var s=t(5893),r=t(1151);const c={},o="Prepared Statements",a={id:"documentation/prepared-statements",title:"Prepared Statements",description:"Automatic creation, cached and re-used by connection",source:"@site/docs/documentation/prepared-statements.mdx",sourceDirName:"documentation",slug:"/documentation/prepared-statements",permalink:"/node-mysql2/zh-CN/docs/documentation/prepared-statements",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/documentation/prepared-statements.mdx",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"MySQL Server API",permalink:"/node-mysql2/zh-CN/docs/documentation/mysql-server"},next:{title:"Promise Wrappers",permalink:"/node-mysql2/zh-CN/docs/documentation/promise-wrapper"}},i={},d=[{value:"Automatic creation, cached and re-used by connection",id:"automatic-creation-cached-and-re-used-by-connection",level:2},{value:"Manual prepare / execute",id:"manual-prepare--execute",level:2}];function l(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",ul:"ul",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"prepared-statements",children:"Prepared Statements"}),"\n",(0,s.jsx)(n.h2,{id:"automatic-creation-cached-and-re-used-by-connection",children:"Automatic creation, cached and re-used by connection"}),"\n",(0,s.jsxs)(n.p,{children:["Similar to ",(0,s.jsx)(n.code,{children:"connection.query()"}),"."]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connection.execute('select 1 + ? + ? as result', [5, 6], (err, rows) => {\n // rows: [ { result: 12 } ]\n // internally 'select 1 + ? + ? as result' is prepared first. On subsequent calls cached statement is re-used\n});\n\n// close cached statement for 'select 1 + ? + ? as result'. noop if not in cache\nconnection.unprepare('select 1 + ? + ? as result');\n"})}),"\n",(0,s.jsxs)(n.p,{children:["Note that ",(0,s.jsx)(n.code,{children:"connection.execute()"})," will cache the prepared statement for better performance, remove the cache with ",(0,s.jsx)(n.code,{children:"connection.unprepare()"})," when you're done."]}),"\n",(0,s.jsx)(n.h2,{id:"manual-prepare--execute",children:"Manual prepare / execute"}),"\n",(0,s.jsxs)(n.p,{children:["Manually prepared statements doesn't comes with LRU cache and SHOULD be closed using ",(0,s.jsx)(n.code,{children:"statement.close()"})," instead of ",(0,s.jsx)(n.code,{children:"connection.unprepare()"}),"."]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"connection.prepare('select ? + ? as tests', (err, statement) => {\n // statement.parameters - array of column definitions, length === number of params, here 2\n // statement.columns - array of result column definitions. Can be empty if result schema is dynamic / not known\n // statement.id\n // statement.query\n\n statement.execute([1, 2], (err, rows, columns) => {\n // -> [ { tests: 3 } ]\n });\n\n // don't use connection.unprepare(), it won't work!\n // note that there is no callback here. There is no statement close ack at protocol level.\n statement.close();\n});\n"})}),"\n",(0,s.jsxs)(n.p,{children:["Note that you should not use statement after connection reset (",(0,s.jsx)(n.code,{children:"changeUser()"})," or disconnect). Statement scope is connection, you need to prepare statement for each new connection in order to use it."]}),"\n",(0,s.jsx)(n.h1,{id:"configuration",children:"Configuration"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"maxPreparedStatements"})," : We keep the cached statements in a ",(0,s.jsx)(n.a,{href:"https://github.com/isaacs/node-lru-cache",children:"lru-cache"}),". Default size is ",(0,s.jsx)(n.code,{children:"16000"})," but you can use this option to override it. Any statements that are dropped from cache will be ",(0,s.jsx)(n.code,{children:"closed"}),"."]}),"\n",(0,s.jsx)(n.h1,{id:"serialization-of-bind-parameters",children:"Serialization of bind parameters"}),"\n",(0,s.jsxs)(n.p,{children:["The bind parameter values passed to ",(0,s.jsx)(n.code,{children:"execute"})," are serialized JS -> MySQL as:"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"null"})," -> ",(0,s.jsx)(n.code,{children:"NULL"})]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"number"})," -> ",(0,s.jsx)(n.code,{children:"DOUBLE"})]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"boolean"})," -> ",(0,s.jsx)(n.code,{children:"TINY"})," (0 for false, 1 for true)"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"object"})," -> depending on prototype:","\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"Date"})," -> ",(0,s.jsx)(n.code,{children:"DATETIME"})]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"JSON"})," like object - ",(0,s.jsx)(n.code,{children:"JSON"})]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"Buffer"})," -> ",(0,s.jsx)(n.code,{children:"VAR_STRING"})]}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["Other -> ",(0,s.jsx)(n.code,{children:"VAR_STRING"})]}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["Passing in ",(0,s.jsx)(n.code,{children:"undefined"})," or a ",(0,s.jsx)(n.code,{children:"function"})," will result in an error."]})]})}function h(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},1151:(e,n,t)=>{t.d(n,{Z:()=>a,a:()=>o});var s=t(7294);const r={},c=s.createContext(r);function o(e){const n=s.useContext(c);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),s.createElement(c.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/f76f5ab7.59ab11f8.js b/zh-CN/assets/js/f76f5ab7.59ab11f8.js new file mode 100644 index 0000000000..6daf7bd879 --- /dev/null +++ b/zh-CN/assets/js/f76f5ab7.59ab11f8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3776],{7153:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>i,toc:()=>d});var r=n(5893),a=n(1151),s=n(4866),o=n(5162);const l={},u="Pool",i={id:"examples/tests/pool",title:"Pool",description:"",source:"@site/docs/examples/tests/pool.mdx",sourceDirName:"examples/tests",slug:"/examples/tests/pool",permalink:"/node-mysql2/zh-CN/docs/examples/tests/pool",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/examples/tests/pool.mdx",tags:[],version:"current",frontMatter:{},sidebar:"examples",previous:{title:"MySQL Proxy",permalink:"/node-mysql2/zh-CN/docs/examples/tests/mysql-proxy"},next:{title:"Server",permalink:"/node-mysql2/zh-CN/docs/examples/tests/server"}},c={},d=[];function p(e){const t={code:"code",h1:"h1",pre:"pre",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"pool",children:"Pool"}),"\n",(0,r.jsx)(s.Z,{children:(0,r.jsx)(o.Z,{value:"index.js",default:!0,children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"'use strict';\n\nconst pool = require('mysql2').createPool({\n host: 'localhost',\n user: 'root',\n database: 'test',\n password: 'root',\n});\n\nsetInterval(() => {\n for (let i = 0; i < 5; ++i) {\n pool.query((err, rows, fields) => {\n console.log(rows, fields);\n // Connection is automatically released once query resolves\n });\n }\n}, 1000);\n\nsetInterval(() => {\n for (let i = 0; i < 5; ++i) {\n pool.getConnection((err, db) => {\n db.query('select sleep(0.5) as qqq', (err, rows, fields) => {\n console.log(rows, fields);\n db.release();\n });\n });\n }\n}, 1000);\n"})})})})]})}function m(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5162:(e,t,n)=>{n.d(t,{Z:()=>o});n(7294);var r=n(512);const a={tabItem:"tabItem_Ymn6"};var s=n(5893);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,o),hidden:n,children:t})}},4866:(e,t,n)=>{n.d(t,{Z:()=>q});var r=n(7294),a=n(512),s=n(2466),o=n(6550),l=n(469),u=n(1980),i=n(7392),c=n(12);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,i.l)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const a=(0,o.k6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u._X)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(a.location.search);t.set(s,e),a.replace({...a.location,search:t.toString()})}),[s,a])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[i,d]=f({queryString:n,groupId:a}),[b,h]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,s]=(0,c.Nk)(n);return[a,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:a}),v=(()=>{const e=i??b;return m({value:e,tabValues:s})?e:null})();(0,l.Z)((()=>{v&&u(v)}),[v]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),d(e),h(e)}),[d,h,s]),tabValues:s}}var h=n(2389);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=n(5893);function y(e){let{className:t,block:n,selectedValue:r,selectValue:o,tabValues:l}=e;const u=[],{blockElementScrollPositionUntilNextRender:i}=(0,s.o5)(),c=e=>{const t=e.currentTarget,n=u.indexOf(t),a=l[n].value;a!==r&&(i(t),o(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.Z)("tabs",{"tabs--block":n},t),children:l.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:d,onClick:c,...s,className:(0,a.Z)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function g(e){let{lazy:t,children:n,selectedValue:a}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===a));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==a})))})}function w(e){const t=b(e);return(0,x.jsxs)("div",{className:(0,a.Z)("tabs-container",v.tabList),children:[(0,x.jsx)(y,{...e,...t}),(0,x.jsx)(g,{...e,...t})]})}function q(e){const t=(0,h.Z)();return(0,x.jsx)(w,{...e,children:d(e.children)},String(t))}},1151:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>o});var r=n(7294);const a={},s=r.createContext(a);function o(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/f8d74a12.c9cd13ac.js b/zh-CN/assets/js/f8d74a12.c9cd13ac.js deleted file mode 100644 index 5b74b33388..0000000000 --- a/zh-CN/assets/js/f8d74a12.c9cd13ac.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see f8d74a12.c9cd13ac.js.LICENSE.txt */ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5807],{7330:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>h,contentTitle:()=>a,default:()=>p,frontMatter:()=>c,metadata:()=>d,toc:()=>u});var t=s(5893),i=s(1151),r=s(6393),l=s(8609),o=s(3901);const c={title:"Documentation Site"},a="Website Contributing Guidelines",d={id:"contributing/website",title:"Documentation Site",description:"This website is built using Docusaurus 3, a modern static website generator.",source:"@site/docs/contributing/website.mdx",sourceDirName:"contributing",slug:"/contributing/website",permalink:"/node-mysql2/zh-CN/docs/contributing/website",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/contributing/website.mdx",tags:[],version:"current",frontMatter:{title:"Documentation Site"},sidebar:"docs",previous:{title:"MySQL2",permalink:"/node-mysql2/zh-CN/docs/contributing"}},h={},u=[{value:"Environment",id:"environment",level:2},{value:"Development",id:"development",level:2},{value:"Extras Components",id:"extras-components",level:2},{value:"History",id:"history",level:3},{value:"Stability",id:"stability",level:3},{value:"FAQ",id:"faq",level:3},{value:"Running Tests",id:"running-tests",level:2}];function x(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"website-contributing-guidelines",children:"Website Contributing Guidelines"}),"\n",(0,t.jsxs)(n.p,{children:["This website is built using ",(0,t.jsx)(n.a,{href:"https://docusaurus.io/",children:"Docusaurus 3"}),", a modern static website generator."]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"environment",children:"Environment"}),"\n",(0,t.jsx)(n.p,{children:"You will need these tools installed on your system:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"https://nodejs.org/",children:"Node.js (18.x or higher)"})}),"\n"]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"development",children:"Development"}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:["Fork the ",(0,t.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2",children:"MySQL2"})," repository."]}),"\n",(0,t.jsxs)(n.li,{children:["Download your forked repository locally. The website's workspace is the \"",(0,t.jsx)(n.em,{children:"website"}),'" directory in ',(0,t.jsx)(n.strong,{children:"node-mysql2"})," root."]}),"\n",(0,t.jsxs)(n.li,{children:["Create a new branch from ",(0,t.jsx)(n.code,{children:"master"})," (optional)."]}),"\n",(0,t.jsxs)(n.li,{children:["Run ",(0,t.jsx)(n.code,{children:"cd website"})," to enter the website workspace."]}),"\n",(0,t.jsxs)(n.li,{children:["Run ",(0,t.jsx)(n.code,{children:"npm ci"})," to install the dependecies from ",(0,t.jsx)(n.em,{children:"package-lock.json"}),"."]}),"\n",(0,t.jsxs)(n.li,{children:["Run ",(0,t.jsx)(n.code,{children:"npm start"})," to starting the local development."]}),"\n"]}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:"It will start a local development server and opens up a browser window. Most changes are reflected live without having to restart the server."}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.strong,{children:"Docusaurus"})," complete documentation, please ",(0,t.jsx)(n.a,{href:"https://docusaurus.io/docs",children:"see here"}),"."]}),"\n",(0,t.jsx)(r.Z,{title:"CLI example",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/sidorares/node-mysql2.git\ngit checkout -b website # optional\ncd /path-to/node-mysql2/website\nnpm ci\nnpm start\n"})})}),"\n",(0,t.jsxs)(n.p,{children:["Documentation is auto-generated from ",(0,t.jsx)(n.strong,{children:"MDX"})," files placed in these directories:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.em,{children:"./docs/documentation"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.em,{children:"./docs/examples"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.em,{children:"./docs/faq"})}),"\n"]}),"\n",(0,t.jsxs)(n.admonition,{title:"Caution",type:"danger",children:[(0,t.jsxs)(n.p,{children:["Note that the website has its own ",(0,t.jsx)(n.em,{children:"package.json"}),"."]}),(0,t.jsxs)(n.p,{children:["Please, do not install dependencies for the website in ",(0,t.jsx)(n.strong,{children:"node-mysql2"})," root."]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"extras-components",children:"Extras Components"}),"\n",(0,t.jsx)(n.p,{children:"Every extra component is thoroughly documented with complete typings descriptions."}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://docusaurus.io/docs/markdown-features",children:(0,t.jsx)(n.strong,{children:"Docusaurus Markdown Features:"})})," The MDX compiler transforms Markdown files to React components, and allows you to use JSX in your Markdown content. This enables you to easily interleave React components within your content, and create delightful learning experiences."]}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"history",children:"History"}),"\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"History"})," component displays version changes in a table format, listing version numbers alongside their changes."]}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { History } from '@site/src/components/History';\n\n<History\n records={[\n {\n version: '1.0.0',\n changes: ['Some change message.'],\n },\n ]}\n/>\n"})}),"\n","\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["You can also utilize React components in the ",(0,t.jsx)(n.code,{children:"changes"})," option."]})}),"\n",(0,t.jsx)(r.Z,{title:"Example",children:(0,t.jsx)(l.A,{records:[{version:"1.0.0",changes:["Some change message."]}]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"stability",children:"Stability"}),"\n",(0,t.jsxs)(n.p,{children:["See the ",(0,t.jsx)(n.a,{href:"/docs/stability-badges",children:"Stability Badges"})," for more detais."]}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { Stability } from '@site/src/components/Stability';\n\n<Stability level={2} />\n<Stability level={2} message='Some message' />\n"})}),"\n","\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["You can also utilize React components in the ",(0,t.jsx)(n.code,{children:"message"})," option."]})}),"\n",(0,t.jsxs)(n.p,{children:["Available levels: ",(0,t.jsx)(n.code,{children:"0"}),", ",(0,t.jsx)(n.code,{children:"1"}),", ",(0,t.jsx)(n.code,{children:"1.1"}),", ",(0,t.jsx)(n.code,{children:"1.2"}),", ",(0,t.jsx)(n.code,{children:"2"})," and ",(0,t.jsx)(n.code,{children:"3"}),"."]}),"\n",(0,t.jsxs)(r.Z,{title:"Example",children:[(0,t.jsx)(o.X,{level:2}),(0,t.jsx)(o.X,{level:2,message:"Some message."})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"faq",children:"FAQ"}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { FAQ } from '@site/src/components/FAQ';\n\n<FAQ title='Title'>\n\n > Some markdown (**MDX**) content.\n\n</FAQ>\n"})}),"\n","\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["The ",(0,t.jsx)(n.strong,{children:"FAQ"})," component can be utilized in any section or page."]}),"\n",(0,t.jsxs)(n.li,{children:["Code blocks are compatible and can be used within the ",(0,t.jsx)(n.strong,{children:"FAQ"})," component."]}),"\n"]})}),"\n",(0,t.jsx)(r.Z,{title:"Example",children:(0,t.jsx)(r.Z,{title:"Title",children:(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["Some markdown (",(0,t.jsx)(n.strong,{children:"MDX"}),") content."]}),"\n"]})})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"running-tests",children:"Running Tests"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run test\n"})}),"\n",(0,t.jsxs)(r.Z,{title:"Check Prettier and ESLint rules for compliance",children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run lintcheck\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]}),"\n",(0,t.jsxs)(r.Z,{title:"Check for typings errors",children:[(0,t.jsx)(o.X,{level:1,message:(0,t.jsxs)(t.Fragment,{children:["Checks for ",(0,t.jsx)(n.strong,{children:"MDX"})," components are missing."]})}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run typecheck\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]}),"\n",(0,t.jsxs)(r.Z,{title:"Clear and build the website",children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run clear\nnpm run build\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]}),"\n",(0,t.jsxs)(r.Z,{title:"Fix issues from Prettier and ESLint rules",open:!0,children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run lint\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"To prevent lint issues, it is recommended to execute this command before creating your commit."}),"\n",(0,t.jsxs)(n.li,{children:["Not included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]})]})}function p(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(x,{...e})}):x(e)}},4673:(e,n,s)=>{s.d(n,{Z:()=>p});var t=s(7294),i=s(512),r=s(2389),l=s(6043);const o={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};var c=s(5893);function a(e){return!!e&&("SUMMARY"===e.tagName||a(e.parentElement))}function d(e,n){return!!e&&(e===n||d(e.parentElement,n))}function h(e){let{summary:n,children:s,...h}=e;const u=(0,r.Z)(),x=(0,t.useRef)(null),{collapsed:p,setCollapsed:m}=(0,l.u)({initialState:!h.open}),[j,g]=(0,t.useState)(h.open),y=t.isValidElement(n)?n:(0,c.jsx)("summary",{children:n??"Details"});return(0,c.jsxs)("details",{...h,ref:x,open:j,"data-collapsed":p,className:(0,i.Z)(o.details,u&&o.isBrowser,h.className),onMouseDown:e=>{a(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const n=e.target;a(n)&&d(n,x.current)&&(e.preventDefault(),p?(m(!1),g(!0)):m(!0))},children:[y,(0,c.jsx)(l.z,{lazy:!1,collapsed:p,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{m(e),g(!e)},children:(0,c.jsx)("div",{className:o.collapsibleContent,children:s})})]})}const u={details:"details_b_Ee"},x="alert alert--info";function p(e){let{...n}=e;return(0,c.jsx)(h,{...n,className:(0,i.Z)(x,u.details,n.className)})}},6393:(e,n,s)=>{s.d(n,{Z:()=>r});var t=s(4673),i=s(5893);const r=e=>{let{children:n,open:s,title:r}=e;return(0,i.jsx)(t.Z,{open:s,className:"faq",summary:(0,i.jsx)("summary",{children:(0,i.jsx)("strong",{children:r})}),children:(0,i.jsx)("section",{children:n})})}},8609:(e,n,s)=>{s.d(n,{A:()=>l});var t=s(4673);const i=(0,s(4297).Z)("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]);var r=s(5893);const l=e=>{let{records:n,open:s}=e;return(0,r.jsx)(t.Z,{open:s,summary:(0,r.jsxs)("summary",{children:[(0,r.jsx)(i,{})," History"]}),className:"history",children:(0,r.jsxs)("table",{children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Version"}),(0,r.jsx)("th",{children:"Changes"})]})}),(0,r.jsx)("tbody",{children:n.map(((e,n)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsxs)("strong",{children:["v",e.version.replace(/[^0-9.]/g,"")]})}),(0,r.jsx)("td",{children:(0,r.jsx)("div",{className:"changes",children:e.changes.map(((e,n)=>(0,r.jsx)("section",{children:e},`change:${n}`)))})})]},`record:${n}`)))})]})})}},3901:(e,n,s)=>{s.d(n,{X:()=>u});var t=s(9960),i=s(4297);const r=(0,i.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),l=(0,i.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),o=(0,i.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),c=(0,i.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),a=(0,i.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),d=(0,i.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var h=s(5893);const u=e=>{let{level:n,message:s}=e;const i={0:{title:"Deprecated",icon:(0,h.jsx)(r,{})},1:{title:"Experimental",icon:(0,h.jsx)(l,{})},1.1:{title:"Early Development",icon:(0,h.jsx)(o,{})},1.2:{title:"Release Candidate",icon:(0,h.jsx)(c,{})},2:{title:"Stable",icon:(0,h.jsx)(a,{})},3:{title:"Legacy",icon:(0,h.jsx)(d,{})}};return(0,h.jsxs)("section",{className:"stability","data-level":n,children:[(0,h.jsx)(t.Z,{to:"/docs/stability-badges",children:(0,h.jsxs)("header",{children:[(0,h.jsx)("strong",{children:n}),(0,h.jsx)("span",{children:i[n].title}),i[n].icon]})}),s?(0,h.jsx)("p",{children:s}):null]})}},4297:(e,n,s)=>{s.d(n,{Z:()=>r});var t=s(7294),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const r=(e,n)=>{const s=(0,t.forwardRef)((({color:s="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:c="",children:a,...d},h)=>{return(0,t.createElement)("svg",{ref:h,...i,width:r,height:r,stroke:s,strokeWidth:o?24*Number(l)/Number(r):l,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,c].join(" "),...d},[...n.map((([e,n])=>(0,t.createElement)(e,n))),...Array.isArray(a)?a:[a]]);var u}));return s.displayName=`${e}`,s}},1151:(e,n,s)=>{s.d(n,{Z:()=>o,a:()=>l});var t=s(7294);const i={},r=t.createContext(i);function l(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:l(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/f8d74a12.c9cd13ac.js.LICENSE.txt b/zh-CN/assets/js/f8d74a12.c9cd13ac.js.LICENSE.txt deleted file mode 100644 index 4b1ddb7671..0000000000 --- a/zh-CN/assets/js/f8d74a12.c9cd13ac.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/** - * @license lucide-react v0.303.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */ diff --git a/zh-CN/assets/js/f8d74a12.dacaf582.js b/zh-CN/assets/js/f8d74a12.dacaf582.js new file mode 100644 index 0000000000..b65180e74a --- /dev/null +++ b/zh-CN/assets/js/f8d74a12.dacaf582.js @@ -0,0 +1,2 @@ +/*! For license information please see f8d74a12.dacaf582.js.LICENSE.txt */ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5807],{7330:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>x,contentTitle:()=>d,default:()=>p,frontMatter:()=>a,metadata:()=>h,toc:()=>m});var t=s(5893),i=s(1151),r=s(6393),l=s(8609),o=s(3901),c=s(4379);const a={title:"Documentation Site"},d="Website Contributing Guidelines",h={id:"contributing/website",title:"Documentation Site",description:"This website is built using Docusaurus 3, a modern static website generator.",source:"@site/docs/contributing/website.mdx",sourceDirName:"contributing",slug:"/contributing/website",permalink:"/node-mysql2/zh-CN/docs/contributing/website",draft:!1,unlisted:!1,editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/docs/contributing/website.mdx",tags:[],version:"current",frontMatter:{title:"Documentation Site"},sidebar:"docs",previous:{title:"MySQL2",permalink:"/node-mysql2/zh-CN/docs/contributing"}},x={},m=[{value:"Environment",id:"environment",level:2},{value:"Development",id:"development",level:2},{value:"Extras Components",id:"extras-components",level:2},{value:"History",id:"history",level:3},{value:"Stability",id:"stability",level:3},{value:"FAQ",id:"faq",level:3},{value:"ExternalCodeEmbed",id:"externalcodeembed",level:3},{value:"Running Tests",id:"running-tests",level:2}];function u(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"website-contributing-guidelines",children:"Website Contributing Guidelines"}),"\n",(0,t.jsxs)(n.p,{children:["This website is built using ",(0,t.jsx)(n.a,{href:"https://docusaurus.io/",children:"Docusaurus 3"}),", a modern static website generator."]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"environment",children:"Environment"}),"\n",(0,t.jsx)(n.p,{children:"You will need these tools installed on your system:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"https://nodejs.org/",children:"Node.js (18.x or higher)"})}),"\n"]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"development",children:"Development"}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:["Fork the ",(0,t.jsx)(n.a,{href:"https://github.com/sidorares/node-mysql2",children:"MySQL2"})," repository."]}),"\n",(0,t.jsxs)(n.li,{children:["Download your forked repository locally. The website's workspace is the \"",(0,t.jsx)(n.em,{children:"website"}),'" directory in ',(0,t.jsx)(n.strong,{children:"node-mysql2"})," root."]}),"\n",(0,t.jsxs)(n.li,{children:["Create a new branch from ",(0,t.jsx)(n.code,{children:"master"})," (optional)."]}),"\n",(0,t.jsxs)(n.li,{children:["Run ",(0,t.jsx)(n.code,{children:"cd website"})," to enter the website workspace."]}),"\n",(0,t.jsxs)(n.li,{children:["Run ",(0,t.jsx)(n.code,{children:"npm ci"})," to install the dependecies from ",(0,t.jsx)(n.em,{children:"package-lock.json"}),"."]}),"\n",(0,t.jsxs)(n.li,{children:["Run ",(0,t.jsx)(n.code,{children:"npm start"})," to starting the local development."]}),"\n"]}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:"It will start a local development server and opens up a browser window. Most changes are reflected live without having to restart the server."}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.strong,{children:"Docusaurus"})," complete documentation, please ",(0,t.jsx)(n.a,{href:"https://docusaurus.io/docs",children:"see here"}),"."]}),"\n",(0,t.jsx)(r.Z,{title:"CLI example",children:(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/sidorares/node-mysql2.git\ngit checkout -b website # optional\ncd /path-to/node-mysql2/website\nnpm ci\nnpm start\n"})})}),"\n",(0,t.jsxs)(n.p,{children:["Documentation is auto-generated from ",(0,t.jsx)(n.strong,{children:"MDX"})," files placed in these directories:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.em,{children:"./docs/documentation"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.em,{children:"./docs/examples"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.em,{children:"./docs/faq"})}),"\n"]}),"\n",(0,t.jsxs)(n.admonition,{title:"Caution",type:"danger",children:[(0,t.jsxs)(n.p,{children:["Note that the website has its own ",(0,t.jsx)(n.em,{children:"package.json"}),"."]}),(0,t.jsxs)(n.p,{children:["Please, do not install dependencies for the website in ",(0,t.jsx)(n.strong,{children:"node-mysql2"})," root."]})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"extras-components",children:"Extras Components"}),"\n",(0,t.jsx)(n.p,{children:"Every extra component is thoroughly documented with complete typings descriptions."}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://docusaurus.io/docs/markdown-features",children:(0,t.jsx)(n.strong,{children:"Docusaurus Markdown Features:"})})," The MDX compiler transforms Markdown files to React components, and allows you to use JSX in your Markdown content. This enables you to easily interleave React components within your content, and create delightful learning experiences."]}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"history",children:"History"}),"\n",(0,t.jsxs)(n.p,{children:["The ",(0,t.jsx)(n.code,{children:"History"})," component displays version changes in a table format, listing version numbers alongside their changes."]}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { History } from '@site/src/components/History';\n\n<History\n records={[\n {\n version: '1.0.0',\n changes: ['Some change message.'],\n },\n ]}\n/>\n"})}),"\n","\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["You can also utilize React components in the ",(0,t.jsx)(n.code,{children:"changes"})," option."]})}),"\n",(0,t.jsx)(r.Z,{title:"Example",children:(0,t.jsx)(l.A,{records:[{version:"1.0.0",changes:["Some change message."]}]})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"stability",children:"Stability"}),"\n",(0,t.jsxs)(n.p,{children:["See the ",(0,t.jsx)(n.a,{href:"/docs/stability-badges",children:"Stability Badges"})," for more detais."]}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { Stability } from '@site/src/components/Stability';\n\n<Stability level={2} />\n<Stability level={2} message='Some message' />\n"})}),"\n","\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["You can also utilize React components in the ",(0,t.jsx)(n.code,{children:"message"})," option."]})}),"\n",(0,t.jsxs)(n.p,{children:["Available levels: ",(0,t.jsx)(n.code,{children:"0"}),", ",(0,t.jsx)(n.code,{children:"1"}),", ",(0,t.jsx)(n.code,{children:"1.1"}),", ",(0,t.jsx)(n.code,{children:"1.2"}),", ",(0,t.jsx)(n.code,{children:"2"})," and ",(0,t.jsx)(n.code,{children:"3"}),"."]}),"\n",(0,t.jsxs)(r.Z,{title:"Example",children:[(0,t.jsx)(o.X,{level:2}),(0,t.jsx)(o.X,{level:2,message:"Some message."})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"faq",children:"FAQ"}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { FAQ } from '@site/src/components/FAQ';\n\n<FAQ title='Title'>\n\n > Some markdown (**MDX**) content.\n\n</FAQ>\n"})}),"\n","\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["The ",(0,t.jsx)(n.strong,{children:"FAQ"})," component can be utilized in any section or page."]}),"\n",(0,t.jsxs)(n.li,{children:["Code blocks are compatible and can be used within the ",(0,t.jsx)(n.strong,{children:"FAQ"})," component."]}),"\n"]})}),"\n",(0,t.jsx)(r.Z,{title:"Example",children:(0,t.jsx)(r.Z,{title:"Title",children:(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["Some markdown (",(0,t.jsx)(n.strong,{children:"MDX"}),") content."]}),"\n"]})})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"externalcodeembed",children:"ExternalCodeEmbed"}),"\n","\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-tsx",children:"import { ExternalCodeEmbed } from '@site/src/components/ExternalCodeEmbed';\n\n<ExternalCodeEmbed\n url='https://github.com/sidorares/node-mysql2/blob/75b05f0765c9edd0c0be8f18d85be05618770cca/.prettierrc'\n language='json'\n/>\n\n<ExternalCodeEmbed\n url='https://raw.githubusercontent.com/sidorares/node-mysql2/master/tools/parse-row.js'\n language='js'\n extractMethod='parseC'\n methodType='function'\n/>\n"})}),"\n","\n",(0,t.jsxs)(r.Z,{title:"Example",children:[(0,t.jsx)(c.I,{url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/.prettierrc",language:"json"}),(0,t.jsx)(c.I,{url:"https://raw.githubusercontent.com/sidorares/node-mysql2/master/tools/parse-row.js",language:"js",extractMethod:"parseC",methodType:"function"})]}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h2,{id:"running-tests",children:"Running Tests"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run test\n"})}),"\n",(0,t.jsxs)(r.Z,{title:"Check Prettier and ESLint rules for compliance",children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run lintcheck\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]}),"\n",(0,t.jsxs)(r.Z,{title:"Check for typings errors",children:[(0,t.jsx)(o.X,{level:1,message:(0,t.jsxs)(t.Fragment,{children:["Checks for ",(0,t.jsx)(n.strong,{children:"MDX"})," components are missing."]})}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run typecheck\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]}),"\n",(0,t.jsxs)(r.Z,{title:"Clear and build the website",children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run clear\nnpm run build\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]}),"\n",(0,t.jsxs)(r.Z,{title:"Fix issues from Prettier and ESLint rules",open:!0,children:[(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm run lint\n"})}),(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"To prevent lint issues, it is recommended to execute this command before creating your commit."}),"\n",(0,t.jsxs)(n.li,{children:["Not included in the ",(0,t.jsx)(n.strong,{children:"GitHub Actions"})," workflow."]}),"\n"]})]})]})}function p(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}},4379:(e,n,s)=>{s.d(n,{I:()=>c});var t=s(7294),i=s(2263),r=s(9286),l=s(5893);const o=()=>(0,l.jsx)("span",{className:"loader"}),c=e=>{let{url:n,language:s,extractMethod:c,methodType:a}=e;const[d,h]=(0,t.useState)(""),[x,m]=(0,t.useState)(!0),[u,p]=(0,t.useState)(!0),{siteConfig:j}=(0,i.Z)(),g=j.baseUrl.replace(/\/$/,""),b=/^\//.test(n)?`${g}${n}`:n;return(0,t.useEffect)((()=>{const e=new AbortController,n=e.signal;return fetch(b,{signal:n}).then((e=>e.text())).then((e=>{const n=c&&a?((e,n,s)=>{const t=e.split("\n"),i=`${s} ${n}`;let r=!1,l=0,o="";for(const c of t)if(c.includes(i)&&(r=!0),r&&(c.includes("{")&&l++,o+=c+"\n",c.includes("}")&&(l--,0===l)))break;return o.trim()||e})(e,c,a):e;h(n||e),m(!1),p(!1)})).catch((()=>{p(!0),m(!1)})),()=>{e.abort()}}),[b,c,a]),(0,l.jsx)(l.Fragment,{children:x?(0,l.jsx)(o,{}):(0,l.jsx)(l.Fragment,{children:u?(0,l.jsxs)("div",{children:["Unable to access the requested link: ",(0,l.jsx)("code",{children:b}),". Please verify the link or try again later."]}):(0,l.jsx)(r.Z,{className:`language-${s}`,children:d})})})}},6393:(e,n,s)=>{s.d(n,{Z:()=>r});var t=s(4673),i=s(5893);const r=e=>{let{children:n,open:s,title:r}=e;return(0,i.jsx)(t.Z,{open:s,className:"faq",summary:(0,i.jsx)("summary",{children:(0,i.jsx)("strong",{children:r})}),children:(0,i.jsx)("section",{children:n})})}},8609:(e,n,s)=>{s.d(n,{A:()=>l});var t=s(4673);const i=(0,s(4297).Z)("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]);var r=s(5893);const l=e=>{let{records:n,open:s}=e;return(0,r.jsx)(t.Z,{open:s,summary:(0,r.jsxs)("summary",{children:[(0,r.jsx)(i,{})," History"]}),className:"history",children:(0,r.jsxs)("table",{children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Version"}),(0,r.jsx)("th",{children:"Changes"})]})}),(0,r.jsx)("tbody",{children:n.map(((e,n)=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsxs)("strong",{children:["v",e.version.replace(/[^0-9.]/g,"")]})}),(0,r.jsx)("td",{children:(0,r.jsx)("div",{className:"changes",children:e.changes.map(((e,n)=>(0,r.jsx)("section",{children:e},`change:${n}`)))})})]},`record:${n}`)))})]})})}},3901:(e,n,s)=>{s.d(n,{X:()=>x});var t=s(3692),i=s(4297);const r=(0,i.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),l=(0,i.Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),o=(0,i.Z)("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),c=(0,i.Z)("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]),a=(0,i.Z)("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),d=(0,i.Z)("LightbulbOff",[["path",{d:"M16.8 11.2c.8-.9 1.2-2 1.2-3.2a6 6 0 0 0-9.3-5",key:"1fkcox"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M6.3 6.3a4.67 4.67 0 0 0 1.2 5.2c.7.7 1.3 1.5 1.5 2.5",key:"10m8kw"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var h=s(5893);const x=e=>{let{level:n,message:s}=e;const i={0:{title:"Deprecated",icon:(0,h.jsx)(r,{})},1:{title:"Experimental",icon:(0,h.jsx)(l,{})},1.1:{title:"Early Development",icon:(0,h.jsx)(o,{})},1.2:{title:"Release Candidate",icon:(0,h.jsx)(c,{})},2:{title:"Stable",icon:(0,h.jsx)(a,{})},3:{title:"Legacy",icon:(0,h.jsx)(d,{})}};return(0,h.jsxs)("section",{className:"stability","data-level":n,children:[(0,h.jsx)(t.Z,{to:"/docs/stability-badges",children:(0,h.jsxs)("header",{children:[(0,h.jsx)("strong",{children:n}),(0,h.jsx)("span",{children:i[n].title}),i[n].icon]})}),s?(0,h.jsx)("p",{children:s}):null]})}},4297:(e,n,s)=>{s.d(n,{Z:()=>r});var t=s(7294),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const r=(e,n)=>{const s=(0,t.forwardRef)((({color:s="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:c="",children:a,...d},h)=>{return(0,t.createElement)("svg",{ref:h,...i,width:r,height:r,stroke:s,strokeWidth:o?24*Number(l)/Number(r):l,className:["lucide",`lucide-${x=e,x.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,c].join(" "),...d},[...n.map((([e,n])=>(0,t.createElement)(e,n))),...Array.isArray(a)?a:[a]]);var x}));return s.displayName=`${e}`,s}}}]); \ No newline at end of file diff --git a/zh-CN/assets/js/f8d74a12.dacaf582.js.LICENSE.txt b/zh-CN/assets/js/f8d74a12.dacaf582.js.LICENSE.txt new file mode 100644 index 0000000000..3d48b22d31 --- /dev/null +++ b/zh-CN/assets/js/f8d74a12.dacaf582.js.LICENSE.txt @@ -0,0 +1,6 @@ +/** + * @license lucide-react v0.306.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */ diff --git a/zh-CN/assets/js/main.7d1ad05e.js b/zh-CN/assets/js/main.7d1ad05e.js deleted file mode 100644 index 4aa0c095be..0000000000 --- a/zh-CN/assets/js/main.7d1ad05e.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see main.7d1ad05e.js.LICENSE.txt */ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[179],{1728:(e,t,n)=>{"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}n.d(t,{Z:()=>a});const a=function(){for(var e,t,n=0,a="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}},723:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});n(7294);var r=n(8356),a=n.n(r),o=n(6887);const i={"0397a6cc":[()=>n.e(9444).then(n.t.bind(n,8598,19)),"~docs/default/category-node-mysql-2-zh-cndocs-examples-category-ssl-f1e.json",8598],"08df0c0c":[()=>n.e(469).then(n.t.bind(n,9271,19)),"~docs/default/category-node-mysql-2-zh-cndocs-examples-category-procedure-call-packet-1ce.json",9271],"10c30137":[()=>Promise.all([n.e(532),n.e(8193)]).then(n.bind(n,6161)),"@site/docs/examples/connect-over-socks.mdx",6161],"13833ed5":[()=>Promise.all([n.e(532),n.e(2496)]).then(n.bind(n,2215)),"@site/docs/examples/typescript/row-data/02-multi-statements.mdx",2215],"14eb3368":[()=>Promise.all([n.e(532),n.e(9817)]).then(n.bind(n,4228)),"@theme/DocCategoryGeneratedIndexPage",4228],17896441:[()=>Promise.all([n.e(532),n.e(7918)]).then(n.bind(n,9678)),"@theme/DocItem",9678],"1a4e3797":[()=>Promise.all([n.e(532),n.e(7920)]).then(n.bind(n,2027)),"@theme/SearchPage",2027],"1cee01a7":[()=>Promise.all([n.e(532),n.e(384)]).then(n.bind(n,5235)),"@site/docs/examples/typescript/row-data/03-row-as-array-multi-statements.mdx",5235],"1df93b7f":[()=>n.e(3237).then(n.bind(n,9754)),"@site/src/pages/index.tsx",9754],"1f08bd40":[()=>Promise.all([n.e(532),n.e(312)]).then(n.bind(n,5467)),"@site/docs/examples/typescript/row-data/00-row-data-packet.mdx",5467],"27e19f0f":[()=>n.e(6753).then(n.t.bind(n,9540,19)),"~docs/default/category-node-mysql-2-zh-cndocs-examples-category-typescript-b59.json",9540],"2bc14e22":[()=>Promise.all([n.e(532),n.e(2839)]).then(n.bind(n,4760)),"@site/docs/documentation/typescript-examples.mdx",4760],"3945bec1":[()=>n.e(8882).then(n.bind(n,1889)),"@site/docs/documentation/authentication-switch.mdx",1889],"3be0564c":[()=>Promise.all([n.e(532),n.e(9594)]).then(n.bind(n,3034)),"@site/docs/examples/binlog-watcher.mdx",3034],"3bea1af6":[()=>Promise.all([n.e(532),n.e(9264)]).then(n.bind(n,3006)),"@site/docs/examples/execute.mdx",3006],"43758d02":[()=>Promise.all([n.e(532),n.e(764)]).then(n.bind(n,3230)),"@site/docs/examples/pool-test.mdx",3230],"4e547710":[()=>Promise.all([n.e(532),n.e(1449)]).then(n.bind(n,9393)),"@site/docs/examples/promise-co-await.mdx",9393],"4e92b6b6":[()=>n.e(3586).then(n.bind(n,3769)),"@site/docs/faq/00-index.mdx",3769],"546b1c5f":[()=>n.e(8263).then(n.bind(n,403)),"@site/docs/documentation/promise-wrapper.mdx",403],"5483291d":[()=>n.e(8648).then(n.bind(n,5707)),"@site/i18n/zh-CN/docusaurus-plugin-content-docs/current/api-and-configurations.mdx",5707],"54dbd6f3":[()=>Promise.all([n.e(532),n.e(4917)]).then(n.bind(n,929)),"@site/docs/examples/queries/select.mdx",929],"5748a325":[()=>Promise.all([n.e(532),n.e(1647)]).then(n.bind(n,4444)),"@site/docs/examples/server.mdx",4444],57495183:[()=>n.e(5003).then(n.bind(n,4304)),"@site/docs/documentation/mysql-server.mdx",4304],"5814edec":[()=>Promise.all([n.e(532),n.e(3561)]).then(n.bind(n,3788)),"@site/docs/examples/typescript/row-data/01-row-as-array.mdx",3788],"5e95c892":[()=>n.e(9661).then(n.bind(n,1892)),"@theme/DocsRoot",1892],"5e9f5e1a":[()=>Promise.resolve().then(n.bind(n,6809)),"@generated/docusaurus.config",6809],"73aa2d44":[()=>n.e(378).then(n.bind(n,5879)),"@site/i18n/zh-CN/docusaurus-plugin-content-docs/current/acknowledgements.mdx",5879],"75b440d9":[()=>Promise.all([n.e(532),n.e(9521)]).then(n.bind(n,3083)),"@site/docs/examples/ssl/select-over-ssl.mdx",3083],"76dfa484":[()=>Promise.all([n.e(532),n.e(3433)]).then(n.bind(n,7345)),"@site/docs/examples/00-index.mdx",7345],"935f2afb":[()=>n.e(53).then(n.t.bind(n,1109,19)),"~docs/default/version-current-metadata-prop-751.json",1109],"93f3cbcf":[()=>Promise.all([n.e(532),n.e(1883)]).then(n.bind(n,4972)),"@site/docs/examples/mysqlproxy.mdx",4972],"95bd4756":[()=>n.e(9667).then(n.t.bind(n,7190,19)),"~docs/default/category-node-mysql-2-zh-cndocs-examples-category-row-data-packet-8ad.json",7190],"9df47158":[()=>Promise.all([n.e(532),n.e(9010)]).then(n.bind(n,9964)),"@site/i18n/zh-CN/docusaurus-plugin-content-docs/current/index.mdx",9964],"9e767aa9":[()=>n.e(8806).then(n.bind(n,7372)),"@site/docs/documentation/00-index.mdx",7372],a0fa2d29:[()=>n.e(465).then(n.t.bind(n,9797,19)),"~docs/default/category-node-mysql-2-zh-cndocs-examples-category-queries-69e.json",9797],a7bd4aaa:[()=>n.e(8518).then(n.bind(n,8564)),"@theme/DocVersionRoot",8564],a94703ab:[()=>Promise.all([n.e(532),n.e(4368)]).then(n.bind(n,2674)),"@theme/DocRoot",2674],ac5f2e4a:[()=>n.e(9380).then(n.t.bind(n,2776,19)),"/home/runner/work/node-mysql2/node-mysql2/website/.docusaurus/@easyops-cn/docusaurus-search-local/default/plugin-route-context-module-100.json",2776],b5fe66e0:[()=>n.e(3087).then(n.bind(n,8810)),"@site/i18n/zh-CN/docusaurus-plugin-content-docs/current/history-and-why-mysq2.mdx",8810],bc31cbdb:[()=>Promise.all([n.e(532),n.e(1437)]).then(n.bind(n,861)),"@site/docs/examples/typescript/procedure-call/01-row-as-array.mdx",861],c84c75a7:[()=>n.e(1233).then(n.t.bind(n,9822,19)),"/home/runner/work/node-mysql2/node-mysql2/website/.docusaurus/docusaurus-plugin-content-docs/default/plugin-route-context-module-100.json",9822],cdbda324:[()=>Promise.all([n.e(532),n.e(4116)]).then(n.bind(n,1851)),"@site/docs/faq/how-to-handle-errors.mdx",1851],d2002d6f:[()=>Promise.all([n.e(532),n.e(7184)]).then(n.bind(n,1185)),"@site/docs/examples/pass-sha.mdx",1185],d4b2f69a:[()=>n.e(6051).then(n.bind(n,9776)),"@site/i18n/zh-CN/docusaurus-plugin-content-docs/current/contributing/00-index.mdx",9776],db044f71:[()=>n.e(6159).then(n.bind(n,8009)),"@site/docs/stability-badges.mdx",8009],dcf552eb:[()=>Promise.all([n.e(532),n.e(4338)]).then(n.bind(n,6259)),"@site/docs/examples/ssl/rds-ssl.mdx",6259],e3a2ad82:[()=>Promise.all([n.e(532),n.e(5775)]).then(n.bind(n,2017)),"@site/docs/examples/typescript/procedure-call/00-procedure-call-packet.mdx",2017],e9842ab8:[()=>Promise.all([n.e(532),n.e(8218)]).then(n.bind(n,492)),"@site/docs/examples/prepare.mdx",492],ed06a4b6:[()=>n.e(2991).then(n.bind(n,1639)),"@site/docs/documentation/extras.mdx",1639],f43af5ae:[()=>Promise.all([n.e(532),n.e(5909)]).then(n.bind(n,104)),"@site/docs/examples/typescript/basic-custom-class.mdx",104],f54f1246:[()=>n.e(630).then(n.bind(n,4990)),"@site/docs/documentation/prepared-statements.mdx",4990],f8d74a12:[()=>Promise.all([n.e(532),n.e(5807)]).then(n.bind(n,7330)),"@site/docs/contributing/website.mdx",7330],fb880757:[()=>n.e(1465).then(n.t.bind(n,5745,19)),"/home/runner/work/node-mysql2/node-mysql2/website/.docusaurus/docusaurus-plugin-content-pages/default/plugin-route-context-module-100.json",5745]};var s=n(5893);function l(e){let{error:t,retry:n,pastDelay:r}=e;return t?(0,s.jsxs)("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"},children:[(0,s.jsx)("p",{children:String(t)}),(0,s.jsx)("div",{children:(0,s.jsx)("button",{type:"button",onClick:n,children:"Retry"})})]}):r?(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:(0,s.jsx)("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb",children:(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2",children:[(0,s.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,s.jsx)("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,s.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,s.jsx)("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,s.jsx)("circle",{cx:"22",cy:"22",r:"8",children:(0,s.jsx)("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})})]})})}):null}var c=n(9670),u=n(226);function d(e,t){if("*"===e)return a()({loading:l,loader:()=>n.e(1772).then(n.bind(n,1772)),modules:["@theme/NotFound"],webpack:()=>[1772],render(e,t){const n=e.default;return(0,s.jsx)(u.z,{value:{plugin:{name:"native",id:"default"}},children:(0,s.jsx)(n,{...t})})}});const r=o[`${e}-${t}`],d={},p=[],f=[],h=(0,c.Z)(r);return Object.entries(h).forEach((e=>{let[t,n]=e;const r=i[n];r&&(d[t]=r[0],p.push(r[1]),f.push(r[2]))})),a().Map({loading:l,loader:d,modules:p,webpack:()=>f,render(t,n){const a=JSON.parse(JSON.stringify(r));Object.entries(t).forEach((t=>{let[n,r]=t;const o=r.default;if(!o)throw new Error(`The page component at ${e} doesn't have a default export. This makes it impossible to render anything. Consider default-exporting a React component.`);"object"!=typeof o&&"function"!=typeof o||Object.keys(r).filter((e=>"default"!==e)).forEach((e=>{o[e]=r[e]}));let i=a;const s=n.split(".");s.slice(0,-1).forEach((e=>{i=i[e]})),i[s[s.length-1]]=o}));const o=a.__comp;delete a.__comp;const i=a.__context;return delete a.__context,(0,s.jsx)(u.z,{value:i,children:(0,s.jsx)(o,{...a,...n})})}})}const p=[{path:"/node-mysql2/zh-CN/search",component:d("/node-mysql2/zh-CN/search","997"),exact:!0},{path:"/node-mysql2/zh-CN/docs",component:d("/node-mysql2/zh-CN/docs","afe"),routes:[{path:"/node-mysql2/zh-CN/docs",component:d("/node-mysql2/zh-CN/docs","201"),routes:[{path:"/node-mysql2/zh-CN/docs",component:d("/node-mysql2/zh-CN/docs","a0d"),routes:[{path:"/node-mysql2/zh-CN/docs",component:d("/node-mysql2/zh-CN/docs","e4f"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/acknowledgements",component:d("/node-mysql2/zh-CN/docs/acknowledgements","4fc"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/api-and-configurations",component:d("/node-mysql2/zh-CN/docs/api-and-configurations","944"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/category/procedure-call-packet",component:d("/node-mysql2/zh-CN/docs/category/procedure-call-packet","5a8"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/category/queries",component:d("/node-mysql2/zh-CN/docs/category/queries","266"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/category/row-data-packet",component:d("/node-mysql2/zh-CN/docs/category/row-data-packet","cb8"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/category/ssl",component:d("/node-mysql2/zh-CN/docs/category/ssl","873"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/category/typescript",component:d("/node-mysql2/zh-CN/docs/category/typescript","ecb"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/contributing",component:d("/node-mysql2/zh-CN/docs/contributing","35d"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/contributing/website",component:d("/node-mysql2/zh-CN/docs/contributing/website","af0"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/documentation",component:d("/node-mysql2/zh-CN/docs/documentation","722"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/documentation/authentication-switch",component:d("/node-mysql2/zh-CN/docs/documentation/authentication-switch","029"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/documentation/extras",component:d("/node-mysql2/zh-CN/docs/documentation/extras","fb1"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/documentation/mysql-server",component:d("/node-mysql2/zh-CN/docs/documentation/mysql-server","cd0"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/documentation/prepared-statements",component:d("/node-mysql2/zh-CN/docs/documentation/prepared-statements","4f2"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/documentation/promise-wrapper",component:d("/node-mysql2/zh-CN/docs/documentation/promise-wrapper","996"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/documentation/typescript-examples",component:d("/node-mysql2/zh-CN/docs/documentation/typescript-examples","d0b"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/examples",component:d("/node-mysql2/zh-CN/docs/examples","0c7"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/binlog-watcher",component:d("/node-mysql2/zh-CN/docs/examples/binlog-watcher","d38"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/connect-over-socks",component:d("/node-mysql2/zh-CN/docs/examples/connect-over-socks","a1d"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/execute",component:d("/node-mysql2/zh-CN/docs/examples/execute","02a"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/mysqlproxy",component:d("/node-mysql2/zh-CN/docs/examples/mysqlproxy","91f"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/pass-sha",component:d("/node-mysql2/zh-CN/docs/examples/pass-sha","403"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/pool-test",component:d("/node-mysql2/zh-CN/docs/examples/pool-test","8e5"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/prepare",component:d("/node-mysql2/zh-CN/docs/examples/prepare","3b0"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/promise-co-await",component:d("/node-mysql2/zh-CN/docs/examples/promise-co-await","757"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/queries/select",component:d("/node-mysql2/zh-CN/docs/examples/queries/select","9b9"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/server",component:d("/node-mysql2/zh-CN/docs/examples/server","031"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/ssl/rds-ssl",component:d("/node-mysql2/zh-CN/docs/examples/ssl/rds-ssl","7e9"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/ssl/select-over-ssl",component:d("/node-mysql2/zh-CN/docs/examples/ssl/select-over-ssl","251"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-class",component:d("/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-class","d01"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/procedure-call-packet",component:d("/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/procedure-call-packet","bec"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-array",component:d("/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-array","c9d"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/typescript/row-data/multi-statements",component:d("/node-mysql2/zh-CN/docs/examples/typescript/row-data/multi-statements","f94"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array",component:d("/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array","523"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array-multi-statements",component:d("/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array-multi-statements","87e"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-data-packet",component:d("/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-data-packet","1b0"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/faq",component:d("/node-mysql2/zh-CN/docs/faq","bcf"),exact:!0,sidebar:"faq"},{path:"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors",component:d("/node-mysql2/zh-CN/docs/faq/how-to-handle-errors","c21"),exact:!0,sidebar:"faq"},{path:"/node-mysql2/zh-CN/docs/history-and-why-mysq2",component:d("/node-mysql2/zh-CN/docs/history-and-why-mysq2","ef2"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/stability-badges",component:d("/node-mysql2/zh-CN/docs/stability-badges","bb8"),exact:!0,sidebar:"docs"}]}]}]},{path:"/node-mysql2/zh-CN/",component:d("/node-mysql2/zh-CN/","af9"),exact:!0},{path:"*",component:d("*")}]},8934:(e,t,n)=>{"use strict";n.d(t,{_:()=>o,t:()=>i});var r=n(7294),a=n(5893);const o=r.createContext(!1);function i(e){let{children:t}=e;const[n,i]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{i(!0)}),[]),(0,a.jsx)(o.Provider,{value:n,children:t})}},7221:(e,t,n)=>{"use strict";var r=n(7294),a=n(745),o=n(3727),i=n(405),s=n(412);const l=[n(2497),n(3310),n(8320),n(3395)];var c=n(723),u=n(6550),d=n(8790),p=n(5893);function f(e){let{children:t}=e;return(0,p.jsx)(p.Fragment,{children:t})}var h=n(5742),m=n(2263),g=n(4996),y=n(6668),b=n(1944),v=n(4711),x=n(9727),w=n(3320),k=n(8780),S=n(197);function E(){const{i18n:{currentLocale:e,defaultLocale:t,localeConfigs:n}}=(0,m.Z)(),r=(0,v.l)(),a=n[e].htmlLang,o=e=>e.replace("-","_");return(0,p.jsxs)(h.Z,{children:[Object.entries(n).map((e=>{let[t,{htmlLang:n}]=e;return(0,p.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:n},t)})),(0,p.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:"x-default"}),(0,p.jsx)("meta",{property:"og:locale",content:o(a)}),Object.values(n).filter((e=>a!==e.htmlLang)).map((e=>(0,p.jsx)("meta",{property:"og:locale:alternate",content:o(e.htmlLang)},`meta-og-${e.htmlLang}`)))]})}function C(e){let{permalink:t}=e;const{siteConfig:{url:n}}=(0,m.Z)(),r=function(){const{siteConfig:{url:e,baseUrl:t,trailingSlash:n}}=(0,m.Z)(),{pathname:r}=(0,u.TH)();return e+(0,k.applyTrailingSlash)((0,g.Z)(r),{trailingSlash:n,baseUrl:t})}(),a=t?`${n}${t}`:r;return(0,p.jsxs)(h.Z,{children:[(0,p.jsx)("meta",{property:"og:url",content:a}),(0,p.jsx)("link",{rel:"canonical",href:a})]})}function _(){const{i18n:{currentLocale:e}}=(0,m.Z)(),{metadata:t,image:n}=(0,y.L)();return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(h.Z,{children:[(0,p.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,p.jsx)("body",{className:x.h})]}),n&&(0,p.jsx)(b.d,{image:n}),(0,p.jsx)(C,{}),(0,p.jsx)(E,{}),(0,p.jsx)(S.Z,{tag:w.HX,locale:e}),(0,p.jsx)(h.Z,{children:t.map(((e,t)=>(0,p.jsx)("meta",{...e},t)))})]})}const N=new Map;function T(e){if(N.has(e.pathname))return{...e,pathname:N.get(e.pathname)};if((0,d.f)(c.Z,e.pathname).some((e=>{let{route:t}=e;return!0===t.exact})))return N.set(e.pathname,e.pathname),e;const t=e.pathname.trim().replace(/(?:\/index)?\.html$/,"")||"/";return N.set(e.pathname,t),{...e,pathname:t}}var L=n(8934),P=n(8940),A=n(469);function O(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const a=l.map((t=>{const r=t.default?.[e]??t[e];return r?.(...n)}));return()=>a.forEach((e=>e?.()))}const R=function(e){let{children:t,location:n,previousLocation:r}=e;return(0,A.Z)((()=>{r!==n&&(!function(e){let{location:t,previousLocation:n}=e;if(!n)return;const r=t.pathname===n.pathname,a=t.hash===n.hash,o=t.search===n.search;if(r&&a&&!o)return;const{hash:i}=t;if(i){const e=decodeURIComponent(i.substring(1)),t=document.getElementById(e);t?.scrollIntoView()}else window.scrollTo(0,0)}({location:n,previousLocation:r}),O("onRouteDidUpdate",{previousLocation:r,location:n}))}),[r,n]),t};function I(e){const t=Array.from(new Set([e,decodeURI(e)])).map((e=>(0,d.f)(c.Z,e))).flat();return Promise.all(t.map((e=>e.route.component.preload?.())))}class j extends r.Component{previousLocation;routeUpdateCleanupCb;constructor(e){super(e),this.previousLocation=null,this.routeUpdateCleanupCb=s.Z.canUseDOM?O("onRouteUpdate",{previousLocation:null,location:this.props.location}):()=>{},this.state={nextRouteHasLoaded:!0}}shouldComponentUpdate(e,t){if(e.location===this.props.location)return t.nextRouteHasLoaded;const n=e.location;return this.previousLocation=this.props.location,this.setState({nextRouteHasLoaded:!1}),this.routeUpdateCleanupCb=O("onRouteUpdate",{previousLocation:this.previousLocation,location:n}),I(n.pathname).then((()=>{this.routeUpdateCleanupCb(),this.setState({nextRouteHasLoaded:!0})})).catch((e=>{console.warn(e),window.location.reload()})),!1}render(){const{children:e,location:t}=this.props;return(0,p.jsx)(R,{previousLocation:this.previousLocation,location:t,children:(0,p.jsx)(u.AW,{location:t,render:()=>e})})}}const z=j,F="__docusaurus-base-url-issue-banner-container",D="__docusaurus-base-url-issue-banner",M="__docusaurus-base-url-issue-banner-suggestion-container";function B(e){return`\ndocument.addEventListener('DOMContentLoaded', function maybeInsertBanner() {\n var shouldInsert = typeof window['docusaurus'] === 'undefined';\n shouldInsert && insertBanner();\n});\n\nfunction insertBanner() {\n var bannerContainer = document.createElement('div');\n bannerContainer.id = '${F}';\n var bannerHtml = ${JSON.stringify(function(e){return`\n<div id="${D}" style="border: thick solid red; background-color: rgb(255, 230, 179); margin: 20px; padding: 20px; font-size: 20px;">\n <p style="font-weight: bold; font-size: 30px;">Your Docusaurus site did not load properly.</p>\n <p>A very common reason is a wrong site <a href="https://docusaurus.io/docs/docusaurus.config.js/#baseUrl" style="font-weight: bold;">baseUrl configuration</a>.</p>\n <p>Current configured baseUrl = <span style="font-weight: bold; color: red;">${e}</span> ${"/"===e?" (default value)":""}</p>\n <p>We suggest trying baseUrl = <span id="${M}" style="font-weight: bold; color: green;"></span></p>\n</div>\n`}(e)).replace(/</g,"\\<")};\n bannerContainer.innerHTML = bannerHtml;\n document.body.prepend(bannerContainer);\n var suggestionContainer = document.getElementById('${M}');\n var actualHomePagePath = window.location.pathname;\n var suggestedBaseUrl = actualHomePagePath.substr(-1) === '/'\n ? actualHomePagePath\n : actualHomePagePath + '/';\n suggestionContainer.innerHTML = suggestedBaseUrl;\n}\n`}function $(){const{siteConfig:{baseUrl:e}}=(0,m.Z)();return(0,p.jsx)(p.Fragment,{children:!s.Z.canUseDOM&&(0,p.jsx)(h.Z,{children:(0,p.jsx)("script",{children:B(e)})})})}function q(){const{siteConfig:{baseUrl:e,baseUrlIssueBanner:t}}=(0,m.Z)(),{pathname:n}=(0,u.TH)();return t&&n===e?(0,p.jsx)($,{}):null}function U(){const{siteConfig:{favicon:e,title:t,noIndex:n},i18n:{currentLocale:r,localeConfigs:a}}=(0,m.Z)(),o=(0,g.Z)(e),{htmlLang:i,direction:s}=a[r];return(0,p.jsxs)(h.Z,{children:[(0,p.jsx)("html",{lang:i,dir:s}),(0,p.jsx)("title",{children:t}),(0,p.jsx)("meta",{property:"og:title",content:t}),(0,p.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),n&&(0,p.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),e&&(0,p.jsx)("link",{rel:"icon",href:o})]})}var H=n(4763),Q=n(2389);function Z(){const e=(0,Q.Z)();return(0,p.jsx)(h.Z,{children:(0,p.jsx)("html",{"data-has-hydrated":e})})}function V(){const e=(0,d.H)(c.Z),t=(0,u.TH)();return(0,p.jsx)(H.Z,{children:(0,p.jsx)(P.M,{children:(0,p.jsxs)(L.t,{children:[(0,p.jsxs)(f,{children:[(0,p.jsx)(U,{}),(0,p.jsx)(_,{}),(0,p.jsx)(q,{}),(0,p.jsx)(z,{location:T(t),children:e})]}),(0,p.jsx)(Z,{})]})})})}var W=n(6887);const G=function(e){try{return document.createElement("link").relList.supports(e)}catch{return!1}}("prefetch")?function(e){return new Promise(((t,n)=>{if("undefined"==typeof document)return void n();const r=document.createElement("link");r.setAttribute("rel","prefetch"),r.setAttribute("href",e),r.onload=()=>t(),r.onerror=()=>n();const a=document.getElementsByTagName("head")[0]??document.getElementsByName("script")[0]?.parentNode;a?.appendChild(r)}))}:function(e){return new Promise(((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.withCredentials=!0,r.onload=()=>{200===r.status?t():n()},r.send(null)}))};var Y=n(9670);const K=new Set,X=new Set,J=()=>navigator.connection?.effectiveType.includes("2g")||navigator.connection?.saveData,ee={prefetch(e){if(!(e=>!J()&&!X.has(e)&&!K.has(e))(e))return!1;K.add(e);const t=(0,d.f)(c.Z,e).flatMap((e=>{return t=e.route.path,Object.entries(W).filter((e=>{let[n]=e;return n.replace(/-[^-]+$/,"")===t})).flatMap((e=>{let[,t]=e;return Object.values((0,Y.Z)(t))}));var t}));return Promise.all(t.map((e=>{const t=n.gca(e);return t&&!t.includes("undefined")?G(t).catch((()=>{})):Promise.resolve()})))},preload:e=>!!(e=>!J()&&!X.has(e))(e)&&(X.add(e),I(e))},te=Object.freeze(ee),ne=Boolean(!0);if(s.Z.canUseDOM){window.docusaurus=te;const e=document.getElementById("__docusaurus"),t=(0,p.jsx)(i.B6,{children:(0,p.jsx)(o.VK,{children:(0,p.jsx)(V,{})})}),n=(e,t)=>{console.error("Docusaurus React Root onRecoverableError:",e,t)},s=()=>{if(ne)r.startTransition((()=>{a.hydrateRoot(e,t,{onRecoverableError:n})}));else{const o=a.createRoot(e,{onRecoverableError:n});r.startTransition((()=>{o.render(t)}))}};I(window.location.pathname).then(s)}},8940:(e,t,n)=>{"use strict";n.d(t,{_:()=>d,M:()=>p});var r=n(7294),a=n(6809);const o=JSON.parse('{"navbar-locale-plugin":{"default":{}},"docusaurus-plugin-content-docs":{"default":{"path":"/node-mysql2/zh-CN/docs","versions":[{"name":"current","label":"Next","isLast":true,"path":"/node-mysql2/zh-CN/docs","mainDocId":"index","docs":[{"id":"acknowledgements","path":"/node-mysql2/zh-CN/docs/acknowledgements","sidebar":"docs"},{"id":"api-and-configurations","path":"/node-mysql2/zh-CN/docs/api-and-configurations","sidebar":"docs"},{"id":"contributing/index","path":"/node-mysql2/zh-CN/docs/contributing","sidebar":"docs"},{"id":"contributing/website","path":"/node-mysql2/zh-CN/docs/contributing/website","sidebar":"docs"},{"id":"documentation/authentication-switch","path":"/node-mysql2/zh-CN/docs/documentation/authentication-switch","sidebar":"docs"},{"id":"documentation/extras","path":"/node-mysql2/zh-CN/docs/documentation/extras","sidebar":"docs"},{"id":"documentation/index","path":"/node-mysql2/zh-CN/docs/documentation","sidebar":"docs"},{"id":"documentation/mysql-server","path":"/node-mysql2/zh-CN/docs/documentation/mysql-server","sidebar":"docs"},{"id":"documentation/prepared-statements","path":"/node-mysql2/zh-CN/docs/documentation/prepared-statements","sidebar":"docs"},{"id":"documentation/promise-wrapper","path":"/node-mysql2/zh-CN/docs/documentation/promise-wrapper","sidebar":"docs"},{"id":"documentation/typescript-examples","path":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","sidebar":"docs"},{"id":"examples/binlog-watcher","path":"/node-mysql2/zh-CN/docs/examples/binlog-watcher","sidebar":"examples"},{"id":"examples/connect-over-socks","path":"/node-mysql2/zh-CN/docs/examples/connect-over-socks","sidebar":"examples"},{"id":"examples/execute","path":"/node-mysql2/zh-CN/docs/examples/execute","sidebar":"examples"},{"id":"examples/index","path":"/node-mysql2/zh-CN/docs/examples","sidebar":"examples"},{"id":"examples/mysqlproxy","path":"/node-mysql2/zh-CN/docs/examples/mysqlproxy","sidebar":"examples"},{"id":"examples/pass-sha","path":"/node-mysql2/zh-CN/docs/examples/pass-sha","sidebar":"examples"},{"id":"examples/pool-test","path":"/node-mysql2/zh-CN/docs/examples/pool-test","sidebar":"examples"},{"id":"examples/prepare","path":"/node-mysql2/zh-CN/docs/examples/prepare","sidebar":"examples"},{"id":"examples/promise-co-await","path":"/node-mysql2/zh-CN/docs/examples/promise-co-await","sidebar":"examples"},{"id":"examples/queries/select","path":"/node-mysql2/zh-CN/docs/examples/queries/select","sidebar":"examples"},{"id":"examples/server","path":"/node-mysql2/zh-CN/docs/examples/server","sidebar":"examples"},{"id":"examples/ssl/rds-ssl","path":"/node-mysql2/zh-CN/docs/examples/ssl/rds-ssl","sidebar":"examples"},{"id":"examples/ssl/select-over-ssl","path":"/node-mysql2/zh-CN/docs/examples/ssl/select-over-ssl","sidebar":"examples"},{"id":"examples/typescript/basic-custom-class","path":"/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-class","sidebar":"examples"},{"id":"examples/typescript/procedure-call/procedure-call-packet","path":"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/procedure-call-packet","sidebar":"examples"},{"id":"examples/typescript/procedure-call/row-as-array","path":"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-array","sidebar":"examples"},{"id":"examples/typescript/row-data/multi-statements","path":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/multi-statements","sidebar":"examples"},{"id":"examples/typescript/row-data/row-as-array","path":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array","sidebar":"examples"},{"id":"examples/typescript/row-data/row-as-array-multi-statements","path":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array-multi-statements","sidebar":"examples"},{"id":"examples/typescript/row-data/row-data-packet","path":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-data-packet","sidebar":"examples"},{"id":"faq/how-to-handle-errors","path":"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors","sidebar":"faq"},{"id":"faq/index","path":"/node-mysql2/zh-CN/docs/faq","sidebar":"faq"},{"id":"history-and-why-mysq2","path":"/node-mysql2/zh-CN/docs/history-and-why-mysq2","sidebar":"docs"},{"id":"index","path":"/node-mysql2/zh-CN/docs/","sidebar":"docs"},{"id":"stability-badges","path":"/node-mysql2/zh-CN/docs/stability-badges","sidebar":"docs"},{"id":"/category/queries","path":"/node-mysql2/zh-CN/docs/category/queries","sidebar":"examples"},{"id":"/category/ssl","path":"/node-mysql2/zh-CN/docs/category/ssl","sidebar":"examples"},{"id":"/category/typescript","path":"/node-mysql2/zh-CN/docs/category/typescript","sidebar":"examples"},{"id":"/category/procedure-call-packet","path":"/node-mysql2/zh-CN/docs/category/procedure-call-packet","sidebar":"examples"},{"id":"/category/row-data-packet","path":"/node-mysql2/zh-CN/docs/category/row-data-packet","sidebar":"examples"}],"draftIds":[],"sidebars":{"docs":{"link":{"path":"/node-mysql2/zh-CN/docs/","label":"index"}},"examples":{"link":{"path":"/node-mysql2/zh-CN/docs/examples","label":"examples/index"}},"faq":{"link":{"path":"/node-mysql2/zh-CN/docs/faq","label":"faq/index"}}}}],"breadcrumbs":true}}}'),i=JSON.parse('{"defaultLocale":"en","locales":["en","zh-CN","pt-BR"],"path":"i18n","currentLocale":"zh-CN","localeConfigs":{"en":{"label":"\ud83c\uddfa\ud83c\uddf8 English","direction":"ltr","htmlLang":"en","calendar":"gregory","path":"en"},"zh-CN":{"label":"\ud83c\udde8\ud83c\uddf3 \u7b80\u4f53\u4e2d\u6587","direction":"ltr","htmlLang":"zh-CN","calendar":"gregory","path":"zh-CN"},"pt-BR":{"label":"\ud83c\udde7\ud83c\uddf7 Portugu\xeas (Brasil)","direction":"ltr","htmlLang":"pt-BR","calendar":"gregory","path":"pt-BR"}}}');var s=n(7529);const l=JSON.parse('{"docusaurusVersion":"3.0.1","siteVersion":"0.0.0","pluginVersions":{"docusaurus-plugin-content-docs":{"type":"package","name":"@docusaurus/plugin-content-docs","version":"3.0.1"},"docusaurus-plugin-content-pages":{"type":"package","name":"@docusaurus/plugin-content-pages","version":"3.0.1"},"docusaurus-plugin-sitemap":{"type":"package","name":"@docusaurus/plugin-sitemap","version":"3.0.1"},"docusaurus-theme-classic":{"type":"package","name":"@docusaurus/theme-classic","version":"3.0.1"},"docusaurus-plugin-sass":{"type":"package","name":"docusaurus-plugin-sass","version":"0.2.5"},"@easyops-cn/docusaurus-search-local":{"type":"package","name":"@easyops-cn/docusaurus-search-local","version":"0.40.1"},"navbar-locale-plugin":{"type":"local"}}}');var c=n(5893);const u={siteConfig:a.default,siteMetadata:l,globalData:o,i18n:i,codeTranslations:s},d=r.createContext(u);function p(e){let{children:t}=e;return(0,c.jsx)(d.Provider,{value:u,children:t})}},4763:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(7294),a=n(412),o=n(5742),i=n(8780),s=n(8862),l=n(5893);function c(e){let{error:t,tryAgain:n}=e;return(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",minHeight:"100vh",width:"100%",maxWidth:"80ch",fontSize:"20px",margin:"0 auto",padding:"1rem"},children:[(0,l.jsx)("h1",{style:{fontSize:"3rem"},children:"This page crashed"}),(0,l.jsx)("button",{type:"button",onClick:n,style:{margin:"1rem 0",fontSize:"2rem",cursor:"pointer",borderRadius:20,padding:"1rem"},children:"Try again"}),(0,l.jsx)(u,{error:t})]})}function u(e){let{error:t}=e;const n=(0,i.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,l.jsx)("p",{style:{whiteSpace:"pre-wrap"},children:n})}function d(e){let{error:t,tryAgain:n}=e;return(0,l.jsxs)(f,{fallback:()=>(0,l.jsx)(c,{error:t,tryAgain:n}),children:[(0,l.jsx)(o.Z,{children:(0,l.jsx)("title",{children:"Page Error"})}),(0,l.jsx)(s.Z,{children:(0,l.jsx)(c,{error:t,tryAgain:n})})]})}const p=e=>(0,l.jsx)(d,{...e});class f extends r.Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){a.Z.canUseDOM&&this.setState({error:e})}render(){const{children:e}=this.props,{error:t}=this.state;if(t){const e={error:t,tryAgain:()=>this.setState({error:null})};return(this.props.fallback??p)(e)}return e??null}}},412:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r="undefined"!=typeof window&&"document"in window&&"createElement"in window.document,a={canUseDOM:r,canUseEventListeners:r&&("addEventListener"in window||"attachEvent"in window),canUseIntersectionObserver:r&&"IntersectionObserver"in window,canUseViewport:r&&"screen"in window}},5742:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(7294);var r=n(405),a=n(5893);function o(e){return(0,a.jsx)(r.ql,{...e})}},9960:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(7294),a=n(3727),o=n(8780),i=n(2263),s=n(3919),l=n(412),c=n(5893);const u=r.createContext({collectLink:()=>{}});var d=n(4996);function p(e,t){let{isNavLink:n,to:p,href:f,activeClassName:h,isActive:m,"data-noBrokenLinkCheck":g,autoAddBaseUrl:y=!0,...b}=e;const{siteConfig:{trailingSlash:v,baseUrl:x}}=(0,i.Z)(),{withBaseUrl:w}=(0,d.C)(),k=(0,r.useContext)(u),S=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(()=>S.current));const E=p||f;const C=(0,s.Z)(E),_=E?.replace("pathname://","");let N=void 0!==_?(T=_,y&&(e=>e.startsWith("/"))(T)?w(T):T):void 0;var T;N&&C&&(N=(0,o.applyTrailingSlash)(N,{trailingSlash:v,baseUrl:x}));const L=(0,r.useRef)(!1),P=n?a.OL:a.rU,A=l.Z.canUseIntersectionObserver,O=(0,r.useRef)(),R=()=>{L.current||null==N||(window.docusaurus.preload(N),L.current=!0)};(0,r.useEffect)((()=>(!A&&C&&null!=N&&window.docusaurus.prefetch(N),()=>{A&&O.current&&O.current.disconnect()})),[O,N,A,C]);const I=N?.startsWith("#")??!1,j=!N||!C||I;return j||g||k.collectLink(N),j?(0,c.jsx)("a",{ref:S,href:N,...E&&!C&&{target:"_blank",rel:"noopener noreferrer"},...b}):(0,c.jsx)(P,{...b,onMouseEnter:R,onTouchStart:R,innerRef:e=>{S.current=e,A&&e&&C&&(O.current=new window.IntersectionObserver((t=>{t.forEach((t=>{e===t.target&&(t.isIntersecting||t.intersectionRatio>0)&&(O.current.unobserve(e),O.current.disconnect(),null!=N&&window.docusaurus.prefetch(N))}))})),O.current.observe(e))},to:N,...n&&{isActive:m,activeClassName:h}})}const f=r.forwardRef(p)},5999:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,I:()=>l});var r=n(7294),a=n(5893);function o(e,t){const n=e.split(/(\{\w+\})/).map(((e,n)=>{if(n%2==1){const n=t?.[e.slice(1,-1)];if(void 0!==n)return n}return e}));return n.some((e=>(0,r.isValidElement)(e)))?n.map(((e,t)=>(0,r.isValidElement)(e)?r.cloneElement(e,{key:t}):e)).filter((e=>""!==e)):n.join("")}var i=n(7529);function s(e){let{id:t,message:n}=e;if(void 0===t&&void 0===n)throw new Error("Docusaurus translation declarations must have at least a translation id or a default translation message");return i[t??n]??n??t}function l(e,t){let{message:n,id:r}=e;return o(s({message:n,id:r}),t)}function c(e){let{children:t,id:n,values:r}=e;if(t&&"string"!=typeof t)throw console.warn("Illegal <Translate> children",t),new Error("The Docusaurus <Translate> component only accept simple string values");const i=s({message:t,id:n});return(0,a.jsx)(a.Fragment,{children:o(i,r)})}},9935:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});const r="default"},3919:(e,t,n)=>{"use strict";function r(e){return/^(?:\w*:|\/\/)/.test(e)}function a(e){return void 0!==e&&!r(e)}n.d(t,{Z:()=>a,b:()=>r})},4996:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,Z:()=>s});var r=n(7294),a=n(2263),o=n(3919);function i(){const{siteConfig:{baseUrl:e,url:t}}=(0,a.Z)(),n=(0,r.useCallback)(((n,r)=>function(e,t,n,r){let{forcePrependBaseUrl:a=!1,absolute:i=!1}=void 0===r?{}:r;if(!n||n.startsWith("#")||(0,o.b)(n))return n;if(a)return t+n.replace(/^\//,"");if(n===t.replace(/\/$/,""))return t;const s=n.startsWith(t)?n:t+n.replace(/^\//,"");return i?e+s:s}(t,e,n,r)),[t,e]);return{withBaseUrl:n}}function s(e,t){void 0===t&&(t={});const{withBaseUrl:n}=i();return n(e,t)}},2263:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(8940);function o(){return(0,r.useContext)(a._)}},2389:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(8934);function o(){return(0,r.useContext)(a._)}},469:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7294);const a=n(412).Z.canUseDOM?r.useLayoutEffect:r.useEffect},9670:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r=e=>"object"==typeof e&&!!e&&Object.keys(e).length>0;function a(e){const t={};return function e(n,a){Object.entries(n).forEach((n=>{let[o,i]=n;const s=a?`${a}.${o}`:o;r(i)?e(i,s):t[s]=i}))}(e),t}},226:(e,t,n)=>{"use strict";n.d(t,{_:()=>o,z:()=>i});var r=n(7294),a=n(5893);const o=r.createContext(null);function i(e){let{children:t,value:n}=e;const i=r.useContext(o),s=(0,r.useMemo)((()=>function(e){let{parent:t,value:n}=e;if(!t){if(!n)throw new Error("Unexpected: no Docusaurus route context found");if(!("plugin"in n))throw new Error("Unexpected: Docusaurus topmost route context has no `plugin` attribute");return n}const r={...t.data,...n?.data};return{plugin:t.plugin,data:r}}({parent:i,value:n})),[i,n]);return(0,a.jsx)(o.Provider,{value:s,children:t})}},143:(e,t,n)=>{"use strict";n.d(t,{Iw:()=>m,gA:()=>p,_r:()=>u,Jo:()=>g,zh:()=>d,yW:()=>h,gB:()=>f});var r=n(6550),a=n(2263),o=n(9935);function i(e,t){void 0===t&&(t={});const n=function(){const{globalData:e}=(0,a.Z)();return e}()[e];if(!n&&t.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin.`);return n}const s=e=>e.versions.find((e=>e.isLast));function l(e,t){const n=function(e,t){const n=s(e);return[...e.versions.filter((e=>e!==n)),n].find((e=>!!(0,r.LX)(t,{path:e.path,exact:!1,strict:!1})))}(e,t),a=n?.docs.find((e=>!!(0,r.LX)(t,{path:e.path,exact:!0,strict:!1})));return{activeVersion:n,activeDoc:a,alternateDocVersions:a?function(t){const n={};return e.versions.forEach((e=>{e.docs.forEach((r=>{r.id===t&&(n[e.name]=r)}))})),n}(a.id):{}}}const c={},u=()=>i("docusaurus-plugin-content-docs")??c,d=e=>function(e,t,n){void 0===t&&(t=o.m),void 0===n&&(n={});const r=i(e),a=r?.[t];if(!a&&n.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin with id "${t}".`);return a}("docusaurus-plugin-content-docs",e,{failfast:!0});function p(e){void 0===e&&(e={});const t=u(),{pathname:n}=(0,r.TH)();return function(e,t,n){void 0===n&&(n={});const a=Object.entries(e).sort(((e,t)=>t[1].path.localeCompare(e[1].path))).find((e=>{let[,n]=e;return!!(0,r.LX)(t,{path:n.path,exact:!1,strict:!1})})),o=a?{pluginId:a[0],pluginData:a[1]}:void 0;if(!o&&n.failfast)throw new Error(`Can't find active docs plugin for "${t}" pathname, while it was expected to be found. Maybe you tried to use a docs feature that can only be used on a docs-related page? Existing docs plugin paths are: ${Object.values(e).map((e=>e.path)).join(", ")}`);return o}(t,n,e)}function f(e){return d(e).versions}function h(e){const t=d(e);return s(t)}function m(e){const t=d(e),{pathname:n}=(0,r.TH)();return l(t,n)}function g(e){const t=d(e),{pathname:n}=(0,r.TH)();return function(e,t){const n=s(e);return{latestDocSuggestion:l(e,t).alternateDocVersions[n.name],latestVersionSuggestion:n}}(t,n)}},8320:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4865),a=n.n(r);a().configure({showSpinner:!1});const o={onRouteUpdate(e){let{location:t,previousLocation:n}=e;if(n&&t.pathname!==n.pathname){const e=window.setTimeout((()=>{a().start()}),200);return()=>window.clearTimeout(e)}},onRouteDidUpdate(){a().done()}}},3310:(e,t,n)=>{"use strict";n.r(t);var r=n(2573),a=n(6809);!function(e){const{themeConfig:{prism:t}}=a.default,{additionalLanguages:r}=t;globalThis.Prism=e,r.forEach((e=>{"php"===e&&n(6854),n(5897)(`./prism-${e}`)})),delete globalThis.Prism}(r.p1)},2503:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});n(7294);var r=n(512),a=n(5999),o=n(6668),i=n(9960);const s={anchorWithStickyNavbar:"anchorWithStickyNavbar_LWe7",anchorWithHideOnScrollNavbar:"anchorWithHideOnScrollNavbar_WYt5"};var l=n(5893);function c(e){let{as:t,id:n,...c}=e;const{navbar:{hideOnScroll:u}}=(0,o.L)();if("h1"===t||!n)return(0,l.jsx)(t,{...c,id:void 0});const d=(0,a.I)({id:"theme.common.headingLinkTitle",message:"Direct link to {heading}",description:"Title for link to heading"},{heading:"string"==typeof c.children?c.children:n});return(0,l.jsxs)(t,{...c,className:(0,r.Z)("anchor",u?s.anchorWithHideOnScrollNavbar:s.anchorWithStickyNavbar,c.className),id:n,children:[c.children,(0,l.jsx)(i.Z,{className:"hash-link",to:`#${n}`,"aria-label":d,title:d,children:"\u200b"})]})}},9471:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(7294);const r={iconExternalLink:"iconExternalLink_nPIU"};var a=n(5893);function o(e){let{width:t=13.5,height:n=13.5}=e;return(0,a.jsx)("svg",{width:t,height:n,"aria-hidden":"true",viewBox:"0 0 24 24",className:r.iconExternalLink,children:(0,a.jsx)("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"})})}},8862:(e,t,n)=>{"use strict";n.d(t,{Z:()=>jt});var r=n(7294),a=n(512),o=n(4763),i=n(1944),s=n(6550),l=n(5999),c=n(5936),u=n(5893);const d="__docusaurus_skipToContent_fallback";function p(e){e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")}function f(){const e=(0,r.useRef)(null),{action:t}=(0,s.k6)(),n=(0,r.useCallback)((e=>{e.preventDefault();const t=document.querySelector("main:first-of-type")??document.getElementById(d);t&&p(t)}),[]);return(0,c.S)((n=>{let{location:r}=n;e.current&&!r.hash&&"PUSH"===t&&p(e.current)})),{containerRef:e,onClick:n}}const h=(0,l.I)({id:"theme.common.skipToMainContent",description:"The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",message:"Skip to main content"});function m(e){const t=e.children??h,{containerRef:n,onClick:r}=f();return(0,u.jsx)("div",{ref:n,role:"region","aria-label":h,children:(0,u.jsx)("a",{...e,href:`#${d}`,onClick:r,children:t})})}var g=n(5281),y=n(9727);const b={skipToContent:"skipToContent_fXgn"};function v(){return(0,u.jsx)(m,{className:b.skipToContent})}var x=n(6668),w=n(9689);function k(e){let{width:t=21,height:n=21,color:r="currentColor",strokeWidth:a=1.2,className:o,...i}=e;return(0,u.jsx)("svg",{viewBox:"0 0 15 15",width:t,height:n,...i,children:(0,u.jsx)("g",{stroke:r,strokeWidth:a,children:(0,u.jsx)("path",{d:"M.75.75l13.5 13.5M14.25.75L.75 14.25"})})})}const S={closeButton:"closeButton_CVFx"};function E(e){return(0,u.jsx)("button",{type:"button","aria-label":(0,l.I)({id:"theme.AnnouncementBar.closeButtonAriaLabel",message:"Close",description:"The ARIA label for close button of announcement bar"}),...e,className:(0,a.Z)("clean-btn close",S.closeButton,e.className),children:(0,u.jsx)(k,{width:14,height:14,strokeWidth:3.1})})}const C={content:"content_knG7"};function _(e){const{announcementBar:t}=(0,x.L)(),{content:n}=t;return(0,u.jsx)("div",{...e,className:(0,a.Z)(C.content,e.className),dangerouslySetInnerHTML:{__html:n}})}const N={announcementBar:"announcementBar_mb4j",announcementBarPlaceholder:"announcementBarPlaceholder_vyr4",announcementBarClose:"announcementBarClose_gvF7",announcementBarContent:"announcementBarContent_xLdY"};function T(){const{announcementBar:e}=(0,x.L)(),{isActive:t,close:n}=(0,w.nT)();if(!t)return null;const{backgroundColor:r,textColor:a,isCloseable:o}=e;return(0,u.jsxs)("div",{className:N.announcementBar,style:{backgroundColor:r,color:a},role:"banner",children:[o&&(0,u.jsx)("div",{className:N.announcementBarPlaceholder}),(0,u.jsx)(_,{className:N.announcementBarContent}),o&&(0,u.jsx)(E,{onClick:n,className:N.announcementBarClose})]})}var L=n(3163),P=n(2466);var A=n(902),O=n(3102);const R=r.createContext(null);function I(e){let{children:t}=e;const n=function(){const e=(0,L.e)(),t=(0,O.HY)(),[n,a]=(0,r.useState)(!1),o=null!==t.component,i=(0,A.D9)(o);return(0,r.useEffect)((()=>{o&&!i&&a(!0)}),[o,i]),(0,r.useEffect)((()=>{o?e.shown||a(!0):a(!1)}),[e.shown,o]),(0,r.useMemo)((()=>[n,a]),[n])}();return(0,u.jsx)(R.Provider,{value:n,children:t})}function j(e){if(e.component){const t=e.component;return(0,u.jsx)(t,{...e.props})}}function z(){const e=(0,r.useContext)(R);if(!e)throw new A.i6("NavbarSecondaryMenuDisplayProvider");const[t,n]=e,a=(0,r.useCallback)((()=>n(!1)),[n]),o=(0,O.HY)();return(0,r.useMemo)((()=>({shown:t,hide:a,content:j(o)})),[a,o,t])}function F(e){let{header:t,primaryMenu:n,secondaryMenu:r}=e;const{shown:o}=z();return(0,u.jsxs)("div",{className:"navbar-sidebar",children:[t,(0,u.jsxs)("div",{className:(0,a.Z)("navbar-sidebar__items",{"navbar-sidebar__items--show-secondary":o}),children:[(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:n}),(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:r})]})]})}var D=n(2949),M=n(2389);function B(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"})})}function $(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"})})}const q={toggle:"toggle_vylO",toggleButton:"toggleButton_gllP",darkToggleIcon:"darkToggleIcon_wfgR",lightToggleIcon:"lightToggleIcon_pyhR",toggleButtonDisabled:"toggleButtonDisabled_aARS"};function U(e){let{className:t,buttonClassName:n,value:r,onChange:o}=e;const i=(0,M.Z)(),s=(0,l.I)({message:"Switch between dark and light mode (currently {mode})",id:"theme.colorToggle.ariaLabel",description:"The ARIA label for the navbar color mode toggle"},{mode:"dark"===r?(0,l.I)({message:"dark mode",id:"theme.colorToggle.ariaLabel.mode.dark",description:"The name for the dark color mode"}):(0,l.I)({message:"light mode",id:"theme.colorToggle.ariaLabel.mode.light",description:"The name for the light color mode"})});return(0,u.jsx)("div",{className:(0,a.Z)(q.toggle,t),children:(0,u.jsxs)("button",{className:(0,a.Z)("clean-btn",q.toggleButton,!i&&q.toggleButtonDisabled,n),type:"button",onClick:()=>o("dark"===r?"light":"dark"),disabled:!i,title:s,"aria-label":s,"aria-live":"polite",children:[(0,u.jsx)(B,{className:(0,a.Z)(q.toggleIcon,q.lightToggleIcon)}),(0,u.jsx)($,{className:(0,a.Z)(q.toggleIcon,q.darkToggleIcon)})]})})}const H=r.memo(U),Q={darkNavbarColorModeToggle:"darkNavbarColorModeToggle_X3D1"};function Z(e){let{className:t}=e;const n=(0,x.L)().navbar.style,r=(0,x.L)().colorMode.disableSwitch,{colorMode:a,setColorMode:o}=(0,D.I)();return r?null:(0,u.jsx)(H,{className:t,buttonClassName:"dark"===n?Q.darkNavbarColorModeToggle:void 0,value:a,onChange:o})}var V=n(1327);function W(){return(0,u.jsx)(V.Z,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:"navbar__title text--truncate"})}function G(){const e=(0,L.e)();return(0,u.jsx)("button",{type:"button","aria-label":(0,l.I)({id:"theme.docs.sidebar.closeSidebarButtonAriaLabel",message:"Close navigation bar",description:"The ARIA label for close button of mobile sidebar"}),className:"clean-btn navbar-sidebar__close",onClick:()=>e.toggle(),children:(0,u.jsx)(k,{color:"var(--ifm-color-emphasis-600)"})})}function Y(){return(0,u.jsxs)("div",{className:"navbar-sidebar__brand",children:[(0,u.jsx)(W,{}),(0,u.jsx)(Z,{className:"margin-right--md"}),(0,u.jsx)(G,{})]})}var K=n(9960),X=n(4996),J=n(3919);function ee(e,t){return void 0!==e&&void 0!==t&&new RegExp(e,"gi").test(t)}var te=n(9471);function ne(e){let{activeBasePath:t,activeBaseRegex:n,to:r,href:a,label:o,html:i,isDropdownLink:s,prependBaseUrlToHref:l,...c}=e;const d=(0,X.Z)(r),p=(0,X.Z)(t),f=(0,X.Z)(a,{forcePrependBaseUrl:!0}),h=o&&a&&!(0,J.Z)(a),m=i?{dangerouslySetInnerHTML:{__html:i}}:{children:(0,u.jsxs)(u.Fragment,{children:[o,h&&(0,u.jsx)(te.Z,{...s&&{width:12,height:12}})]})};return a?(0,u.jsx)(K.Z,{href:l?f:a,...c,...m}):(0,u.jsx)(K.Z,{to:d,isNavLink:!0,...(t||n)&&{isActive:(e,t)=>n?ee(n,t.pathname):t.pathname.startsWith(p)},...c,...m})}function re(e){let{className:t,isDropdownItem:n=!1,...r}=e;const o=(0,u.jsx)(ne,{className:(0,a.Z)(n?"dropdown__link":"navbar__item navbar__link",t),isDropdownLink:n,...r});return n?(0,u.jsx)("li",{children:o}):o}function ae(e){let{className:t,isDropdownItem:n,...r}=e;return(0,u.jsx)("li",{className:"menu__list-item",children:(0,u.jsx)(ne,{className:(0,a.Z)("menu__link",t),...r})})}function oe(e){let{mobile:t=!1,position:n,...r}=e;const a=t?ae:re;return(0,u.jsx)(a,{...r,activeClassName:r.activeClassName??(t?"menu__link--active":"navbar__link--active")})}var ie=n(6043),se=n(8596),le=n(2263);const ce={dropdownNavbarItemMobile:"dropdownNavbarItemMobile_S0Fm"};function ue(e,t){return e.some((e=>function(e,t){return!!(0,se.Mg)(e.to,t)||!!ee(e.activeBaseRegex,t)||!(!e.activeBasePath||!t.startsWith(e.activeBasePath))}(e,t)))}function de(e){let{items:t,position:n,className:o,onClick:i,...s}=e;const l=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=e=>{l.current&&!l.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("focusin",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("focusin",e)}}),[l]),(0,u.jsxs)("div",{ref:l,className:(0,a.Z)("navbar__item","dropdown","dropdown--hoverable",{"dropdown--right":"right"===n,"dropdown--show":c}),children:[(0,u.jsx)(ne,{"aria-haspopup":"true","aria-expanded":c,role:"button",href:s.to?void 0:"#",className:(0,a.Z)("navbar__link",o),...s,onClick:s.to?void 0:e=>e.preventDefault(),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),d(!c))},children:s.children??s.label}),(0,u.jsx)("ul",{className:"dropdown__menu",children:t.map(((e,t)=>(0,r.createElement)(Ve,{isDropdownItem:!0,activeClassName:"dropdown__link--active",...e,key:t})))})]})}function pe(e){let{items:t,className:n,position:o,onClick:i,...l}=e;const c=function(){const{siteConfig:{baseUrl:e}}=(0,le.Z)(),{pathname:t}=(0,s.TH)();return t.replace(e,"/")}(),d=ue(t,c),{collapsed:p,toggleCollapsed:f,setCollapsed:h}=(0,ie.u)({initialState:()=>!d});return(0,r.useEffect)((()=>{d&&h(!d)}),[c,d,h]),(0,u.jsxs)("li",{className:(0,a.Z)("menu__list-item",{"menu__list-item--collapsed":p}),children:[(0,u.jsx)(ne,{role:"button",className:(0,a.Z)(ce.dropdownNavbarItemMobile,"menu__link menu__link--sublist menu__link--sublist-caret",n),...l,onClick:e=>{e.preventDefault(),f()},children:l.children??l.label}),(0,u.jsx)(ie.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:p,children:t.map(((e,t)=>(0,r.createElement)(Ve,{mobile:!0,isDropdownItem:!0,onClick:i,activeClassName:"menu__link--active",...e,key:t})))})]})}function fe(e){let{mobile:t=!1,...n}=e;const r=t?pe:de;return(0,u.jsx)(r,{...n})}var he=n(4711);function me(e){let{width:t=20,height:n=20,...r}=e;return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:t,height:n,"aria-hidden":!0,...r,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"})})}const ge="iconLanguage_nlXk";var ye=n(8087),be=n(1728),ve=n(373),xe=n(143),we=n(22),ke=n(8202),Se=n(3926),Ee=n(1073),Ce=n(2539),_e=n(726);const Ne='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M17 6v12c0 .52-.2 1-1 1H4c-.7 0-1-.33-1-1V2c0-.55.42-1 1-1h8l5 5zM14 8h-3.13c-.51 0-.87-.34-.87-.87V4" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linejoin="round"></path></svg>',Te='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M13 13h4-4V8H7v5h6v4-4H7V8H3h4V3v5h6V3v5h4-4v5zm-6 0v4-4H3h4z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path></svg>',Le='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M17 5H3h14zm0 5H3h14zm0 5H3h14z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linejoin="round"></path></svg>',Pe='<svg width="20" height="20" viewBox="0 0 20 20"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M18 3v4c0 2-2 4-4 4H2"></path><path d="M8 17l-6-6 6-6"></path></g></svg>',Ae='<svg width="40" height="40" viewBox="0 0 20 20" fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 4.8c2 3 1.7 7-1 9.7h0l4.3 4.3-4.3-4.3a7.8 7.8 0 01-9.8 1m-2.2-2.2A7.8 7.8 0 0113.2 2.4M2 18L18 2"></path></svg>',Oe='<svg viewBox="0 0 24 54"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6v42M20 27H8.3"></path></g></svg>',Re='<svg viewBox="0 0 24 54"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6v21M20 27H8.3"></path></g></svg>',Ie={searchBar:"searchBar_RVTs",dropdownMenu:"dropdownMenu_qbY6",searchBarLeft:"searchBarLeft_MXDe",suggestion:"suggestion_fB_2",cursor:"cursor_eG29",hitTree:"hitTree_kk6K",hitIcon:"hitIcon_a7Zy",hitPath:"hitPath_ieM4",noResultsIcon:"noResultsIcon_EBY5",hitFooter:"hitFooter_E9YW",hitWrapper:"hitWrapper_sAK8",hitTitle:"hitTitle_vyVt",hitAction:"hitAction_NqkB",hideAction:"hideAction_vcyE",noResults:"noResults_l6Q3",searchBarContainer:"searchBarContainer_NW3z",searchBarLoadingRing:"searchBarLoadingRing_YnHq",searchClearButton:"searchClearButton_qk4g",searchIndexLoading:"searchIndexLoading_EJ1f",searchHintContainer:"searchHintContainer_Pkmr",searchHint:"searchHint_iIMx",focused:"focused_OWtg",input:"input_FOTf",hint:"hint_URu1",suggestions:"suggestions_X8XU",dataset:"dataset_QiCy",empty:"empty_eITn"};function je(e){let{document:t,type:n,page:r,metadata:a,tokens:o,isInterOfTree:i,isLastOfTree:s}=e;const l=0===n,c=1===n,u=[];i?u.push(Oe):s&&u.push(Re);const d=u.map((e=>`<span class="${Ie.hitTree}">${e}</span>`)),p=`<span class="${Ie.hitIcon}">${l?Ne:c?Te:Le}</span>`,f=[`<span class="${Ie.hitTitle}">${(0,_e.o)(t.t,(0,Ee.m)(a,"t"),o)}</span>`];if(!i&&!s&&ye.H6){const e=r?(r.b??[]).concat(r.t).concat(t.s&&t.s!==r.t?t.s:[]):t.b;f.push(`<span class="${Ie.hitPath}">${(0,Se.e)(e??[])}</span>`)}else l||f.push(`<span class="${Ie.hitPath}">${(0,Ce.C)(r.t||(t.u.startsWith("/docs/api-reference/")?"API Reference":""),o)}</span>`);const h=`<span class="${Ie.hitAction}">${Pe}</span>`;return[...d,p,`<span class="${Ie.hitWrapper}">`,...f,"</span>",h].join("")}function ze(){return`<span class="${Ie.noResults}"><span class="${Ie.noResultsIcon}">${Ae}</span><span>${(0,l.I)({id:"theme.SearchBar.noResultsText",message:"No results"})}</span></span>`}var Fe=n(311),De=n(51);async function Me(){const e=await Promise.all([n.e(8443),n.e(5525)]).then(n.t.bind(n,8443,23)),t=e.default;return t.noConflict?t.noConflict():e.noConflict&&e.noConflict(),t}const Be="_highlight";const $e=function(e){let{handleSearchBarToggle:t}=e;const n=(0,M.Z)(),{siteConfig:{baseUrl:a},i18n:{currentLocale:o}}=(0,le.Z)(),i=(0,xe.gA)();let c=a;try{const{preferredVersion:e}=(0,ve.J)(i?.pluginId??ye.gQ);e&&!e.isLast&&(c=e.path+"/")}catch(F){if(ye.l9&&!(F instanceof A.i6))throw F}const d=(0,s.k6)(),p=(0,s.TH)(),f=(0,r.useRef)(null),h=(0,r.useRef)(new Map),m=(0,r.useRef)(!1),[g,y]=(0,r.useState)(!1),[b,v]=(0,r.useState)(!1),[x,w]=(0,r.useState)(""),k=(0,r.useRef)(null),S=(0,r.useRef)(""),[E,C]=(0,r.useState)("");(0,r.useEffect)((()=>{if(!Array.isArray(ye.Kc))return;let e="";if(p.pathname.startsWith(c)){const t=p.pathname.substring(c.length);let n;for(const e of ye.Kc){const r="string"==typeof e?e:e.path;if(t===r||t.startsWith(`${r}/`)){n=r;break}}n&&(e=n)}S.current!==e&&(h.current.delete(e),S.current=e),C(e)}),[p.pathname,c]);const _=!!ye.hG&&Array.isArray(ye.Kc)&&""===E,N=(0,r.useCallback)((async()=>{if(_||h.current.get(E))return;h.current.set(E,"loading"),k.current?.autocomplete.destroy(),y(!0);const[{wrappedIndexes:e,zhDictionary:t},n]=await Promise.all([(0,we.w)(c,E),Me()]);if(k.current=n(f.current,{hint:!1,autoselect:!0,openOnFocus:!0,cssClasses:{root:(0,be.Z)(Ie.searchBar,{[Ie.searchBarLeft]:"left"===ye.pu}),noPrefix:!0,dropdownMenu:Ie.dropdownMenu,input:Ie.input,hint:Ie.hint,suggestions:Ie.suggestions,suggestion:Ie.suggestion,cursor:Ie.cursor,dataset:Ie.dataset,empty:Ie.empty}},[{source:(0,ke.v)(e,t,ye.qo),templates:{suggestion:je,empty:ze,footer:e=>{let{query:t,isEmpty:n}=e;if(n&&(!E||!ye.pQ))return;const r=(e=>{let{query:t,isEmpty:n}=e;const r=document.createElement("a"),i=new URLSearchParams;let s;if(i.set("q",t),E){const e=E&&Array.isArray(ye.Kc)?ye.Kc.find((e=>"string"==typeof e?e===E:e.path===E)):E,t=e?(0,De._)(e,o).label:E;s=ye.pQ&&n?(0,l.I)({id:"theme.SearchBar.seeAllOutsideContext",message:"See results outside {context}"},{context:t}):(0,l.I)({id:"theme.SearchBar.searchInContext",message:"See all results in {context}"},{context:t})}else s=(0,l.I)({id:"theme.SearchBar.seeAll",message:"See all results"});if(!E||!Array.isArray(ye.Kc)||ye.pQ&&n||i.set("ctx",E),c!==a){if(!c.startsWith(a))throw new Error(`Version url '${c}' does not start with base url '${a}', this is a bug of \`@easyops-cn/docusaurus-search-local\`, please report it.`);i.set("version",c.substring(a.length))}const u=`${a}search?${i.toString()}`;return r.href=u,r.textContent=s,r.addEventListener("click",(e=>{e.ctrlKey||e.metaKey||(e.preventDefault(),k.current?.autocomplete.close(),d.push(u))})),r})({query:t,isEmpty:n}),i=document.createElement("div");return i.className=Ie.hitFooter,i.appendChild(r),i}}}]).on("autocomplete:selected",(function(e,t){let{document:{u:n,h:r},tokens:a}=t;f.current?.blur();let o=n;if(ye.vc&&a.length>0){const e=new URLSearchParams;for(const t of a)e.append(Be,t);o+=`?${e.toString()}`}r&&(o+=r),d.push(o)})).on("autocomplete:closed",(()=>{f.current?.blur()})),h.current.set(E,"done"),y(!1),m.current){const e=f.current;e.value&&k.current?.autocomplete.open(),e.focus()}}),[_,E,c,a,d]);(0,r.useEffect)((()=>{if(!ye.vc)return;const e=n?new URLSearchParams(p.search).getAll(Be):[];setTimeout((()=>{const t=document.querySelector("article");if(!t)return;const n=new ye.vc(t);n.unmark(),0!==e.length&&n.mark(e),w(e.join(" ")),k.current?.autocomplete.setVal(e.join(" "))}))}),[n,p.search,p.pathname]);const[T,L]=(0,r.useState)(!1),P=(0,r.useCallback)((()=>{m.current=!0,N(),L(!0),t?.(!0)}),[t,N]),O=(0,r.useCallback)((()=>{L(!1),t?.(!1)}),[t]),R=(0,r.useCallback)((()=>{N()}),[N]),I=(0,r.useCallback)((e=>{w(e.target.value),e.target.value&&v(!0)}),[]),j=!!n&&/mac/i.test(navigator.userAgentData?.platform??navigator.platform);(0,r.useEffect)((()=>{if(!ye.AY)return;const e=e=>{!(j?e.metaKey:e.ctrlKey)||"k"!==e.key&&"K"!==e.key||(e.preventDefault(),f.current?.focus(),P())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[j,P]);const z=(0,r.useCallback)((()=>{const e=new URLSearchParams(p.search);e.delete(Be);const t=e.toString(),n=p.pathname+(""!=t?`?${t}`:"")+p.hash;n!=p.pathname+p.search+p.hash&&d.push(n),w(""),k.current?.autocomplete.setVal("")}),[p.pathname,p.search,p.hash,d]);return(0,u.jsxs)("div",{className:(0,be.Z)("navbar__search",Ie.searchBarContainer,{[Ie.searchIndexLoading]:g&&b,[Ie.focused]:T}),hidden:_,children:[(0,u.jsx)("input",{placeholder:(0,l.I)({id:"theme.SearchBar.label",message:"Search",description:"The ARIA label and placeholder for search button"}),"aria-label":"Search",className:"navbar__search-input",onMouseEnter:R,onFocus:P,onBlur:O,onChange:I,ref:f,value:x}),(0,u.jsx)(Fe.Z,{className:Ie.searchBarLoadingRing}),ye.AY&&ye.t_&&(""!==x?(0,u.jsx)("button",{className:Ie.searchClearButton,onClick:z,children:"\u2715"}):n&&(0,u.jsxs)("div",{className:Ie.searchHintContainer,children:[(0,u.jsx)("kbd",{className:Ie.searchHint,children:j?"\u2318":"ctrl"}),(0,u.jsx)("kbd",{className:Ie.searchHint,children:"K"})]}))]})},qe={navbarSearchContainer:"navbarSearchContainer_Bca1"};function Ue(e){let{children:t,className:n}=e;return(0,u.jsx)("div",{className:(0,a.Z)(n,qe.navbarSearchContainer),children:t})}var He=n(3438);const Qe=e=>e.docs.find((t=>t.id===e.mainDocId));const Ze={default:oe,localeDropdown:function(e){let{mobile:t,dropdownItemsBefore:n,dropdownItemsAfter:r,queryString:a="",...o}=e;const{i18n:{currentLocale:i,locales:c,localeConfigs:d}}=(0,le.Z)(),p=(0,he.l)(),{search:f,hash:h}=(0,s.TH)(),m=[...n,...c.map((e=>{const n=`${`pathname://${p.createUrl({locale:e,fullyQualified:!1})}`}${f}${h}${a}`;return{label:d[e].label,lang:d[e].htmlLang,to:n,target:"_self",autoAddBaseUrl:!1,className:e===i?t?"menu__link--active":"dropdown__link--active":""}})),...r],g=t?(0,l.I)({message:"Languages",id:"theme.navbar.mobileLanguageDropdown.label",description:"The label for the mobile language switcher dropdown"}):d[i].label;return(0,u.jsx)(fe,{...o,mobile:t,label:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(me,{className:ge}),g]}),items:m})},search:function(e){let{mobile:t,className:n}=e;return t?null:(0,u.jsx)(Ue,{className:n,children:(0,u.jsx)($e,{})})},dropdown:fe,html:function(e){let{value:t,className:n,mobile:r=!1,isDropdownItem:o=!1}=e;const i=o?"li":"div";return(0,u.jsx)(i,{className:(0,a.Z)({navbar__item:!r&&!o,"menu__list-item":r},n),dangerouslySetInnerHTML:{__html:t}})},doc:function(e){let{docId:t,label:n,docsPluginId:r,...a}=e;const{activeDoc:o}=(0,xe.Iw)(r),i=(0,He.vY)(t,r),s=o?.path===i?.path;return null===i||i.unlisted&&!s?null:(0,u.jsx)(oe,{exact:!0,...a,isActive:()=>s||!!o?.sidebar&&o.sidebar===i.sidebar,label:n??i.id,to:i.path})},docSidebar:function(e){let{sidebarId:t,label:n,docsPluginId:r,...a}=e;const{activeDoc:o}=(0,xe.Iw)(r),i=(0,He.oz)(t,r).link;if(!i)throw new Error(`DocSidebarNavbarItem: Sidebar with ID "${t}" doesn't have anything to be linked to.`);return(0,u.jsx)(oe,{exact:!0,...a,isActive:()=>o?.sidebar===t,label:n??i.label,to:i.path})},docsVersion:function(e){let{label:t,to:n,docsPluginId:r,...a}=e;const o=(0,He.lO)(r)[0],i=t??o.label,s=n??(e=>e.docs.find((t=>t.id===e.mainDocId)))(o).path;return(0,u.jsx)(oe,{...a,label:i,to:s})},docsVersionDropdown:function(e){let{mobile:t,docsPluginId:n,dropdownActiveClassDisabled:r,dropdownItemsBefore:a,dropdownItemsAfter:o,...i}=e;const{search:c,hash:d}=(0,s.TH)(),p=(0,xe.Iw)(n),f=(0,xe.gB)(n),{savePreferredVersionName:h}=(0,ve.J)(n),m=[...a,...f.map((e=>{const t=p.alternateDocVersions[e.name]??Qe(e);return{label:e.label,to:`${t.path}${c}${d}`,isActive:()=>e===p.activeVersion,onClick:()=>h(e.name)}})),...o],g=(0,He.lO)(n)[0],y=t&&m.length>1?(0,l.I)({id:"theme.navbar.mobileVersionsDropdown.label",message:"Versions",description:"The label for the navbar versions dropdown on mobile view"}):g.label,b=t&&m.length>1?void 0:Qe(g).path;return m.length<=1?(0,u.jsx)(oe,{...i,mobile:t,label:y,to:b,isActive:r?()=>!1:void 0}):(0,u.jsx)(fe,{...i,mobile:t,label:y,to:b,items:m,isActive:r?()=>!1:void 0})}};function Ve(e){let{type:t,...n}=e;const r=function(e,t){return e&&"default"!==e?e:"items"in t?"dropdown":"default"}(t,n),a=Ze[r];if(!a)throw new Error(`No NavbarItem component found for type "${t}".`);return(0,u.jsx)(a,{...n})}function We(){const e=(0,L.e)(),t=(0,x.L)().navbar.items;return(0,u.jsx)("ul",{className:"menu__list",children:t.map(((t,n)=>(0,r.createElement)(Ve,{mobile:!0,...t,onClick:()=>e.toggle(),key:n})))})}function Ge(e){return(0,u.jsx)("button",{...e,type:"button",className:"clean-btn navbar-sidebar__back",children:(0,u.jsx)(l.Z,{id:"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel",description:"The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)",children:"\u2190 Back to main menu"})})}function Ye(){const e=0===(0,x.L)().navbar.items.length,t=z();return(0,u.jsxs)(u.Fragment,{children:[!e&&(0,u.jsx)(Ge,{onClick:()=>t.hide()}),t.content]})}function Ke(){const e=(0,L.e)();var t;return void 0===(t=e.shown)&&(t=!0),(0,r.useEffect)((()=>(document.body.style.overflow=t?"hidden":"visible",()=>{document.body.style.overflow="visible"})),[t]),e.shouldRender?(0,u.jsx)(F,{header:(0,u.jsx)(Y,{}),primaryMenu:(0,u.jsx)(We,{}),secondaryMenu:(0,u.jsx)(Ye,{})}):null}const Xe={navbarHideable:"navbarHideable_m1mJ",navbarHidden:"navbarHidden_jGov"};function Je(e){return(0,u.jsx)("div",{role:"presentation",...e,className:(0,a.Z)("navbar-sidebar__backdrop",e.className)})}function et(e){let{children:t}=e;const{navbar:{hideOnScroll:n,style:o}}=(0,x.L)(),i=(0,L.e)(),{navbarRef:s,isNavbarVisible:d}=function(e){const[t,n]=(0,r.useState)(e),a=(0,r.useRef)(!1),o=(0,r.useRef)(0),i=(0,r.useCallback)((e=>{null!==e&&(o.current=e.getBoundingClientRect().height)}),[]);return(0,P.RF)(((t,r)=>{let{scrollY:i}=t;if(!e)return;if(i<o.current)return void n(!0);if(a.current)return void(a.current=!1);const s=r?.scrollY,l=document.documentElement.scrollHeight-o.current,c=window.innerHeight;s&&i>=s?n(!1):i+c<l&&n(!0)})),(0,c.S)((t=>{if(!e)return;const r=t.location.hash;if(r?document.getElementById(r.substring(1)):void 0)return a.current=!0,void n(!1);n(!0)})),{navbarRef:i,isNavbarVisible:t}}(n);return(0,u.jsxs)("nav",{ref:s,"aria-label":(0,l.I)({id:"theme.NavBar.navAriaLabel",message:"Main",description:"The ARIA label for the main navigation"}),className:(0,a.Z)("navbar","navbar--fixed-top",n&&[Xe.navbarHideable,!d&&Xe.navbarHidden],{"navbar--dark":"dark"===o,"navbar--primary":"primary"===o,"navbar-sidebar--show":i.shown}),children:[t,(0,u.jsx)(Je,{onClick:i.toggle}),(0,u.jsx)(Ke,{})]})}var tt=n(8780);const nt={errorBoundaryError:"errorBoundaryError_a6uf",errorBoundaryFallback:"errorBoundaryFallback_VBag"};function rt(e){return(0,u.jsx)("button",{type:"button",...e,children:(0,u.jsx)(l.Z,{id:"theme.ErrorPageContent.tryAgain",description:"The label of the button to try again rendering when the React error boundary captures an error",children:"Try again"})})}function at(e){let{error:t}=e;const n=(0,tt.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,u.jsx)("p",{className:nt.errorBoundaryError,children:n})}class ot extends r.Component{componentDidCatch(e,t){throw this.props.onError(e,t)}render(){return this.props.children}}const it="right";function st(e){let{width:t=30,height:n=30,className:r,...a}=e;return(0,u.jsx)("svg",{className:r,width:t,height:n,viewBox:"0 0 30 30","aria-hidden":"true",...a,children:(0,u.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"})})}function lt(){const{toggle:e,shown:t}=(0,L.e)();return(0,u.jsx)("button",{onClick:e,"aria-label":(0,l.I)({id:"theme.docs.sidebar.toggleSidebarButtonAriaLabel",message:"Toggle navigation bar",description:"The ARIA label for hamburger menu button of mobile navigation"}),"aria-expanded":t,className:"navbar__toggle clean-btn",type:"button",children:(0,u.jsx)(st,{})})}const ct={colorModeToggle:"colorModeToggle_DEke"};function ut(e){let{items:t}=e;return(0,u.jsx)(u.Fragment,{children:t.map(((e,t)=>(0,u.jsx)(ot,{onError:t=>new Error(`A theme navbar item failed to render.\nPlease double-check the following navbar item (themeConfig.navbar.items) of your Docusaurus config:\n${JSON.stringify(e,null,2)}`,{cause:t}),children:(0,u.jsx)(Ve,{...e})},t)))})}function dt(e){let{left:t,right:n}=e;return(0,u.jsxs)("div",{className:"navbar__inner",children:[(0,u.jsx)("div",{className:"navbar__items",children:t}),(0,u.jsx)("div",{className:"navbar__items navbar__items--right",children:n})]})}function pt(){const e=(0,L.e)(),t=(0,x.L)().navbar.items,[n,r]=function(e){function t(e){return"left"===(e.position??it)}return[e.filter(t),e.filter((e=>!t(e)))]}(t),a=t.find((e=>"search"===e.type));return(0,u.jsx)(dt,{left:(0,u.jsxs)(u.Fragment,{children:[!e.disabled&&(0,u.jsx)(lt,{}),(0,u.jsx)(W,{}),(0,u.jsx)(ut,{items:n})]}),right:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ut,{items:r}),(0,u.jsx)(Z,{className:ct.colorModeToggle}),!a&&(0,u.jsx)(Ue,{children:(0,u.jsx)($e,{})})]})})}function ft(){return(0,u.jsx)(et,{children:(0,u.jsx)(pt,{})})}function ht(e){let{item:t}=e;const{to:n,href:r,label:a,prependBaseUrlToHref:o,...i}=t,s=(0,X.Z)(n),l=(0,X.Z)(r,{forcePrependBaseUrl:!0});return(0,u.jsxs)(K.Z,{className:"footer__link-item",...r?{href:o?l:r}:{to:s},...i,children:[a,r&&!(0,J.Z)(r)&&(0,u.jsx)(te.Z,{})]})}function mt(e){let{item:t}=e;return t.html?(0,u.jsx)("li",{className:"footer__item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)("li",{className:"footer__item",children:(0,u.jsx)(ht,{item:t})},t.href??t.to)}function gt(e){let{column:t}=e;return(0,u.jsxs)("div",{className:"col footer__col",children:[(0,u.jsx)("div",{className:"footer__title",children:t.title}),(0,u.jsx)("ul",{className:"footer__items clean-list",children:t.items.map(((e,t)=>(0,u.jsx)(mt,{item:e},t)))})]})}function yt(e){let{columns:t}=e;return(0,u.jsx)("div",{className:"row footer__links",children:t.map(((e,t)=>(0,u.jsx)(gt,{column:e},t)))})}function bt(){return(0,u.jsx)("span",{className:"footer__link-separator",children:"\xb7"})}function vt(e){let{item:t}=e;return t.html?(0,u.jsx)("span",{className:"footer__link-item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)(ht,{item:t})}function xt(e){let{links:t}=e;return(0,u.jsx)("div",{className:"footer__links text--center",children:(0,u.jsx)("div",{className:"footer__links",children:t.map(((e,n)=>(0,u.jsxs)(r.Fragment,{children:[(0,u.jsx)(vt,{item:e}),t.length!==n+1&&(0,u.jsx)(bt,{})]},n)))})})}function wt(e){let{links:t}=e;return function(e){return"title"in e[0]}(t)?(0,u.jsx)(yt,{columns:t}):(0,u.jsx)(xt,{links:t})}var kt=n(9965);const St={footerLogoLink:"footerLogoLink_BH7S"};function Et(e){let{logo:t}=e;const{withBaseUrl:n}=(0,X.C)(),r={light:n(t.src),dark:n(t.srcDark??t.src)};return(0,u.jsx)(kt.Z,{className:(0,a.Z)("footer__logo",t.className),alt:t.alt,sources:r,width:t.width,height:t.height,style:t.style})}function Ct(e){let{logo:t}=e;return t.href?(0,u.jsx)(K.Z,{href:t.href,className:St.footerLogoLink,target:t.target,children:(0,u.jsx)(Et,{logo:t})}):(0,u.jsx)(Et,{logo:t})}function _t(e){let{copyright:t}=e;return(0,u.jsx)("div",{className:"footer__copyright",dangerouslySetInnerHTML:{__html:t}})}function Nt(e){let{style:t,links:n,logo:r,copyright:o}=e;return(0,u.jsx)("footer",{className:(0,a.Z)("footer",{"footer--dark":"dark"===t}),children:(0,u.jsxs)("div",{className:"container container-fluid",children:[n,(r||o)&&(0,u.jsxs)("div",{className:"footer__bottom text--center",children:[r&&(0,u.jsx)("div",{className:"margin-bottom--sm",children:r}),o]})]})})}function Tt(){const{footer:e}=(0,x.L)();if(!e)return null;const{copyright:t,links:n,logo:r,style:a}=e;return(0,u.jsx)(Nt,{style:a,links:n&&n.length>0&&(0,u.jsx)(wt,{links:n}),logo:r&&(0,u.jsx)(Ct,{logo:r}),copyright:t&&(0,u.jsx)(_t,{copyright:t})})}const Lt=r.memo(Tt),Pt=(0,A.Qc)([D.S,w.pl,P.OC,ve.L5,i.VC,function(e){let{children:t}=e;return(0,u.jsx)(O.n2,{children:(0,u.jsx)(L.M,{children:(0,u.jsx)(I,{children:t})})})}]);function At(e){let{children:t}=e;return(0,u.jsx)(Pt,{children:t})}var Ot=n(2503);function Rt(e){let{error:t,tryAgain:n}=e;return(0,u.jsx)("main",{className:"container margin-vert--xl",children:(0,u.jsx)("div",{className:"row",children:(0,u.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,u.jsx)(Ot.Z,{as:"h1",className:"hero__title",children:(0,u.jsx)(l.Z,{id:"theme.ErrorPageContent.title",description:"The title of the fallback page when the page crashed",children:"This page crashed."})}),(0,u.jsx)("div",{className:"margin-vert--lg",children:(0,u.jsx)(rt,{onClick:n,className:"button button--primary shadow--lw"})}),(0,u.jsx)("hr",{}),(0,u.jsx)("div",{className:"margin-vert--md",children:(0,u.jsx)(at,{error:t})})]})})})}const It={mainWrapper:"mainWrapper_z2l0"};function jt(e){const{children:t,noFooter:n,wrapperClassName:r,title:s,description:l}=e;return(0,y.t)(),(0,u.jsxs)(At,{children:[(0,u.jsx)(i.d,{title:s,description:l}),(0,u.jsx)(v,{}),(0,u.jsx)(T,{}),(0,u.jsx)(ft,{}),(0,u.jsx)("div",{id:d,className:(0,a.Z)(g.k.wrapper.main,It.mainWrapper,r),children:(0,u.jsx)(o.Z,{fallback:e=>(0,u.jsx)(Rt,{...e}),children:t})}),!n&&(0,u.jsx)(Lt,{})]})}},1327:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(7294);var r=n(9960),a=n(4996),o=n(2263),i=n(6668),s=n(9965),l=n(5893);function c(e){let{logo:t,alt:n,imageClassName:r}=e;const o={light:(0,a.Z)(t.src),dark:(0,a.Z)(t.srcDark||t.src)},i=(0,l.jsx)(s.Z,{className:t.className,sources:o,height:t.height,width:t.width,alt:n,style:t.style});return r?(0,l.jsx)("div",{className:r,children:i}):i}function u(e){const{siteConfig:{title:t}}=(0,o.Z)(),{navbar:{title:n,logo:s}}=(0,i.L)(),{imageClassName:u,titleClassName:d,...p}=e,f=(0,a.Z)(s?.href||"/"),h=n?"":t,m=s?.alt??h;return(0,l.jsxs)(r.Z,{to:f,...p,...s?.target&&{target:s.target},children:[s&&(0,l.jsx)(c,{logo:s,alt:m,imageClassName:u}),null!=n&&(0,l.jsx)("b",{className:d,children:n})]})}},197:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(7294);var r=n(5742),a=n(5893);function o(e){let{locale:t,version:n,tag:o}=e;const i=t;return(0,a.jsxs)(r.Z,{children:[t&&(0,a.jsx)("meta",{name:"docusaurus_locale",content:t}),n&&(0,a.jsx)("meta",{name:"docusaurus_version",content:n}),o&&(0,a.jsx)("meta",{name:"docusaurus_tag",content:o}),i&&(0,a.jsx)("meta",{name:"docsearch:language",content:i}),n&&(0,a.jsx)("meta",{name:"docsearch:version",content:n}),o&&(0,a.jsx)("meta",{name:"docsearch:docusaurus_tag",content:o})]})}},9965:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(7294),a=n(512),o=n(2389),i=n(2949);const s={themedComponent:"themedComponent_mlkZ","themedComponent--light":"themedComponent--light_NVdE","themedComponent--dark":"themedComponent--dark_xIcU"};var l=n(5893);function c(e){let{className:t,children:n}=e;const c=(0,o.Z)(),{colorMode:u}=(0,i.I)();return(0,l.jsx)(l.Fragment,{children:(c?"dark"===u?["dark"]:["light"]:["light","dark"]).map((e=>{const o=n({theme:e,className:(0,a.Z)(t,s.themedComponent,s[`themedComponent--${e}`])});return(0,l.jsx)(r.Fragment,{children:o},e)}))})}function u(e){const{sources:t,className:n,alt:r,...a}=e;return(0,l.jsx)(c,{className:n,children:e=>{let{theme:n,className:o}=e;return(0,l.jsx)("img",{src:t[n],alt:r,className:o,...a})}})}},6043:(e,t,n)=>{"use strict";n.d(t,{u:()=>c,z:()=>y});var r=n(7294),a=n(412),o=n(469),i=n(1442),s=n(5893);const l="ease-in-out";function c(e){let{initialState:t}=e;const[n,a]=(0,r.useState)(t??!1),o=(0,r.useCallback)((()=>{a((e=>!e))}),[]);return{collapsed:n,setCollapsed:a,toggleCollapsed:o}}const u={display:"none",overflow:"hidden",height:"0px"},d={display:"block",overflow:"visible",height:"auto"};function p(e,t){const n=t?u:d;e.style.display=n.display,e.style.overflow=n.overflow,e.style.height=n.height}function f(e){let{collapsibleRef:t,collapsed:n,animation:a}=e;const o=(0,r.useRef)(!1);(0,r.useEffect)((()=>{const e=t.current;function r(){const t=e.scrollHeight,n=a?.duration??function(e){if((0,i.n)())return 1;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}(t);return{transition:`height ${n}ms ${a?.easing??l}`,height:`${t}px`}}function s(){const t=r();e.style.transition=t.transition,e.style.height=t.height}if(!o.current)return p(e,n),void(o.current=!0);return e.style.willChange="height",function(){const t=requestAnimationFrame((()=>{n?(s(),requestAnimationFrame((()=>{e.style.height=u.height,e.style.overflow=u.overflow}))):(e.style.display="block",requestAnimationFrame((()=>{s()})))}));return()=>cancelAnimationFrame(t)}()}),[t,n,a])}function h(e){if(!a.Z.canUseDOM)return e?u:d}function m(e){let{as:t="div",collapsed:n,children:a,animation:o,onCollapseTransitionEnd:i,className:l,disableSSRStyle:c}=e;const u=(0,r.useRef)(null);return f({collapsibleRef:u,collapsed:n,animation:o}),(0,s.jsx)(t,{ref:u,style:c?void 0:h(n),onTransitionEnd:e=>{"height"===e.propertyName&&(p(u.current,n),i?.(n))},className:l,children:a})}function g(e){let{collapsed:t,...n}=e;const[a,i]=(0,r.useState)(!t),[l,c]=(0,r.useState)(t);return(0,o.Z)((()=>{t||i(!0)}),[t]),(0,o.Z)((()=>{a&&c(t)}),[a,t]),a?(0,s.jsx)(m,{...n,collapsed:l}):null}function y(e){let{lazy:t,...n}=e;const r=t?g:m;return(0,s.jsx)(r,{...n})}},9689:(e,t,n)=>{"use strict";n.d(t,{nT:()=>m,pl:()=>h});var r=n(7294),a=n(2389),o=n(12),i=n(902),s=n(6668),l=n(5893);const c=(0,o.WA)("docusaurus.announcement.dismiss"),u=(0,o.WA)("docusaurus.announcement.id"),d=()=>"true"===c.get(),p=e=>c.set(String(e)),f=r.createContext(null);function h(e){let{children:t}=e;const n=function(){const{announcementBar:e}=(0,s.L)(),t=(0,a.Z)(),[n,o]=(0,r.useState)((()=>!!t&&d()));(0,r.useEffect)((()=>{o(d())}),[]);const i=(0,r.useCallback)((()=>{p(!0),o(!0)}),[]);return(0,r.useEffect)((()=>{if(!e)return;const{id:t}=e;let n=u.get();"annoucement-bar"===n&&(n="announcement-bar");const r=t!==n;u.set(t),r&&p(!1),!r&&d()||o(!1)}),[e]),(0,r.useMemo)((()=>({isActive:!!e&&!n,close:i})),[e,n,i])}();return(0,l.jsx)(f.Provider,{value:n,children:t})}function m(){const e=(0,r.useContext)(f);if(!e)throw new i.i6("AnnouncementBarProvider");return e}},2949:(e,t,n)=>{"use strict";n.d(t,{I:()=>y,S:()=>g});var r=n(7294),a=n(412),o=n(902),i=n(12),s=n(6668),l=n(5893);const c=r.createContext(void 0),u="theme",d=(0,i.WA)(u),p={light:"light",dark:"dark"},f=e=>e===p.dark?p.dark:p.light,h=e=>a.Z.canUseDOM?f(document.documentElement.getAttribute("data-theme")):f(e),m=e=>{d.set(f(e))};function g(e){let{children:t}=e;const n=function(){const{colorMode:{defaultMode:e,disableSwitch:t,respectPrefersColorScheme:n}}=(0,s.L)(),[a,o]=(0,r.useState)(h(e));(0,r.useEffect)((()=>{t&&d.del()}),[t]);const i=(0,r.useCallback)((function(t,r){void 0===r&&(r={});const{persist:a=!0}=r;t?(o(t),a&&m(t)):(o(n?window.matchMedia("(prefers-color-scheme: dark)").matches?p.dark:p.light:e),d.del())}),[n,e]);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-theme",f(a))}),[a]),(0,r.useEffect)((()=>{if(t)return;const e=e=>{if(e.key!==u)return;const t=d.get();null!==t&&i(f(t))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[t,i]);const l=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{if(t&&!n)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>{window.matchMedia("print").matches||l.current?l.current=window.matchMedia("print").matches:i(null)};return e.addListener(r),()=>e.removeListener(r)}),[i,t,n]),(0,r.useMemo)((()=>({colorMode:a,setColorMode:i,get isDarkTheme(){return a===p.dark},setLightTheme(){i(p.light)},setDarkTheme(){i(p.dark)}})),[a,i])}();return(0,l.jsx)(c.Provider,{value:n,children:t})}function y(){const e=(0,r.useContext)(c);if(null==e)throw new o.i6("ColorModeProvider","Please see https://docusaurus.io/docs/api/themes/configuration#use-color-mode.");return e}},373:(e,t,n)=>{"use strict";n.d(t,{J:()=>v,L5:()=>y});var r=n(7294),a=n(143),o=n(9935),i=n(6668),s=n(3438),l=n(902),c=n(12),u=n(5893);const d=e=>`docs-preferred-version-${e}`,p={save:(e,t,n)=>{(0,c.WA)(d(e),{persistence:t}).set(n)},read:(e,t)=>(0,c.WA)(d(e),{persistence:t}).get(),clear:(e,t)=>{(0,c.WA)(d(e),{persistence:t}).del()}},f=e=>Object.fromEntries(e.map((e=>[e,{preferredVersionName:null}])));const h=r.createContext(null);function m(){const e=(0,a._r)(),t=(0,i.L)().docs.versionPersistence,n=(0,r.useMemo)((()=>Object.keys(e)),[e]),[o,s]=(0,r.useState)((()=>f(n)));(0,r.useEffect)((()=>{s(function(e){let{pluginIds:t,versionPersistence:n,allDocsData:r}=e;function a(e){const t=p.read(e,n);return r[e].versions.some((e=>e.name===t))?{preferredVersionName:t}:(p.clear(e,n),{preferredVersionName:null})}return Object.fromEntries(t.map((e=>[e,a(e)])))}({allDocsData:e,versionPersistence:t,pluginIds:n}))}),[e,t,n]);return[o,(0,r.useMemo)((()=>({savePreferredVersion:function(e,n){p.save(e,t,n),s((t=>({...t,[e]:{preferredVersionName:n}})))}})),[t])]}function g(e){let{children:t}=e;const n=m();return(0,u.jsx)(h.Provider,{value:n,children:t})}function y(e){let{children:t}=e;return s.cE?(0,u.jsx)(g,{children:t}):(0,u.jsx)(u.Fragment,{children:t})}function b(){const e=(0,r.useContext)(h);if(!e)throw new l.i6("DocsPreferredVersionContextProvider");return e}function v(e){void 0===e&&(e=o.m);const t=(0,a.zh)(e),[n,i]=b(),{preferredVersionName:s}=n[e];return{preferredVersion:t.versions.find((e=>e.name===s))??null,savePreferredVersionName:(0,r.useCallback)((t=>{i.savePreferredVersion(e,t)}),[i,e])}}},1116:(e,t,n)=>{"use strict";n.d(t,{V:()=>c,b:()=>l});var r=n(7294),a=n(902),o=n(5893);const i=Symbol("EmptyContext"),s=r.createContext(i);function l(e){let{children:t,name:n,items:a}=e;const i=(0,r.useMemo)((()=>n&&a?{name:n,items:a}:null),[n,a]);return(0,o.jsx)(s.Provider,{value:i,children:t})}function c(){const e=(0,r.useContext)(s);if(e===i)throw new a.i6("DocsSidebarProvider");return e}},4477:(e,t,n)=>{"use strict";n.d(t,{E:()=>l,q:()=>s});var r=n(7294),a=n(902),o=n(5893);const i=r.createContext(null);function s(e){let{children:t,version:n}=e;return(0,o.jsx)(i.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(i);if(null===e)throw new a.i6("DocsVersionProvider");return e}},3163:(e,t,n)=>{"use strict";n.d(t,{M:()=>p,e:()=>f});var r=n(7294),a=n(3102),o=n(7524),i=n(1980),s=n(6668),l=n(902),c=n(5893);const u=r.createContext(void 0);function d(){const e=function(){const e=(0,a.HY)(),{items:t}=(0,s.L)().navbar;return 0===t.length&&!e.component}(),t=(0,o.i)(),n=!e&&"mobile"===t,[l,c]=(0,r.useState)(!1);(0,i.Rb)((()=>{if(l)return c(!1),!1}));const u=(0,r.useCallback)((()=>{c((e=>!e))}),[]);return(0,r.useEffect)((()=>{"desktop"===t&&c(!1)}),[t]),(0,r.useMemo)((()=>({disabled:e,shouldRender:n,toggle:u,shown:l})),[e,n,u,l])}function p(e){let{children:t}=e;const n=d();return(0,c.jsx)(u.Provider,{value:n,children:t})}function f(){const e=r.useContext(u);if(void 0===e)throw new l.i6("NavbarMobileSidebarProvider");return e}},3102:(e,t,n)=>{"use strict";n.d(t,{HY:()=>l,Zo:()=>c,n2:()=>s});var r=n(7294),a=n(902),o=n(5893);const i=r.createContext(null);function s(e){let{children:t}=e;const n=(0,r.useState)({component:null,props:null});return(0,o.jsx)(i.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(i);if(!e)throw new a.i6("NavbarSecondaryMenuContentProvider");return e[0]}function c(e){let{component:t,props:n}=e;const o=(0,r.useContext)(i);if(!o)throw new a.i6("NavbarSecondaryMenuContentProvider");const[,s]=o,l=(0,a.Ql)(n);return(0,r.useEffect)((()=>{s({component:t,props:l})}),[s,t,l]),(0,r.useEffect)((()=>()=>s({component:null,props:null})),[s]),null}},9727:(e,t,n)=>{"use strict";n.d(t,{h:()=>a,t:()=>o});var r=n(7294);const a="navigation-with-keyboard";function o(){(0,r.useEffect)((()=>{function e(e){"keydown"===e.type&&"Tab"===e.key&&document.body.classList.add(a),"mousedown"===e.type&&document.body.classList.remove(a)}return document.addEventListener("keydown",e),document.addEventListener("mousedown",e),()=>{document.body.classList.remove(a),document.removeEventListener("keydown",e),document.removeEventListener("mousedown",e)}}),[])}},7524:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r=n(7294),a=n(412);const o={desktop:"desktop",mobile:"mobile",ssr:"ssr"},i=996;function s(){const[e,t]=(0,r.useState)((()=>"ssr"));return(0,r.useEffect)((()=>{function e(){t(function(){if(!a.Z.canUseDOM)throw new Error("getWindowSize() should only be called after React hydration");return window.innerWidth>i?o.desktop:o.mobile}())}return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),e}},5281:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});const r={page:{blogListPage:"blog-list-page",blogPostPage:"blog-post-page",blogTagsListPage:"blog-tags-list-page",blogTagPostListPage:"blog-tags-post-list-page",docsDocPage:"docs-doc-page",docsTagsListPage:"docs-tags-list-page",docsTagDocListPage:"docs-tags-doc-list-page",mdxPage:"mdx-page"},wrapper:{main:"main-wrapper",blogPages:"blog-wrapper",docsPages:"docs-wrapper",mdxPages:"mdx-wrapper"},common:{editThisPage:"theme-edit-this-page",lastUpdated:"theme-last-updated",backToTopButton:"theme-back-to-top-button",codeBlock:"theme-code-block",admonition:"theme-admonition",unlistedBanner:"theme-unlisted-banner",admonitionType:e=>`theme-admonition-${e}`},layout:{},docs:{docVersionBanner:"theme-doc-version-banner",docVersionBadge:"theme-doc-version-badge",docBreadcrumbs:"theme-doc-breadcrumbs",docMarkdown:"theme-doc-markdown",docTocMobile:"theme-doc-toc-mobile",docTocDesktop:"theme-doc-toc-desktop",docFooter:"theme-doc-footer",docFooterTagsRow:"theme-doc-footer-tags-row",docFooterEditMetaRow:"theme-doc-footer-edit-meta-row",docSidebarContainer:"theme-doc-sidebar-container",docSidebarMenu:"theme-doc-sidebar-menu",docSidebarItemCategory:"theme-doc-sidebar-item-category",docSidebarItemLink:"theme-doc-sidebar-item-link",docSidebarItemCategoryLevel:e=>`theme-doc-sidebar-item-category-level-${e}`,docSidebarItemLinkLevel:e=>`theme-doc-sidebar-item-link-level-${e}`},blog:{}}},1442:(e,t,n)=>{"use strict";function r(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}n.d(t,{n:()=>r})},3438:(e,t,n)=>{"use strict";n.d(t,{LM:()=>h,MN:()=>N,SN:()=>_,_F:()=>b,cE:()=>p,f:()=>x,jA:()=>m,lO:()=>S,oz:()=>E,s1:()=>k,vY:()=>C,xz:()=>f});var r=n(7294),a=n(6550),o=n(8790),i=n(143),s=n(373),l=n(4477),c=n(1116),u=n(7392),d=n(8596);const p=!!i._r;function f(e){const t=(0,l.E)();if(!e)return;const n=t.docs[e];if(!n)throw new Error(`no version doc found by id=${e}`);return n}function h(e){return"link"!==e.type||e.unlisted?"category"===e.type?function(e){if(e.href&&!e.linkUnlisted)return e.href;for(const t of e.items){const e=h(t);if(e)return e}}(e):void 0:e.href}function m(){const{pathname:e}=(0,a.TH)(),t=(0,c.V)();if(!t)throw new Error("Unexpected: cant find current sidebar in context");const n=w({sidebarItems:t.items,pathname:e,onlyCategories:!0}).slice(-1)[0];if(!n)throw new Error(`${e} is not associated with a category. useCurrentSidebarCategory() should only be used on category index pages.`);return n}const g=(e,t)=>void 0!==e&&(0,d.Mg)(e,t),y=(e,t)=>e.some((e=>b(e,t)));function b(e,t){return"link"===e.type?g(e.href,t):"category"===e.type&&(g(e.href,t)||y(e.items,t))}function v(e,t){switch(e.type){case"category":return b(e,t)||e.items.some((e=>v(e,t)));case"link":return!e.unlisted||b(e,t);default:return!0}}function x(e,t){return(0,r.useMemo)((()=>e.filter((e=>v(e,t)))),[e,t])}function w(e){let{sidebarItems:t,pathname:n,onlyCategories:r=!1}=e;const a=[];return function e(t){for(const o of t)if("category"===o.type&&((0,d.Mg)(o.href,n)||e(o.items))||"link"===o.type&&(0,d.Mg)(o.href,n)){return r&&"category"!==o.type||a.unshift(o),!0}return!1}(t),a}function k(){const e=(0,c.V)(),{pathname:t}=(0,a.TH)(),n=(0,i.gA)()?.pluginData.breadcrumbs;return!1!==n&&e?w({sidebarItems:e.items,pathname:t}):null}function S(e){const{activeVersion:t}=(0,i.Iw)(e),{preferredVersion:n}=(0,s.J)(e),a=(0,i.yW)(e);return(0,r.useMemo)((()=>(0,u.j)([t,n,a].filter(Boolean))),[t,n,a])}function E(e,t){const n=S(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.sidebars?Object.entries(e.sidebars):[])),r=t.find((t=>t[0]===e));if(!r)throw new Error(`Can't find any sidebar with id "${e}" in version${n.length>1?"s":""} ${n.map((e=>e.name)).join(", ")}".\nAvailable sidebar ids are:\n- ${t.map((e=>e[0])).join("\n- ")}`);return r[1]}),[e,n])}function C(e,t){const n=S(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.docs)),r=t.find((t=>t.id===e));if(!r){if(n.flatMap((e=>e.draftIds)).includes(e))return null;throw new Error(`Couldn't find any doc with id "${e}" in version${n.length>1?"s":""} "${n.map((e=>e.name)).join(", ")}".\nAvailable doc ids are:\n- ${(0,u.j)(t.map((e=>e.id))).join("\n- ")}`)}return r}),[e,n])}function _(e){let{route:t}=e;const n=(0,a.TH)(),r=(0,l.E)(),i=t.routes,s=i.find((e=>(0,a.LX)(n.pathname,e)));if(!s)return null;const c=s.sidebar,u=c?r.docsSidebars[c]:void 0;return{docElement:(0,o.H)(i),sidebarName:c,sidebarItems:u}}function N(e){return e.filter((e=>!("category"===e.type||"link"===e.type)||!!h(e)))}},1980:(e,t,n)=>{"use strict";n.d(t,{Rb:()=>i,_X:()=>s});var r=n(7294),a=n(6550),o=n(902);function i(e){!function(e){const t=(0,a.k6)(),n=(0,o.zX)(e);(0,r.useEffect)((()=>t.block(((e,t)=>n(e,t)))),[t,n])}(((t,n)=>{if("POP"===n)return e(t,n)}))}function s(e){return function(e){const t=(0,a.k6)();return(0,r.useSyncExternalStore)(t.listen,(()=>e(t)),(()=>e(t)))}((t=>null===e?null:new URLSearchParams(t.location.search).get(e)))}},7392:(e,t,n)=>{"use strict";function r(e,t){return void 0===t&&(t=(e,t)=>e===t),e.filter(((n,r)=>e.findIndex((e=>t(e,n)))!==r))}function a(e){return Array.from(new Set(e))}n.d(t,{j:()=>a,l:()=>r})},1944:(e,t,n)=>{"use strict";n.d(t,{FG:()=>f,d:()=>d,VC:()=>h});var r=n(7294),a=n(512),o=n(5742),i=n(226);function s(){const e=r.useContext(i._);if(!e)throw new Error("Unexpected: no Docusaurus route context found");return e}var l=n(4996),c=n(2263);var u=n(5893);function d(e){let{title:t,description:n,keywords:r,image:a,children:i}=e;const s=function(e){const{siteConfig:t}=(0,c.Z)(),{title:n,titleDelimiter:r}=t;return e?.trim().length?`${e.trim()} ${r} ${n}`:n}(t),{withBaseUrl:d}=(0,l.C)(),p=a?d(a,{absolute:!0}):void 0;return(0,u.jsxs)(o.Z,{children:[t&&(0,u.jsx)("title",{children:s}),t&&(0,u.jsx)("meta",{property:"og:title",content:s}),n&&(0,u.jsx)("meta",{name:"description",content:n}),n&&(0,u.jsx)("meta",{property:"og:description",content:n}),r&&(0,u.jsx)("meta",{name:"keywords",content:Array.isArray(r)?r.join(","):r}),p&&(0,u.jsx)("meta",{property:"og:image",content:p}),p&&(0,u.jsx)("meta",{name:"twitter:image",content:p}),i]})}const p=r.createContext(void 0);function f(e){let{className:t,children:n}=e;const i=r.useContext(p),s=(0,a.Z)(i,t);return(0,u.jsxs)(p.Provider,{value:s,children:[(0,u.jsx)(o.Z,{children:(0,u.jsx)("html",{className:s})}),n]})}function h(e){let{children:t}=e;const n=s(),r=`plugin-${n.plugin.name.replace(/docusaurus-(?:plugin|theme)-(?:content-)?/gi,"")}`;const o=`plugin-id-${n.plugin.id}`;return(0,u.jsx)(f,{className:(0,a.Z)(r,o),children:t})}},902:(e,t,n)=>{"use strict";n.d(t,{D9:()=>s,Qc:()=>u,Ql:()=>c,i6:()=>l,zX:()=>i});var r=n(7294),a=n(469),o=n(5893);function i(e){const t=(0,r.useRef)(e);return(0,a.Z)((()=>{t.current=e}),[e]),(0,r.useCallback)((function(){return t.current(...arguments)}),[])}function s(e){const t=(0,r.useRef)();return(0,a.Z)((()=>{t.current=e})),t.current}class l extends Error{constructor(e,t){super(),this.name="ReactContextError",this.message=`Hook ${this.stack?.split("\n")[1]?.match(/at (?:\w+\.)?(?<name>\w+)/)?.groups.name??""} is called outside the <${e}>. ${t??""}`}}function c(e){const t=Object.entries(e);return t.sort(((e,t)=>e[0].localeCompare(t[0]))),(0,r.useMemo)((()=>e),t.flat())}function u(e){return t=>{let{children:n}=t;return(0,o.jsx)(o.Fragment,{children:e.reduceRight(((e,t)=>(0,o.jsx)(t,{children:e})),n)})}}},8596:(e,t,n)=>{"use strict";n.d(t,{Mg:()=>i,Ns:()=>s});var r=n(7294),a=n(723),o=n(2263);function i(e,t){const n=e=>(!e||e.endsWith("/")?e:`${e}/`)?.toLowerCase();return n(e)===n(t)}function s(){const{baseUrl:e}=(0,o.Z)().siteConfig;return(0,r.useMemo)((()=>function(e){let{baseUrl:t,routes:n}=e;function r(e){return e.path===t&&!0===e.exact}function a(e){return e.path===t&&!e.exact}return function e(t){if(0===t.length)return;return t.find(r)||e(t.filter(a).flatMap((e=>e.routes??[])))}(n)}({routes:a.Z,baseUrl:e})),[e])}},2466:(e,t,n)=>{"use strict";n.d(t,{Ct:()=>m,OC:()=>u,RF:()=>f,o5:()=>h});var r=n(7294),a=n(412),o=n(2389),i=n(469),s=n(902),l=n(5893);const c=r.createContext(void 0);function u(e){let{children:t}=e;const n=function(){const e=(0,r.useRef)(!0);return(0,r.useMemo)((()=>({scrollEventsEnabledRef:e,enableScrollEvents:()=>{e.current=!0},disableScrollEvents:()=>{e.current=!1}})),[])}();return(0,l.jsx)(c.Provider,{value:n,children:t})}function d(){const e=(0,r.useContext)(c);if(null==e)throw new s.i6("ScrollControllerProvider");return e}const p=()=>a.Z.canUseDOM?{scrollX:window.pageXOffset,scrollY:window.pageYOffset}:null;function f(e,t){void 0===t&&(t=[]);const{scrollEventsEnabledRef:n}=d(),a=(0,r.useRef)(p()),o=(0,s.zX)(e);(0,r.useEffect)((()=>{const e=()=>{if(!n.current)return;const e=p();o(e,a.current),a.current=e},t={passive:!0};return e(),window.addEventListener("scroll",e,t),()=>window.removeEventListener("scroll",e,t)}),[o,n,...t])}function h(){const e=d(),t=function(){const e=(0,r.useRef)({elem:null,top:0}),t=(0,r.useCallback)((t=>{e.current={elem:t,top:t.getBoundingClientRect().top}}),[]),n=(0,r.useCallback)((()=>{const{current:{elem:t,top:n}}=e;if(!t)return{restored:!1};const r=t.getBoundingClientRect().top-n;return r&&window.scrollBy({left:0,top:r}),e.current={elem:null,top:0},{restored:0!==r}}),[]);return(0,r.useMemo)((()=>({save:t,restore:n})),[n,t])}(),n=(0,r.useRef)(void 0),a=(0,r.useCallback)((r=>{t.save(r),e.disableScrollEvents(),n.current=()=>{const{restored:r}=t.restore();if(n.current=void 0,r){const t=()=>{e.enableScrollEvents(),window.removeEventListener("scroll",t)};window.addEventListener("scroll",t)}else e.enableScrollEvents()}}),[e,t]);return(0,i.Z)((()=>{queueMicrotask((()=>n.current?.()))})),{blockElementScrollPositionUntilNextRender:a}}function m(){const e=(0,r.useRef)(null),t=(0,o.Z)()&&"smooth"===getComputedStyle(document.documentElement).scrollBehavior;return{startScroll:n=>{e.current=t?function(e){return window.scrollTo({top:e,behavior:"smooth"}),()=>{}}(n):function(e){let t=null;const n=document.documentElement.scrollTop>e;return function r(){const a=document.documentElement.scrollTop;(n&&a>e||!n&&a<e)&&(t=requestAnimationFrame(r),window.scrollTo(0,Math.floor(.85*(a-e))+e))}(),()=>t&&cancelAnimationFrame(t)}(n)},cancelScroll:()=>e.current?.()}}},3320:(e,t,n)=>{"use strict";n.d(t,{HX:()=>r,os:()=>a});n(2263);const r="default";function a(e,t){return`docs-${e}-${t}`}},12:(e,t,n)=>{"use strict";n.d(t,{Nk:()=>u,WA:()=>c});var r=n(7294);const a="localStorage";function o(e){let{key:t,oldValue:n,newValue:r,storage:a}=e;if(n===r)return;const o=document.createEvent("StorageEvent");o.initStorageEvent("storage",!1,!1,t,n,r,window.location.href,a),window.dispatchEvent(o)}function i(e){if(void 0===e&&(e=a),"undefined"==typeof window)throw new Error("Browser storage is not available on Node.js/Docusaurus SSR process.");if("none"===e)return null;try{return window[e]}catch(n){return t=n,s||(console.warn("Docusaurus browser storage is not available.\nPossible reasons: running Docusaurus in an iframe, in an incognito browser session, or using too strict browser privacy settings.",t),s=!0),null}var t}let s=!1;const l={get:()=>null,set:()=>{},del:()=>{},listen:()=>()=>{}};function c(e,t){if("undefined"==typeof window)return function(e){function t(){throw new Error(`Illegal storage API usage for storage key "${e}".\nDocusaurus storage APIs are not supposed to be called on the server-rendering process.\nPlease only call storage APIs in effects and event handlers.`)}return{get:t,set:t,del:t,listen:t}}(e);const n=i(t?.persistence);return null===n?l:{get:()=>{try{return n.getItem(e)}catch(t){return console.error(`Docusaurus storage error, can't get key=${e}`,t),null}},set:t=>{try{const r=n.getItem(e);n.setItem(e,t),o({key:e,oldValue:r,newValue:t,storage:n})}catch(r){console.error(`Docusaurus storage error, can't set ${e}=${t}`,r)}},del:()=>{try{const t=n.getItem(e);n.removeItem(e),o({key:e,oldValue:t,newValue:null,storage:n})}catch(t){console.error(`Docusaurus storage error, can't delete key=${e}`,t)}},listen:t=>{try{const r=r=>{r.storageArea===n&&r.key===e&&t(r)};return window.addEventListener("storage",r),()=>window.removeEventListener("storage",r)}catch(r){return console.error(`Docusaurus storage error, can't listen for changes of key=${e}`,r),()=>{}}}}}function u(e,t){const n=(0,r.useRef)((()=>null===e?l:c(e,t))).current(),a=(0,r.useCallback)((e=>"undefined"==typeof window?()=>{}:n.listen(e)),[n]);return[(0,r.useSyncExternalStore)(a,(()=>"undefined"==typeof window?null:n.get()),(()=>null)),n]}},4711:(e,t,n)=>{"use strict";n.d(t,{l:()=>i});var r=n(2263),a=n(6550),o=n(8780);function i(){const{siteConfig:{baseUrl:e,url:t,trailingSlash:n},i18n:{defaultLocale:i,currentLocale:s}}=(0,r.Z)(),{pathname:l}=(0,a.TH)(),c=(0,o.applyTrailingSlash)(l,{trailingSlash:n,baseUrl:e}),u=s===i?e:e.replace(`/${s}/`,"/"),d=c.replace(e,"");return{createUrl:function(e){let{locale:n,fullyQualified:r}=e;return`${r?t:""}${function(e){return e===i?`${u}`:`${u}${e}/`}(n)}${d}`}}}},5936:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(7294),a=n(6550),o=n(902);function i(e){const t=(0,a.TH)(),n=(0,o.D9)(t),i=(0,o.zX)(e);(0,r.useEffect)((()=>{n&&t!==n&&i({location:t,previousLocation:n})}),[i,t,n])}},6668:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(2263);function a(){return(0,r.Z)().siteConfig.themeConfig}},8802:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const{trailingSlash:n,baseUrl:r}=t;if(e.startsWith("#"))return e;if(void 0===n)return e;const[a]=e.split(/[#?]/),o="/"===a||a===r?a:(i=a,n?function(e){return e.endsWith("/")?e:`${e}/`}(i):function(e){return e.endsWith("/")?e.slice(0,-1):e}(i));var i;return e.replace(a,o)}},4143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=void 0,t.getErrorCausalChain=function e(t){return t.cause?[t,...e(t.cause)]:[t]}},8780:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=t.applyTrailingSlash=t.blogPostContainerID=void 0,t.blogPostContainerID="__blog-post-container";var a=n(8802);Object.defineProperty(t,"applyTrailingSlash",{enumerable:!0,get:function(){return r(a).default}});var o=n(4143);Object.defineProperty(t,"getErrorCausalChain",{enumerable:!0,get:function(){return o.getErrorCausalChain}})},311:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});n(7294);var r=n(1728);const a={loadingRing:"loadingRing_RJI3","loading-ring":"loading-ring_FB5o"};var o=n(5893);function i(e){let{className:t}=e;return(0,o.jsxs)("div",{className:(0,r.Z)(a.loadingRing,t),children:[(0,o.jsx)("div",{}),(0,o.jsx)("div",{}),(0,o.jsx)("div",{}),(0,o.jsx)("div",{})]})}},22:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});var r=n(1336),a=n.n(r),o=n(8087);const i=new Map;function s(e,t){const n=`${e}${t}`;let r=i.get(n);return r||(r=async function(e,t){{const n=`${e}${o.J.replace("{dir}",t?`-${t.replace(/\//g,"-")}`:"")}`;if(new URL(n,location.origin).origin!==location.origin)throw new Error("Unexpected version url");const r=await(await fetch(n)).json(),i=r.map(((e,t)=>{let{documents:n,index:r}=e;return{type:t,documents:n,index:a().Index.load(r)}})),s=r.reduce(((e,t)=>{for(const n of t.index.invertedIndex)/\p{Unified_Ideograph}/u.test(n[0][0])&&e.add(n[0]);return e}),new Set);return{wrappedIndexes:i,zhDictionary:Array.from(s)}}return{wrappedIndexes:[],zhDictionary:[]}}(e,t),i.set(n,r)),r}},8202:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var r=n(1336),a=n.n(r);var o=n(8087);function i(e){return s(e).concat(s(e.filter((e=>{const t=e[e.length-1];return!t.trailing&&t.maybeTyping})),!0))}function s(e,t){return e.map((e=>({tokens:e.map((e=>e.value)),term:e.map((e=>({value:e.value,presence:a().Query.presence.REQUIRED,wildcard:(t?e.trailing||e.maybeTyping:e.trailing)?a().Query.wildcard.TRAILING:a().Query.wildcard.NONE})))})))}function l(e,t,n){return function(r,s){const l=function(e,t){if(1===t.length&&["ja","jp","th"].includes(t[0]))return a()[t[0]].tokenizer(e).map((e=>e.toString()));let n=/[^-\s]+/g;return t.includes("zh")&&(n=/\w+|\p{Unified_Ideograph}+/gu),e.toLowerCase().match(n)||[]}(r,o.dK);if(0===l.length)return void s([]);const c=function(e,t){const n=function(e,t){const n=[];return function e(r,a){if(0===r.length)return void n.push(a);const o=r[0];if(/\p{Unified_Ideograph}/u.test(o)){const n=function(e,t){const n=[];return function e(r,a){let o=0,i=!1;for(const s of t)if(r.substr(0,s.length)===s){const t={missed:a.missed,term:a.term.concat({value:s})};r.length>s.length?e(r.substr(s.length),t):n.push(t),i=!0}else for(let t=s.length-1;t>o;t-=1){const l=s.substr(0,t);if(r.substr(0,t)===l){o=t;const s={missed:a.missed,term:a.term.concat({value:l,trailing:!0})};r.length>t?e(r.substr(t),s):n.push(s),i=!0;break}}i||(r.length>0?e(r.substr(1),{missed:a.missed+1,term:a.term}):a.term.length>0&&n.push(a))}(e,{missed:0,term:[]}),n.sort(((e,t)=>{const n=e.missed>0?1:0,r=t.missed>0?1:0;return n!==r?n-r:e.term.length-t.term.length})).map((e=>e.term))}(o,t);for(const t of n){const n=a.concat(...t);e(r.slice(1),n)}}else{const t=a.concat({value:o});e(r.slice(1),t)}}(e,[]),n}(e,t);if(0===n.length)return[{tokens:e,term:e.map((e=>({value:e,presence:a().Query.presence.REQUIRED,wildcard:a().Query.wildcard.LEADING|a().Query.wildcard.TRAILING})))}];for(const a of n)a[a.length-1].maybeTyping=!0;const r=[];for(const i of o.dK)if("en"===i)o._k||r.unshift(a().stopWordFilter);else{const e=a()[i];e.stopWordFilter&&r.unshift(e.stopWordFilter)}let s;if(r.length>0){const e=e=>r.reduce(((e,t)=>e.filter((e=>t(e.value)))),e);s=[];const t=[];for(const r of n){const n=e(r);s.push(n),n.length<r.length&&n.length>0&&t.push(n)}n.push(...t)}else s=n.slice();const l=[];for(const a of s)if(a.length>2)for(let e=a.length-1;e>=0;e-=1)l.push(a.slice(0,e).concat(a.slice(e+1)));return i(n).concat(i(l))}(l,t),u=[];e:for(const{term:t,tokens:a}of c)for(const{documents:r,index:o,type:i}of e)if(u.push(...o.query((e=>{for(const n of t)e.term(n.value,{wildcard:n.wildcard,presence:n.presence})})).slice(0,n).filter((e=>!u.some((t=>t.document.i.toString()===e.ref)))).slice(0,n-u.length).map((t=>{const n=r.find((e=>e.i.toString()===t.ref));return{document:n,type:i,page:0!==i&&e[0].documents.find((e=>e.i===n.p)),metadata:t.matchData.metadata,tokens:a,score:t.score}}))),u.length>=n)break e;!function(e){e.forEach(((e,t)=>{e.index=t})),e.sort(((t,n)=>{let r=t.type>0&&t.page?e.findIndex((e=>e.document===t.page)):t.index,a=n.type>0&&n.page?e.findIndex((e=>e.document===n.page)):n.index;return-1===r&&(r=t.index),-1===a&&(a=n.index),r===a?0===t.type?-1:0===n.type?1:t.index-n.index:r-a}))}(u),function(e){e.forEach(((t,n)=>{n>0&&t.page&&e.some((e=>e.document===t.page))&&(n<e.length-1&&e[n+1].page===t.page?t.isInterOfTree=!0:t.isLastOfTree=!0)}))}(u),s(u)}}},3926:(e,t,n)=>{"use strict";function r(e){return e.join(" \u203a ")}n.d(t,{e:()=>r})},1690:(e,t,n)=>{"use strict";function r(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}n.d(t,{X:()=>r})},1073:(e,t,n)=>{"use strict";function r(e,t){const n=[];for(const r of Object.values(e))r[t]&&n.push(...r[t].position);return n.sort(((e,t)=>e[0]-t[0]||t[1]-e[1]))}n.d(t,{m:()=>r})},2539:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var r=n(1690);function a(e,t,n){const o=[];for(const i of t){const n=e.toLowerCase().indexOf(i);if(n>=0){n>0&&o.push(a(e.substr(0,n),t)),o.push(`<mark>${(0,r.X)(e.substr(n,i.length))}</mark>`);const s=n+i.length;s<e.length&&o.push(a(e.substr(s),t));break}}return 0===o.length?n?`<mark>${(0,r.X)(e)}</mark>`:(0,r.X)(e):o.join("")}},726:(e,t,n)=>{"use strict";n.d(t,{o:()=>l});var r=n(1690),a=n(2539);const o=/\w+|\p{Unified_Ideograph}/u;function i(e){const t=[];let n=0,r=e;for(;r.length>0;){const a=r.match(o);if(!a){t.push(r);break}a.index>0&&t.push(r.substring(0,a.index)),t.push(a[0]),n+=a.index+a[0].length,r=e.substring(n)}return t}var s=n(8087);function l(e,t,n,o){void 0===o&&(o=s.Hk);const{chunkIndex:l,chunks:c}=function(e,t,n){const o=[];let s=0,l=0,c=-1;for(;s<t.length;){const[u,d]=t[s];if(s+=1,!(u<l)){if(u>l){const t=i(e.substring(l,u)).map((e=>({html:(0,r.X)(e),textLength:e.length})));for(const e of t)o.push(e)}-1===c&&(c=o.length),l=u+d,o.push({html:(0,a.C)(e.substring(u,l),n,!0),textLength:d})}}if(l<e.length){const t=i(e.substring(l)).map((e=>({html:(0,r.X)(e),textLength:e.length})));for(const e of t)o.push(e)}return{chunkIndex:c,chunks:o}}(e,t,n),u=c.slice(0,l),d=c[l],p=[d.html],f=c.slice(l+1);let h=d.textLength,m=0,g=0,y=!1,b=!1;for(;h<o;)if((m<=g||0===f.length)&&u.length>0){const e=u.pop();h+e.textLength<=o?(p.unshift(e.html),m+=e.textLength,h+=e.textLength):(y=!0,u.length=0)}else{if(!(f.length>0))break;{const e=f.shift();h+e.textLength<=o?(p.push(e.html),g+=e.textLength,h+=e.textLength):(b=!0,f.length=0)}}return(y||u.length>0)&&p.unshift("\u2026"),(b||f.length>0)&&p.push("\u2026"),p.join("")}},51:(e,t,n)=>{"use strict";function r(e,t){if("string"==typeof e)return{label:e,path:e};{const{label:n,path:r}=e;return"string"==typeof n?{label:n,path:r}:Object.prototype.hasOwnProperty.call(n,t)?{label:n[t],path:r}:{label:r,path:r}}}n.d(t,{_:()=>r})},8087:(e,t,n)=>{"use strict";n.d(t,{vc:()=>o,gQ:()=>f,H6:()=>c,hG:()=>g,l9:()=>h,dK:()=>r,_k:()=>a,pu:()=>p,AY:()=>u,t_:()=>d,Kc:()=>m,J:()=>i,Hk:()=>l,qo:()=>s,pQ:()=>y});n(1336);const r=["en"],a=!1,o=null,i="search-index{dir}.json",s=8,l=50,c=!1,u=!0,d=!0,p="right",f=void 0,h=!0,m=null,g=!1,y=!1},2358:(e,t,n)=>{"use strict";n.d(t,{lX:()=>S,q_:()=>L,ob:()=>m,PP:()=>A,Ep:()=>h,Hp:()=>g});var r=n(7462);function a(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,a=e.length;r<a;n+=1,r+=1)e[n]=e[r];e.pop()}const i=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],s=e&&a(e),l=t&&a(t),c=s||l;if(e&&a(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var u=i[i.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,p=i.length;p>=0;p--){var f=i[p];"."===f?o(i,p):".."===f?(o(i,p),d++):d&&(o(i,p),d--)}if(!c)for(;d--;d)i.unshift("..");!c||""===i[0]||i[0]&&a(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=s(t),a=s(n);return r!==t||a!==n?e(r,a):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var c=n(8776);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a}function m(e,t,n,a){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),a?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=i(o.pathname,a.pathname)):o.pathname=a.pathname:o.pathname||(o.pathname="/"),o}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function y(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,a){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,a):a(!0):a(!1!==o)}else a(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var b=!("undefined"==typeof window||!window.document||!window.document.createElement);function v(e,t){t(window.confirm(e))}var x="popstate",w="hashchange";function k(){try{return window.history.state||{}}catch(e){return{}}}function S(e){void 0===e&&(e={}),b||(0,c.Z)(!1);var t,n=window.history,a=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,s=i.forceRefresh,l=void 0!==s&&s,d=i.getUserConfirmation,g=void 0===d?v:d,S=i.keyLength,E=void 0===S?6:S,C=e.basename?f(u(e.basename)):"";function _(e){var t=e||{},n=t.key,r=t.state,a=window.location,o=a.pathname+a.search+a.hash;return C&&(o=p(o,C)),m(o,r,n)}function N(){return Math.random().toString(36).substr(2,E)}var T=y();function L(e){(0,r.Z)($,e),$.length=n.length,T.notifyListeners($.location,$.action)}function P(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||R(_(e.state))}function A(){R(_(k()))}var O=!1;function R(e){if(O)O=!1,L();else{T.confirmTransitionTo(e,"POP",g,(function(t){t?L({action:"POP",location:e}):function(e){var t=$.location,n=j.indexOf(t.key);-1===n&&(n=0);var r=j.indexOf(e.key);-1===r&&(r=0);var a=n-r;a&&(O=!0,F(a))}(e)}))}}var I=_(k()),j=[I.key];function z(e){return C+h(e)}function F(e){n.go(e)}var D=0;function M(e){1===(D+=e)&&1===e?(window.addEventListener(x,P),o&&window.addEventListener(w,A)):0===D&&(window.removeEventListener(x,P),o&&window.removeEventListener(w,A))}var B=!1;var $={length:n.length,action:"POP",location:I,createHref:z,push:function(e,t){var r="PUSH",o=m(e,t,N(),$.location);T.confirmTransitionTo(o,r,g,(function(e){if(e){var t=z(o),i=o.key,s=o.state;if(a)if(n.pushState({key:i,state:s},null,t),l)window.location.href=t;else{var c=j.indexOf($.location.key),u=j.slice(0,c+1);u.push(o.key),j=u,L({action:r,location:o})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",o=m(e,t,N(),$.location);T.confirmTransitionTo(o,r,g,(function(e){if(e){var t=z(o),i=o.key,s=o.state;if(a)if(n.replaceState({key:i,state:s},null,t),l)window.location.replace(t);else{var c=j.indexOf($.location.key);-1!==c&&(j[c]=o.key),L({action:r,location:o})}else window.location.replace(t)}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=T.setPrompt(e);return B||(M(1),B=!0),function(){return B&&(B=!1,M(-1)),t()}},listen:function(e){var t=T.appendListener(e);return M(1),function(){M(-1),t()}}};return $}var E="hashchange",C={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function _(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function N(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function T(e){window.location.replace(_(window.location.href)+"#"+e)}function L(e){void 0===e&&(e={}),b||(0,c.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),a=n.getUserConfirmation,o=void 0===a?v:a,i=n.hashType,s=void 0===i?"slash":i,l=e.basename?f(u(e.basename)):"",d=C[s],g=d.encodePath,x=d.decodePath;function w(){var e=x(N());return l&&(e=p(e,l)),m(e)}var k=y();function S(e){(0,r.Z)(B,e),B.length=t.length,k.notifyListeners(B.location,B.action)}var L=!1,P=null;function A(){var e,t,n=N(),r=g(n);if(n!==r)T(r);else{var a=w(),i=B.location;if(!L&&(t=a,(e=i).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(P===h(a))return;P=null,function(e){if(L)L=!1,S();else{var t="POP";k.confirmTransitionTo(e,t,o,(function(n){n?S({action:t,location:e}):function(e){var t=B.location,n=j.lastIndexOf(h(t));-1===n&&(n=0);var r=j.lastIndexOf(h(e));-1===r&&(r=0);var a=n-r;a&&(L=!0,z(a))}(e)}))}}(a)}}var O=N(),R=g(O);O!==R&&T(R);var I=w(),j=[h(I)];function z(e){t.go(e)}var F=0;function D(e){1===(F+=e)&&1===e?window.addEventListener(E,A):0===F&&window.removeEventListener(E,A)}var M=!1;var B={length:t.length,action:"POP",location:I,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=_(window.location.href)),n+"#"+g(l+h(e))},push:function(e,t){var n="PUSH",r=m(e,void 0,void 0,B.location);k.confirmTransitionTo(r,n,o,(function(e){if(e){var t=h(r),a=g(l+t);if(N()!==a){P=t,function(e){window.location.hash=e}(a);var o=j.lastIndexOf(h(B.location)),i=j.slice(0,o+1);i.push(t),j=i,S({action:n,location:r})}else S()}}))},replace:function(e,t){var n="REPLACE",r=m(e,void 0,void 0,B.location);k.confirmTransitionTo(r,n,o,(function(e){if(e){var t=h(r),a=g(l+t);N()!==a&&(P=t,T(a));var o=j.indexOf(h(B.location));-1!==o&&(j[o]=t),S({action:n,location:r})}}))},go:z,goBack:function(){z(-1)},goForward:function(){z(1)},block:function(e){void 0===e&&(e=!1);var t=k.setPrompt(e);return M||(D(1),M=!0),function(){return M&&(M=!1,D(-1)),t()}},listen:function(e){var t=k.appendListener(e);return D(1),function(){D(-1),t()}}};return B}function P(e,t,n){return Math.min(Math.max(e,t),n)}function A(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,a=t.initialEntries,o=void 0===a?["/"]:a,i=t.initialIndex,s=void 0===i?0:i,l=t.keyLength,c=void 0===l?6:l,u=y();function d(e){(0,r.Z)(x,e),x.length=x.entries.length,u.notifyListeners(x.location,x.action)}function p(){return Math.random().toString(36).substr(2,c)}var f=P(s,0,o.length-1),g=o.map((function(e){return m(e,void 0,"string"==typeof e?p():e.key||p())})),b=h;function v(e){var t=P(x.index+e,0,x.entries.length-1),r=x.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var x={length:g.length,action:"POP",location:g[f],index:f,entries:g,createHref:b,push:function(e,t){var r="PUSH",a=m(e,t,p(),x.location);u.confirmTransitionTo(a,r,n,(function(e){if(e){var t=x.index+1,n=x.entries.slice(0);n.length>t?n.splice(t,n.length-t,a):n.push(a),d({action:r,location:a,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",a=m(e,t,p(),x.location);u.confirmTransitionTo(a,r,n,(function(e){e&&(x.entries[x.index]=a,d({action:r,location:a}))}))},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(e){var t=x.index+e;return t>=0&&t<x.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return x}},8679:(e,t,n)=>{"use strict";var r=n(9864),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var a=f(n);a&&a!==h&&e(t,a,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<i.length;++g){var y=i[g];if(!(o[y]||r&&r[y]||m&&m[y]||s&&s[y])){var b=p(n,y);try{c(t,y,b)}catch(v){}}}}return t}},1143:e=>{"use strict";e.exports=function(e,t,n,r,a,o,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,o,i,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},5826:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},1336:(e,t,n)=>{var r,a;!function(){var o,i,s,l,c,u,d,p,f,h,m,g,y,b,v,x,w,k,S,E,C,_,N,T,L,P,A,O,R,I,j=function(e){var t=new j.Builder;return t.pipeline.add(j.trimmer,j.stopWordFilter,j.stemmer),t.searchPipeline.add(j.stemmer),e.call(t,t),t.build()};j.version="2.3.9",j.utils={},j.utils.warn=(o=this,function(e){o.console&&console.warn&&console.warn(e)}),j.utils.asString=function(e){return null==e?"":e.toString()},j.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),n=Object.keys(e),r=0;r<n.length;r++){var a=n[r],o=e[a];if(Array.isArray(o))t[a]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");t[a]=o}}return t},j.FieldRef=function(e,t,n){this.docRef=e,this.fieldName=t,this._stringValue=n},j.FieldRef.joiner="/",j.FieldRef.fromString=function(e){var t=e.indexOf(j.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var n=e.slice(0,t),r=e.slice(t+1);return new j.FieldRef(r,n,e)},j.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+j.FieldRef.joiner+this.docRef),this._stringValue},j.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},j.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},j.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},j.Set.prototype.contains=function(e){return!!this.elements[e]},j.Set.prototype.intersect=function(e){var t,n,r,a=[];if(e===j.Set.complete)return this;if(e===j.Set.empty)return e;this.length<e.length?(t=this,n=e):(t=e,n=this),r=Object.keys(t.elements);for(var o=0;o<r.length;o++){var i=r[o];i in n.elements&&a.push(i)}return new j.Set(a)},j.Set.prototype.union=function(e){return e===j.Set.complete?j.Set.complete:e===j.Set.empty?this:new j.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},j.idf=function(e,t){var n=0;for(var r in e)"_index"!=r&&(n+=Object.keys(e[r]).length);var a=(t-n+.5)/(n+.5);return Math.log(1+Math.abs(a))},j.Token=function(e,t){this.str=e||"",this.metadata=t||{}},j.Token.prototype.toString=function(){return this.str},j.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},j.Token.prototype.clone=function(e){return e=e||function(e){return e},new j.Token(e(this.str,this.metadata),this.metadata)},j.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new j.Token(j.utils.asString(e).toLowerCase(),j.utils.clone(t))}));for(var n=e.toString().toLowerCase(),r=n.length,a=[],o=0,i=0;o<=r;o++){var s=o-i;if(n.charAt(o).match(j.tokenizer.separator)||o==r){if(s>0){var l=j.utils.clone(t)||{};l.position=[i,s],l.index=a.length,a.push(new j.Token(n.slice(i,o),l))}i=o+1}}return a},j.tokenizer.separator=/[\s\-]+/,j.Pipeline=function(){this._stack=[]},j.Pipeline.registeredFunctions=Object.create(null),j.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&j.utils.warn("Overwriting existing registered function: "+t),e.label=t,j.Pipeline.registeredFunctions[e.label]=e},j.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||j.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},j.Pipeline.load=function(e){var t=new j.Pipeline;return e.forEach((function(e){var n=j.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)})),t},j.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(e){j.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},j.Pipeline.prototype.after=function(e,t){j.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},j.Pipeline.prototype.before=function(e,t){j.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},j.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},j.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n<t;n++){for(var r=this._stack[n],a=[],o=0;o<e.length;o++){var i=r(e[o],o,e);if(null!=i&&""!==i)if(Array.isArray(i))for(var s=0;s<i.length;s++)a.push(i[s]);else a.push(i)}e=a}return e},j.Pipeline.prototype.runString=function(e,t){var n=new j.Token(e,t);return this.run([n]).map((function(e){return e.toString()}))},j.Pipeline.prototype.reset=function(){this._stack=[]},j.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return j.Pipeline.warnIfFunctionNotRegistered(e),e.label}))},j.Vector=function(e){this._magnitude=0,this.elements=e||[]},j.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,n=this.elements.length/2,r=n-t,a=Math.floor(r/2),o=this.elements[2*a];r>1&&(o<e&&(t=a),o>e&&(n=a),o!=e);)r=n-t,a=t+Math.floor(r/2),o=this.elements[2*a];return o==e||o>e?2*a:o<e?2*(a+1):void 0},j.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},j.Vector.prototype.upsert=function(e,t,n){this._magnitude=0;var r=this.positionForIndex(e);this.elements[r]==e?this.elements[r+1]=n(this.elements[r+1],t):this.elements.splice(r,0,e,t)},j.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,n=1;n<t;n+=2){var r=this.elements[n];e+=r*r}return this._magnitude=Math.sqrt(e)},j.Vector.prototype.dot=function(e){for(var t=0,n=this.elements,r=e.elements,a=n.length,o=r.length,i=0,s=0,l=0,c=0;l<a&&c<o;)(i=n[l])<(s=r[c])?l+=2:i>s?c+=2:i==s&&(t+=n[l+1]*r[c+1],l+=2,c+=2);return t},j.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},j.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t<this.elements.length;t+=2,n++)e[n]=this.elements[t];return e},j.Vector.prototype.toJSON=function(){return this.elements},j.stemmer=(i={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},s={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},d="^("+(c="[^aeiou][^aeiouy]*")+")?"+(u=(l="[aeiouy]")+"[aeiou]*")+c+"("+u+")?$",p="^("+c+")?"+u+c+u+c,f="^("+c+")?"+l,h=new RegExp("^("+c+")?"+u+c),m=new RegExp(p),g=new RegExp(d),y=new RegExp(f),b=/^(.+?)(ss|i)es$/,v=/^(.+?)([^s])s$/,x=/^(.+?)eed$/,w=/^(.+?)(ed|ing)$/,k=/.$/,S=/(at|bl|iz)$/,E=new RegExp("([^aeiouylsz])\\1$"),C=new RegExp("^"+c+l+"[^aeiouwxy]$"),_=/^(.+?[^aeiou])y$/,N=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,T=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,L=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,P=/^(.+?)(s|t)(ion)$/,A=/^(.+?)e$/,O=/ll$/,R=new RegExp("^"+c+l+"[^aeiouwxy]$"),I=function(e){var t,n,r,a,o,l,c;if(e.length<3)return e;if("y"==(r=e.substr(0,1))&&(e=r.toUpperCase()+e.substr(1)),o=v,(a=b).test(e)?e=e.replace(a,"$1$2"):o.test(e)&&(e=e.replace(o,"$1$2")),o=w,(a=x).test(e)){var u=a.exec(e);(a=h).test(u[1])&&(a=k,e=e.replace(a,""))}else o.test(e)&&(t=(u=o.exec(e))[1],(o=y).test(t)&&(l=E,c=C,(o=S).test(e=t)?e+="e":l.test(e)?(a=k,e=e.replace(a,"")):c.test(e)&&(e+="e")));return(a=_).test(e)&&(e=(t=(u=a.exec(e))[1])+"i"),(a=N).test(e)&&(t=(u=a.exec(e))[1],n=u[2],(a=h).test(t)&&(e=t+i[n])),(a=T).test(e)&&(t=(u=a.exec(e))[1],n=u[2],(a=h).test(t)&&(e=t+s[n])),o=P,(a=L).test(e)?(t=(u=a.exec(e))[1],(a=m).test(t)&&(e=t)):o.test(e)&&(t=(u=o.exec(e))[1]+u[2],(o=m).test(t)&&(e=t)),(a=A).test(e)&&(t=(u=a.exec(e))[1],o=g,l=R,((a=m).test(t)||o.test(t)&&!l.test(t))&&(e=t)),o=m,(a=O).test(e)&&o.test(e)&&(a=k,e=e.replace(a,"")),"y"==r&&(e=r.toLowerCase()+e.substr(1)),e},function(e){return e.update(I)}),j.Pipeline.registerFunction(j.stemmer,"stemmer"),j.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},j.stopWordFilter=j.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),j.Pipeline.registerFunction(j.stopWordFilter,"stopWordFilter"),j.trimmer=function(e){return e.update((function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")}))},j.Pipeline.registerFunction(j.trimmer,"trimmer"),j.TokenSet=function(){this.final=!1,this.edges={},this.id=j.TokenSet._nextId,j.TokenSet._nextId+=1},j.TokenSet._nextId=1,j.TokenSet.fromArray=function(e){for(var t=new j.TokenSet.Builder,n=0,r=e.length;n<r;n++)t.insert(e[n]);return t.finish(),t.root},j.TokenSet.fromClause=function(e){return"editDistance"in e?j.TokenSet.fromFuzzyString(e.term,e.editDistance):j.TokenSet.fromString(e.term)},j.TokenSet.fromFuzzyString=function(e,t){for(var n=new j.TokenSet,r=[{node:n,editsRemaining:t,str:e}];r.length;){var a=r.pop();if(a.str.length>0){var o,i=a.str.charAt(0);i in a.node.edges?o=a.node.edges[i]:(o=new j.TokenSet,a.node.edges[i]=o),1==a.str.length&&(o.final=!0),r.push({node:o,editsRemaining:a.editsRemaining,str:a.str.slice(1)})}if(0!=a.editsRemaining){if("*"in a.node.edges)var s=a.node.edges["*"];else{s=new j.TokenSet;a.node.edges["*"]=s}if(0==a.str.length&&(s.final=!0),r.push({node:s,editsRemaining:a.editsRemaining-1,str:a.str}),a.str.length>1&&r.push({node:a.node,editsRemaining:a.editsRemaining-1,str:a.str.slice(1)}),1==a.str.length&&(a.node.final=!0),a.str.length>=1){if("*"in a.node.edges)var l=a.node.edges["*"];else{l=new j.TokenSet;a.node.edges["*"]=l}1==a.str.length&&(l.final=!0),r.push({node:l,editsRemaining:a.editsRemaining-1,str:a.str.slice(1)})}if(a.str.length>1){var c,u=a.str.charAt(0),d=a.str.charAt(1);d in a.node.edges?c=a.node.edges[d]:(c=new j.TokenSet,a.node.edges[d]=c),1==a.str.length&&(c.final=!0),r.push({node:c,editsRemaining:a.editsRemaining-1,str:u+a.str.slice(2)})}}}return n},j.TokenSet.fromString=function(e){for(var t=new j.TokenSet,n=t,r=0,a=e.length;r<a;r++){var o=e[r],i=r==a-1;if("*"==o)t.edges[o]=t,t.final=i;else{var s=new j.TokenSet;s.final=i,t.edges[o]=s,t=s}}return n},j.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var n=t.pop(),r=Object.keys(n.node.edges),a=r.length;n.node.final&&(n.prefix.charAt(0),e.push(n.prefix));for(var o=0;o<a;o++){var i=r[o];t.push({prefix:n.prefix.concat(i),node:n.node.edges[i]})}}return e},j.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),n=t.length,r=0;r<n;r++){var a=t[r];e=e+a+this.edges[a].id}return e},j.TokenSet.prototype.intersect=function(e){for(var t=new j.TokenSet,n=void 0,r=[{qNode:e,output:t,node:this}];r.length;){n=r.pop();for(var a=Object.keys(n.qNode.edges),o=a.length,i=Object.keys(n.node.edges),s=i.length,l=0;l<o;l++)for(var c=a[l],u=0;u<s;u++){var d=i[u];if(d==c||"*"==c){var p=n.node.edges[d],f=n.qNode.edges[c],h=p.final&&f.final,m=void 0;d in n.output.edges?(m=n.output.edges[d]).final=m.final||h:((m=new j.TokenSet).final=h,n.output.edges[d]=m),r.push({qNode:f,output:m,node:p})}}}return t},j.TokenSet.Builder=function(){this.previousWord="",this.root=new j.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},j.TokenSet.Builder.prototype.insert=function(e){var t,n=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var r=0;r<e.length&&r<this.previousWord.length&&e[r]==this.previousWord[r];r++)n++;this.minimize(n),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(r=n;r<e.length;r++){var a=new j.TokenSet,o=e[r];t.edges[o]=a,this.uncheckedNodes.push({parent:t,char:o,child:a}),t=a}t.final=!0,this.previousWord=e},j.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},j.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var n=this.uncheckedNodes[t],r=n.child.toString();r in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[r]:(n.child._str=r,this.minimizedNodes[r]=n.child),this.uncheckedNodes.pop()}},j.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},j.Index.prototype.search=function(e){return this.query((function(t){new j.QueryParser(e,t).parse()}))},j.Index.prototype.query=function(e){for(var t=new j.Query(this.fields),n=Object.create(null),r=Object.create(null),a=Object.create(null),o=Object.create(null),i=Object.create(null),s=0;s<this.fields.length;s++)r[this.fields[s]]=new j.Vector;e.call(t,t);for(s=0;s<t.clauses.length;s++){var l=t.clauses[s],c=null,u=j.Set.empty;c=l.usePipeline?this.pipeline.runString(l.term,{fields:l.fields}):[l.term];for(var d=0;d<c.length;d++){var p=c[d];l.term=p;var f=j.TokenSet.fromClause(l),h=this.tokenSet.intersect(f).toArray();if(0===h.length&&l.presence===j.Query.presence.REQUIRED){for(var m=0;m<l.fields.length;m++){o[A=l.fields[m]]=j.Set.empty}break}for(var g=0;g<h.length;g++){var y=h[g],b=this.invertedIndex[y],v=b._index;for(m=0;m<l.fields.length;m++){var x=b[A=l.fields[m]],w=Object.keys(x),k=y+"/"+A,S=new j.Set(w);if(l.presence==j.Query.presence.REQUIRED&&(u=u.union(S),void 0===o[A]&&(o[A]=j.Set.complete)),l.presence!=j.Query.presence.PROHIBITED){if(r[A].upsert(v,l.boost,(function(e,t){return e+t})),!a[k]){for(var E=0;E<w.length;E++){var C,_=w[E],N=new j.FieldRef(_,A),T=x[_];void 0===(C=n[N])?n[N]=new j.MatchData(y,A,T):C.add(y,A,T)}a[k]=!0}}else void 0===i[A]&&(i[A]=j.Set.empty),i[A]=i[A].union(S)}}}if(l.presence===j.Query.presence.REQUIRED)for(m=0;m<l.fields.length;m++){o[A=l.fields[m]]=o[A].intersect(u)}}var L=j.Set.complete,P=j.Set.empty;for(s=0;s<this.fields.length;s++){var A;o[A=this.fields[s]]&&(L=L.intersect(o[A])),i[A]&&(P=P.union(i[A]))}var O=Object.keys(n),R=[],I=Object.create(null);if(t.isNegated()){O=Object.keys(this.fieldVectors);for(s=0;s<O.length;s++){N=O[s];var z=j.FieldRef.fromString(N);n[N]=new j.MatchData}}for(s=0;s<O.length;s++){var F=(z=j.FieldRef.fromString(O[s])).docRef;if(L.contains(F)&&!P.contains(F)){var D,M=this.fieldVectors[z],B=r[z.fieldName].similarity(M);if(void 0!==(D=I[F]))D.score+=B,D.matchData.combine(n[z]);else{var $={ref:F,score:B,matchData:n[z]};I[F]=$,R.push($)}}}return R.sort((function(e,t){return t.score-e.score}))},j.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:j.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},j.Index.load=function(e){var t={},n={},r=e.fieldVectors,a=Object.create(null),o=e.invertedIndex,i=new j.TokenSet.Builder,s=j.Pipeline.load(e.pipeline);e.version!=j.version&&j.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+j.version+"' does not match serialized index '"+e.version+"'");for(var l=0;l<r.length;l++){var c=(d=r[l])[0],u=d[1];n[c]=new j.Vector(u)}for(l=0;l<o.length;l++){var d,p=(d=o[l])[0],f=d[1];i.insert(p),a[p]=f}return i.finish(),t.fields=e.fields,t.fieldVectors=n,t.invertedIndex=a,t.tokenSet=i.root,t.pipeline=s,new j.Index(t)},j.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=j.tokenizer,this.pipeline=new j.Pipeline,this.searchPipeline=new j.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},j.Builder.prototype.ref=function(e){this._ref=e},j.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},j.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},j.Builder.prototype.k1=function(e){this._k1=e},j.Builder.prototype.add=function(e,t){var n=e[this._ref],r=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var a=0;a<r.length;a++){var o=r[a],i=this._fields[o].extractor,s=i?i(e):e[o],l=this.tokenizer(s,{fields:[o]}),c=this.pipeline.run(l),u=new j.FieldRef(n,o),d=Object.create(null);this.fieldTermFrequencies[u]=d,this.fieldLengths[u]=0,this.fieldLengths[u]+=c.length;for(var p=0;p<c.length;p++){var f=c[p];if(null==d[f]&&(d[f]=0),d[f]+=1,null==this.invertedIndex[f]){var h=Object.create(null);h._index=this.termIndex,this.termIndex+=1;for(var m=0;m<r.length;m++)h[r[m]]=Object.create(null);this.invertedIndex[f]=h}null==this.invertedIndex[f][o][n]&&(this.invertedIndex[f][o][n]=Object.create(null));for(var g=0;g<this.metadataWhitelist.length;g++){var y=this.metadataWhitelist[g],b=f.metadata[y];null==this.invertedIndex[f][o][n][y]&&(this.invertedIndex[f][o][n][y]=[]),this.invertedIndex[f][o][n][y].push(b)}}}},j.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,n={},r={},a=0;a<t;a++){var o=j.FieldRef.fromString(e[a]),i=o.fieldName;r[i]||(r[i]=0),r[i]+=1,n[i]||(n[i]=0),n[i]+=this.fieldLengths[o]}var s=Object.keys(this._fields);for(a=0;a<s.length;a++){var l=s[a];n[l]=n[l]/r[l]}this.averageFieldLength=n},j.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),n=t.length,r=Object.create(null),a=0;a<n;a++){for(var o=j.FieldRef.fromString(t[a]),i=o.fieldName,s=this.fieldLengths[o],l=new j.Vector,c=this.fieldTermFrequencies[o],u=Object.keys(c),d=u.length,p=this._fields[i].boost||1,f=this._documents[o.docRef].boost||1,h=0;h<d;h++){var m,g,y,b=u[h],v=c[b],x=this.invertedIndex[b]._index;void 0===r[b]?(m=j.idf(this.invertedIndex[b],this.documentCount),r[b]=m):m=r[b],g=m*((this._k1+1)*v)/(this._k1*(1-this._b+this._b*(s/this.averageFieldLength[i]))+v),g*=p,g*=f,y=Math.round(1e3*g)/1e3,l.insert(x,y)}e[o]=l}this.fieldVectors=e},j.Builder.prototype.createTokenSet=function(){this.tokenSet=j.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},j.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new j.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},j.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},j.MatchData=function(e,t,n){for(var r=Object.create(null),a=Object.keys(n||{}),o=0;o<a.length;o++){var i=a[o];r[i]=n[i].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=r)},j.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),n=0;n<t.length;n++){var r=t[n],a=Object.keys(e.metadata[r]);null==this.metadata[r]&&(this.metadata[r]=Object.create(null));for(var o=0;o<a.length;o++){var i=a[o],s=Object.keys(e.metadata[r][i]);null==this.metadata[r][i]&&(this.metadata[r][i]=Object.create(null));for(var l=0;l<s.length;l++){var c=s[l];null==this.metadata[r][i][c]?this.metadata[r][i][c]=e.metadata[r][i][c]:this.metadata[r][i][c]=this.metadata[r][i][c].concat(e.metadata[r][i][c])}}}},j.MatchData.prototype.add=function(e,t,n){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=n);if(t in this.metadata[e])for(var r=Object.keys(n),a=0;a<r.length;a++){var o=r[a];o in this.metadata[e][t]?this.metadata[e][t][o]=this.metadata[e][t][o].concat(n[o]):this.metadata[e][t][o]=n[o]}else this.metadata[e][t]=n},j.Query=function(e){this.clauses=[],this.allFields=e},j.Query.wildcard=new String("*"),j.Query.wildcard.NONE=0,j.Query.wildcard.LEADING=1,j.Query.wildcard.TRAILING=2,j.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},j.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=j.Query.wildcard.NONE),e.wildcard&j.Query.wildcard.LEADING&&e.term.charAt(0)!=j.Query.wildcard&&(e.term="*"+e.term),e.wildcard&j.Query.wildcard.TRAILING&&e.term.slice(-1)!=j.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=j.Query.presence.OPTIONAL),this.clauses.push(e),this},j.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=j.Query.presence.PROHIBITED)return!1;return!0},j.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,j.utils.clone(t))}),this),this;var n=t||{};return n.term=e.toString(),this.clause(n),this},j.QueryParseError=function(e,t,n){this.name="QueryParseError",this.message=e,this.start=t,this.end=n},j.QueryParseError.prototype=new Error,j.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},j.QueryLexer.prototype.run=function(){for(var e=j.QueryLexer.lexText;e;)e=e(this)},j.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,n=this.pos,r=0;r<this.escapeCharPositions.length;r++)n=this.escapeCharPositions[r],e.push(this.str.slice(t,n)),t=n+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},j.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},j.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},j.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return j.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},j.QueryLexer.prototype.width=function(){return this.pos-this.start},j.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},j.QueryLexer.prototype.backup=function(){this.pos-=1},j.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=j.QueryLexer.EOS&&this.backup()},j.QueryLexer.prototype.more=function(){return this.pos<this.length},j.QueryLexer.EOS="EOS",j.QueryLexer.FIELD="FIELD",j.QueryLexer.TERM="TERM",j.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",j.QueryLexer.BOOST="BOOST",j.QueryLexer.PRESENCE="PRESENCE",j.QueryLexer.lexField=function(e){return e.backup(),e.emit(j.QueryLexer.FIELD),e.ignore(),j.QueryLexer.lexText},j.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(j.QueryLexer.TERM)),e.ignore(),e.more())return j.QueryLexer.lexText},j.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(j.QueryLexer.EDIT_DISTANCE),j.QueryLexer.lexText},j.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(j.QueryLexer.BOOST),j.QueryLexer.lexText},j.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(j.QueryLexer.TERM)},j.QueryLexer.termSeparator=j.tokenizer.separator,j.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==j.QueryLexer.EOS)return j.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return j.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(j.QueryLexer.TERM),j.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(j.QueryLexer.TERM),j.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(j.QueryLexer.PRESENCE),j.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(j.QueryLexer.PRESENCE),j.QueryLexer.lexText;if(t.match(j.QueryLexer.termSeparator))return j.QueryLexer.lexTerm}else e.escapeCharacter()}},j.QueryParser=function(e,t){this.lexer=new j.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},j.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=j.QueryParser.parseClause;e;)e=e(this);return this.query},j.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},j.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},j.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},j.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case j.QueryLexer.PRESENCE:return j.QueryParser.parsePresence;case j.QueryLexer.FIELD:return j.QueryParser.parseField;case j.QueryLexer.TERM:return j.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new j.QueryParseError(n,t.start,t.end)}},j.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=j.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=j.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new j.QueryParseError(n,t.start,t.end)}var r=e.peekLexeme();if(null==r){n="expecting term or field, found nothing";throw new j.QueryParseError(n,t.start,t.end)}switch(r.type){case j.QueryLexer.FIELD:return j.QueryParser.parseField;case j.QueryLexer.TERM:return j.QueryParser.parseTerm;default:n="expecting term or field, found '"+r.type+"'";throw new j.QueryParseError(n,r.start,r.end)}}},j.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),r="unrecognised field '"+t.str+"', possible fields: "+n;throw new j.QueryParseError(r,t.start,t.end)}e.currentClause.fields=[t.str];var a=e.peekLexeme();if(null==a){r="expecting term, found nothing";throw new j.QueryParseError(r,t.start,t.end)}if(a.type===j.QueryLexer.TERM)return j.QueryParser.parseTerm;r="expecting term, found '"+a.type+"'";throw new j.QueryParseError(r,a.start,a.end)}},j.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(null!=n)switch(n.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+n.type+"'";throw new j.QueryParseError(r,n.start,n.end)}else e.nextClause()}},j.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="edit distance must be numeric";throw new j.QueryParseError(r,t.start,t.end)}e.currentClause.editDistance=n;var a=e.peekLexeme();if(null!=a)switch(a.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+a.type+"'";throw new j.QueryParseError(r,a.start,a.end)}else e.nextClause()}},j.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="boost must be numeric";throw new j.QueryParseError(r,t.start,t.end)}e.currentClause.boost=n;var a=e.peekLexeme();if(null!=a)switch(a.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+a.type+"'";throw new j.QueryParseError(r,a.start,a.end)}else e.nextClause()}},void 0===(a="function"==typeof(r=function(){return j})?r.call(t,n,t,e):r)||(e.exports=a)}()},3395:(e,t,n)=>{"use strict";n.r(t)},2497:(e,t,n)=>{"use strict";n.r(t)},4865:function(e,t,n){var r,a;r=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function a(e,t,n){return e<t?t:e>n?n:e}function o(e){return 100*(-1+e)}function i(e,t,n){var a;return(a="translate3d"===r.positionUsing?{transform:"translate3d("+o(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+o(e)+"%,0)"}:{"margin-left":o(e)+"%"}).transition="all "+t+"ms "+n,a}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=a(e,r.minimum,1),n.status=1===e?null:e;var o=n.render(!t),c=o.querySelector(r.barSelector),u=r.speed,d=r.easing;return o.offsetWidth,s((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),l(c,i(e,u,d)),1===e?(l(o,{transition:"none",opacity:1}),o.offsetWidth,setTimeout((function(){l(o,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),u)}),u)):setTimeout(t,u)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*a(Math.random()*t,.1,.95)),t=a(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var a,i=t.querySelector(r.barSelector),s=e?"-100":o(n.status||0),c=document.querySelector(r.parent);return l(i,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),r.showSpinner||(a=t.querySelector(r.spinnerSelector))&&f(a),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var s=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,a=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);a--;)if((r=e[a]+o)in n)return r;return t}function a(e){return e=n(e),t[e]||(t[e]=r(e))}function o(e,t,n){t=a(t),e.style[t]=n}return function(e,t){var n,r,a=arguments;if(2==a.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&o(e,n,r);else o(e,a[1],a[2])}}();function c(e,t){return("string"==typeof e?e:p(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=p(e),r=n+t;c(n,t)||(e.className=r.substring(1))}function d(e,t){var n,r=p(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function p(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},void 0===(a="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=a)},4779:(e,t,n)=>{var r=n(5826);e.exports=f,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=p;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,i=0,s="",u=t&&t.delimiter||"/";null!=(n=a.exec(e));){var d=n[0],p=n[1],f=n.index;if(s+=e.slice(i,f),i=f+d.length,p)s+=p[1];else{var h=e[i],m=n[2],g=n[3],y=n[4],b=n[5],v=n[6],x=n[7];s&&(r.push(s),s="");var w=null!=m&&null!=h&&h!==m,k="+"===v||"*"===v,S="?"===v||"*"===v,E=n[2]||u,C=y||b;r.push({name:g||o++,prefix:m||"",delimiter:E,optional:S,repeat:k,partial:w,asterisk:!!x,pattern:C?c(C):x?".*":"[^"+l(E)+"]+?"})}}return i<e.length&&(s+=e.substr(i)),s&&r.push(s),r}function i(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),a=0;a<e.length;a++)"object"==typeof e[a]&&(n[a]=new RegExp("^(?:"+e[a].pattern+")$",d(t)));return function(t,a){for(var o="",s=t||{},l=(a||{}).pretty?i:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var d,p=s[u.name];if(null==p){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(d=l(p[f]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===f?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var a=(n=n||{}).strict,o=!1!==n.end,i="",s=0;s<e.length;s++){var c=e[s];if("string"==typeof c)i+=l(c);else{var p=l(c.prefix),f="(?:"+c.pattern+")";t.push(c),c.repeat&&(f+="(?:"+p+f+")*"),i+=f=c.optional?c.partial?p+"("+f+")?":"(?:"+p+"("+f+"))?":p+"("+f+")"}}var h=l(n.delimiter||"/"),m=i.slice(-h.length)===h;return a||(i=(m?i.slice(0,-h.length):i)+"(?:"+h+"(?=$))?"),i+=o?"$":a&&m?"":"(?="+h+"|$)",u(new RegExp("^"+i,d(n)),t)}function f(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],a=0;a<e.length;a++)r.push(f(e[a],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return p(o(e,n),t,n)}(e,t,n)}},7874:()=>{!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,i=0;i<a.length;i++)o[a[i]]=e.languages.bash[a[i]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism)},4277:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},6854:()=>{!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,a,o){if(n.language===r){var i=n.tokenStack=[];n.code=n.code.replace(a,(function(e){if("function"==typeof o&&!o(e))return e;for(var a,s=i.length;-1!==n.code.indexOf(a=t(r,s));)++s;return i[s]=e,a})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,o=Object.keys(n.tokenStack);!function i(s){for(var l=0;l<s.length&&!(a>=o.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=o[a],d=n.tokenStack[u],p="string"==typeof c?c:c.content,f=t(r,u),h=p.indexOf(f);if(h>-1){++a;var m=p.substring(0,h),g=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),y=p.substring(h+f.length),b=[];m&&b.push.apply(b,i([m])),b.push(g),y&&b.push.apply(b,i([y])),"string"==typeof c?s.splice.apply(s,[l,1].concat(b)):c.content=b}}else c.content&&i(c.content)}return s}(n.tokens)}}}})}(Prism)},1029:()=>{!function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism)},5897:(e,t,n)=>{var r={"./prism-bash":7874,"./prism-json":4277,"./prism-tsx":1029};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=5897},2703:(e,t,n)=>{"use strict";var r=n(414);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4448:(e,t,n)=>{"use strict";var r=n(7294),a=n(3840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},h={};function m(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function v(e,t,n,r){var a=g.hasOwnProperty(t)?g[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!d.call(h,e)||!d.call(f,e)&&(p.test(e)?h[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),N=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),O=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var I=Symbol.iterator;function j(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=I&&e[I]||e["@@iterator"])?e:null}var z,F=Object.assign;function D(e){if(void 0===z)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var M=!1;function B(e,t){if(!e||M)return"";M=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(var a=c.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,s=o.length-1;1<=i&&0<=s&&a[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(a[i]!==o[s]){if(1!==i||1!==s)do{if(i--,0>--s||a[i]!==o[s]){var l="\n"+a[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{M=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function $(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case C:return"Profiler";case E:return"StrictMode";case L:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case N:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case A:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Z(e){e._valueTracker||(e._valueTracker=function(e){var t=Q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function V(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function W(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function X(e,t){K(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&W(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function oe(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(fe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ye=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Se=null,Ee=null;function Ce(e){if(e=va(e)){if("function"!=typeof ke)throw Error(o(280));var t=e.stateNode;t&&(t=wa(t),ke(e.stateNode,e.type,t))}}function _e(e){Se?Ee?Ee.push(e):Ee=[e]:Se=e}function Ne(){if(Se){var e=Se,t=Ee;if(Ee=Se=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Te(e,t){return e(t)}function Le(){}var Pe=!1;function Ae(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Te(e,t,n)}finally{Pe=!1,(null!==Se||null!==Ee)&&(Le(),Ne())}}function Oe(e,t){var n=e.stateNode;if(null===n)return null;var r=wa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Re=!1;if(u)try{var Ie={};Object.defineProperty(Ie,"passive",{get:function(){Re=!0}}),window.addEventListener("test",Ie,Ie),window.removeEventListener("test",Ie,Ie)}catch(ue){Re=!1}function je(e,t,n,r,a,o,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var ze=!1,Fe=null,De=!1,Me=null,Be={onError:function(e){ze=!0,Fe=e}};function $e(e,t,n,r,a,o,i,s,l){ze=!1,Fe=null,je.apply(Be,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(qe(e)!==e)throw Error(o(188))}function Qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return He(a),e;if(i===r)return He(a),t;i=i.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=i;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ze(e):null}function Ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ze(e);if(null!==t)return t;e=e.sibling}return null}var Ve=a.unstable_scheduleCallback,We=a.unstable_cancelCallback,Ge=a.unstable_shouldYield,Ye=a.unstable_requestPaint,Ke=a.unstable_now,Xe=a.unstable_getCurrentPriorityLevel,Je=a.unstable_ImmediatePriority,et=a.unstable_UserBlockingPriority,tt=a.unstable_NormalPriority,nt=a.unstable_LowPriority,rt=a.unstable_IdlePriority,at=null,ot=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=268435455&n;if(0!==i){var s=i&~a;0!==s?r=dt(s):0!==(o&=i)&&(r=dt(o))}else 0!==(i=n&~a)?r=dt(i):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-it(t)),r|=e[n],t&=~a;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var vt=0;function xt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,kt,St,Et,Ct,_t=!1,Nt=[],Tt=null,Lt=null,Pt=null,At=new Map,Ot=new Map,Rt=[],It="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Lt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":At.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function zt(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=va(t))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Ft(e){var t=ba(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ue(n)))return e.blockedOn=t,void Ct(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=va(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Mt(e,t,n){Dt(e)&&n.delete(t)}function Bt(){_t=!1,null!==Tt&&Dt(Tt)&&(Tt=null),null!==Lt&&Dt(Lt)&&(Lt=null),null!==Pt&&Dt(Pt)&&(Pt=null),At.forEach(Mt),Ot.forEach(Mt)}function $t(e,t){e.blockedOn===t&&(e.blockedOn=null,_t||(_t=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Bt)))}function qt(e){function t(t){return $t(t,e)}if(0<Nt.length){$t(Nt[0],e);for(var n=1;n<Nt.length;n++){var r=Nt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&$t(Tt,e),null!==Lt&&$t(Lt,e),null!==Pt&&$t(Pt,e),At.forEach(t),Ot.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Ft(n),null===n.blockedOn&&Rt.shift()}var Ut=x.ReactCurrentBatchConfig,Ht=!0;function Qt(e,t,n,r){var a=vt,o=Ut.transition;Ut.transition=null;try{vt=1,Vt(e,t,n,r)}finally{vt=a,Ut.transition=o}}function Zt(e,t,n,r){var a=vt,o=Ut.transition;Ut.transition=null;try{vt=4,Vt(e,t,n,r)}finally{vt=a,Ut.transition=o}}function Vt(e,t,n,r){if(Ht){var a=Gt(e,t,n,r);if(null===a)Hr(e,t,r,Wt,n),jt(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Tt=zt(Tt,e,t,n,r,a),!0;case"dragenter":return Lt=zt(Lt,e,t,n,r,a),!0;case"mouseover":return Pt=zt(Pt,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return At.set(o,zt(At.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,Ot.set(o,zt(Ot.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(jt(e,r),4&t&&-1<It.indexOf(e)){for(;null!==a;){var o=va(a);if(null!==o&&wt(o),null===(o=Gt(e,t,n,r))&&Hr(e,t,r,Wt,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Wt=null;function Gt(e,t,n,r){if(Wt=null,null!==(e=ba(e=we(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Kt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,a="value"in Kt?Kt.value:Kt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return Jt=a.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=an(cn),dn=F({},cn,{view:0,detail:0}),pn=an(dn),fn=F({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(on=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=on=0,ln=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=an(fn),mn=an(F({},fn,{dataTransfer:0})),gn=an(F({},dn,{relatedTarget:0})),yn=an(F({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=F({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=an(bn),xn=an(F({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return En}var _n=F({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Nn=an(_n),Tn=an(F({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ln=an(F({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Pn=an(F({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=F({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),On=an(An),Rn=[9,13,27,32],In=u&&"CompositionEvent"in window,jn=null;u&&"documentMode"in document&&(jn=document.documentMode);var zn=u&&"TextEvent"in window&&!jn,Fn=u&&(!In||jn&&8<jn&&11>=jn),Dn=String.fromCharCode(32),Mn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Qn(e,t,n,r){_e(r),0<(t=Zr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zn=null,Vn=null;function Wn(e){Dr(e,0)}function Gn(e){if(V(xa(e)))return e}function Yn(e,t){if("change"===e)return t}var Kn=!1;if(u){var Xn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Xn=Jn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Zn&&(Zn.detachEvent("onpropertychange",nr),Vn=Zn=null)}function nr(e){if("value"===e.propertyName&&Gn(Vn)){var t=[];Qn(t,Vn,e,we(e)),Ae(Wn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Vn=n,(Zn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Vn)}function or(e,t){if("click"===e)return Gn(t)}function ir(e,t){if("input"===e||"change"===e)return Gn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!d.call(t,a)||!sr(e[a],t[a]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=W();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=W((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=ur(n,o);var i=ur(n,r);a&&i&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,br=null,vr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==gr||gr!==W(r)||("selectionStart"in(r=gr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&lr(br,r)||(br=r,0<(r=Zr(yr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},Er={};function Cr(e){if(Sr[e])return Sr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Sr[e]=n[t];return e}u&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var _r=Cr("animationend"),Nr=Cr("animationiteration"),Tr=Cr("animationstart"),Lr=Cr("transitionend"),Pr=new Map,Ar="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Or(e,t){Pr.set(e,t),l(t,[e])}for(var Rr=0;Rr<Ar.length;Rr++){var Ir=Ar[Rr];Or(Ir.toLowerCase(),"on"+(Ir[0].toUpperCase()+Ir.slice(1)))}Or(_r,"onAnimationEnd"),Or(Nr,"onAnimationIteration"),Or(Tr,"onAnimationStart"),Or("dblclick","onDoubleClick"),Or("focusin","onFocus"),Or("focusout","onBlur"),Or(Lr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),zr=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Fr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,i,s,l,c){if($e.apply(this,arguments),ze){if(!ze)throw Error(o(198));var u=Fe;ze=!1,Fe=null,De||(De=!0,Me=u)}}(r,t,void 0,e),e.currentTarget=null}function Dr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&a.isPropagationStopped())break e;Fr(a,s,c),o=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,c=s.currentTarget,s=s.listener,l!==o&&a.isPropagationStopped())break e;Fr(a,s,c),o=l}}}if(De)throw e=Me,De=!1,Me=null,e}function Mr(e,t){var n=t[ma];void 0===n&&(n=t[ma]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[$r]){e[$r]=!0,i.forEach((function(t){"selectionchange"!==t&&(zr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Br("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Yt(t)){case 1:var a=Qt;break;case 4:a=Zt;break;default:a=Vt}n=a.bind(null,t,n,e),a=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,a){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;i=i.return}for(;null!==s;){if(null===(i=ba(s)))return;if(5===(l=i.tag)||6===l){r=o=i;continue e}s=s.parentNode}}r=r.return}Ae((function(){var r=o,a=we(n),i=[];e:{var s=Pr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Nn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Ln;break;case _r:case Nr:case Tr:l=yn;break;case Lr:l=Pn;break;case"scroll":l=pn;break;case"wheel":l=On;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Oe(h,p))&&u.push(Qr(h,m,f)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,a),i.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!ba(c)&&!c[ha])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ba(c):null)&&(c!==(d=qe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:xa(l),f=null==c?s:xa(c),(s=new u(m,h+"leave",l,n,a)).target=d,s.relatedTarget=f,m=null,ba(a)===r&&((u=new u(p,h+"enter",c,n,a)).target=f,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,h=0,f=u=l;f;f=Vr(f))h++;for(f=0,m=p;m;m=Vr(m))f++;for(;0<h-f;)u=Vr(u),h--;for(;0<f-h;)p=Vr(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=Vr(u),p=Vr(p)}u=null}else u=null;null!==l&&Wr(i,s,l,u,!1),null!==c&&null!==d&&Wr(i,d,c,u,!0)}if("select"===(l=(s=r?xa(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Yn;else if(Hn(s))if(Kn)g=ir;else{g=ar;var y=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Qn(i,g,n,a):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ee(s,"number",s.value)),y=r?xa(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,br=null);break;case"focusout":br=yr=gr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,xr(i,n,a);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(i,n,a)}var b;if(In)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else qn?Bn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Fn&&"ko"!==n.locale&&(qn||"onCompositionStart"!==v?"onCompositionEnd"===v&&qn&&(b=en()):(Xt="value"in(Kt=a)?Kt.value:Kt.textContent,qn=!0)),0<(y=Zr(r,v)).length&&(v=new xn(v,e,null,n,a),i.push({event:v,listeners:y}),b?v.data=b:null!==(b=$n(n))&&(v.data=b))),(b=zn?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(Mn=!0,Dn);case"textInput":return(e=t.data)===Dn&&Mn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!In&&Bn(e,t)?(e=en(),Jt=Xt=Kt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Zr(r,"onBeforeInput")).length&&(a=new xn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=b))}Dr(i,t)}))}function Qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Oe(e,n))&&r.unshift(Qr(e,o,a)),null!=(o=Oe(e,t))&&r.push(Qr(e,o,a))),e=e.return}return r}function Vr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,a?null!=(l=Oe(n,o))&&i.unshift(Qr(n,l,s)):a||null!=(l=Oe(n,o))&&i.push(Qr(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Gr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Yr,"")}function Xr(e,t,n){if(t=Kr(t),Kr(e)!==t&&n)throw Error(o(425))}function Jr(){}var ea=null,ta=null;function na(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ra="function"==typeof setTimeout?setTimeout:void 0,aa="function"==typeof clearTimeout?clearTimeout:void 0,oa="function"==typeof Promise?Promise:void 0,ia="function"==typeof queueMicrotask?queueMicrotask:void 0!==oa?function(e){return oa.resolve(null).then(e).catch(sa)}:ra;function sa(e){setTimeout((function(){throw e}))}function la(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);qt(t)}function ca(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ua(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var da=Math.random().toString(36).slice(2),pa="__reactFiber$"+da,fa="__reactProps$"+da,ha="__reactContainer$"+da,ma="__reactEvents$"+da,ga="__reactListeners$"+da,ya="__reactHandles$"+da;function ba(e){var t=e[pa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ha]||n[pa]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ua(e);null!==e;){if(n=e[pa])return n;e=ua(e)}return t}n=(e=n).parentNode}return null}function va(e){return!(e=e[pa]||e[ha])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wa(e){return e[fa]||null}var ka=[],Sa=-1;function Ea(e){return{current:e}}function Ca(e){0>Sa||(e.current=ka[Sa],ka[Sa]=null,Sa--)}function _a(e,t){Sa++,ka[Sa]=e.current,e.current=t}var Na={},Ta=Ea(Na),La=Ea(!1),Pa=Na;function Aa(e,t){var n=e.type.contextTypes;if(!n)return Na;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Oa(e){return null!=(e=e.childContextTypes)}function Ra(){Ca(La),Ca(Ta)}function Ia(e,t,n){if(Ta.current!==Na)throw Error(o(168));_a(Ta,t),_a(La,n)}function ja(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(o(108,U(e)||"Unknown",a));return F({},n,r)}function za(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Na,Pa=Ta.current,_a(Ta,e),_a(La,La.current),!0}function Fa(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=ja(e,t,Pa),r.__reactInternalMemoizedMergedChildContext=e,Ca(La),Ca(Ta),_a(Ta,e)):Ca(La),_a(La,n)}var Da=null,Ma=!1,Ba=!1;function $a(e){null===Da?Da=[e]:Da.push(e)}function qa(){if(!Ba&&null!==Da){Ba=!0;var e=0,t=vt;try{var n=Da;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Da=null,Ma=!1}catch(a){throw null!==Da&&(Da=Da.slice(e+1)),Ve(Je,qa),a}finally{vt=t,Ba=!1}}return null}var Ua=[],Ha=0,Qa=null,Za=0,Va=[],Wa=0,Ga=null,Ya=1,Ka="";function Xa(e,t){Ua[Ha++]=Za,Ua[Ha++]=Qa,Qa=e,Za=t}function Ja(e,t,n){Va[Wa++]=Ya,Va[Wa++]=Ka,Va[Wa++]=Ga,Ga=e;var r=Ya;e=Ka;var a=32-it(r)-1;r&=~(1<<a),n+=1;var o=32-it(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Ya=1<<32-it(t)+a|n<<a|r,Ka=o+e}else Ya=1<<o|n<<a|r,Ka=e}function eo(e){null!==e.return&&(Xa(e,1),Ja(e,1,0))}function to(e){for(;e===Qa;)Qa=Ua[--Ha],Ua[Ha]=null,Za=Ua[--Ha],Ua[Ha]=null;for(;e===Ga;)Ga=Va[--Wa],Va[Wa]=null,Ka=Va[--Wa],Va[Wa]=null,Ya=Va[--Wa],Va[Wa]=null}var no=null,ro=null,ao=!1,oo=null;function io(e,t){var n=Oc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ca(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ga?{id:Ya,overflow:Ka}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Oc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function co(e){if(ao){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ca(n.nextSibling);var r=no;t&&so(e,t)?io(r,n):(e.flags=-4097&e.flags|2,ao=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,ao=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function po(e){if(e!==no)return!1;if(!ao)return uo(e),ao=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!na(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw fo(),Error(o(418));for(;t;)io(e,t),t=ca(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ca(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ca(e.stateNode.nextSibling):null;return!0}function fo(){for(var e=ro;e;)e=ca(e.nextSibling)}function ho(){ro=no=null,ao=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=x.ReactCurrentBatchConfig;function yo(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var bo=Ea(null),vo=null,xo=null,wo=null;function ko(){wo=xo=vo=null}function So(e){var t=bo.current;Ca(bo),e._currentValue=t}function Eo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Co(e,t){vo=e,wo=xo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(xs=!0),e.firstContext=null)}function _o(e){var t=e._currentValue;if(wo!==e)if(e={context:e,memoizedValue:t,next:null},null===xo){if(null===vo)throw Error(o(308));xo=e,vo.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var No=null;function To(e){null===No?No=[e]:No.push(e)}function Lo(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,To(t)):(n.next=a.next,a.next=n),t.interleaved=n,Po(e,r)}function Po(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ao=!1;function Oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ro(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Io(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ll)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Po(e,n)}return null===(a=r.interleaved)?(t.next=t,To(r)):(t.next=a.next,a.next=t),r.interleaved=t,Po(e,n)}function zo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Fo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Do(e,t,n,r){var a=e.updateQueue;Ao=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?o=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=a.baseState;for(i=0,u=c=l=null,s=o;;){var p=s.lane,f=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=F({},d,p);break e;case 2:Ao=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=a.effects)?a.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,i|=p;if(null===(s=s.next)){if(null===(s=a.shared.pending))break;s=(p=s).next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}if(null===u&&(l=d),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=u,null!==(t=a.shared.interleaved)){a=t;do{i|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);Fl|=i,e.lanes=i,e.memoizedState=d}}function Mo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(o(191,a));a.call(r)}}}var Bo=(new r.Component).refs;function $o(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var qo={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),a=nc(e),o=Io(r,a);o.payload=t,null!=n&&(o.callback=n),null!==(t=jo(e,o,a))&&(rc(t,e,a,r),zo(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),a=nc(e),o=Io(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=jo(e,o,a))&&(rc(t,e,a,r),zo(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),a=Io(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=jo(e,a,r))&&(rc(t,e,r,n),zo(t,e,r))}};function Uo(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(a,o))}function Ho(e,t,n){var r=!1,a=Na,o=t.contextType;return"object"==typeof o&&null!==o?o=_o(o):(a=Oa(t)?Pa:Ta.current,o=(r=null!=(r=t.contextTypes))?Aa(e,a):Na),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=qo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Qo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&qo.enqueueReplaceState(t,t.state,null)}function Zo(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Bo,Oo(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=_o(o):(o=Oa(t)?Pa:Ta.current,a.context=Aa(e,o)),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&($o(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&qo.enqueueReplaceState(a,a.state,null),Do(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function Vo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var a=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=a.refs;t===Bo&&(t=a.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Wo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Go(e){return(0,e._init)(e._payload)}function Yo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Ic(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Dc(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===O&&Go(o)===t.type)?((r=a(t,n.props)).ref=Vo(e,t,n),r.return=e,r):((r=jc(n.type,n.key,n.props,null,e.mode,r)).ref=Vo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Mc(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=zc(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Dc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=jc(t.type,t.key,t.props,null,e.mode,n)).ref=Vo(e,null,t),n.return=e,n;case k:return(t=Mc(t,e.mode,n)).return=e,t;case O:return p(e,(0,t._init)(t._payload),n)}if(te(t)||j(t))return(t=zc(t,e.mode,n,null)).return=e,t;Wo(e,t)}return null}function f(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===a?c(e,t,n,r):null;case k:return n.key===a?u(e,t,n,r):null;case O:return f(e,t,(a=n._init)(n._payload),r)}if(te(n)||j(n))return null!==a?null:d(e,t,n,r,null);Wo(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case O:return h(e,t,n,(0,r._init)(r._payload),a)}if(te(r)||j(r))return d(t,e=e.get(n)||null,r,a,null);Wo(t,r)}return null}function m(a,o,s,l){for(var c=null,u=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=f(a,d,s[m],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(a,d),o=i(y,o,m),null===u?c=y:u.sibling=y,u=y,d=g}if(m===s.length)return n(a,d),ao&&Xa(a,m),c;if(null===d){for(;m<s.length;m++)null!==(d=p(a,s[m],l))&&(o=i(d,o,m),null===u?c=d:u.sibling=d,u=d);return ao&&Xa(a,m),c}for(d=r(a,d);m<s.length;m++)null!==(g=h(d,a,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=i(g,o,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(a,e)})),ao&&Xa(a,m),c}function g(a,s,l,c){var u=j(l);if("function"!=typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,m=s,g=s=0,y=null,b=l.next();null!==m&&!b.done;g++,b=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var v=f(a,m,b.value,c);if(null===v){null===m&&(m=y);break}e&&m&&null===v.alternate&&t(a,m),s=i(v,s,g),null===d?u=v:d.sibling=v,d=v,m=y}if(b.done)return n(a,m),ao&&Xa(a,g),u;if(null===m){for(;!b.done;g++,b=l.next())null!==(b=p(a,b.value,c))&&(s=i(b,s,g),null===d?u=b:d.sibling=b,d=b);return ao&&Xa(a,g),u}for(m=r(a,m);!b.done;g++,b=l.next())null!==(b=h(m,a,g,b.value,c))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),s=i(b,s,g),null===d?u=b:d.sibling=b,d=b);return e&&m.forEach((function(e){return t(a,e)})),ao&&Xa(a,g),u}return function e(r,o,i,l){if("object"==typeof i&&null!==i&&i.type===S&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case w:e:{for(var c=i.key,u=o;null!==u;){if(u.key===c){if((c=i.type)===S){if(7===u.tag){n(r,u.sibling),(o=a(u,i.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===O&&Go(c)===u.type){n(r,u.sibling),(o=a(u,i.props)).ref=Vo(r,u,i),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}i.type===S?((o=zc(i.props.children,r.mode,l,i.key)).return=r,r=o):((l=jc(i.type,i.key,i.props,null,r.mode,l)).ref=Vo(r,o,i),l.return=r,r=l)}return s(r);case k:e:{for(u=i.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(r,o.sibling),(o=a(o,i.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Mc(i,r.mode,l)).return=r,r=o}return s(r);case O:return e(r,o,(u=i._init)(i._payload),l)}if(te(i))return m(r,o,i,l);if(j(i))return g(r,o,i,l);Wo(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==o&&6===o.tag?(n(r,o.sibling),(o=a(o,i)).return=r,r=o):(n(r,o),(o=Dc(i,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var Ko=Yo(!0),Xo=Yo(!1),Jo={},ei=Ea(Jo),ti=Ea(Jo),ni=Ea(Jo);function ri(e){if(e===Jo)throw Error(o(174));return e}function ai(e,t){switch(_a(ni,t),_a(ti,e),_a(ei,Jo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ca(ei),_a(ei,t)}function oi(){Ca(ei),Ca(ti),Ca(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=le(t,e.type);t!==n&&(_a(ti,e),_a(ei,n))}function si(e){ti.current===e&&(Ca(ei),Ca(ti))}var li=Ea(0);function ci(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function di(){for(var e=0;e<ui.length;e++)ui[e]._workInProgressVersionPrimary=null;ui.length=0}var pi=x.ReactCurrentDispatcher,fi=x.ReactCurrentBatchConfig,hi=0,mi=null,gi=null,yi=null,bi=!1,vi=!1,xi=0,wi=0;function ki(){throw Error(o(321))}function Si(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Ei(e,t,n,r,a,i){if(hi=i,mi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pi.current=null===e||null===e.memoizedState?ss:ls,e=n(r,a),vi){i=0;do{if(vi=!1,xi=0,25<=i)throw Error(o(301));i+=1,yi=gi=null,t.updateQueue=null,pi.current=cs,e=n(r,a)}while(vi)}if(pi.current=is,t=null!==gi&&null!==gi.next,hi=0,yi=gi=mi=null,bi=!1,t)throw Error(o(300));return e}function Ci(){var e=0!==xi;return xi=0,e}function _i(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===yi?mi.memoizedState=yi=e:yi=yi.next=e,yi}function Ni(){if(null===gi){var e=mi.alternate;e=null!==e?e.memoizedState:null}else e=gi.next;var t=null===yi?mi.memoizedState:yi.next;if(null!==t)yi=t,gi=e;else{if(null===e)throw Error(o(310));e={memoizedState:(gi=e).memoizedState,baseState:gi.baseState,baseQueue:gi.baseQueue,queue:gi.queue,next:null},null===yi?mi.memoizedState=yi=e:yi=yi.next=e}return yi}function Ti(e,t){return"function"==typeof t?t(e):t}function Li(e){var t=Ni(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=gi,a=r.baseQueue,i=n.pending;if(null!==i){if(null!==a){var s=a.next;a.next=i.next,i.next=s}r.baseQueue=a=i,n.pending=null}if(null!==a){i=a.next,r=r.baseState;var l=s=null,c=null,u=i;do{var d=u.lane;if((hi&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=r):c=c.next=p,mi.lanes|=d,Fl|=d}u=u.next}while(null!==u&&u!==i);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(xs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{i=a.lane,mi.lanes|=i,Fl|=i,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Pi(e){var t=Ni(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{i=e(i,s.action),s=s.next}while(s!==a);sr(i,t.memoizedState)||(xs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ai(){}function Oi(e,t){var n=mi,r=Ni(),a=t(),i=!sr(r.memoizedState,a);if(i&&(r.memoizedState=a,xs=!0),r=r.queue,Hi(ji.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==yi&&1&yi.memoizedState.tag){if(n.flags|=2048,Mi(9,Ii.bind(null,n,r,a,t),void 0,null),null===Pl)throw Error(o(349));0!=(30&hi)||Ri(n,t,a)}return a}function Ri(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ii(e,t,n,r){t.value=n,t.getSnapshot=r,zi(t)&&Fi(e)}function ji(e,t,n){return n((function(){zi(t)&&Fi(e)}))}function zi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Fi(e){var t=Po(e,1);null!==t&&rc(t,e,1,-1)}function Di(e){var t=_i();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ti,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,mi,e),[t.memoizedState,e]}function Mi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Bi(){return Ni().memoizedState}function $i(e,t,n,r){var a=_i();mi.flags|=e,a.memoizedState=Mi(1|t,n,void 0,void 0===r?null:r)}function qi(e,t,n,r){var a=Ni();r=void 0===r?null:r;var o=void 0;if(null!==gi){var i=gi.memoizedState;if(o=i.destroy,null!==r&&Si(r,i.deps))return void(a.memoizedState=Mi(t,n,o,r))}mi.flags|=e,a.memoizedState=Mi(1|t,n,o,r)}function Ui(e,t){return $i(8390656,8,e,t)}function Hi(e,t){return qi(2048,8,e,t)}function Qi(e,t){return qi(4,2,e,t)}function Zi(e,t){return qi(4,4,e,t)}function Vi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Wi(e,t,n){return n=null!=n?n.concat([e]):null,qi(4,4,Vi.bind(null,t,e),n)}function Gi(){}function Yi(e,t){var n=Ni();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ki(e,t){var n=Ni();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xi(e,t,n){return 0==(21&hi)?(e.baseState&&(e.baseState=!1,xs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),mi.lanes|=n,Fl|=n,e.baseState=!0),t)}function Ji(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=fi.transition;fi.transition={};try{e(!1),t()}finally{vt=n,fi.transition=r}}function es(){return Ni().memoizedState}function ts(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))as(t,n);else if(null!==(n=Lo(e,t,n,r))){rc(n,e,r,tc()),os(n,t,r)}}function ns(e,t,n){var r=nc(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))as(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=o(i,n);if(a.hasEagerState=!0,a.eagerState=s,sr(s,i)){var l=t.interleaved;return null===l?(a.next=a,To(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}}catch(c){}null!==(n=Lo(e,t,a,r))&&(rc(n,e,r,a=tc()),os(n,t,r))}}function rs(e){var t=e.alternate;return e===mi||null!==t&&t===mi}function as(e,t){vi=bi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var is={readContext:_o,useCallback:ki,useContext:ki,useEffect:ki,useImperativeHandle:ki,useInsertionEffect:ki,useLayoutEffect:ki,useMemo:ki,useReducer:ki,useRef:ki,useState:ki,useDebugValue:ki,useDeferredValue:ki,useTransition:ki,useMutableSource:ki,useSyncExternalStore:ki,useId:ki,unstable_isNewReconciler:!1},ss={readContext:_o,useCallback:function(e,t){return _i().memoizedState=[e,void 0===t?null:t],e},useContext:_o,useEffect:Ui,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,$i(4194308,4,Vi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $i(4194308,4,e,t)},useInsertionEffect:function(e,t){return $i(4,2,e,t)},useMemo:function(e,t){var n=_i();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_i();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,mi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},_i().memoizedState=e},useState:Di,useDebugValue:Gi,useDeferredValue:function(e){return _i().memoizedState=e},useTransition:function(){var e=Di(!1),t=e[0];return e=Ji.bind(null,e[1]),_i().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mi,a=_i();if(ao){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Pl)throw Error(o(349));0!=(30&hi)||Ri(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Ui(ji.bind(null,r,i,e),[e]),r.flags|=2048,Mi(9,Ii.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=_i(),t=Pl.identifierPrefix;if(ao){var n=Ka;t=":"+t+"R"+(n=(Ya&~(1<<32-it(Ya)-1)).toString(32)+n),0<(n=xi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:_o,useCallback:Yi,useContext:_o,useEffect:Hi,useImperativeHandle:Wi,useInsertionEffect:Qi,useLayoutEffect:Zi,useMemo:Ki,useReducer:Li,useRef:Bi,useState:function(){return Li(Ti)},useDebugValue:Gi,useDeferredValue:function(e){return Xi(Ni(),gi.memoizedState,e)},useTransition:function(){return[Li(Ti)[0],Ni().memoizedState]},useMutableSource:Ai,useSyncExternalStore:Oi,useId:es,unstable_isNewReconciler:!1},cs={readContext:_o,useCallback:Yi,useContext:_o,useEffect:Hi,useImperativeHandle:Wi,useInsertionEffect:Qi,useLayoutEffect:Zi,useMemo:Ki,useReducer:Pi,useRef:Bi,useState:function(){return Pi(Ti)},useDebugValue:Gi,useDeferredValue:function(e){var t=Ni();return null===gi?t.memoizedState=e:Xi(t,gi.memoizedState,e)},useTransition:function(){return[Pi(Ti)[0],Ni().memoizedState]},useMutableSource:Ai,useSyncExternalStore:Oi,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:a,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ps(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Io(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ql||(Ql=!0,Zl=r),ps(0,t)},n}function ms(e,t,n){(n=Io(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){ps(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){ps(0,t),"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=_c.bind(null,e,t,n),t.then(e,e))}function ys(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bs(e,t,n,r,a){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Io(-1,1)).tag=2,jo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var vs=x.ReactCurrentOwner,xs=!1;function ws(e,t,n,r){t.child=null===e?Xo(t,null,n,r):Ko(t,e.child,n,r)}function ks(e,t,n,r,a){n=n.render;var o=t.ref;return Co(t,a),r=Ei(e,t,n,r,o,a),n=Ci(),null===e||xs?(ao&&n&&eo(t),t.flags|=1,ws(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Qs(e,t,a))}function Ss(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||Rc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=jc(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Es(e,t,o,r,a))}if(o=e.child,0==(e.lanes&a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)return Qs(e,t,a)}return t.flags|=1,(e=Ic(o,r)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(xs=!1,t.pendingProps=r=o,0==(e.lanes&a))return t.lanes=e.lanes,Qs(e,t,a);0!=(131072&e.flags)&&(xs=!0)}}return Ns(e,t,n,r,a)}function Cs(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_a(Il,Rl),Rl|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_a(Il,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,_a(Il,Rl),Rl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,_a(Il,Rl),Rl|=r;return ws(e,t,a,n),t.child}function _s(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ns(e,t,n,r,a){var o=Oa(n)?Pa:Ta.current;return o=Aa(t,o),Co(t,a),n=Ei(e,t,n,r,o,a),r=Ci(),null===e||xs?(ao&&r&&eo(t),t.flags|=1,ws(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Qs(e,t,a))}function Ts(e,t,n,r,a){if(Oa(n)){var o=!0;za(t)}else o=!1;if(Co(t,a),null===t.stateNode)Hs(e,t),Ho(t,n,r),Zo(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=n.contextType;"object"==typeof c&&null!==c?c=_o(c):c=Aa(t,c=Oa(n)?Pa:Ta.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||l!==c)&&Qo(t,i,r,c),Ao=!1;var p=t.memoizedState;i.state=p,Do(t,r,i,a),l=t.memoizedState,s!==r||p!==l||La.current||Ao?("function"==typeof u&&($o(t,n,u,r),l=t.memoizedState),(s=Ao||Uo(t,n,s,r,p,l,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ro(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:yo(t.type,s),i.props=c,d=t.pendingProps,p=i.context,"object"==typeof(l=n.contextType)&&null!==l?l=_o(l):l=Aa(t,l=Oa(n)?Pa:Ta.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||p!==l)&&Qo(t,i,r,l),Ao=!1,p=t.memoizedState,i.state=p,Do(t,r,i,a);var h=t.memoizedState;s!==d||p!==h||La.current||Ao?("function"==typeof f&&($o(t,n,f,r),h=t.memoizedState),(c=Ao||Uo(t,n,c,r,p,h,l)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=l,r=c):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ls(e,t,n,r,o,a)}function Ls(e,t,n,r,a,o){_s(e,t);var i=0!=(128&t.flags);if(!r&&!i)return a&&Fa(t,n,!1),Qs(e,t,o);r=t.stateNode,vs.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ko(t,e.child,null,o),t.child=Ko(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,a&&Fa(t,n,!0),t.child}function Ps(e){var t=e.stateNode;t.pendingContext?Ia(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ia(0,t.context,!1),ai(e,t.containerInfo)}function As(e,t,n,r,a){return ho(),mo(a),t.flags|=256,ws(e,t,n,r),t.child}var Os,Rs,Is,js,zs={dehydrated:null,treeContext:null,retryLane:0};function Fs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ds(e,t,n){var r,a=t.pendingProps,i=li.current,s=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),_a(li,1&i),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=a.children,e=a.fallback,s?(a=t.mode,s=t.child,l={mode:"hidden",children:l},0==(1&a)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Fc(l,a,0,null),e=zc(e,a,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Fs(n),t.memoizedState=zs,e):Ms(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,a,i,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,r=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,a=t.mode,r=Fc({mode:"visible",children:r.children},a,0,null),(i=zc(i,a,s,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&Ko(t,e.child,null,s),t.child.memoizedState=Fs(s),t.memoizedState=zs,i);if(0==(1&t.mode))return Bs(e,t,s,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var l=r.dgst;return r=l,Bs(e,t,s,r=ds(i=Error(o(419)),r,void 0))}if(l=0!=(s&e.childLanes),xs||l){if(null!==(r=Pl)){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!=(a&(r.suspendedLanes|s))?0:a)&&a!==i.retryLane&&(i.retryLane=a,Po(e,a),rc(r,e,a,-1))}return gc(),Bs(e,t,s,r=ds(Error(o(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Tc.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,ro=ca(a.nextSibling),no=t,ao=!0,oo=null,null!==e&&(Va[Wa++]=Ya,Va[Wa++]=Ka,Va[Wa++]=Ga,Ya=e.id,Ka=e.overflow,Ga=t),t=Ms(t,r.children),t.flags|=4096,t)}(e,t,l,a,r,i,n);if(s){s=a.fallback,l=t.mode,r=(i=e.child).sibling;var c={mode:"hidden",children:a.children};return 0==(1&l)&&t.child!==i?((a=t.child).childLanes=0,a.pendingProps=c,t.deletions=null):(a=Ic(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==r?s=Ic(r,s):(s=zc(s,l,n,null)).flags|=2,s.return=t,a.return=t,a.sibling=s,t.child=a,a=s,s=t.child,l=null===(l=e.child.memoizedState)?Fs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=zs,a}return e=(s=e.child).sibling,a=Ic(s,{mode:"visible",children:a.children}),0==(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function Ms(e,t){return(t=Fc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&mo(r),Ko(t,e.child,null,n),(e=Ms(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function $s(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Eo(e.return,t,n)}function qs(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Us(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),0!=(2&(r=li.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$s(e,n,t);else if(19===e.tag)$s(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_a(li,r),0==(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===ci(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),qs(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===ci(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}qs(t,!0,n,null,o);break;case"together":qs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hs(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fl|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Ic(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ic(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zs(e,t){if(!ao)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ws(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:case 17:return Oa(t.type)&&Ra(),Vs(t),null;case 3:return r=t.stateNode,oi(),Ca(La),Ca(Ta),di(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(po(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==oo&&(sc(oo),oo=null))),Rs(e,t),Vs(t),null;case 5:si(t);var a=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Is(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Vs(t),null}if(e=ri(ei.current),po(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[pa]=t,r[fa]=i,e=0!=(1&t.mode),n){case"dialog":Mr("cancel",r),Mr("close",r);break;case"iframe":case"object":case"embed":Mr("load",r);break;case"video":case"audio":for(a=0;a<jr.length;a++)Mr(jr[a],r);break;case"source":Mr("error",r);break;case"img":case"image":case"link":Mr("error",r),Mr("load",r);break;case"details":Mr("toggle",r);break;case"input":Y(r,i),Mr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Mr("invalid",r);break;case"textarea":ae(r,i),Mr("invalid",r)}for(var l in be(n,i),a=null,i)if(i.hasOwnProperty(l)){var c=i[l];"children"===l?"string"==typeof c?r.textContent!==c&&(!0!==i.suppressHydrationWarning&&Xr(r.textContent,c,e),a=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Xr(r.textContent,c,e),a=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Mr("scroll",r)}switch(n){case"input":Z(r),J(r,i,!0);break;case"textarea":Z(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Jr)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[pa]=t,e[fa]=r,Os(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(n,r),n){case"dialog":Mr("cancel",e),Mr("close",e),a=r;break;case"iframe":case"object":case"embed":Mr("load",e),a=r;break;case"video":case"audio":for(a=0;a<jr.length;a++)Mr(jr[a],e);a=r;break;case"source":Mr("error",e),a=r;break;case"img":case"image":case"link":Mr("error",e),Mr("load",e),a=r;break;case"details":Mr("toggle",e),a=r;break;case"input":Y(e,r),a=G(e,r),Mr("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=F({},r,{value:void 0}),Mr("invalid",e);break;case"textarea":ae(e,r),a=re(e,r),Mr("invalid",e)}for(i in be(n,a),c=a)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?ge(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===i?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=u&&"onScroll"===i&&Mr("scroll",e):null!=u&&v(e,i,u,l))}switch(n){case"input":Z(e),J(e,r,!1);break;case"textarea":Z(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vs(t),null;case 6:if(e&&null!=t.stateNode)js(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=ri(ni.current),ri(ei.current),po(t)){if(r=t.stateNode,n=t.memoizedProps,r[pa]=t,(i=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Xr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[pa]=t,t.stateNode=r}return Vs(t),null;case 13:if(Ca(li),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ao&&null!==ro&&0!=(1&t.mode)&&0==(128&t.flags))fo(),ho(),t.flags|=98560,i=!1;else if(i=po(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(o(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(o(317));i[pa]=t}else ho(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vs(t),i=!1}else null!==oo&&(sc(oo),oo=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&li.current)?0===jl&&(jl=3):gc())),null!==t.updateQueue&&(t.flags|=4),Vs(t),null);case 4:return oi(),Rs(e,t),null===e&&qr(t.stateNode.containerInfo),Vs(t),null;case 10:return So(t.type._context),Vs(t),null;case 19:if(Ca(li),null===(i=t.memoizedState))return Vs(t),null;if(r=0!=(128&t.flags),null===(l=i.rendering))if(r)Zs(i,!1);else{if(0!==jl||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ci(e))){for(t.flags|=128,Zs(i,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _a(li,1&li.current|2),t.child}e=e.sibling}null!==i.tail&&Ke()>Ul&&(t.flags|=128,r=!0,Zs(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ci(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Zs(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!ao)return Vs(t),null}else 2*Ke()-i.renderingStartTime>Ul&&1073741824!==n&&(t.flags|=128,r=!0,Zs(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=i.last)?n.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ke(),t.sibling=null,n=li.current,_a(li,r?1&n|2:1&n),t):(Vs(t),null);case 22:case 23:return pc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Rl)&&(Vs(t),6&t.subtreeFlags&&(t.flags|=8192)):Vs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Gs(e,t){switch(to(t),t.tag){case 1:return Oa(t.type)&&Ra(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oi(),Ca(La),Ca(Ta),di(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return si(t),null;case 13:if(Ca(li),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ca(li),null;case 4:return oi(),null;case 10:return So(t.type._context),null;case 22:case 23:return pc(),null;default:return null}}Os=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rs=function(){},Is=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,ri(ei.current);var o,i=null;switch(n){case"input":a=G(e,a),r=G(e,r),i=[];break;case"select":a=F({},a,{value:void 0}),r=F({},r,{value:void 0}),i=[];break;case"textarea":a=re(e,a),r=re(e,r),i=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(u in be(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u){var l=a[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(i||(i=[]),i.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(i=i||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(i=i||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Mr("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},js=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Ks=!1,Xs="function"==typeof WeakSet?WeakSet:Set,Js=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Cc(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){Cc(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&tl(t,n,o)}a=a.next}while(a!==r)}}function al(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pa],delete t[fa],delete t[ma],delete t[ga],delete t[ya])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var dl=null,pl=!1;function fl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(at,n)}catch(s){}switch(n.tag){case 5:Ks||el(n,t);case 6:var r=dl,a=pl;dl=null,fl(e,t,n),pl=a,null!==(dl=r)&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?la(e.parentNode,n):1===e.nodeType&&la(e,n),qt(e)):la(dl,n.stateNode));break;case 4:r=dl,a=pl,dl=n.stateNode.containerInfo,pl=!0,fl(e,t,n),dl=r,pl=a;break;case 0:case 11:case 14:case 15:if(!Ks&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,void 0!==i&&(0!=(2&o)||0!=(4&o))&&tl(n,t,i),a=a.next}while(a!==r)}fl(e,t,n);break;case 1:if(!Ks&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Cc(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ks=(r=Ks)||null!==n.memoizedState,fl(e,t,n),Ks=r):fl(e,t,n);break;default:fl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach((function(t){var r=Lc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,pl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,pl=!0;break e}l=l.return}if(null===dl)throw Error(o(160));hl(i,s,a),dl=null,pl=!1;var c=a.alternate;null!==c&&(c.return=null),a.return=null}catch(u){Cc(a,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)yl(t,e),t=t.sibling}function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),bl(e),4&r){try{rl(3,e,e.return),al(3,e)}catch(g){Cc(e,e.return,g)}try{rl(5,e,e.return)}catch(g){Cc(e,e.return,g)}}break;case 1:gl(t,e),bl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(gl(t,e),bl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var a=e.stateNode;try{pe(a,"")}catch(g){Cc(e,e.return,g)}}if(4&r&&null!=(a=e.stateNode)){var i=e.memoizedProps,s=null!==n?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===i.type&&null!=i.name&&K(a,i),ve(l,s);var u=ve(l,i);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?ge(a,p):"dangerouslySetInnerHTML"===d?de(a,p):"children"===d?pe(a,p):v(a,d,p,u)}switch(l){case"input":X(a,i);break;case"textarea":oe(a,i);break;case"select":var f=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?ne(a,!!i.multiple,h,!1):f!==!!i.multiple&&(null!=i.defaultValue?ne(a,!!i.multiple,i.defaultValue,!0):ne(a,!!i.multiple,i.multiple?[]:"",!1))}a[fa]=i}catch(g){Cc(e,e.return,g)}}break;case 6:if(gl(t,e),bl(e),4&r){if(null===e.stateNode)throw Error(o(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(g){Cc(e,e.return,g)}}break;case 3:if(gl(t,e),bl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(g){Cc(e,e.return,g)}break;case 4:default:gl(t,e),bl(e);break;case 13:gl(t,e),bl(e),8192&(a=e.child).flags&&(i=null!==a.memoizedState,a.stateNode.isHidden=i,!i||null!==a.alternate&&null!==a.alternate.memoizedState||(ql=Ke())),4&r&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ks=(u=Ks)||d,gl(t,e),Ks=u):gl(t,e),bl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Js=e,d=e.child;null!==d;){for(p=Js=d;null!==Js;){switch(h=(f=Js).child,f.tag){case 0:case 11:case 14:case 15:rl(4,f,f.return);break;case 1:el(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Cc(r,n,g)}}break;case 5:el(f,f.return);break;case 22:if(null!==f.memoizedState){kl(p);continue}}null!==h?(h.return=f,Js=h):kl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{a=p.stateNode,u?"function"==typeof(i=a.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=p.stateNode,s=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){Cc(e,e.return,g)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(g){Cc(e,e.return,g)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:gl(t,e),bl(e),4&r&&ml(e);case 21:}}function bl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(pe(a,""),r.flags&=-33),ul(e,ll(e),a);break;case 3:case 4:var i=r.stateNode.containerInfo;cl(e,ll(e),i);break;default:throw Error(o(161))}}catch(s){Cc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Js=e,xl(e,t,n)}function xl(e,t,n){for(var r=0!=(1&e.mode);null!==Js;){var a=Js,o=a.child;if(22===a.tag&&r){var i=null!==a.memoizedState||Ys;if(!i){var s=a.alternate,l=null!==s&&null!==s.memoizedState||Ks;s=Ys;var c=Ks;if(Ys=i,(Ks=l)&&!c)for(Js=a;null!==Js;)l=(i=Js).child,22===i.tag&&null!==i.memoizedState?Sl(a):null!==l?(l.return=i,Js=l):Sl(a);for(;null!==o;)Js=o,xl(o,t,n),o=o.sibling;Js=a,Ys=s,Ks=c}wl(e)}else 0!=(8772&a.subtreeFlags)&&null!==o?(o.return=a,Js=o):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ks||al(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ks)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:yo(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Mo(t,i,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Mo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&qt(p)}}}break;default:throw Error(o(163))}Ks||512&t.flags&&ol(t)}catch(f){Cc(t,t.return,f)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function kl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{al(4,t)}catch(l){Cc(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(l){Cc(t,a,l)}}var o=t.return;try{ol(t)}catch(l){Cc(t,o,l)}break;case 5:var i=t.return;try{ol(t)}catch(l){Cc(t,i,l)}}}catch(l){Cc(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var El,Cl=Math.ceil,_l=x.ReactCurrentDispatcher,Nl=x.ReactCurrentOwner,Tl=x.ReactCurrentBatchConfig,Ll=0,Pl=null,Al=null,Ol=0,Rl=0,Il=Ea(0),jl=0,zl=null,Fl=0,Dl=0,Ml=0,Bl=null,$l=null,ql=0,Ul=1/0,Hl=null,Ql=!1,Zl=null,Vl=null,Wl=!1,Gl=null,Yl=0,Kl=0,Xl=null,Jl=-1,ec=0;function tc(){return 0!=(6&Ll)?Ke():-1!==Jl?Jl:Jl=Ke()}function nc(e){return 0==(1&e.mode)?1:0!=(2&Ll)&&0!==Ol?Ol&-Ol:null!==go.transition?(0===ec&&(ec=mt()),ec):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function rc(e,t,n,r){if(50<Kl)throw Kl=0,Xl=null,Error(o(185));yt(e,n,r),0!=(2&Ll)&&e===Pl||(e===Pl&&(0==(2&Ll)&&(Dl|=n),4===jl&&lc(e,Ol)),ac(e,r),1===n&&0===Ll&&0==(1&t.mode)&&(Ul=Ke()+500,Ma&&qa()))}function ac(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-it(o),s=1<<i,l=a[i];-1===l?0!=(s&n)&&0==(s&r)||(a[i]=ft(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=pt(e,e===Pl?Ol:0);if(0===r)null!==n&&We(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&We(n),1===t)0===e.tag?function(e){Ma=!0,$a(e)}(cc.bind(null,e)):$a(cc.bind(null,e)),ia((function(){0==(6&Ll)&&qa()})),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Pc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Jl=-1,ec=0,0!=(6&Ll))throw Error(o(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=pt(e,e===Pl?Ol:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=yc(e,r);else{t=r;var a=Ll;Ll|=2;var i=mc();for(Pl===e&&Ol===t||(Hl=null,Ul=Ke()+500,fc(e,t));;)try{vc();break}catch(l){hc(e,l)}ko(),_l.current=i,Ll=a,null!==Al?t=0:(Pl=null,Ol=0,t=jl)}if(0!==t){if(2===t&&(0!==(a=ht(e))&&(r=a,t=ic(e,a))),1===t)throw n=zl,fc(e,0),lc(e,r),ac(e,Ke()),n;if(6===t)lc(e,r);else{if(a=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!sr(o(),a))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)&&(2===(t=yc(e,r))&&(0!==(i=ht(e))&&(r=i,t=ic(e,i))),1===t))throw n=zl,fc(e,0),lc(e,r),ac(e,Ke()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:kc(e,$l,Hl);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=ql+500-Ke())){if(0!==pt(e,0))break;if(((a=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ra(kc.bind(null,e,$l,Hl),t);break}kc(e,$l,Hl);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var s=31-it(r);i=1<<s,(s=t[s])>a&&(a=s),r&=~i}if(r=a,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cl(r/1960))-r)){e.timeoutHandle=ra(kc.bind(null,e,$l,Hl),r);break}kc(e,$l,Hl);break;default:throw Error(o(329))}}}return ac(e,Ke()),e.callbackNode===n?oc.bind(null,e):null}function ic(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=yc(e,t))&&(t=$l,$l=n,null!==t&&sc(t)),e}function sc(e){null===$l?$l=e:$l.push.apply($l,e)}function lc(e,t){for(t&=~Ml,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!=(6&Ll))throw Error(o(327));Sc();var t=pt(e,0);if(0==(1&t))return ac(e,Ke()),null;var n=yc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=zl,fc(e,0),lc(e,t),ac(e,Ke()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kc(e,$l,Hl),ac(e,Ke()),null}function uc(e,t){var n=Ll;Ll|=1;try{return e(t)}finally{0===(Ll=n)&&(Ul=Ke()+500,Ma&&qa())}}function dc(e){null!==Gl&&0===Gl.tag&&0==(6&Ll)&&Sc();var t=Ll;Ll|=1;var n=Tl.transition,r=vt;try{if(Tl.transition=null,vt=1,e)return e()}finally{vt=r,Tl.transition=n,0==(6&(Ll=t))&&qa()}}function pc(){Rl=Il.current,Ca(Il)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==Al)for(n=Al.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ra();break;case 3:oi(),Ca(La),Ca(Ta),di();break;case 5:si(r);break;case 4:oi();break;case 13:case 19:Ca(li);break;case 10:So(r.type._context);break;case 22:case 23:pc()}n=n.return}if(Pl=e,Al=e=Ic(e.current,null),Ol=Rl=t,jl=0,zl=null,Ml=Dl=Fl=0,$l=Bl=null,null!==No){for(t=0;t<No.length;t++)if(null!==(r=(n=No[t]).interleaved)){n.interleaved=null;var a=r.next,o=n.pending;if(null!==o){var i=o.next;o.next=a,r.next=i}n.pending=r}No=null}return e}function hc(e,t){for(;;){var n=Al;try{if(ko(),pi.current=is,bi){for(var r=mi.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}bi=!1}if(hi=0,yi=gi=mi=null,vi=!1,xi=0,Nl.current=null,null===n||null===n.return){jl=1,zl=t,Al=null;break}e:{var i=e,s=n.return,l=n,c=t;if(t=Ol,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(0==(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=ys(s);if(null!==h){h.flags&=-257,bs(h,s,l,0,t),1&h.mode&&gs(i,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0==(1&t)){gs(i,u,t),gc();break e}c=Error(o(426))}else if(ao&&1&l.mode){var y=ys(s);if(null!==y){0==(65536&y.flags)&&(y.flags|=256),bs(y,s,l,0,t),mo(us(c,l));break e}}i=c=us(c,l),4!==jl&&(jl=2),null===Bl?Bl=[i]:Bl.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Fo(i,hs(0,c,t));break e;case 1:l=c;var b=i.type,v=i.stateNode;if(0==(128&i.flags)&&("function"==typeof b.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===Vl||!Vl.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t,Fo(i,ms(i,l,t));break e}}i=i.return}while(null!==i)}wc(n)}catch(x){t=x,Al===n&&null!==n&&(Al=n=n.return);continue}break}}function mc(){var e=_l.current;return _l.current=is,null===e?is:e}function gc(){0!==jl&&3!==jl&&2!==jl||(jl=4),null===Pl||0==(268435455&Fl)&&0==(268435455&Dl)||lc(Pl,Ol)}function yc(e,t){var n=Ll;Ll|=2;var r=mc();for(Pl===e&&Ol===t||(Hl=null,fc(e,t));;)try{bc();break}catch(a){hc(e,a)}if(ko(),Ll=n,_l.current=r,null!==Al)throw Error(o(261));return Pl=null,Ol=0,jl}function bc(){for(;null!==Al;)xc(Al)}function vc(){for(;null!==Al&&!Ge();)xc(Al)}function xc(e){var t=El(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?wc(e):Al=t,Nl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ws(n,t,Rl)))return void(Al=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Al=n);if(null===e)return jl=6,void(Al=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Al=t);Al=t=e}while(null!==t);0===jl&&(jl=5)}function kc(e,t,n){var r=vt,a=Tl.transition;try{Tl.transition=null,vt=1,function(e,t,n,r){do{Sc()}while(null!==Gl);if(0!=(6&Ll))throw Error(o(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-it(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(e,i),e===Pl&&(Al=Pl=null,Ol=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Wl||(Wl=!0,Pc(tt,(function(){return Sc(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Tl.transition,Tl.transition=null;var s=vt;vt=1;var l=Ll;Ll|=4,Nl.current=null,function(e,t){if(ea=Ht,fr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(w){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==n||0!==a&&3!==p.nodeType||(l=s+a),p!==i||0!==r&&3!==p.nodeType||(c=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===n&&++u===a&&(l=s),f===i&&++d===r&&(c=s),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ta={focusedElem:e,selectionRange:n},Ht=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,y=m.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:yo(t.type,g),y);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(o(163))}}catch(w){Cc(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=nl,nl=!1}(e,n),yl(n,e),hr(ta),Ht=!!ea,ta=ea=null,e.current=n,vl(n,e,a),Ye(),Ll=l,vt=s,Tl.transition=i}else e.current=n;if(Wl&&(Wl=!1,Gl=e,Yl=a),i=e.pendingLanes,0===i&&(Vl=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(at,e,void 0,128==(128&e.current.flags))}catch(t){}}(n.stateNode),ac(e,Ke()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(Ql)throw Ql=!1,e=Zl,Zl=null,e;0!=(1&Yl)&&0!==e.tag&&Sc(),i=e.pendingLanes,0!=(1&i)?e===Xl?Kl++:(Kl=0,Xl=e):Kl=0,qa()}(e,t,n,r)}finally{Tl.transition=a,vt=r}return null}function Sc(){if(null!==Gl){var e=xt(Yl),t=Tl.transition,n=vt;try{if(Tl.transition=null,vt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Yl=0,0!=(6&Ll))throw Error(o(331));var a=Ll;for(Ll|=4,Js=e.current;null!==Js;){var i=Js,s=i.child;if(0!=(16&Js.flags)){var l=i.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:rl(8,d,i)}var p=d.child;if(null!==p)p.return=d,Js=p;else for(;null!==Js;){var f=(d=Js).sibling,h=d.return;if(il(d),d===u){Js=null;break}if(null!==f){f.return=h,Js=f;break}Js=h}}}var m=i.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Js=i}}if(0!=(2064&i.subtreeFlags)&&null!==s)s.return=i,Js=s;else e:for(;null!==Js;){if(0!=(2048&(i=Js).flags))switch(i.tag){case 0:case 11:case 15:rl(9,i,i.return)}var b=i.sibling;if(null!==b){b.return=i.return,Js=b;break e}Js=i.return}}var v=e.current;for(Js=v;null!==Js;){var x=(s=Js).child;if(0!=(2064&s.subtreeFlags)&&null!==x)x.return=s,Js=x;else e:for(s=v;null!==Js;){if(0!=(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:al(9,l)}}catch(k){Cc(l,l.return,k)}if(l===s){Js=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Js=w;break e}Js=l.return}}if(Ll=a,qa(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(at,e)}catch(k){}r=!0}return r}finally{vt=n,Tl.transition=t}}return!1}function Ec(e,t,n){e=jo(e,t=hs(0,t=us(n,t),1),1),t=tc(),null!==e&&(yt(e,1,t),ac(e,t))}function Cc(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){t=jo(t,e=ms(t,e=us(n,e),1),1),e=tc(),null!==t&&(yt(t,1,e),ac(t,e));break}}t=t.return}}function _c(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Pl===e&&(Ol&n)===n&&(4===jl||3===jl&&(130023424&Ol)===Ol&&500>Ke()-ql?fc(e,0):Ml|=n),ac(e,t)}function Nc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=tc();null!==(e=Po(e,t))&&(yt(e,t,n),ac(e,n))}function Tc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Nc(e,n)}function Lc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Nc(e,n)}function Pc(e,t){return Ve(e,t)}function Ac(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oc(e,t,n,r){return new Ac(e,t,n,r)}function Rc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ic(e,t){var n=e.alternate;return null===n?((n=Oc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jc(e,t,n,r,a,i){var s=2;if(r=e,"function"==typeof e)Rc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return zc(n.children,a,i,t);case E:s=8,a|=8;break;case C:return(e=Oc(12,n,t,2|a)).elementType=C,e.lanes=i,e;case L:return(e=Oc(13,n,t,a)).elementType=L,e.lanes=i,e;case P:return(e=Oc(19,n,t,a)).elementType=P,e.lanes=i,e;case R:return Fc(n,a,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:s=10;break e;case N:s=9;break e;case T:s=11;break e;case A:s=14;break e;case O:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Oc(s,n,t,a)).elementType=e,t.type=r,t.lanes=i,t}function zc(e,t,n,r){return(e=Oc(7,e,r,t)).lanes=n,e}function Fc(e,t,n,r){return(e=Oc(22,e,r,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function Dc(e,t,n){return(e=Oc(6,e,null,t)).lanes=n,e}function Mc(e,t,n){return(t=Oc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function $c(e,t,n,r,a,o,i,s,l){return e=new Bc(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Oc(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oo(o),e}function qc(e){if(!e)return Na;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Oa(n))return ja(e,n,t)}return t}function Uc(e,t,n,r,a,o,i,s,l){return(e=$c(n,r,!0,e,0,o,0,s,l)).context=qc(null),n=e.current,(o=Io(r=tc(),a=nc(n))).callback=null!=t?t:null,jo(n,o,a),e.current.lanes=a,yt(e,a,r),ac(e,r),e}function Hc(e,t,n,r){var a=t.current,o=tc(),i=nc(a);return n=qc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Io(o,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=jo(a,t,i))&&(rc(e,a,i,o),zo(e,a,i)),i}function Qc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){Zc(e,t),(e=e.alternate)&&Zc(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||La.current)xs=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return xs=!1,function(e,t,n){switch(t.tag){case 3:Ps(t),ho();break;case 5:ii(t);break;case 1:Oa(t.type)&&za(t);break;case 4:ai(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;_a(bo,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(_a(li,1&li.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Ds(e,t,n):(_a(li,1&li.current),null!==(e=Qs(e,t,n))?e.sibling:null);_a(li,1&li.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Us(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),_a(li,li.current),r)break;return null;case 22:case 23:return t.lanes=0,Cs(e,t,n)}return Qs(e,t,n)}(e,t,n);xs=0!=(131072&e.flags)}else xs=!1,ao&&0!=(1048576&t.flags)&&Ja(t,Za,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hs(e,t),e=t.pendingProps;var a=Aa(t,Ta.current);Co(t,n),a=Ei(null,t,r,e,a,n);var i=Ci();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oa(r)?(i=!0,za(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Oo(t),a.updater=qo,t.stateNode=a,a._reactInternals=t,Zo(t,r,e,n),t=Ls(null,t,r,!0,i,n)):(t.tag=0,ao&&i&&eo(t),ws(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,r=(a=r._init)(r._payload),t.type=r,a=t.tag=function(e){if("function"==typeof e)return Rc(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===A)return 14}return 2}(r),e=yo(r,e),a){case 0:t=Ns(null,t,r,e,n);break e;case 1:t=Ts(null,t,r,e,n);break e;case 11:t=ks(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,yo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,Ns(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 1:return r=t.type,a=t.pendingProps,Ts(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 3:e:{if(Ps(t),null===e)throw Error(o(387));r=t.pendingProps,a=(i=t.memoizedState).element,Ro(e,t),Do(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=As(e,t,r,n,a=us(Error(o(423)),t));break e}if(r!==a){t=As(e,t,r,n,a=us(Error(o(424)),t));break e}for(ro=ca(t.stateNode.containerInfo.firstChild),no=t,ao=!0,oo=null,n=Xo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ho(),r===a){t=Qs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return ii(t),null===e&&co(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,s=a.children,na(r,a)?s=null:null!==i&&na(r,i)&&(t.flags|=32),_s(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&co(t),null;case 13:return Ds(e,t,n);case 4:return ai(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ko(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,ks(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,s=a.value,_a(bo,r._currentValue),r._currentValue=s,null!==i)if(sr(i.value,s)){if(i.children===a.children&&!La.current){t=Qs(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){s=i.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===i.tag){(c=Io(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),Eo(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Eo(s,n,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}ws(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Co(t,n),r=r(a=_o(a)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return a=yo(r=t.type,t.pendingProps),Ss(e,t,r,a=yo(r.type,a),n);case 15:return Es(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:yo(r,a),Hs(e,t),t.tag=1,Oa(r)?(e=!0,za(t)):e=!1,Co(t,n),Ho(t,r,a),Zo(t,r,a,n),Ls(null,t,r,!0,e,n);case 19:return Us(e,t,n);case 22:return Cs(e,t,n)}throw Error(o(156,t.tag))};var Wc="function"==typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Kc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function eu(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o;if("function"==typeof a){var s=a;a=function(){var e=Qc(i);s.call(e)}}Hc(t,i,e,a)}else i=function(e,t,n,r,a){if(a){if("function"==typeof r){var o=r;r=function(){var e=Qc(i);o.call(e)}}var i=Uc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=i,e[ha]=i.current,qr(8===e.nodeType?e.parentNode:e),dc(),i}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var s=r;r=function(){var e=Qc(l);s.call(e)}}var l=$c(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[ha]=l.current,qr(8===e.nodeType?e.parentNode:e),dc((function(){Hc(t,l,n,r)})),l}(n,t,e,a,r);return Qc(i)}Yc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Hc(e,t,null,null)},Yc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Hc(null,e,null,null)})),t[ha]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&Ft(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),ac(t,Ke()),0==(6&Ll)&&(Ul=Ke()+500,qa()))}break;case 13:dc((function(){var t=Po(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Vc(e,1)}},kt=function(e){if(13===e.tag){var t=Po(e,134217728);if(null!==t)rc(t,e,134217728,tc());Vc(e,134217728)}},St=function(e){if(13===e.tag){var t=nc(e),n=Po(e,t);if(null!==n)rc(n,e,t,tc());Vc(e,t)}},Et=function(){return vt},Ct=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},ke=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=wa(r);if(!a)throw Error(o(90));V(r),X(r,a)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=uc,Le=dc;var tu={usingClientEntryPoint:!1,Events:[va,xa,wa,_e,Ne,uc]},nu={findFiberByHostInstance:ba,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qe(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!au.isDisabled&&au.supportsFiber)try{at=au.inject(ru),ot=au}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Kc(e))throw Error(o(299));var n=!1,r="",a=Wc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=$c(e,1,!1,null,0,n,0,r,a),e[ha]=t.current,qr(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Qe(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(o(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Kc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,a=!1,i="",s=Wc;if(null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Uc(t,null,e,1,null!=n?n:null,a,0,i,s),e[ha]=t.current,qr(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Yc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(o(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(o(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[ha]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},745:(e,t,n)=>{"use strict";var r=n(3935);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},3935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4448)},9590:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=i.length)return!1;for(l=s;0!=l--;)if(!o(e[l],i[l]))return!1;return!0}if(n&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!o(l.value[1],i.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((s=e.length)!=i.length)return!1;for(l=s;0!=l--;)if(e[l]!==i[l])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof i.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof i.toString)return e.toString()===i.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(i,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!o(e[c[l]],i[c[l]]))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},405:(e,t,n)=>{"use strict";n.d(t,{B6:()=>Q,ql:()=>J});var r=n(7294),a=n(5697),o=n.n(a),i=n(9590),s=n.n(i),l=n(1143),c=n.n(l),u=n(6774),d=n.n(u);function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},y={rel:["amphtml","canonical","alternate"]},b={type:["application/ld+json"]},v={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},x=Object.keys(g).map((function(e){return g[e]})),w={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},k=Object.keys(w).reduce((function(e,t){return e[w[t]]=t,e}),{}),S=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},E=function(e){var t=S(e,g.TITLE),n=S(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=S(e,"defaultTitle");return t||r||void 0},C=function(e){return S(e,"onChangeClientState")||function(){}},_=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return p({},e,t)}),{})},N=function(e,t){return t.filter((function(e){return void 0!==e[g.BASE]})).map((function(e){return e[g.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a<r.length;a+=1){var o=r[a].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},T=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var a={};n.filter((function(e){for(var n,o=Object.keys(e),i=0;i<o.length;i+=1){var s=o[i],l=s.toLowerCase();-1===t.indexOf(l)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===l&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),a[n]||(a[n]={}),!r[n][c]&&(a[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(a),i=0;i<o.length;i+=1){var s=o[i],l=p({},r[s],a[s]);r[s]=l}return e}),[]).reverse()},L=function(e,t){if(Array.isArray(e)&&e.length)for(var n=0;n<e.length;n+=1)if(e[n][t])return!0;return!1},P=function(e){return Array.isArray(e)?e.join(""):e},A=function(e,t){return Array.isArray(e)?e.reduce((function(e,n){return function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1}(n,t)?e.priority.push(n):e.default.push(n),e}),{priority:[],default:[]}):{default:e}},O=function(e,t){var n;return p({},e,((n={})[t]=void 0,n))},R=[g.NOSCRIPT,g.SCRIPT,g.STYLE],I=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},j=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},z=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[w[n]||n]=e[n],t}),t)},F=function(e,t){return t.map((function(t,n){var a,o=((a={key:n})["data-rh"]=!0,a);return Object.keys(t).forEach((function(e){var n=w[e]||e;"innerHTML"===n||"cssText"===n?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[n]=t[e]})),r.createElement(e,o)}))},D=function(e,t,n){switch(e){case g.TITLE:return{toComponent:function(){return n=t.titleAttributes,(a={key:e=t.title})["data-rh"]=!0,o=z(n,a),[r.createElement(g.TITLE,o,e)];var e,n,a,o},toString:function(){return function(e,t,n,r){var a=j(n),o=P(t);return a?"<"+e+' data-rh="true" '+a+">"+I(o,r)+"</"+e+">":"<"+e+' data-rh="true">'+I(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return z(t)},toString:function(){return j(t)}};default:return{toComponent:function(){return F(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var a=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var a=void 0===r[t]?t:t+'="'+I(r[t],n)+'"';return e?e+" "+a:a}),""),o=r.innerHTML||r.cssText||"",i=-1===R.indexOf(e);return t+"<"+e+' data-rh="true" '+a+(i?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}},M=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,a=e.htmlAttributes,o=e.noscriptTags,i=e.styleTags,s=e.title,l=void 0===s?"":s,c=e.titleAttributes,u=e.linkTags,d=e.metaTags,p=e.scriptTags,f={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var h=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,a=A(e.metaTags,v),o=A(t,y),i=A(n,b);return{priorityMethods:{toComponent:function(){return[].concat(F(g.META,a.priority),F(g.LINK,o.priority),F(g.SCRIPT,i.priority))},toString:function(){return D(g.META,a.priority,r)+" "+D(g.LINK,o.priority,r)+" "+D(g.SCRIPT,i.priority,r)}},metaTags:a.default,linkTags:o.default,scriptTags:i.default}}(e);f=h.priorityMethods,u=h.linkTags,d=h.metaTags,p=h.scriptTags}return{priority:f,base:D(g.BASE,t,r),bodyAttributes:D("bodyAttributes",n,r),htmlAttributes:D("htmlAttributes",a,r),link:D(g.LINK,u,r),meta:D(g.META,d,r),noscript:D(g.NOSCRIPT,o,r),script:D(g.SCRIPT,p,r),style:D(g.STYLE,i,r),title:D(g.TITLE,{title:l,titleAttributes:c},r)}},B=[],$=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?B:n.instances},add:function(e){(n.canUseDOM?B:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?B:n.instances).indexOf(e);(n.canUseDOM?B:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=M({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},q=r.createContext({}),U=o().shape({setHelmet:o().func,helmetInstances:o().shape({get:o().func,add:o().func,remove:o().func})}),H="undefined"!=typeof document,Q=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new $(r.props.context,t.canUseDOM),r}return f(t,e),t.prototype.render=function(){return r.createElement(q.Provider,{value:this.helmetData.value},this.props.children)},t}(r.Component);Q.canUseDOM=H,Q.propTypes={context:o().shape({helmet:o().shape()}),children:o().node.isRequired},Q.defaultProps={context:{}},Q.displayName="HelmetProvider";var Z=function(e,t){var n,r=document.head||document.querySelector(g.HEAD),a=r.querySelectorAll(e+"[data-rh]"),o=[].slice.call(a),i=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&("innerHTML"===a?r.innerHTML=t.innerHTML:"cssText"===a?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(a,void 0===t[a]?"":t[a]));r.setAttribute("data-rh","true"),o.some((function(e,t){return n=t,r.isEqualNode(e)}))?o.splice(n,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:i}},V=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),a=r?r.split(","):[],o=[].concat(a),i=Object.keys(t),s=0;s<i.length;s+=1){var l=i[s],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===a.indexOf(l)&&a.push(l);var u=o.indexOf(l);-1!==u&&o.splice(u,1)}for(var d=o.length-1;d>=0;d-=1)n.removeAttribute(o[d]);a.length===o.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==i.join(",")&&n.setAttribute("data-rh",i.join(","))}},W=function(e,t){var n=e.baseTag,r=e.htmlAttributes,a=e.linkTags,o=e.metaTags,i=e.noscriptTags,s=e.onChangeClientState,l=e.scriptTags,c=e.styleTags,u=e.title,d=e.titleAttributes;V(g.BODY,e.bodyAttributes),V(g.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=P(e)),V(g.TITLE,t)}(u,d);var p={baseTag:Z(g.BASE,n),linkTags:Z(g.LINK,a),metaTags:Z(g.META,o),noscriptTags:Z(g.NOSCRIPT,i),scriptTags:Z(g.SCRIPT,l),styleTags:Z(g.STYLE,c)},f={},h={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(f[e]=n),r.length&&(h[e]=p[e].oldTags)})),t&&t(),s(e,f,h)},G=null,Y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).rendered=!1,t}f(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!d()(e,this.props)},n.componentDidUpdate=function(){this.emitChange()},n.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},n.emitChange=function(){var e,t,n=this.props.context,r=n.setHelmet,a=null,o=(e=n.helmetInstances.get().map((function(e){var t=p({},e.props);return delete t.context,t})),{baseTag:N(["href"],e),bodyAttributes:_("bodyAttributes",e),defer:S(e,"defer"),encode:S(e,"encodeSpecialCharacters"),htmlAttributes:_("htmlAttributes",e),linkTags:T(g.LINK,["rel","href"],e),metaTags:T(g.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:T(g.NOSCRIPT,["innerHTML"],e),onChangeClientState:C(e),scriptTags:T(g.SCRIPT,["src","innerHTML"],e),styleTags:T(g.STYLE,["cssText"],e),title:E(e),titleAttributes:_("titleAttributes",e),prioritizeSeoTags:L(e,"prioritizeSeoTags")});Q.canUseDOM?(t=o,G&&cancelAnimationFrame(G),t.defer?G=requestAnimationFrame((function(){W(t,(function(){G=null}))})):(W(t),G=null)):M&&(a=M(o)),r(a)},n.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},n.render=function(){return this.init(),null},t}(r.Component);Y.propTypes={context:U.isRequired},Y.displayName="HelmetDispatcher";var K=["children"],X=["children"],J=function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!s()(O(this.props,"helmetData"),O(e,"helmetData"))},n.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:t};case g.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return p({},r,((t={})[n.type]=[].concat(r[n.type]||[],[p({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,a=e.newProps,o=e.newChildProps,i=e.nestedChildren;switch(r.type){case g.TITLE:return p({},a,((t={})[r.type]=i,t.titleAttributes=p({},o),t));case g.BODY:return p({},a,{bodyAttributes:p({},o)});case g.HTML:return p({},a,{htmlAttributes:p({},o)});default:return p({},a,((n={})[r.type]=p({},o),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=p({},t);return Object.keys(e).forEach((function(t){var r;n=p({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return c()(x.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+x.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),c()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,a={};return r.Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,o=r.children,i=m(r,K),s=Object.keys(i).reduce((function(e,t){return e[k[t]||t]=i[t],e}),{}),l=e.type;switch("symbol"==typeof l?l=l.toString():n.warnOnInvalidChildren(e,o),l){case g.FRAGMENT:t=n.mapChildrenToProps(o,t);break;case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:a=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:a,newChildProps:s,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(a,t)},n.render=function(){var e=this.props,t=e.children,n=m(e,X),a=p({},n),o=n.helmetData;return t&&(a=this.mapChildrenToProps(t,a)),!o||o instanceof $||(o=new $(o.context,o.instances)),o?r.createElement(Y,p({},a,{context:o.value,helmetData:void 0})):r.createElement(q.Consumer,null,(function(e){return r.createElement(Y,p({},a,{context:e}))}))},t}(r.Component);J.propTypes={base:o().object,bodyAttributes:o().object,children:o().oneOfType([o().arrayOf(o().node),o().node]),defaultTitle:o().string,defer:o().bool,encodeSpecialCharacters:o().bool,htmlAttributes:o().object,link:o().arrayOf(o().object),meta:o().arrayOf(o().object),noscript:o().arrayOf(o().object),onChangeClientState:o().func,script:o().arrayOf(o().object),style:o().arrayOf(o().object),title:o().string,titleAttributes:o().object,titleTemplate:o().string,prioritizeSeoTags:o().bool,helmetData:o().object},J.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},J.displayName="Helmet"},9921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case a:return t}}}function k(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=a,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||w(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===i||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===v||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},9864:(e,t,n)=>{"use strict";e.exports=n(9921)},8356:(e,t,n)=>{"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var s=n(7294),l=n(5697),c=[],u=[];function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function p(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var a=d(e[r]);a.loading?t.loading=!0:(t.loaded[r]=a.loaded,t.error=a.error),n.push(a.promise),a.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function f(e,t){return s.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function h(e,t){var d,p;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var h=i({loader:null,loading:null,delay:200,timeout:null,render:f,webpack:null,modules:null},t),m=null;function g(){return m||(m=e(h.loader)),m.promise}return c.push(g),"function"==typeof h.webpack&&u.push((function(){if((0,h.webpack)().every((function(e){return void 0!==e&&void 0!==n.m[e]})))return g()})),p=d=function(t){function n(n){var r;return o(a(a(r=t.call(this,n)||this)),"retry",(function(){r.setState({error:null,loading:!0,timedOut:!1}),m=e(h.loader),r._loadModule()})),g(),r.state={error:m.error,pastDelay:!1,timedOut:!1,loading:m.loading,loaded:m.loaded},r}r(n,t),n.preload=function(){return g()};var i=n.prototype;return i.UNSAFE_componentWillMount=function(){this._loadModule()},i.componentDidMount=function(){this._mounted=!0},i._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(h.modules)&&h.modules.forEach((function(t){e.context.loadable.report(t)})),m.loading){var t=function(t){e._mounted&&e.setState(t)};"number"==typeof h.delay&&(0===h.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){t({pastDelay:!0})}),h.delay)),"number"==typeof h.timeout&&(this._timeout=setTimeout((function(){t({timedOut:!0})}),h.timeout));var n=function(){t({error:m.error,loaded:m.loaded,loading:m.loading}),e._clearTimeouts()};m.promise.then((function(){return n(),null})).catch((function(e){return n(),null}))}},i.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},i._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},i.render=function(){return this.state.loading||this.state.error?s.createElement(h.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?h.render(this.state.loaded,this.props):null},n}(s.Component),o(d,"contextTypes",{loadable:l.shape({report:l.func.isRequired})}),p}function m(e){return h(d,e)}m.Map=function(e){if("function"!=typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return h(p,e)};var g=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.getChildContext=function(){return{loadable:{report:this.props.report}}},n.render=function(){return s.Children.only(this.props.children)},t}(s.Component);function y(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then((function(){if(e.length)return y(e)}))}o(g,"propTypes",{report:l.func.isRequired}),o(g,"childContextTypes",{loadable:l.shape({report:l.func.isRequired}).isRequired}),m.Capture=g,m.preloadAll=function(){return new Promise((function(e,t){y(c).then(e,t)}))},m.preloadReady=function(){return new Promise((function(e,t){y(u).then(e,e)}))},e.exports=m},8790:(e,t,n)=>{"use strict";n.d(t,{H:()=>s,f:()=>i});var r=n(6550),a=n(7462),o=n(7294);function i(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var a=e.path?(0,r.LX)(t,e):n.length?n[n.length-1].match:r.F0.computeRootMatch(t);return a&&(n.push({route:e,match:a}),e.routes&&i(e.routes,t,n)),a})),n}function s(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?o.createElement(r.rs,n,e.map((function(e,n){return o.createElement(r.AW,{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render((0,a.Z)({},n,{},t,{route:e})):o.createElement(e.component,(0,a.Z)({},n,t,{route:e}))}})}))):null}},3727:(e,t,n)=>{"use strict";n.d(t,{OL:()=>v,VK:()=>u,rU:()=>g});var r=n(6550),a=n(5068),o=n(7294),i=n(2358),s=n(7462),l=n(3366),c=n(8776),u=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,i.lX)(t.props),t}return(0,a.Z)(t,e),t.prototype.render=function(){return o.createElement(r.F0,{history:this.history,children:this.props.children})},t}(o.Component);o.Component;var d=function(e,t){return"function"==typeof e?e(t):e},p=function(e,t){return"string"==typeof e?(0,i.ob)(e,null,null,t):e},f=function(e){return e},h=o.forwardRef;void 0===h&&(h=f);var m=h((function(e,t){var n=e.innerRef,r=e.navigate,a=e.onClick,i=(0,l.Z)(e,["innerRef","navigate","onClick"]),c=i.target,u=(0,s.Z)({},i,{onClick:function(e){try{a&&a(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=f!==h&&t||n,o.createElement("a",u)}));var g=h((function(e,t){var n=e.component,a=void 0===n?m:n,u=e.replace,g=e.to,y=e.innerRef,b=(0,l.Z)(e,["component","replace","to","innerRef"]);return o.createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=e.history,r=p(d(g,e.location),e.location),l=r?n.createHref(r):"",m=(0,s.Z)({},b,{href:l,navigate:function(){var t=d(g,e.location),r=(0,i.Ep)(e.location)===(0,i.Ep)(p(t));(u||r?n.replace:n.push)(t)}});return f!==h?m.ref=t||y:m.innerRef=y,o.createElement(a,m)}))})),y=function(e){return e},b=o.forwardRef;void 0===b&&(b=y);var v=b((function(e,t){var n=e["aria-current"],a=void 0===n?"page":n,i=e.activeClassName,u=void 0===i?"active":i,f=e.activeStyle,h=e.className,m=e.exact,v=e.isActive,x=e.location,w=e.sensitive,k=e.strict,S=e.style,E=e.to,C=e.innerRef,_=(0,l.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=x||e.location,i=p(d(E,n),n),l=i.pathname,N=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),T=N?(0,r.LX)(n.pathname,{path:N,exact:m,sensitive:w,strict:k}):null,L=!!(v?v(T,n):T),P="function"==typeof h?h(L):h,A="function"==typeof S?S(L):S;L&&(P=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(P,u),A=(0,s.Z)({},A,f));var O=(0,s.Z)({"aria-current":L&&a||null,className:P,style:A,to:i},_);return y!==b?O.ref=t||C:O.innerRef=C,o.createElement(g,O)}))}))},6550:(e,t,n)=>{"use strict";n.d(t,{AW:()=>P,F0:()=>v,LX:()=>L,TH:()=>M,k6:()=>D,l_:()=>C,rs:()=>z,s6:()=>b});var r=n(5068),a=n(7294),o=n(5697),i=n.n(o),s=n(2358),l=n(8776),c=n(7462),u=n(4779),d=n.n(u),p=(n(9864),n(3366)),f=(n(8679),1073741823),h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};var m=a.createContext||function(e,t){var n,o,s="__create-react-context-"+function(){var e="__global_unique_id__";return h[e]=(h[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n,r,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}(0,r.Z)(n,e);var a=n.prototype;return a.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},a.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,a=e.value;((o=r)===(i=a)?0!==o||1/o==1/i:o!=o&&i!=i)?n=0:(n="function"==typeof t?t(r,a):f,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,i},a.render=function(){return this.props.children},n}(a.Component);l.childContextTypes=((n={})[s]=i().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.Z)(n,t);var a=n.prototype;return a.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?f:t},a.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?f:e},a.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},a.getValue=function(){return this.context[s]?this.context[s].get():e},a.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(a.Component);return c.contextTypes=((o={})[s]=i().object,o),{Provider:l,Consumer:c}},g=function(e){var t=m();return t.displayName=e,t},y=g("Router-History"),b=g("Router"),v=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return a.createElement(b.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a.createElement(y.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a.Component);a.Component;var x=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(a.Component);var w={},k=1e4,S=0;function E(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(w[e])return w[e];var t=d().compile(e);return S<k&&(w[e]=t,S++),t}(e)(t,{pretty:!0})}function C(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return a.createElement(b.Consumer,null,(function(e){e||(0,l.Z)(!1);var r=e.history,i=e.staticContext,u=o?r.push:r.replace,d=(0,s.ob)(t?"string"==typeof n?E(n,t.params):(0,c.Z)({},n,{pathname:E(n.pathname,t.params)}):n);return i?(u(d),null):a.createElement(x,{onMount:function(){u(d)},onUpdate:function(e,t){var n=(0,s.ob)(t.to);(0,s.Hp)(n,(0,c.Z)({},d,{key:n.key}))||u(d)},to:n})}))}var _={},N=1e4,T=0;function L(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,a=n.exact,o=void 0!==a&&a,i=n.strict,s=void 0!==i&&i,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=_[n]||(_[n]={});if(r[e])return r[e];var a=[],o={regexp:d()(e,a,t),keys:a};return T<N&&(r[e]=o,T++),o}(n,{end:o,strict:s,sensitive:c}),a=r.regexp,i=r.keys,l=a.exec(e);if(!l)return null;var u=l[0],p=l.slice(1),f=e===u;return o&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:i.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}var P=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a.createElement(b.Consumer,null,(function(t){t||(0,l.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?L(n.pathname,e.props):t.match,o=(0,c.Z)({},t,{location:n,match:r}),i=e.props,s=i.children,u=i.component,d=i.render;return Array.isArray(s)&&function(e){return 0===a.Children.count(e)}(s)&&(s=null),a.createElement(b.Provider,{value:o},o.match?s?"function"==typeof s?s(o):s:u?a.createElement(u,o):d?d(o):null:"function"==typeof s?s(o):null)}))},t}(a.Component);function A(e){return"/"===e.charAt(0)?e:"/"+e}function O(e,t){if(!e)return t;var n=A(e);return 0!==t.pathname.indexOf(n)?t:(0,c.Z)({},t,{pathname:t.pathname.substr(n.length)})}function R(e){return"string"==typeof e?e:(0,s.Ep)(e)}function I(e){return function(){(0,l.Z)(!1)}}function j(){}a.Component;var z=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a.createElement(b.Consumer,null,(function(t){t||(0,l.Z)(!1);var n,r,o=e.props.location||t.location;return a.Children.forEach(e.props.children,(function(e){if(null==r&&a.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?L(o.pathname,(0,c.Z)({},e.props,{path:i})):t.match}})),r?a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(a.Component);var F=a.useContext;function D(){return F(y)}function M(){return F(b).location}},5251:(e,t,n)=>{"use strict";var r=n(7294),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:a,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},2408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var x=v.prototype=new b;x.constructor=v,m(x,y.prototype),x.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var a,o={},i=null,s=null;if(null!=t)for(a in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)k.call(t,a)&&!E.hasOwnProperty(a)&&(o[a]=t[a]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(a in l=e.defaultProps)void 0===o[a]&&(o[a]=l[a]);return{$$typeof:n,type:e,key:i,ref:s,props:o,_owner:S.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var N=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function L(e,t,a,o,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return i=i(l=e),e=""===o?"."+T(l,0):o,w(i)?(a="",null!=e&&(a=e.replace(N,"$&/")+"/"),L(i,t,a,"",(function(e){return e}))):null!=i&&(_(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,a+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(N,"$&/")+"/")+e)),t.push(i)),1;if(l=0,o=""===o?".":o+":",w(e))for(var c=0;c<e.length;c++){var u=o+T(s=e[c],c);l+=L(s,t,a,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=L(s=s.value,t,a,u=o+T(s,c++),i);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],a=0;return L(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function A(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},R={transition:null},I={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:R,ReactCurrentOwner:S};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=a,t.Profiler=i,t.PureComponent=v,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=m({},e.props),o=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=S.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)k.call(t,c)&&!E.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}return{$$typeof:n,type:e.type,key:o,ref:i,props:a,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return O.current.useCallback(e,t)},t.useContext=function(e){return O.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return O.current.useDeferredValue(e)},t.useEffect=function(e,t){return O.current.useEffect(e,t)},t.useId=function(){return O.current.useId()},t.useImperativeHandle=function(e,t,n){return O.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return O.current.useMemo(e,t)},t.useReducer=function(e,t,n){return O.current.useReducer(e,t,n)},t.useRef=function(e){return O.current.useRef(e)},t.useState=function(e){return O.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return O.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return O.current.useTransition()},t.version="18.2.0"},7294:(e,t,n)=>{"use strict";e.exports=n(2408)},5893:(e,t,n)=>{"use strict";e.exports=n(5251)},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<a&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<a&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,f=3,h=!1,m=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)a(u);else{if(!(t.startTime<=e))break;a(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(g=!1,x(e),!m)if(null!==r(c))m=!0,R(k);else{var t=r(u);null!==t&&I(w,t.startTime-e)}}function k(e,n){m=!1,g&&(g=!1,b(_),_=-1),h=!0;var o=f;try{for(x(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!L());){var i=p.callback;if("function"==typeof i){p.callback=null,f=p.priorityLevel;var s=i(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===r(c)&&a(c),x(n)}else a(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&I(w,d.startTime-n),l=!1}return l}finally{p=null,f=o,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,E=!1,C=null,_=-1,N=5,T=-1;function L(){return!(t.unstable_now()-T<N)}function P(){if(null!==C){var e=t.unstable_now();T=e;var n=!0;try{n=C(!0,e)}finally{n?S():(E=!1,C=null)}}else E=!1}if("function"==typeof v)S=function(){v(P)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,O=A.port2;A.port1.onmessage=P,S=function(){O.postMessage(null)}}else S=function(){y(P,0)};function R(e){C=e,E||(E=!0,S())}function I(e,n){_=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,R(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,a,o){var i=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?i+o:i:o=i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:a,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>i?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(b(_),_=-1):g=!0,I(w,o-i))):(e.sortIndex=s,n(c,e),m||h||(m=!0,R(k))),e},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},3840:(e,t,n)=>{"use strict";e.exports=n(53)},6774:e=>{e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(a=n?n.call(r,u,d,c):void 0)||void 0===a&&u!==d)return!1}return!0}},6809:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={title:"Quickstart",url:"https://sidorares.github.io",baseUrl:"/node-mysql2/zh-CN/",organizationName:"sidorares",projectName:"node-mysql2",trailingSlash:!1,favicon:"img/favicon.svg",onBrokenLinks:"throw",onBrokenMarkdownLinks:"warn",i18n:{defaultLocale:"en",locales:["en","zh-CN","pt-BR"],localeConfigs:{en:{label:"\ud83c\uddfa\ud83c\uddf8 English",direction:"ltr"},"zh-CN":{label:"\ud83c\udde8\ud83c\uddf3 \u7b80\u4f53\u4e2d\u6587",direction:"ltr"},"pt-BR":{label:"\ud83c\udde7\ud83c\uddf7 Portugu\xeas (Brasil)",direction:"ltr"}},path:"i18n"},presets:[["classic",{docs:{sidebarPath:"./sidebars.ts",editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/"},theme:{customCss:"./src/css/custom.scss"},blog:!1}]],themeConfig:{navbar:{items:[{to:"/docs",label:"MySQL2",position:"left",className:"navbar__brand navbar__manual--title text--truncate",activeBaseRegex:"^/$"},{to:"/docs/documentation",label:"Docs",position:"left"},{to:"/docs/examples",label:"Examples",position:"left"},{to:"/docs/faq",label:"FAQ",position:"left"},{href:"https://github.com/sidorares/node-mysql2",label:"GitHub",position:"right"},{href:"https://stackoverflow.com/questions/tagged/mysql2",label:"Stack Overflow",position:"right"},{href:"https://github.com/sponsors/sidorares",label:"Donate",position:"right"},{type:"search",position:"right"},{type:"localeDropdown",position:"right",dropdownItemsBefore:[],dropdownItemsAfter:[]}],hideOnScroll:!1},prism:{theme:{plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},darkTheme:{plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},additionalLanguages:["json","bash","tsx"],magicComments:[{className:"theme-code-block-highlighted-line",line:"highlight-next-line",block:{start:"highlight-start",end:"highlight-end"}}]},colorMode:{defaultMode:"light",disableSwitch:!1,respectPrefersColorScheme:!1},docs:{versionPersistence:"localStorage",sidebar:{hideable:!1,autoCollapseCategories:!1}},metadata:[],tableOfContents:{minHeadingLevel:2,maxHeadingLevel:3}},plugins:["docusaurus-plugin-sass","@easyops-cn/docusaurus-search-local",null],baseUrlIssueBanner:!0,onDuplicateRoutes:"warn",staticDirectories:["static"],customFields:{},themes:[],scripts:[],headTags:[],stylesheets:[],clientModules:[],tagline:"",titleDelimiter:"|",noIndex:!1,markdown:{format:"mdx",mermaid:!1,mdx1Compat:{comments:!0,admonitions:!0,headingIds:!0}}}},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},5068:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>a})},3366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}n.d(t,{Z:()=>r})},512:(e,t,n)=>{"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}n.d(t,{Z:()=>a});const a=function(){for(var e,t,n=0,a="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}},2573:(e,t,n)=>{"use strict";n.d(t,{p1:()=>N,y$:()=>ee});var r,a,o,i,s,l,c,u=n(7294),d=n(512),p=Object.create,f=Object.defineProperty,h=Object.defineProperties,m=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertyNames,b=Object.getOwnPropertySymbols,v=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,k=(e,t,n)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S=(e,t)=>{for(var n in t||(t={}))x.call(t,n)&&k(e,n,t[n]);if(b)for(var n of b(t))w.call(t,n)&&k(e,n,t[n]);return e},E=(e,t)=>h(e,g(t)),C=(e,t)=>{var n={};for(var r in e)x.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&b)for(var r of b(e))t.indexOf(r)<0&&w.call(e,r)&&(n[r]=e[r]);return n},_=(r={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var a,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var i in a={},n[o]=a,t)t.hasOwnProperty(i)&&(a[i]=e(t[i],n));return a;case"Array":return o=r.util.objId(t),n[o]?n[o]:(a=[],n[o]=a,t.forEach((function(t,r){a[r]=e(t,n)})),a);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var o=(a=a||r.languages)[e],i={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(i[l]=n[l]);n.hasOwnProperty(s)||(i[s]=o[s])}var c=a[e];return a[e]=i,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=i)})),i},DFS:function e(t,n,a,o){o=o||{};var i=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],a||s);var l=t[s],c=r.util.type(l);"Object"!==c||o[i(l)]?"Array"!==c||o[i(l)]||(o[i(l)]=!0,e(l,n,s,o)):(o[i(l)]=!0,e(l,n,null,o))}}},plugins:{},highlight:function(e,t,n){var o={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",o),!o.grammar)throw new Error('The language "'+o.language+'" has no grammar.');return o.tokens=r.tokenize(o.code,o.grammar),r.hooks.run("after-tokenize",o),a.stringify(r.util.encode(o.tokens),o.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new s;return l(a,a.head,e),i(e,a,t,a.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,o=0;a=n[o++];)a(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function i(e,t,n,s,u,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var h=0;h<f.length;++h){if(d&&d.cause==p+","+h)return;var m=f[h],g=m.inside,y=!!m.lookbehind,b=!!m.greedy,v=m.alias;if(b&&!m.pattern.global){var x=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,x+"g")}for(var w=m.pattern||m,k=s.next,S=u;k!==t.tail&&!(d&&S>=d.reach);S+=k.value.length,k=k.next){var E=k.value;if(t.length>e.length)return;if(!(E instanceof a)){var C,_=1;if(b){if(!(C=o(w,S,e,y))||C.index>=e.length)break;var N=C.index,T=C.index+C[0].length,L=S;for(L+=k.value.length;N>=L;)L+=(k=k.next).value.length;if(S=L-=k.value.length,k.value instanceof a)continue;for(var P=k;P!==t.tail&&(L<T||"string"==typeof P.value);P=P.next)_++,L+=P.value.length;_--,E=e.slice(S,L),C.index-=S}else if(!(C=o(w,0,E,y)))continue;N=C.index;var A=C[0],O=E.slice(0,N),R=E.slice(N+A.length),I=S+E.length;d&&I>d.reach&&(d.reach=I);var j=k.prev;if(O&&(j=l(t,j,O),S+=O.length),c(t,j,_),k=l(t,j,new a(p,g?r.tokenize(A,g):A,v,A)),R&&l(t,k,R),_>1){var z={cause:p+","+h,reach:I};i(e,t,n,k.prev,S,z),d&&z.reach>d.reach&&(d.reach=z.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function c(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}return a.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(o.classes,i):o.classes.push(i)),r.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},r}();t.exports=n,n.default=n}},function(){return a||(0,r[y(r)[0]])((a={exports:{}}).exports,a),a.exports}),N=((e,t,n)=>(n=null!=e?p(v(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of y(t))x.call(e,a)||a===n||f(e,a,{get:()=>t[a],enumerable:!(r=m(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?n:f(n,"default",{value:e,enumerable:!0}),e)))(_());N.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},N.languages.markup.tag.inside["attr-value"].inside.entity=N.languages.markup.entity,N.languages.markup.doctype.inside["internal-subset"].inside=N.languages.markup,N.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(N.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:N.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:N.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},N.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(N.languages.markup.tag,"addAttribute",{value:function(e,t){N.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:N.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),N.languages.html=N.languages.markup,N.languages.mathml=N.languages.markup,N.languages.svg=N.languages.markup,N.languages.xml=N.languages.extend("markup",{}),N.languages.ssml=N.languages.xml,N.languages.atom=N.languages.xml,N.languages.rss=N.languages.xml,o=N,i={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},l="(?:[^\\\\-]|"+(s=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")",l=RegExp(l+"-"+l),c={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},o.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":i,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:s}},"special-escape":i,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":c}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:s,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":c}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}},N.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},N.languages.javascript=N.languages.extend("clike",{"class-name":[N.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),N.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,N.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:N.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:N.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:N.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:N.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:N.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),N.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:N.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),N.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),N.languages.markup&&(N.languages.markup.tag.addInlined("script","javascript"),N.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),N.languages.js=N.languages.javascript,N.languages.actionscript=N.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),N.languages.actionscript["class-name"].alias="function",delete N.languages.actionscript.parameter,delete N.languages.actionscript["literal-property"],N.languages.markup&&N.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:N.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(N),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},a="doc-comment";if(o=e.languages[t]){var o,i=o[a];if((i=i||(o=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[a])instanceof RegExp&&(i=o[a]={pattern:i}),Array.isArray(i))for(var s=0,l=i.length;s<l;s++)i[s]instanceof RegExp&&(i[s]={pattern:i[s]}),r(i[s]);else r(i)}}))}}),t.addSupport(["java","javascript","php"],t)}(N),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(N),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(N),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(N),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,i=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var a,o=t[n];"code"!==o.type?e(o.content):(a=o.content[1],o=o.content[3],a&&o&&"code-language"===a.type&&"code-block"===o.type&&"string"==typeof a.content&&(a=a.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),a="language-"+(a=(/[a-z][\w-]*/i.exec(a)||[""])[0].toLowerCase()),o.alias?"string"==typeof o.alias?o.alias=[o.alias,a]:o.alias.push(a):o.alias=[a]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,a=t.classes.length;r<a;r++){var o=t.classes[r];if(o=/language-(.+)/.exec(o)){n=o[1];break}}var c,u=e.languages[n];u?t.content=e.highlight(t.content.replace(i,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n)):s[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(c="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(N),N.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:N.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},N.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var a=[];if(d(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var o=p(/^\($/,/^\)$/);if(-1===o)continue;for(;n<o;n++){var i=u(0);"variable"===i.type&&(f(i,"variable-input"),a.push(i.content))}n=o+1}if(d(["punctuation","property-query"])&&"{"===u(0).content&&(n++,f(u(0),"property-mutation"),0<a.length)){var s=p(/^\{$/,/^\}$/);if(-1!==s)for(var l=n;l<s;l++){var c=t[l];"variable"===c.type&&0<=a.indexOf(c.content)&&f(c,"variable-input")}}}}function u(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function p(e,r){for(var a=1,o=n;o<t.length;o++){var i=t[o],s=i.content;if("punctuation"===i.type&&"string"==typeof s)if(e.test(s))a++;else if(r.test(s)&&0==--a)return o}return-1}function f(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),N.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,a=r.inside["interpolation-punctuation"],o=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function l(t,n,i){var l=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),c=0,u={},d=(l=s(l.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=c++,n="___"+i.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,i),Object.keys(u));return c=0,function t(n){for(var o=0;o<n.length;o++){if(c>=d.length)return;var i,l,p,f,h,m,g,y=n[o];"string"==typeof y||"string"==typeof y.content?(i=d[c],-1!==(g=(m="string"==typeof y?y:y.content).indexOf(i))&&(++c,l=m.substring(0,g),h=u[i],p=void 0,(f={})["interpolation-punctuation"]=a,3===(f=e.tokenize(h,f)).length&&((p=[1,1]).push.apply(p,s(f[1],e.languages.javascript,"javascript")),f.splice.apply(f,p)),p=new e.Token("interpolation",f,r.alias,h),f=m.substring(g+i.length),h=[],l&&h.push(l),h.push(p),f&&(t(m=[f]),h.push.apply(h,m)),"string"==typeof y?(n.splice.apply(n,[o,1].concat(h)),o+=h.length-1):y.content=h)):(g=y.content,Array.isArray(g)?t(g):t([g]))}}(l),new e.Token(i,l,"language-"+i,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in c&&function t(n){for(var r=0,a=n.length;r<a;r++){var o,i,s,c=n[r];"string"!=typeof c&&(o=c.content,Array.isArray(o)?"template-string"===c.type?(c=o[1],3===o.length&&"string"!=typeof c&&"embedded-code"===c.type&&(i=u(c),c=c.alias,c=Array.isArray(c)?c[0]:c,s=e.languages[c])&&(o[1]=l(i,s,c))):t(o):"string"!=typeof o&&t([o]))}}(t.tokens)}))}(N),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(N),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(N),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(N),N.languages.n4js=N.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),N.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),N.languages.n4jsd=N.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var a=n[r],o=e.languages.javascript[a];a=(o="RegExp"===e.util.type(o)?e.languages.javascript[a]={pattern:o}:o).inside||{};(o.inside=a)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(N),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return a})),RegExp(e,t)}function i(t){for(var n=[],r=0;r<t.length;r++){var a=t[r],o=!1;"string"!=typeof a&&("tag"===a.type&&a.content[0]&&"tag"===a.content[0].type?"</"===a.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(a.content[0].content[1])&&n.pop():"/>"!==a.content[a.content.length-1].content&&n.push({tagName:s(a.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof a)&&0<n.length&&0===n[n.length-1].openedBraces&&(o=s(a),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(o+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(o=s(t[r-1])+o,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",o,null,o)),a.content&&"string"!=typeof a.content&&i(a.content)}}a=o(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||i(e.tokens)}))}(N),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(N),N.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},N.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=N.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(N),N.languages.c=N.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),N.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),N.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},N.languages.c.string],char:N.languages.c.char,comment:N.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:N.languages.c}}}}),N.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete N.languages.c.boolean,N.languages.objectivec=N.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete N.languages.objectivec["class-name"],N.languages.objc=N.languages.objectivec,N.languages.reason=N.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),N.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete N.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(N),N.languages.go=N.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),N.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete N.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(N),N.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},N.languages.python["string-interpolation"].inside.interpolation.inside.rest=N.languages.python,N.languages.py=N.languages.python;((e,t)=>{for(var n in t)f(e,n,{get:t[n],enumerable:!0})})({},{dracula:()=>T,duotoneDark:()=>L,duotoneLight:()=>P,github:()=>A,jettwaveDark:()=>H,jettwaveLight:()=>Q,nightOwl:()=>O,nightOwlLight:()=>R,oceanicNext:()=>z,okaidia:()=>F,oneDark:()=>Z,oneLight:()=>V,palenight:()=>D,shadesOfPurple:()=>M,synthwave84:()=>B,ultramin:()=>$,vsDark:()=>q,vsLight:()=>U});var T={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},L={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},P={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},A={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},O={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},R={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},I="#c5a5c5",j="#8dc891",z={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:I}},{types:["attr-value"],style:{color:j}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:j}},{types:["punctuation"],style:{color:j}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:I}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},F={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},D={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},M={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},B={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},$={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},q={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},U={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},H={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Q={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Z={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},V={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},W=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:a}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=S(S({},e[t]),a);e[t]=n})),e}),{});return r.root=n,r.plain=E(S({},n),{backgroundColor:void 0}),r},G=/\r\n|\r|\n/,Y=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},K=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},X=e=>{const t=[[]],n=[e],r=[0],a=[e.length];let o=0,i=0,s=[];const l=[s];for(;i>-1;){for(;(o=r[i]++)<a[i];){let e,c=t[i];const u=n[i][o];if("string"==typeof u?(c=i>0?c:["plain"],e=u):(c=K(c,u.type),u.alias&&(c=K(c,u.alias)),e=u.content),"string"!=typeof e){i++,t.push(c),n.push(e),r.push(0),a.push(e.length);continue}const d=e.split(G),p=d.length;s.push({types:c,content:d[0]});for(let t=1;t<p;t++)Y(s),l.push(s=[]),s.push({types:c,content:d[t]})}i--,t.pop(),n.pop(),r.pop(),a.pop()}return Y(s),l},J=({children:e,language:t,code:n,theme:r,prism:a})=>{const o=t.toLowerCase(),i=((e,t)=>{const[n,r]=(0,u.useState)(W(t,e)),a=(0,u.useRef)(),o=(0,u.useRef)();return(0,u.useEffect)((()=>{t===a.current&&e===o.current||(a.current=t,o.current=e,r(W(t,e)))}),[e,t]),n})(o,r),s=(e=>(0,u.useCallback)((t=>{var n=t,{className:r,style:a,line:o}=n,i=C(n,["className","style","line"]);const s=E(S({},i),{className:(0,d.Z)("token-line",r)});return"object"==typeof e&&"plain"in e&&(s.style=e.plain),"object"==typeof a&&(s.style=S(S({},s.style||{}),a)),s}),[e]))(i),l=(e=>{const t=(0,u.useCallback)((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return(0,u.useCallback)((e=>{var n=e,{token:r,className:a,style:o}=n,i=C(n,["token","className","style"]);const s=E(S({},i),{className:(0,d.Z)("token",...r.types,a),children:r.content,style:t(r)});return null!=o&&(s.style=S(S({},s.style||{}),o)),s}),[t])})(i),c=(({prism:e,code:t,grammar:n,language:r})=>{const a=(0,u.useRef)(e);return(0,u.useMemo)((()=>{if(null==n)return X([t]);const e={code:t,grammar:n,language:r,tokens:[]};return a.current.hooks.run("before-tokenize",e),e.tokens=a.current.tokenize(t,n),a.current.hooks.run("after-tokenize",e),X(e.tokens)}),[t,n,r])})({prism:a,language:o,code:n,grammar:a.languages[o]});return e({tokens:c,className:`prism-code language-${o}`,style:null!=i?i.root:{},getLineProps:s,getTokenProps:l})},ee=e=>(0,u.createElement)(J,E(S({},e),{prism:e.prism||N,theme:e.theme||q,code:e.code,language:e.language}))},8776:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=!0,a="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(a);var n="function"==typeof t?t():t,o=n?"".concat(a,": ").concat(n):a;throw new Error(o)}}},7529:e=>{"use strict";e.exports=JSON.parse('{"theme.AnnouncementBar.closeButtonAriaLabel":"\u5173\u95ed","theme.BackToTopButton.buttonAriaLabel":"\u56de\u5230\u9876\u90e8","theme.CodeBlock.copied":"\u590d\u5236\u6210\u529f","theme.CodeBlock.copy":"\u590d\u5236","theme.CodeBlock.copyButtonAriaLabel":"\u590d\u5236\u4ee3\u7801\u5230\u526a\u8d34\u677f","theme.CodeBlock.wordWrapToggle":"\u5207\u6362\u81ea\u52a8\u6362\u884c","theme.DocSidebarItem.collapseCategoryAriaLabel":"\u6298\u53e0\u4fa7\u8fb9\u680f\u5206\u7c7b \'{label}\'","theme.DocSidebarItem.expandCategoryAriaLabel":"\u5c55\u5f00\u4fa7\u8fb9\u680f\u5206\u7c7b \'{label}\'","theme.ErrorPageContent.title":"\u9875\u9762\u5df2\u5d29\u6e83\u3002","theme.ErrorPageContent.tryAgain":"\u91cd\u8bd5","theme.NavBar.navAriaLabel":"\u4e3b\u5bfc\u822a","theme.NotFound.p1":"\u6211\u4eec\u627e\u4e0d\u5230\u60a8\u8981\u627e\u7684\u9875\u9762\u3002","theme.NotFound.p2":"\u8bf7\u8054\u7cfb\u539f\u59cb\u94fe\u63a5\u6765\u6e90\u7f51\u7ad9\u7684\u6240\u6709\u8005\uff0c\u5e76\u544a\u77e5\u4ed6\u4eec\u94fe\u63a5\u5df2\u635f\u574f\u3002","theme.NotFound.title":"\u627e\u4e0d\u5230\u9875\u9762","theme.TOCCollapsible.toggleButtonLabel":"\u672c\u9875\u603b\u89c8","theme.admonition.caution":"\u8b66\u544a","theme.admonition.danger":"\u5371\u9669","theme.admonition.info":"\u4fe1\u606f","theme.admonition.note":"\u5907\u6ce8","theme.admonition.tip":"\u63d0\u793a","theme.admonition.warning":"\u6ce8\u610f","theme.blog.archive.description":"\u5386\u53f2\u535a\u6587","theme.blog.archive.title":"\u5386\u53f2\u535a\u6587","theme.blog.paginator.navAriaLabel":"\u535a\u6587\u5217\u8868\u5206\u9875\u5bfc\u822a","theme.blog.paginator.newerEntries":"\u8f83\u65b0\u7684\u535a\u6587","theme.blog.paginator.olderEntries":"\u8f83\u65e7\u7684\u535a\u6587","theme.blog.post.paginator.navAriaLabel":"\u535a\u6587\u5206\u9875\u5bfc\u822a","theme.blog.post.paginator.newerPost":"\u8f83\u65b0\u4e00\u7bc7","theme.blog.post.paginator.olderPost":"\u8f83\u65e7\u4e00\u7bc7","theme.blog.post.plurals":"{count} \u7bc7\u535a\u6587","theme.blog.post.readMore":"\u9605\u8bfb\u66f4\u591a","theme.blog.post.readMoreLabel":"\u9605\u8bfb {title} \u7684\u5168\u6587","theme.blog.post.readingTime.plurals":"\u9605\u8bfb\u9700 {readingTime} \u5206\u949f","theme.blog.sidebar.navAriaLabel":"\u6700\u8fd1\u535a\u6587\u5bfc\u822a","theme.blog.tagTitle":"{nPosts} \u542b\u6709\u6807\u7b7e\u300c{tagName}\u300d","theme.colorToggle.ariaLabel":"\u5207\u6362\u6d45\u8272/\u6697\u9ed1\u6a21\u5f0f\uff08\u5f53\u524d\u4e3a{mode}\uff09","theme.colorToggle.ariaLabel.mode.dark":"\u6697\u9ed1\u6a21\u5f0f","theme.colorToggle.ariaLabel.mode.light":"\u6d45\u8272\u6a21\u5f0f","theme.common.editThisPage":"\u7f16\u8f91\u6b64\u9875","theme.common.headingLinkTitle":"{heading}\u7684\u76f4\u63a5\u94fe\u63a5","theme.common.skipToMainContent":"\u8df3\u5230\u4e3b\u8981\u5185\u5bb9","theme.docs.DocCard.categoryDescription":"{count} \u4e2a\u9879\u76ee","theme.docs.breadcrumbs.home":"\u4e3b\u9875\u9762","theme.docs.breadcrumbs.navAriaLabel":"\u9875\u9762\u8def\u5f84","theme.docs.paginator.navAriaLabel":"\u6587\u4ef6\u9009\u9879\u5361","theme.docs.paginator.next":"\u4e0b\u4e00\u9875","theme.docs.paginator.previous":"\u4e0a\u4e00\u9875","theme.docs.sidebar.closeSidebarButtonAriaLabel":"\u5173\u95ed\u5bfc\u822a\u680f","theme.docs.sidebar.collapseButtonAriaLabel":"\u6536\u8d77\u4fa7\u8fb9\u680f","theme.docs.sidebar.collapseButtonTitle":"\u6536\u8d77\u4fa7\u8fb9\u680f","theme.docs.sidebar.expandButtonAriaLabel":"\u5c55\u5f00\u4fa7\u8fb9\u680f","theme.docs.sidebar.expandButtonTitle":"\u5c55\u5f00\u4fa7\u8fb9\u680f","theme.docs.sidebar.navAriaLabel":"\u6587\u6863\u4fa7\u8fb9\u680f","theme.docs.sidebar.toggleSidebarButtonAriaLabel":"\u5207\u6362\u5bfc\u822a\u680f","theme.docs.tagDocListPageTitle":"{nDocsTagged}\u300c{tagName}\u300d","theme.docs.tagDocListPageTitle.nDocsTagged":"{count} \u7bc7\u6587\u6863\u5e26\u6709\u6807\u7b7e","theme.docs.versionBadge.label":"\u7248\u672c\uff1a{versionLabel}","theme.docs.versions.latestVersionLinkLabel":"\u6700\u65b0\u7248\u672c","theme.docs.versions.latestVersionSuggestionLabel":"\u6700\u65b0\u7684\u6587\u6863\u8bf7\u53c2\u9605 {latestVersionLink} ({versionLabel})\u3002","theme.docs.versions.unmaintainedVersionLabel":"\u6b64\u4e3a {siteTitle} {versionLabel} \u7248\u7684\u6587\u6863\uff0c\u73b0\u5df2\u4e0d\u518d\u79ef\u6781\u7ef4\u62a4\u3002","theme.docs.versions.unreleasedVersionLabel":"\u6b64\u4e3a {siteTitle} {versionLabel} \u7248\u5c1a\u672a\u53d1\u884c\u7684\u6587\u6863\u3002","theme.lastUpdated.atDate":"\u4e8e {date} ","theme.lastUpdated.byUser":"\u7531 {user} ","theme.lastUpdated.lastUpdatedAtBy":"\u6700\u540e{byUser}{atDate}\u66f4\u65b0","theme.navbar.mobileLanguageDropdown.label":"\u9009\u62e9\u8bed\u8a00","theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel":"\u2190 \u56de\u5230\u4e3b\u83dc\u5355","theme.navbar.mobileVersionsDropdown.label":"\u9009\u62e9\u7248\u672c","theme.tags.tagsListLabel":"\u6807\u7b7e\uff1a","theme.tags.tagsPageLink":"\u67e5\u770b\u6240\u6709\u6807\u7b7e","theme.tags.tagsPageTitle":"\u6807\u7b7e","theme.unlistedContent.message":"\u6b64\u9875\u9762\u672a\u5217\u51fa\u3002\u641c\u7d22\u5f15\u64ce\u4e0d\u4f1a\u5bf9\u5176\u7d22\u5f15\uff0c\u53ea\u6709\u62e5\u6709\u76f4\u63a5\u94fe\u63a5\u7684\u7528\u6237\u624d\u80fd\u8bbf\u95ee\u3002","theme.unlistedContent.title":"\u672a\u5217\u51fa\u9875","theme.SearchBar.label":"\u641c\u7d22","theme.SearchBar.seeAll":"\u67e5\u770b\u5168\u90e8\u7ed3\u679c","theme.SearchBar.noResultsText":"\u6ca1\u6709\u627e\u5230\u4efb\u4f55\u6587\u6863","theme.SearchPage.existingResultsTitle":"\u201c{query}\u201d \u7684\u641c\u7d22\u7ed3\u679c","theme.SearchPage.emptyResultsTitle":"\u641c\u7d22\u6587\u6863","theme.SearchPage.documentsFound.plurals":"\u5171\u627e\u5230 {count} \u7bc7\u6587\u6863","theme.SearchPage.noResultsText":"\u6ca1\u6709\u627e\u5230\u4efb\u4f55\u6587\u6863"}')},6887:e=>{"use strict";e.exports=JSON.parse('{"/node-mysql2/zh-CN/search-997":{"__comp":"1a4e3797","__context":{"plugin":"ac5f2e4a"}},"/node-mysql2/zh-CN/docs-afe":{"__comp":"5e95c892","__context":{"plugin":"c84c75a7"}},"/node-mysql2/zh-CN/docs-201":{"__comp":"a7bd4aaa","version":"935f2afb"},"/node-mysql2/zh-CN/docs-a0d":{"__comp":"a94703ab"},"/node-mysql2/zh-CN/docs-e4f":{"__comp":"17896441","content":"9df47158"},"/node-mysql2/zh-CN/docs/acknowledgements-4fc":{"__comp":"17896441","content":"73aa2d44"},"/node-mysql2/zh-CN/docs/api-and-configurations-944":{"__comp":"17896441","content":"5483291d"},"/node-mysql2/zh-CN/docs/category/procedure-call-packet-5a8":{"__comp":"14eb3368","categoryGeneratedIndex":"08df0c0c"},"/node-mysql2/zh-CN/docs/category/queries-266":{"__comp":"14eb3368","categoryGeneratedIndex":"a0fa2d29"},"/node-mysql2/zh-CN/docs/category/row-data-packet-cb8":{"__comp":"14eb3368","categoryGeneratedIndex":"95bd4756"},"/node-mysql2/zh-CN/docs/category/ssl-873":{"__comp":"14eb3368","categoryGeneratedIndex":"0397a6cc"},"/node-mysql2/zh-CN/docs/category/typescript-ecb":{"__comp":"14eb3368","categoryGeneratedIndex":"27e19f0f"},"/node-mysql2/zh-CN/docs/contributing-35d":{"__comp":"17896441","content":"d4b2f69a"},"/node-mysql2/zh-CN/docs/contributing/website-af0":{"__comp":"17896441","content":"f8d74a12"},"/node-mysql2/zh-CN/docs/documentation-722":{"__comp":"17896441","content":"9e767aa9"},"/node-mysql2/zh-CN/docs/documentation/authentication-switch-029":{"__comp":"17896441","content":"3945bec1"},"/node-mysql2/zh-CN/docs/documentation/extras-fb1":{"__comp":"17896441","content":"ed06a4b6"},"/node-mysql2/zh-CN/docs/documentation/mysql-server-cd0":{"__comp":"17896441","content":"57495183"},"/node-mysql2/zh-CN/docs/documentation/prepared-statements-4f2":{"__comp":"17896441","content":"f54f1246"},"/node-mysql2/zh-CN/docs/documentation/promise-wrapper-996":{"__comp":"17896441","content":"546b1c5f"},"/node-mysql2/zh-CN/docs/documentation/typescript-examples-d0b":{"__comp":"17896441","content":"2bc14e22"},"/node-mysql2/zh-CN/docs/examples-0c7":{"__comp":"17896441","content":"76dfa484"},"/node-mysql2/zh-CN/docs/examples/binlog-watcher-d38":{"__comp":"17896441","content":"3be0564c"},"/node-mysql2/zh-CN/docs/examples/connect-over-socks-a1d":{"__comp":"17896441","content":"10c30137"},"/node-mysql2/zh-CN/docs/examples/execute-02a":{"__comp":"17896441","content":"3bea1af6"},"/node-mysql2/zh-CN/docs/examples/mysqlproxy-91f":{"__comp":"17896441","content":"93f3cbcf"},"/node-mysql2/zh-CN/docs/examples/pass-sha-403":{"__comp":"17896441","content":"d2002d6f"},"/node-mysql2/zh-CN/docs/examples/pool-test-8e5":{"__comp":"17896441","content":"43758d02"},"/node-mysql2/zh-CN/docs/examples/prepare-3b0":{"__comp":"17896441","content":"e9842ab8"},"/node-mysql2/zh-CN/docs/examples/promise-co-await-757":{"__comp":"17896441","content":"4e547710"},"/node-mysql2/zh-CN/docs/examples/queries/select-9b9":{"__comp":"17896441","content":"54dbd6f3"},"/node-mysql2/zh-CN/docs/examples/server-031":{"__comp":"17896441","content":"5748a325"},"/node-mysql2/zh-CN/docs/examples/ssl/rds-ssl-7e9":{"__comp":"17896441","content":"dcf552eb"},"/node-mysql2/zh-CN/docs/examples/ssl/select-over-ssl-251":{"__comp":"17896441","content":"75b440d9"},"/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-class-d01":{"__comp":"17896441","content":"f43af5ae"},"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/procedure-call-packet-bec":{"__comp":"17896441","content":"e3a2ad82"},"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-array-c9d":{"__comp":"17896441","content":"bc31cbdb"},"/node-mysql2/zh-CN/docs/examples/typescript/row-data/multi-statements-f94":{"__comp":"17896441","content":"13833ed5"},"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array-523":{"__comp":"17896441","content":"5814edec"},"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array-multi-statements-87e":{"__comp":"17896441","content":"1cee01a7"},"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-data-packet-1b0":{"__comp":"17896441","content":"1f08bd40"},"/node-mysql2/zh-CN/docs/faq-bcf":{"__comp":"17896441","content":"4e92b6b6"},"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors-c21":{"__comp":"17896441","content":"cdbda324"},"/node-mysql2/zh-CN/docs/history-and-why-mysq2-ef2":{"__comp":"17896441","content":"b5fe66e0"},"/node-mysql2/zh-CN/docs/stability-badges-bb8":{"__comp":"17896441","content":"db044f71"},"/node-mysql2/zh-CN/-af9":{"__comp":"1df93b7f","__context":{"plugin":"fb880757"},"config":"5e9f5e1a"}}')}},e=>{e.O(0,[532],(()=>{return t=7221,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/zh-CN/assets/js/main.c75198e5.js b/zh-CN/assets/js/main.c75198e5.js new file mode 100644 index 0000000000..32b1cc207e --- /dev/null +++ b/zh-CN/assets/js/main.c75198e5.js @@ -0,0 +1,2 @@ +/*! For license information please see main.c75198e5.js.LICENSE.txt */ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[179],{1728:(e,t,n)=>{"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}n.d(t,{Z:()=>a});const a=function(){for(var e,t,n=0,a="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}},723:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});n(7294);var r=n(8356),a=n.n(r),o=n(6887);const s={"07d6bcd5":[()=>n.e(3577).then(n.t.bind(n,2944,19)),"~docs/default/tag-node-mysql-2-zh-cn-docs-tags-create-pool-5d2.json",2944],"0e27d5d9":[()=>Promise.all([n.e(532),n.e(5072)]).then(n.bind(n,9247)),"@site/docs/examples/typescript/row-data/00-index.mdx",9247],"11e11f3b":[()=>Promise.all([n.e(532),n.e(5020),n.e(8625)]).then(n.bind(n,3463)),"@site/docs/examples/connections/create-connection.mdx",3463],"13833ed5":[()=>Promise.all([n.e(532),n.e(2496)]).then(n.bind(n,2215)),"@site/docs/examples/typescript/row-data/02-multi-statements.mdx",2215],"1568425c":[()=>n.e(9458).then(n.bind(n,904)),"@site/docs/examples/queries/simple-queries/index.mdx",904],17896441:[()=>Promise.all([n.e(532),n.e(5020),n.e(7918)]).then(n.bind(n,4758)),"@theme/DocItem",4758],"1a4e3797":[()=>Promise.all([n.e(532),n.e(7920)]).then(n.bind(n,1473)),"@theme/SearchPage",1473],"1cee01a7":[()=>Promise.all([n.e(532),n.e(384)]).then(n.bind(n,5235)),"@site/docs/examples/typescript/row-data/03-row-as-array-multi-statements.mdx",5235],"1df93b7f":[()=>n.e(3237).then(n.bind(n,9754)),"@site/src/pages/index.tsx",9754],22161331:[()=>Promise.all([n.e(532),n.e(556)]).then(n.bind(n,7165)),"@site/docs/examples/tests/mysql-proxy.mdx",7165],"2bc14e22":[()=>Promise.all([n.e(532),n.e(2839)]).then(n.bind(n,4760)),"@site/docs/documentation/typescript-examples.mdx",4760],"2bfbae62":[()=>n.e(9292).then(n.t.bind(n,8368,19)),"~docs/default/tag-node-mysql-2-zh-cn-docs-tags-uri-960.json",8368],"3720c009":[()=>Promise.all([n.e(532),n.e(3751)]).then(n.bind(n,9861)),"@theme/DocTagsListPage",9861],"3945bec1":[()=>n.e(8882).then(n.bind(n,1889)),"@site/docs/documentation/authentication-switch.mdx",1889],"3be0564c":[()=>Promise.all([n.e(532),n.e(9594)]).then(n.bind(n,3034)),"@site/docs/examples/binlog-watcher.mdx",3034],"3e73bf99":[()=>n.e(297).then(n.t.bind(n,7270,19)),"~docs/default/tag-node-mysql-2-zh-cn-docs-tags-placeholders-c4f.json",7270],"4b983390":[()=>n.e(2019).then(n.t.bind(n,7899,19)),"~docs/default/tag-node-mysql-2-zh-cn-docs-tags-rds-427.json",7899],"4e92b6b6":[()=>n.e(3586).then(n.bind(n,3769)),"@site/docs/faq/00-index.mdx",3769],"546b1c5f":[()=>n.e(8263).then(n.bind(n,403)),"@site/docs/documentation/promise-wrapper.mdx",403],54768732:[()=>Promise.all([n.e(532),n.e(5020),n.e(576)]).then(n.bind(n,3990)),"@site/docs/examples/queries/simple-queries/update.mdx",3990],"5483291d":[()=>n.e(8648).then(n.bind(n,5707)),"@site/i18n/zh-CN/docusaurus-plugin-content-docs/current/api-and-configurations.mdx",5707],"54eaaaae":[()=>Promise.all([n.e(532),n.e(5020),n.e(1420)]).then(n.bind(n,1)),"@site/docs/examples/connections/create-pool.mdx",1],"55960ee5":[()=>n.e(4121).then(n.t.bind(n,8070,19)),"~docs/default/tags-list-current-prop-15a.json",8070],57495183:[()=>n.e(5003).then(n.bind(n,4304)),"@site/docs/documentation/mysql-server.mdx",4304],"5814edec":[()=>Promise.all([n.e(532),n.e(3561)]).then(n.bind(n,3788)),"@site/docs/examples/typescript/row-data/01-row-as-array.mdx",3788],"59e52bc2":[()=>Promise.all([n.e(532),n.e(5020),n.e(641)]).then(n.bind(n,8602)),"@site/docs/examples/queries/simple-queries/delete.mdx",8602],"5e95c892":[()=>n.e(9661).then(n.bind(n,1892)),"@theme/DocsRoot",1892],"5e9f5e1a":[()=>Promise.resolve().then(n.bind(n,6809)),"@generated/docusaurus.config",6809],67592901:[()=>n.e(4723).then(n.t.bind(n,4741,19)),"~docs/default/tag-node-mysql-2-zh-cn-docs-tags-create-connection-248.json",4741],"73aa2d44":[()=>n.e(378).then(n.bind(n,5879)),"@site/i18n/zh-CN/docusaurus-plugin-content-docs/current/acknowledgements.mdx",5879],"7647f2e2":[()=>n.e(1578).then(n.t.bind(n,1762,19)),"~docs/default/tag-node-mysql-2-zh-cn-docs-tags-socks-b1a.json",1762],"76dfa484":[()=>Promise.all([n.e(532),n.e(3433)]).then(n.bind(n,7345)),"@site/docs/examples/00-index.mdx",7345],"7ccab252":[()=>n.e(8054).then(n.bind(n,3467)),"@site/docs/examples/queries/prepared-statements/index.mdx",3467],"7fbd6b3a":[()=>Promise.all([n.e(532),n.e(5020),n.e(9964)]).then(n.bind(n,8937)),"@site/docs/examples/queries/prepared-statements/select.mdx",8937],"8b8ccc10":[()=>Promise.all([n.e(532),n.e(5020),n.e(8534)]).then(n.bind(n,3961)),"@site/docs/examples/queries/prepared-statements/delete.mdx",3961],"8fcb4d7f":[()=>Promise.all([n.e(532),n.e(5020),n.e(81)]).then(n.bind(n,3050)),"@site/docs/examples/queries/simple-queries/select.mdx",3050],"935f2afb":[()=>n.e(53).then(n.t.bind(n,1109,19)),"~docs/default/version-current-metadata-prop-751.json",1109],"9570cbb2":[()=>n.e(1782).then(n.t.bind(n,8549,19)),"~docs/default/tag-node-mysql-2-zh-cn-docs-tags-parameters-ae8.json",8549],"9d6e5507":[()=>n.e(5762).then(n.t.bind(n,2304,19)),"~docs/default/tag-node-mysql-2-zh-cn-docs-tags-execute-8c3.json",2304],"9df47158":[()=>Promise.all([n.e(532),n.e(9010)]).then(n.bind(n,9964)),"@site/i18n/zh-CN/docusaurus-plugin-content-docs/current/index.mdx",9964],"9e767aa9":[()=>n.e(8806).then(n.bind(n,7372)),"@site/docs/documentation/00-index.mdx",7372],a55c4658:[()=>Promise.all([n.e(532),n.e(5020),n.e(452)]).then(n.bind(n,9547)),"@site/docs/examples/queries/simple-queries/insert.mdx",9547],a7bd4aaa:[()=>n.e(8518).then(n.bind(n,8564)),"@theme/DocVersionRoot",8564],a89f5446:[()=>n.e(6641).then(n.t.bind(n,1158,19)),"~docs/default/tag-node-mysql-2-zh-cn-docs-tags-create-pool-cluster-d44.json",1158],a94703ab:[()=>Promise.all([n.e(532),n.e(4368)]).then(n.bind(n,2674)),"@theme/DocRoot",2674],ac5f2e4a:[()=>n.e(9380).then(n.t.bind(n,2776,19)),"/home/runner/work/node-mysql2/node-mysql2/website/.docusaurus/@easyops-cn/docusaurus-search-local/default/plugin-route-context-module-100.json",2776],ad7b17cf:[()=>Promise.all([n.e(532),n.e(2030)]).then(n.bind(n,923)),"@site/docs/examples/promise-wrapper/co-await.mdx",923],b07748b5:[()=>Promise.all([n.e(532),n.e(5020),n.e(4403)]).then(n.bind(n,214)),"@site/docs/examples/connections/createPoolCluster.mdx",214],b5168752:[()=>n.e(7615).then(n.t.bind(n,2951,19)),"~docs/default/tag-node-mysql-2-zh-cn-docs-tags-sha-1-2b4.json",2951],b5fe66e0:[()=>n.e(3087).then(n.bind(n,8810)),"@site/i18n/zh-CN/docusaurus-plugin-content-docs/current/history-and-why-mysq2.mdx",8810],b80d201b:[()=>Promise.all([n.e(532),n.e(5020),n.e(6061)]).then(n.bind(n,1384)),"@site/docs/examples/queries/prepared-statements/update.mdx",1384],bc31cbdb:[()=>Promise.all([n.e(532),n.e(1437)]).then(n.bind(n,861)),"@site/docs/examples/typescript/procedure-call/01-row-as-array.mdx",861],bd3157e1:[()=>n.e(8241).then(n.t.bind(n,1135,19)),"~docs/default/tag-node-mysql-2-zh-cn-docs-tags-ssl-923.json",1135],c024e603:[()=>n.e(6463).then(n.t.bind(n,9543,19)),"~docs/default/tag-node-mysql-2-zh-cn-docs-tags-prepared-statements-f08.json",9543],c84c75a7:[()=>n.e(1233).then(n.t.bind(n,9822,19)),"/home/runner/work/node-mysql2/node-mysql2/website/.docusaurus/docusaurus-plugin-content-docs/default/plugin-route-context-module-100.json",9822],cdbda324:[()=>Promise.all([n.e(532),n.e(4116)]).then(n.bind(n,1851)),"@site/docs/faq/how-to-handle-errors.mdx",1851],cffacdf0:[()=>Promise.all([n.e(532),n.e(8406)]).then(n.bind(n,5721)),"@site/docs/examples/tests/server.mdx",5721],d4b2f69a:[()=>n.e(6051).then(n.bind(n,9776)),"@site/i18n/zh-CN/docusaurus-plugin-content-docs/current/contributing/00-index.mdx",9776],db044f71:[()=>n.e(6159).then(n.bind(n,8009)),"@site/docs/stability-badges.mdx",8009],df04d3c8:[()=>Promise.all([n.e(532),n.e(9140)]).then(n.bind(n,107)),"@site/docs/examples/typescript/procedure-call/00-index.mdx",107],df203c0f:[()=>Promise.all([n.e(532),n.e(9924)]).then(n.bind(n,491)),"@theme/DocTagDocListPage",491],e19cd79a:[()=>Promise.all([n.e(532),n.e(5020),n.e(1429)]).then(n.bind(n,2998)),"@site/docs/examples/queries/prepared-statements/insert.mdx",2998],e32cf8b2:[()=>n.e(8474).then(n.t.bind(n,151,19)),"~docs/default/tag-node-mysql-2-zh-cn-docs-tags-query-0ce.json",151],ed06a4b6:[()=>n.e(2991).then(n.bind(n,1639)),"@site/docs/documentation/extras.mdx",1639],f43af5ae:[()=>Promise.all([n.e(532),n.e(5909)]).then(n.bind(n,104)),"@site/docs/examples/typescript/basic-custom-class.mdx",104],f54f1246:[()=>n.e(630).then(n.bind(n,4990)),"@site/docs/documentation/prepared-statements.mdx",4990],f76f5ab7:[()=>Promise.all([n.e(532),n.e(3776)]).then(n.bind(n,7153)),"@site/docs/examples/tests/pool.mdx",7153],f8d74a12:[()=>Promise.all([n.e(532),n.e(5020),n.e(5807)]).then(n.bind(n,7330)),"@site/docs/contributing/website.mdx",7330],fb880757:[()=>n.e(1465).then(n.t.bind(n,5745,19)),"/home/runner/work/node-mysql2/node-mysql2/website/.docusaurus/docusaurus-plugin-content-pages/default/plugin-route-context-module-100.json",5745]};var i=n(5893);function l(e){let{error:t,retry:n,pastDelay:r}=e;return t?(0,i.jsxs)("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"},children:[(0,i.jsx)("p",{children:String(t)}),(0,i.jsx)("div",{children:(0,i.jsx)("button",{type:"button",onClick:n,children:"Retry"})})]}):r?(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:(0,i.jsx)("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb",children:(0,i.jsxs)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2",children:[(0,i.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,i.jsx)("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,i.jsx)("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,i.jsx)("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,i.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,i.jsx)("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,i.jsx)("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,i.jsx)("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,i.jsx)("circle",{cx:"22",cy:"22",r:"8",children:(0,i.jsx)("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})})]})})}):null}var c=n(9670),u=n(226);function d(e,t){if("*"===e)return a()({loading:l,loader:()=>n.e(1772).then(n.bind(n,1772)),modules:["@theme/NotFound"],webpack:()=>[1772],render(e,t){const n=e.default;return(0,i.jsx)(u.z,{value:{plugin:{name:"native",id:"default"}},children:(0,i.jsx)(n,{...t})})}});const r=o[`${e}-${t}`],d={},p=[],f=[],h=(0,c.Z)(r);return Object.entries(h).forEach((e=>{let[t,n]=e;const r=s[n];r&&(d[t]=r[0],p.push(r[1]),f.push(r[2]))})),a().Map({loading:l,loader:d,modules:p,webpack:()=>f,render(t,n){const a=JSON.parse(JSON.stringify(r));Object.entries(t).forEach((t=>{let[n,r]=t;const o=r.default;if(!o)throw new Error(`The page component at ${e} doesn't have a default export. This makes it impossible to render anything. Consider default-exporting a React component.`);"object"!=typeof o&&"function"!=typeof o||Object.keys(r).filter((e=>"default"!==e)).forEach((e=>{o[e]=r[e]}));let s=a;const i=n.split(".");i.slice(0,-1).forEach((e=>{s=s[e]})),s[i[i.length-1]]=o}));const o=a.__comp;delete a.__comp;const s=a.__context;return delete a.__context,(0,i.jsx)(u.z,{value:s,children:(0,i.jsx)(o,{...a,...n})})}})}const p=[{path:"/node-mysql2/zh-CN/search",component:d("/node-mysql2/zh-CN/search","997"),exact:!0},{path:"/node-mysql2/zh-CN/docs",component:d("/node-mysql2/zh-CN/docs","20e"),routes:[{path:"/node-mysql2/zh-CN/docs",component:d("/node-mysql2/zh-CN/docs","3d7"),routes:[{path:"/node-mysql2/zh-CN/docs/tags",component:d("/node-mysql2/zh-CN/docs/tags","8db"),exact:!0},{path:"/node-mysql2/zh-CN/docs/tags/create-connection",component:d("/node-mysql2/zh-CN/docs/tags/create-connection","c46"),exact:!0},{path:"/node-mysql2/zh-CN/docs/tags/create-pool",component:d("/node-mysql2/zh-CN/docs/tags/create-pool","b13"),exact:!0},{path:"/node-mysql2/zh-CN/docs/tags/create-pool-cluster",component:d("/node-mysql2/zh-CN/docs/tags/create-pool-cluster","adc"),exact:!0},{path:"/node-mysql2/zh-CN/docs/tags/execute",component:d("/node-mysql2/zh-CN/docs/tags/execute","296"),exact:!0},{path:"/node-mysql2/zh-CN/docs/tags/parameters",component:d("/node-mysql2/zh-CN/docs/tags/parameters","c62"),exact:!0},{path:"/node-mysql2/zh-CN/docs/tags/placeholders",component:d("/node-mysql2/zh-CN/docs/tags/placeholders","7b1"),exact:!0},{path:"/node-mysql2/zh-CN/docs/tags/prepared-statements",component:d("/node-mysql2/zh-CN/docs/tags/prepared-statements","2e0"),exact:!0},{path:"/node-mysql2/zh-CN/docs/tags/query",component:d("/node-mysql2/zh-CN/docs/tags/query","297"),exact:!0},{path:"/node-mysql2/zh-CN/docs/tags/rds",component:d("/node-mysql2/zh-CN/docs/tags/rds","41a"),exact:!0},{path:"/node-mysql2/zh-CN/docs/tags/sha-1",component:d("/node-mysql2/zh-CN/docs/tags/sha-1","8c6"),exact:!0},{path:"/node-mysql2/zh-CN/docs/tags/socks",component:d("/node-mysql2/zh-CN/docs/tags/socks","536"),exact:!0},{path:"/node-mysql2/zh-CN/docs/tags/ssl",component:d("/node-mysql2/zh-CN/docs/tags/ssl","2ad"),exact:!0},{path:"/node-mysql2/zh-CN/docs/tags/uri",component:d("/node-mysql2/zh-CN/docs/tags/uri","3ad"),exact:!0},{path:"/node-mysql2/zh-CN/docs",component:d("/node-mysql2/zh-CN/docs","3be"),routes:[{path:"/node-mysql2/zh-CN/docs",component:d("/node-mysql2/zh-CN/docs","e4f"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/acknowledgements",component:d("/node-mysql2/zh-CN/docs/acknowledgements","4fc"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/api-and-configurations",component:d("/node-mysql2/zh-CN/docs/api-and-configurations","944"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/contributing",component:d("/node-mysql2/zh-CN/docs/contributing","35d"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/contributing/website",component:d("/node-mysql2/zh-CN/docs/contributing/website","af0"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/documentation",component:d("/node-mysql2/zh-CN/docs/documentation","722"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/documentation/authentication-switch",component:d("/node-mysql2/zh-CN/docs/documentation/authentication-switch","029"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/documentation/extras",component:d("/node-mysql2/zh-CN/docs/documentation/extras","fb1"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/documentation/mysql-server",component:d("/node-mysql2/zh-CN/docs/documentation/mysql-server","cd0"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/documentation/prepared-statements",component:d("/node-mysql2/zh-CN/docs/documentation/prepared-statements","4f2"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/documentation/promise-wrapper",component:d("/node-mysql2/zh-CN/docs/documentation/promise-wrapper","996"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/documentation/typescript-examples",component:d("/node-mysql2/zh-CN/docs/documentation/typescript-examples","d0b"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/examples",component:d("/node-mysql2/zh-CN/docs/examples","0c7"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/binlog-watcher",component:d("/node-mysql2/zh-CN/docs/examples/binlog-watcher","d38"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/connections/create-connection",component:d("/node-mysql2/zh-CN/docs/examples/connections/create-connection","c2e"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/connections/create-pool",component:d("/node-mysql2/zh-CN/docs/examples/connections/create-pool","737"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster",component:d("/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster","763"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/promise-wrapper/co-await",component:d("/node-mysql2/zh-CN/docs/examples/promise-wrapper/co-await","ded"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements",component:d("/node-mysql2/zh-CN/docs/examples/queries/prepared-statements","10d"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/delete",component:d("/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/delete","996"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/insert",component:d("/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/insert","281"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/select",component:d("/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/select","152"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/update",component:d("/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/update","342"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries",component:d("/node-mysql2/zh-CN/docs/examples/queries/simple-queries","985"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/delete",component:d("/node-mysql2/zh-CN/docs/examples/queries/simple-queries/delete","ea9"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/insert",component:d("/node-mysql2/zh-CN/docs/examples/queries/simple-queries/insert","1d8"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/select",component:d("/node-mysql2/zh-CN/docs/examples/queries/simple-queries/select","2e6"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/update",component:d("/node-mysql2/zh-CN/docs/examples/queries/simple-queries/update","203"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/tests/mysql-proxy",component:d("/node-mysql2/zh-CN/docs/examples/tests/mysql-proxy","451"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/tests/pool",component:d("/node-mysql2/zh-CN/docs/examples/tests/pool","e89"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/tests/server",component:d("/node-mysql2/zh-CN/docs/examples/tests/server","8fd"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-class",component:d("/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-class","d01"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/index",component:d("/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/index","39b"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-array",component:d("/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-array","c9d"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/typescript/row-data/index",component:d("/node-mysql2/zh-CN/docs/examples/typescript/row-data/index","1f8"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/typescript/row-data/multi-statements",component:d("/node-mysql2/zh-CN/docs/examples/typescript/row-data/multi-statements","f94"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array",component:d("/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array","523"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array-multi-statements",component:d("/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array-multi-statements","87e"),exact:!0,sidebar:"examples"},{path:"/node-mysql2/zh-CN/docs/faq",component:d("/node-mysql2/zh-CN/docs/faq","bcf"),exact:!0,sidebar:"faq"},{path:"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors",component:d("/node-mysql2/zh-CN/docs/faq/how-to-handle-errors","c21"),exact:!0,sidebar:"faq"},{path:"/node-mysql2/zh-CN/docs/history-and-why-mysq2",component:d("/node-mysql2/zh-CN/docs/history-and-why-mysq2","ef2"),exact:!0,sidebar:"docs"},{path:"/node-mysql2/zh-CN/docs/stability-badges",component:d("/node-mysql2/zh-CN/docs/stability-badges","bb8"),exact:!0,sidebar:"docs"}]}]}]},{path:"/node-mysql2/zh-CN/",component:d("/node-mysql2/zh-CN/","af9"),exact:!0},{path:"*",component:d("*")}]},8934:(e,t,n)=>{"use strict";n.d(t,{_:()=>o,t:()=>s});var r=n(7294),a=n(5893);const o=r.createContext(!1);function s(e){let{children:t}=e;const[n,s]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{s(!0)}),[]),(0,a.jsx)(o.Provider,{value:n,children:t})}},7221:(e,t,n)=>{"use strict";var r=n(7294),a=n(745),o=n(3727),s=n(405),i=n(412);const l=[n(2497),n(3310),n(8320),n(3395)];var c=n(723),u=n(6550),d=n(8790),p=n(5893);function f(e){let{children:t}=e;return(0,p.jsx)(p.Fragment,{children:t})}var h=n(5742),m=n(2263),g=n(4996),y=n(6668),b=n(1944),v=n(4711),x=n(9727),w=n(3320),k=n(8780),S=n(197);function C(){const{i18n:{currentLocale:e,defaultLocale:t,localeConfigs:n}}=(0,m.Z)(),r=(0,v.l)(),a=n[e].htmlLang,o=e=>e.replace("-","_");return(0,p.jsxs)(h.Z,{children:[Object.entries(n).map((e=>{let[t,{htmlLang:n}]=e;return(0,p.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:n},t)})),(0,p.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:"x-default"}),(0,p.jsx)("meta",{property:"og:locale",content:o(a)}),Object.values(n).filter((e=>a!==e.htmlLang)).map((e=>(0,p.jsx)("meta",{property:"og:locale:alternate",content:o(e.htmlLang)},`meta-og-${e.htmlLang}`)))]})}function E(e){let{permalink:t}=e;const{siteConfig:{url:n}}=(0,m.Z)(),r=function(){const{siteConfig:{url:e,baseUrl:t,trailingSlash:n}}=(0,m.Z)(),{pathname:r}=(0,u.TH)();return e+(0,k.applyTrailingSlash)((0,g.Z)(r),{trailingSlash:n,baseUrl:t})}(),a=t?`${n}${t}`:r;return(0,p.jsxs)(h.Z,{children:[(0,p.jsx)("meta",{property:"og:url",content:a}),(0,p.jsx)("link",{rel:"canonical",href:a})]})}function _(){const{i18n:{currentLocale:e}}=(0,m.Z)(),{metadata:t,image:n}=(0,y.L)();return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(h.Z,{children:[(0,p.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,p.jsx)("body",{className:x.h})]}),n&&(0,p.jsx)(b.d,{image:n}),(0,p.jsx)(E,{}),(0,p.jsx)(C,{}),(0,p.jsx)(S.Z,{tag:w.HX,locale:e}),(0,p.jsx)(h.Z,{children:t.map(((e,t)=>(0,p.jsx)("meta",{...e},t)))})]})}const N=new Map;function T(e){if(N.has(e.pathname))return{...e,pathname:N.get(e.pathname)};if((0,d.f)(c.Z,e.pathname).some((e=>{let{route:t}=e;return!0===t.exact})))return N.set(e.pathname,e.pathname),e;const t=e.pathname.trim().replace(/(?:\/index)?\.html$/,"")||"/";return N.set(e.pathname,t),{...e,pathname:t}}var L=n(8934),P=n(8940),A=n(469);function O(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const a=l.map((t=>{const r=t.default?.[e]??t[e];return r?.(...n)}));return()=>a.forEach((e=>e?.()))}const j=function(e){let{children:t,location:n,previousLocation:r}=e;return(0,A.Z)((()=>{r!==n&&(!function(e){let{location:t,previousLocation:n}=e;if(!n)return;const r=t.pathname===n.pathname,a=t.hash===n.hash,o=t.search===n.search;if(r&&a&&!o)return;const{hash:s}=t;if(s){const e=decodeURIComponent(s.substring(1)),t=document.getElementById(e);t?.scrollIntoView()}else window.scrollTo(0,0)}({location:n,previousLocation:r}),O("onRouteDidUpdate",{previousLocation:r,location:n}))}),[r,n]),t};function R(e){const t=Array.from(new Set([e,decodeURI(e)])).map((e=>(0,d.f)(c.Z,e))).flat();return Promise.all(t.map((e=>e.route.component.preload?.())))}class I extends r.Component{previousLocation;routeUpdateCleanupCb;constructor(e){super(e),this.previousLocation=null,this.routeUpdateCleanupCb=i.Z.canUseDOM?O("onRouteUpdate",{previousLocation:null,location:this.props.location}):()=>{},this.state={nextRouteHasLoaded:!0}}shouldComponentUpdate(e,t){if(e.location===this.props.location)return t.nextRouteHasLoaded;const n=e.location;return this.previousLocation=this.props.location,this.setState({nextRouteHasLoaded:!1}),this.routeUpdateCleanupCb=O("onRouteUpdate",{previousLocation:this.previousLocation,location:n}),R(n.pathname).then((()=>{this.routeUpdateCleanupCb(),this.setState({nextRouteHasLoaded:!0})})).catch((e=>{console.warn(e),window.location.reload()})),!1}render(){const{children:e,location:t}=this.props;return(0,p.jsx)(j,{previousLocation:this.previousLocation,location:t,children:(0,p.jsx)(u.AW,{location:t,render:()=>e})})}}const z=I,F="__docusaurus-base-url-issue-banner-container",D="__docusaurus-base-url-issue-banner",M="__docusaurus-base-url-issue-banner-suggestion-container";function q(e){return`\ndocument.addEventListener('DOMContentLoaded', function maybeInsertBanner() {\n var shouldInsert = typeof window['docusaurus'] === 'undefined';\n shouldInsert && insertBanner();\n});\n\nfunction insertBanner() {\n var bannerContainer = document.createElement('div');\n bannerContainer.id = '${F}';\n var bannerHtml = ${JSON.stringify(function(e){return`\n<div id="${D}" style="border: thick solid red; background-color: rgb(255, 230, 179); margin: 20px; padding: 20px; font-size: 20px;">\n <p style="font-weight: bold; font-size: 30px;">Your Docusaurus site did not load properly.</p>\n <p>A very common reason is a wrong site <a href="https://docusaurus.io/docs/docusaurus.config.js/#baseUrl" style="font-weight: bold;">baseUrl configuration</a>.</p>\n <p>Current configured baseUrl = <span style="font-weight: bold; color: red;">${e}</span> ${"/"===e?" (default value)":""}</p>\n <p>We suggest trying baseUrl = <span id="${M}" style="font-weight: bold; color: green;"></span></p>\n</div>\n`}(e)).replace(/</g,"\\<")};\n bannerContainer.innerHTML = bannerHtml;\n document.body.prepend(bannerContainer);\n var suggestionContainer = document.getElementById('${M}');\n var actualHomePagePath = window.location.pathname;\n var suggestedBaseUrl = actualHomePagePath.substr(-1) === '/'\n ? actualHomePagePath\n : actualHomePagePath + '/';\n suggestionContainer.innerHTML = suggestedBaseUrl;\n}\n`}function B(){const{siteConfig:{baseUrl:e}}=(0,m.Z)();return(0,p.jsx)(p.Fragment,{children:!i.Z.canUseDOM&&(0,p.jsx)(h.Z,{children:(0,p.jsx)("script",{children:q(e)})})})}function $(){const{siteConfig:{baseUrl:e,baseUrlIssueBanner:t}}=(0,m.Z)(),{pathname:n}=(0,u.TH)();return t&&n===e?(0,p.jsx)(B,{}):null}function U(){const{siteConfig:{favicon:e,title:t,noIndex:n},i18n:{currentLocale:r,localeConfigs:a}}=(0,m.Z)(),o=(0,g.Z)(e),{htmlLang:s,direction:i}=a[r];return(0,p.jsxs)(h.Z,{children:[(0,p.jsx)("html",{lang:s,dir:i}),(0,p.jsx)("title",{children:t}),(0,p.jsx)("meta",{property:"og:title",content:t}),(0,p.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),n&&(0,p.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),e&&(0,p.jsx)("link",{rel:"icon",href:o})]})}var H=n(4763),Q=n(2389);function Z(){const e=(0,Q.Z)();return(0,p.jsx)(h.Z,{children:(0,p.jsx)("html",{"data-has-hydrated":e})})}function V(){const e=(0,d.H)(c.Z),t=(0,u.TH)();return(0,p.jsx)(H.Z,{children:(0,p.jsx)(P.M,{children:(0,p.jsxs)(L.t,{children:[(0,p.jsxs)(f,{children:[(0,p.jsx)(U,{}),(0,p.jsx)(_,{}),(0,p.jsx)($,{}),(0,p.jsx)(z,{location:T(t),children:e})]}),(0,p.jsx)(Z,{})]})})})}var W=n(6887);const G=function(e){try{return document.createElement("link").relList.supports(e)}catch{return!1}}("prefetch")?function(e){return new Promise(((t,n)=>{if("undefined"==typeof document)return void n();const r=document.createElement("link");r.setAttribute("rel","prefetch"),r.setAttribute("href",e),r.onload=()=>t(),r.onerror=()=>n();const a=document.getElementsByTagName("head")[0]??document.getElementsByName("script")[0]?.parentNode;a?.appendChild(r)}))}:function(e){return new Promise(((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.withCredentials=!0,r.onload=()=>{200===r.status?t():n()},r.send(null)}))};var Y=n(9670);const K=new Set,X=new Set,J=()=>navigator.connection?.effectiveType.includes("2g")||navigator.connection?.saveData,ee={prefetch(e){if(!(e=>!J()&&!X.has(e)&&!K.has(e))(e))return!1;K.add(e);const t=(0,d.f)(c.Z,e).flatMap((e=>{return t=e.route.path,Object.entries(W).filter((e=>{let[n]=e;return n.replace(/-[^-]+$/,"")===t})).flatMap((e=>{let[,t]=e;return Object.values((0,Y.Z)(t))}));var t}));return Promise.all(t.map((e=>{const t=n.gca(e);return t&&!t.includes("undefined")?G(t).catch((()=>{})):Promise.resolve()})))},preload:e=>!!(e=>!J()&&!X.has(e))(e)&&(X.add(e),R(e))},te=Object.freeze(ee),ne=Boolean(!0);if(i.Z.canUseDOM){window.docusaurus=te;const e=document.getElementById("__docusaurus"),t=(0,p.jsx)(s.B6,{children:(0,p.jsx)(o.VK,{children:(0,p.jsx)(V,{})})}),n=(e,t)=>{console.error("Docusaurus React Root onRecoverableError:",e,t)},i=()=>{if(ne)r.startTransition((()=>{a.hydrateRoot(e,t,{onRecoverableError:n})}));else{const o=a.createRoot(e,{onRecoverableError:n});r.startTransition((()=>{o.render(t)}))}};R(window.location.pathname).then(i)}},8940:(e,t,n)=>{"use strict";n.d(t,{_:()=>d,M:()=>p});var r=n(7294),a=n(6809);const o=JSON.parse('{"navbar-locale-plugin":{"default":{}},"docusaurus-plugin-content-docs":{"default":{"path":"/node-mysql2/zh-CN/docs","versions":[{"name":"current","label":"Next","isLast":true,"path":"/node-mysql2/zh-CN/docs","mainDocId":"index","docs":[{"id":"acknowledgements","path":"/node-mysql2/zh-CN/docs/acknowledgements","sidebar":"docs"},{"id":"api-and-configurations","path":"/node-mysql2/zh-CN/docs/api-and-configurations","sidebar":"docs"},{"id":"contributing/index","path":"/node-mysql2/zh-CN/docs/contributing","sidebar":"docs"},{"id":"contributing/website","path":"/node-mysql2/zh-CN/docs/contributing/website","sidebar":"docs"},{"id":"documentation/authentication-switch","path":"/node-mysql2/zh-CN/docs/documentation/authentication-switch","sidebar":"docs"},{"id":"documentation/extras","path":"/node-mysql2/zh-CN/docs/documentation/extras","sidebar":"docs"},{"id":"documentation/index","path":"/node-mysql2/zh-CN/docs/documentation","sidebar":"docs"},{"id":"documentation/mysql-server","path":"/node-mysql2/zh-CN/docs/documentation/mysql-server","sidebar":"docs"},{"id":"documentation/prepared-statements","path":"/node-mysql2/zh-CN/docs/documentation/prepared-statements","sidebar":"docs"},{"id":"documentation/promise-wrapper","path":"/node-mysql2/zh-CN/docs/documentation/promise-wrapper","sidebar":"docs"},{"id":"documentation/typescript-examples","path":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","sidebar":"docs"},{"id":"examples/binlog-watcher","path":"/node-mysql2/zh-CN/docs/examples/binlog-watcher","sidebar":"examples"},{"id":"examples/connections/create-connection","path":"/node-mysql2/zh-CN/docs/examples/connections/create-connection","sidebar":"examples"},{"id":"examples/connections/create-pool","path":"/node-mysql2/zh-CN/docs/examples/connections/create-pool","sidebar":"examples"},{"id":"examples/connections/createPoolCluster","path":"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster","sidebar":"examples"},{"id":"examples/index","path":"/node-mysql2/zh-CN/docs/examples","sidebar":"examples"},{"id":"examples/promise-wrapper/co-await","path":"/node-mysql2/zh-CN/docs/examples/promise-wrapper/co-await","sidebar":"examples"},{"id":"examples/queries/prepared-statements/delete","path":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/delete","sidebar":"examples"},{"id":"examples/queries/prepared-statements/index","path":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/","sidebar":"examples"},{"id":"examples/queries/prepared-statements/insert","path":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/insert","sidebar":"examples"},{"id":"examples/queries/prepared-statements/select","path":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/select","sidebar":"examples"},{"id":"examples/queries/prepared-statements/update","path":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/update","sidebar":"examples"},{"id":"examples/queries/simple-queries/delete","path":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/delete","sidebar":"examples"},{"id":"examples/queries/simple-queries/index","path":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/","sidebar":"examples"},{"id":"examples/queries/simple-queries/insert","path":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/insert","sidebar":"examples"},{"id":"examples/queries/simple-queries/select","path":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/select","sidebar":"examples"},{"id":"examples/queries/simple-queries/update","path":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/update","sidebar":"examples"},{"id":"examples/tests/mysql-proxy","path":"/node-mysql2/zh-CN/docs/examples/tests/mysql-proxy","sidebar":"examples"},{"id":"examples/tests/pool","path":"/node-mysql2/zh-CN/docs/examples/tests/pool","sidebar":"examples"},{"id":"examples/tests/server","path":"/node-mysql2/zh-CN/docs/examples/tests/server","sidebar":"examples"},{"id":"examples/typescript/basic-custom-class","path":"/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-class","sidebar":"examples"},{"id":"examples/typescript/procedure-call/index","path":"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/index","sidebar":"examples"},{"id":"examples/typescript/procedure-call/row-as-array","path":"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-array","sidebar":"examples"},{"id":"examples/typescript/row-data/index","path":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/index","sidebar":"examples"},{"id":"examples/typescript/row-data/multi-statements","path":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/multi-statements","sidebar":"examples"},{"id":"examples/typescript/row-data/row-as-array","path":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array","sidebar":"examples"},{"id":"examples/typescript/row-data/row-as-array-multi-statements","path":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array-multi-statements","sidebar":"examples"},{"id":"faq/how-to-handle-errors","path":"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors","sidebar":"faq"},{"id":"faq/index","path":"/node-mysql2/zh-CN/docs/faq","sidebar":"faq"},{"id":"history-and-why-mysq2","path":"/node-mysql2/zh-CN/docs/history-and-why-mysq2","sidebar":"docs"},{"id":"index","path":"/node-mysql2/zh-CN/docs/","sidebar":"docs"},{"id":"stability-badges","path":"/node-mysql2/zh-CN/docs/stability-badges","sidebar":"docs"}],"draftIds":[],"sidebars":{"docs":{"link":{"path":"/node-mysql2/zh-CN/docs/","label":"index"}},"examples":{"link":{"path":"/node-mysql2/zh-CN/docs/examples","label":"examples/index"}},"faq":{"link":{"path":"/node-mysql2/zh-CN/docs/faq","label":"faq/index"}}}}],"breadcrumbs":true}}}'),s=JSON.parse('{"defaultLocale":"en","locales":["en","zh-CN","pt-BR"],"path":"i18n","currentLocale":"zh-CN","localeConfigs":{"en":{"label":"\ud83c\uddfa\ud83c\uddf8 English","direction":"ltr","htmlLang":"en","calendar":"gregory","path":"en"},"zh-CN":{"label":"\ud83c\udde8\ud83c\uddf3 \u7b80\u4f53\u4e2d\u6587","direction":"ltr","htmlLang":"zh-CN","calendar":"gregory","path":"zh-CN"},"pt-BR":{"label":"\ud83c\udde7\ud83c\uddf7 Portugu\xeas (Brasil)","direction":"ltr","htmlLang":"pt-BR","calendar":"gregory","path":"pt-BR"}}}');var i=n(7529);const l=JSON.parse('{"docusaurusVersion":"3.1.0","siteVersion":"0.0.0","pluginVersions":{"docusaurus-plugin-content-docs":{"type":"package","name":"@docusaurus/plugin-content-docs","version":"3.1.0"},"docusaurus-plugin-content-pages":{"type":"package","name":"@docusaurus/plugin-content-pages","version":"3.1.0"},"docusaurus-plugin-sitemap":{"type":"package","name":"@docusaurus/plugin-sitemap","version":"3.1.0"},"docusaurus-theme-classic":{"type":"package","name":"@docusaurus/theme-classic","version":"3.1.0"},"docusaurus-plugin-sass":{"type":"package","name":"docusaurus-plugin-sass","version":"0.2.5"},"@easyops-cn/docusaurus-search-local":{"type":"package","name":"@easyops-cn/docusaurus-search-local","version":"0.40.1"},"navbar-locale-plugin":{"type":"local"}}}');var c=n(5893);const u={siteConfig:a.default,siteMetadata:l,globalData:o,i18n:s,codeTranslations:i},d=r.createContext(u);function p(e){let{children:t}=e;return(0,c.jsx)(d.Provider,{value:u,children:t})}},4763:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(7294),a=n(412),o=n(5742),s=n(8780),i=n(8862),l=n(5893);function c(e){let{error:t,tryAgain:n}=e;return(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",minHeight:"100vh",width:"100%",maxWidth:"80ch",fontSize:"20px",margin:"0 auto",padding:"1rem"},children:[(0,l.jsx)("h1",{style:{fontSize:"3rem"},children:"This page crashed"}),(0,l.jsx)("button",{type:"button",onClick:n,style:{margin:"1rem 0",fontSize:"2rem",cursor:"pointer",borderRadius:20,padding:"1rem"},children:"Try again"}),(0,l.jsx)(u,{error:t})]})}function u(e){let{error:t}=e;const n=(0,s.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,l.jsx)("p",{style:{whiteSpace:"pre-wrap"},children:n})}function d(e){let{error:t,tryAgain:n}=e;return(0,l.jsxs)(f,{fallback:()=>(0,l.jsx)(c,{error:t,tryAgain:n}),children:[(0,l.jsx)(o.Z,{children:(0,l.jsx)("title",{children:"Page Error"})}),(0,l.jsx)(i.Z,{children:(0,l.jsx)(c,{error:t,tryAgain:n})})]})}const p=e=>(0,l.jsx)(d,{...e});class f extends r.Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){a.Z.canUseDOM&&this.setState({error:e})}render(){const{children:e}=this.props,{error:t}=this.state;if(t){const e={error:t,tryAgain:()=>this.setState({error:null})};return(this.props.fallback??p)(e)}return e??null}}},412:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r="undefined"!=typeof window&&"document"in window&&"createElement"in window.document,a={canUseDOM:r,canUseEventListeners:r&&("addEventListener"in window||"attachEvent"in window),canUseIntersectionObserver:r&&"IntersectionObserver"in window,canUseViewport:r&&"screen"in window}},5742:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(7294);var r=n(405),a=n(5893);function o(e){return(0,a.jsx)(r.ql,{...e})}},3692:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(7294),a=n(3727),o=n(8780),s=n(2263),i=n(3919),l=n(412),c=n(8138),u=n(4996),d=n(5893);function p(e,t){let{isNavLink:n,to:p,href:f,activeClassName:h,isActive:m,"data-noBrokenLinkCheck":g,autoAddBaseUrl:y=!0,...b}=e;const{siteConfig:{trailingSlash:v,baseUrl:x}}=(0,s.Z)(),{withBaseUrl:w}=(0,u.C)(),k=(0,c.Z)(),S=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(()=>S.current));const C=p||f;const E=(0,i.Z)(C),_=C?.replace("pathname://","");let N=void 0!==_?(T=_,y&&(e=>e.startsWith("/"))(T)?w(T):T):void 0;var T;N&&E&&(N=(0,o.applyTrailingSlash)(N,{trailingSlash:v,baseUrl:x}));const L=(0,r.useRef)(!1),P=n?a.OL:a.rU,A=l.Z.canUseIntersectionObserver,O=(0,r.useRef)(),j=()=>{L.current||null==N||(window.docusaurus.preload(N),L.current=!0)};(0,r.useEffect)((()=>(!A&&E&&null!=N&&window.docusaurus.prefetch(N),()=>{A&&O.current&&O.current.disconnect()})),[O,N,A,E]);const R=N?.startsWith("#")??!1,I=!N||!E||R;return I||g||k.collectLink(N),I?(0,d.jsx)("a",{ref:S,href:N,...C&&!E&&{target:"_blank",rel:"noopener noreferrer"},...b}):(0,d.jsx)(P,{...b,onMouseEnter:j,onTouchStart:j,innerRef:e=>{S.current=e,A&&e&&E&&(O.current=new window.IntersectionObserver((t=>{t.forEach((t=>{e===t.target&&(t.isIntersecting||t.intersectionRatio>0)&&(O.current.unobserve(e),O.current.disconnect(),null!=N&&window.docusaurus.prefetch(N))}))})),O.current.observe(e))},to:N,...n&&{isActive:m,activeClassName:h}})}const f=r.forwardRef(p)},5999:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,I:()=>l});var r=n(7294),a=n(5893);function o(e,t){const n=e.split(/(\{\w+\})/).map(((e,n)=>{if(n%2==1){const n=t?.[e.slice(1,-1)];if(void 0!==n)return n}return e}));return n.some((e=>(0,r.isValidElement)(e)))?n.map(((e,t)=>(0,r.isValidElement)(e)?r.cloneElement(e,{key:t}):e)).filter((e=>""!==e)):n.join("")}var s=n(7529);function i(e){let{id:t,message:n}=e;if(void 0===t&&void 0===n)throw new Error("Docusaurus translation declarations must have at least a translation id or a default translation message");return s[t??n]??n??t}function l(e,t){let{message:n,id:r}=e;return o(i({message:n,id:r}),t)}function c(e){let{children:t,id:n,values:r}=e;if(t&&"string"!=typeof t)throw console.warn("Illegal <Translate> children",t),new Error("The Docusaurus <Translate> component only accept simple string values");const s=i({message:t,id:n});return(0,a.jsx)(a.Fragment,{children:o(s,r)})}},9935:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});const r="default"},3919:(e,t,n)=>{"use strict";function r(e){return/^(?:\w*:|\/\/)/.test(e)}function a(e){return void 0!==e&&!r(e)}n.d(t,{Z:()=>a,b:()=>r})},4996:(e,t,n)=>{"use strict";n.d(t,{C:()=>s,Z:()=>i});var r=n(7294),a=n(2263),o=n(3919);function s(){const{siteConfig:{baseUrl:e,url:t}}=(0,a.Z)(),n=(0,r.useCallback)(((n,r)=>function(e,t,n,r){let{forcePrependBaseUrl:a=!1,absolute:s=!1}=void 0===r?{}:r;if(!n||n.startsWith("#")||(0,o.b)(n))return n;if(a)return t+n.replace(/^\//,"");if(n===t.replace(/\/$/,""))return t;const i=n.startsWith(t)?n:t+n.replace(/^\//,"");return s?e+i:i}(t,e,n,r)),[t,e]);return{withBaseUrl:n}}function i(e,t){void 0===t&&(t={});const{withBaseUrl:n}=s();return n(e,t)}},8138:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7294);n(5893);const a=r.createContext({collectAnchor:()=>{},collectLink:()=>{}}),o=()=>(0,r.useContext)(a);function s(){return o()}},2263:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(8940);function o(){return(0,r.useContext)(a._)}},2389:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294),a=n(8934);function o(){return(0,r.useContext)(a._)}},469:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7294);const a=n(412).Z.canUseDOM?r.useLayoutEffect:r.useEffect},9670:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r=e=>"object"==typeof e&&!!e&&Object.keys(e).length>0;function a(e){const t={};return function e(n,a){Object.entries(n).forEach((n=>{let[o,s]=n;const i=a?`${a}.${o}`:o;r(s)?e(s,i):t[i]=s}))}(e),t}},226:(e,t,n)=>{"use strict";n.d(t,{_:()=>o,z:()=>s});var r=n(7294),a=n(5893);const o=r.createContext(null);function s(e){let{children:t,value:n}=e;const s=r.useContext(o),i=(0,r.useMemo)((()=>function(e){let{parent:t,value:n}=e;if(!t){if(!n)throw new Error("Unexpected: no Docusaurus route context found");if(!("plugin"in n))throw new Error("Unexpected: Docusaurus topmost route context has no `plugin` attribute");return n}const r={...t.data,...n?.data};return{plugin:t.plugin,data:r}}({parent:s,value:n})),[s,n]);return(0,a.jsx)(o.Provider,{value:i,children:t})}},143:(e,t,n)=>{"use strict";n.d(t,{Iw:()=>m,gA:()=>p,_r:()=>u,Jo:()=>g,zh:()=>d,yW:()=>h,gB:()=>f});var r=n(6550),a=n(2263),o=n(9935);function s(e,t){void 0===t&&(t={});const n=function(){const{globalData:e}=(0,a.Z)();return e}()[e];if(!n&&t.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin.`);return n}const i=e=>e.versions.find((e=>e.isLast));function l(e,t){const n=function(e,t){const n=i(e);return[...e.versions.filter((e=>e!==n)),n].find((e=>!!(0,r.LX)(t,{path:e.path,exact:!1,strict:!1})))}(e,t),a=n?.docs.find((e=>!!(0,r.LX)(t,{path:e.path,exact:!0,strict:!1})));return{activeVersion:n,activeDoc:a,alternateDocVersions:a?function(t){const n={};return e.versions.forEach((e=>{e.docs.forEach((r=>{r.id===t&&(n[e.name]=r)}))})),n}(a.id):{}}}const c={},u=()=>s("docusaurus-plugin-content-docs")??c,d=e=>function(e,t,n){void 0===t&&(t=o.m),void 0===n&&(n={});const r=s(e),a=r?.[t];if(!a&&n.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin with id "${t}".`);return a}("docusaurus-plugin-content-docs",e,{failfast:!0});function p(e){void 0===e&&(e={});const t=u(),{pathname:n}=(0,r.TH)();return function(e,t,n){void 0===n&&(n={});const a=Object.entries(e).sort(((e,t)=>t[1].path.localeCompare(e[1].path))).find((e=>{let[,n]=e;return!!(0,r.LX)(t,{path:n.path,exact:!1,strict:!1})})),o=a?{pluginId:a[0],pluginData:a[1]}:void 0;if(!o&&n.failfast)throw new Error(`Can't find active docs plugin for "${t}" pathname, while it was expected to be found. Maybe you tried to use a docs feature that can only be used on a docs-related page? Existing docs plugin paths are: ${Object.values(e).map((e=>e.path)).join(", ")}`);return o}(t,n,e)}function f(e){return d(e).versions}function h(e){const t=d(e);return i(t)}function m(e){const t=d(e),{pathname:n}=(0,r.TH)();return l(t,n)}function g(e){const t=d(e),{pathname:n}=(0,r.TH)();return function(e,t){const n=i(e);return{latestDocSuggestion:l(e,t).alternateDocVersions[n.name],latestVersionSuggestion:n}}(t,n)}},8320:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4865),a=n.n(r);a().configure({showSpinner:!1});const o={onRouteUpdate(e){let{location:t,previousLocation:n}=e;if(n&&t.pathname!==n.pathname){const e=window.setTimeout((()=>{a().start()}),200);return()=>window.clearTimeout(e)}},onRouteDidUpdate(){a().done()}}},3310:(e,t,n)=>{"use strict";n.r(t);var r=n(2573),a=n(6809);!function(e){const{themeConfig:{prism:t}}=a.default,{additionalLanguages:r}=t;globalThis.Prism=e,r.forEach((e=>{"php"===e&&n(6854),n(5897)(`./prism-${e}`)})),delete globalThis.Prism}(r.p1)},2503:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(7294);var r=n(512),a=n(5999),o=n(6668),s=n(3692),i=n(8138);const l={anchorWithStickyNavbar:"anchorWithStickyNavbar_LWe7",anchorWithHideOnScrollNavbar:"anchorWithHideOnScrollNavbar_WYt5"};var c=n(5893);function u(e){let{as:t,id:n,...u}=e;const d=(0,i.Z)(),{navbar:{hideOnScroll:p}}=(0,o.L)();if("h1"===t||!n)return(0,c.jsx)(t,{...u,id:void 0});d.collectAnchor(n);const f=(0,a.I)({id:"theme.common.headingLinkTitle",message:"Direct link to {heading}",description:"Title for link to heading"},{heading:"string"==typeof u.children?u.children:n});return(0,c.jsxs)(t,{...u,className:(0,r.Z)("anchor",p?l.anchorWithHideOnScrollNavbar:l.anchorWithStickyNavbar,u.className),id:n,children:[u.children,(0,c.jsx)(s.Z,{className:"hash-link",to:`#${n}`,"aria-label":f,title:f,children:"\u200b"})]})}},9471:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(7294);const r={iconExternalLink:"iconExternalLink_nPIU"};var a=n(5893);function o(e){let{width:t=13.5,height:n=13.5}=e;return(0,a.jsx)("svg",{width:t,height:n,"aria-hidden":"true",viewBox:"0 0 24 24",className:r.iconExternalLink,children:(0,a.jsx)("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"})})}},8862:(e,t,n)=>{"use strict";n.d(t,{Z:()=>It});var r=n(7294),a=n(512),o=n(4763),s=n(1944),i=n(6550),l=n(5999),c=n(5936),u=n(5893);const d="__docusaurus_skipToContent_fallback";function p(e){e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")}function f(){const e=(0,r.useRef)(null),{action:t}=(0,i.k6)(),n=(0,r.useCallback)((e=>{e.preventDefault();const t=document.querySelector("main:first-of-type")??document.getElementById(d);t&&p(t)}),[]);return(0,c.S)((n=>{let{location:r}=n;e.current&&!r.hash&&"PUSH"===t&&p(e.current)})),{containerRef:e,onClick:n}}const h=(0,l.I)({id:"theme.common.skipToMainContent",description:"The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",message:"Skip to main content"});function m(e){const t=e.children??h,{containerRef:n,onClick:r}=f();return(0,u.jsx)("div",{ref:n,role:"region","aria-label":h,children:(0,u.jsx)("a",{...e,href:`#${d}`,onClick:r,children:t})})}var g=n(5281),y=n(9727);const b={skipToContent:"skipToContent_fXgn"};function v(){return(0,u.jsx)(m,{className:b.skipToContent})}var x=n(6668),w=n(9689);function k(e){let{width:t=21,height:n=21,color:r="currentColor",strokeWidth:a=1.2,className:o,...s}=e;return(0,u.jsx)("svg",{viewBox:"0 0 15 15",width:t,height:n,...s,children:(0,u.jsx)("g",{stroke:r,strokeWidth:a,children:(0,u.jsx)("path",{d:"M.75.75l13.5 13.5M14.25.75L.75 14.25"})})})}const S={closeButton:"closeButton_CVFx"};function C(e){return(0,u.jsx)("button",{type:"button","aria-label":(0,l.I)({id:"theme.AnnouncementBar.closeButtonAriaLabel",message:"Close",description:"The ARIA label for close button of announcement bar"}),...e,className:(0,a.Z)("clean-btn close",S.closeButton,e.className),children:(0,u.jsx)(k,{width:14,height:14,strokeWidth:3.1})})}const E={content:"content_knG7"};function _(e){const{announcementBar:t}=(0,x.L)(),{content:n}=t;return(0,u.jsx)("div",{...e,className:(0,a.Z)(E.content,e.className),dangerouslySetInnerHTML:{__html:n}})}const N={announcementBar:"announcementBar_mb4j",announcementBarPlaceholder:"announcementBarPlaceholder_vyr4",announcementBarClose:"announcementBarClose_gvF7",announcementBarContent:"announcementBarContent_xLdY"};function T(){const{announcementBar:e}=(0,x.L)(),{isActive:t,close:n}=(0,w.nT)();if(!t)return null;const{backgroundColor:r,textColor:a,isCloseable:o}=e;return(0,u.jsxs)("div",{className:N.announcementBar,style:{backgroundColor:r,color:a},role:"banner",children:[o&&(0,u.jsx)("div",{className:N.announcementBarPlaceholder}),(0,u.jsx)(_,{className:N.announcementBarContent}),o&&(0,u.jsx)(C,{onClick:n,className:N.announcementBarClose})]})}var L=n(3163),P=n(2466);var A=n(902),O=n(3102);const j=r.createContext(null);function R(e){let{children:t}=e;const n=function(){const e=(0,L.e)(),t=(0,O.HY)(),[n,a]=(0,r.useState)(!1),o=null!==t.component,s=(0,A.D9)(o);return(0,r.useEffect)((()=>{o&&!s&&a(!0)}),[o,s]),(0,r.useEffect)((()=>{o?e.shown||a(!0):a(!1)}),[e.shown,o]),(0,r.useMemo)((()=>[n,a]),[n])}();return(0,u.jsx)(j.Provider,{value:n,children:t})}function I(e){if(e.component){const t=e.component;return(0,u.jsx)(t,{...e.props})}}function z(){const e=(0,r.useContext)(j);if(!e)throw new A.i6("NavbarSecondaryMenuDisplayProvider");const[t,n]=e,a=(0,r.useCallback)((()=>n(!1)),[n]),o=(0,O.HY)();return(0,r.useMemo)((()=>({shown:t,hide:a,content:I(o)})),[a,o,t])}function F(e){let{header:t,primaryMenu:n,secondaryMenu:r}=e;const{shown:o}=z();return(0,u.jsxs)("div",{className:"navbar-sidebar",children:[t,(0,u.jsxs)("div",{className:(0,a.Z)("navbar-sidebar__items",{"navbar-sidebar__items--show-secondary":o}),children:[(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:n}),(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:r})]})]})}var D=n(2949),M=n(2389);function q(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"})})}function B(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"})})}const $={toggle:"toggle_vylO",toggleButton:"toggleButton_gllP",darkToggleIcon:"darkToggleIcon_wfgR",lightToggleIcon:"lightToggleIcon_pyhR",toggleButtonDisabled:"toggleButtonDisabled_aARS"};function U(e){let{className:t,buttonClassName:n,value:r,onChange:o}=e;const s=(0,M.Z)(),i=(0,l.I)({message:"Switch between dark and light mode (currently {mode})",id:"theme.colorToggle.ariaLabel",description:"The ARIA label for the navbar color mode toggle"},{mode:"dark"===r?(0,l.I)({message:"dark mode",id:"theme.colorToggle.ariaLabel.mode.dark",description:"The name for the dark color mode"}):(0,l.I)({message:"light mode",id:"theme.colorToggle.ariaLabel.mode.light",description:"The name for the light color mode"})});return(0,u.jsx)("div",{className:(0,a.Z)($.toggle,t),children:(0,u.jsxs)("button",{className:(0,a.Z)("clean-btn",$.toggleButton,!s&&$.toggleButtonDisabled,n),type:"button",onClick:()=>o("dark"===r?"light":"dark"),disabled:!s,title:i,"aria-label":i,"aria-live":"polite",children:[(0,u.jsx)(q,{className:(0,a.Z)($.toggleIcon,$.lightToggleIcon)}),(0,u.jsx)(B,{className:(0,a.Z)($.toggleIcon,$.darkToggleIcon)})]})})}const H=r.memo(U),Q={darkNavbarColorModeToggle:"darkNavbarColorModeToggle_X3D1"};function Z(e){let{className:t}=e;const n=(0,x.L)().navbar.style,r=(0,x.L)().colorMode.disableSwitch,{colorMode:a,setColorMode:o}=(0,D.I)();return r?null:(0,u.jsx)(H,{className:t,buttonClassName:"dark"===n?Q.darkNavbarColorModeToggle:void 0,value:a,onChange:o})}var V=n(1327);function W(){return(0,u.jsx)(V.Z,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:"navbar__title text--truncate"})}function G(){const e=(0,L.e)();return(0,u.jsx)("button",{type:"button","aria-label":(0,l.I)({id:"theme.docs.sidebar.closeSidebarButtonAriaLabel",message:"Close navigation bar",description:"The ARIA label for close button of mobile sidebar"}),className:"clean-btn navbar-sidebar__close",onClick:()=>e.toggle(),children:(0,u.jsx)(k,{color:"var(--ifm-color-emphasis-600)"})})}function Y(){return(0,u.jsxs)("div",{className:"navbar-sidebar__brand",children:[(0,u.jsx)(W,{}),(0,u.jsx)(Z,{className:"margin-right--md"}),(0,u.jsx)(G,{})]})}var K=n(3692),X=n(4996),J=n(3919);function ee(e,t){return void 0!==e&&void 0!==t&&new RegExp(e,"gi").test(t)}var te=n(9471);function ne(e){let{activeBasePath:t,activeBaseRegex:n,to:r,href:a,label:o,html:s,isDropdownLink:i,prependBaseUrlToHref:l,...c}=e;const d=(0,X.Z)(r),p=(0,X.Z)(t),f=(0,X.Z)(a,{forcePrependBaseUrl:!0}),h=o&&a&&!(0,J.Z)(a),m=s?{dangerouslySetInnerHTML:{__html:s}}:{children:(0,u.jsxs)(u.Fragment,{children:[o,h&&(0,u.jsx)(te.Z,{...i&&{width:12,height:12}})]})};return a?(0,u.jsx)(K.Z,{href:l?f:a,...c,...m}):(0,u.jsx)(K.Z,{to:d,isNavLink:!0,...(t||n)&&{isActive:(e,t)=>n?ee(n,t.pathname):t.pathname.startsWith(p)},...c,...m})}function re(e){let{className:t,isDropdownItem:n=!1,...r}=e;const o=(0,u.jsx)(ne,{className:(0,a.Z)(n?"dropdown__link":"navbar__item navbar__link",t),isDropdownLink:n,...r});return n?(0,u.jsx)("li",{children:o}):o}function ae(e){let{className:t,isDropdownItem:n,...r}=e;return(0,u.jsx)("li",{className:"menu__list-item",children:(0,u.jsx)(ne,{className:(0,a.Z)("menu__link",t),...r})})}function oe(e){let{mobile:t=!1,position:n,...r}=e;const a=t?ae:re;return(0,u.jsx)(a,{...r,activeClassName:r.activeClassName??(t?"menu__link--active":"navbar__link--active")})}var se=n(6043),ie=n(8596),le=n(2263);const ce={dropdownNavbarItemMobile:"dropdownNavbarItemMobile_S0Fm"};function ue(e,t){return e.some((e=>function(e,t){return!!(0,ie.Mg)(e.to,t)||!!ee(e.activeBaseRegex,t)||!(!e.activeBasePath||!t.startsWith(e.activeBasePath))}(e,t)))}function de(e){let{items:t,position:n,className:o,onClick:s,...i}=e;const l=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=e=>{l.current&&!l.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("focusin",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("focusin",e)}}),[l]),(0,u.jsxs)("div",{ref:l,className:(0,a.Z)("navbar__item","dropdown","dropdown--hoverable",{"dropdown--right":"right"===n,"dropdown--show":c}),children:[(0,u.jsx)(ne,{"aria-haspopup":"true","aria-expanded":c,role:"button",href:i.to?void 0:"#",className:(0,a.Z)("navbar__link",o),...i,onClick:i.to?void 0:e=>e.preventDefault(),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),d(!c))},children:i.children??i.label}),(0,u.jsx)("ul",{className:"dropdown__menu",children:t.map(((e,t)=>(0,r.createElement)(Ve,{isDropdownItem:!0,activeClassName:"dropdown__link--active",...e,key:t})))})]})}function pe(e){let{items:t,className:n,position:o,onClick:s,...l}=e;const c=function(){const{siteConfig:{baseUrl:e}}=(0,le.Z)(),{pathname:t}=(0,i.TH)();return t.replace(e,"/")}(),d=ue(t,c),{collapsed:p,toggleCollapsed:f,setCollapsed:h}=(0,se.u)({initialState:()=>!d});return(0,r.useEffect)((()=>{d&&h(!d)}),[c,d,h]),(0,u.jsxs)("li",{className:(0,a.Z)("menu__list-item",{"menu__list-item--collapsed":p}),children:[(0,u.jsx)(ne,{role:"button",className:(0,a.Z)(ce.dropdownNavbarItemMobile,"menu__link menu__link--sublist menu__link--sublist-caret",n),...l,onClick:e=>{e.preventDefault(),f()},children:l.children??l.label}),(0,u.jsx)(se.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:p,children:t.map(((e,t)=>(0,r.createElement)(Ve,{mobile:!0,isDropdownItem:!0,onClick:s,activeClassName:"menu__link--active",...e,key:t})))})]})}function fe(e){let{mobile:t=!1,...n}=e;const r=t?pe:de;return(0,u.jsx)(r,{...n})}var he=n(4711);function me(e){let{width:t=20,height:n=20,...r}=e;return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:t,height:n,"aria-hidden":!0,...r,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"})})}const ge="iconLanguage_nlXk";var ye=n(8087),be=n(1728),ve=n(373),xe=n(143),we=n(22),ke=n(8202),Se=n(3926),Ce=n(1073),Ee=n(2539),_e=n(726);const Ne='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M17 6v12c0 .52-.2 1-1 1H4c-.7 0-1-.33-1-1V2c0-.55.42-1 1-1h8l5 5zM14 8h-3.13c-.51 0-.87-.34-.87-.87V4" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linejoin="round"></path></svg>',Te='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M13 13h4-4V8H7v5h6v4-4H7V8H3h4V3v5h6V3v5h4-4v5zm-6 0v4-4H3h4z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path></svg>',Le='<svg width="20" height="20" viewBox="0 0 20 20"><path d="M17 5H3h14zm0 5H3h14zm0 5H3h14z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linejoin="round"></path></svg>',Pe='<svg width="20" height="20" viewBox="0 0 20 20"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M18 3v4c0 2-2 4-4 4H2"></path><path d="M8 17l-6-6 6-6"></path></g></svg>',Ae='<svg width="40" height="40" viewBox="0 0 20 20" fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 4.8c2 3 1.7 7-1 9.7h0l4.3 4.3-4.3-4.3a7.8 7.8 0 01-9.8 1m-2.2-2.2A7.8 7.8 0 0113.2 2.4M2 18L18 2"></path></svg>',Oe='<svg viewBox="0 0 24 54"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6v42M20 27H8.3"></path></g></svg>',je='<svg viewBox="0 0 24 54"><g stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6v21M20 27H8.3"></path></g></svg>',Re={searchBar:"searchBar_RVTs",dropdownMenu:"dropdownMenu_qbY6",searchBarLeft:"searchBarLeft_MXDe",suggestion:"suggestion_fB_2",cursor:"cursor_eG29",hitTree:"hitTree_kk6K",hitIcon:"hitIcon_a7Zy",hitPath:"hitPath_ieM4",noResultsIcon:"noResultsIcon_EBY5",hitFooter:"hitFooter_E9YW",hitWrapper:"hitWrapper_sAK8",hitTitle:"hitTitle_vyVt",hitAction:"hitAction_NqkB",hideAction:"hideAction_vcyE",noResults:"noResults_l6Q3",searchBarContainer:"searchBarContainer_NW3z",searchBarLoadingRing:"searchBarLoadingRing_YnHq",searchClearButton:"searchClearButton_qk4g",searchIndexLoading:"searchIndexLoading_EJ1f",searchHintContainer:"searchHintContainer_Pkmr",searchHint:"searchHint_iIMx",focused:"focused_OWtg",input:"input_FOTf",hint:"hint_URu1",suggestions:"suggestions_X8XU",dataset:"dataset_QiCy",empty:"empty_eITn"};function Ie(e){let{document:t,type:n,page:r,metadata:a,tokens:o,isInterOfTree:s,isLastOfTree:i}=e;const l=0===n,c=1===n,u=[];s?u.push(Oe):i&&u.push(je);const d=u.map((e=>`<span class="${Re.hitTree}">${e}</span>`)),p=`<span class="${Re.hitIcon}">${l?Ne:c?Te:Le}</span>`,f=[`<span class="${Re.hitTitle}">${(0,_e.o)(t.t,(0,Ce.m)(a,"t"),o)}</span>`];if(!s&&!i&&ye.H6){const e=r?(r.b??[]).concat(r.t).concat(t.s&&t.s!==r.t?t.s:[]):t.b;f.push(`<span class="${Re.hitPath}">${(0,Se.e)(e??[])}</span>`)}else l||f.push(`<span class="${Re.hitPath}">${(0,Ee.C)(r.t||(t.u.startsWith("/docs/api-reference/")?"API Reference":""),o)}</span>`);const h=`<span class="${Re.hitAction}">${Pe}</span>`;return[...d,p,`<span class="${Re.hitWrapper}">`,...f,"</span>",h].join("")}function ze(){return`<span class="${Re.noResults}"><span class="${Re.noResultsIcon}">${Ae}</span><span>${(0,l.I)({id:"theme.SearchBar.noResultsText",message:"No results"})}</span></span>`}var Fe=n(311),De=n(51);async function Me(){const e=await Promise.all([n.e(8443),n.e(5525)]).then(n.t.bind(n,8443,23)),t=e.default;return t.noConflict?t.noConflict():e.noConflict&&e.noConflict(),t}const qe="_highlight";const Be=function(e){let{handleSearchBarToggle:t}=e;const n=(0,M.Z)(),{siteConfig:{baseUrl:a},i18n:{currentLocale:o}}=(0,le.Z)(),s=(0,xe.gA)();let c=a;try{const{preferredVersion:e}=(0,ve.J)(s?.pluginId??ye.gQ);e&&!e.isLast&&(c=e.path+"/")}catch(F){if(ye.l9&&!(F instanceof A.i6))throw F}const d=(0,i.k6)(),p=(0,i.TH)(),f=(0,r.useRef)(null),h=(0,r.useRef)(new Map),m=(0,r.useRef)(!1),[g,y]=(0,r.useState)(!1),[b,v]=(0,r.useState)(!1),[x,w]=(0,r.useState)(""),k=(0,r.useRef)(null),S=(0,r.useRef)(""),[C,E]=(0,r.useState)("");(0,r.useEffect)((()=>{if(!Array.isArray(ye.Kc))return;let e="";if(p.pathname.startsWith(c)){const t=p.pathname.substring(c.length);let n;for(const e of ye.Kc){const r="string"==typeof e?e:e.path;if(t===r||t.startsWith(`${r}/`)){n=r;break}}n&&(e=n)}S.current!==e&&(h.current.delete(e),S.current=e),E(e)}),[p.pathname,c]);const _=!!ye.hG&&Array.isArray(ye.Kc)&&""===C,N=(0,r.useCallback)((async()=>{if(_||h.current.get(C))return;h.current.set(C,"loading"),k.current?.autocomplete.destroy(),y(!0);const[{wrappedIndexes:e,zhDictionary:t},n]=await Promise.all([(0,we.w)(c,C),Me()]);if(k.current=n(f.current,{hint:!1,autoselect:!0,openOnFocus:!0,cssClasses:{root:(0,be.Z)(Re.searchBar,{[Re.searchBarLeft]:"left"===ye.pu}),noPrefix:!0,dropdownMenu:Re.dropdownMenu,input:Re.input,hint:Re.hint,suggestions:Re.suggestions,suggestion:Re.suggestion,cursor:Re.cursor,dataset:Re.dataset,empty:Re.empty}},[{source:(0,ke.v)(e,t,ye.qo),templates:{suggestion:Ie,empty:ze,footer:e=>{let{query:t,isEmpty:n}=e;if(n&&(!C||!ye.pQ))return;const r=(e=>{let{query:t,isEmpty:n}=e;const r=document.createElement("a"),s=new URLSearchParams;let i;if(s.set("q",t),C){const e=C&&Array.isArray(ye.Kc)?ye.Kc.find((e=>"string"==typeof e?e===C:e.path===C)):C,t=e?(0,De._)(e,o).label:C;i=ye.pQ&&n?(0,l.I)({id:"theme.SearchBar.seeAllOutsideContext",message:"See results outside {context}"},{context:t}):(0,l.I)({id:"theme.SearchBar.searchInContext",message:"See all results in {context}"},{context:t})}else i=(0,l.I)({id:"theme.SearchBar.seeAll",message:"See all results"});if(!C||!Array.isArray(ye.Kc)||ye.pQ&&n||s.set("ctx",C),c!==a){if(!c.startsWith(a))throw new Error(`Version url '${c}' does not start with base url '${a}', this is a bug of \`@easyops-cn/docusaurus-search-local\`, please report it.`);s.set("version",c.substring(a.length))}const u=`${a}search?${s.toString()}`;return r.href=u,r.textContent=i,r.addEventListener("click",(e=>{e.ctrlKey||e.metaKey||(e.preventDefault(),k.current?.autocomplete.close(),d.push(u))})),r})({query:t,isEmpty:n}),s=document.createElement("div");return s.className=Re.hitFooter,s.appendChild(r),s}}}]).on("autocomplete:selected",(function(e,t){let{document:{u:n,h:r},tokens:a}=t;f.current?.blur();let o=n;if(ye.vc&&a.length>0){const e=new URLSearchParams;for(const t of a)e.append(qe,t);o+=`?${e.toString()}`}r&&(o+=r),d.push(o)})).on("autocomplete:closed",(()=>{f.current?.blur()})),h.current.set(C,"done"),y(!1),m.current){const e=f.current;e.value&&k.current?.autocomplete.open(),e.focus()}}),[_,C,c,a,d]);(0,r.useEffect)((()=>{if(!ye.vc)return;const e=n?new URLSearchParams(p.search).getAll(qe):[];setTimeout((()=>{const t=document.querySelector("article");if(!t)return;const n=new ye.vc(t);n.unmark(),0!==e.length&&n.mark(e),w(e.join(" ")),k.current?.autocomplete.setVal(e.join(" "))}))}),[n,p.search,p.pathname]);const[T,L]=(0,r.useState)(!1),P=(0,r.useCallback)((()=>{m.current=!0,N(),L(!0),t?.(!0)}),[t,N]),O=(0,r.useCallback)((()=>{L(!1),t?.(!1)}),[t]),j=(0,r.useCallback)((()=>{N()}),[N]),R=(0,r.useCallback)((e=>{w(e.target.value),e.target.value&&v(!0)}),[]),I=!!n&&/mac/i.test(navigator.userAgentData?.platform??navigator.platform);(0,r.useEffect)((()=>{if(!ye.AY)return;const e=e=>{!(I?e.metaKey:e.ctrlKey)||"k"!==e.key&&"K"!==e.key||(e.preventDefault(),f.current?.focus(),P())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[I,P]);const z=(0,r.useCallback)((()=>{const e=new URLSearchParams(p.search);e.delete(qe);const t=e.toString(),n=p.pathname+(""!=t?`?${t}`:"")+p.hash;n!=p.pathname+p.search+p.hash&&d.push(n),w(""),k.current?.autocomplete.setVal("")}),[p.pathname,p.search,p.hash,d]);return(0,u.jsxs)("div",{className:(0,be.Z)("navbar__search",Re.searchBarContainer,{[Re.searchIndexLoading]:g&&b,[Re.focused]:T}),hidden:_,children:[(0,u.jsx)("input",{placeholder:(0,l.I)({id:"theme.SearchBar.label",message:"Search",description:"The ARIA label and placeholder for search button"}),"aria-label":"Search",className:"navbar__search-input",onMouseEnter:j,onFocus:P,onBlur:O,onChange:R,ref:f,value:x}),(0,u.jsx)(Fe.Z,{className:Re.searchBarLoadingRing}),ye.AY&&ye.t_&&(""!==x?(0,u.jsx)("button",{className:Re.searchClearButton,onClick:z,children:"\u2715"}):n&&(0,u.jsxs)("div",{className:Re.searchHintContainer,children:[(0,u.jsx)("kbd",{className:Re.searchHint,children:I?"\u2318":"ctrl"}),(0,u.jsx)("kbd",{className:Re.searchHint,children:"K"})]}))]})},$e={navbarSearchContainer:"navbarSearchContainer_Bca1"};function Ue(e){let{children:t,className:n}=e;return(0,u.jsx)("div",{className:(0,a.Z)(n,$e.navbarSearchContainer),children:t})}var He=n(3438);const Qe=e=>e.docs.find((t=>t.id===e.mainDocId));const Ze={default:oe,localeDropdown:function(e){let{mobile:t,dropdownItemsBefore:n,dropdownItemsAfter:r,queryString:a="",...o}=e;const{i18n:{currentLocale:s,locales:c,localeConfigs:d}}=(0,le.Z)(),p=(0,he.l)(),{search:f,hash:h}=(0,i.TH)(),m=[...n,...c.map((e=>{const n=`${`pathname://${p.createUrl({locale:e,fullyQualified:!1})}`}${f}${h}${a}`;return{label:d[e].label,lang:d[e].htmlLang,to:n,target:"_self",autoAddBaseUrl:!1,className:e===s?t?"menu__link--active":"dropdown__link--active":""}})),...r],g=t?(0,l.I)({message:"Languages",id:"theme.navbar.mobileLanguageDropdown.label",description:"The label for the mobile language switcher dropdown"}):d[s].label;return(0,u.jsx)(fe,{...o,mobile:t,label:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(me,{className:ge}),g]}),items:m})},search:function(e){let{mobile:t,className:n}=e;return t?null:(0,u.jsx)(Ue,{className:n,children:(0,u.jsx)(Be,{})})},dropdown:fe,html:function(e){let{value:t,className:n,mobile:r=!1,isDropdownItem:o=!1}=e;const s=o?"li":"div";return(0,u.jsx)(s,{className:(0,a.Z)({navbar__item:!r&&!o,"menu__list-item":r},n),dangerouslySetInnerHTML:{__html:t}})},doc:function(e){let{docId:t,label:n,docsPluginId:r,...a}=e;const{activeDoc:o}=(0,xe.Iw)(r),s=(0,He.vY)(t,r),i=o?.path===s?.path;return null===s||s.unlisted&&!i?null:(0,u.jsx)(oe,{exact:!0,...a,isActive:()=>i||!!o?.sidebar&&o.sidebar===s.sidebar,label:n??s.id,to:s.path})},docSidebar:function(e){let{sidebarId:t,label:n,docsPluginId:r,...a}=e;const{activeDoc:o}=(0,xe.Iw)(r),s=(0,He.oz)(t,r).link;if(!s)throw new Error(`DocSidebarNavbarItem: Sidebar with ID "${t}" doesn't have anything to be linked to.`);return(0,u.jsx)(oe,{exact:!0,...a,isActive:()=>o?.sidebar===t,label:n??s.label,to:s.path})},docsVersion:function(e){let{label:t,to:n,docsPluginId:r,...a}=e;const o=(0,He.lO)(r)[0],s=t??o.label,i=n??(e=>e.docs.find((t=>t.id===e.mainDocId)))(o).path;return(0,u.jsx)(oe,{...a,label:s,to:i})},docsVersionDropdown:function(e){let{mobile:t,docsPluginId:n,dropdownActiveClassDisabled:r,dropdownItemsBefore:a,dropdownItemsAfter:o,...s}=e;const{search:c,hash:d}=(0,i.TH)(),p=(0,xe.Iw)(n),f=(0,xe.gB)(n),{savePreferredVersionName:h}=(0,ve.J)(n),m=[...a,...f.map((e=>{const t=p.alternateDocVersions[e.name]??Qe(e);return{label:e.label,to:`${t.path}${c}${d}`,isActive:()=>e===p.activeVersion,onClick:()=>h(e.name)}})),...o],g=(0,He.lO)(n)[0],y=t&&m.length>1?(0,l.I)({id:"theme.navbar.mobileVersionsDropdown.label",message:"Versions",description:"The label for the navbar versions dropdown on mobile view"}):g.label,b=t&&m.length>1?void 0:Qe(g).path;return m.length<=1?(0,u.jsx)(oe,{...s,mobile:t,label:y,to:b,isActive:r?()=>!1:void 0}):(0,u.jsx)(fe,{...s,mobile:t,label:y,to:b,items:m,isActive:r?()=>!1:void 0})}};function Ve(e){let{type:t,...n}=e;const r=function(e,t){return e&&"default"!==e?e:"items"in t?"dropdown":"default"}(t,n),a=Ze[r];if(!a)throw new Error(`No NavbarItem component found for type "${t}".`);return(0,u.jsx)(a,{...n})}function We(){const e=(0,L.e)(),t=(0,x.L)().navbar.items;return(0,u.jsx)("ul",{className:"menu__list",children:t.map(((t,n)=>(0,r.createElement)(Ve,{mobile:!0,...t,onClick:()=>e.toggle(),key:n})))})}function Ge(e){return(0,u.jsx)("button",{...e,type:"button",className:"clean-btn navbar-sidebar__back",children:(0,u.jsx)(l.Z,{id:"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel",description:"The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)",children:"\u2190 Back to main menu"})})}function Ye(){const e=0===(0,x.L)().navbar.items.length,t=z();return(0,u.jsxs)(u.Fragment,{children:[!e&&(0,u.jsx)(Ge,{onClick:()=>t.hide()}),t.content]})}function Ke(){const e=(0,L.e)();var t;return void 0===(t=e.shown)&&(t=!0),(0,r.useEffect)((()=>(document.body.style.overflow=t?"hidden":"visible",()=>{document.body.style.overflow="visible"})),[t]),e.shouldRender?(0,u.jsx)(F,{header:(0,u.jsx)(Y,{}),primaryMenu:(0,u.jsx)(We,{}),secondaryMenu:(0,u.jsx)(Ye,{})}):null}const Xe={navbarHideable:"navbarHideable_m1mJ",navbarHidden:"navbarHidden_jGov"};function Je(e){return(0,u.jsx)("div",{role:"presentation",...e,className:(0,a.Z)("navbar-sidebar__backdrop",e.className)})}function et(e){let{children:t}=e;const{navbar:{hideOnScroll:n,style:o}}=(0,x.L)(),s=(0,L.e)(),{navbarRef:i,isNavbarVisible:d}=function(e){const[t,n]=(0,r.useState)(e),a=(0,r.useRef)(!1),o=(0,r.useRef)(0),s=(0,r.useCallback)((e=>{null!==e&&(o.current=e.getBoundingClientRect().height)}),[]);return(0,P.RF)(((t,r)=>{let{scrollY:s}=t;if(!e)return;if(s<o.current)return void n(!0);if(a.current)return void(a.current=!1);const i=r?.scrollY,l=document.documentElement.scrollHeight-o.current,c=window.innerHeight;i&&s>=i?n(!1):s+c<l&&n(!0)})),(0,c.S)((t=>{if(!e)return;const r=t.location.hash;if(r?document.getElementById(r.substring(1)):void 0)return a.current=!0,void n(!1);n(!0)})),{navbarRef:s,isNavbarVisible:t}}(n);return(0,u.jsxs)("nav",{ref:i,"aria-label":(0,l.I)({id:"theme.NavBar.navAriaLabel",message:"Main",description:"The ARIA label for the main navigation"}),className:(0,a.Z)("navbar","navbar--fixed-top",n&&[Xe.navbarHideable,!d&&Xe.navbarHidden],{"navbar--dark":"dark"===o,"navbar--primary":"primary"===o,"navbar-sidebar--show":s.shown}),children:[t,(0,u.jsx)(Je,{onClick:s.toggle}),(0,u.jsx)(Ke,{})]})}var tt=n(8780);const nt={errorBoundaryError:"errorBoundaryError_a6uf",errorBoundaryFallback:"errorBoundaryFallback_VBag"};function rt(e){return(0,u.jsx)("button",{type:"button",...e,children:(0,u.jsx)(l.Z,{id:"theme.ErrorPageContent.tryAgain",description:"The label of the button to try again rendering when the React error boundary captures an error",children:"Try again"})})}function at(e){let{error:t}=e;const n=(0,tt.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,u.jsx)("p",{className:nt.errorBoundaryError,children:n})}class ot extends r.Component{componentDidCatch(e,t){throw this.props.onError(e,t)}render(){return this.props.children}}const st="right";function it(e){let{width:t=30,height:n=30,className:r,...a}=e;return(0,u.jsx)("svg",{className:r,width:t,height:n,viewBox:"0 0 30 30","aria-hidden":"true",...a,children:(0,u.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"})})}function lt(){const{toggle:e,shown:t}=(0,L.e)();return(0,u.jsx)("button",{onClick:e,"aria-label":(0,l.I)({id:"theme.docs.sidebar.toggleSidebarButtonAriaLabel",message:"Toggle navigation bar",description:"The ARIA label for hamburger menu button of mobile navigation"}),"aria-expanded":t,className:"navbar__toggle clean-btn",type:"button",children:(0,u.jsx)(it,{})})}const ct={colorModeToggle:"colorModeToggle_DEke"};function ut(e){let{items:t}=e;return(0,u.jsx)(u.Fragment,{children:t.map(((e,t)=>(0,u.jsx)(ot,{onError:t=>new Error(`A theme navbar item failed to render.\nPlease double-check the following navbar item (themeConfig.navbar.items) of your Docusaurus config:\n${JSON.stringify(e,null,2)}`,{cause:t}),children:(0,u.jsx)(Ve,{...e})},t)))})}function dt(e){let{left:t,right:n}=e;return(0,u.jsxs)("div",{className:"navbar__inner",children:[(0,u.jsx)("div",{className:"navbar__items",children:t}),(0,u.jsx)("div",{className:"navbar__items navbar__items--right",children:n})]})}function pt(){const e=(0,L.e)(),t=(0,x.L)().navbar.items,[n,r]=function(e){function t(e){return"left"===(e.position??st)}return[e.filter(t),e.filter((e=>!t(e)))]}(t),a=t.find((e=>"search"===e.type));return(0,u.jsx)(dt,{left:(0,u.jsxs)(u.Fragment,{children:[!e.disabled&&(0,u.jsx)(lt,{}),(0,u.jsx)(W,{}),(0,u.jsx)(ut,{items:n})]}),right:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ut,{items:r}),(0,u.jsx)(Z,{className:ct.colorModeToggle}),!a&&(0,u.jsx)(Ue,{children:(0,u.jsx)(Be,{})})]})})}function ft(){return(0,u.jsx)(et,{children:(0,u.jsx)(pt,{})})}function ht(e){let{item:t}=e;const{to:n,href:r,label:a,prependBaseUrlToHref:o,...s}=t,i=(0,X.Z)(n),l=(0,X.Z)(r,{forcePrependBaseUrl:!0});return(0,u.jsxs)(K.Z,{className:"footer__link-item",...r?{href:o?l:r}:{to:i},...s,children:[a,r&&!(0,J.Z)(r)&&(0,u.jsx)(te.Z,{})]})}function mt(e){let{item:t}=e;return t.html?(0,u.jsx)("li",{className:"footer__item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)("li",{className:"footer__item",children:(0,u.jsx)(ht,{item:t})},t.href??t.to)}function gt(e){let{column:t}=e;return(0,u.jsxs)("div",{className:"col footer__col",children:[(0,u.jsx)("div",{className:"footer__title",children:t.title}),(0,u.jsx)("ul",{className:"footer__items clean-list",children:t.items.map(((e,t)=>(0,u.jsx)(mt,{item:e},t)))})]})}function yt(e){let{columns:t}=e;return(0,u.jsx)("div",{className:"row footer__links",children:t.map(((e,t)=>(0,u.jsx)(gt,{column:e},t)))})}function bt(){return(0,u.jsx)("span",{className:"footer__link-separator",children:"\xb7"})}function vt(e){let{item:t}=e;return t.html?(0,u.jsx)("span",{className:"footer__link-item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)(ht,{item:t})}function xt(e){let{links:t}=e;return(0,u.jsx)("div",{className:"footer__links text--center",children:(0,u.jsx)("div",{className:"footer__links",children:t.map(((e,n)=>(0,u.jsxs)(r.Fragment,{children:[(0,u.jsx)(vt,{item:e}),t.length!==n+1&&(0,u.jsx)(bt,{})]},n)))})})}function wt(e){let{links:t}=e;return function(e){return"title"in e[0]}(t)?(0,u.jsx)(yt,{columns:t}):(0,u.jsx)(xt,{links:t})}var kt=n(9965);const St={footerLogoLink:"footerLogoLink_BH7S"};function Ct(e){let{logo:t}=e;const{withBaseUrl:n}=(0,X.C)(),r={light:n(t.src),dark:n(t.srcDark??t.src)};return(0,u.jsx)(kt.Z,{className:(0,a.Z)("footer__logo",t.className),alt:t.alt,sources:r,width:t.width,height:t.height,style:t.style})}function Et(e){let{logo:t}=e;return t.href?(0,u.jsx)(K.Z,{href:t.href,className:St.footerLogoLink,target:t.target,children:(0,u.jsx)(Ct,{logo:t})}):(0,u.jsx)(Ct,{logo:t})}function _t(e){let{copyright:t}=e;return(0,u.jsx)("div",{className:"footer__copyright",dangerouslySetInnerHTML:{__html:t}})}function Nt(e){let{style:t,links:n,logo:r,copyright:o}=e;return(0,u.jsx)("footer",{className:(0,a.Z)("footer",{"footer--dark":"dark"===t}),children:(0,u.jsxs)("div",{className:"container container-fluid",children:[n,(r||o)&&(0,u.jsxs)("div",{className:"footer__bottom text--center",children:[r&&(0,u.jsx)("div",{className:"margin-bottom--sm",children:r}),o]})]})})}function Tt(){const{footer:e}=(0,x.L)();if(!e)return null;const{copyright:t,links:n,logo:r,style:a}=e;return(0,u.jsx)(Nt,{style:a,links:n&&n.length>0&&(0,u.jsx)(wt,{links:n}),logo:r&&(0,u.jsx)(Et,{logo:r}),copyright:t&&(0,u.jsx)(_t,{copyright:t})})}const Lt=r.memo(Tt),Pt=(0,A.Qc)([D.S,w.pl,P.OC,ve.L5,s.VC,function(e){let{children:t}=e;return(0,u.jsx)(O.n2,{children:(0,u.jsx)(L.M,{children:(0,u.jsx)(R,{children:t})})})}]);function At(e){let{children:t}=e;return(0,u.jsx)(Pt,{children:t})}var Ot=n(2503);function jt(e){let{error:t,tryAgain:n}=e;return(0,u.jsx)("main",{className:"container margin-vert--xl",children:(0,u.jsx)("div",{className:"row",children:(0,u.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,u.jsx)(Ot.Z,{as:"h1",className:"hero__title",children:(0,u.jsx)(l.Z,{id:"theme.ErrorPageContent.title",description:"The title of the fallback page when the page crashed",children:"This page crashed."})}),(0,u.jsx)("div",{className:"margin-vert--lg",children:(0,u.jsx)(rt,{onClick:n,className:"button button--primary shadow--lw"})}),(0,u.jsx)("hr",{}),(0,u.jsx)("div",{className:"margin-vert--md",children:(0,u.jsx)(at,{error:t})})]})})})}const Rt={mainWrapper:"mainWrapper_z2l0"};function It(e){const{children:t,noFooter:n,wrapperClassName:r,title:i,description:l}=e;return(0,y.t)(),(0,u.jsxs)(At,{children:[(0,u.jsx)(s.d,{title:i,description:l}),(0,u.jsx)(v,{}),(0,u.jsx)(T,{}),(0,u.jsx)(ft,{}),(0,u.jsx)("div",{id:d,className:(0,a.Z)(g.k.wrapper.main,Rt.mainWrapper,r),children:(0,u.jsx)(o.Z,{fallback:e=>(0,u.jsx)(jt,{...e}),children:t})}),!n&&(0,u.jsx)(Lt,{})]})}},1327:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(7294);var r=n(3692),a=n(4996),o=n(2263),s=n(6668),i=n(9965),l=n(5893);function c(e){let{logo:t,alt:n,imageClassName:r}=e;const o={light:(0,a.Z)(t.src),dark:(0,a.Z)(t.srcDark||t.src)},s=(0,l.jsx)(i.Z,{className:t.className,sources:o,height:t.height,width:t.width,alt:n,style:t.style});return r?(0,l.jsx)("div",{className:r,children:s}):s}function u(e){const{siteConfig:{title:t}}=(0,o.Z)(),{navbar:{title:n,logo:i}}=(0,s.L)(),{imageClassName:u,titleClassName:d,...p}=e,f=(0,a.Z)(i?.href||"/"),h=n?"":t,m=i?.alt??h;return(0,l.jsxs)(r.Z,{to:f,...p,...i?.target&&{target:i.target},children:[i&&(0,l.jsx)(c,{logo:i,alt:m,imageClassName:u}),null!=n&&(0,l.jsx)("b",{className:d,children:n})]})}},197:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(7294);var r=n(5742),a=n(5893);function o(e){let{locale:t,version:n,tag:o}=e;const s=t;return(0,a.jsxs)(r.Z,{children:[t&&(0,a.jsx)("meta",{name:"docusaurus_locale",content:t}),n&&(0,a.jsx)("meta",{name:"docusaurus_version",content:n}),o&&(0,a.jsx)("meta",{name:"docusaurus_tag",content:o}),s&&(0,a.jsx)("meta",{name:"docsearch:language",content:s}),n&&(0,a.jsx)("meta",{name:"docsearch:version",content:n}),o&&(0,a.jsx)("meta",{name:"docsearch:docusaurus_tag",content:o})]})}},9965:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(7294),a=n(512),o=n(2389),s=n(2949);const i={themedComponent:"themedComponent_mlkZ","themedComponent--light":"themedComponent--light_NVdE","themedComponent--dark":"themedComponent--dark_xIcU"};var l=n(5893);function c(e){let{className:t,children:n}=e;const c=(0,o.Z)(),{colorMode:u}=(0,s.I)();return(0,l.jsx)(l.Fragment,{children:(c?"dark"===u?["dark"]:["light"]:["light","dark"]).map((e=>{const o=n({theme:e,className:(0,a.Z)(t,i.themedComponent,i[`themedComponent--${e}`])});return(0,l.jsx)(r.Fragment,{children:o},e)}))})}function u(e){const{sources:t,className:n,alt:r,...a}=e;return(0,l.jsx)(c,{className:n,children:e=>{let{theme:n,className:o}=e;return(0,l.jsx)("img",{src:t[n],alt:r,className:o,...a})}})}},6043:(e,t,n)=>{"use strict";n.d(t,{u:()=>c,z:()=>y});var r=n(7294),a=n(412),o=n(469),s=n(1442),i=n(5893);const l="ease-in-out";function c(e){let{initialState:t}=e;const[n,a]=(0,r.useState)(t??!1),o=(0,r.useCallback)((()=>{a((e=>!e))}),[]);return{collapsed:n,setCollapsed:a,toggleCollapsed:o}}const u={display:"none",overflow:"hidden",height:"0px"},d={display:"block",overflow:"visible",height:"auto"};function p(e,t){const n=t?u:d;e.style.display=n.display,e.style.overflow=n.overflow,e.style.height=n.height}function f(e){let{collapsibleRef:t,collapsed:n,animation:a}=e;const o=(0,r.useRef)(!1);(0,r.useEffect)((()=>{const e=t.current;function r(){const t=e.scrollHeight,n=a?.duration??function(e){if((0,s.n)())return 1;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}(t);return{transition:`height ${n}ms ${a?.easing??l}`,height:`${t}px`}}function i(){const t=r();e.style.transition=t.transition,e.style.height=t.height}if(!o.current)return p(e,n),void(o.current=!0);return e.style.willChange="height",function(){const t=requestAnimationFrame((()=>{n?(i(),requestAnimationFrame((()=>{e.style.height=u.height,e.style.overflow=u.overflow}))):(e.style.display="block",requestAnimationFrame((()=>{i()})))}));return()=>cancelAnimationFrame(t)}()}),[t,n,a])}function h(e){if(!a.Z.canUseDOM)return e?u:d}function m(e){let{as:t="div",collapsed:n,children:a,animation:o,onCollapseTransitionEnd:s,className:l,disableSSRStyle:c}=e;const u=(0,r.useRef)(null);return f({collapsibleRef:u,collapsed:n,animation:o}),(0,i.jsx)(t,{ref:u,style:c?void 0:h(n),onTransitionEnd:e=>{"height"===e.propertyName&&(p(u.current,n),s?.(n))},className:l,children:a})}function g(e){let{collapsed:t,...n}=e;const[a,s]=(0,r.useState)(!t),[l,c]=(0,r.useState)(t);return(0,o.Z)((()=>{t||s(!0)}),[t]),(0,o.Z)((()=>{a&&c(t)}),[a,t]),a?(0,i.jsx)(m,{...n,collapsed:l}):null}function y(e){let{lazy:t,...n}=e;const r=t?g:m;return(0,i.jsx)(r,{...n})}},9689:(e,t,n)=>{"use strict";n.d(t,{nT:()=>m,pl:()=>h});var r=n(7294),a=n(2389),o=n(12),s=n(902),i=n(6668),l=n(5893);const c=(0,o.WA)("docusaurus.announcement.dismiss"),u=(0,o.WA)("docusaurus.announcement.id"),d=()=>"true"===c.get(),p=e=>c.set(String(e)),f=r.createContext(null);function h(e){let{children:t}=e;const n=function(){const{announcementBar:e}=(0,i.L)(),t=(0,a.Z)(),[n,o]=(0,r.useState)((()=>!!t&&d()));(0,r.useEffect)((()=>{o(d())}),[]);const s=(0,r.useCallback)((()=>{p(!0),o(!0)}),[]);return(0,r.useEffect)((()=>{if(!e)return;const{id:t}=e;let n=u.get();"annoucement-bar"===n&&(n="announcement-bar");const r=t!==n;u.set(t),r&&p(!1),!r&&d()||o(!1)}),[e]),(0,r.useMemo)((()=>({isActive:!!e&&!n,close:s})),[e,n,s])}();return(0,l.jsx)(f.Provider,{value:n,children:t})}function m(){const e=(0,r.useContext)(f);if(!e)throw new s.i6("AnnouncementBarProvider");return e}},2949:(e,t,n)=>{"use strict";n.d(t,{I:()=>y,S:()=>g});var r=n(7294),a=n(412),o=n(902),s=n(12),i=n(6668),l=n(5893);const c=r.createContext(void 0),u="theme",d=(0,s.WA)(u),p={light:"light",dark:"dark"},f=e=>e===p.dark?p.dark:p.light,h=e=>a.Z.canUseDOM?f(document.documentElement.getAttribute("data-theme")):f(e),m=e=>{d.set(f(e))};function g(e){let{children:t}=e;const n=function(){const{colorMode:{defaultMode:e,disableSwitch:t,respectPrefersColorScheme:n}}=(0,i.L)(),[a,o]=(0,r.useState)(h(e));(0,r.useEffect)((()=>{t&&d.del()}),[t]);const s=(0,r.useCallback)((function(t,r){void 0===r&&(r={});const{persist:a=!0}=r;t?(o(t),a&&m(t)):(o(n?window.matchMedia("(prefers-color-scheme: dark)").matches?p.dark:p.light:e),d.del())}),[n,e]);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-theme",f(a))}),[a]),(0,r.useEffect)((()=>{if(t)return;const e=e=>{if(e.key!==u)return;const t=d.get();null!==t&&s(f(t))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[t,s]);const l=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{if(t&&!n)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>{window.matchMedia("print").matches||l.current?l.current=window.matchMedia("print").matches:s(null)};return e.addListener(r),()=>e.removeListener(r)}),[s,t,n]),(0,r.useMemo)((()=>({colorMode:a,setColorMode:s,get isDarkTheme(){return a===p.dark},setLightTheme(){s(p.light)},setDarkTheme(){s(p.dark)}})),[a,s])}();return(0,l.jsx)(c.Provider,{value:n,children:t})}function y(){const e=(0,r.useContext)(c);if(null==e)throw new o.i6("ColorModeProvider","Please see https://docusaurus.io/docs/api/themes/configuration#use-color-mode.");return e}},373:(e,t,n)=>{"use strict";n.d(t,{J:()=>v,L5:()=>y});var r=n(7294),a=n(143),o=n(9935),s=n(6668),i=n(3438),l=n(902),c=n(12),u=n(5893);const d=e=>`docs-preferred-version-${e}`,p={save:(e,t,n)=>{(0,c.WA)(d(e),{persistence:t}).set(n)},read:(e,t)=>(0,c.WA)(d(e),{persistence:t}).get(),clear:(e,t)=>{(0,c.WA)(d(e),{persistence:t}).del()}},f=e=>Object.fromEntries(e.map((e=>[e,{preferredVersionName:null}])));const h=r.createContext(null);function m(){const e=(0,a._r)(),t=(0,s.L)().docs.versionPersistence,n=(0,r.useMemo)((()=>Object.keys(e)),[e]),[o,i]=(0,r.useState)((()=>f(n)));(0,r.useEffect)((()=>{i(function(e){let{pluginIds:t,versionPersistence:n,allDocsData:r}=e;function a(e){const t=p.read(e,n);return r[e].versions.some((e=>e.name===t))?{preferredVersionName:t}:(p.clear(e,n),{preferredVersionName:null})}return Object.fromEntries(t.map((e=>[e,a(e)])))}({allDocsData:e,versionPersistence:t,pluginIds:n}))}),[e,t,n]);return[o,(0,r.useMemo)((()=>({savePreferredVersion:function(e,n){p.save(e,t,n),i((t=>({...t,[e]:{preferredVersionName:n}})))}})),[t])]}function g(e){let{children:t}=e;const n=m();return(0,u.jsx)(h.Provider,{value:n,children:t})}function y(e){let{children:t}=e;return i.cE?(0,u.jsx)(g,{children:t}):(0,u.jsx)(u.Fragment,{children:t})}function b(){const e=(0,r.useContext)(h);if(!e)throw new l.i6("DocsPreferredVersionContextProvider");return e}function v(e){void 0===e&&(e=o.m);const t=(0,a.zh)(e),[n,s]=b(),{preferredVersionName:i}=n[e];return{preferredVersion:t.versions.find((e=>e.name===i))??null,savePreferredVersionName:(0,r.useCallback)((t=>{s.savePreferredVersion(e,t)}),[s,e])}}},1116:(e,t,n)=>{"use strict";n.d(t,{V:()=>c,b:()=>l});var r=n(7294),a=n(902),o=n(5893);const s=Symbol("EmptyContext"),i=r.createContext(s);function l(e){let{children:t,name:n,items:a}=e;const s=(0,r.useMemo)((()=>n&&a?{name:n,items:a}:null),[n,a]);return(0,o.jsx)(i.Provider,{value:s,children:t})}function c(){const e=(0,r.useContext)(i);if(e===s)throw new a.i6("DocsSidebarProvider");return e}},4477:(e,t,n)=>{"use strict";n.d(t,{E:()=>l,q:()=>i});var r=n(7294),a=n(902),o=n(5893);const s=r.createContext(null);function i(e){let{children:t,version:n}=e;return(0,o.jsx)(s.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(s);if(null===e)throw new a.i6("DocsVersionProvider");return e}},3163:(e,t,n)=>{"use strict";n.d(t,{M:()=>p,e:()=>f});var r=n(7294),a=n(3102),o=n(7524),s=n(1980),i=n(6668),l=n(902),c=n(5893);const u=r.createContext(void 0);function d(){const e=function(){const e=(0,a.HY)(),{items:t}=(0,i.L)().navbar;return 0===t.length&&!e.component}(),t=(0,o.i)(),n=!e&&"mobile"===t,[l,c]=(0,r.useState)(!1);(0,s.Rb)((()=>{if(l)return c(!1),!1}));const u=(0,r.useCallback)((()=>{c((e=>!e))}),[]);return(0,r.useEffect)((()=>{"desktop"===t&&c(!1)}),[t]),(0,r.useMemo)((()=>({disabled:e,shouldRender:n,toggle:u,shown:l})),[e,n,u,l])}function p(e){let{children:t}=e;const n=d();return(0,c.jsx)(u.Provider,{value:n,children:t})}function f(){const e=r.useContext(u);if(void 0===e)throw new l.i6("NavbarMobileSidebarProvider");return e}},3102:(e,t,n)=>{"use strict";n.d(t,{HY:()=>l,Zo:()=>c,n2:()=>i});var r=n(7294),a=n(902),o=n(5893);const s=r.createContext(null);function i(e){let{children:t}=e;const n=(0,r.useState)({component:null,props:null});return(0,o.jsx)(s.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(s);if(!e)throw new a.i6("NavbarSecondaryMenuContentProvider");return e[0]}function c(e){let{component:t,props:n}=e;const o=(0,r.useContext)(s);if(!o)throw new a.i6("NavbarSecondaryMenuContentProvider");const[,i]=o,l=(0,a.Ql)(n);return(0,r.useEffect)((()=>{i({component:t,props:l})}),[i,t,l]),(0,r.useEffect)((()=>()=>i({component:null,props:null})),[i]),null}},9727:(e,t,n)=>{"use strict";n.d(t,{h:()=>a,t:()=>o});var r=n(7294);const a="navigation-with-keyboard";function o(){(0,r.useEffect)((()=>{function e(e){"keydown"===e.type&&"Tab"===e.key&&document.body.classList.add(a),"mousedown"===e.type&&document.body.classList.remove(a)}return document.addEventListener("keydown",e),document.addEventListener("mousedown",e),()=>{document.body.classList.remove(a),document.removeEventListener("keydown",e),document.removeEventListener("mousedown",e)}}),[])}},7524:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(7294),a=n(412);const o={desktop:"desktop",mobile:"mobile",ssr:"ssr"},s=996;function i(e){let{desktopBreakpoint:t=s}=void 0===e?{}:e;const[n,i]=(0,r.useState)((()=>"ssr"));return(0,r.useEffect)((()=>{function e(){i(function(e){if(!a.Z.canUseDOM)throw new Error("getWindowSize() should only be called after React hydration");return window.innerWidth>e?o.desktop:o.mobile}(t))}return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[t]),n}},5281:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});const r={page:{blogListPage:"blog-list-page",blogPostPage:"blog-post-page",blogTagsListPage:"blog-tags-list-page",blogTagPostListPage:"blog-tags-post-list-page",docsDocPage:"docs-doc-page",docsTagsListPage:"docs-tags-list-page",docsTagDocListPage:"docs-tags-doc-list-page",mdxPage:"mdx-page"},wrapper:{main:"main-wrapper",blogPages:"blog-wrapper",docsPages:"docs-wrapper",mdxPages:"mdx-wrapper"},common:{editThisPage:"theme-edit-this-page",lastUpdated:"theme-last-updated",backToTopButton:"theme-back-to-top-button",codeBlock:"theme-code-block",admonition:"theme-admonition",unlistedBanner:"theme-unlisted-banner",admonitionType:e=>`theme-admonition-${e}`},layout:{},docs:{docVersionBanner:"theme-doc-version-banner",docVersionBadge:"theme-doc-version-badge",docBreadcrumbs:"theme-doc-breadcrumbs",docMarkdown:"theme-doc-markdown",docTocMobile:"theme-doc-toc-mobile",docTocDesktop:"theme-doc-toc-desktop",docFooter:"theme-doc-footer",docFooterTagsRow:"theme-doc-footer-tags-row",docFooterEditMetaRow:"theme-doc-footer-edit-meta-row",docSidebarContainer:"theme-doc-sidebar-container",docSidebarMenu:"theme-doc-sidebar-menu",docSidebarItemCategory:"theme-doc-sidebar-item-category",docSidebarItemLink:"theme-doc-sidebar-item-link",docSidebarItemCategoryLevel:e=>`theme-doc-sidebar-item-category-level-${e}`,docSidebarItemLinkLevel:e=>`theme-doc-sidebar-item-link-level-${e}`},blog:{}}},1442:(e,t,n)=>{"use strict";function r(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}n.d(t,{n:()=>r})},3438:(e,t,n)=>{"use strict";n.d(t,{LM:()=>f,SN:()=>C,_F:()=>g,cE:()=>p,f:()=>b,lO:()=>w,oz:()=>k,s1:()=>x,vY:()=>S});var r=n(7294),a=n(6550),o=n(8790),s=n(143),i=n(373),l=n(4477),c=n(1116),u=n(7392),d=n(8596);const p=!!s._r;function f(e){return"link"!==e.type||e.unlisted?"category"===e.type?function(e){if(e.href&&!e.linkUnlisted)return e.href;for(const t of e.items){const e=f(t);if(e)return e}}(e):void 0:e.href}const h=(e,t)=>void 0!==e&&(0,d.Mg)(e,t),m=(e,t)=>e.some((e=>g(e,t)));function g(e,t){return"link"===e.type?h(e.href,t):"category"===e.type&&(h(e.href,t)||m(e.items,t))}function y(e,t){switch(e.type){case"category":return g(e,t)||e.items.some((e=>y(e,t)));case"link":return!e.unlisted||g(e,t);default:return!0}}function b(e,t){return(0,r.useMemo)((()=>e.filter((e=>y(e,t)))),[e,t])}function v(e){let{sidebarItems:t,pathname:n,onlyCategories:r=!1}=e;const a=[];return function e(t){for(const o of t)if("category"===o.type&&((0,d.Mg)(o.href,n)||e(o.items))||"link"===o.type&&(0,d.Mg)(o.href,n)){return r&&"category"!==o.type||a.unshift(o),!0}return!1}(t),a}function x(){const e=(0,c.V)(),{pathname:t}=(0,a.TH)(),n=(0,s.gA)()?.pluginData.breadcrumbs;return!1!==n&&e?v({sidebarItems:e.items,pathname:t}):null}function w(e){const{activeVersion:t}=(0,s.Iw)(e),{preferredVersion:n}=(0,i.J)(e),a=(0,s.yW)(e);return(0,r.useMemo)((()=>(0,u.j)([t,n,a].filter(Boolean))),[t,n,a])}function k(e,t){const n=w(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.sidebars?Object.entries(e.sidebars):[])),r=t.find((t=>t[0]===e));if(!r)throw new Error(`Can't find any sidebar with id "${e}" in version${n.length>1?"s":""} ${n.map((e=>e.name)).join(", ")}".\nAvailable sidebar ids are:\n- ${t.map((e=>e[0])).join("\n- ")}`);return r[1]}),[e,n])}function S(e,t){const n=w(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.docs)),r=t.find((t=>t.id===e));if(!r){if(n.flatMap((e=>e.draftIds)).includes(e))return null;throw new Error(`Couldn't find any doc with id "${e}" in version${n.length>1?"s":""} "${n.map((e=>e.name)).join(", ")}".\nAvailable doc ids are:\n- ${(0,u.j)(t.map((e=>e.id))).join("\n- ")}`)}return r}),[e,n])}function C(e){let{route:t}=e;const n=(0,a.TH)(),r=(0,l.E)(),s=t.routes,i=s.find((e=>(0,a.LX)(n.pathname,e)));if(!i)return null;const c=i.sidebar,u=c?r.docsSidebars[c]:void 0;return{docElement:(0,o.H)(s),sidebarName:c,sidebarItems:u}}},1980:(e,t,n)=>{"use strict";n.d(t,{Rb:()=>s,_X:()=>i});var r=n(7294),a=n(6550),o=n(902);function s(e){!function(e){const t=(0,a.k6)(),n=(0,o.zX)(e);(0,r.useEffect)((()=>t.block(((e,t)=>n(e,t)))),[t,n])}(((t,n)=>{if("POP"===n)return e(t,n)}))}function i(e){return function(e){const t=(0,a.k6)();return(0,r.useSyncExternalStore)(t.listen,(()=>e(t)),(()=>e(t)))}((t=>null===e?null:new URLSearchParams(t.location.search).get(e)))}},7392:(e,t,n)=>{"use strict";function r(e,t){return void 0===t&&(t=(e,t)=>e===t),e.filter(((n,r)=>e.findIndex((e=>t(e,n)))!==r))}function a(e){return Array.from(new Set(e))}n.d(t,{j:()=>a,l:()=>r})},1944:(e,t,n)=>{"use strict";n.d(t,{FG:()=>f,d:()=>d,VC:()=>h});var r=n(7294),a=n(512),o=n(5742),s=n(226);function i(){const e=r.useContext(s._);if(!e)throw new Error("Unexpected: no Docusaurus route context found");return e}var l=n(4996),c=n(2263);var u=n(5893);function d(e){let{title:t,description:n,keywords:r,image:a,children:s}=e;const i=function(e){const{siteConfig:t}=(0,c.Z)(),{title:n,titleDelimiter:r}=t;return e?.trim().length?`${e.trim()} ${r} ${n}`:n}(t),{withBaseUrl:d}=(0,l.C)(),p=a?d(a,{absolute:!0}):void 0;return(0,u.jsxs)(o.Z,{children:[t&&(0,u.jsx)("title",{children:i}),t&&(0,u.jsx)("meta",{property:"og:title",content:i}),n&&(0,u.jsx)("meta",{name:"description",content:n}),n&&(0,u.jsx)("meta",{property:"og:description",content:n}),r&&(0,u.jsx)("meta",{name:"keywords",content:Array.isArray(r)?r.join(","):r}),p&&(0,u.jsx)("meta",{property:"og:image",content:p}),p&&(0,u.jsx)("meta",{name:"twitter:image",content:p}),s]})}const p=r.createContext(void 0);function f(e){let{className:t,children:n}=e;const s=r.useContext(p),i=(0,a.Z)(s,t);return(0,u.jsxs)(p.Provider,{value:i,children:[(0,u.jsx)(o.Z,{children:(0,u.jsx)("html",{className:i})}),n]})}function h(e){let{children:t}=e;const n=i(),r=`plugin-${n.plugin.name.replace(/docusaurus-(?:plugin|theme)-(?:content-)?/gi,"")}`;const o=`plugin-id-${n.plugin.id}`;return(0,u.jsx)(f,{className:(0,a.Z)(r,o),children:t})}},902:(e,t,n)=>{"use strict";n.d(t,{D9:()=>i,Qc:()=>u,Ql:()=>c,i6:()=>l,zX:()=>s});var r=n(7294),a=n(469),o=n(5893);function s(e){const t=(0,r.useRef)(e);return(0,a.Z)((()=>{t.current=e}),[e]),(0,r.useCallback)((function(){return t.current(...arguments)}),[])}function i(e){const t=(0,r.useRef)();return(0,a.Z)((()=>{t.current=e})),t.current}class l extends Error{constructor(e,t){super(),this.name="ReactContextError",this.message=`Hook ${this.stack?.split("\n")[1]?.match(/at (?:\w+\.)?(?<name>\w+)/)?.groups.name??""} is called outside the <${e}>. ${t??""}`}}function c(e){const t=Object.entries(e);return t.sort(((e,t)=>e[0].localeCompare(t[0]))),(0,r.useMemo)((()=>e),t.flat())}function u(e){return t=>{let{children:n}=t;return(0,o.jsx)(o.Fragment,{children:e.reduceRight(((e,t)=>(0,o.jsx)(t,{children:e})),n)})}}},8596:(e,t,n)=>{"use strict";n.d(t,{Mg:()=>s,Ns:()=>i});var r=n(7294),a=n(723),o=n(2263);function s(e,t){const n=e=>(!e||e.endsWith("/")?e:`${e}/`)?.toLowerCase();return n(e)===n(t)}function i(){const{baseUrl:e}=(0,o.Z)().siteConfig;return(0,r.useMemo)((()=>function(e){let{baseUrl:t,routes:n}=e;function r(e){return e.path===t&&!0===e.exact}function a(e){return e.path===t&&!e.exact}return function e(t){if(0===t.length)return;return t.find(r)||e(t.filter(a).flatMap((e=>e.routes??[])))}(n)}({routes:a.Z,baseUrl:e})),[e])}},2466:(e,t,n)=>{"use strict";n.d(t,{Ct:()=>m,OC:()=>u,RF:()=>f,o5:()=>h});var r=n(7294),a=n(412),o=n(2389),s=n(469),i=n(902),l=n(5893);const c=r.createContext(void 0);function u(e){let{children:t}=e;const n=function(){const e=(0,r.useRef)(!0);return(0,r.useMemo)((()=>({scrollEventsEnabledRef:e,enableScrollEvents:()=>{e.current=!0},disableScrollEvents:()=>{e.current=!1}})),[])}();return(0,l.jsx)(c.Provider,{value:n,children:t})}function d(){const e=(0,r.useContext)(c);if(null==e)throw new i.i6("ScrollControllerProvider");return e}const p=()=>a.Z.canUseDOM?{scrollX:window.pageXOffset,scrollY:window.pageYOffset}:null;function f(e,t){void 0===t&&(t=[]);const{scrollEventsEnabledRef:n}=d(),a=(0,r.useRef)(p()),o=(0,i.zX)(e);(0,r.useEffect)((()=>{const e=()=>{if(!n.current)return;const e=p();o(e,a.current),a.current=e},t={passive:!0};return e(),window.addEventListener("scroll",e,t),()=>window.removeEventListener("scroll",e,t)}),[o,n,...t])}function h(){const e=d(),t=function(){const e=(0,r.useRef)({elem:null,top:0}),t=(0,r.useCallback)((t=>{e.current={elem:t,top:t.getBoundingClientRect().top}}),[]),n=(0,r.useCallback)((()=>{const{current:{elem:t,top:n}}=e;if(!t)return{restored:!1};const r=t.getBoundingClientRect().top-n;return r&&window.scrollBy({left:0,top:r}),e.current={elem:null,top:0},{restored:0!==r}}),[]);return(0,r.useMemo)((()=>({save:t,restore:n})),[n,t])}(),n=(0,r.useRef)(void 0),a=(0,r.useCallback)((r=>{t.save(r),e.disableScrollEvents(),n.current=()=>{const{restored:r}=t.restore();if(n.current=void 0,r){const t=()=>{e.enableScrollEvents(),window.removeEventListener("scroll",t)};window.addEventListener("scroll",t)}else e.enableScrollEvents()}}),[e,t]);return(0,s.Z)((()=>{queueMicrotask((()=>n.current?.()))})),{blockElementScrollPositionUntilNextRender:a}}function m(){const e=(0,r.useRef)(null),t=(0,o.Z)()&&"smooth"===getComputedStyle(document.documentElement).scrollBehavior;return{startScroll:n=>{e.current=t?function(e){return window.scrollTo({top:e,behavior:"smooth"}),()=>{}}(n):function(e){let t=null;const n=document.documentElement.scrollTop>e;return function r(){const a=document.documentElement.scrollTop;(n&&a>e||!n&&a<e)&&(t=requestAnimationFrame(r),window.scrollTo(0,Math.floor(.85*(a-e))+e))}(),()=>t&&cancelAnimationFrame(t)}(n)},cancelScroll:()=>e.current?.()}}},3320:(e,t,n)=>{"use strict";n.d(t,{HX:()=>r,os:()=>a});n(2263);const r="default";function a(e,t){return`docs-${e}-${t}`}},12:(e,t,n)=>{"use strict";n.d(t,{Nk:()=>u,WA:()=>c});var r=n(7294);const a="localStorage";function o(e){let{key:t,oldValue:n,newValue:r,storage:a}=e;if(n===r)return;const o=document.createEvent("StorageEvent");o.initStorageEvent("storage",!1,!1,t,n,r,window.location.href,a),window.dispatchEvent(o)}function s(e){if(void 0===e&&(e=a),"undefined"==typeof window)throw new Error("Browser storage is not available on Node.js/Docusaurus SSR process.");if("none"===e)return null;try{return window[e]}catch(n){return t=n,i||(console.warn("Docusaurus browser storage is not available.\nPossible reasons: running Docusaurus in an iframe, in an incognito browser session, or using too strict browser privacy settings.",t),i=!0),null}var t}let i=!1;const l={get:()=>null,set:()=>{},del:()=>{},listen:()=>()=>{}};function c(e,t){if("undefined"==typeof window)return function(e){function t(){throw new Error(`Illegal storage API usage for storage key "${e}".\nDocusaurus storage APIs are not supposed to be called on the server-rendering process.\nPlease only call storage APIs in effects and event handlers.`)}return{get:t,set:t,del:t,listen:t}}(e);const n=s(t?.persistence);return null===n?l:{get:()=>{try{return n.getItem(e)}catch(t){return console.error(`Docusaurus storage error, can't get key=${e}`,t),null}},set:t=>{try{const r=n.getItem(e);n.setItem(e,t),o({key:e,oldValue:r,newValue:t,storage:n})}catch(r){console.error(`Docusaurus storage error, can't set ${e}=${t}`,r)}},del:()=>{try{const t=n.getItem(e);n.removeItem(e),o({key:e,oldValue:t,newValue:null,storage:n})}catch(t){console.error(`Docusaurus storage error, can't delete key=${e}`,t)}},listen:t=>{try{const r=r=>{r.storageArea===n&&r.key===e&&t(r)};return window.addEventListener("storage",r),()=>window.removeEventListener("storage",r)}catch(r){return console.error(`Docusaurus storage error, can't listen for changes of key=${e}`,r),()=>{}}}}}function u(e,t){const n=(0,r.useRef)((()=>null===e?l:c(e,t))).current(),a=(0,r.useCallback)((e=>"undefined"==typeof window?()=>{}:n.listen(e)),[n]);return[(0,r.useSyncExternalStore)(a,(()=>"undefined"==typeof window?null:n.get()),(()=>null)),n]}},4711:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});var r=n(2263),a=n(6550),o=n(8780);function s(){const{siteConfig:{baseUrl:e,url:t,trailingSlash:n},i18n:{defaultLocale:s,currentLocale:i}}=(0,r.Z)(),{pathname:l}=(0,a.TH)(),c=(0,o.applyTrailingSlash)(l,{trailingSlash:n,baseUrl:e}),u=i===s?e:e.replace(`/${i}/`,"/"),d=c.replace(e,"");return{createUrl:function(e){let{locale:n,fullyQualified:r}=e;return`${r?t:""}${function(e){return e===s?`${u}`:`${u}${e}/`}(n)}${d}`}}}},5936:(e,t,n)=>{"use strict";n.d(t,{S:()=>s});var r=n(7294),a=n(6550),o=n(902);function s(e){const t=(0,a.TH)(),n=(0,o.D9)(t),s=(0,o.zX)(e);(0,r.useEffect)((()=>{n&&t!==n&&s({location:t,previousLocation:n})}),[s,t,n])}},6668:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(2263);function a(){return(0,r.Z)().siteConfig.themeConfig}},8802:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const{trailingSlash:n,baseUrl:r}=t;if(e.startsWith("#"))return e;if(void 0===n)return e;const[a]=e.split(/[#?]/),o="/"===a||a===r?a:(s=a,n?function(e){return e.endsWith("/")?e:`${e}/`}(s):function(e){return e.endsWith("/")?e.slice(0,-1):e}(s));var s;return e.replace(a,o)}},4143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=void 0,t.getErrorCausalChain=function e(t){return t.cause?[t,...e(t.cause)]:[t]}},8780:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=t.applyTrailingSlash=t.blogPostContainerID=void 0,t.blogPostContainerID="__blog-post-container";var a=n(8802);Object.defineProperty(t,"applyTrailingSlash",{enumerable:!0,get:function(){return r(a).default}});var o=n(4143);Object.defineProperty(t,"getErrorCausalChain",{enumerable:!0,get:function(){return o.getErrorCausalChain}})},311:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});n(7294);var r=n(1728);const a={loadingRing:"loadingRing_RJI3","loading-ring":"loading-ring_FB5o"};var o=n(5893);function s(e){let{className:t}=e;return(0,o.jsxs)("div",{className:(0,r.Z)(a.loadingRing,t),children:[(0,o.jsx)("div",{}),(0,o.jsx)("div",{}),(0,o.jsx)("div",{}),(0,o.jsx)("div",{})]})}},22:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(1336),a=n.n(r),o=n(8087);const s=new Map;function i(e,t){const n=`${e}${t}`;let r=s.get(n);return r||(r=async function(e,t){{const n=`${e}${o.J.replace("{dir}",t?`-${t.replace(/\//g,"-")}`:"")}`;if(new URL(n,location.origin).origin!==location.origin)throw new Error("Unexpected version url");const r=await(await fetch(n)).json(),s=r.map(((e,t)=>{let{documents:n,index:r}=e;return{type:t,documents:n,index:a().Index.load(r)}})),i=r.reduce(((e,t)=>{for(const n of t.index.invertedIndex)/\p{Unified_Ideograph}/u.test(n[0][0])&&e.add(n[0]);return e}),new Set);return{wrappedIndexes:s,zhDictionary:Array.from(i)}}return{wrappedIndexes:[],zhDictionary:[]}}(e,t),s.set(n,r)),r}},8202:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var r=n(1336),a=n.n(r);var o=n(8087);function s(e){return i(e).concat(i(e.filter((e=>{const t=e[e.length-1];return!t.trailing&&t.maybeTyping})),!0))}function i(e,t){return e.map((e=>({tokens:e.map((e=>e.value)),term:e.map((e=>({value:e.value,presence:a().Query.presence.REQUIRED,wildcard:(t?e.trailing||e.maybeTyping:e.trailing)?a().Query.wildcard.TRAILING:a().Query.wildcard.NONE})))})))}function l(e,t,n){return function(r,i){const l=function(e,t){if(1===t.length&&["ja","jp","th"].includes(t[0]))return a()[t[0]].tokenizer(e).map((e=>e.toString()));let n=/[^-\s]+/g;return t.includes("zh")&&(n=/\w+|\p{Unified_Ideograph}+/gu),e.toLowerCase().match(n)||[]}(r,o.dK);if(0===l.length)return void i([]);const c=function(e,t){const n=function(e,t){const n=[];return function e(r,a){if(0===r.length)return void n.push(a);const o=r[0];if(/\p{Unified_Ideograph}/u.test(o)){const n=function(e,t){const n=[];return function e(r,a){let o=0,s=!1;for(const i of t)if(r.substr(0,i.length)===i){const t={missed:a.missed,term:a.term.concat({value:i})};r.length>i.length?e(r.substr(i.length),t):n.push(t),s=!0}else for(let t=i.length-1;t>o;t-=1){const l=i.substr(0,t);if(r.substr(0,t)===l){o=t;const i={missed:a.missed,term:a.term.concat({value:l,trailing:!0})};r.length>t?e(r.substr(t),i):n.push(i),s=!0;break}}s||(r.length>0?e(r.substr(1),{missed:a.missed+1,term:a.term}):a.term.length>0&&n.push(a))}(e,{missed:0,term:[]}),n.sort(((e,t)=>{const n=e.missed>0?1:0,r=t.missed>0?1:0;return n!==r?n-r:e.term.length-t.term.length})).map((e=>e.term))}(o,t);for(const t of n){const n=a.concat(...t);e(r.slice(1),n)}}else{const t=a.concat({value:o});e(r.slice(1),t)}}(e,[]),n}(e,t);if(0===n.length)return[{tokens:e,term:e.map((e=>({value:e,presence:a().Query.presence.REQUIRED,wildcard:a().Query.wildcard.LEADING|a().Query.wildcard.TRAILING})))}];for(const a of n)a[a.length-1].maybeTyping=!0;const r=[];for(const s of o.dK)if("en"===s)o._k||r.unshift(a().stopWordFilter);else{const e=a()[s];e.stopWordFilter&&r.unshift(e.stopWordFilter)}let i;if(r.length>0){const e=e=>r.reduce(((e,t)=>e.filter((e=>t(e.value)))),e);i=[];const t=[];for(const r of n){const n=e(r);i.push(n),n.length<r.length&&n.length>0&&t.push(n)}n.push(...t)}else i=n.slice();const l=[];for(const a of i)if(a.length>2)for(let e=a.length-1;e>=0;e-=1)l.push(a.slice(0,e).concat(a.slice(e+1)));return s(n).concat(s(l))}(l,t),u=[];e:for(const{term:t,tokens:a}of c)for(const{documents:r,index:o,type:s}of e)if(u.push(...o.query((e=>{for(const n of t)e.term(n.value,{wildcard:n.wildcard,presence:n.presence})})).slice(0,n).filter((e=>!u.some((t=>t.document.i.toString()===e.ref)))).slice(0,n-u.length).map((t=>{const n=r.find((e=>e.i.toString()===t.ref));return{document:n,type:s,page:0!==s&&e[0].documents.find((e=>e.i===n.p)),metadata:t.matchData.metadata,tokens:a,score:t.score}}))),u.length>=n)break e;!function(e){e.forEach(((e,t)=>{e.index=t})),e.sort(((t,n)=>{let r=t.type>0&&t.page?e.findIndex((e=>e.document===t.page)):t.index,a=n.type>0&&n.page?e.findIndex((e=>e.document===n.page)):n.index;return-1===r&&(r=t.index),-1===a&&(a=n.index),r===a?0===t.type?-1:0===n.type?1:t.index-n.index:r-a}))}(u),function(e){e.forEach(((t,n)=>{n>0&&t.page&&e.some((e=>e.document===t.page))&&(n<e.length-1&&e[n+1].page===t.page?t.isInterOfTree=!0:t.isLastOfTree=!0)}))}(u),i(u)}}},3926:(e,t,n)=>{"use strict";function r(e){return e.join(" \u203a ")}n.d(t,{e:()=>r})},1690:(e,t,n)=>{"use strict";function r(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}n.d(t,{X:()=>r})},1073:(e,t,n)=>{"use strict";function r(e,t){const n=[];for(const r of Object.values(e))r[t]&&n.push(...r[t].position);return n.sort(((e,t)=>e[0]-t[0]||t[1]-e[1]))}n.d(t,{m:()=>r})},2539:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var r=n(1690);function a(e,t,n){const o=[];for(const s of t){const n=e.toLowerCase().indexOf(s);if(n>=0){n>0&&o.push(a(e.substr(0,n),t)),o.push(`<mark>${(0,r.X)(e.substr(n,s.length))}</mark>`);const i=n+s.length;i<e.length&&o.push(a(e.substr(i),t));break}}return 0===o.length?n?`<mark>${(0,r.X)(e)}</mark>`:(0,r.X)(e):o.join("")}},726:(e,t,n)=>{"use strict";n.d(t,{o:()=>l});var r=n(1690),a=n(2539);const o=/\w+|\p{Unified_Ideograph}/u;function s(e){const t=[];let n=0,r=e;for(;r.length>0;){const a=r.match(o);if(!a){t.push(r);break}a.index>0&&t.push(r.substring(0,a.index)),t.push(a[0]),n+=a.index+a[0].length,r=e.substring(n)}return t}var i=n(8087);function l(e,t,n,o){void 0===o&&(o=i.Hk);const{chunkIndex:l,chunks:c}=function(e,t,n){const o=[];let i=0,l=0,c=-1;for(;i<t.length;){const[u,d]=t[i];if(i+=1,!(u<l)){if(u>l){const t=s(e.substring(l,u)).map((e=>({html:(0,r.X)(e),textLength:e.length})));for(const e of t)o.push(e)}-1===c&&(c=o.length),l=u+d,o.push({html:(0,a.C)(e.substring(u,l),n,!0),textLength:d})}}if(l<e.length){const t=s(e.substring(l)).map((e=>({html:(0,r.X)(e),textLength:e.length})));for(const e of t)o.push(e)}return{chunkIndex:c,chunks:o}}(e,t,n),u=c.slice(0,l),d=c[l],p=[d.html],f=c.slice(l+1);let h=d.textLength,m=0,g=0,y=!1,b=!1;for(;h<o;)if((m<=g||0===f.length)&&u.length>0){const e=u.pop();h+e.textLength<=o?(p.unshift(e.html),m+=e.textLength,h+=e.textLength):(y=!0,u.length=0)}else{if(!(f.length>0))break;{const e=f.shift();h+e.textLength<=o?(p.push(e.html),g+=e.textLength,h+=e.textLength):(b=!0,f.length=0)}}return(y||u.length>0)&&p.unshift("\u2026"),(b||f.length>0)&&p.push("\u2026"),p.join("")}},51:(e,t,n)=>{"use strict";function r(e,t){if("string"==typeof e)return{label:e,path:e};{const{label:n,path:r}=e;return"string"==typeof n?{label:n,path:r}:Object.prototype.hasOwnProperty.call(n,t)?{label:n[t],path:r}:{label:r,path:r}}}n.d(t,{_:()=>r})},8087:(e,t,n)=>{"use strict";n.d(t,{vc:()=>o,gQ:()=>f,H6:()=>c,hG:()=>g,l9:()=>h,dK:()=>r,_k:()=>a,pu:()=>p,AY:()=>u,t_:()=>d,Kc:()=>m,J:()=>s,Hk:()=>l,qo:()=>i,pQ:()=>y});n(1336);const r=["en"],a=!1,o=null,s="search-index{dir}.json",i=8,l=50,c=!1,u=!0,d=!0,p="right",f=void 0,h=!0,m=null,g=!1,y=!1},2358:(e,t,n)=>{"use strict";n.d(t,{lX:()=>S,q_:()=>L,ob:()=>m,PP:()=>A,Ep:()=>h,Hp:()=>g});var r=n(7462);function a(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,a=e.length;r<a;n+=1,r+=1)e[n]=e[r];e.pop()}const s=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],s=t&&t.split("/")||[],i=e&&a(e),l=t&&a(t),c=i||l;if(e&&a(e)?s=r:r.length&&(s.pop(),s=s.concat(r)),!s.length)return"/";if(s.length){var u=s[s.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,p=s.length;p>=0;p--){var f=s[p];"."===f?o(s,p):".."===f?(o(s,p),d++):d&&(o(s,p),d--)}if(!c)for(;d--;d)s.unshift("..");!c||""===s[0]||s[0]&&a(s[0])||s.unshift("");var h=s.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function i(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=i(t),a=i(n);return r!==t||a!==n?e(r,a):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var c=n(8776);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a}function m(e,t,n,a){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return n&&(o.key=n),a?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=s(o.pathname,a.pathname)):o.pathname=a.pathname:o.pathname||(o.pathname="/"),o}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function y(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,a){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,a):a(!0):a(!1!==o)}else a(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var b=!("undefined"==typeof window||!window.document||!window.document.createElement);function v(e,t){t(window.confirm(e))}var x="popstate",w="hashchange";function k(){try{return window.history.state||{}}catch(e){return{}}}function S(e){void 0===e&&(e={}),b||(0,c.Z)(!1);var t,n=window.history,a=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),s=e,i=s.forceRefresh,l=void 0!==i&&i,d=s.getUserConfirmation,g=void 0===d?v:d,S=s.keyLength,C=void 0===S?6:S,E=e.basename?f(u(e.basename)):"";function _(e){var t=e||{},n=t.key,r=t.state,a=window.location,o=a.pathname+a.search+a.hash;return E&&(o=p(o,E)),m(o,r,n)}function N(){return Math.random().toString(36).substr(2,C)}var T=y();function L(e){(0,r.Z)(B,e),B.length=n.length,T.notifyListeners(B.location,B.action)}function P(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||j(_(e.state))}function A(){j(_(k()))}var O=!1;function j(e){if(O)O=!1,L();else{T.confirmTransitionTo(e,"POP",g,(function(t){t?L({action:"POP",location:e}):function(e){var t=B.location,n=I.indexOf(t.key);-1===n&&(n=0);var r=I.indexOf(e.key);-1===r&&(r=0);var a=n-r;a&&(O=!0,F(a))}(e)}))}}var R=_(k()),I=[R.key];function z(e){return E+h(e)}function F(e){n.go(e)}var D=0;function M(e){1===(D+=e)&&1===e?(window.addEventListener(x,P),o&&window.addEventListener(w,A)):0===D&&(window.removeEventListener(x,P),o&&window.removeEventListener(w,A))}var q=!1;var B={length:n.length,action:"POP",location:R,createHref:z,push:function(e,t){var r="PUSH",o=m(e,t,N(),B.location);T.confirmTransitionTo(o,r,g,(function(e){if(e){var t=z(o),s=o.key,i=o.state;if(a)if(n.pushState({key:s,state:i},null,t),l)window.location.href=t;else{var c=I.indexOf(B.location.key),u=I.slice(0,c+1);u.push(o.key),I=u,L({action:r,location:o})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",o=m(e,t,N(),B.location);T.confirmTransitionTo(o,r,g,(function(e){if(e){var t=z(o),s=o.key,i=o.state;if(a)if(n.replaceState({key:s,state:i},null,t),l)window.location.replace(t);else{var c=I.indexOf(B.location.key);-1!==c&&(I[c]=o.key),L({action:r,location:o})}else window.location.replace(t)}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=T.setPrompt(e);return q||(M(1),q=!0),function(){return q&&(q=!1,M(-1)),t()}},listen:function(e){var t=T.appendListener(e);return M(1),function(){M(-1),t()}}};return B}var C="hashchange",E={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function _(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function N(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function T(e){window.location.replace(_(window.location.href)+"#"+e)}function L(e){void 0===e&&(e={}),b||(0,c.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),a=n.getUserConfirmation,o=void 0===a?v:a,s=n.hashType,i=void 0===s?"slash":s,l=e.basename?f(u(e.basename)):"",d=E[i],g=d.encodePath,x=d.decodePath;function w(){var e=x(N());return l&&(e=p(e,l)),m(e)}var k=y();function S(e){(0,r.Z)(q,e),q.length=t.length,k.notifyListeners(q.location,q.action)}var L=!1,P=null;function A(){var e,t,n=N(),r=g(n);if(n!==r)T(r);else{var a=w(),s=q.location;if(!L&&(t=a,(e=s).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(P===h(a))return;P=null,function(e){if(L)L=!1,S();else{var t="POP";k.confirmTransitionTo(e,t,o,(function(n){n?S({action:t,location:e}):function(e){var t=q.location,n=I.lastIndexOf(h(t));-1===n&&(n=0);var r=I.lastIndexOf(h(e));-1===r&&(r=0);var a=n-r;a&&(L=!0,z(a))}(e)}))}}(a)}}var O=N(),j=g(O);O!==j&&T(j);var R=w(),I=[h(R)];function z(e){t.go(e)}var F=0;function D(e){1===(F+=e)&&1===e?window.addEventListener(C,A):0===F&&window.removeEventListener(C,A)}var M=!1;var q={length:t.length,action:"POP",location:R,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=_(window.location.href)),n+"#"+g(l+h(e))},push:function(e,t){var n="PUSH",r=m(e,void 0,void 0,q.location);k.confirmTransitionTo(r,n,o,(function(e){if(e){var t=h(r),a=g(l+t);if(N()!==a){P=t,function(e){window.location.hash=e}(a);var o=I.lastIndexOf(h(q.location)),s=I.slice(0,o+1);s.push(t),I=s,S({action:n,location:r})}else S()}}))},replace:function(e,t){var n="REPLACE",r=m(e,void 0,void 0,q.location);k.confirmTransitionTo(r,n,o,(function(e){if(e){var t=h(r),a=g(l+t);N()!==a&&(P=t,T(a));var o=I.indexOf(h(q.location));-1!==o&&(I[o]=t),S({action:n,location:r})}}))},go:z,goBack:function(){z(-1)},goForward:function(){z(1)},block:function(e){void 0===e&&(e=!1);var t=k.setPrompt(e);return M||(D(1),M=!0),function(){return M&&(M=!1,D(-1)),t()}},listen:function(e){var t=k.appendListener(e);return D(1),function(){D(-1),t()}}};return q}function P(e,t,n){return Math.min(Math.max(e,t),n)}function A(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,a=t.initialEntries,o=void 0===a?["/"]:a,s=t.initialIndex,i=void 0===s?0:s,l=t.keyLength,c=void 0===l?6:l,u=y();function d(e){(0,r.Z)(x,e),x.length=x.entries.length,u.notifyListeners(x.location,x.action)}function p(){return Math.random().toString(36).substr(2,c)}var f=P(i,0,o.length-1),g=o.map((function(e){return m(e,void 0,"string"==typeof e?p():e.key||p())})),b=h;function v(e){var t=P(x.index+e,0,x.entries.length-1),r=x.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var x={length:g.length,action:"POP",location:g[f],index:f,entries:g,createHref:b,push:function(e,t){var r="PUSH",a=m(e,t,p(),x.location);u.confirmTransitionTo(a,r,n,(function(e){if(e){var t=x.index+1,n=x.entries.slice(0);n.length>t?n.splice(t,n.length-t,a):n.push(a),d({action:r,location:a,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",a=m(e,t,p(),x.location);u.confirmTransitionTo(a,r,n,(function(e){e&&(x.entries[x.index]=a,d({action:r,location:a}))}))},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(e){var t=x.index+e;return t>=0&&t<x.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return x}},8679:(e,t,n)=>{"use strict";var r=n(9864),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function l(e){return r.isMemo(e)?s:i[e.$$typeof]||a}i[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var a=f(n);a&&a!==h&&e(t,a,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var i=l(t),m=l(n),g=0;g<s.length;++g){var y=s[g];if(!(o[y]||r&&r[y]||m&&m[y]||i&&i[y])){var b=p(n,y);try{c(t,y,b)}catch(v){}}}}return t}},1143:e=>{"use strict";e.exports=function(e,t,n,r,a,o,s,i){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,o,s,i],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},5826:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},1336:(e,t,n)=>{var r,a;!function(){var o,s,i,l,c,u,d,p,f,h,m,g,y,b,v,x,w,k,S,C,E,_,N,T,L,P,A,O,j,R,I=function(e){var t=new I.Builder;return t.pipeline.add(I.trimmer,I.stopWordFilter,I.stemmer),t.searchPipeline.add(I.stemmer),e.call(t,t),t.build()};I.version="2.3.9",I.utils={},I.utils.warn=(o=this,function(e){o.console&&console.warn&&console.warn(e)}),I.utils.asString=function(e){return null==e?"":e.toString()},I.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),n=Object.keys(e),r=0;r<n.length;r++){var a=n[r],o=e[a];if(Array.isArray(o))t[a]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");t[a]=o}}return t},I.FieldRef=function(e,t,n){this.docRef=e,this.fieldName=t,this._stringValue=n},I.FieldRef.joiner="/",I.FieldRef.fromString=function(e){var t=e.indexOf(I.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var n=e.slice(0,t),r=e.slice(t+1);return new I.FieldRef(r,n,e)},I.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+I.FieldRef.joiner+this.docRef),this._stringValue},I.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},I.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},I.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},I.Set.prototype.contains=function(e){return!!this.elements[e]},I.Set.prototype.intersect=function(e){var t,n,r,a=[];if(e===I.Set.complete)return this;if(e===I.Set.empty)return e;this.length<e.length?(t=this,n=e):(t=e,n=this),r=Object.keys(t.elements);for(var o=0;o<r.length;o++){var s=r[o];s in n.elements&&a.push(s)}return new I.Set(a)},I.Set.prototype.union=function(e){return e===I.Set.complete?I.Set.complete:e===I.Set.empty?this:new I.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},I.idf=function(e,t){var n=0;for(var r in e)"_index"!=r&&(n+=Object.keys(e[r]).length);var a=(t-n+.5)/(n+.5);return Math.log(1+Math.abs(a))},I.Token=function(e,t){this.str=e||"",this.metadata=t||{}},I.Token.prototype.toString=function(){return this.str},I.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},I.Token.prototype.clone=function(e){return e=e||function(e){return e},new I.Token(e(this.str,this.metadata),this.metadata)},I.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new I.Token(I.utils.asString(e).toLowerCase(),I.utils.clone(t))}));for(var n=e.toString().toLowerCase(),r=n.length,a=[],o=0,s=0;o<=r;o++){var i=o-s;if(n.charAt(o).match(I.tokenizer.separator)||o==r){if(i>0){var l=I.utils.clone(t)||{};l.position=[s,i],l.index=a.length,a.push(new I.Token(n.slice(s,o),l))}s=o+1}}return a},I.tokenizer.separator=/[\s\-]+/,I.Pipeline=function(){this._stack=[]},I.Pipeline.registeredFunctions=Object.create(null),I.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&I.utils.warn("Overwriting existing registered function: "+t),e.label=t,I.Pipeline.registeredFunctions[e.label]=e},I.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||I.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},I.Pipeline.load=function(e){var t=new I.Pipeline;return e.forEach((function(e){var n=I.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)})),t},I.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(e){I.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},I.Pipeline.prototype.after=function(e,t){I.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},I.Pipeline.prototype.before=function(e,t){I.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},I.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},I.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n<t;n++){for(var r=this._stack[n],a=[],o=0;o<e.length;o++){var s=r(e[o],o,e);if(null!=s&&""!==s)if(Array.isArray(s))for(var i=0;i<s.length;i++)a.push(s[i]);else a.push(s)}e=a}return e},I.Pipeline.prototype.runString=function(e,t){var n=new I.Token(e,t);return this.run([n]).map((function(e){return e.toString()}))},I.Pipeline.prototype.reset=function(){this._stack=[]},I.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return I.Pipeline.warnIfFunctionNotRegistered(e),e.label}))},I.Vector=function(e){this._magnitude=0,this.elements=e||[]},I.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,n=this.elements.length/2,r=n-t,a=Math.floor(r/2),o=this.elements[2*a];r>1&&(o<e&&(t=a),o>e&&(n=a),o!=e);)r=n-t,a=t+Math.floor(r/2),o=this.elements[2*a];return o==e||o>e?2*a:o<e?2*(a+1):void 0},I.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},I.Vector.prototype.upsert=function(e,t,n){this._magnitude=0;var r=this.positionForIndex(e);this.elements[r]==e?this.elements[r+1]=n(this.elements[r+1],t):this.elements.splice(r,0,e,t)},I.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,n=1;n<t;n+=2){var r=this.elements[n];e+=r*r}return this._magnitude=Math.sqrt(e)},I.Vector.prototype.dot=function(e){for(var t=0,n=this.elements,r=e.elements,a=n.length,o=r.length,s=0,i=0,l=0,c=0;l<a&&c<o;)(s=n[l])<(i=r[c])?l+=2:s>i?c+=2:s==i&&(t+=n[l+1]*r[c+1],l+=2,c+=2);return t},I.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},I.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t<this.elements.length;t+=2,n++)e[n]=this.elements[t];return e},I.Vector.prototype.toJSON=function(){return this.elements},I.stemmer=(s={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},i={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},d="^("+(c="[^aeiou][^aeiouy]*")+")?"+(u=(l="[aeiouy]")+"[aeiou]*")+c+"("+u+")?$",p="^("+c+")?"+u+c+u+c,f="^("+c+")?"+l,h=new RegExp("^("+c+")?"+u+c),m=new RegExp(p),g=new RegExp(d),y=new RegExp(f),b=/^(.+?)(ss|i)es$/,v=/^(.+?)([^s])s$/,x=/^(.+?)eed$/,w=/^(.+?)(ed|ing)$/,k=/.$/,S=/(at|bl|iz)$/,C=new RegExp("([^aeiouylsz])\\1$"),E=new RegExp("^"+c+l+"[^aeiouwxy]$"),_=/^(.+?[^aeiou])y$/,N=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,T=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,L=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,P=/^(.+?)(s|t)(ion)$/,A=/^(.+?)e$/,O=/ll$/,j=new RegExp("^"+c+l+"[^aeiouwxy]$"),R=function(e){var t,n,r,a,o,l,c;if(e.length<3)return e;if("y"==(r=e.substr(0,1))&&(e=r.toUpperCase()+e.substr(1)),o=v,(a=b).test(e)?e=e.replace(a,"$1$2"):o.test(e)&&(e=e.replace(o,"$1$2")),o=w,(a=x).test(e)){var u=a.exec(e);(a=h).test(u[1])&&(a=k,e=e.replace(a,""))}else o.test(e)&&(t=(u=o.exec(e))[1],(o=y).test(t)&&(l=C,c=E,(o=S).test(e=t)?e+="e":l.test(e)?(a=k,e=e.replace(a,"")):c.test(e)&&(e+="e")));return(a=_).test(e)&&(e=(t=(u=a.exec(e))[1])+"i"),(a=N).test(e)&&(t=(u=a.exec(e))[1],n=u[2],(a=h).test(t)&&(e=t+s[n])),(a=T).test(e)&&(t=(u=a.exec(e))[1],n=u[2],(a=h).test(t)&&(e=t+i[n])),o=P,(a=L).test(e)?(t=(u=a.exec(e))[1],(a=m).test(t)&&(e=t)):o.test(e)&&(t=(u=o.exec(e))[1]+u[2],(o=m).test(t)&&(e=t)),(a=A).test(e)&&(t=(u=a.exec(e))[1],o=g,l=j,((a=m).test(t)||o.test(t)&&!l.test(t))&&(e=t)),o=m,(a=O).test(e)&&o.test(e)&&(a=k,e=e.replace(a,"")),"y"==r&&(e=r.toLowerCase()+e.substr(1)),e},function(e){return e.update(R)}),I.Pipeline.registerFunction(I.stemmer,"stemmer"),I.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},I.stopWordFilter=I.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),I.Pipeline.registerFunction(I.stopWordFilter,"stopWordFilter"),I.trimmer=function(e){return e.update((function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")}))},I.Pipeline.registerFunction(I.trimmer,"trimmer"),I.TokenSet=function(){this.final=!1,this.edges={},this.id=I.TokenSet._nextId,I.TokenSet._nextId+=1},I.TokenSet._nextId=1,I.TokenSet.fromArray=function(e){for(var t=new I.TokenSet.Builder,n=0,r=e.length;n<r;n++)t.insert(e[n]);return t.finish(),t.root},I.TokenSet.fromClause=function(e){return"editDistance"in e?I.TokenSet.fromFuzzyString(e.term,e.editDistance):I.TokenSet.fromString(e.term)},I.TokenSet.fromFuzzyString=function(e,t){for(var n=new I.TokenSet,r=[{node:n,editsRemaining:t,str:e}];r.length;){var a=r.pop();if(a.str.length>0){var o,s=a.str.charAt(0);s in a.node.edges?o=a.node.edges[s]:(o=new I.TokenSet,a.node.edges[s]=o),1==a.str.length&&(o.final=!0),r.push({node:o,editsRemaining:a.editsRemaining,str:a.str.slice(1)})}if(0!=a.editsRemaining){if("*"in a.node.edges)var i=a.node.edges["*"];else{i=new I.TokenSet;a.node.edges["*"]=i}if(0==a.str.length&&(i.final=!0),r.push({node:i,editsRemaining:a.editsRemaining-1,str:a.str}),a.str.length>1&&r.push({node:a.node,editsRemaining:a.editsRemaining-1,str:a.str.slice(1)}),1==a.str.length&&(a.node.final=!0),a.str.length>=1){if("*"in a.node.edges)var l=a.node.edges["*"];else{l=new I.TokenSet;a.node.edges["*"]=l}1==a.str.length&&(l.final=!0),r.push({node:l,editsRemaining:a.editsRemaining-1,str:a.str.slice(1)})}if(a.str.length>1){var c,u=a.str.charAt(0),d=a.str.charAt(1);d in a.node.edges?c=a.node.edges[d]:(c=new I.TokenSet,a.node.edges[d]=c),1==a.str.length&&(c.final=!0),r.push({node:c,editsRemaining:a.editsRemaining-1,str:u+a.str.slice(2)})}}}return n},I.TokenSet.fromString=function(e){for(var t=new I.TokenSet,n=t,r=0,a=e.length;r<a;r++){var o=e[r],s=r==a-1;if("*"==o)t.edges[o]=t,t.final=s;else{var i=new I.TokenSet;i.final=s,t.edges[o]=i,t=i}}return n},I.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var n=t.pop(),r=Object.keys(n.node.edges),a=r.length;n.node.final&&(n.prefix.charAt(0),e.push(n.prefix));for(var o=0;o<a;o++){var s=r[o];t.push({prefix:n.prefix.concat(s),node:n.node.edges[s]})}}return e},I.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),n=t.length,r=0;r<n;r++){var a=t[r];e=e+a+this.edges[a].id}return e},I.TokenSet.prototype.intersect=function(e){for(var t=new I.TokenSet,n=void 0,r=[{qNode:e,output:t,node:this}];r.length;){n=r.pop();for(var a=Object.keys(n.qNode.edges),o=a.length,s=Object.keys(n.node.edges),i=s.length,l=0;l<o;l++)for(var c=a[l],u=0;u<i;u++){var d=s[u];if(d==c||"*"==c){var p=n.node.edges[d],f=n.qNode.edges[c],h=p.final&&f.final,m=void 0;d in n.output.edges?(m=n.output.edges[d]).final=m.final||h:((m=new I.TokenSet).final=h,n.output.edges[d]=m),r.push({qNode:f,output:m,node:p})}}}return t},I.TokenSet.Builder=function(){this.previousWord="",this.root=new I.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},I.TokenSet.Builder.prototype.insert=function(e){var t,n=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var r=0;r<e.length&&r<this.previousWord.length&&e[r]==this.previousWord[r];r++)n++;this.minimize(n),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(r=n;r<e.length;r++){var a=new I.TokenSet,o=e[r];t.edges[o]=a,this.uncheckedNodes.push({parent:t,char:o,child:a}),t=a}t.final=!0,this.previousWord=e},I.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},I.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var n=this.uncheckedNodes[t],r=n.child.toString();r in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[r]:(n.child._str=r,this.minimizedNodes[r]=n.child),this.uncheckedNodes.pop()}},I.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},I.Index.prototype.search=function(e){return this.query((function(t){new I.QueryParser(e,t).parse()}))},I.Index.prototype.query=function(e){for(var t=new I.Query(this.fields),n=Object.create(null),r=Object.create(null),a=Object.create(null),o=Object.create(null),s=Object.create(null),i=0;i<this.fields.length;i++)r[this.fields[i]]=new I.Vector;e.call(t,t);for(i=0;i<t.clauses.length;i++){var l=t.clauses[i],c=null,u=I.Set.empty;c=l.usePipeline?this.pipeline.runString(l.term,{fields:l.fields}):[l.term];for(var d=0;d<c.length;d++){var p=c[d];l.term=p;var f=I.TokenSet.fromClause(l),h=this.tokenSet.intersect(f).toArray();if(0===h.length&&l.presence===I.Query.presence.REQUIRED){for(var m=0;m<l.fields.length;m++){o[A=l.fields[m]]=I.Set.empty}break}for(var g=0;g<h.length;g++){var y=h[g],b=this.invertedIndex[y],v=b._index;for(m=0;m<l.fields.length;m++){var x=b[A=l.fields[m]],w=Object.keys(x),k=y+"/"+A,S=new I.Set(w);if(l.presence==I.Query.presence.REQUIRED&&(u=u.union(S),void 0===o[A]&&(o[A]=I.Set.complete)),l.presence!=I.Query.presence.PROHIBITED){if(r[A].upsert(v,l.boost,(function(e,t){return e+t})),!a[k]){for(var C=0;C<w.length;C++){var E,_=w[C],N=new I.FieldRef(_,A),T=x[_];void 0===(E=n[N])?n[N]=new I.MatchData(y,A,T):E.add(y,A,T)}a[k]=!0}}else void 0===s[A]&&(s[A]=I.Set.empty),s[A]=s[A].union(S)}}}if(l.presence===I.Query.presence.REQUIRED)for(m=0;m<l.fields.length;m++){o[A=l.fields[m]]=o[A].intersect(u)}}var L=I.Set.complete,P=I.Set.empty;for(i=0;i<this.fields.length;i++){var A;o[A=this.fields[i]]&&(L=L.intersect(o[A])),s[A]&&(P=P.union(s[A]))}var O=Object.keys(n),j=[],R=Object.create(null);if(t.isNegated()){O=Object.keys(this.fieldVectors);for(i=0;i<O.length;i++){N=O[i];var z=I.FieldRef.fromString(N);n[N]=new I.MatchData}}for(i=0;i<O.length;i++){var F=(z=I.FieldRef.fromString(O[i])).docRef;if(L.contains(F)&&!P.contains(F)){var D,M=this.fieldVectors[z],q=r[z.fieldName].similarity(M);if(void 0!==(D=R[F]))D.score+=q,D.matchData.combine(n[z]);else{var B={ref:F,score:q,matchData:n[z]};R[F]=B,j.push(B)}}}return j.sort((function(e,t){return t.score-e.score}))},I.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:I.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},I.Index.load=function(e){var t={},n={},r=e.fieldVectors,a=Object.create(null),o=e.invertedIndex,s=new I.TokenSet.Builder,i=I.Pipeline.load(e.pipeline);e.version!=I.version&&I.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+I.version+"' does not match serialized index '"+e.version+"'");for(var l=0;l<r.length;l++){var c=(d=r[l])[0],u=d[1];n[c]=new I.Vector(u)}for(l=0;l<o.length;l++){var d,p=(d=o[l])[0],f=d[1];s.insert(p),a[p]=f}return s.finish(),t.fields=e.fields,t.fieldVectors=n,t.invertedIndex=a,t.tokenSet=s.root,t.pipeline=i,new I.Index(t)},I.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=I.tokenizer,this.pipeline=new I.Pipeline,this.searchPipeline=new I.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},I.Builder.prototype.ref=function(e){this._ref=e},I.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},I.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},I.Builder.prototype.k1=function(e){this._k1=e},I.Builder.prototype.add=function(e,t){var n=e[this._ref],r=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var a=0;a<r.length;a++){var o=r[a],s=this._fields[o].extractor,i=s?s(e):e[o],l=this.tokenizer(i,{fields:[o]}),c=this.pipeline.run(l),u=new I.FieldRef(n,o),d=Object.create(null);this.fieldTermFrequencies[u]=d,this.fieldLengths[u]=0,this.fieldLengths[u]+=c.length;for(var p=0;p<c.length;p++){var f=c[p];if(null==d[f]&&(d[f]=0),d[f]+=1,null==this.invertedIndex[f]){var h=Object.create(null);h._index=this.termIndex,this.termIndex+=1;for(var m=0;m<r.length;m++)h[r[m]]=Object.create(null);this.invertedIndex[f]=h}null==this.invertedIndex[f][o][n]&&(this.invertedIndex[f][o][n]=Object.create(null));for(var g=0;g<this.metadataWhitelist.length;g++){var y=this.metadataWhitelist[g],b=f.metadata[y];null==this.invertedIndex[f][o][n][y]&&(this.invertedIndex[f][o][n][y]=[]),this.invertedIndex[f][o][n][y].push(b)}}}},I.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,n={},r={},a=0;a<t;a++){var o=I.FieldRef.fromString(e[a]),s=o.fieldName;r[s]||(r[s]=0),r[s]+=1,n[s]||(n[s]=0),n[s]+=this.fieldLengths[o]}var i=Object.keys(this._fields);for(a=0;a<i.length;a++){var l=i[a];n[l]=n[l]/r[l]}this.averageFieldLength=n},I.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),n=t.length,r=Object.create(null),a=0;a<n;a++){for(var o=I.FieldRef.fromString(t[a]),s=o.fieldName,i=this.fieldLengths[o],l=new I.Vector,c=this.fieldTermFrequencies[o],u=Object.keys(c),d=u.length,p=this._fields[s].boost||1,f=this._documents[o.docRef].boost||1,h=0;h<d;h++){var m,g,y,b=u[h],v=c[b],x=this.invertedIndex[b]._index;void 0===r[b]?(m=I.idf(this.invertedIndex[b],this.documentCount),r[b]=m):m=r[b],g=m*((this._k1+1)*v)/(this._k1*(1-this._b+this._b*(i/this.averageFieldLength[s]))+v),g*=p,g*=f,y=Math.round(1e3*g)/1e3,l.insert(x,y)}e[o]=l}this.fieldVectors=e},I.Builder.prototype.createTokenSet=function(){this.tokenSet=I.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},I.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new I.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},I.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},I.MatchData=function(e,t,n){for(var r=Object.create(null),a=Object.keys(n||{}),o=0;o<a.length;o++){var s=a[o];r[s]=n[s].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=r)},I.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),n=0;n<t.length;n++){var r=t[n],a=Object.keys(e.metadata[r]);null==this.metadata[r]&&(this.metadata[r]=Object.create(null));for(var o=0;o<a.length;o++){var s=a[o],i=Object.keys(e.metadata[r][s]);null==this.metadata[r][s]&&(this.metadata[r][s]=Object.create(null));for(var l=0;l<i.length;l++){var c=i[l];null==this.metadata[r][s][c]?this.metadata[r][s][c]=e.metadata[r][s][c]:this.metadata[r][s][c]=this.metadata[r][s][c].concat(e.metadata[r][s][c])}}}},I.MatchData.prototype.add=function(e,t,n){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=n);if(t in this.metadata[e])for(var r=Object.keys(n),a=0;a<r.length;a++){var o=r[a];o in this.metadata[e][t]?this.metadata[e][t][o]=this.metadata[e][t][o].concat(n[o]):this.metadata[e][t][o]=n[o]}else this.metadata[e][t]=n},I.Query=function(e){this.clauses=[],this.allFields=e},I.Query.wildcard=new String("*"),I.Query.wildcard.NONE=0,I.Query.wildcard.LEADING=1,I.Query.wildcard.TRAILING=2,I.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},I.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=I.Query.wildcard.NONE),e.wildcard&I.Query.wildcard.LEADING&&e.term.charAt(0)!=I.Query.wildcard&&(e.term="*"+e.term),e.wildcard&I.Query.wildcard.TRAILING&&e.term.slice(-1)!=I.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=I.Query.presence.OPTIONAL),this.clauses.push(e),this},I.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=I.Query.presence.PROHIBITED)return!1;return!0},I.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,I.utils.clone(t))}),this),this;var n=t||{};return n.term=e.toString(),this.clause(n),this},I.QueryParseError=function(e,t,n){this.name="QueryParseError",this.message=e,this.start=t,this.end=n},I.QueryParseError.prototype=new Error,I.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},I.QueryLexer.prototype.run=function(){for(var e=I.QueryLexer.lexText;e;)e=e(this)},I.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,n=this.pos,r=0;r<this.escapeCharPositions.length;r++)n=this.escapeCharPositions[r],e.push(this.str.slice(t,n)),t=n+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},I.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},I.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},I.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return I.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},I.QueryLexer.prototype.width=function(){return this.pos-this.start},I.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},I.QueryLexer.prototype.backup=function(){this.pos-=1},I.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=I.QueryLexer.EOS&&this.backup()},I.QueryLexer.prototype.more=function(){return this.pos<this.length},I.QueryLexer.EOS="EOS",I.QueryLexer.FIELD="FIELD",I.QueryLexer.TERM="TERM",I.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",I.QueryLexer.BOOST="BOOST",I.QueryLexer.PRESENCE="PRESENCE",I.QueryLexer.lexField=function(e){return e.backup(),e.emit(I.QueryLexer.FIELD),e.ignore(),I.QueryLexer.lexText},I.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(I.QueryLexer.TERM)),e.ignore(),e.more())return I.QueryLexer.lexText},I.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(I.QueryLexer.EDIT_DISTANCE),I.QueryLexer.lexText},I.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(I.QueryLexer.BOOST),I.QueryLexer.lexText},I.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(I.QueryLexer.TERM)},I.QueryLexer.termSeparator=I.tokenizer.separator,I.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==I.QueryLexer.EOS)return I.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return I.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(I.QueryLexer.TERM),I.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(I.QueryLexer.TERM),I.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(I.QueryLexer.PRESENCE),I.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(I.QueryLexer.PRESENCE),I.QueryLexer.lexText;if(t.match(I.QueryLexer.termSeparator))return I.QueryLexer.lexTerm}else e.escapeCharacter()}},I.QueryParser=function(e,t){this.lexer=new I.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},I.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=I.QueryParser.parseClause;e;)e=e(this);return this.query},I.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},I.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},I.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},I.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case I.QueryLexer.PRESENCE:return I.QueryParser.parsePresence;case I.QueryLexer.FIELD:return I.QueryParser.parseField;case I.QueryLexer.TERM:return I.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new I.QueryParseError(n,t.start,t.end)}},I.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=I.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=I.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new I.QueryParseError(n,t.start,t.end)}var r=e.peekLexeme();if(null==r){n="expecting term or field, found nothing";throw new I.QueryParseError(n,t.start,t.end)}switch(r.type){case I.QueryLexer.FIELD:return I.QueryParser.parseField;case I.QueryLexer.TERM:return I.QueryParser.parseTerm;default:n="expecting term or field, found '"+r.type+"'";throw new I.QueryParseError(n,r.start,r.end)}}},I.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),r="unrecognised field '"+t.str+"', possible fields: "+n;throw new I.QueryParseError(r,t.start,t.end)}e.currentClause.fields=[t.str];var a=e.peekLexeme();if(null==a){r="expecting term, found nothing";throw new I.QueryParseError(r,t.start,t.end)}if(a.type===I.QueryLexer.TERM)return I.QueryParser.parseTerm;r="expecting term, found '"+a.type+"'";throw new I.QueryParseError(r,a.start,a.end)}},I.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(null!=n)switch(n.type){case I.QueryLexer.TERM:return e.nextClause(),I.QueryParser.parseTerm;case I.QueryLexer.FIELD:return e.nextClause(),I.QueryParser.parseField;case I.QueryLexer.EDIT_DISTANCE:return I.QueryParser.parseEditDistance;case I.QueryLexer.BOOST:return I.QueryParser.parseBoost;case I.QueryLexer.PRESENCE:return e.nextClause(),I.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+n.type+"'";throw new I.QueryParseError(r,n.start,n.end)}else e.nextClause()}},I.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="edit distance must be numeric";throw new I.QueryParseError(r,t.start,t.end)}e.currentClause.editDistance=n;var a=e.peekLexeme();if(null!=a)switch(a.type){case I.QueryLexer.TERM:return e.nextClause(),I.QueryParser.parseTerm;case I.QueryLexer.FIELD:return e.nextClause(),I.QueryParser.parseField;case I.QueryLexer.EDIT_DISTANCE:return I.QueryParser.parseEditDistance;case I.QueryLexer.BOOST:return I.QueryParser.parseBoost;case I.QueryLexer.PRESENCE:return e.nextClause(),I.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+a.type+"'";throw new I.QueryParseError(r,a.start,a.end)}else e.nextClause()}},I.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="boost must be numeric";throw new I.QueryParseError(r,t.start,t.end)}e.currentClause.boost=n;var a=e.peekLexeme();if(null!=a)switch(a.type){case I.QueryLexer.TERM:return e.nextClause(),I.QueryParser.parseTerm;case I.QueryLexer.FIELD:return e.nextClause(),I.QueryParser.parseField;case I.QueryLexer.EDIT_DISTANCE:return I.QueryParser.parseEditDistance;case I.QueryLexer.BOOST:return I.QueryParser.parseBoost;case I.QueryLexer.PRESENCE:return e.nextClause(),I.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+a.type+"'";throw new I.QueryParseError(r,a.start,a.end)}else e.nextClause()}},void 0===(a="function"==typeof(r=function(){return I})?r.call(t,n,t,e):r)||(e.exports=a)}()},3395:(e,t,n)=>{"use strict";n.r(t)},2497:(e,t,n)=>{"use strict";n.r(t)},4865:function(e,t,n){var r,a;r=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function a(e,t,n){return e<t?t:e>n?n:e}function o(e){return 100*(-1+e)}function s(e,t,n){var a;return(a="translate3d"===r.positionUsing?{transform:"translate3d("+o(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+o(e)+"%,0)"}:{"margin-left":o(e)+"%"}).transition="all "+t+"ms "+n,a}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=a(e,r.minimum,1),n.status=1===e?null:e;var o=n.render(!t),c=o.querySelector(r.barSelector),u=r.speed,d=r.easing;return o.offsetWidth,i((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),l(c,s(e,u,d)),1===e?(l(o,{transition:"none",opacity:1}),o.offsetWidth,setTimeout((function(){l(o,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),u)}),u)):setTimeout(t,u)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*a(Math.random()*t,.1,.95)),t=a(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var a,s=t.querySelector(r.barSelector),i=e?"-100":o(n.status||0),c=document.querySelector(r.parent);return l(s,{transition:"all 0 linear",transform:"translate3d("+i+"%,0,0)"}),r.showSpinner||(a=t.querySelector(r.spinnerSelector))&&f(a),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var i=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,a=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);a--;)if((r=e[a]+o)in n)return r;return t}function a(e){return e=n(e),t[e]||(t[e]=r(e))}function o(e,t,n){t=a(t),e.style[t]=n}return function(e,t){var n,r,a=arguments;if(2==a.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&o(e,n,r);else o(e,a[1],a[2])}}();function c(e,t){return("string"==typeof e?e:p(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=p(e),r=n+t;c(n,t)||(e.className=r.substring(1))}function d(e,t){var n,r=p(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function p(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},void 0===(a="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=a)},4779:(e,t,n)=>{var r=n(5826);e.exports=f,e.exports.parse=o,e.exports.compile=function(e,t){return i(o(e,t),t)},e.exports.tokensToFunction=i,e.exports.tokensToRegExp=p;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,s=0,i="",u=t&&t.delimiter||"/";null!=(n=a.exec(e));){var d=n[0],p=n[1],f=n.index;if(i+=e.slice(s,f),s=f+d.length,p)i+=p[1];else{var h=e[s],m=n[2],g=n[3],y=n[4],b=n[5],v=n[6],x=n[7];i&&(r.push(i),i="");var w=null!=m&&null!=h&&h!==m,k="+"===v||"*"===v,S="?"===v||"*"===v,C=n[2]||u,E=y||b;r.push({name:g||o++,prefix:m||"",delimiter:C,optional:S,repeat:k,partial:w,asterisk:!!x,pattern:E?c(E):x?".*":"[^"+l(C)+"]+?"})}}return s<e.length&&(i+=e.substr(s)),i&&r.push(i),r}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function i(e,t){for(var n=new Array(e.length),a=0;a<e.length;a++)"object"==typeof e[a]&&(n[a]=new RegExp("^(?:"+e[a].pattern+")$",d(t)));return function(t,a){for(var o="",i=t||{},l=(a||{}).pretty?s:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var d,p=i[u.name];if(null==p){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(d=l(p[f]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===f?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var a=(n=n||{}).strict,o=!1!==n.end,s="",i=0;i<e.length;i++){var c=e[i];if("string"==typeof c)s+=l(c);else{var p=l(c.prefix),f="(?:"+c.pattern+")";t.push(c),c.repeat&&(f+="(?:"+p+f+")*"),s+=f=c.optional?c.partial?p+"("+f+")?":"(?:"+p+"("+f+"))?":p+"("+f+")"}}var h=l(n.delimiter||"/"),m=s.slice(-h.length)===h;return a||(s=(m?s.slice(0,-h.length):s)+"(?:"+h+"(?=$))?"),s+=o?"$":a&&m?"":"(?="+h+"|$)",u(new RegExp("^"+s,d(n)),t)}function f(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],a=0;a<e.length;a++)r.push(f(e[a],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return p(o(e,n),t,n)}(e,t,n)}},7874:()=>{!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,s=0;s<a.length;s++)o[a[s]]=e.languages.bash[a[s]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism)},4277:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},6854:()=>{!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,a,o){if(n.language===r){var s=n.tokenStack=[];n.code=n.code.replace(a,(function(e){if("function"==typeof o&&!o(e))return e;for(var a,i=s.length;-1!==n.code.indexOf(a=t(r,i));)++i;return s[i]=e,a})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,o=Object.keys(n.tokenStack);!function s(i){for(var l=0;l<i.length&&!(a>=o.length);l++){var c=i[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=o[a],d=n.tokenStack[u],p="string"==typeof c?c:c.content,f=t(r,u),h=p.indexOf(f);if(h>-1){++a;var m=p.substring(0,h),g=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),y=p.substring(h+f.length),b=[];m&&b.push.apply(b,s([m])),b.push(g),y&&b.push.apply(b,s([y])),"string"==typeof c?i.splice.apply(i,[l,1].concat(b)):c.content=b}}else c.content&&s(c.content)}return i}(n.tokens)}}}})}(Prism)},1029:()=>{!function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism)},5897:(e,t,n)=>{var r={"./prism-bash":7874,"./prism-json":4277,"./prism-tsx":1029};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=5897},2703:(e,t,n)=>{"use strict";var r=n(414);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,s){if(s!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4448:(e,t,n)=>{"use strict";var r=n(7294),a=n(3840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,i={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(i[e]=t,e=0;e<t.length;e++)s.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},h={};function m(e,t,n,r,a,o,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function v(e,t,n,r){var a=g.hasOwnProperty(t)?g[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!d.call(h,e)||!d.call(f,e)&&(p.test(e)?h[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),N=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),O=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var j=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var z,F=Object.assign;function D(e){if(void 0===z)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var M=!1;function q(e,t){if(!e||M)return"";M=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(var a=c.stack.split("\n"),o=r.stack.split("\n"),s=a.length-1,i=o.length-1;1<=s&&0<=i&&a[s]!==o[i];)i--;for(;1<=s&&0<=i;s--,i--)if(a[s]!==o[i]){if(1!==s||1!==i)do{if(s--,0>--i||a[s]!==o[i]){var l="\n"+a[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=i);break}}}finally{M=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function B(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=q(e.type,!1);case 11:return e=q(e.type.render,!1);case 1:return e=q(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case E:return"Profiler";case C:return"StrictMode";case L:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case N:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case A:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return $(e(t))}catch(n){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Z(e){e._valueTracker||(e._valueTracker=function(e){var t=Q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function V(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function W(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function X(e,t){K(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&W(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function oe(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ie(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ie(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(fe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ye=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Se=null,Ce=null;function Ee(e){if(e=va(e)){if("function"!=typeof ke)throw Error(o(280));var t=e.stateNode;t&&(t=wa(t),ke(e.stateNode,e.type,t))}}function _e(e){Se?Ce?Ce.push(e):Ce=[e]:Se=e}function Ne(){if(Se){var e=Se,t=Ce;if(Ce=Se=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Te(e,t){return e(t)}function Le(){}var Pe=!1;function Ae(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Te(e,t,n)}finally{Pe=!1,(null!==Se||null!==Ce)&&(Le(),Ne())}}function Oe(e,t){var n=e.stateNode;if(null===n)return null;var r=wa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var je=!1;if(u)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){je=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ue){je=!1}function Ie(e,t,n,r,a,o,s,i,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var ze=!1,Fe=null,De=!1,Me=null,qe={onError:function(e){ze=!0,Fe=e}};function Be(e,t,n,r,a,o,s,i,l){ze=!1,Fe=null,Ie.apply(qe,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if($e(e)!==e)throw Error(o(188))}function Qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var s=a.alternate;if(null===s){if(null!==(r=a.return)){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return He(a),e;if(s===r)return He(a),t;s=s.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=s;else{for(var i=!1,l=a.child;l;){if(l===n){i=!0,n=a,r=s;break}if(l===r){i=!0,r=a,n=s;break}l=l.sibling}if(!i){for(l=s.child;l;){if(l===n){i=!0,n=s,r=a;break}if(l===r){i=!0,r=s,n=a;break}l=l.sibling}if(!i)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ze(e):null}function Ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ze(e);if(null!==t)return t;e=e.sibling}return null}var Ve=a.unstable_scheduleCallback,We=a.unstable_cancelCallback,Ge=a.unstable_shouldYield,Ye=a.unstable_requestPaint,Ke=a.unstable_now,Xe=a.unstable_getCurrentPriorityLevel,Je=a.unstable_ImmediatePriority,et=a.unstable_UserBlockingPriority,tt=a.unstable_NormalPriority,nt=a.unstable_LowPriority,rt=a.unstable_IdlePriority,at=null,ot=null;var st=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(it(e)/lt|0)|0},it=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,s=268435455&n;if(0!==s){var i=s&~a;0!==i?r=dt(i):0!==(o&=s)&&(r=dt(o))}else 0!==(s=n&~a)?r=dt(s):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-st(t)),r|=e[n],t&=~a;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var vt=0;function xt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,kt,St,Ct,Et,_t=!1,Nt=[],Tt=null,Lt=null,Pt=null,At=new Map,Ot=new Map,jt=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function It(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Lt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":At.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function zt(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=va(t))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Ft(e){var t=ba(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ue(n)))return e.blockedOn=t,void Et(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=va(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Mt(e,t,n){Dt(e)&&n.delete(t)}function qt(){_t=!1,null!==Tt&&Dt(Tt)&&(Tt=null),null!==Lt&&Dt(Lt)&&(Lt=null),null!==Pt&&Dt(Pt)&&(Pt=null),At.forEach(Mt),Ot.forEach(Mt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,_t||(_t=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,qt)))}function $t(e){function t(t){return Bt(t,e)}if(0<Nt.length){Bt(Nt[0],e);for(var n=1;n<Nt.length;n++){var r=Nt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Bt(Tt,e),null!==Lt&&Bt(Lt,e),null!==Pt&&Bt(Pt,e),At.forEach(t),Ot.forEach(t),n=0;n<jt.length;n++)(r=jt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&null===(n=jt[0]).blockedOn;)Ft(n),null===n.blockedOn&&jt.shift()}var Ut=x.ReactCurrentBatchConfig,Ht=!0;function Qt(e,t,n,r){var a=vt,o=Ut.transition;Ut.transition=null;try{vt=1,Vt(e,t,n,r)}finally{vt=a,Ut.transition=o}}function Zt(e,t,n,r){var a=vt,o=Ut.transition;Ut.transition=null;try{vt=4,Vt(e,t,n,r)}finally{vt=a,Ut.transition=o}}function Vt(e,t,n,r){if(Ht){var a=Gt(e,t,n,r);if(null===a)Hr(e,t,r,Wt,n),It(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Tt=zt(Tt,e,t,n,r,a),!0;case"dragenter":return Lt=zt(Lt,e,t,n,r,a),!0;case"mouseover":return Pt=zt(Pt,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return At.set(o,zt(At.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,Ot.set(o,zt(Ot.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<Rt.indexOf(e)){for(;null!==a;){var o=va(a);if(null!==o&&wt(o),null===(o=Gt(e,t,n,r))&&Hr(e,t,r,Wt,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Wt=null;function Gt(e,t,n,r){if(Wt=null,null!==(e=ba(e=we(r))))if(null===(t=$e(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Kt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,a="value"in Kt?Kt.value:Kt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===a[o-t];t++);return Jt=a.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,a,o){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(a):a[s]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=an(cn),dn=F({},cn,{view:0,detail:0}),pn=an(dn),fn=F({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(on=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=on=0,ln=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=an(fn),mn=an(F({},fn,{dataTransfer:0})),gn=an(F({},dn,{relatedTarget:0})),yn=an(F({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=F({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=an(bn),xn=an(F({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function En(){return Cn}var _n=F({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Nn=an(_n),Tn=an(F({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ln=an(F({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Pn=an(F({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=F({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),On=an(An),jn=[9,13,27,32],Rn=u&&"CompositionEvent"in window,In=null;u&&"documentMode"in document&&(In=document.documentMode);var zn=u&&"TextEvent"in window&&!In,Fn=u&&(!Rn||In&&8<In&&11>=In),Dn=String.fromCharCode(32),Mn=!1;function qn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1;var Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Qn(e,t,n,r){_e(r),0<(t=Zr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zn=null,Vn=null;function Wn(e){Dr(e,0)}function Gn(e){if(V(xa(e)))return e}function Yn(e,t){if("change"===e)return t}var Kn=!1;if(u){var Xn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Xn=Jn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Zn&&(Zn.detachEvent("onpropertychange",nr),Vn=Zn=null)}function nr(e){if("value"===e.propertyName&&Gn(Vn)){var t=[];Qn(t,Vn,e,we(e)),Ae(Wn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Vn=n,(Zn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Vn)}function or(e,t){if("click"===e)return Gn(t)}function sr(e,t){if("input"===e||"change"===e)return Gn(t)}var ir="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(ir(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!d.call(t,a)||!ir(e[a],t[a]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=W();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=W((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=ur(n,o);var s=ur(n,r);a&&s&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,br=null,vr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==gr||gr!==W(r)||("selectionStart"in(r=gr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&lr(br,r)||(br=r,0<(r=Zr(yr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},Cr={};function Er(e){if(Sr[e])return Sr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return Sr[e]=n[t];return e}u&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var _r=Er("animationend"),Nr=Er("animationiteration"),Tr=Er("animationstart"),Lr=Er("transitionend"),Pr=new Map,Ar="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Or(e,t){Pr.set(e,t),l(t,[e])}for(var jr=0;jr<Ar.length;jr++){var Rr=Ar[jr];Or(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Or(_r,"onAnimationEnd"),Or(Nr,"onAnimationIteration"),Or(Tr,"onAnimationStart"),Or("dblclick","onDoubleClick"),Or("focusin","onFocus"),Or("focusout","onBlur"),Or(Lr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),zr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function Fr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,s,i,l,c){if(Be.apply(this,arguments),ze){if(!ze)throw Error(o(198));var u=Fe;ze=!1,Fe=null,De||(De=!0,Me=u)}}(r,t,void 0,e),e.currentTarget=null}function Dr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var i=r[s],l=i.instance,c=i.currentTarget;if(i=i.listener,l!==o&&a.isPropagationStopped())break e;Fr(a,i,c),o=l}else for(s=0;s<r.length;s++){if(l=(i=r[s]).instance,c=i.currentTarget,i=i.listener,l!==o&&a.isPropagationStopped())break e;Fr(a,i,c),o=l}}}if(De)throw e=Me,De=!1,Me=null,e}function Mr(e,t){var n=t[ma];void 0===n&&(n=t[ma]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function qr(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function $r(e){if(!e[Br]){e[Br]=!0,s.forEach((function(t){"selectionchange"!==t&&(zr.has(t)||qr(t,!1,e),qr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,qr("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Yt(t)){case 1:var a=Qt;break;case 4:a=Zt;break;default:a=Vt}n=a.bind(null,t,n,e),a=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,a){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var i=r.stateNode.containerInfo;if(i===a||8===i.nodeType&&i.parentNode===a)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;s=s.return}for(;null!==i;){if(null===(s=ba(i)))return;if(5===(l=s.tag)||6===l){r=o=s;continue e}i=i.parentNode}}r=r.return}Ae((function(){var r=o,a=we(n),s=[];e:{var i=Pr.get(e);if(void 0!==i){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Nn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Ln;break;case _r:case Nr:case Tr:l=yn;break;case Lr:l=Pn;break;case"scroll":l=pn;break;case"wheel":l=On;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==i?i+"Capture":null:i;u=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Oe(h,p))&&u.push(Qr(h,m,f)))),d)break;h=h.return}0<u.length&&(i=new l(i,c,null,n,a),s.push({event:i,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(i="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!ba(c)&&!c[ha])&&(l||i)&&(i=a.window===a?a:(i=a.ownerDocument)?i.defaultView||i.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ba(c):null)&&(c!==(d=$e(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?i:xa(l),f=null==c?i:xa(c),(i=new u(m,h+"leave",l,n,a)).target=d,i.relatedTarget=f,m=null,ba(a)===r&&((u=new u(p,h+"enter",c,n,a)).target=f,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,h=0,f=u=l;f;f=Vr(f))h++;for(f=0,m=p;m;m=Vr(m))f++;for(;0<h-f;)u=Vr(u),h--;for(;0<f-h;)p=Vr(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=Vr(u),p=Vr(p)}u=null}else u=null;null!==l&&Wr(s,i,l,u,!1),null!==c&&null!==d&&Wr(s,d,c,u,!0)}if("select"===(l=(i=r?xa(r):window).nodeName&&i.nodeName.toLowerCase())||"input"===l&&"file"===i.type)var g=Yn;else if(Hn(i))if(Kn)g=sr;else{g=ar;var y=rr}else(l=i.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(g=or);switch(g&&(g=g(e,r))?Qn(s,g,n,a):(y&&y(e,i,r),"focusout"===e&&(y=i._wrapperState)&&y.controlled&&"number"===i.type&&ee(i,"number",i.value)),y=r?xa(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,br=null);break;case"focusout":br=yr=gr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,xr(s,n,a);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(s,n,a)}var b;if(Rn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else $n?qn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Fn&&"ko"!==n.locale&&($n||"onCompositionStart"!==v?"onCompositionEnd"===v&&$n&&(b=en()):(Xt="value"in(Kt=a)?Kt.value:Kt.textContent,$n=!0)),0<(y=Zr(r,v)).length&&(v=new xn(v,e,null,n,a),s.push({event:v,listeners:y}),b?v.data=b:null!==(b=Bn(n))&&(v.data=b))),(b=zn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Mn=!0,Dn);case"textInput":return(e=t.data)===Dn&&Mn?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!Rn&&qn(e,t)?(e=en(),Jt=Xt=Kt=null,$n=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Zr(r,"onBeforeInput")).length&&(a=new xn("onBeforeInput","beforeinput",null,n,a),s.push({event:a,listeners:r}),a.data=b))}Dr(s,t)}))}function Qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Oe(e,n))&&r.unshift(Qr(e,o,a)),null!=(o=Oe(e,t))&&r.push(Qr(e,o,a))),e=e.return}return r}function Vr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,a){for(var o=t._reactName,s=[];null!==n&&n!==r;){var i=n,l=i.alternate,c=i.stateNode;if(null!==l&&l===r)break;5===i.tag&&null!==c&&(i=c,a?null!=(l=Oe(n,o))&&s.unshift(Qr(n,l,i)):a||null!=(l=Oe(n,o))&&s.push(Qr(n,l,i))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Gr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Yr,"")}function Xr(e,t,n){if(t=Kr(t),Kr(e)!==t&&n)throw Error(o(425))}function Jr(){}var ea=null,ta=null;function na(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ra="function"==typeof setTimeout?setTimeout:void 0,aa="function"==typeof clearTimeout?clearTimeout:void 0,oa="function"==typeof Promise?Promise:void 0,sa="function"==typeof queueMicrotask?queueMicrotask:void 0!==oa?function(e){return oa.resolve(null).then(e).catch(ia)}:ra;function ia(e){setTimeout((function(){throw e}))}function la(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void $t(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);$t(t)}function ca(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ua(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var da=Math.random().toString(36).slice(2),pa="__reactFiber$"+da,fa="__reactProps$"+da,ha="__reactContainer$"+da,ma="__reactEvents$"+da,ga="__reactListeners$"+da,ya="__reactHandles$"+da;function ba(e){var t=e[pa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ha]||n[pa]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ua(e);null!==e;){if(n=e[pa])return n;e=ua(e)}return t}n=(e=n).parentNode}return null}function va(e){return!(e=e[pa]||e[ha])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wa(e){return e[fa]||null}var ka=[],Sa=-1;function Ca(e){return{current:e}}function Ea(e){0>Sa||(e.current=ka[Sa],ka[Sa]=null,Sa--)}function _a(e,t){Sa++,ka[Sa]=e.current,e.current=t}var Na={},Ta=Ca(Na),La=Ca(!1),Pa=Na;function Aa(e,t){var n=e.type.contextTypes;if(!n)return Na;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Oa(e){return null!=(e=e.childContextTypes)}function ja(){Ea(La),Ea(Ta)}function Ra(e,t,n){if(Ta.current!==Na)throw Error(o(168));_a(Ta,t),_a(La,n)}function Ia(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(o(108,U(e)||"Unknown",a));return F({},n,r)}function za(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Na,Pa=Ta.current,_a(Ta,e),_a(La,La.current),!0}function Fa(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ia(e,t,Pa),r.__reactInternalMemoizedMergedChildContext=e,Ea(La),Ea(Ta),_a(Ta,e)):Ea(La),_a(La,n)}var Da=null,Ma=!1,qa=!1;function Ba(e){null===Da?Da=[e]:Da.push(e)}function $a(){if(!qa&&null!==Da){qa=!0;var e=0,t=vt;try{var n=Da;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Da=null,Ma=!1}catch(a){throw null!==Da&&(Da=Da.slice(e+1)),Ve(Je,$a),a}finally{vt=t,qa=!1}}return null}var Ua=[],Ha=0,Qa=null,Za=0,Va=[],Wa=0,Ga=null,Ya=1,Ka="";function Xa(e,t){Ua[Ha++]=Za,Ua[Ha++]=Qa,Qa=e,Za=t}function Ja(e,t,n){Va[Wa++]=Ya,Va[Wa++]=Ka,Va[Wa++]=Ga,Ga=e;var r=Ya;e=Ka;var a=32-st(r)-1;r&=~(1<<a),n+=1;var o=32-st(t)+a;if(30<o){var s=a-a%5;o=(r&(1<<s)-1).toString(32),r>>=s,a-=s,Ya=1<<32-st(t)+a|n<<a|r,Ka=o+e}else Ya=1<<o|n<<a|r,Ka=e}function eo(e){null!==e.return&&(Xa(e,1),Ja(e,1,0))}function to(e){for(;e===Qa;)Qa=Ua[--Ha],Ua[Ha]=null,Za=Ua[--Ha],Ua[Ha]=null;for(;e===Ga;)Ga=Va[--Wa],Va[Wa]=null,Ka=Va[--Wa],Va[Wa]=null,Ya=Va[--Wa],Va[Wa]=null}var no=null,ro=null,ao=!1,oo=null;function so(e,t){var n=Oc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function io(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ca(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ga?{id:Ya,overflow:Ka}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Oc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function co(e){if(ao){var t=ro;if(t){var n=t;if(!io(e,t)){if(lo(e))throw Error(o(418));t=ca(n.nextSibling);var r=no;t&&io(e,t)?so(r,n):(e.flags=-4097&e.flags|2,ao=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,ao=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function po(e){if(e!==no)return!1;if(!ao)return uo(e),ao=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!na(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw fo(),Error(o(418));for(;t;)so(e,t),t=ca(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ca(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ca(e.stateNode.nextSibling):null;return!0}function fo(){for(var e=ro;e;)e=ca(e.nextSibling)}function ho(){ro=no=null,ao=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=x.ReactCurrentBatchConfig;function yo(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var bo=Ca(null),vo=null,xo=null,wo=null;function ko(){wo=xo=vo=null}function So(e){var t=bo.current;Ea(bo),e._currentValue=t}function Co(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Eo(e,t){vo=e,wo=xo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(xi=!0),e.firstContext=null)}function _o(e){var t=e._currentValue;if(wo!==e)if(e={context:e,memoizedValue:t,next:null},null===xo){if(null===vo)throw Error(o(308));xo=e,vo.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var No=null;function To(e){null===No?No=[e]:No.push(e)}function Lo(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,To(t)):(n.next=a.next,a.next=n),t.interleaved=n,Po(e,r)}function Po(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ao=!1;function Oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function jo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ro(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Io(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ll)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Po(e,n)}return null===(a=r.interleaved)?(t.next=t,To(r)):(t.next=a.next,a.next=t),r.interleaved=t,Po(e,n)}function zo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Fo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=s:o=o.next=s,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Do(e,t,n,r){var a=e.updateQueue;Ao=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,i=a.shared.pending;if(null!==i){a.shared.pending=null;var l=i,c=l.next;l.next=null,null===s?o=c:s.next=c,s=l;var u=e.alternate;null!==u&&((i=(u=u.updateQueue).lastBaseUpdate)!==s&&(null===i?u.firstBaseUpdate=c:i.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=a.baseState;for(s=0,u=c=l=null,i=o;;){var p=i.lane,f=i.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,m=i;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=F({},d,p);break e;case 2:Ao=!0}}null!==i.callback&&0!==i.lane&&(e.flags|=64,null===(p=a.effects)?a.effects=[i]:p.push(i))}else f={eventTime:f,lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,s|=p;if(null===(i=i.next)){if(null===(i=a.shared.pending))break;i=(p=i).next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}if(null===u&&(l=d),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=u,null!==(t=a.shared.interleaved)){a=t;do{s|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);Fl|=s,e.lanes=s,e.memoizedState=d}}function Mo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(o(191,a));a.call(r)}}}var qo=(new r.Component).refs;function Bo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var $o={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),a=nc(e),o=Ro(r,a);o.payload=t,null!=n&&(o.callback=n),null!==(t=Io(e,o,a))&&(rc(t,e,a,r),zo(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),a=nc(e),o=Ro(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Io(e,o,a))&&(rc(t,e,a,r),zo(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),a=Ro(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Io(e,a,r))&&(rc(t,e,r,n),zo(t,e,r))}};function Uo(e,t,n,r,a,o,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,s):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(a,o))}function Ho(e,t,n){var r=!1,a=Na,o=t.contextType;return"object"==typeof o&&null!==o?o=_o(o):(a=Oa(t)?Pa:Ta.current,o=(r=null!=(r=t.contextTypes))?Aa(e,a):Na),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=$o,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Qo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&$o.enqueueReplaceState(t,t.state,null)}function Zo(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=qo,Oo(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=_o(o):(o=Oa(t)?Pa:Ta.current,a.context=Aa(e,o)),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Bo(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&$o.enqueueReplaceState(a,a.state,null),Do(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function Vo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var a=r,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=a.refs;t===qo&&(t=a.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Wo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Go(e){return(0,e._init)(e._payload)}function Yo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Rc(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Dc(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===O&&Go(o)===t.type)?((r=a(t,n.props)).ref=Vo(e,t,n),r.return=e,r):((r=Ic(n.type,n.key,n.props,null,e.mode,r)).ref=Vo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Mc(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=zc(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Dc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Ic(t.type,t.key,t.props,null,e.mode,n)).ref=Vo(e,null,t),n.return=e,n;case k:return(t=Mc(t,e.mode,n)).return=e,t;case O:return p(e,(0,t._init)(t._payload),n)}if(te(t)||I(t))return(t=zc(t,e.mode,n,null)).return=e,t;Wo(e,t)}return null}function f(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===a?c(e,t,n,r):null;case k:return n.key===a?u(e,t,n,r):null;case O:return f(e,t,(a=n._init)(n._payload),r)}if(te(n)||I(n))return null!==a?null:d(e,t,n,r,null);Wo(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case O:return h(e,t,n,(0,r._init)(r._payload),a)}if(te(r)||I(r))return d(t,e=e.get(n)||null,r,a,null);Wo(t,r)}return null}function m(a,o,i,l){for(var c=null,u=null,d=o,m=o=0,g=null;null!==d&&m<i.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=f(a,d,i[m],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(a,d),o=s(y,o,m),null===u?c=y:u.sibling=y,u=y,d=g}if(m===i.length)return n(a,d),ao&&Xa(a,m),c;if(null===d){for(;m<i.length;m++)null!==(d=p(a,i[m],l))&&(o=s(d,o,m),null===u?c=d:u.sibling=d,u=d);return ao&&Xa(a,m),c}for(d=r(a,d);m<i.length;m++)null!==(g=h(d,a,m,i[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=s(g,o,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(a,e)})),ao&&Xa(a,m),c}function g(a,i,l,c){var u=I(l);if("function"!=typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,m=i,g=i=0,y=null,b=l.next();null!==m&&!b.done;g++,b=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var v=f(a,m,b.value,c);if(null===v){null===m&&(m=y);break}e&&m&&null===v.alternate&&t(a,m),i=s(v,i,g),null===d?u=v:d.sibling=v,d=v,m=y}if(b.done)return n(a,m),ao&&Xa(a,g),u;if(null===m){for(;!b.done;g++,b=l.next())null!==(b=p(a,b.value,c))&&(i=s(b,i,g),null===d?u=b:d.sibling=b,d=b);return ao&&Xa(a,g),u}for(m=r(a,m);!b.done;g++,b=l.next())null!==(b=h(m,a,g,b.value,c))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),i=s(b,i,g),null===d?u=b:d.sibling=b,d=b);return e&&m.forEach((function(e){return t(a,e)})),ao&&Xa(a,g),u}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===S&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case w:e:{for(var c=s.key,u=o;null!==u;){if(u.key===c){if((c=s.type)===S){if(7===u.tag){n(r,u.sibling),(o=a(u,s.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===O&&Go(c)===u.type){n(r,u.sibling),(o=a(u,s.props)).ref=Vo(r,u,s),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===S?((o=zc(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=Ic(s.type,s.key,s.props,null,r.mode,l)).ref=Vo(r,o,s),l.return=r,r=l)}return i(r);case k:e:{for(u=s.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=a(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Mc(s,r.mode,l)).return=r,r=o}return i(r);case O:return e(r,o,(u=s._init)(s._payload),l)}if(te(s))return m(r,o,s,l);if(I(s))return g(r,o,s,l);Wo(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=a(o,s)).return=r,r=o):(n(r,o),(o=Dc(s,r.mode,l)).return=r,r=o),i(r)):n(r,o)}}var Ko=Yo(!0),Xo=Yo(!1),Jo={},es=Ca(Jo),ts=Ca(Jo),ns=Ca(Jo);function rs(e){if(e===Jo)throw Error(o(174));return e}function as(e,t){switch(_a(ns,t),_a(ts,e),_a(es,Jo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ea(es),_a(es,t)}function os(){Ea(es),Ea(ts),Ea(ns)}function ss(e){rs(ns.current);var t=rs(es.current),n=le(t,e.type);t!==n&&(_a(ts,e),_a(es,n))}function is(e){ts.current===e&&(Ea(es),Ea(ts))}var ls=Ca(0);function cs(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var us=[];function ds(){for(var e=0;e<us.length;e++)us[e]._workInProgressVersionPrimary=null;us.length=0}var ps=x.ReactCurrentDispatcher,fs=x.ReactCurrentBatchConfig,hs=0,ms=null,gs=null,ys=null,bs=!1,vs=!1,xs=0,ws=0;function ks(){throw Error(o(321))}function Ss(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ir(e[n],t[n]))return!1;return!0}function Cs(e,t,n,r,a,s){if(hs=s,ms=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ps.current=null===e||null===e.memoizedState?ii:li,e=n(r,a),vs){s=0;do{if(vs=!1,xs=0,25<=s)throw Error(o(301));s+=1,ys=gs=null,t.updateQueue=null,ps.current=ci,e=n(r,a)}while(vs)}if(ps.current=si,t=null!==gs&&null!==gs.next,hs=0,ys=gs=ms=null,bs=!1,t)throw Error(o(300));return e}function Es(){var e=0!==xs;return xs=0,e}function _s(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ys?ms.memoizedState=ys=e:ys=ys.next=e,ys}function Ns(){if(null===gs){var e=ms.alternate;e=null!==e?e.memoizedState:null}else e=gs.next;var t=null===ys?ms.memoizedState:ys.next;if(null!==t)ys=t,gs=e;else{if(null===e)throw Error(o(310));e={memoizedState:(gs=e).memoizedState,baseState:gs.baseState,baseQueue:gs.baseQueue,queue:gs.queue,next:null},null===ys?ms.memoizedState=ys=e:ys=ys.next=e}return ys}function Ts(e,t){return"function"==typeof t?t(e):t}function Ls(e){var t=Ns(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=gs,a=r.baseQueue,s=n.pending;if(null!==s){if(null!==a){var i=a.next;a.next=s.next,s.next=i}r.baseQueue=a=s,n.pending=null}if(null!==a){s=a.next,r=r.baseState;var l=i=null,c=null,u=s;do{var d=u.lane;if((hs&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,i=r):c=c.next=p,ms.lanes|=d,Fl|=d}u=u.next}while(null!==u&&u!==s);null===c?i=r:c.next=l,ir(r,t.memoizedState)||(xi=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{s=a.lane,ms.lanes|=s,Fl|=s,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ps(e){var t=Ns(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,s=t.memoizedState;if(null!==a){n.pending=null;var i=a=a.next;do{s=e(s,i.action),i=i.next}while(i!==a);ir(s,t.memoizedState)||(xi=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function As(){}function Os(e,t){var n=ms,r=Ns(),a=t(),s=!ir(r.memoizedState,a);if(s&&(r.memoizedState=a,xi=!0),r=r.queue,Hs(Is.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||null!==ys&&1&ys.memoizedState.tag){if(n.flags|=2048,Ms(9,Rs.bind(null,n,r,a,t),void 0,null),null===Pl)throw Error(o(349));0!=(30&hs)||js(n,t,a)}return a}function js(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ms.updateQueue)?(t={lastEffect:null,stores:null},ms.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Rs(e,t,n,r){t.value=n,t.getSnapshot=r,zs(t)&&Fs(e)}function Is(e,t,n){return n((function(){zs(t)&&Fs(e)}))}function zs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ir(e,n)}catch(r){return!0}}function Fs(e){var t=Po(e,1);null!==t&&rc(t,e,1,-1)}function Ds(e){var t=_s();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ts,lastRenderedState:e},t.queue=e,e=e.dispatch=ni.bind(null,ms,e),[t.memoizedState,e]}function Ms(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ms.updateQueue)?(t={lastEffect:null,stores:null},ms.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function qs(){return Ns().memoizedState}function Bs(e,t,n,r){var a=_s();ms.flags|=e,a.memoizedState=Ms(1|t,n,void 0,void 0===r?null:r)}function $s(e,t,n,r){var a=Ns();r=void 0===r?null:r;var o=void 0;if(null!==gs){var s=gs.memoizedState;if(o=s.destroy,null!==r&&Ss(r,s.deps))return void(a.memoizedState=Ms(t,n,o,r))}ms.flags|=e,a.memoizedState=Ms(1|t,n,o,r)}function Us(e,t){return Bs(8390656,8,e,t)}function Hs(e,t){return $s(2048,8,e,t)}function Qs(e,t){return $s(4,2,e,t)}function Zs(e,t){return $s(4,4,e,t)}function Vs(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ws(e,t,n){return n=null!=n?n.concat([e]):null,$s(4,4,Vs.bind(null,t,e),n)}function Gs(){}function Ys(e,t){var n=Ns();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ss(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ks(e,t){var n=Ns();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ss(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xs(e,t,n){return 0==(21&hs)?(e.baseState&&(e.baseState=!1,xi=!0),e.memoizedState=n):(ir(n,t)||(n=mt(),ms.lanes|=n,Fl|=n,e.baseState=!0),t)}function Js(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=fs.transition;fs.transition={};try{e(!1),t()}finally{vt=n,fs.transition=r}}function ei(){return Ns().memoizedState}function ti(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ri(e))ai(t,n);else if(null!==(n=Lo(e,t,n,r))){rc(n,e,r,tc()),oi(n,t,r)}}function ni(e,t,n){var r=nc(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ri(e))ai(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,i=o(s,n);if(a.hasEagerState=!0,a.eagerState=i,ir(i,s)){var l=t.interleaved;return null===l?(a.next=a,To(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}}catch(c){}null!==(n=Lo(e,t,a,r))&&(rc(n,e,r,a=tc()),oi(n,t,r))}}function ri(e){var t=e.alternate;return e===ms||null!==t&&t===ms}function ai(e,t){vs=bs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oi(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var si={readContext:_o,useCallback:ks,useContext:ks,useEffect:ks,useImperativeHandle:ks,useInsertionEffect:ks,useLayoutEffect:ks,useMemo:ks,useReducer:ks,useRef:ks,useState:ks,useDebugValue:ks,useDeferredValue:ks,useTransition:ks,useMutableSource:ks,useSyncExternalStore:ks,useId:ks,unstable_isNewReconciler:!1},ii={readContext:_o,useCallback:function(e,t){return _s().memoizedState=[e,void 0===t?null:t],e},useContext:_o,useEffect:Us,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Bs(4194308,4,Vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bs(4,2,e,t)},useMemo:function(e,t){var n=_s();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_s();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ti.bind(null,ms,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},_s().memoizedState=e},useState:Ds,useDebugValue:Gs,useDeferredValue:function(e){return _s().memoizedState=e},useTransition:function(){var e=Ds(!1),t=e[0];return e=Js.bind(null,e[1]),_s().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ms,a=_s();if(ao){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Pl)throw Error(o(349));0!=(30&hs)||js(r,t,n)}a.memoizedState=n;var s={value:n,getSnapshot:t};return a.queue=s,Us(Is.bind(null,r,s,e),[e]),r.flags|=2048,Ms(9,Rs.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=_s(),t=Pl.identifierPrefix;if(ao){var n=Ka;t=":"+t+"R"+(n=(Ya&~(1<<32-st(Ya)-1)).toString(32)+n),0<(n=xs++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ws++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},li={readContext:_o,useCallback:Ys,useContext:_o,useEffect:Hs,useImperativeHandle:Ws,useInsertionEffect:Qs,useLayoutEffect:Zs,useMemo:Ks,useReducer:Ls,useRef:qs,useState:function(){return Ls(Ts)},useDebugValue:Gs,useDeferredValue:function(e){return Xs(Ns(),gs.memoizedState,e)},useTransition:function(){return[Ls(Ts)[0],Ns().memoizedState]},useMutableSource:As,useSyncExternalStore:Os,useId:ei,unstable_isNewReconciler:!1},ci={readContext:_o,useCallback:Ys,useContext:_o,useEffect:Hs,useImperativeHandle:Ws,useInsertionEffect:Qs,useLayoutEffect:Zs,useMemo:Ks,useReducer:Ps,useRef:qs,useState:function(){return Ps(Ts)},useDebugValue:Gs,useDeferredValue:function(e){var t=Ns();return null===gs?t.memoizedState=e:Xs(t,gs.memoizedState,e)},useTransition:function(){return[Ps(Ts)[0],Ns().memoizedState]},useMutableSource:As,useSyncExternalStore:Os,useId:ei,unstable_isNewReconciler:!1};function ui(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:a,digest:null}}function di(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function pi(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fi="function"==typeof WeakMap?WeakMap:Map;function hi(e,t,n){(n=Ro(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ql||(Ql=!0,Zl=r),pi(0,t)},n}function mi(e,t,n){(n=Ro(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){pi(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){pi(0,t),"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gi(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fi;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=_c.bind(null,e,t,n),t.then(e,e))}function yi(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bi(e,t,n,r,a){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ro(-1,1)).tag=2,Io(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var vi=x.ReactCurrentOwner,xi=!1;function wi(e,t,n,r){t.child=null===e?Xo(t,null,n,r):Ko(t,e.child,n,r)}function ki(e,t,n,r,a){n=n.render;var o=t.ref;return Eo(t,a),r=Cs(e,t,n,r,o,a),n=Es(),null===e||xi?(ao&&n&&eo(t),t.flags|=1,wi(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Qi(e,t,a))}function Si(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||jc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ic(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ci(e,t,o,r,a))}if(o=e.child,0==(e.lanes&a)){var s=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(s,r)&&e.ref===t.ref)return Qi(e,t,a)}return t.flags|=1,(e=Rc(o,r)).ref=t.ref,e.return=t,t.child=e}function Ci(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(xi=!1,t.pendingProps=r=o,0==(e.lanes&a))return t.lanes=e.lanes,Qi(e,t,a);0!=(131072&e.flags)&&(xi=!0)}}return Ni(e,t,n,r,a)}function Ei(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_a(Rl,jl),jl|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_a(Rl,jl),jl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,_a(Rl,jl),jl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,_a(Rl,jl),jl|=r;return wi(e,t,a,n),t.child}function _i(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ni(e,t,n,r,a){var o=Oa(n)?Pa:Ta.current;return o=Aa(t,o),Eo(t,a),n=Cs(e,t,n,r,o,a),r=Es(),null===e||xi?(ao&&r&&eo(t),t.flags|=1,wi(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Qi(e,t,a))}function Ti(e,t,n,r,a){if(Oa(n)){var o=!0;za(t)}else o=!1;if(Eo(t,a),null===t.stateNode)Hi(e,t),Ho(t,n,r),Zo(t,n,r,a),r=!0;else if(null===e){var s=t.stateNode,i=t.memoizedProps;s.props=i;var l=s.context,c=n.contextType;"object"==typeof c&&null!==c?c=_o(c):c=Aa(t,c=Oa(n)?Pa:Ta.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof s.getSnapshotBeforeUpdate;d||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(i!==r||l!==c)&&Qo(t,s,r,c),Ao=!1;var p=t.memoizedState;s.state=p,Do(t,r,s,a),l=t.memoizedState,i!==r||p!==l||La.current||Ao?("function"==typeof u&&(Bo(t,n,u,r),l=t.memoizedState),(i=Ao||Uo(t,n,i,r,p,l,c))?(d||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=i):("function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,jo(e,t),i=t.memoizedProps,c=t.type===t.elementType?i:yo(t.type,i),s.props=c,d=t.pendingProps,p=s.context,"object"==typeof(l=n.contextType)&&null!==l?l=_o(l):l=Aa(t,l=Oa(n)?Pa:Ta.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(i!==d||p!==l)&&Qo(t,s,r,l),Ao=!1,p=t.memoizedState,s.state=p,Do(t,r,s,a);var h=t.memoizedState;i!==d||p!==h||La.current||Ao?("function"==typeof f&&(Bo(t,n,f,r),h=t.memoizedState),(c=Ao||Uo(t,n,c,r,p,h,l)||!1)?(u||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,h,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),s.props=r,s.state=h,s.context=l,r=c):("function"!=typeof s.componentDidUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Li(e,t,n,r,o,a)}function Li(e,t,n,r,a,o){_i(e,t);var s=0!=(128&t.flags);if(!r&&!s)return a&&Fa(t,n,!1),Qi(e,t,o);r=t.stateNode,vi.current=t;var i=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=Ko(t,e.child,null,o),t.child=Ko(t,null,i,o)):wi(e,t,i,o),t.memoizedState=r.state,a&&Fa(t,n,!0),t.child}function Pi(e){var t=e.stateNode;t.pendingContext?Ra(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ra(0,t.context,!1),as(e,t.containerInfo)}function Ai(e,t,n,r,a){return ho(),mo(a),t.flags|=256,wi(e,t,n,r),t.child}var Oi,ji,Ri,Ii,zi={dehydrated:null,treeContext:null,retryLane:0};function Fi(e){return{baseLanes:e,cachePool:null,transitions:null}}function Di(e,t,n){var r,a=t.pendingProps,s=ls.current,i=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&s)),r?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),_a(ls,1&s),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=a.children,e=a.fallback,i?(a=t.mode,i=t.child,l={mode:"hidden",children:l},0==(1&a)&&null!==i?(i.childLanes=0,i.pendingProps=l):i=Fc(l,a,0,null),e=zc(e,a,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Fi(n),t.memoizedState=zi,e):Mi(t,l));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,a,s,i){if(n)return 256&t.flags?(t.flags&=-257,qi(e,t,i,r=di(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,a=t.mode,r=Fc({mode:"visible",children:r.children},a,0,null),(s=zc(s,a,i,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,0!=(1&t.mode)&&Ko(t,e.child,null,i),t.child.memoizedState=Fi(i),t.memoizedState=zi,s);if(0==(1&t.mode))return qi(e,t,i,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var l=r.dgst;return r=l,qi(e,t,i,r=di(s=Error(o(419)),r,void 0))}if(l=0!=(i&e.childLanes),xi||l){if(null!==(r=Pl)){switch(i&-i){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!=(a&(r.suspendedLanes|i))?0:a)&&a!==s.retryLane&&(s.retryLane=a,Po(e,a),rc(r,e,a,-1))}return gc(),qi(e,t,i,r=di(Error(o(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Tc.bind(null,e),a._reactRetry=t,null):(e=s.treeContext,ro=ca(a.nextSibling),no=t,ao=!0,oo=null,null!==e&&(Va[Wa++]=Ya,Va[Wa++]=Ka,Va[Wa++]=Ga,Ya=e.id,Ka=e.overflow,Ga=t),t=Mi(t,r.children),t.flags|=4096,t)}(e,t,l,a,r,s,n);if(i){i=a.fallback,l=t.mode,r=(s=e.child).sibling;var c={mode:"hidden",children:a.children};return 0==(1&l)&&t.child!==s?((a=t.child).childLanes=0,a.pendingProps=c,t.deletions=null):(a=Rc(s,c)).subtreeFlags=14680064&s.subtreeFlags,null!==r?i=Rc(r,i):(i=zc(i,l,n,null)).flags|=2,i.return=t,a.return=t,a.sibling=i,t.child=a,a=i,i=t.child,l=null===(l=e.child.memoizedState)?Fi(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=zi,a}return e=(i=e.child).sibling,a=Rc(i,{mode:"visible",children:a.children}),0==(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function Mi(e,t){return(t=Fc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function qi(e,t,n,r){return null!==r&&mo(r),Ko(t,e.child,null,n),(e=Mi(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bi(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Co(e.return,t,n)}function $i(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Ui(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(wi(e,t,r.children,n),0!=(2&(r=ls.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bi(e,n,t);else if(19===e.tag)Bi(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_a(ls,r),0==(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===cs(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),$i(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===cs(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}$i(t,!0,n,null,o);break;case"together":$i(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hi(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qi(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fl|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Rc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Rc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zi(e,t){if(!ao)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vi(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Wi(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vi(t),null;case 1:case 17:return Oa(t.type)&&ja(),Vi(t),null;case 3:return r=t.stateNode,os(),Ea(La),Ea(Ta),ds(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(po(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==oo&&(ic(oo),oo=null))),ji(e,t),Vi(t),null;case 5:is(t);var a=rs(ns.current);if(n=t.type,null!==e&&null!=t.stateNode)Ri(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Vi(t),null}if(e=rs(es.current),po(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[pa]=t,r[fa]=s,e=0!=(1&t.mode),n){case"dialog":Mr("cancel",r),Mr("close",r);break;case"iframe":case"object":case"embed":Mr("load",r);break;case"video":case"audio":for(a=0;a<Ir.length;a++)Mr(Ir[a],r);break;case"source":Mr("error",r);break;case"img":case"image":case"link":Mr("error",r),Mr("load",r);break;case"details":Mr("toggle",r);break;case"input":Y(r,s),Mr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Mr("invalid",r);break;case"textarea":ae(r,s),Mr("invalid",r)}for(var l in be(n,s),a=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?r.textContent!==c&&(!0!==s.suppressHydrationWarning&&Xr(r.textContent,c,e),a=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==s.suppressHydrationWarning&&Xr(r.textContent,c,e),a=["children",""+c]):i.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Mr("scroll",r)}switch(n){case"input":Z(r),J(r,s,!0);break;case"textarea":Z(r),se(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Jr)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ie(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[pa]=t,e[fa]=r,Oi(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(n,r),n){case"dialog":Mr("cancel",e),Mr("close",e),a=r;break;case"iframe":case"object":case"embed":Mr("load",e),a=r;break;case"video":case"audio":for(a=0;a<Ir.length;a++)Mr(Ir[a],e);a=r;break;case"source":Mr("error",e),a=r;break;case"img":case"image":case"link":Mr("error",e),Mr("load",e),a=r;break;case"details":Mr("toggle",e),a=r;break;case"input":Y(e,r),a=G(e,r),Mr("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=F({},r,{value:void 0}),Mr("invalid",e);break;case"textarea":ae(e,r),a=re(e,r),Mr("invalid",e)}for(s in be(n,a),c=a)if(c.hasOwnProperty(s)){var u=c[s];"style"===s?ge(e,u):"dangerouslySetInnerHTML"===s?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===s?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(i.hasOwnProperty(s)?null!=u&&"onScroll"===s&&Mr("scroll",e):null!=u&&v(e,s,u,l))}switch(n){case"input":Z(e),J(e,r,!1);break;case"textarea":Z(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ne(e,!!r.multiple,s,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vi(t),null;case 6:if(e&&null!=t.stateNode)Ii(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=rs(ns.current),rs(es.current),po(t)){if(r=t.stateNode,n=t.memoizedProps,r[pa]=t,(s=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Xr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!=(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[pa]=t,t.stateNode=r}return Vi(t),null;case 13:if(Ea(ls),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ao&&null!==ro&&0!=(1&t.mode)&&0==(128&t.flags))fo(),ho(),t.flags|=98560,s=!1;else if(s=po(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(o(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(o(317));s[pa]=t}else ho(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vi(t),s=!1}else null!==oo&&(ic(oo),oo=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ls.current)?0===Il&&(Il=3):gc())),null!==t.updateQueue&&(t.flags|=4),Vi(t),null);case 4:return os(),ji(e,t),null===e&&$r(t.stateNode.containerInfo),Vi(t),null;case 10:return So(t.type._context),Vi(t),null;case 19:if(Ea(ls),null===(s=t.memoizedState))return Vi(t),null;if(r=0!=(128&t.flags),null===(l=s.rendering))if(r)Zi(s,!1);else{if(0!==Il||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=cs(e))){for(t.flags|=128,Zi(s,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _a(ls,1&ls.current|2),t.child}e=e.sibling}null!==s.tail&&Ke()>Ul&&(t.flags|=128,r=!0,Zi(s,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=cs(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Zi(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ao)return Vi(t),null}else 2*Ke()-s.renderingStartTime>Ul&&1073741824!==n&&(t.flags|=128,r=!0,Zi(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ke(),t.sibling=null,n=ls.current,_a(ls,r?1&n|2:1&n),t):(Vi(t),null);case 22:case 23:return pc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&jl)&&(Vi(t),6&t.subtreeFlags&&(t.flags|=8192)):Vi(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Gi(e,t){switch(to(t),t.tag){case 1:return Oa(t.type)&&ja(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return os(),Ea(La),Ea(Ta),ds(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return is(t),null;case 13:if(Ea(ls),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ea(ls),null;case 4:return os(),null;case 10:return So(t.type._context),null;case 22:case 23:return pc(),null;default:return null}}Oi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ji=function(){},Ri=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,rs(es.current);var o,s=null;switch(n){case"input":a=G(e,a),r=G(e,r),s=[];break;case"select":a=F({},a,{value:void 0}),r=F({},r,{value:void 0}),s=[];break;case"textarea":a=re(e,a),r=re(e,r),s=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(u in be(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u){var l=a[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(i.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(s||(s=[]),s.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(i.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Mr("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},Ii=function(e,t,n,r){n!==r&&(t.flags|=4)};var Yi=!1,Ki=!1,Xi="function"==typeof WeakSet?WeakSet:Set,Ji=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Ec(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){Ec(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&tl(t,n,o)}a=a.next}while(a!==r)}}function al(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function sl(e){var t=e.alternate;null!==t&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pa],delete t[fa],delete t[ma],delete t[ga],delete t[ya])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function il(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||il(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var dl=null,pl=!1;function fl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(at,n)}catch(i){}switch(n.tag){case 5:Ki||el(n,t);case 6:var r=dl,a=pl;dl=null,fl(e,t,n),pl=a,null!==(dl=r)&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?la(e.parentNode,n):1===e.nodeType&&la(e,n),$t(e)):la(dl,n.stateNode));break;case 4:r=dl,a=pl,dl=n.stateNode.containerInfo,pl=!0,fl(e,t,n),dl=r,pl=a;break;case 0:case 11:case 14:case 15:if(!Ki&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var o=a,s=o.destroy;o=o.tag,void 0!==s&&(0!=(2&o)||0!=(4&o))&&tl(n,t,s),a=a.next}while(a!==r)}fl(e,t,n);break;case 1:if(!Ki&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){Ec(n,t,i)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ki=(r=Ki)||null!==n.memoizedState,fl(e,t,n),Ki=r):fl(e,t,n);break;default:fl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xi),t.forEach((function(t){var r=Lc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var s=e,i=t,l=i;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,pl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,pl=!0;break e}l=l.return}if(null===dl)throw Error(o(160));hl(s,i,a),dl=null,pl=!1;var c=a.alternate;null!==c&&(c.return=null),a.return=null}catch(u){Ec(a,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)yl(t,e),t=t.sibling}function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),bl(e),4&r){try{rl(3,e,e.return),al(3,e)}catch(g){Ec(e,e.return,g)}try{rl(5,e,e.return)}catch(g){Ec(e,e.return,g)}}break;case 1:gl(t,e),bl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(gl(t,e),bl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var a=e.stateNode;try{pe(a,"")}catch(g){Ec(e,e.return,g)}}if(4&r&&null!=(a=e.stateNode)){var s=e.memoizedProps,i=null!==n?n.memoizedProps:s,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===s.type&&null!=s.name&&K(a,s),ve(l,i);var u=ve(l,s);for(i=0;i<c.length;i+=2){var d=c[i],p=c[i+1];"style"===d?ge(a,p):"dangerouslySetInnerHTML"===d?de(a,p):"children"===d?pe(a,p):v(a,d,p,u)}switch(l){case"input":X(a,s);break;case"textarea":oe(a,s);break;case"select":var f=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!s.multiple;var h=s.value;null!=h?ne(a,!!s.multiple,h,!1):f!==!!s.multiple&&(null!=s.defaultValue?ne(a,!!s.multiple,s.defaultValue,!0):ne(a,!!s.multiple,s.multiple?[]:"",!1))}a[fa]=s}catch(g){Ec(e,e.return,g)}}break;case 6:if(gl(t,e),bl(e),4&r){if(null===e.stateNode)throw Error(o(162));a=e.stateNode,s=e.memoizedProps;try{a.nodeValue=s}catch(g){Ec(e,e.return,g)}}break;case 3:if(gl(t,e),bl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{$t(t.containerInfo)}catch(g){Ec(e,e.return,g)}break;case 4:default:gl(t,e),bl(e);break;case 13:gl(t,e),bl(e),8192&(a=e.child).flags&&(s=null!==a.memoizedState,a.stateNode.isHidden=s,!s||null!==a.alternate&&null!==a.alternate.memoizedState||($l=Ke())),4&r&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ki=(u=Ki)||d,gl(t,e),Ki=u):gl(t,e),bl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Ji=e,d=e.child;null!==d;){for(p=Ji=d;null!==Ji;){switch(h=(f=Ji).child,f.tag){case 0:case 11:case 14:case 15:rl(4,f,f.return);break;case 1:el(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Ec(r,n,g)}}break;case 5:el(f,f.return);break;case 22:if(null!==f.memoizedState){kl(p);continue}}null!==h?(h.return=f,Ji=h):kl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{a=p.stateNode,u?"function"==typeof(s=a.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=p.stateNode,i=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",i))}catch(g){Ec(e,e.return,g)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(g){Ec(e,e.return,g)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:gl(t,e),bl(e),4&r&&ml(e);case 21:}}function bl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(il(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(pe(a,""),r.flags&=-33),ul(e,ll(e),a);break;case 3:case 4:var s=r.stateNode.containerInfo;cl(e,ll(e),s);break;default:throw Error(o(161))}}catch(i){Ec(e,e.return,i)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Ji=e,xl(e,t,n)}function xl(e,t,n){for(var r=0!=(1&e.mode);null!==Ji;){var a=Ji,o=a.child;if(22===a.tag&&r){var s=null!==a.memoizedState||Yi;if(!s){var i=a.alternate,l=null!==i&&null!==i.memoizedState||Ki;i=Yi;var c=Ki;if(Yi=s,(Ki=l)&&!c)for(Ji=a;null!==Ji;)l=(s=Ji).child,22===s.tag&&null!==s.memoizedState?Sl(a):null!==l?(l.return=s,Ji=l):Sl(a);for(;null!==o;)Ji=o,xl(o,t,n),o=o.sibling;Ji=a,Yi=i,Ki=c}wl(e)}else 0!=(8772&a.subtreeFlags)&&null!==o?(o.return=a,Ji=o):wl(e)}}function wl(e){for(;null!==Ji;){var t=Ji;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ki||al(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ki)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:yo(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Mo(t,s,r);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Mo(t,i,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&$t(p)}}}break;default:throw Error(o(163))}Ki||512&t.flags&&ol(t)}catch(f){Ec(t,t.return,f)}}if(t===e){Ji=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ji=n;break}Ji=t.return}}function kl(e){for(;null!==Ji;){var t=Ji;if(t===e){Ji=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ji=n;break}Ji=t.return}}function Sl(e){for(;null!==Ji;){var t=Ji;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{al(4,t)}catch(l){Ec(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(l){Ec(t,a,l)}}var o=t.return;try{ol(t)}catch(l){Ec(t,o,l)}break;case 5:var s=t.return;try{ol(t)}catch(l){Ec(t,s,l)}}}catch(l){Ec(t,t.return,l)}if(t===e){Ji=null;break}var i=t.sibling;if(null!==i){i.return=t.return,Ji=i;break}Ji=t.return}}var Cl,El=Math.ceil,_l=x.ReactCurrentDispatcher,Nl=x.ReactCurrentOwner,Tl=x.ReactCurrentBatchConfig,Ll=0,Pl=null,Al=null,Ol=0,jl=0,Rl=Ca(0),Il=0,zl=null,Fl=0,Dl=0,Ml=0,ql=null,Bl=null,$l=0,Ul=1/0,Hl=null,Ql=!1,Zl=null,Vl=null,Wl=!1,Gl=null,Yl=0,Kl=0,Xl=null,Jl=-1,ec=0;function tc(){return 0!=(6&Ll)?Ke():-1!==Jl?Jl:Jl=Ke()}function nc(e){return 0==(1&e.mode)?1:0!=(2&Ll)&&0!==Ol?Ol&-Ol:null!==go.transition?(0===ec&&(ec=mt()),ec):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function rc(e,t,n,r){if(50<Kl)throw Kl=0,Xl=null,Error(o(185));yt(e,n,r),0!=(2&Ll)&&e===Pl||(e===Pl&&(0==(2&Ll)&&(Dl|=n),4===Il&&lc(e,Ol)),ac(e,r),1===n&&0===Ll&&0==(1&t.mode)&&(Ul=Ke()+500,Ma&&$a()))}function ac(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-st(o),i=1<<s,l=a[s];-1===l?0!=(i&n)&&0==(i&r)||(a[s]=ft(i,t)):l<=t&&(e.expiredLanes|=i),o&=~i}}(e,t);var r=pt(e,e===Pl?Ol:0);if(0===r)null!==n&&We(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&We(n),1===t)0===e.tag?function(e){Ma=!0,Ba(e)}(cc.bind(null,e)):Ba(cc.bind(null,e)),sa((function(){0==(6&Ll)&&$a()})),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Pc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Jl=-1,ec=0,0!=(6&Ll))throw Error(o(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=pt(e,e===Pl?Ol:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=yc(e,r);else{t=r;var a=Ll;Ll|=2;var s=mc();for(Pl===e&&Ol===t||(Hl=null,Ul=Ke()+500,fc(e,t));;)try{vc();break}catch(l){hc(e,l)}ko(),_l.current=s,Ll=a,null!==Al?t=0:(Pl=null,Ol=0,t=Il)}if(0!==t){if(2===t&&(0!==(a=ht(e))&&(r=a,t=sc(e,a))),1===t)throw n=zl,fc(e,0),lc(e,r),ac(e,Ke()),n;if(6===t)lc(e,r);else{if(a=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!ir(o(),a))return!1}catch(i){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)&&(2===(t=yc(e,r))&&(0!==(s=ht(e))&&(r=s,t=sc(e,s))),1===t))throw n=zl,fc(e,0),lc(e,r),ac(e,Ke()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:kc(e,Bl,Hl);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=$l+500-Ke())){if(0!==pt(e,0))break;if(((a=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ra(kc.bind(null,e,Bl,Hl),t);break}kc(e,Bl,Hl);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var i=31-st(r);s=1<<i,(i=t[i])>a&&(a=i),r&=~s}if(r=a,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*El(r/1960))-r)){e.timeoutHandle=ra(kc.bind(null,e,Bl,Hl),r);break}kc(e,Bl,Hl);break;default:throw Error(o(329))}}}return ac(e,Ke()),e.callbackNode===n?oc.bind(null,e):null}function sc(e,t){var n=ql;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=yc(e,t))&&(t=Bl,Bl=n,null!==t&&ic(t)),e}function ic(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function lc(e,t){for(t&=~Ml,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!=(6&Ll))throw Error(o(327));Sc();var t=pt(e,0);if(0==(1&t))return ac(e,Ke()),null;var n=yc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=sc(e,r))}if(1===n)throw n=zl,fc(e,0),lc(e,t),ac(e,Ke()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kc(e,Bl,Hl),ac(e,Ke()),null}function uc(e,t){var n=Ll;Ll|=1;try{return e(t)}finally{0===(Ll=n)&&(Ul=Ke()+500,Ma&&$a())}}function dc(e){null!==Gl&&0===Gl.tag&&0==(6&Ll)&&Sc();var t=Ll;Ll|=1;var n=Tl.transition,r=vt;try{if(Tl.transition=null,vt=1,e)return e()}finally{vt=r,Tl.transition=n,0==(6&(Ll=t))&&$a()}}function pc(){jl=Rl.current,Ea(Rl)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==Al)for(n=Al.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&ja();break;case 3:os(),Ea(La),Ea(Ta),ds();break;case 5:is(r);break;case 4:os();break;case 13:case 19:Ea(ls);break;case 10:So(r.type._context);break;case 22:case 23:pc()}n=n.return}if(Pl=e,Al=e=Rc(e.current,null),Ol=jl=t,Il=0,zl=null,Ml=Dl=Fl=0,Bl=ql=null,null!==No){for(t=0;t<No.length;t++)if(null!==(r=(n=No[t]).interleaved)){n.interleaved=null;var a=r.next,o=n.pending;if(null!==o){var s=o.next;o.next=a,r.next=s}n.pending=r}No=null}return e}function hc(e,t){for(;;){var n=Al;try{if(ko(),ps.current=si,bs){for(var r=ms.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}bs=!1}if(hs=0,ys=gs=ms=null,vs=!1,xs=0,Nl.current=null,null===n||null===n.return){Il=1,zl=t,Al=null;break}e:{var s=e,i=n.return,l=n,c=t;if(t=Ol,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(0==(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=yi(i);if(null!==h){h.flags&=-257,bi(h,i,l,0,t),1&h.mode&&gi(s,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0==(1&t)){gi(s,u,t),gc();break e}c=Error(o(426))}else if(ao&&1&l.mode){var y=yi(i);if(null!==y){0==(65536&y.flags)&&(y.flags|=256),bi(y,i,l,0,t),mo(ui(c,l));break e}}s=c=ui(c,l),4!==Il&&(Il=2),null===ql?ql=[s]:ql.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,Fo(s,hi(0,c,t));break e;case 1:l=c;var b=s.type,v=s.stateNode;if(0==(128&s.flags)&&("function"==typeof b.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===Vl||!Vl.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t,Fo(s,mi(s,l,t));break e}}s=s.return}while(null!==s)}wc(n)}catch(x){t=x,Al===n&&null!==n&&(Al=n=n.return);continue}break}}function mc(){var e=_l.current;return _l.current=si,null===e?si:e}function gc(){0!==Il&&3!==Il&&2!==Il||(Il=4),null===Pl||0==(268435455&Fl)&&0==(268435455&Dl)||lc(Pl,Ol)}function yc(e,t){var n=Ll;Ll|=2;var r=mc();for(Pl===e&&Ol===t||(Hl=null,fc(e,t));;)try{bc();break}catch(a){hc(e,a)}if(ko(),Ll=n,_l.current=r,null!==Al)throw Error(o(261));return Pl=null,Ol=0,Il}function bc(){for(;null!==Al;)xc(Al)}function vc(){for(;null!==Al&&!Ge();)xc(Al)}function xc(e){var t=Cl(e.alternate,e,jl);e.memoizedProps=e.pendingProps,null===t?wc(e):Al=t,Nl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Wi(n,t,jl)))return void(Al=n)}else{if(null!==(n=Gi(n,t)))return n.flags&=32767,void(Al=n);if(null===e)return Il=6,void(Al=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Al=t);Al=t=e}while(null!==t);0===Il&&(Il=5)}function kc(e,t,n){var r=vt,a=Tl.transition;try{Tl.transition=null,vt=1,function(e,t,n,r){do{Sc()}while(null!==Gl);if(0!=(6&Ll))throw Error(o(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-st(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(e,s),e===Pl&&(Al=Pl=null,Ol=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Wl||(Wl=!0,Pc(tt,(function(){return Sc(),null}))),s=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||s){s=Tl.transition,Tl.transition=null;var i=vt;vt=1;var l=Ll;Ll|=4,Nl.current=null,function(e,t){if(ea=Ht,fr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(w){n=null;break e}var i=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==n||0!==a&&3!==p.nodeType||(l=i+a),p!==s||0!==r&&3!==p.nodeType||(c=i+r),3===p.nodeType&&(i+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===n&&++u===a&&(l=i),f===s&&++d===r&&(c=i),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ta={focusedElem:e,selectionRange:n},Ht=!1,Ji=t;null!==Ji;)if(e=(t=Ji).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Ji=e;else for(;null!==Ji;){t=Ji;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,y=m.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:yo(t.type,g),y);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(o(163))}}catch(w){Ec(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Ji=e;break}Ji=t.return}m=nl,nl=!1}(e,n),yl(n,e),hr(ta),Ht=!!ea,ta=ea=null,e.current=n,vl(n,e,a),Ye(),Ll=l,vt=i,Tl.transition=s}else e.current=n;if(Wl&&(Wl=!1,Gl=e,Yl=a),s=e.pendingLanes,0===s&&(Vl=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(at,e,void 0,128==(128&e.current.flags))}catch(t){}}(n.stateNode),ac(e,Ke()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(Ql)throw Ql=!1,e=Zl,Zl=null,e;0!=(1&Yl)&&0!==e.tag&&Sc(),s=e.pendingLanes,0!=(1&s)?e===Xl?Kl++:(Kl=0,Xl=e):Kl=0,$a()}(e,t,n,r)}finally{Tl.transition=a,vt=r}return null}function Sc(){if(null!==Gl){var e=xt(Yl),t=Tl.transition,n=vt;try{if(Tl.transition=null,vt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Yl=0,0!=(6&Ll))throw Error(o(331));var a=Ll;for(Ll|=4,Ji=e.current;null!==Ji;){var s=Ji,i=s.child;if(0!=(16&Ji.flags)){var l=s.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Ji=u;null!==Ji;){var d=Ji;switch(d.tag){case 0:case 11:case 15:rl(8,d,s)}var p=d.child;if(null!==p)p.return=d,Ji=p;else for(;null!==Ji;){var f=(d=Ji).sibling,h=d.return;if(sl(d),d===u){Ji=null;break}if(null!==f){f.return=h,Ji=f;break}Ji=h}}}var m=s.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Ji=s}}if(0!=(2064&s.subtreeFlags)&&null!==i)i.return=s,Ji=i;else e:for(;null!==Ji;){if(0!=(2048&(s=Ji).flags))switch(s.tag){case 0:case 11:case 15:rl(9,s,s.return)}var b=s.sibling;if(null!==b){b.return=s.return,Ji=b;break e}Ji=s.return}}var v=e.current;for(Ji=v;null!==Ji;){var x=(i=Ji).child;if(0!=(2064&i.subtreeFlags)&&null!==x)x.return=i,Ji=x;else e:for(i=v;null!==Ji;){if(0!=(2048&(l=Ji).flags))try{switch(l.tag){case 0:case 11:case 15:al(9,l)}}catch(k){Ec(l,l.return,k)}if(l===i){Ji=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Ji=w;break e}Ji=l.return}}if(Ll=a,$a(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(at,e)}catch(k){}r=!0}return r}finally{vt=n,Tl.transition=t}}return!1}function Cc(e,t,n){e=Io(e,t=hi(0,t=ui(n,t),1),1),t=tc(),null!==e&&(yt(e,1,t),ac(e,t))}function Ec(e,t,n){if(3===e.tag)Cc(e,e,n);else for(;null!==t;){if(3===t.tag){Cc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){t=Io(t,e=mi(t,e=ui(n,e),1),1),e=tc(),null!==t&&(yt(t,1,e),ac(t,e));break}}t=t.return}}function _c(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Pl===e&&(Ol&n)===n&&(4===Il||3===Il&&(130023424&Ol)===Ol&&500>Ke()-$l?fc(e,0):Ml|=n),ac(e,t)}function Nc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=tc();null!==(e=Po(e,t))&&(yt(e,t,n),ac(e,n))}function Tc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Nc(e,n)}function Lc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Nc(e,n)}function Pc(e,t){return Ve(e,t)}function Ac(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oc(e,t,n,r){return new Ac(e,t,n,r)}function jc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Rc(e,t){var n=e.alternate;return null===n?((n=Oc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ic(e,t,n,r,a,s){var i=2;if(r=e,"function"==typeof e)jc(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case S:return zc(n.children,a,s,t);case C:i=8,a|=8;break;case E:return(e=Oc(12,n,t,2|a)).elementType=E,e.lanes=s,e;case L:return(e=Oc(13,n,t,a)).elementType=L,e.lanes=s,e;case P:return(e=Oc(19,n,t,a)).elementType=P,e.lanes=s,e;case j:return Fc(n,a,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:i=10;break e;case N:i=9;break e;case T:i=11;break e;case A:i=14;break e;case O:i=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Oc(i,n,t,a)).elementType=e,t.type=r,t.lanes=s,t}function zc(e,t,n,r){return(e=Oc(7,e,r,t)).lanes=n,e}function Fc(e,t,n,r){return(e=Oc(22,e,r,t)).elementType=j,e.lanes=n,e.stateNode={isHidden:!1},e}function Dc(e,t,n){return(e=Oc(6,e,null,t)).lanes=n,e}function Mc(e,t,n){return(t=Oc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qc(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,a,o,s,i,l){return e=new qc(e,t,n,i,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Oc(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oo(o),e}function $c(e){if(!e)return Na;e:{if($e(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Oa(n))return Ia(e,n,t)}return t}function Uc(e,t,n,r,a,o,s,i,l){return(e=Bc(n,r,!0,e,0,o,0,i,l)).context=$c(null),n=e.current,(o=Ro(r=tc(),a=nc(n))).callback=null!=t?t:null,Io(n,o,a),e.current.lanes=a,yt(e,a,r),ac(e,r),e}function Hc(e,t,n,r){var a=t.current,o=tc(),s=nc(a);return n=$c(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ro(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Io(a,t,s))&&(rc(e,a,s,o),zo(e,a,s)),s}function Qc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){Zc(e,t),(e=e.alternate)&&Zc(e,t)}Cl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||La.current)xi=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return xi=!1,function(e,t,n){switch(t.tag){case 3:Pi(t),ho();break;case 5:ss(t);break;case 1:Oa(t.type)&&za(t);break;case 4:as(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;_a(bo,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(_a(ls,1&ls.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Di(e,t,n):(_a(ls,1&ls.current),null!==(e=Qi(e,t,n))?e.sibling:null);_a(ls,1&ls.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Ui(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),_a(ls,ls.current),r)break;return null;case 22:case 23:return t.lanes=0,Ei(e,t,n)}return Qi(e,t,n)}(e,t,n);xi=0!=(131072&e.flags)}else xi=!1,ao&&0!=(1048576&t.flags)&&Ja(t,Za,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hi(e,t),e=t.pendingProps;var a=Aa(t,Ta.current);Eo(t,n),a=Cs(null,t,r,e,a,n);var s=Es();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oa(r)?(s=!0,za(t)):s=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Oo(t),a.updater=$o,t.stateNode=a,a._reactInternals=t,Zo(t,r,e,n),t=Li(null,t,r,!0,s,n)):(t.tag=0,ao&&s&&eo(t),wi(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hi(e,t),e=t.pendingProps,r=(a=r._init)(r._payload),t.type=r,a=t.tag=function(e){if("function"==typeof e)return jc(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===A)return 14}return 2}(r),e=yo(r,e),a){case 0:t=Ni(null,t,r,e,n);break e;case 1:t=Ti(null,t,r,e,n);break e;case 11:t=ki(null,t,r,e,n);break e;case 14:t=Si(null,t,r,yo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,Ni(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 1:return r=t.type,a=t.pendingProps,Ti(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 3:e:{if(Pi(t),null===e)throw Error(o(387));r=t.pendingProps,a=(s=t.memoizedState).element,jo(e,t),Do(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Ai(e,t,r,n,a=ui(Error(o(423)),t));break e}if(r!==a){t=Ai(e,t,r,n,a=ui(Error(o(424)),t));break e}for(ro=ca(t.stateNode.containerInfo.firstChild),no=t,ao=!0,oo=null,n=Xo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ho(),r===a){t=Qi(e,t,n);break e}wi(e,t,r,n)}t=t.child}return t;case 5:return ss(t),null===e&&co(t),r=t.type,a=t.pendingProps,s=null!==e?e.memoizedProps:null,i=a.children,na(r,a)?i=null:null!==s&&na(r,s)&&(t.flags|=32),_i(e,t),wi(e,t,i,n),t.child;case 6:return null===e&&co(t),null;case 13:return Di(e,t,n);case 4:return as(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ko(t,null,r,n):wi(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,ki(e,t,r,a=t.elementType===r?a:yo(r,a),n);case 7:return wi(e,t,t.pendingProps,n),t.child;case 8:case 12:return wi(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,s=t.memoizedProps,i=a.value,_a(bo,r._currentValue),r._currentValue=i,null!==s)if(ir(s.value,i)){if(s.children===a.children&&!La.current){t=Qi(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){i=s.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===s.tag){(c=Ro(-1,n&-n)).tag=2;var u=s.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),Co(s.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===s.tag)i=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(i=s.return))throw Error(o(341));i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),Co(i,n,t),i=s.sibling}else i=s.child;if(null!==i)i.return=s;else for(i=s;null!==i;){if(i===t){i=null;break}if(null!==(s=i.sibling)){s.return=i.return,i=s;break}i=i.return}s=i}wi(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Eo(t,n),r=r(a=_o(a)),t.flags|=1,wi(e,t,r,n),t.child;case 14:return a=yo(r=t.type,t.pendingProps),Si(e,t,r,a=yo(r.type,a),n);case 15:return Ci(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:yo(r,a),Hi(e,t),t.tag=1,Oa(r)?(e=!0,za(t)):e=!1,Eo(t,n),Ho(t,r,a),Zo(t,r,a,n),Li(null,t,r,!0,e,n);case 19:return Ui(e,t,n);case 22:return Ei(e,t,n)}throw Error(o(156,t.tag))};var Wc="function"==typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Kc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function eu(e,t,n,r,a){var o=n._reactRootContainer;if(o){var s=o;if("function"==typeof a){var i=a;a=function(){var e=Qc(s);i.call(e)}}Hc(t,s,e,a)}else s=function(e,t,n,r,a){if(a){if("function"==typeof r){var o=r;r=function(){var e=Qc(s);o.call(e)}}var s=Uc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=s,e[ha]=s.current,$r(8===e.nodeType?e.parentNode:e),dc(),s}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var i=r;r=function(){var e=Qc(l);i.call(e)}}var l=Bc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[ha]=l.current,$r(8===e.nodeType?e.parentNode:e),dc((function(){Hc(t,l,n,r)})),l}(n,t,e,a,r);return Qc(s)}Yc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Hc(e,t,null,null)},Yc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Hc(null,e,null,null)})),t[ha]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jt.length&&0!==t&&t<jt[n].priority;n++);jt.splice(n,0,e),0===n&&Ft(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),ac(t,Ke()),0==(6&Ll)&&(Ul=Ke()+500,$a()))}break;case 13:dc((function(){var t=Po(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Vc(e,1)}},kt=function(e){if(13===e.tag){var t=Po(e,134217728);if(null!==t)rc(t,e,134217728,tc());Vc(e,134217728)}},St=function(e){if(13===e.tag){var t=nc(e),n=Po(e,t);if(null!==n)rc(n,e,t,tc());Vc(e,t)}},Ct=function(){return vt},Et=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},ke=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=wa(r);if(!a)throw Error(o(90));V(r),X(r,a)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=uc,Le=dc;var tu={usingClientEntryPoint:!1,Events:[va,xa,wa,_e,Ne,uc]},nu={findFiberByHostInstance:ba,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qe(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!au.isDisabled&&au.supportsFiber)try{at=au.inject(ru),ot=au}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Kc(e))throw Error(o(299));var n=!1,r="",a=Wc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Bc(e,1,!1,null,0,n,0,r,a),e[ha]=t.current,$r(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Qe(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(o(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Kc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,a=!1,s="",i=Wc;if(null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=Uc(t,null,e,1,null!=n?n:null,a,0,s,i),e[ha]=t.current,$r(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Yc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(o(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(o(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[ha]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},745:(e,t,n)=>{"use strict";var r=n(3935);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},3935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4448)},9590:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var i,l,c,u;if(Array.isArray(e)){if((i=e.length)!=s.length)return!1;for(l=i;0!=l--;)if(!o(e[l],s[l]))return!1;return!0}if(n&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!s.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!o(l.value[1],s.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!s.has(l.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((i=e.length)!=s.length)return!1;for(l=i;0!=l--;)if(e[l]!==s[l])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof s.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof s.toString)return e.toString()===s.toString();if((i=(c=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(l=i;0!=l--;)if(!Object.prototype.hasOwnProperty.call(s,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=i;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!o(e[c[l]],s[c[l]]))return!1;return!0}return e!=e&&s!=s}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},405:(e,t,n)=>{"use strict";n.d(t,{B6:()=>Q,ql:()=>J});var r=n(7294),a=n(5697),o=n.n(a),s=n(9590),i=n.n(s),l=n(1143),c=n.n(l),u=n(6774),d=n.n(u);function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},y={rel:["amphtml","canonical","alternate"]},b={type:["application/ld+json"]},v={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},x=Object.keys(g).map((function(e){return g[e]})),w={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},k=Object.keys(w).reduce((function(e,t){return e[w[t]]=t,e}),{}),S=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},C=function(e){var t=S(e,g.TITLE),n=S(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=S(e,"defaultTitle");return t||r||void 0},E=function(e){return S(e,"onChangeClientState")||function(){}},_=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return p({},e,t)}),{})},N=function(e,t){return t.filter((function(e){return void 0!==e[g.BASE]})).map((function(e){return e[g.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a<r.length;a+=1){var o=r[a].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},T=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var a={};n.filter((function(e){for(var n,o=Object.keys(e),s=0;s<o.length;s+=1){var i=o[s],l=i.toLowerCase();-1===t.indexOf(l)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===l&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(i)||"innerHTML"!==i&&"cssText"!==i&&"itemprop"!==i||(n=i)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),a[n]||(a[n]={}),!r[n][c]&&(a[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(a),s=0;s<o.length;s+=1){var i=o[s],l=p({},r[i],a[i]);r[i]=l}return e}),[]).reverse()},L=function(e,t){if(Array.isArray(e)&&e.length)for(var n=0;n<e.length;n+=1)if(e[n][t])return!0;return!1},P=function(e){return Array.isArray(e)?e.join(""):e},A=function(e,t){return Array.isArray(e)?e.reduce((function(e,n){return function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1}(n,t)?e.priority.push(n):e.default.push(n),e}),{priority:[],default:[]}):{default:e}},O=function(e,t){var n;return p({},e,((n={})[t]=void 0,n))},j=[g.NOSCRIPT,g.SCRIPT,g.STYLE],R=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},I=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},z=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[w[n]||n]=e[n],t}),t)},F=function(e,t){return t.map((function(t,n){var a,o=((a={key:n})["data-rh"]=!0,a);return Object.keys(t).forEach((function(e){var n=w[e]||e;"innerHTML"===n||"cssText"===n?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[n]=t[e]})),r.createElement(e,o)}))},D=function(e,t,n){switch(e){case g.TITLE:return{toComponent:function(){return n=t.titleAttributes,(a={key:e=t.title})["data-rh"]=!0,o=z(n,a),[r.createElement(g.TITLE,o,e)];var e,n,a,o},toString:function(){return function(e,t,n,r){var a=I(n),o=P(t);return a?"<"+e+' data-rh="true" '+a+">"+R(o,r)+"</"+e+">":"<"+e+' data-rh="true">'+R(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return z(t)},toString:function(){return I(t)}};default:return{toComponent:function(){return F(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var a=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var a=void 0===r[t]?t:t+'="'+R(r[t],n)+'"';return e?e+" "+a:a}),""),o=r.innerHTML||r.cssText||"",s=-1===j.indexOf(e);return t+"<"+e+' data-rh="true" '+a+(s?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}},M=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,a=e.htmlAttributes,o=e.noscriptTags,s=e.styleTags,i=e.title,l=void 0===i?"":i,c=e.titleAttributes,u=e.linkTags,d=e.metaTags,p=e.scriptTags,f={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var h=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,a=A(e.metaTags,v),o=A(t,y),s=A(n,b);return{priorityMethods:{toComponent:function(){return[].concat(F(g.META,a.priority),F(g.LINK,o.priority),F(g.SCRIPT,s.priority))},toString:function(){return D(g.META,a.priority,r)+" "+D(g.LINK,o.priority,r)+" "+D(g.SCRIPT,s.priority,r)}},metaTags:a.default,linkTags:o.default,scriptTags:s.default}}(e);f=h.priorityMethods,u=h.linkTags,d=h.metaTags,p=h.scriptTags}return{priority:f,base:D(g.BASE,t,r),bodyAttributes:D("bodyAttributes",n,r),htmlAttributes:D("htmlAttributes",a,r),link:D(g.LINK,u,r),meta:D(g.META,d,r),noscript:D(g.NOSCRIPT,o,r),script:D(g.SCRIPT,p,r),style:D(g.STYLE,s,r),title:D(g.TITLE,{title:l,titleAttributes:c},r)}},q=[],B=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?q:n.instances},add:function(e){(n.canUseDOM?q:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?q:n.instances).indexOf(e);(n.canUseDOM?q:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=M({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},$=r.createContext({}),U=o().shape({setHelmet:o().func,helmetInstances:o().shape({get:o().func,add:o().func,remove:o().func})}),H="undefined"!=typeof document,Q=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new B(r.props.context,t.canUseDOM),r}return f(t,e),t.prototype.render=function(){return r.createElement($.Provider,{value:this.helmetData.value},this.props.children)},t}(r.Component);Q.canUseDOM=H,Q.propTypes={context:o().shape({helmet:o().shape()}),children:o().node.isRequired},Q.defaultProps={context:{}},Q.displayName="HelmetProvider";var Z=function(e,t){var n,r=document.head||document.querySelector(g.HEAD),a=r.querySelectorAll(e+"[data-rh]"),o=[].slice.call(a),s=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&("innerHTML"===a?r.innerHTML=t.innerHTML:"cssText"===a?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(a,void 0===t[a]?"":t[a]));r.setAttribute("data-rh","true"),o.some((function(e,t){return n=t,r.isEqualNode(e)}))?o.splice(n,1):s.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),s.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:s}},V=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),a=r?r.split(","):[],o=[].concat(a),s=Object.keys(t),i=0;i<s.length;i+=1){var l=s[i],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===a.indexOf(l)&&a.push(l);var u=o.indexOf(l);-1!==u&&o.splice(u,1)}for(var d=o.length-1;d>=0;d-=1)n.removeAttribute(o[d]);a.length===o.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==s.join(",")&&n.setAttribute("data-rh",s.join(","))}},W=function(e,t){var n=e.baseTag,r=e.htmlAttributes,a=e.linkTags,o=e.metaTags,s=e.noscriptTags,i=e.onChangeClientState,l=e.scriptTags,c=e.styleTags,u=e.title,d=e.titleAttributes;V(g.BODY,e.bodyAttributes),V(g.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=P(e)),V(g.TITLE,t)}(u,d);var p={baseTag:Z(g.BASE,n),linkTags:Z(g.LINK,a),metaTags:Z(g.META,o),noscriptTags:Z(g.NOSCRIPT,s),scriptTags:Z(g.SCRIPT,l),styleTags:Z(g.STYLE,c)},f={},h={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(f[e]=n),r.length&&(h[e]=p[e].oldTags)})),t&&t(),i(e,f,h)},G=null,Y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).rendered=!1,t}f(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!d()(e,this.props)},n.componentDidUpdate=function(){this.emitChange()},n.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},n.emitChange=function(){var e,t,n=this.props.context,r=n.setHelmet,a=null,o=(e=n.helmetInstances.get().map((function(e){var t=p({},e.props);return delete t.context,t})),{baseTag:N(["href"],e),bodyAttributes:_("bodyAttributes",e),defer:S(e,"defer"),encode:S(e,"encodeSpecialCharacters"),htmlAttributes:_("htmlAttributes",e),linkTags:T(g.LINK,["rel","href"],e),metaTags:T(g.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:T(g.NOSCRIPT,["innerHTML"],e),onChangeClientState:E(e),scriptTags:T(g.SCRIPT,["src","innerHTML"],e),styleTags:T(g.STYLE,["cssText"],e),title:C(e),titleAttributes:_("titleAttributes",e),prioritizeSeoTags:L(e,"prioritizeSeoTags")});Q.canUseDOM?(t=o,G&&cancelAnimationFrame(G),t.defer?G=requestAnimationFrame((function(){W(t,(function(){G=null}))})):(W(t),G=null)):M&&(a=M(o)),r(a)},n.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},n.render=function(){return this.init(),null},t}(r.Component);Y.propTypes={context:U.isRequired},Y.displayName="HelmetDispatcher";var K=["children"],X=["children"],J=function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!i()(O(this.props,"helmetData"),O(e,"helmetData"))},n.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:t};case g.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return p({},r,((t={})[n.type]=[].concat(r[n.type]||[],[p({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,a=e.newProps,o=e.newChildProps,s=e.nestedChildren;switch(r.type){case g.TITLE:return p({},a,((t={})[r.type]=s,t.titleAttributes=p({},o),t));case g.BODY:return p({},a,{bodyAttributes:p({},o)});case g.HTML:return p({},a,{htmlAttributes:p({},o)});default:return p({},a,((n={})[r.type]=p({},o),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=p({},t);return Object.keys(e).forEach((function(t){var r;n=p({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return c()(x.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+x.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),c()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,a={};return r.Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,o=r.children,s=m(r,K),i=Object.keys(s).reduce((function(e,t){return e[k[t]||t]=s[t],e}),{}),l=e.type;switch("symbol"==typeof l?l=l.toString():n.warnOnInvalidChildren(e,o),l){case g.FRAGMENT:t=n.mapChildrenToProps(o,t);break;case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:a=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:a,newChildProps:i,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:i,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(a,t)},n.render=function(){var e=this.props,t=e.children,n=m(e,X),a=p({},n),o=n.helmetData;return t&&(a=this.mapChildrenToProps(t,a)),!o||o instanceof B||(o=new B(o.context,o.instances)),o?r.createElement(Y,p({},a,{context:o.value,helmetData:void 0})):r.createElement($.Consumer,null,(function(e){return r.createElement(Y,p({},a,{context:e}))}))},t}(r.Component);J.propTypes={base:o().object,bodyAttributes:o().object,children:o().oneOfType([o().arrayOf(o().node),o().node]),defaultTitle:o().string,defer:o().bool,encodeSpecialCharacters:o().bool,htmlAttributes:o().object,link:o().arrayOf(o().object),meta:o().arrayOf(o().object),noscript:o().arrayOf(o().object),onChangeClientState:o().func,script:o().arrayOf(o().object),style:o().arrayOf(o().object),title:o().string,titleAttributes:o().object,titleTemplate:o().string,prioritizeSeoTags:o().bool,helmetData:o().object},J.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},J.displayName="Helmet"},9921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,i=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case i:case s:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case a:return t}}}function k(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=a,t.Profiler=i,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||w(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===i},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===i||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===v||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},9864:(e,t,n)=>{"use strict";e.exports=n(9921)},8356:(e,t,n)=>{"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}var i=n(7294),l=n(5697),c=[],u=[];function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function p(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var a=d(e[r]);a.loading?t.loading=!0:(t.loaded[r]=a.loaded,t.error=a.error),n.push(a.promise),a.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function f(e,t){return i.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function h(e,t){var d,p;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var h=s({loader:null,loading:null,delay:200,timeout:null,render:f,webpack:null,modules:null},t),m=null;function g(){return m||(m=e(h.loader)),m.promise}return c.push(g),"function"==typeof h.webpack&&u.push((function(){if((0,h.webpack)().every((function(e){return void 0!==e&&void 0!==n.m[e]})))return g()})),p=d=function(t){function n(n){var r;return o(a(a(r=t.call(this,n)||this)),"retry",(function(){r.setState({error:null,loading:!0,timedOut:!1}),m=e(h.loader),r._loadModule()})),g(),r.state={error:m.error,pastDelay:!1,timedOut:!1,loading:m.loading,loaded:m.loaded},r}r(n,t),n.preload=function(){return g()};var s=n.prototype;return s.UNSAFE_componentWillMount=function(){this._loadModule()},s.componentDidMount=function(){this._mounted=!0},s._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(h.modules)&&h.modules.forEach((function(t){e.context.loadable.report(t)})),m.loading){var t=function(t){e._mounted&&e.setState(t)};"number"==typeof h.delay&&(0===h.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){t({pastDelay:!0})}),h.delay)),"number"==typeof h.timeout&&(this._timeout=setTimeout((function(){t({timedOut:!0})}),h.timeout));var n=function(){t({error:m.error,loaded:m.loaded,loading:m.loading}),e._clearTimeouts()};m.promise.then((function(){return n(),null})).catch((function(e){return n(),null}))}},s.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},s._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},s.render=function(){return this.state.loading||this.state.error?i.createElement(h.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?h.render(this.state.loaded,this.props):null},n}(i.Component),o(d,"contextTypes",{loadable:l.shape({report:l.func.isRequired})}),p}function m(e){return h(d,e)}m.Map=function(e){if("function"!=typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return h(p,e)};var g=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.getChildContext=function(){return{loadable:{report:this.props.report}}},n.render=function(){return i.Children.only(this.props.children)},t}(i.Component);function y(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then((function(){if(e.length)return y(e)}))}o(g,"propTypes",{report:l.func.isRequired}),o(g,"childContextTypes",{loadable:l.shape({report:l.func.isRequired}).isRequired}),m.Capture=g,m.preloadAll=function(){return new Promise((function(e,t){y(c).then(e,t)}))},m.preloadReady=function(){return new Promise((function(e,t){y(u).then(e,e)}))},e.exports=m},8790:(e,t,n)=>{"use strict";n.d(t,{H:()=>i,f:()=>s});var r=n(6550),a=n(7462),o=n(7294);function s(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var a=e.path?(0,r.LX)(t,e):n.length?n[n.length-1].match:r.F0.computeRootMatch(t);return a&&(n.push({route:e,match:a}),e.routes&&s(e.routes,t,n)),a})),n}function i(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?o.createElement(r.rs,n,e.map((function(e,n){return o.createElement(r.AW,{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render((0,a.Z)({},n,{},t,{route:e})):o.createElement(e.component,(0,a.Z)({},n,t,{route:e}))}})}))):null}},3727:(e,t,n)=>{"use strict";n.d(t,{OL:()=>v,VK:()=>u,rU:()=>g});var r=n(6550),a=n(5068),o=n(7294),s=n(2358),i=n(7462),l=n(3366),c=n(8776),u=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,s.lX)(t.props),t}return(0,a.Z)(t,e),t.prototype.render=function(){return o.createElement(r.F0,{history:this.history,children:this.props.children})},t}(o.Component);o.Component;var d=function(e,t){return"function"==typeof e?e(t):e},p=function(e,t){return"string"==typeof e?(0,s.ob)(e,null,null,t):e},f=function(e){return e},h=o.forwardRef;void 0===h&&(h=f);var m=h((function(e,t){var n=e.innerRef,r=e.navigate,a=e.onClick,s=(0,l.Z)(e,["innerRef","navigate","onClick"]),c=s.target,u=(0,i.Z)({},s,{onClick:function(e){try{a&&a(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=f!==h&&t||n,o.createElement("a",u)}));var g=h((function(e,t){var n=e.component,a=void 0===n?m:n,u=e.replace,g=e.to,y=e.innerRef,b=(0,l.Z)(e,["component","replace","to","innerRef"]);return o.createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=e.history,r=p(d(g,e.location),e.location),l=r?n.createHref(r):"",m=(0,i.Z)({},b,{href:l,navigate:function(){var t=d(g,e.location),r=(0,s.Ep)(e.location)===(0,s.Ep)(p(t));(u||r?n.replace:n.push)(t)}});return f!==h?m.ref=t||y:m.innerRef=y,o.createElement(a,m)}))})),y=function(e){return e},b=o.forwardRef;void 0===b&&(b=y);var v=b((function(e,t){var n=e["aria-current"],a=void 0===n?"page":n,s=e.activeClassName,u=void 0===s?"active":s,f=e.activeStyle,h=e.className,m=e.exact,v=e.isActive,x=e.location,w=e.sensitive,k=e.strict,S=e.style,C=e.to,E=e.innerRef,_=(0,l.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=x||e.location,s=p(d(C,n),n),l=s.pathname,N=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),T=N?(0,r.LX)(n.pathname,{path:N,exact:m,sensitive:w,strict:k}):null,L=!!(v?v(T,n):T),P="function"==typeof h?h(L):h,A="function"==typeof S?S(L):S;L&&(P=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(P,u),A=(0,i.Z)({},A,f));var O=(0,i.Z)({"aria-current":L&&a||null,className:P,style:A,to:s},_);return y!==b?O.ref=t||E:O.innerRef=E,o.createElement(g,O)}))}))},6550:(e,t,n)=>{"use strict";n.d(t,{AW:()=>P,F0:()=>v,LX:()=>L,TH:()=>M,k6:()=>D,l_:()=>E,rs:()=>z,s6:()=>b});var r=n(5068),a=n(7294),o=n(5697),s=n.n(o),i=n(2358),l=n(8776),c=n(7462),u=n(4779),d=n.n(u),p=(n(9864),n(3366)),f=(n(8679),1073741823),h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};var m=a.createContext||function(e,t){var n,o,i="__create-react-context-"+function(){var e="__global_unique_id__";return h[e]=(h[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n,r,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return(t=e.call.apply(e,[this].concat(o))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}(0,r.Z)(n,e);var a=n.prototype;return a.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},a.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,a=e.value;((o=r)===(s=a)?0!==o||1/o==1/s:o!=o&&s!=s)?n=0:(n="function"==typeof t?t(r,a):f,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,s},a.render=function(){return this.props.children},n}(a.Component);l.childContextTypes=((n={})[i]=s().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.Z)(n,t);var a=n.prototype;return a.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?f:t},a.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?f:e},a.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},a.getValue=function(){return this.context[i]?this.context[i].get():e},a.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(a.Component);return c.contextTypes=((o={})[i]=s().object,o),{Provider:l,Consumer:c}},g=function(e){var t=m();return t.displayName=e,t},y=g("Router-History"),b=g("Router"),v=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return a.createElement(b.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a.createElement(y.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a.Component);a.Component;var x=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(a.Component);var w={},k=1e4,S=0;function C(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(w[e])return w[e];var t=d().compile(e);return S<k&&(w[e]=t,S++),t}(e)(t,{pretty:!0})}function E(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return a.createElement(b.Consumer,null,(function(e){e||(0,l.Z)(!1);var r=e.history,s=e.staticContext,u=o?r.push:r.replace,d=(0,i.ob)(t?"string"==typeof n?C(n,t.params):(0,c.Z)({},n,{pathname:C(n.pathname,t.params)}):n);return s?(u(d),null):a.createElement(x,{onMount:function(){u(d)},onUpdate:function(e,t){var n=(0,i.ob)(t.to);(0,i.Hp)(n,(0,c.Z)({},d,{key:n.key}))||u(d)},to:n})}))}var _={},N=1e4,T=0;function L(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,a=n.exact,o=void 0!==a&&a,s=n.strict,i=void 0!==s&&s,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=_[n]||(_[n]={});if(r[e])return r[e];var a=[],o={regexp:d()(e,a,t),keys:a};return T<N&&(r[e]=o,T++),o}(n,{end:o,strict:i,sensitive:c}),a=r.regexp,s=r.keys,l=a.exec(e);if(!l)return null;var u=l[0],p=l.slice(1),f=e===u;return o&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:s.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}var P=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a.createElement(b.Consumer,null,(function(t){t||(0,l.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?L(n.pathname,e.props):t.match,o=(0,c.Z)({},t,{location:n,match:r}),s=e.props,i=s.children,u=s.component,d=s.render;return Array.isArray(i)&&function(e){return 0===a.Children.count(e)}(i)&&(i=null),a.createElement(b.Provider,{value:o},o.match?i?"function"==typeof i?i(o):i:u?a.createElement(u,o):d?d(o):null:"function"==typeof i?i(o):null)}))},t}(a.Component);function A(e){return"/"===e.charAt(0)?e:"/"+e}function O(e,t){if(!e)return t;var n=A(e);return 0!==t.pathname.indexOf(n)?t:(0,c.Z)({},t,{pathname:t.pathname.substr(n.length)})}function j(e){return"string"==typeof e?e:(0,i.Ep)(e)}function R(e){return function(){(0,l.Z)(!1)}}function I(){}a.Component;var z=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a.createElement(b.Consumer,null,(function(t){t||(0,l.Z)(!1);var n,r,o=e.props.location||t.location;return a.Children.forEach(e.props.children,(function(e){if(null==r&&a.isValidElement(e)){n=e;var s=e.props.path||e.props.from;r=s?L(o.pathname,(0,c.Z)({},e.props,{path:s})):t.match}})),r?a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(a.Component);var F=a.useContext;function D(){return F(y)}function M(){return F(b).location}},5251:(e,t,n)=>{"use strict";var r=n(7294),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:a,type:e,key:c,ref:u,props:o,_owner:i.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},2408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var x=v.prototype=new b;x.constructor=v,m(x,y.prototype),x.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var a,o={},s=null,i=null;if(null!=t)for(a in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(s=""+t.key),t)k.call(t,a)&&!C.hasOwnProperty(a)&&(o[a]=t[a]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(a in l=e.defaultProps)void 0===o[a]&&(o[a]=l[a]);return{$$typeof:n,type:e,key:s,ref:i,props:o,_owner:S.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var N=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function L(e,t,a,o,s){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var l=!1;if(null===e)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return s=s(l=e),e=""===o?"."+T(l,0):o,w(s)?(a="",null!=e&&(a=e.replace(N,"$&/")+"/"),L(s,t,a,"",(function(e){return e}))):null!=s&&(_(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,a+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(N,"$&/")+"/")+e)),t.push(s)),1;if(l=0,o=""===o?".":o+":",w(e))for(var c=0;c<e.length;c++){var u=o+T(i=e[c],c);l+=L(i,t,a,u,s)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(i=e.next()).done;)l+=L(i=i.value,t,a,u=o+T(i,c++),s);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],a=0;return L(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function A(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},j={transition:null},R={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:j,ReactCurrentOwner:S};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=a,t.Profiler=s,t.PureComponent=v,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=m({},e.props),o=e.key,s=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,i=S.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)k.call(t,c)&&!C.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}return{$$typeof:n,type:e.type,key:o,ref:s,props:a,_owner:i}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=j.transition;j.transition={};try{e()}finally{j.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return O.current.useCallback(e,t)},t.useContext=function(e){return O.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return O.current.useDeferredValue(e)},t.useEffect=function(e,t){return O.current.useEffect(e,t)},t.useId=function(){return O.current.useId()},t.useImperativeHandle=function(e,t,n){return O.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return O.current.useMemo(e,t)},t.useReducer=function(e,t,n){return O.current.useReducer(e,t,n)},t.useRef=function(e){return O.current.useRef(e)},t.useState=function(e){return O.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return O.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return O.current.useTransition()},t.version="18.2.0"},7294:(e,t,n)=>{"use strict";e.exports=n(2408)},5893:(e,t,n)=>{"use strict";e.exports=n(5251)},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,s=a>>>1;r<s;){var i=2*(r+1)-1,l=e[i],c=i+1,u=e[c];if(0>o(l,n))c<a&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[i]=n,r=i);else{if(!(c<a&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();t.unstable_now=function(){return i.now()-l}}var c=[],u=[],d=1,p=null,f=3,h=!1,m=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)a(u);else{if(!(t.startTime<=e))break;a(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(g=!1,x(e),!m)if(null!==r(c))m=!0,j(k);else{var t=r(u);null!==t&&R(w,t.startTime-e)}}function k(e,n){m=!1,g&&(g=!1,b(_),_=-1),h=!0;var o=f;try{for(x(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!L());){var s=p.callback;if("function"==typeof s){p.callback=null,f=p.priorityLevel;var i=s(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof i?p.callback=i:p===r(c)&&a(c),x(n)}else a(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&R(w,d.startTime-n),l=!1}return l}finally{p=null,f=o,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,C=!1,E=null,_=-1,N=5,T=-1;function L(){return!(t.unstable_now()-T<N)}function P(){if(null!==E){var e=t.unstable_now();T=e;var n=!0;try{n=E(!0,e)}finally{n?S():(C=!1,E=null)}}else C=!1}if("function"==typeof v)S=function(){v(P)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,O=A.port2;A.port1.onmessage=P,S=function(){O.postMessage(null)}}else S=function(){y(P,0)};function j(e){E=e,C||(C=!0,S())}function R(e,n){_=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,j(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,a,o){var s=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?s+o:s:o=s,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return e={id:d++,callback:a,priorityLevel:e,startTime:o,expirationTime:i=o+i,sortIndex:-1},o>s?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(b(_),_=-1):g=!0,R(w,o-s))):(e.sortIndex=i,n(c,e),m||h||(m=!0,j(k))),e},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},3840:(e,t,n)=>{"use strict";e.exports=n(53)},6774:e=>{e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!i(c))return!1;var u=e[c],d=t[c];if(!1===(a=n?n.call(r,u,d,c):void 0)||void 0===a&&u!==d)return!1}return!0}},6809:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={title:"Quickstart",url:"https://sidorares.github.io",baseUrl:"/node-mysql2/zh-CN/",organizationName:"sidorares",projectName:"node-mysql2",trailingSlash:!1,favicon:"img/favicon.svg",onBrokenLinks:"throw",onBrokenMarkdownLinks:"throw",onBrokenAnchors:"throw",i18n:{defaultLocale:"en",locales:["en","zh-CN","pt-BR"],localeConfigs:{en:{label:"\ud83c\uddfa\ud83c\uddf8 English",direction:"ltr"},"zh-CN":{label:"\ud83c\udde8\ud83c\uddf3 \u7b80\u4f53\u4e2d\u6587",direction:"ltr"},"pt-BR":{label:"\ud83c\udde7\ud83c\uddf7 Portugu\xeas (Brasil)",direction:"ltr"}},path:"i18n"},presets:[["classic",{docs:{sidebarPath:"./sidebars.ts",editUrl:"https://github.com/sidorares/node-mysql2/tree/master/website/"},theme:{customCss:"./src/css/custom.scss"},blog:!1}]],themeConfig:{navbar:{items:[{to:"/docs",label:"MySQL2",position:"left",className:"navbar__brand navbar__manual--title text--truncate",activeBaseRegex:"^/$"},{to:"/docs/documentation",label:"Docs",position:"left"},{to:"/docs/examples",label:"Examples",position:"left"},{to:"/docs/faq",label:"FAQ",position:"left"},{href:"https://github.com/sidorares/node-mysql2",label:"GitHub",position:"right"},{href:"https://stackoverflow.com/questions/tagged/mysql2",label:"Stack Overflow",position:"right"},{href:"https://github.com/sponsors/sidorares",label:"Donate",position:"right"},{type:"search",position:"right"},{type:"localeDropdown",position:"right",dropdownItemsBefore:[],dropdownItemsAfter:[]}],hideOnScroll:!1},prism:{theme:{plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},darkTheme:{plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},additionalLanguages:["json","bash","tsx"],magicComments:[{className:"theme-code-block-highlighted-line",line:"highlight-next-line",block:{start:"highlight-start",end:"highlight-end"}}]},colorMode:{defaultMode:"light",disableSwitch:!1,respectPrefersColorScheme:!1},docs:{versionPersistence:"localStorage",sidebar:{hideable:!1,autoCollapseCategories:!1}},metadata:[],tableOfContents:{minHeadingLevel:2,maxHeadingLevel:3}},plugins:["docusaurus-plugin-sass","@easyops-cn/docusaurus-search-local",null],baseUrlIssueBanner:!0,onDuplicateRoutes:"warn",staticDirectories:["static"],customFields:{},themes:[],scripts:[],headTags:[],stylesheets:[],clientModules:[],tagline:"",titleDelimiter:"|",noIndex:!1,markdown:{format:"mdx",mermaid:!1,mdx1Compat:{comments:!0,admonitions:!0,headingIds:!0}}}},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},5068:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>a})},3366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}n.d(t,{Z:()=>r})},512:(e,t,n)=>{"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}n.d(t,{Z:()=>a});const a=function(){for(var e,t,n=0,a="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}},2573:(e,t,n)=>{"use strict";n.d(t,{p1:()=>N,y$:()=>ee});var r,a,o,s,i,l,c,u=n(7294),d=n(512),p=Object.create,f=Object.defineProperty,h=Object.defineProperties,m=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertyNames,b=Object.getOwnPropertySymbols,v=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,k=(e,t,n)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S=(e,t)=>{for(var n in t||(t={}))x.call(t,n)&&k(e,n,t[n]);if(b)for(var n of b(t))w.call(t,n)&&k(e,n,t[n]);return e},C=(e,t)=>h(e,g(t)),E=(e,t)=>{var n={};for(var r in e)x.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&b)for(var r of b(e))t.indexOf(r)<0&&w.call(e,r)&&(n[r]=e[r]);return n},_=(r={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var a,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var s in a={},n[o]=a,t)t.hasOwnProperty(s)&&(a[s]=e(t[s],n));return a;case"Array":return o=r.util.objId(t),n[o]?n[o]:(a=[],n[o]=a,t.forEach((function(t,r){a[r]=e(t,n)})),a);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var o=(a=a||r.languages)[e],s={};for(var i in o)if(o.hasOwnProperty(i)){if(i==t)for(var l in n)n.hasOwnProperty(l)&&(s[l]=n[l]);n.hasOwnProperty(i)||(s[i]=o[i])}var c=a[e];return a[e]=s,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=s)})),s},DFS:function e(t,n,a,o){o=o||{};var s=r.util.objId;for(var i in t)if(t.hasOwnProperty(i)){n.call(t,i,t[i],a||i);var l=t[i],c=r.util.type(l);"Object"!==c||o[s(l)]?"Array"!==c||o[s(l)]||(o[s(l)]=!0,e(l,n,i,o)):(o[s(l)]=!0,e(l,n,null,o))}}},plugins:{},highlight:function(e,t,n){var o={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",o),!o.grammar)throw new Error('The language "'+o.language+'" has no grammar.');return o.tokens=r.tokenize(o.code,o.grammar),r.hooks.run("after-tokenize",o),a.stringify(r.util.encode(o.tokens),o.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new i;return l(a,a.head,e),s(e,a,t,a.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,o=0;a=n[o++];)a(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function s(e,t,n,i,u,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var h=0;h<f.length;++h){if(d&&d.cause==p+","+h)return;var m=f[h],g=m.inside,y=!!m.lookbehind,b=!!m.greedy,v=m.alias;if(b&&!m.pattern.global){var x=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,x+"g")}for(var w=m.pattern||m,k=i.next,S=u;k!==t.tail&&!(d&&S>=d.reach);S+=k.value.length,k=k.next){var C=k.value;if(t.length>e.length)return;if(!(C instanceof a)){var E,_=1;if(b){if(!(E=o(w,S,e,y))||E.index>=e.length)break;var N=E.index,T=E.index+E[0].length,L=S;for(L+=k.value.length;N>=L;)L+=(k=k.next).value.length;if(S=L-=k.value.length,k.value instanceof a)continue;for(var P=k;P!==t.tail&&(L<T||"string"==typeof P.value);P=P.next)_++,L+=P.value.length;_--,C=e.slice(S,L),E.index-=S}else if(!(E=o(w,0,C,y)))continue;N=E.index;var A=E[0],O=C.slice(0,N),j=C.slice(N+A.length),R=S+C.length;d&&R>d.reach&&(d.reach=R);var I=k.prev;if(O&&(I=l(t,I,O),S+=O.length),c(t,I,_),k=l(t,I,new a(p,g?r.tokenize(A,g):A,v,A)),j&&l(t,k,j),_>1){var z={cause:p+","+h,reach:R};s(e,t,n,k.prev,S,z),d&&z.reach>d.reach&&(d.reach=z.reach)}}}}}}function i(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function c(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}return a.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},s=t.alias;s&&(Array.isArray(s)?Array.prototype.push.apply(o.classes,s):o.classes.push(s)),r.hooks.run("wrap",o);var i="";for(var l in o.attributes)i+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+i+">"+o.content+"</"+o.tag+">"},r}();t.exports=n,n.default=n}},function(){return a||(0,r[y(r)[0]])((a={exports:{}}).exports,a),a.exports}),N=((e,t,n)=>(n=null!=e?p(v(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of y(t))x.call(e,a)||a===n||f(e,a,{get:()=>t[a],enumerable:!(r=m(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?n:f(n,"default",{value:e,enumerable:!0}),e)))(_());N.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},N.languages.markup.tag.inside["attr-value"].inside.entity=N.languages.markup.entity,N.languages.markup.doctype.inside["internal-subset"].inside=N.languages.markup,N.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(N.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:N.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:N.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},N.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(N.languages.markup.tag,"addAttribute",{value:function(e,t){N.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:N.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),N.languages.html=N.languages.markup,N.languages.mathml=N.languages.markup,N.languages.svg=N.languages.markup,N.languages.xml=N.languages.extend("markup",{}),N.languages.ssml=N.languages.xml,N.languages.atom=N.languages.xml,N.languages.rss=N.languages.xml,o=N,s={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},l="(?:[^\\\\-]|"+(i=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")",l=RegExp(l+"-"+l),c={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},o.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:i,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":s,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:i}},"special-escape":s,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":c}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:i,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":c}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}},N.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},N.languages.javascript=N.languages.extend("clike",{"class-name":[N.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),N.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,N.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:N.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:N.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:N.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:N.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:N.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),N.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:N.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),N.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),N.languages.markup&&(N.languages.markup.tag.addInlined("script","javascript"),N.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),N.languages.js=N.languages.javascript,N.languages.actionscript=N.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),N.languages.actionscript["class-name"].alias="function",delete N.languages.actionscript.parameter,delete N.languages.actionscript["literal-property"],N.languages.markup&&N.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:N.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(N),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},a="doc-comment";if(o=e.languages[t]){var o,s=o[a];if((s=s||(o=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[a])instanceof RegExp&&(s=o[a]={pattern:s}),Array.isArray(s))for(var i=0,l=s.length;i<l;i++)s[i]instanceof RegExp&&(s[i]={pattern:s[i]}),r(s[i]);else r(s)}}))}}),t.addSupport(["java","javascript","php"],t)}(N),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(N),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(N),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(o),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(N),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,s=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var a,o=t[n];"code"!==o.type?e(o.content):(a=o.content[1],o=o.content[3],a&&o&&"code-language"===a.type&&"code-block"===o.type&&"string"==typeof a.content&&(a=a.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),a="language-"+(a=(/[a-z][\w-]*/i.exec(a)||[""])[0].toLowerCase()),o.alias?"string"==typeof o.alias?o.alias=[o.alias,a]:o.alias.push(a):o.alias=[a]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,a=t.classes.length;r<a;r++){var o=t.classes[r];if(o=/language-(.+)/.exec(o)){n=o[1];break}}var c,u=e.languages[n];u?t.content=e.highlight(t.content.replace(s,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n)):i[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(c="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),i={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(N),N.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:N.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},N.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var a=[];if(d(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var o=p(/^\($/,/^\)$/);if(-1===o)continue;for(;n<o;n++){var s=u(0);"variable"===s.type&&(f(s,"variable-input"),a.push(s.content))}n=o+1}if(d(["punctuation","property-query"])&&"{"===u(0).content&&(n++,f(u(0),"property-mutation"),0<a.length)){var i=p(/^\{$/,/^\}$/);if(-1!==i)for(var l=n;l<i;l++){var c=t[l];"variable"===c.type&&0<=a.indexOf(c.content)&&f(c,"variable-input")}}}}function u(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function p(e,r){for(var a=1,o=n;o<t.length;o++){var s=t[o],i=s.content;if("punctuation"===s.type&&"string"==typeof i)if(e.test(i))a++;else if(r.test(i)&&0==--a)return o}return-1}function f(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),N.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,a=r.inside["interpolation-punctuation"],o=r.pattern.source;function s(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function i(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function l(t,n,s){var l=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),c=0,u={},d=(l=i(l.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=c++,n="___"+s.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,s),Object.keys(u));return c=0,function t(n){for(var o=0;o<n.length;o++){if(c>=d.length)return;var s,l,p,f,h,m,g,y=n[o];"string"==typeof y||"string"==typeof y.content?(s=d[c],-1!==(g=(m="string"==typeof y?y:y.content).indexOf(s))&&(++c,l=m.substring(0,g),h=u[s],p=void 0,(f={})["interpolation-punctuation"]=a,3===(f=e.tokenize(h,f)).length&&((p=[1,1]).push.apply(p,i(f[1],e.languages.javascript,"javascript")),f.splice.apply(f,p)),p=new e.Token("interpolation",f,r.alias,h),f=m.substring(g+s.length),h=[],l&&h.push(l),h.push(p),f&&(t(m=[f]),h.push.apply(h,m)),"string"==typeof y?(n.splice.apply(n,[o,1].concat(h)),o+=h.length-1):y.content=h)):(g=y.content,Array.isArray(g)?t(g):t([g]))}}(l),new e.Token(s,l,"language-"+s,t)}e.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),t].filter(Boolean);var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in c&&function t(n){for(var r=0,a=n.length;r<a;r++){var o,s,i,c=n[r];"string"!=typeof c&&(o=c.content,Array.isArray(o)?"template-string"===c.type?(c=o[1],3===o.length&&"string"!=typeof c&&"embedded-code"===c.type&&(s=u(c),c=c.alias,c=Array.isArray(c)?c[0]:c,i=e.languages[c])&&(o[1]=l(s,i,c))):t(o):"string"!=typeof o&&t([o]))}}(t.tokens)}))}(N),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(N),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(N),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(N),N.languages.n4js=N.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),N.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),N.languages.n4jsd=N.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var a=n[r],o=e.languages.javascript[a];a=(o="RegExp"===e.util.type(o)?e.languages.javascript[a]={pattern:o}:o).inside||{};(o.inside=a)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(N),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return a})),RegExp(e,t)}function s(t){for(var n=[],r=0;r<t.length;r++){var a=t[r],o=!1;"string"!=typeof a&&("tag"===a.type&&a.content[0]&&"tag"===a.content[0].type?"</"===a.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===i(a.content[0].content[1])&&n.pop():"/>"!==a.content[a.content.length-1].content&&n.push({tagName:i(a.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof a)&&0<n.length&&0===n[n.length-1].openedBraces&&(o=i(a),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(o+=i(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(o=i(t[r-1])+o,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",o,null,o)),a.content&&"string"!=typeof a.content&&s(a.content)}}a=o(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var i=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(i).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(N),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(N),N.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},N.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=N.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(N),N.languages.c=N.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),N.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),N.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},N.languages.c.string],char:N.languages.c.char,comment:N.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:N.languages.c}}}}),N.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete N.languages.c.boolean,N.languages.objectivec=N.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete N.languages.objectivec["class-name"],N.languages.objc=N.languages.objectivec,N.languages.reason=N.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),N.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete N.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(N),N.languages.go=N.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),N.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete N.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(N),N.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},N.languages.python["string-interpolation"].inside.interpolation.inside.rest=N.languages.python,N.languages.py=N.languages.python;((e,t)=>{for(var n in t)f(e,n,{get:t[n],enumerable:!0})})({},{dracula:()=>T,duotoneDark:()=>L,duotoneLight:()=>P,github:()=>A,jettwaveDark:()=>H,jettwaveLight:()=>Q,nightOwl:()=>O,nightOwlLight:()=>j,oceanicNext:()=>z,okaidia:()=>F,oneDark:()=>Z,oneLight:()=>V,palenight:()=>D,shadesOfPurple:()=>M,synthwave84:()=>q,ultramin:()=>B,vsDark:()=>$,vsLight:()=>U});var T={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},L={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},P={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},A={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},O={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},j={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},R="#c5a5c5",I="#8dc891",z={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:R}},{types:["attr-value"],style:{color:I}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:I}},{types:["punctuation"],style:{color:I}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:R}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},F={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},D={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},M={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},q={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},B={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},$={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},U={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},H={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Q={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Z={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},V={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},W=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:a}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=S(S({},e[t]),a);e[t]=n})),e}),{});return r.root=n,r.plain=C(S({},n),{backgroundColor:void 0}),r},G=/\r\n|\r|\n/,Y=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},K=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},X=e=>{const t=[[]],n=[e],r=[0],a=[e.length];let o=0,s=0,i=[];const l=[i];for(;s>-1;){for(;(o=r[s]++)<a[s];){let e,c=t[s];const u=n[s][o];if("string"==typeof u?(c=s>0?c:["plain"],e=u):(c=K(c,u.type),u.alias&&(c=K(c,u.alias)),e=u.content),"string"!=typeof e){s++,t.push(c),n.push(e),r.push(0),a.push(e.length);continue}const d=e.split(G),p=d.length;i.push({types:c,content:d[0]});for(let t=1;t<p;t++)Y(i),l.push(i=[]),i.push({types:c,content:d[t]})}s--,t.pop(),n.pop(),r.pop(),a.pop()}return Y(i),l},J=({children:e,language:t,code:n,theme:r,prism:a})=>{const o=t.toLowerCase(),s=((e,t)=>{const[n,r]=(0,u.useState)(W(t,e)),a=(0,u.useRef)(),o=(0,u.useRef)();return(0,u.useEffect)((()=>{t===a.current&&e===o.current||(a.current=t,o.current=e,r(W(t,e)))}),[e,t]),n})(o,r),i=(e=>(0,u.useCallback)((t=>{var n=t,{className:r,style:a,line:o}=n,s=E(n,["className","style","line"]);const i=C(S({},s),{className:(0,d.Z)("token-line",r)});return"object"==typeof e&&"plain"in e&&(i.style=e.plain),"object"==typeof a&&(i.style=S(S({},i.style||{}),a)),i}),[e]))(s),l=(e=>{const t=(0,u.useCallback)((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return(0,u.useCallback)((e=>{var n=e,{token:r,className:a,style:o}=n,s=E(n,["token","className","style"]);const i=C(S({},s),{className:(0,d.Z)("token",...r.types,a),children:r.content,style:t(r)});return null!=o&&(i.style=S(S({},i.style||{}),o)),i}),[t])})(s),c=(({prism:e,code:t,grammar:n,language:r})=>{const a=(0,u.useRef)(e);return(0,u.useMemo)((()=>{if(null==n)return X([t]);const e={code:t,grammar:n,language:r,tokens:[]};return a.current.hooks.run("before-tokenize",e),e.tokens=a.current.tokenize(t,n),a.current.hooks.run("after-tokenize",e),X(e.tokens)}),[t,n,r])})({prism:a,language:o,code:n,grammar:a.languages[o]});return e({tokens:c,className:`prism-code language-${o}`,style:null!=s?s.root:{},getLineProps:i,getTokenProps:l})},ee=e=>(0,u.createElement)(J,C(S({},e),{prism:e.prism||N,theme:e.theme||$,code:e.code,language:e.language}))},8776:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=!0,a="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(a);var n="function"==typeof t?t():t,o=n?"".concat(a,": ").concat(n):a;throw new Error(o)}}},7529:e=>{"use strict";e.exports=JSON.parse('{"theme.AnnouncementBar.closeButtonAriaLabel":"\u5173\u95ed","theme.BackToTopButton.buttonAriaLabel":"\u56de\u5230\u9876\u90e8","theme.CodeBlock.copied":"\u590d\u5236\u6210\u529f","theme.CodeBlock.copy":"\u590d\u5236","theme.CodeBlock.copyButtonAriaLabel":"\u590d\u5236\u4ee3\u7801\u5230\u526a\u8d34\u677f","theme.CodeBlock.wordWrapToggle":"\u5207\u6362\u81ea\u52a8\u6362\u884c","theme.DocSidebarItem.collapseCategoryAriaLabel":"\u6298\u53e0\u4fa7\u8fb9\u680f\u5206\u7c7b \'{label}\'","theme.DocSidebarItem.expandCategoryAriaLabel":"\u5c55\u5f00\u4fa7\u8fb9\u680f\u5206\u7c7b \'{label}\'","theme.ErrorPageContent.title":"\u9875\u9762\u5df2\u5d29\u6e83\u3002","theme.ErrorPageContent.tryAgain":"\u91cd\u8bd5","theme.NavBar.navAriaLabel":"\u4e3b\u5bfc\u822a","theme.NotFound.p1":"\u6211\u4eec\u627e\u4e0d\u5230\u60a8\u8981\u627e\u7684\u9875\u9762\u3002","theme.NotFound.p2":"\u8bf7\u8054\u7cfb\u539f\u59cb\u94fe\u63a5\u6765\u6e90\u7f51\u7ad9\u7684\u6240\u6709\u8005\uff0c\u5e76\u544a\u77e5\u4ed6\u4eec\u94fe\u63a5\u5df2\u635f\u574f\u3002","theme.NotFound.title":"\u627e\u4e0d\u5230\u9875\u9762","theme.TOCCollapsible.toggleButtonLabel":"\u672c\u9875\u603b\u89c8","theme.admonition.caution":"\u8b66\u544a","theme.admonition.danger":"\u5371\u9669","theme.admonition.info":"\u4fe1\u606f","theme.admonition.note":"\u5907\u6ce8","theme.admonition.tip":"\u63d0\u793a","theme.admonition.warning":"\u6ce8\u610f","theme.blog.archive.description":"\u5386\u53f2\u535a\u6587","theme.blog.archive.title":"\u5386\u53f2\u535a\u6587","theme.blog.paginator.navAriaLabel":"\u535a\u6587\u5217\u8868\u5206\u9875\u5bfc\u822a","theme.blog.paginator.newerEntries":"\u8f83\u65b0\u7684\u535a\u6587","theme.blog.paginator.olderEntries":"\u8f83\u65e7\u7684\u535a\u6587","theme.blog.post.paginator.navAriaLabel":"\u535a\u6587\u5206\u9875\u5bfc\u822a","theme.blog.post.paginator.newerPost":"\u8f83\u65b0\u4e00\u7bc7","theme.blog.post.paginator.olderPost":"\u8f83\u65e7\u4e00\u7bc7","theme.blog.post.plurals":"{count} \u7bc7\u535a\u6587","theme.blog.post.readMore":"\u9605\u8bfb\u66f4\u591a","theme.blog.post.readMoreLabel":"\u9605\u8bfb {title} \u7684\u5168\u6587","theme.blog.post.readingTime.plurals":"\u9605\u8bfb\u9700 {readingTime} \u5206\u949f","theme.blog.sidebar.navAriaLabel":"\u6700\u8fd1\u535a\u6587\u5bfc\u822a","theme.blog.tagTitle":"{nPosts} \u542b\u6709\u6807\u7b7e\u300c{tagName}\u300d","theme.colorToggle.ariaLabel":"\u5207\u6362\u6d45\u8272/\u6697\u9ed1\u6a21\u5f0f\uff08\u5f53\u524d\u4e3a{mode}\uff09","theme.colorToggle.ariaLabel.mode.dark":"\u6697\u9ed1\u6a21\u5f0f","theme.colorToggle.ariaLabel.mode.light":"\u6d45\u8272\u6a21\u5f0f","theme.common.editThisPage":"\u7f16\u8f91\u6b64\u9875","theme.common.headingLinkTitle":"{heading}\u7684\u76f4\u63a5\u94fe\u63a5","theme.common.skipToMainContent":"\u8df3\u5230\u4e3b\u8981\u5185\u5bb9","theme.docs.DocCard.categoryDescription":"{count} \u4e2a\u9879\u76ee","theme.docs.breadcrumbs.home":"\u4e3b\u9875\u9762","theme.docs.breadcrumbs.navAriaLabel":"\u9875\u9762\u8def\u5f84","theme.docs.paginator.navAriaLabel":"\u6587\u4ef6\u9009\u9879\u5361","theme.docs.paginator.next":"\u4e0b\u4e00\u9875","theme.docs.paginator.previous":"\u4e0a\u4e00\u9875","theme.docs.sidebar.closeSidebarButtonAriaLabel":"\u5173\u95ed\u5bfc\u822a\u680f","theme.docs.sidebar.collapseButtonAriaLabel":"\u6536\u8d77\u4fa7\u8fb9\u680f","theme.docs.sidebar.collapseButtonTitle":"\u6536\u8d77\u4fa7\u8fb9\u680f","theme.docs.sidebar.expandButtonAriaLabel":"\u5c55\u5f00\u4fa7\u8fb9\u680f","theme.docs.sidebar.expandButtonTitle":"\u5c55\u5f00\u4fa7\u8fb9\u680f","theme.docs.sidebar.navAriaLabel":"\u6587\u6863\u4fa7\u8fb9\u680f","theme.docs.sidebar.toggleSidebarButtonAriaLabel":"\u5207\u6362\u5bfc\u822a\u680f","theme.docs.tagDocListPageTitle":"{nDocsTagged}\u300c{tagName}\u300d","theme.docs.tagDocListPageTitle.nDocsTagged":"{count} \u7bc7\u6587\u6863\u5e26\u6709\u6807\u7b7e","theme.docs.versionBadge.label":"\u7248\u672c\uff1a{versionLabel}","theme.docs.versions.latestVersionLinkLabel":"\u6700\u65b0\u7248\u672c","theme.docs.versions.latestVersionSuggestionLabel":"\u6700\u65b0\u7684\u6587\u6863\u8bf7\u53c2\u9605 {latestVersionLink} ({versionLabel})\u3002","theme.docs.versions.unmaintainedVersionLabel":"\u6b64\u4e3a {siteTitle} {versionLabel} \u7248\u7684\u6587\u6863\uff0c\u73b0\u5df2\u4e0d\u518d\u79ef\u6781\u7ef4\u62a4\u3002","theme.docs.versions.unreleasedVersionLabel":"\u6b64\u4e3a {siteTitle} {versionLabel} \u7248\u5c1a\u672a\u53d1\u884c\u7684\u6587\u6863\u3002","theme.lastUpdated.atDate":"\u4e8e {date} ","theme.lastUpdated.byUser":"\u7531 {user} ","theme.lastUpdated.lastUpdatedAtBy":"\u6700\u540e{byUser}{atDate}\u66f4\u65b0","theme.navbar.mobileLanguageDropdown.label":"\u9009\u62e9\u8bed\u8a00","theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel":"\u2190 \u56de\u5230\u4e3b\u83dc\u5355","theme.navbar.mobileVersionsDropdown.label":"\u9009\u62e9\u7248\u672c","theme.tags.tagsListLabel":"\u6807\u7b7e\uff1a","theme.tags.tagsPageLink":"\u67e5\u770b\u6240\u6709\u6807\u7b7e","theme.tags.tagsPageTitle":"\u6807\u7b7e","theme.unlistedContent.message":"\u6b64\u9875\u9762\u672a\u5217\u51fa\u3002\u641c\u7d22\u5f15\u64ce\u4e0d\u4f1a\u5bf9\u5176\u7d22\u5f15\uff0c\u53ea\u6709\u62e5\u6709\u76f4\u63a5\u94fe\u63a5\u7684\u7528\u6237\u624d\u80fd\u8bbf\u95ee\u3002","theme.unlistedContent.title":"\u672a\u5217\u51fa\u9875","theme.SearchBar.label":"\u641c\u7d22","theme.SearchBar.seeAll":"\u67e5\u770b\u5168\u90e8\u7ed3\u679c","theme.SearchBar.noResultsText":"\u6ca1\u6709\u627e\u5230\u4efb\u4f55\u6587\u6863","theme.SearchPage.existingResultsTitle":"\u201c{query}\u201d \u7684\u641c\u7d22\u7ed3\u679c","theme.SearchPage.emptyResultsTitle":"\u641c\u7d22\u6587\u6863","theme.SearchPage.documentsFound.plurals":"\u5171\u627e\u5230 {count} \u7bc7\u6587\u6863","theme.SearchPage.noResultsText":"\u6ca1\u6709\u627e\u5230\u4efb\u4f55\u6587\u6863"}')},6887:e=>{"use strict";e.exports=JSON.parse('{"/node-mysql2/zh-CN/search-997":{"__comp":"1a4e3797","__context":{"plugin":"ac5f2e4a"}},"/node-mysql2/zh-CN/docs-20e":{"__comp":"5e95c892","__context":{"plugin":"c84c75a7"}},"/node-mysql2/zh-CN/docs-3d7":{"__comp":"a7bd4aaa","version":"935f2afb"},"/node-mysql2/zh-CN/docs/tags-8db":{"__comp":"3720c009","tags":"55960ee5"},"/node-mysql2/zh-CN/docs/tags/create-connection-c46":{"__comp":"df203c0f","tag":"67592901"},"/node-mysql2/zh-CN/docs/tags/create-pool-b13":{"__comp":"df203c0f","tag":"07d6bcd5"},"/node-mysql2/zh-CN/docs/tags/create-pool-cluster-adc":{"__comp":"df203c0f","tag":"a89f5446"},"/node-mysql2/zh-CN/docs/tags/execute-296":{"__comp":"df203c0f","tag":"9d6e5507"},"/node-mysql2/zh-CN/docs/tags/parameters-c62":{"__comp":"df203c0f","tag":"9570cbb2"},"/node-mysql2/zh-CN/docs/tags/placeholders-7b1":{"__comp":"df203c0f","tag":"3e73bf99"},"/node-mysql2/zh-CN/docs/tags/prepared-statements-2e0":{"__comp":"df203c0f","tag":"c024e603"},"/node-mysql2/zh-CN/docs/tags/query-297":{"__comp":"df203c0f","tag":"e32cf8b2"},"/node-mysql2/zh-CN/docs/tags/rds-41a":{"__comp":"df203c0f","tag":"4b983390"},"/node-mysql2/zh-CN/docs/tags/sha-1-8c6":{"__comp":"df203c0f","tag":"b5168752"},"/node-mysql2/zh-CN/docs/tags/socks-536":{"__comp":"df203c0f","tag":"7647f2e2"},"/node-mysql2/zh-CN/docs/tags/ssl-2ad":{"__comp":"df203c0f","tag":"bd3157e1"},"/node-mysql2/zh-CN/docs/tags/uri-3ad":{"__comp":"df203c0f","tag":"2bfbae62"},"/node-mysql2/zh-CN/docs-3be":{"__comp":"a94703ab"},"/node-mysql2/zh-CN/docs-e4f":{"__comp":"17896441","content":"9df47158"},"/node-mysql2/zh-CN/docs/acknowledgements-4fc":{"__comp":"17896441","content":"73aa2d44"},"/node-mysql2/zh-CN/docs/api-and-configurations-944":{"__comp":"17896441","content":"5483291d"},"/node-mysql2/zh-CN/docs/contributing-35d":{"__comp":"17896441","content":"d4b2f69a"},"/node-mysql2/zh-CN/docs/contributing/website-af0":{"__comp":"17896441","content":"f8d74a12"},"/node-mysql2/zh-CN/docs/documentation-722":{"__comp":"17896441","content":"9e767aa9"},"/node-mysql2/zh-CN/docs/documentation/authentication-switch-029":{"__comp":"17896441","content":"3945bec1"},"/node-mysql2/zh-CN/docs/documentation/extras-fb1":{"__comp":"17896441","content":"ed06a4b6"},"/node-mysql2/zh-CN/docs/documentation/mysql-server-cd0":{"__comp":"17896441","content":"57495183"},"/node-mysql2/zh-CN/docs/documentation/prepared-statements-4f2":{"__comp":"17896441","content":"f54f1246"},"/node-mysql2/zh-CN/docs/documentation/promise-wrapper-996":{"__comp":"17896441","content":"546b1c5f"},"/node-mysql2/zh-CN/docs/documentation/typescript-examples-d0b":{"__comp":"17896441","content":"2bc14e22"},"/node-mysql2/zh-CN/docs/examples-0c7":{"__comp":"17896441","content":"76dfa484"},"/node-mysql2/zh-CN/docs/examples/binlog-watcher-d38":{"__comp":"17896441","content":"3be0564c"},"/node-mysql2/zh-CN/docs/examples/connections/create-connection-c2e":{"__comp":"17896441","content":"11e11f3b"},"/node-mysql2/zh-CN/docs/examples/connections/create-pool-737":{"__comp":"17896441","content":"54eaaaae"},"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster-763":{"__comp":"17896441","content":"b07748b5"},"/node-mysql2/zh-CN/docs/examples/promise-wrapper/co-await-ded":{"__comp":"17896441","content":"ad7b17cf"},"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements-10d":{"__comp":"17896441","content":"7ccab252"},"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/delete-996":{"__comp":"17896441","content":"8b8ccc10"},"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/insert-281":{"__comp":"17896441","content":"e19cd79a"},"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/select-152":{"__comp":"17896441","content":"7fbd6b3a"},"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/update-342":{"__comp":"17896441","content":"b80d201b"},"/node-mysql2/zh-CN/docs/examples/queries/simple-queries-985":{"__comp":"17896441","content":"1568425c"},"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/delete-ea9":{"__comp":"17896441","content":"59e52bc2"},"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/insert-1d8":{"__comp":"17896441","content":"a55c4658"},"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/select-2e6":{"__comp":"17896441","content":"8fcb4d7f"},"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/update-203":{"__comp":"17896441","content":"54768732"},"/node-mysql2/zh-CN/docs/examples/tests/mysql-proxy-451":{"__comp":"17896441","content":"22161331"},"/node-mysql2/zh-CN/docs/examples/tests/pool-e89":{"__comp":"17896441","content":"f76f5ab7"},"/node-mysql2/zh-CN/docs/examples/tests/server-8fd":{"__comp":"17896441","content":"cffacdf0"},"/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-class-d01":{"__comp":"17896441","content":"f43af5ae"},"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/index-39b":{"__comp":"17896441","content":"df04d3c8"},"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-array-c9d":{"__comp":"17896441","content":"bc31cbdb"},"/node-mysql2/zh-CN/docs/examples/typescript/row-data/index-1f8":{"__comp":"17896441","content":"0e27d5d9"},"/node-mysql2/zh-CN/docs/examples/typescript/row-data/multi-statements-f94":{"__comp":"17896441","content":"13833ed5"},"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array-523":{"__comp":"17896441","content":"5814edec"},"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array-multi-statements-87e":{"__comp":"17896441","content":"1cee01a7"},"/node-mysql2/zh-CN/docs/faq-bcf":{"__comp":"17896441","content":"4e92b6b6"},"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors-c21":{"__comp":"17896441","content":"cdbda324"},"/node-mysql2/zh-CN/docs/history-and-why-mysq2-ef2":{"__comp":"17896441","content":"b5fe66e0"},"/node-mysql2/zh-CN/docs/stability-badges-bb8":{"__comp":"17896441","content":"db044f71"},"/node-mysql2/zh-CN/-af9":{"__comp":"1df93b7f","__context":{"plugin":"fb880757"},"config":"5e9f5e1a"}}')}},e=>{e.O(0,[532],(()=>{return t=7221,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/zh-CN/assets/js/main.7d1ad05e.js.LICENSE.txt b/zh-CN/assets/js/main.c75198e5.js.LICENSE.txt similarity index 100% rename from zh-CN/assets/js/main.7d1ad05e.js.LICENSE.txt rename to zh-CN/assets/js/main.c75198e5.js.LICENSE.txt diff --git a/zh-CN/assets/js/runtime~main.58035d8c.js b/zh-CN/assets/js/runtime~main.58035d8c.js deleted file mode 100644 index ec5d349500..0000000000 --- a/zh-CN/assets/js/runtime~main.58035d8c.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,a,c,t,f,r={},d={};function b(e){var a=d[e];if(void 0!==a)return a.exports;var c=d[e]={exports:{}};return r[e].call(c.exports,c,c.exports,b),c.exports}b.m=r,e=[],b.O=(a,c,t,f)=>{if(!c){var r=1/0;for(i=0;i<e.length;i++){c=e[i][0],t=e[i][1],f=e[i][2];for(var d=!0,o=0;o<c.length;o++)(!1&f||r>=f)&&Object.keys(b.O).every((e=>b.O[e](c[o])))?c.splice(o--,1):(d=!1,f<r&&(r=f));if(d){e.splice(i--,1);var n=t();void 0!==n&&(a=n)}}return a}f=f||0;for(var i=e.length;i>0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[c,t,f]},b.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return b.d(a,{a:a}),a},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,b.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var f=Object.create(null);b.r(f);var r={};a=a||[null,c({}),c([]),c(c)];for(var d=2&t&&e;"object"==typeof d&&!~a.indexOf(d);d=c(d))Object.getOwnPropertyNames(d).forEach((a=>r[a]=()=>e[a]));return r.default=()=>e,b.d(f,r),f},b.d=(e,a)=>{for(var c in a)b.o(a,c)&&!b.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},b.f={},b.e=e=>Promise.all(Object.keys(b.f).reduce(((a,c)=>(b.f[c](e,a),a)),[])),b.u=e=>"assets/js/"+({53:"935f2afb",312:"1f08bd40",378:"73aa2d44",384:"1cee01a7",465:"a0fa2d29",469:"08df0c0c",630:"f54f1246",764:"43758d02",1233:"c84c75a7",1437:"bc31cbdb",1449:"4e547710",1465:"fb880757",1647:"5748a325",1883:"93f3cbcf",2496:"13833ed5",2839:"2bc14e22",2991:"ed06a4b6",3087:"b5fe66e0",3237:"1df93b7f",3433:"76dfa484",3561:"5814edec",3586:"4e92b6b6",4116:"cdbda324",4338:"dcf552eb",4368:"a94703ab",4917:"54dbd6f3",5003:"57495183",5775:"e3a2ad82",5807:"f8d74a12",5909:"f43af5ae",6051:"d4b2f69a",6159:"db044f71",6753:"27e19f0f",7184:"d2002d6f",7918:"17896441",7920:"1a4e3797",8193:"10c30137",8218:"e9842ab8",8263:"546b1c5f",8518:"a7bd4aaa",8648:"5483291d",8806:"9e767aa9",8882:"3945bec1",9010:"9df47158",9264:"3bea1af6",9380:"ac5f2e4a",9444:"0397a6cc",9521:"75b440d9",9594:"3be0564c",9661:"5e95c892",9667:"95bd4756",9817:"14eb3368"}[e]||e)+"."+{53:"8bb3ea34",312:"d0b9bb8f",378:"7dbec21b",384:"ddcac33c",465:"941e6a85",469:"0006bdd9",630:"be3648fa",764:"9b810770",1233:"bc5502d7",1437:"3e20d441",1449:"7a8fa8e2",1465:"7c9dd290",1647:"0001eff2",1772:"b0ede415",1883:"406eeaa0",2496:"68b2a835",2839:"d776a8f3",2991:"31c7e206",3087:"6c589d41",3237:"8f7e93f0",3433:"f0e14b28",3561:"c63b68d1",3586:"4c945aff",4116:"165064d3",4338:"ba8779b5",4368:"10844fc8",4917:"bcef5c5a",5003:"339d0eab",5525:"36b2ab15",5775:"14bb2504",5807:"c9cd13ac",5909:"50705533",6051:"fb6a7fd0",6159:"6c67a975",6753:"e8b66b8e",7184:"9642730e",7918:"6fafa0da",7920:"5fb5e418",8193:"8e6ce72a",8218:"7339367c",8263:"21223b82",8443:"30345cef",8518:"687d6c08",8648:"dbd00af9",8806:"ba9d70bd",8882:"aa6152d4",9010:"766f8d31",9264:"2ee4307a",9380:"75c0af2a",9444:"c156eb02",9521:"f9aada59",9594:"5c66fcaa",9661:"5a7f2413",9667:"bb5473ad",9817:"a0a1fb1b"}[e]+".js",b.miniCssF=e=>{},b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),b.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),t={},f="website:",b.l=(e,a,c,r)=>{if(t[e])t[e].push(a);else{var d,o;if(void 0!==c)for(var n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var u=n[i];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==f+c){d=u;break}}d||(o=!0,(d=document.createElement("script")).charset="utf-8",d.timeout=120,b.nc&&d.setAttribute("nonce",b.nc),d.setAttribute("data-webpack",f+c),d.src=e),t[e]=[a];var l=(a,c)=>{d.onerror=d.onload=null,clearTimeout(s);var f=t[e];if(delete t[e],d.parentNode&&d.parentNode.removeChild(d),f&&f.forEach((e=>e(c))),a)return a(c)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:d}),12e4);d.onerror=l.bind(null,d.onerror),d.onload=l.bind(null,d.onload),o&&document.head.appendChild(d)}},b.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.p="/node-mysql2/zh-CN/",b.gca=function(e){return e={17896441:"7918",57495183:"5003","935f2afb":"53","1f08bd40":"312","73aa2d44":"378","1cee01a7":"384",a0fa2d29:"465","08df0c0c":"469",f54f1246:"630","43758d02":"764",c84c75a7:"1233",bc31cbdb:"1437","4e547710":"1449",fb880757:"1465","5748a325":"1647","93f3cbcf":"1883","13833ed5":"2496","2bc14e22":"2839",ed06a4b6:"2991",b5fe66e0:"3087","1df93b7f":"3237","76dfa484":"3433","5814edec":"3561","4e92b6b6":"3586",cdbda324:"4116",dcf552eb:"4338",a94703ab:"4368","54dbd6f3":"4917",e3a2ad82:"5775",f8d74a12:"5807",f43af5ae:"5909",d4b2f69a:"6051",db044f71:"6159","27e19f0f":"6753",d2002d6f:"7184","1a4e3797":"7920","10c30137":"8193",e9842ab8:"8218","546b1c5f":"8263",a7bd4aaa:"8518","5483291d":"8648","9e767aa9":"8806","3945bec1":"8882","9df47158":"9010","3bea1af6":"9264",ac5f2e4a:"9380","0397a6cc":"9444","75b440d9":"9521","3be0564c":"9594","5e95c892":"9661","95bd4756":"9667","14eb3368":"9817"}[e]||e,b.p+b.u(e)},(()=>{var e={1303:0,532:0};b.f.j=(a,c)=>{var t=b.o(e,a)?e[a]:void 0;if(0!==t)if(t)c.push(t[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var f=new Promise(((c,f)=>t=e[a]=[c,f]));c.push(t[2]=f);var r=b.p+b.u(a),d=new Error;b.l(r,(c=>{if(b.o(e,a)&&(0!==(t=e[a])&&(e[a]=void 0),t)){var f=c&&("load"===c.type?"missing":c.type),r=c&&c.target&&c.target.src;d.message="Loading chunk "+a+" failed.\n("+f+": "+r+")",d.name="ChunkLoadError",d.type=f,d.request=r,t[1](d)}}),"chunk-"+a,a)}},b.O.j=a=>0===e[a];var a=(a,c)=>{var t,f,r=c[0],d=c[1],o=c[2],n=0;if(r.some((a=>0!==e[a]))){for(t in d)b.o(d,t)&&(b.m[t]=d[t]);if(o)var i=o(b)}for(a&&a(c);n<r.length;n++)f=r[n],b.o(e,f)&&e[f]&&e[f][0](),e[f]=0;return b.O(i)},c=self.webpackChunkwebsite=self.webpackChunkwebsite||[];c.forEach(a.bind(null,0)),c.push=a.bind(null,c.push.bind(c))})()})(); \ No newline at end of file diff --git a/zh-CN/assets/js/runtime~main.77b7f165.js b/zh-CN/assets/js/runtime~main.77b7f165.js new file mode 100644 index 0000000000..8c69b9a8b4 --- /dev/null +++ b/zh-CN/assets/js/runtime~main.77b7f165.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,a,c,b,f,d={},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var c=t[e]={exports:{}};return d[e].call(c.exports,c,c.exports,r),c.exports}r.m=d,e=[],r.O=(a,c,b,f)=>{if(!c){var d=1/0;for(i=0;i<e.length;i++){c=e[i][0],b=e[i][1],f=e[i][2];for(var t=!0,o=0;o<c.length;o++)(!1&f||d>=f)&&Object.keys(r.O).every((e=>r.O[e](c[o])))?c.splice(o--,1):(t=!1,f<d&&(d=f));if(t){e.splice(i--,1);var n=b();void 0!==n&&(a=n)}}return a}f=f||0;for(var i=e.length;i>0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[c,b,f]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a:a}),a},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,b){if(1&b&&(e=this(e)),8&b)return e;if("object"==typeof e&&e){if(4&b&&e.__esModule)return e;if(16&b&&"function"==typeof e.then)return e}var f=Object.create(null);r.r(f);var d={};a=a||[null,c({}),c([]),c(c)];for(var t=2&b&&e;"object"==typeof t&&!~a.indexOf(t);t=c(t))Object.getOwnPropertyNames(t).forEach((a=>d[a]=()=>e[a]));return d.default=()=>e,r.d(f,d),f},r.d=(e,a)=>{for(var c in a)r.o(a,c)&&!r.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((a,c)=>(r.f[c](e,a),a)),[])),r.u=e=>"assets/js/"+({53:"935f2afb",81:"8fcb4d7f",297:"3e73bf99",378:"73aa2d44",384:"1cee01a7",452:"a55c4658",556:"22161331",576:"54768732",630:"f54f1246",641:"59e52bc2",1233:"c84c75a7",1420:"54eaaaae",1429:"e19cd79a",1437:"bc31cbdb",1465:"fb880757",1578:"7647f2e2",1782:"9570cbb2",2019:"4b983390",2030:"ad7b17cf",2496:"13833ed5",2839:"2bc14e22",2991:"ed06a4b6",3087:"b5fe66e0",3237:"1df93b7f",3433:"76dfa484",3561:"5814edec",3577:"07d6bcd5",3586:"4e92b6b6",3751:"3720c009",3776:"f76f5ab7",4116:"cdbda324",4121:"55960ee5",4368:"a94703ab",4403:"b07748b5",4723:"67592901",5003:"57495183",5072:"0e27d5d9",5762:"9d6e5507",5807:"f8d74a12",5909:"f43af5ae",6051:"d4b2f69a",6061:"b80d201b",6159:"db044f71",6463:"c024e603",6641:"a89f5446",7615:"b5168752",7918:"17896441",7920:"1a4e3797",8054:"7ccab252",8241:"bd3157e1",8263:"546b1c5f",8406:"cffacdf0",8474:"e32cf8b2",8518:"a7bd4aaa",8534:"8b8ccc10",8625:"11e11f3b",8648:"5483291d",8806:"9e767aa9",8882:"3945bec1",9010:"9df47158",9140:"df04d3c8",9292:"2bfbae62",9380:"ac5f2e4a",9458:"1568425c",9594:"3be0564c",9661:"5e95c892",9924:"df203c0f",9964:"7fbd6b3a"}[e]||e)+"."+{53:"28768658",81:"b5ad74bd",297:"e0626624",378:"7dbec21b",384:"ddcac33c",452:"44cd17e3",556:"df0f36b5",576:"8a0b1c4d",630:"a0ffeec8",641:"0388a862",1233:"bc5502d7",1420:"18d06985",1429:"5eae6886",1437:"d6f5b907",1465:"7c9dd290",1578:"2a5ccf2b",1772:"b0ede415",1782:"b6676e96",2019:"aac15e10",2030:"a53934cd",2496:"68b2a835",2839:"7a8d82bf",2991:"31c7e206",3087:"6c589d41",3237:"8f7e93f0",3433:"c577723b",3561:"d1d718df",3577:"48009c22",3586:"4c945aff",3751:"8c42b22a",3776:"59ab11f8",4116:"4bee815a",4121:"d48c22da",4368:"265346fe",4403:"26915157",4723:"40b1dcf5",5003:"339d0eab",5020:"614bd897",5072:"37f71223",5525:"36b2ab15",5762:"c47bf4a5",5807:"dacaf582",5909:"973dd9b6",6051:"fb6a7fd0",6061:"44ad2ef4",6159:"ad539a4f",6463:"7094d8cf",6641:"6a21ae56",7615:"68c58ab5",7918:"569c1c67",7920:"b37fdfae",8054:"674014b3",8241:"7ee0260c",8263:"ddaa566a",8406:"999e7b25",8443:"30345cef",8474:"d54b09d8",8518:"687d6c08",8534:"9bf8a5cf",8625:"4f42d272",8648:"dbd00af9",8806:"ba9d70bd",8882:"aa6152d4",9010:"c7301fcf",9140:"3f3e40e3",9292:"f52f260b",9380:"75c0af2a",9458:"69831b13",9594:"b2f3e498",9661:"5a7f2413",9924:"56844b1b",9964:"e365c3b2"}[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),b={},f="website:",r.l=(e,a,c,d)=>{if(b[e])b[e].push(a);else{var t,o;if(void 0!==c)for(var n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var u=n[i];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==f+c){t=u;break}}t||(o=!0,(t=document.createElement("script")).charset="utf-8",t.timeout=120,r.nc&&t.setAttribute("nonce",r.nc),t.setAttribute("data-webpack",f+c),t.src=e),b[e]=[a];var l=(a,c)=>{t.onerror=t.onload=null,clearTimeout(s);var f=b[e];if(delete b[e],t.parentNode&&t.parentNode.removeChild(t),f&&f.forEach((e=>e(c))),a)return a(c)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=l.bind(null,t.onerror),t.onload=l.bind(null,t.onload),o&&document.head.appendChild(t)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="/node-mysql2/zh-CN/",r.gca=function(e){return e={17896441:"7918",22161331:"556",54768732:"576",57495183:"5003",67592901:"4723","935f2afb":"53","8fcb4d7f":"81","3e73bf99":"297","73aa2d44":"378","1cee01a7":"384",a55c4658:"452",f54f1246:"630","59e52bc2":"641",c84c75a7:"1233","54eaaaae":"1420",e19cd79a:"1429",bc31cbdb:"1437",fb880757:"1465","7647f2e2":"1578","9570cbb2":"1782","4b983390":"2019",ad7b17cf:"2030","13833ed5":"2496","2bc14e22":"2839",ed06a4b6:"2991",b5fe66e0:"3087","1df93b7f":"3237","76dfa484":"3433","5814edec":"3561","07d6bcd5":"3577","4e92b6b6":"3586","3720c009":"3751",f76f5ab7:"3776",cdbda324:"4116","55960ee5":"4121",a94703ab:"4368",b07748b5:"4403","0e27d5d9":"5072","9d6e5507":"5762",f8d74a12:"5807",f43af5ae:"5909",d4b2f69a:"6051",b80d201b:"6061",db044f71:"6159",c024e603:"6463",a89f5446:"6641",b5168752:"7615","1a4e3797":"7920","7ccab252":"8054",bd3157e1:"8241","546b1c5f":"8263",cffacdf0:"8406",e32cf8b2:"8474",a7bd4aaa:"8518","8b8ccc10":"8534","11e11f3b":"8625","5483291d":"8648","9e767aa9":"8806","3945bec1":"8882","9df47158":"9010",df04d3c8:"9140","2bfbae62":"9292",ac5f2e4a:"9380","1568425c":"9458","3be0564c":"9594","5e95c892":"9661",df203c0f:"9924","7fbd6b3a":"9964"}[e]||e,r.p+r.u(e)},(()=>{var e={1303:0,532:0};r.f.j=(a,c)=>{var b=r.o(e,a)?e[a]:void 0;if(0!==b)if(b)c.push(b[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var f=new Promise(((c,f)=>b=e[a]=[c,f]));c.push(b[2]=f);var d=r.p+r.u(a),t=new Error;r.l(d,(c=>{if(r.o(e,a)&&(0!==(b=e[a])&&(e[a]=void 0),b)){var f=c&&("load"===c.type?"missing":c.type),d=c&&c.target&&c.target.src;t.message="Loading chunk "+a+" failed.\n("+f+": "+d+")",t.name="ChunkLoadError",t.type=f,t.request=d,b[1](t)}}),"chunk-"+a,a)}},r.O.j=a=>0===e[a];var a=(a,c)=>{var b,f,d=c[0],t=c[1],o=c[2],n=0;if(d.some((a=>0!==e[a]))){for(b in t)r.o(t,b)&&(r.m[b]=t[b]);if(o)var i=o(r)}for(a&&a(c);n<d.length;n++)f=d[n],r.o(e,f)&&e[f]&&e[f][0](),e[f]=0;return r.O(i)},c=self.webpackChunkwebsite=self.webpackChunkwebsite||[];c.forEach(a.bind(null,0)),c.push=a.bind(null,c.push.bind(c))})()})(); \ No newline at end of file diff --git a/zh-CN/docs.html b/zh-CN/docs.html index 0a6d098339..88fd220196 100644 --- a/zh-CN/docs.html +++ b/zh-CN/docs.html @@ -2,10 +2,10 @@ <html lang="zh-CN" dir="ltr" class="docs-wrapper plugin-docs plugin-id-default docs-version-current docs-doc-page docs-doc-id-index" data-has-hydrated="false"> <head> <meta charset="UTF-8"> -<meta name="generator" content="Docusaurus v3.0.1"> -<title data-rh="true">MySQL2 | Quickstart - - + +MySQL2 | Quickstart + +

        查询数据

        -
        // 导入模块
        import mysql from 'mysql2/promise';

        // 创建一个数据库连接
        const connection = await mysql.createConnection({
        host: 'localhost',
        user: 'root',
        database: 'test',
        });

        // 简单查询
        try {
        const [results, fields] = await connection.query(
        'SELECT * FROM `table` WHERE `name` = "Page" AND `age` > 45'
        );

        console.log(results); // 结果集
        console.log(fields); // 额外的元数据(如果有的话)
        } catch (err) {
        console.log(err);
        }

        // 使用占位符
        try {
        const [results] = await connection.query(
        'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',
        ['Page', 45]
        );

        console.log(results);
        } catch (err) {
        console.log(err);
        }
        +
        +

        To explore more queries examples, please visit the example sections Simple Queries and Prepared Statements.

        +
        +
        // 导入模块
        import mysql from 'mysql2/promise';

        // 创建一个数据库连接
        const connection = await mysql.createConnection({
        host: 'localhost',
        user: 'root',
        database: 'test',
        });

        // 简单查询
        try {
        const [results, fields] = await connection.query(
        'SELECT * FROM `table` WHERE `name` = "Page" AND `age` > 45'
        );

        console.log(results); // 结果集
        console.log(fields); // 额外的元数据(如果有的话)
        } catch (err) {
        console.log(err);
        }

        // 使用占位符
        try {
        const [results] = await connection.query(
        'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',
        ['Page', 45]
        );

        console.log(results);
        } catch (err) {
        console.log(err);
        }

        SQL预处理的使用

        -

        使用 MySQL2,您还可以提前准备好SQL预处理语句。 使用准备好的SQL预处理语句,MySQL 不必每次都为相同的查询做准备,这会带来更好的性能。 如果您不知道为什么它们很重要,请查看这些讨论:

        +

        使用 MySQL2,您还可以提前准备好SQL预处理语句。 使用准备好的SQL预处理语句,MySQL 不必每次都为相同的查询做准备,这会带来更好的性能。 如果您不知道为什么它们很重要,请查看这些讨论:

        MySQL2 提供了 execute 辅助函数,它将准备和查询语句。 您还可以使用 prepare / unprepare 方法手动准备/取消准备。

        +
        +

        To explore more Prepared Statements and Placeholders examples, please visit the example section Prepared Statements.

        +
        import mysql from 'mysql2/promise';

        try {
        // 创建一个数据库连接
        const connection = await mysql.createConnection({
        host: 'localhost',
        user: 'root',
        database: 'test',
        });

        // execute 将在内部调用 prepare 和 query
        const [results, fields] = await connection.execute(
        'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',
        ['Rick C-137', 53]
        );

        console.log(results); // 结果集
        console.log(fields); // 额外的元数据(如果有的话)
        } catch (err) {
        console.log(err);
        }
        提示

        如果再次执行相同的语句,他将从缓存中选取,这能有效的节省准备查询时间获得更好的性能。


        -

        连接池的使用

        +

        连接池的使用

        连接池通过重用以前的连接来帮助减少连接到 MySQL 服务器所花费的时间,当你完成它们时让它们保持打开而不是关闭。

        这改善了查询的延迟,因为您避免了建立新连接所带来的所有开销。

        +
        +

        To explore more Connection Pools examples, please visit the example section createPool.

        +
        import mysql from 'mysql2/promise';

        // 创建连接池,设置连接池的参数
        const pool = mysql.createPool({
        host: 'localhost',
        user: 'root',
        database: 'test',
        waitForConnections: true,
        connectionLimit: 10,
        maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit`
        idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000
        queueLimit: 0,
        enableKeepAlive: true,
        keepAliveInitialDelay: 0,
        });
        -
        备注

        该池不会预先创建所有连接,而是根据需要创建它们,直到达到连接限制。

        +
        备注

        该池不会预先创建所有连接,而是根据需要创建它们,直到达到连接限制。


        您可以像直接连接一样使用池(使用 pool.query()pool.execute()):

        try {
        // For pool initialization, see above
        const [rows, fields] = await pool.query('SELECT `field` FROM `table`');
        // Connection is automatically released when query resolves
        } catch (err) {
        console.log(err);
        }
        @@ -53,7 +62,7 @@

        Promise封装<

        MySQL2 也支持 Promise API。 这与 ES7 异步等待非常有效。

        import mysql from 'mysql2/promise';

        async function main() {
        // create the connection
        const connection = await mysql.createConnection({
        host: 'localhost',
        user: 'root',
        database: 'test',
        });

        // query database
        const [rows, fields] = await connection.execute(
        'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',
        ['Morty', 14]
        );
        }

        MySQL2 使用范围内可用的默认 Promise 对象。 但是你可以选择你想使用的 Promise 实现。

        -
        // 导入模块
        import mysql from 'mysql2/promise';

        // get the promise implementation, we will use bluebird
        import bluebird from 'bluebird';

        // create the connection, specify bluebird as Promise
        const connection = await mysql.createConnection({
        host: 'localhost',
        user: 'root',
        database: 'test',
        Promise: bluebird,
        });

        // query database
        const [rows, fields] = await connection.execute(
        'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',
        ['Morty', 14]
        );
        +
        // 导入模块
        import mysql from 'mysql2/promise';

        // get the promise implementation, we will use bluebird
        import bluebird from 'bluebird';

        // create the connection, specify bluebird as Promise
        const connection = await mysql.createConnection({
        host: 'localhost',
        user: 'root',
        database: 'test',
        Promise: bluebird,
        });

        // query database
        const [rows, fields] = await connection.execute(
        'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',
        ['Morty', 14]
        );

        MySQL2 还在 Pools 上公开了一个 .promise()函数,因此您可以从同一个池创建一个 promise/non-promise 连接。

        import mysql from 'mysql2';

        async function main() {
        // create the pool
        const pool = mysql.createPool({
        host: 'localhost',
        user: 'root',
        database: 'test',
        });

        // now get a Promise wrapped instance of that pool
        const promisePool = pool.promise();

        // query database using promises
        const [rows, fields] = await promisePool.query('SELECT 1');
        }

        MySQL2 在 Connections 上公开了一个 .promise()函数,以“升级”现有的 non-promise 连接以使用 Promise。

        @@ -69,6 +78,6 @@

        查询级别
        try {
        const [results, fields] = await conn.query({
        sql: 'SELECT 1 AS `foo`, 2 AS `foo`',
        rowsAsArray: true,
        });

        console.log(results); // 返回数组而不是数组对象
        console.log(fields); // 无变化
        } catch (err) {
        console.log(err);
        }


        +If you've encountered an issue, please file it on GitHub.

      \ No newline at end of file diff --git a/zh-CN/docs/acknowledgements.html b/zh-CN/docs/acknowledgements.html index 4866245797..3a0b7b4ddd 100644 --- a/zh-CN/docs/acknowledgements.html +++ b/zh-CN/docs/acknowledgements.html @@ -2,10 +2,10 @@ - -鸣谢 | Quickstart - - + +鸣谢 | Quickstart + +

      鸣谢

      diff --git a/zh-CN/docs/api-and-configurations.html b/zh-CN/docs/api-and-configurations.html index 23fd03ca7a..eb8fcc83ae 100644 --- a/zh-CN/docs/api-and-configurations.html +++ b/zh-CN/docs/api-and-configurations.html @@ -2,10 +2,10 @@ - -API配置项 | Quickstart - - + +API配置项 | Quickstart + +

      API配置项

      diff --git a/zh-CN/docs/category/procedure-call-packet.html b/zh-CN/docs/category/procedure-call-packet.html deleted file mode 100644 index 6365ae5ab9..0000000000 --- a/zh-CN/docs/category/procedure-call-packet.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - -Procedure Call Packet | Quickstart - - - - - - - \ No newline at end of file diff --git a/zh-CN/docs/category/queries.html b/zh-CN/docs/category/queries.html deleted file mode 100644 index 6746473bee..0000000000 --- a/zh-CN/docs/category/queries.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - -Queries | Quickstart - - - - - - - \ No newline at end of file diff --git a/zh-CN/docs/category/row-data-packet.html b/zh-CN/docs/category/row-data-packet.html deleted file mode 100644 index 2885f81c82..0000000000 --- a/zh-CN/docs/category/row-data-packet.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - -Row Data Packet | Quickstart - - - - - - - \ No newline at end of file diff --git a/zh-CN/docs/category/ssl.html b/zh-CN/docs/category/ssl.html deleted file mode 100644 index e2ccfbe392..0000000000 --- a/zh-CN/docs/category/ssl.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - -SSL | Quickstart - - - - - - - \ No newline at end of file diff --git a/zh-CN/docs/category/typescript.html b/zh-CN/docs/category/typescript.html deleted file mode 100644 index 9c6b989c69..0000000000 --- a/zh-CN/docs/category/typescript.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - -TypeScript | Quickstart - - - - - - - \ No newline at end of file diff --git a/zh-CN/docs/contributing.html b/zh-CN/docs/contributing.html index 1c275f68d7..2e04446a53 100644 --- a/zh-CN/docs/contributing.html +++ b/zh-CN/docs/contributing.html @@ -2,10 +2,10 @@ - -贡献 - - + +贡献 + +
      diff --git a/zh-CN/docs/contributing/website.html b/zh-CN/docs/contributing/website.html index 6332ab597a..a1ff429e3b 100644 --- a/zh-CN/docs/contributing/website.html +++ b/zh-CN/docs/contributing/website.html @@ -2,10 +2,10 @@ - -Documentation Site | Quickstart - - + +Documentation Site | Quickstart + +

      -

      Running Tests

      +

      ExternalCodeEmbed

      + +
      import { ExternalCodeEmbed } from '@site/src/components/ExternalCodeEmbed';

      <ExternalCodeEmbed
      url='https://github.com/sidorares/node-mysql2/blob/75b05f0765c9edd0c0be8f18d85be05618770cca/.prettierrc'
      language='json'
      />

      <ExternalCodeEmbed
      url='https://raw.githubusercontent.com/sidorares/node-mysql2/master/tools/parse-row.js'
      language='js'
      extractMethod='parseC'
      methodType='function'
      />
      + +
      Example
      +
      +

      Running Tests

      npm run test
      Check Prettier and ESLint rules for compliance
      npm run lintcheck
      • Included in the GitHub Actions workflow.
      • @@ -87,6 +93,6 @@

        Running Tests<
        Fix issues from Prettier and ESLint rules
        npm run lint
        • To prevent lint issues, it is recommended to execute this command before creating your commit.
        • Not included in the GitHub Actions workflow.
        • -

      +
    \ No newline at end of file diff --git a/zh-CN/docs/documentation.html b/zh-CN/docs/documentation.html index 528ade6f03..aad3dc8c9a 100644 --- a/zh-CN/docs/documentation.html +++ b/zh-CN/docs/documentation.html @@ -2,10 +2,10 @@ - -Documentation - - + +Documentation + +
    diff --git a/zh-CN/docs/documentation/authentication-switch.html b/zh-CN/docs/documentation/authentication-switch.html index 4c813e2fd4..4fca3e5601 100644 --- a/zh-CN/docs/documentation/authentication-switch.html +++ b/zh-CN/docs/documentation/authentication-switch.html @@ -2,10 +2,10 @@ - -Authentication Switch Request | Quickstart - - + +Authentication Switch Request | Quickstart + +

    Authentication Switch Request

    diff --git a/zh-CN/docs/documentation/extras.html b/zh-CN/docs/documentation/extras.html index 45a794ac69..92f394748a 100644 --- a/zh-CN/docs/documentation/extras.html +++ b/zh-CN/docs/documentation/extras.html @@ -2,10 +2,10 @@ - -Extra Features | Quickstart - - + +Extra Features | Quickstart + +

    Extra Features

    diff --git a/zh-CN/docs/documentation/mysql-server.html b/zh-CN/docs/documentation/mysql-server.html index 0758caa1e8..1d845ce085 100644 --- a/zh-CN/docs/documentation/mysql-server.html +++ b/zh-CN/docs/documentation/mysql-server.html @@ -2,10 +2,10 @@ - -MySQL Server API | Quickstart - - + +MySQL Server API | Quickstart + +

    MySQL Server API

    diff --git a/zh-CN/docs/documentation/prepared-statements.html b/zh-CN/docs/documentation/prepared-statements.html index 289554ec08..029ac10611 100644 --- a/zh-CN/docs/documentation/prepared-statements.html +++ b/zh-CN/docs/documentation/prepared-statements.html @@ -2,10 +2,10 @@ - -Prepared Statements | Quickstart - - + +Prepared Statements | Quickstart + +

    Prepared Statements

    @@ -17,9 +17,9 @@

    Manu

    Manually prepared statements doesn't comes with LRU cache and SHOULD be closed using statement.close() instead of connection.unprepare().

    connection.prepare('select ? + ? as tests', (err, statement) => {
    // statement.parameters - array of column definitions, length === number of params, here 2
    // statement.columns - array of result column definitions. Can be empty if result schema is dynamic / not known
    // statement.id
    // statement.query

    statement.execute([1, 2], (err, rows, columns) => {
    // -> [ { tests: 3 } ]
    });

    // don't use connection.unprepare(), it won't work!
    // note that there is no callback here. There is no statement close ack at protocol level.
    statement.close();
    });

    Note that you should not use statement after connection reset (changeUser() or disconnect). Statement scope is connection, you need to prepare statement for each new connection in order to use it.

    -

    Configuration

    +

    Configuration

    maxPreparedStatements : We keep the cached statements in a lru-cache. Default size is 16000 but you can use this option to override it. Any statements that are dropped from cache will be closed.

    -

    Serialization of bind parameters

    +

    Serialization of bind parameters

    The bind parameter values passed to execute are serialized JS -> MySQL as:

    • null -> NULL
    • @@ -34,6 +34,11 @@

      Serialization of bind parameters

    • Other -> VAR_STRING
    -

    Passing in undefined or a function will result in an error.

    +

    Passing in undefined or a function will result in an error.

    +

    Prepared Statements Helper

    +

    MySQL2 provides execute helper which will prepare and query the statement. You can also manually prepare / unprepare statement with prepare / unprepare methods.

    +
    connection.execute(
    'select ?+1 as qqq, ? as rrr, ? as yyy',
    [1, null, 3],
    (err, rows, fields) => {
    console.log(err, rows, fields);
    connection.execute(
    'select ?+1 as qqq, ? as rrr, ? as yyy',
    [3, null, 3],
    (err, rows, fields) => {
    console.log(err, rows, fields);
    connection.unprepare('select ?+1 as qqq, ? as rrr, ? as yyy');
    connection.execute(
    'select ?+1 as qqq, ? as rrr, ? as yyy',
    [3, null, 3],
    (err, rows, fields) => {
    console.log(err, rows, fields);
    }
    );
    }
    );
    }
    );
    +

    Examples

    +

    For Prepared Statements examples, please see here.

    \ No newline at end of file diff --git a/zh-CN/docs/documentation/promise-wrapper.html b/zh-CN/docs/documentation/promise-wrapper.html index e101d052df..7c6b9545e8 100644 --- a/zh-CN/docs/documentation/promise-wrapper.html +++ b/zh-CN/docs/documentation/promise-wrapper.html @@ -2,10 +2,10 @@ - -Promise Wrappers | Quickstart - - + +Promise Wrappers | Quickstart + +

    Promise Wrappers

    @@ -17,6 +17,6 @@

    ES7 Async Aw
    async function example1() {
    const mysql = require('mysql2/promise');
    const conn = await mysql.createConnection({ database: test });
    const [rows, fields] = await conn.execute('select ?+? as sum', [2, 2]);
    await conn.end();
    }

    async function example2() {
    const mysql = require('mysql2/promise');
    const pool = mysql.createPool({ database: test });
    // execute in parallel, next console.log in 3 seconds
    await Promise.all([
    pool.query('select sleep(2)'),
    pool.query('select sleep(3)'),
    ]);
    console.log('3 seconds after');
    await pool.end();
    }

    With CO

    const mysql = require('mysql2');
    const co = require('co');
    co(function* () {
    const c = yield mysql.createConnectionPromise({
    user: 'root',
    namedPlaceholders: true,
    });
    const rows = yield c.query('show databases');
    console.log(rows);
    console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 }));
    yield c.end();
    });
    -

    Examples in /examples/promise-co-await

    +

    Examples in /examples/promise-co-await

    \ No newline at end of file diff --git a/zh-CN/docs/documentation/typescript-examples.html b/zh-CN/docs/documentation/typescript-examples.html index e7eeb98b0b..d36ef2d99a 100644 --- a/zh-CN/docs/documentation/typescript-examples.html +++ b/zh-CN/docs/documentation/typescript-examples.html @@ -2,10 +2,10 @@ - -Using MySQL2 with TypeScript | Quickstart - - + +Using MySQL2 with TypeScript | Quickstart + +
    diff --git a/zh-CN/docs/examples.html b/zh-CN/docs/examples.html index 61a6b0f19a..e8779f6db1 100644 --- a/zh-CN/docs/examples.html +++ b/zh-CN/docs/examples.html @@ -2,28 +2,15 @@ - -Examples - - + +Examples + + -
    +

    Examples

    -

    Simple SELECT

    -
    import mysql from 'mysql2/promise';

    const connection = await mysql.createConnection({
    user: 'test',
    database: 'test',
    });

    const [rows] = await connection.query('SELECT 1+1 AS `test1`');
    // ...
    -
    -

    Prepared Statement and Parameters

    -
    import mysql from 'mysql2/promise';

    const connection = await mysql.createConnection({
    user: 'test',
    database: 'test',
    });

    const [rows] = await connection.execute('SELECT 1+? AS `test1`', [10]);
    // ...
    -
    -

    Connecting over encrypted connection

    -
    import fs from 'fs';
    import mysql from 'mysql2/promise';

    const connection = await mysql.createConnection({
    user: 'test',
    database: 'test',
    ssl: {
    key: fs.readFileSync('./certs/client-key.pem'),
    cert: fs.readFileSync('./certs/client-cert.pem'),
    },
    });

    console.log(await connection.query('SELECT 1+1 AS `test1`'));
    -

    You can use 'Amazon RDS' string as value to ssl property to connect to Amazon RDS mysql over ssl (in that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used)

    -
    import mysql from 'mysql2/promise';

    try {
    const connection = await mysql.createConnection({
    user: 'foo',
    password: 'bar',
    host: 'db.id.ap-southeast-2.rds.amazonaws.com',
    ssl: 'Amazon RDS',
    });

    const [res] = await connection.query("SHOW `status` LIKE 'Ssl_cipher'");

    console.log(res);
    connection.end();
    } catch (err) {
    console.log(err);
    }
    -
    -

    Simple MySQL proxy server

    -
    const mysql = require('mysql2');

    const server = mysql.createServer();
    server.listen(3307);
    server.on('connection', (conn) => {
    console.log('connection');

    conn.serverHandshake({
    protocolVersion: 10,
    serverVersion: 'node.js rocks',
    connectionId: 1234,
    statusFlags: 2,
    characterSet: 8,
    capabilityFlags: 0xffffff,
    });

    conn.on('field_list', (table, fields) => {
    console.log('field list:', table, fields);
    conn.writeEof();
    });

    const remote = mysql.createConnection({
    user: 'root',
    database: 'dbname',
    host: 'server.example.com',
    password: 'secret',
    });

    conn.on('query', (sql) => {
    console.log(`proxying query: ${sql}`);
    remote.query(sql, function (err) {
    // overloaded args, either (err, result :object)
    // or (err, rows :array, columns :array)
    if (Array.isArray(arguments[1])) {
    // response to a 'select', 'show' or similar
    const rows = arguments[1],
    columns = arguments[2];
    console.log('rows', rows);
    console.log('columns', columns);
    conn.writeTextResult(rows, columns);
    } else {
    // response to an 'insert', 'update' or 'delete'
    const result = arguments[1];
    console.log('result', result);
    conn.writeOk(result);
    }
    });
    });

    conn.on('end', remote.end.bind(remote));
    });
    -
    +
    提示

    To explore the examples, please use the sidebar navigation on desktop or access the menu on mobile devices.

    Examples using MySQL server API

    +
    \ No newline at end of file diff --git a/zh-CN/docs/examples/binlog-watcher.html b/zh-CN/docs/examples/binlog-watcher.html index 9d93a589e1..1bf635bb35 100644 --- a/zh-CN/docs/examples/binlog-watcher.html +++ b/zh-CN/docs/examples/binlog-watcher.html @@ -2,13 +2,13 @@ - -Binlog Watcher | Quickstart - - + +Binlog Watcher | Quickstart + + -

    Binlog Watcher

    -
    'use strict';

    const mysql = require('mysql2');
    const through2 = require('through2');

    const binlogStream = mysql.createBinlogStream({
    serverId: 123, // slave ID, first field in "show slave hosts" sql response
    // you can also specify slave host, username, password and port
    masterId: 0,
    filename: 'mysql-bin.000007',
    binlogPos: 120,
    flags: 1, // 1 = "non-blocking mode"
    });

    binlogStream.pipe(
    through2.obj((obj, enc, next) => {
    console.log(obj);
    next();
    })
    );
    +

    Binlog Watcher

    +
    'use strict';

    const mysql = require('mysql2');
    const through2 = require('through2');

    const binlogStream = mysql.createBinlogStream({
    serverId: 123, // slave ID, first field in "show slave hosts" sql response
    // you can also specify slave host, username, password and port
    masterId: 0,
    filename: 'mysql-bin.000007',
    binlogPos: 120,
    flags: 1, // 1 = "non-blocking mode"
    });

    binlogStream.pipe(
    through2.obj((obj, enc, next) => {
    console.log(obj);
    next();
    })
    );
    \ No newline at end of file diff --git a/zh-CN/docs/examples/connect-over-socks.html b/zh-CN/docs/examples/connect-over-socks.html deleted file mode 100644 index f3b9f53acf..0000000000 --- a/zh-CN/docs/examples/connect-over-socks.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -Connect Over Socks | Quickstart - - - - -

    Connect Over Socks

    -
    'use strict';

    const mysql = require('mysql2');
    const SocksConnection = require('socksjs');

    // const socksProxy = new SocksConnection({ port: 3306 });
    // const conn = mysql.createConnection({
    // stream: socksProxy,
    // });

    // conn.query("select 1+1", function(err, rows, fields) {
    // console.log(err, rows, fields);
    // });

    const conn1 = mysql.createPool({
    debug: 1,
    stream: function () {
    return new SocksConnection({ port: 3306 });
    },
    });

    conn1.execute('select sleep(1.1) as www', (err, rows, fields) => {
    console.log(err, rows, fields);
    });

    conn1.execute('select sleep(1) as qqq', (err, rows, fields) => {
    console.log(err, rows, fields);
    });

    conn1.execute('select sleep(1) as qqq', (err, rows, fields) => {
    console.log(err, rows, fields);
    });
    - - \ No newline at end of file diff --git a/zh-CN/docs/examples/connections/create-connection.html b/zh-CN/docs/examples/connections/create-connection.html new file mode 100644 index 0000000000..0a089e3f33 --- /dev/null +++ b/zh-CN/docs/examples/connections/create-connection.html @@ -0,0 +1,72 @@ + + + + + +createConnection | Quickstart + + + + +

    createConnection

    +
    信息

    For queries please see the Simple Queries and Prepared Statements examples.

    +

    createConnection(connectionUri)

    +
    +

    createConnection(connectionUri: string)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const connection = await mysql.createConnection(
    'mysql://root:password@localhost:3306/test'
    );
    } catch (err) {
    console.log(err);
    }
    +
    +

    createConnection(config)

    +
    +

    createConnection(config: ConnectionOptions)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const connection = await mysql.createConnection({
    host: 'localhost',
    user: 'root',
    database: 'test',
    // port: 3306,
    // password: '',
    });
    } catch (err) {
    console.log(err);
    }
    +
    +

    createConnection(config) — SHA1

    +
    +

    createConnection(config: ConnectionOptions)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const connection = await mysql.createConnection({
    // ...
    passwordSha1: Buffer.from(
    '8bb6118f8fd6935ad0876a3be34a717d32708ffd',
    'hex'
    ),
    });
    } catch (err) {
    console.log(err);
    }
    +
    +

    createConnection(config) — SSL

    +
    +

    createConnection(config: ConnectionOptions)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const connection = await mysql.createConnection({
    // ...
    ssl: {
    // key: fs.readFileSync('./certs/client-key.pem'),
    // cert: fs.readFileSync('./certs/client-cert.pem')
    ca: fs.readFileSync('./certs/ca-cert.pem'),
    },
    });
    } catch (err) {
    console.log(err);
    }
    +
    +

    createConnection(config) — RDS SSL

    +
    +

    createConnection(config: ConnectionOptions)

    +
    +

    You can use Amazon RDS string as value to ssl property to connect to Amazon RDS MySQL over SSL.

    +

    In that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used:

    +
    import mysql from 'mysql2/promise';

    try {
    const connection = await mysql.createConnection({
    // ...
    host: 'db.id.ap-southeast-2.rds.amazonaws.com',
    ssl: 'Amazon RDS',
    });
    } catch (err) {
    console.log(err);
    }
    Testing
    try {
    const [res] = await connection.query('SHOW `status` LIKE "Ssl_cipher"');
    await connection.end();

    console.log(res);
    } catch (err) {
    console.log(err);
    }
    + + +
    +

    createConnection(config) — Socks

    +
    +

    createConnection(config: ConnectionOptions)

    +
    +
    const mysql = require('mysql2');
    const SocksConnection = require('socksjs');

    const socksProxy = new SocksConnection({ port: 3306 });
    const connection = mysql.createConnection({
    stream: socksProxy,
    });

    connection.addListener('error', (err) => {
    console.log(err);
    });
    +
    Testing
    connection.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => {
    if (err instanceof Error) {
    console.log(err);
    return;
    }

    console.log(rows, fields);
    });

    connection.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {
    if (err instanceof Error) {
    console.log(err);
    return;
    }

    console.log(rows, fields);
    });

    connection.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {
    if (err instanceof Error) {
    console.log(err);
    return;
    }

    console.log(rows, fields);
    });
    +
    +

    Glossary

    +

    ConnectionOptions

    +
    ConnectionOptions Specification
    + + \ No newline at end of file diff --git a/zh-CN/docs/examples/connections/create-pool.html b/zh-CN/docs/examples/connections/create-pool.html new file mode 100644 index 0000000000..d579e81bf8 --- /dev/null +++ b/zh-CN/docs/examples/connections/create-pool.html @@ -0,0 +1,96 @@ + + + + + +createPool | Quickstart + + + + +

    createPool

    +
    信息

    For queries please see the Simple Queries and Prepared Statements examples.

    +

    createPool(connectionUri)

    +
    +

    createPool(connectionUri: string)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const pool = mysql.createPool('mysql://root:password@localhost:3306/test');
    const connection = await pool.getConnection();
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    +
    注意

    Don't forget to release the connection when finished by using:

      +
    • pool.releaseConnection(connection)
    • +
    • connection.release()
    • +
    +
    +

    createPool(config)

    +
    +

    createPool(config: PoolOptions)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const pool = mysql.createPool({
    host: 'localhost',
    user: 'root',
    database: 'test',
    // port: 3306,
    // password: '',
    });
    const connection = await pool.getConnection();
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    +
    注意

    Don't forget to release the connection when finished by using:

      +
    • pool.releaseConnection(connection)
    • +
    • connection.release()
    • +
    +
    +

    createPool(config) — SHA1

    +
    +

    createPool(config: PoolOptions)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const pool = mysql.createPool({
    // ...
    passwordSha1: Buffer.from(
    '8bb6118f8fd6935ad0876a3be34a717d32708ffd',
    'hex'
    ),
    });
    const connection = await pool.getConnection();
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    +
    注意

    Don't forget to release the connection when finished by using:

      +
    • pool.releaseConnection(connection)
    • +
    • connection.release()
    • +
    +
    +

    createPool(config) — SSL

    +
    +

    createPool(config: PoolOptions)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const pool = mysql.createPool({
    // ...
    ssl: {
    // key: fs.readFileSync('./certs/client-key.pem'),
    // cert: fs.readFileSync('./certs/client-cert.pem')
    ca: fs.readFileSync('./certs/ca-cert.pem'),
    },
    });
    const connection = await pool.getConnection();
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    +
    注意

    Don't forget to release the connection when finished by using:

      +
    • pool.releaseConnection(connection)
    • +
    • connection.release()
    • +
    +
    +

    createPool(config) — RDS SSL

    +
    +

    createPool(config: PoolOptions)

    +
    +

    You can use Amazon RDS string as value to ssl property to connect to Amazon RDS MySQL over SSL.

    +

    In that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used:

    +
    import mysql from 'mysql2/promise';

    try {
    const pool = mysql.createPool({
    // ...
    host: 'db.id.ap-southeast-2.rds.amazonaws.com',
    ssl: 'Amazon RDS',
    });
    const connection = await pool.getConnection();
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    Testing
    try {
    const [res] = await connection.query('SHOW `status` LIKE "Ssl_cipher"');
    await pool.end();

    console.log(res);
    } catch (err) {
    console.log(err);
    }
    +
    注意

    Don't forget to release the connection when finished by using:

      +
    • pool.releaseConnection(connection)
    • +
    • connection.release()
    • +
    + + +
    +

    createPool(config) — Socks

    +
    +

    createPool(config: PoolOptions)

    +
    +
    const mysql = require('mysql2');
    const SocksConnection = require('socksjs');

    const socksProxy = new SocksConnection({ port: 3306 });
    const pool = mysql.createPool({
    stream: socksProxy,
    });
    +
    Testing
    pool.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => {
    if (err instanceof Error) {
    console.log(err);
    return;
    }

    console.log(rows, fields);
    });

    pool.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {
    if (err instanceof Error) {
    console.log(err);
    return;
    }

    console.log(rows, fields);
    });

    pool.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {
    if (err instanceof Error) {
    console.log(err);
    return;
    }

    console.log(rows, fields);
    });
    +
    +

    Glossary

    +

    PoolOptions

    +
    +

    PoolOptions extends all options from ConnectionOptions:

    +
    ConnectionOptions Specification
    +
    +
    PoolOptions Specification
    + + \ No newline at end of file diff --git a/zh-CN/docs/examples/connections/createPoolCluster.html b/zh-CN/docs/examples/connections/createPoolCluster.html new file mode 100644 index 0000000000..8604f73b31 --- /dev/null +++ b/zh-CN/docs/examples/connections/createPoolCluster.html @@ -0,0 +1,91 @@ + + + + + +createPoolCluster | Quickstart + + + + +

    createPoolCluster

    +
    信息

    For queries please see the Simple Queries and Prepared Statements examples.

    +

    add(group, connectionUri)

    +
    +

    add(group: string, connectionUri: string)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const poolCluster = mysql.createPoolCluster();

    poolCluster.add('clusterA', 'mysql://root:password@localhost:3306/test');
    // poolCluster.add('clusterB', '...');

    const connection = await poolCluster.getConnection('clusterA');
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    +
    注意

    Don't forget to release the connection when finished by using:

      +
    • connection.release()
    • +
    +
    +

    add(group, config)

    +
    +

    add(group: string, config: PoolOptions)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const poolCluster = mysql.createPoolCluster();

    poolCluster.add('clusterA', {
    host: 'localhost',
    user: 'root',
    database: 'test',
    // port: 3306,
    // password: '',
    });
    // poolCluster.add('clusterB', '...');

    const connection = await poolCluster.getConnection('clusterA');
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    +
    注意

    Don't forget to release the connection when finished by using:

      +
    • connection.release()
    • +
    +
    +

    add(group, config) — SHA1

    +
    +

    add(group: string, config: PoolOptions)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const poolCluster = mysql.createPoolCluster();

    poolCluster.add('clusterA', {
    // ...
    passwordSha1: Buffer.from(
    '8bb6118f8fd6935ad0876a3be34a717d32708ffd',
    'hex'
    ),
    });
    // poolCluster.add('clusterB', '...');

    const connection = await poolCluster.getConnection('clusterA');
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    +
    注意

    Don't forget to release the connection when finished by using:

      +
    • connection.release()
    • +
    +
    +

    add(group, config) — SSL

    +
    +

    add(group: string, config: PoolOptions)

    +
    +
    import mysql from 'mysql2/promise';

    try {
    const poolCluster = mysql.createPoolCluster();

    poolCluster.add('clusterA', {
    // ...
    ssl: {
    // key: fs.readFileSync('./certs/client-key.pem'),
    // cert: fs.readFileSync('./certs/client-cert.pem')
    ca: fs.readFileSync('./certs/ca-cert.pem'),
    },
    });
    // poolCluster.add('clusterB', '...');

    const connection = await poolCluster.getConnection('clusterA');
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    +
    注意

    Don't forget to release the connection when finished by using:

      +
    • connection.release()
    • +
    +
    +

    add(group, config) — RDS SSL

    +
    +

    add(group: string, config: PoolOptions)

    +
    +

    You can use Amazon RDS string as value to ssl property to connect to Amazon RDS MySQL over SSL.

    +

    In that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used:

    +
    import mysql from 'mysql2/promise';

    try {
    const poolCluster = mysql.createPoolCluster();

    poolCluster.add('clusterA', {
    // ...
    host: 'db.id.ap-southeast-2.rds.amazonaws.com',
    ssl: 'Amazon RDS',
    });
    // poolCluster.add('clusterB', '...');

    const connection = await poolCluster.getConnection('clusterA');
    // ... some query

    connection.release();
    } catch (err) {
    console.log(err);
    }
    Testing
    try {
    const [res] = await connection.query('SHOW `status` LIKE "Ssl_cipher"');
    await poolCluster.end();

    console.log(res);
    } catch (err) {
    console.log(err);
    }
    +
    注意

    Don't forget to release the connection when finished by using:

      +
    • connection.release()
    • +
    + + +
    +

    add(group, config) — Socks

    +
    +

    add(group: string, config: PoolOptions)

    +
    +
    const mysql = require('mysql2');
    const SocksConnection = require('socksjs');

    const socksProxy = new SocksConnection({ port: 3306 });
    const poolCluster = mysql.createPoolCluster();

    poolCluster.add('clusterA', {
    stream: socksProxy,
    });
    // poolCluster.add('clusterB', '...');

    const poolNamespace = poolCluster.of('clusterA');
    +
    Testing
    poolNamespace.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => {
    if (err instanceof Error) {
    console.log(err);
    return;
    }

    console.log(rows, fields);
    });

    poolNamespace.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {
    if (err instanceof Error) {
    console.log(err);
    return;
    }

    console.log(rows, fields);
    });

    poolNamespace.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => {
    if (err instanceof Error) {
    console.log(err);
    return;
    }

    console.log(rows, fields);
    });
    +
    +

    Glossary

    +

    PoolOptions

    +
    +

    PoolOptions extends all options from ConnectionOptions:

    +
    ConnectionOptions Specification
    +
    +
    PoolOptions Specification
    + + \ No newline at end of file diff --git a/zh-CN/docs/examples/execute.html b/zh-CN/docs/examples/execute.html deleted file mode 100644 index 71b1e45755..0000000000 --- a/zh-CN/docs/examples/execute.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -Execute | Quickstart - - - - -

    Execute

    -
    'use strict';

    // get the client
    const mysql = require('mysql2');

    // create the connection to database
    const connection = mysql.createConnection({
    host: 'localhost',
    user: 'root',
    database: 'test',
    });

    connection.execute(
    'select ?+1 as qqq, ? as rrr, ? as yyy',
    [1, null, 3],
    (err, rows, fields) => {
    console.log(err, rows, fields);
    connection.execute(
    'select ?+1 as qqq, ? as rrr, ? as yyy',
    [3, null, 3],
    (err, rows, fields) => {
    console.log(err, rows, fields);
    connection.unprepare('select ?+1 as qqq, ? as rrr, ? as yyy');
    connection.execute(
    'select ?+1 as qqq, ? as rrr, ? as yyy',
    [3, null, 3],
    (err, rows, fields) => {
    console.log(err, rows, fields);
    }
    );
    }
    );
    }
    );
    - - \ No newline at end of file diff --git a/zh-CN/docs/examples/pass-sha.html b/zh-CN/docs/examples/pass-sha.html deleted file mode 100644 index d0989a74f9..0000000000 --- a/zh-CN/docs/examples/pass-sha.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -Pass SHA | Quickstart - - - - -

    Pass SHA

    -
    'use strict';

    const mysql = require('mysql2').createConnection({
    host: 'localhost',
    user: 'root',
    database: 'test',
    passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'),
    });

    mysql.execute(
    'select ?+1 as qqq, ? as rrr, ? as yyy',
    [1, null, 3],
    (err, rows, fields) => {
    console.log(err, rows, fields);
    }
    );
    - - \ No newline at end of file diff --git a/zh-CN/docs/examples/prepare.html b/zh-CN/docs/examples/prepare.html deleted file mode 100644 index bcf6324a1c..0000000000 --- a/zh-CN/docs/examples/prepare.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -Prepared Statements | Quickstart - - - - -

    Prepared Statements

    -
    'use strict';

    // get the client
    const mysql = require('mysql2');

    // create the connection to database
    const connection = mysql.createConnection({
    host: 'localhost',
    user: 'root',
    database: 'test',
    });

    // execute will internally call prepare and query
    connection.execute(
    'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',
    ['Rick C-137', 53],
    (err, results, fields) => {
    console.log(results); // results contains rows returned by server
    console.log(fields); // fields contains extra meta data about results, if available

    // If you execute same statement again, it will be picked form a LRU cache
    // which will save query preparation time and give better performance
    }
    );
    - - \ No newline at end of file diff --git a/zh-CN/docs/examples/promise-co-await.html b/zh-CN/docs/examples/promise-wrapper/co-await.html similarity index 85% rename from zh-CN/docs/examples/promise-co-await.html rename to zh-CN/docs/examples/promise-wrapper/co-await.html index cd9ac71261..ff71480e4d 100644 --- a/zh-CN/docs/examples/promise-co-await.html +++ b/zh-CN/docs/examples/promise-wrapper/co-await.html @@ -1,14 +1,14 @@ - + - -Promise CO Await | Quickstart - - + +await — co | Quickstart + + -

    Promise CO Await

    -
    'use strict';

    const mysql = require('mysql2/promise');

    async function test() {
    const c = await mysql.createConnection({
    port: 3306,
    user: 'testuser',
    namedPlaceholders: true,
    password: 'testpassword',
    });
    console.log('connected!');
    const [rows, fields] = await c.query('show databases');
    console.log(rows);

    try {
    const [rows, fields] = await c.query('some invalid sql here');
    } catch (e) {
    console.log('caught exception!', e);
    }

    console.log(await c.execute('select sleep(0.5)'));
    console.log('after first sleep');
    console.log(await c.execute('select sleep(0.5)'));
    console.log('after second sleep');
    let start = +new Date();
    console.log(
    await Promise.all([
    c.execute('select sleep(2.5)'),
    c.execute('select sleep(2.5)'),
    ])
    );
    console.log(
    'after 2+3 parallel sleep which is in fact not parallel because commands are queued per connection'
    );
    let end = +new Date();
    console.log(end - start);
    await c.end();

    const p = mysql.createPool({
    port: 3306,
    user: 'testuser',
    namedPlaceholders: true,
    password: 'testpassword',
    });
    console.log(await p.execute('select sleep(0.5)'));
    console.log('after first pool sleep');
    start = +new Date();
    console.log(
    await Promise.all([
    p.execute('select sleep(2.5)'),
    p.execute('select sleep(2.5)'),
    ])
    );
    console.log('after 2+3 parallel pool sleep');
    end = +new Date();
    console.log(end - start);
    await p.end();
    }

    test()
    .then(() => {
    console.log('done');
    })
    .catch((err) => {
    console.log('error!', err);
    throw err;
    });
    +

    await — co

    +
    'use strict';

    const mysql = require('mysql2/promise');

    async function test() {
    const c = await mysql.createConnection({
    port: 3306,
    user: 'testuser',
    namedPlaceholders: true,
    password: 'testpassword',
    });
    console.log('connected!');
    const [rows, fields] = await c.query('show databases');
    console.log(rows);

    try {
    const [rows, fields] = await c.query('some invalid sql here');
    } catch (e) {
    console.log('caught exception!', e);
    }

    console.log(await c.execute('select sleep(0.5)'));
    console.log('after first sleep');
    console.log(await c.execute('select sleep(0.5)'));
    console.log('after second sleep');
    let start = +new Date();
    console.log(
    await Promise.all([
    c.execute('select sleep(2.5)'),
    c.execute('select sleep(2.5)'),
    ])
    );
    console.log(
    'after 2+3 parallel sleep which is in fact not parallel because commands are queued per connection'
    );
    let end = +new Date();
    console.log(end - start);
    await c.end();

    const p = mysql.createPool({
    port: 3306,
    user: 'testuser',
    namedPlaceholders: true,
    password: 'testpassword',
    });
    console.log(await p.execute('select sleep(0.5)'));
    console.log('after first pool sleep');
    start = +new Date();
    console.log(
    await Promise.all([
    p.execute('select sleep(2.5)'),
    p.execute('select sleep(2.5)'),
    ])
    );
    console.log('after 2+3 parallel pool sleep');
    end = +new Date();
    console.log(end - start);
    await p.end();
    }

    test()
    .then(() => {
    console.log('done');
    })
    .catch((err) => {
    console.log('error!', err);
    throw err;
    });
    \ No newline at end of file diff --git a/zh-CN/docs/examples/queries/prepared-statements.html b/zh-CN/docs/examples/queries/prepared-statements.html new file mode 100644 index 0000000000..3a0e19b456 --- /dev/null +++ b/zh-CN/docs/examples/queries/prepared-statements.html @@ -0,0 +1,25 @@ + + + + + +Prepared Statements | Quickstart + + + + +

    Prepared Statements

    +

    MySQL2 provides execute helper which will prepare and query the statement. +You can also manually prepare / unprepare statement with prepare / unprepare methods.

    +

    See detailed documentaion in Prepared Statements.

    +
    提示

    If you execute same statement again, it will be picked form a LRU cache which will save query preparation time and give better performance.

    +
    +

    Usage examples:

    +
    + + \ No newline at end of file diff --git a/zh-CN/docs/examples/queries/prepared-statements/delete.html b/zh-CN/docs/examples/queries/prepared-statements/delete.html new file mode 100644 index 0000000000..0fe979578e --- /dev/null +++ b/zh-CN/docs/examples/queries/prepared-statements/delete.html @@ -0,0 +1,51 @@ + + + + + +DELETE | Quickstart + + + + +

    DELETE

    +

    execute(sql, values)

    +
    +

    execute(sql: string, values: any[])

    +
    +
    try {
    const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';
    const values = ['Page'];

    const [result, fields] = await connection.execute(sql, values);

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    信息

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    execute(options)

    +
    +

    execute(options: QueryOptions)

    +
    +
    try {
    const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';
    const values = ['Page'];

    const [result, fields] = await connection.execute({
    sql,
    values,
    // ... other options
    });

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    信息

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    execute(options, values)

    +
    +

    execute(options: QueryOptions, values: any[])

    +
    +
    try {
    const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1';
    const values = ['Page'];

    const [result, fields] = await connection.execute(
    {
    sql,
    // ... other options
    },
    values
    );

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    信息

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    Glossary

    +

    ResultSetHeader

    +
    ResultSetHeader Specification
    +

    QueryOptions

    +
    QueryOptions Specification
    + + \ No newline at end of file diff --git a/zh-CN/docs/examples/queries/prepared-statements/insert.html b/zh-CN/docs/examples/queries/prepared-statements/insert.html new file mode 100644 index 0000000000..06f8cee436 --- /dev/null +++ b/zh-CN/docs/examples/queries/prepared-statements/insert.html @@ -0,0 +1,51 @@ + + + + + +INSERT | Quickstart + + + + +

    INSERT

    +

    execute(sql, values)

    +
    +

    execute(sql: string, values: any[])

    +
    +
    try {
    const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';
    const values = ['Josh', 19, 'Page', 45];

    const [result, fields] = await connection.execute(sql, values);

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    信息

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    execute(options)

    +
    +

    execute(options: QueryOptions)

    +
    +
    try {
    const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';
    const values = ['Josh', 19, 'Page', 45];

    const [result, fields] = await connection.execute({
    sql,
    values,
    // ... other options
    });

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    信息

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    execute(options, values)

    +
    +

    execute(options: QueryOptions, values: any[])

    +
    +
    try {
    const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)';
    const values = ['Josh', 19, 'Page', 45];

    const [result, fields] = await connection.execute(
    {
    sql,
    // ... other options
    },
    values
    );

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    信息

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    Glossary

    +

    ResultSetHeader

    +
    ResultSetHeader Specification
    +

    QueryOptions

    +
    QueryOptions Specification
    + + \ No newline at end of file diff --git a/zh-CN/docs/examples/queries/prepared-statements/select.html b/zh-CN/docs/examples/queries/prepared-statements/select.html new file mode 100644 index 0000000000..366ffcf927 --- /dev/null +++ b/zh-CN/docs/examples/queries/prepared-statements/select.html @@ -0,0 +1,49 @@ + + + + + +SELECT | Quickstart + + + + +

    SELECT

    +

    execute(sql, values)

    +
    +

    execute(sql: string, values: any[])

    +
    +
    try {
    const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';
    const values = ['Page', 45];

    const [rows, fields] = await connection.execute(sql, values);

    console.log(rows);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • rows contains rows returned by server
    • +
    • fields contains extra meta data about rows, if available
    • +
    +
    信息

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    execute(options)

    +
    +

    execute(options: QueryOptions)

    +
    +
    try {
    const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';
    const values = ['Page', 45];

    const [rows, fields] = await connection.execute({
    sql,
    values,
    // ... other options
    });

    console.log(rows);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • rows contains rows returned by server
    • +
    • fields contains extra meta data about rows, if available
    • +
    +
    信息

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    execute(options, values)

    +
    +

    execute(options: QueryOptions, values: any[])

    +
    +
    try {
    const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?';
    const values = ['Page', 45];

    const [rows, fields] = await connection.execute(
    {
    sql,
    // ... other options
    },
    values
    );

    console.log(rows);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • rows contains rows returned by server
    • +
    • fields contains extra meta data about rows, if available
    • +
    +
    信息

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    Glossary

    +

    QueryOptions

    +
    QueryOptions Specification
    + + \ No newline at end of file diff --git a/zh-CN/docs/examples/queries/prepared-statements/update.html b/zh-CN/docs/examples/queries/prepared-statements/update.html new file mode 100644 index 0000000000..c9dcd84ae1 --- /dev/null +++ b/zh-CN/docs/examples/queries/prepared-statements/update.html @@ -0,0 +1,51 @@ + + + + + +UPDATE | Quickstart + + + + +

    UPDATE

    +

    execute(sql, values)

    +
    +

    execute(sql: string, values: any[])

    +
    +
    try {
    const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';
    const values = [20, 'Josh'];

    const [result, fields] = await connection.execute(sql, values);

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    信息

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    execute(options)

    +
    +

    execute(options: QueryOptions)

    +
    +
    try {
    const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';
    const values = [20, 'Josh'];

    const [result, fields] = await connection.execute({
    sql,
    values,
    // ... other options
    });

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    信息

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    execute(options, values)

    +
    +

    execute(options: QueryOptions, values: any[])

    +
    +
    try {
    const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1';
    const values = [20, 'Josh'];

    const [result, fields] = await connection.execute(
    {
    sql,
    // ... other options
    },
    values
    );

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    信息

    The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    Glossary

    +

    ResultSetHeader

    +
    ResultSetHeader Specification
    +

    QueryOptions

    +
    QueryOptions Specification
    + + \ No newline at end of file diff --git a/zh-CN/docs/examples/queries/select.html b/zh-CN/docs/examples/queries/select.html deleted file mode 100644 index 8038c71db3..0000000000 --- a/zh-CN/docs/examples/queries/select.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -SELECT | Quickstart - - - - -

    SELECT

    -
    'use strict';

    // get the client
    const mysql = require('mysql2');

    // create the connection to database
    const connection = mysql.createConnection({
    host: 'localhost',
    user: 'root',
    database: 'test',
    });

    // simple query
    connection.query(
    'SELECT * FROM `table` WHERE `name` = "Page" AND `age` > 45',
    (err, results, fields) => {
    console.log(results); // results contains rows returned by server
    console.log(fields); // fields contains extra meta data about results, if available
    }
    );

    // with placeholder
    connection.query(
    'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?',
    ['Page', 45],
    (err, results) => {
    console.log(results);
    }
    );
    - - \ No newline at end of file diff --git a/zh-CN/docs/examples/queries/simple-queries.html b/zh-CN/docs/examples/queries/simple-queries.html new file mode 100644 index 0000000000..2fc17104d0 --- /dev/null +++ b/zh-CN/docs/examples/queries/simple-queries.html @@ -0,0 +1,22 @@ + + + + + +Simple Queries | Quickstart + + + + + + + \ No newline at end of file diff --git a/zh-CN/docs/examples/queries/simple-queries/delete.html b/zh-CN/docs/examples/queries/simple-queries/delete.html new file mode 100644 index 0000000000..477fb83db6 --- /dev/null +++ b/zh-CN/docs/examples/queries/simple-queries/delete.html @@ -0,0 +1,41 @@ + + + + + +DELETE | Quickstart + + + + +

    DELETE

    +

    The examples below also work for the execute method.

    +

    query(sql)

    +
    +

    query(sql: string)

    +
    +
    try {
    const sql = 'DELETE FROM `users` WHERE `name` = "Page" LIMIT 1';

    const [result, fields] = await connection.query(sql);

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    信息

    The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    query(options)

    +
    +

    query(options: QueryOptions)

    +
    +
    try {
    const sql = 'DELETE FROM `users` WHERE `name` = "Page" LIMIT 1';

    const [result, fields] = await connection.query({
    sql,
    // ... other options
    });

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    信息

    The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    Glossary

    +

    ResultSetHeader

    +
    ResultSetHeader Specification
    +

    QueryOptions

    +
    QueryOptions Specification
    + + \ No newline at end of file diff --git a/zh-CN/docs/examples/queries/simple-queries/insert.html b/zh-CN/docs/examples/queries/simple-queries/insert.html new file mode 100644 index 0000000000..29f758303c --- /dev/null +++ b/zh-CN/docs/examples/queries/simple-queries/insert.html @@ -0,0 +1,41 @@ + + + + + +INSERT | Quickstart + + + + +

    INSERT

    +

    The examples below also work for the execute method.

    +

    query(sql)

    +
    +

    query(sql: string)

    +
    +
    try {
    const sql =
    'INSERT INTO `users`(`name`, `age`) VALUES ("Josh", 19), ("Page", 45)';

    const [result, fields] = await connection.query(sql);

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    信息

    The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    query(options)

    +
    +

    query(options: QueryOptions)

    +
    +
    try {
    const sql =
    'INSERT INTO `users`(`name`, `age`) VALUES ("Josh", 19), ("Page", 45)';

    const [result, fields] = await connection.query({
    sql,
    // ... other options
    });

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    信息

    The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    Glossary

    +

    ResultSetHeader

    +
    ResultSetHeader Specification
    +

    QueryOptions

    +
    QueryOptions Specification
    + + \ No newline at end of file diff --git a/zh-CN/docs/examples/queries/simple-queries/select.html b/zh-CN/docs/examples/queries/simple-queries/select.html new file mode 100644 index 0000000000..2f7af5a4b0 --- /dev/null +++ b/zh-CN/docs/examples/queries/simple-queries/select.html @@ -0,0 +1,50 @@ + + + + + +SELECT | Quickstart + + + + +

    SELECT

    +

    The examples below also work for the execute method.

    +

    query(sql)

    +
    +

    query(sql: string)

    +
    +
    try {
    const sql = 'SELECT * FROM `users` WHERE `name` = "Page" AND `age` > 45';

    const [rows, fields] = await connection.query(sql);

    console.log(rows);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • rows contains rows returned by server
    • +
    • fields contains extra meta data about rows, if available
    • +
    +
    信息

    The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    query(options)

    +
    +

    query(options: QueryOptions)

    +
    +
    try {
    const sql = 'SELECT * FROM `users` WHERE `name` = "Page" AND `age` > 45';

    const [rows, fields] = await connection.query({
    sql,
    // ... other options
    });

    console.log(rows);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • rows contains rows returned by server
    • +
    • fields contains extra meta data about rows, if available
    • +
    +
    信息

    The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    query(options) — Row as Array

    +
    +

    query(options: QueryOptions)

    +
    +
    try {
    const sql = 'SELECT * FROM `users` WHERE `name` = "Page" AND `age` > 45';

    const [rows, fields] = await connection.query({
    sql,
    rowsAsArray: true,
    // ... other options
    });

    console.log(rows);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • rows contains rows returned by server as array
    • +
    • fields contains extra meta data about rows, if available
    • +
    +
    信息

    The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    Glossary

    +

    QueryOptions

    +
    QueryOptions Specification
    + + \ No newline at end of file diff --git a/zh-CN/docs/examples/queries/simple-queries/update.html b/zh-CN/docs/examples/queries/simple-queries/update.html new file mode 100644 index 0000000000..e800ab3ae6 --- /dev/null +++ b/zh-CN/docs/examples/queries/simple-queries/update.html @@ -0,0 +1,41 @@ + + + + + +UPDATE | Quickstart + + + + +

    UPDATE

    +

    The examples below also work for the execute method.

    +

    query(sql)

    +
    +

    query(sql: string)

    +
    +
    try {
    const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = "Josh" LIMIT 1';

    const [result, fields] = await connection.query(sql);

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    信息

    The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    query(options)

    +
    +

    query(options: QueryOptions)

    +
    +
    try {
    const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = "Josh" LIMIT 1';

    const [result, fields] = await connection.query({
    sql,
    // ... other options
    });

    console.log(result);
    console.log(fields);
    } catch (err) {
    console.log(err);
    }
    +
      +
    • result: contains a ResultSetHeader object, which provides details about the operation executed by the server.
    • +
    • fields contains extra meta data about the operation, if available
    • +
    +
    信息

    The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.

    +
    +

    Glossary

    +

    ResultSetHeader

    +
    ResultSetHeader Specification
    +

    QueryOptions

    +
    QueryOptions Specification
    + + \ No newline at end of file diff --git a/zh-CN/docs/examples/ssl/rds-ssl.html b/zh-CN/docs/examples/ssl/rds-ssl.html deleted file mode 100644 index b475867700..0000000000 --- a/zh-CN/docs/examples/ssl/rds-ssl.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -RDS SSL | Quickstart - - - - -

    RDS SSL

    -
    'use strict';

    const mysql = require('mysql2');

    const conn = mysql.createConnection({
    user: process.env.USER,
    password: process.env.PASSWORD,
    database: process.env.DB,
    host: process.env.HOST,
    port: 3306,
    ssl: 'Amazon RDS',
    });

    conn.query("show status like 'Ssl_cipher'", function (err, res) {
    console.log(err, res);
    conn.end();
    });
    - - \ No newline at end of file diff --git a/zh-CN/docs/examples/ssl/select-over-ssl.html b/zh-CN/docs/examples/ssl/select-over-ssl.html deleted file mode 100644 index e77a31e56e..0000000000 --- a/zh-CN/docs/examples/ssl/select-over-ssl.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - -Select Over SSL | Quickstart - - - - -

    Select Over SSL

    -
    'use strict';

    const fs = require('fs');
    const mysql = require('mysql2');

    const conn = mysql.createConnection({
    user: 'root',
    password: '',
    database: 'test',
    host: '127.0.0.1',
    port: '3306',
    ssl: {
    // key: fs.readFileSync('./certs/client-key.pem'),
    // cert: fs.readFileSync('./certs/client-cert.pem')
    ca: fs.readFileSync('./certs/ca-cert.pem'),
    },
    });

    conn.query('select 1+1 as test', function (err, res) {
    console.log(res);
    conn.query('select repeat("a", 100) as test', function (err, res) {
    console.log(res);
    });
    });
    -
    - - \ No newline at end of file diff --git a/zh-CN/docs/examples/mysqlproxy.html b/zh-CN/docs/examples/tests/mysql-proxy.html similarity index 76% rename from zh-CN/docs/examples/mysqlproxy.html rename to zh-CN/docs/examples/tests/mysql-proxy.html index b3c4b01db6..288135f815 100644 --- a/zh-CN/docs/examples/mysqlproxy.html +++ b/zh-CN/docs/examples/tests/mysql-proxy.html @@ -1,14 +1,14 @@ - + - -MySQL Proxy | Quickstart - - + +MySQL Proxy | Quickstart + + -

    MySQL Proxy

    -
    'use strict';

    const mysql = require('mysql2');
    const ClientFlags = require('mysql2/lib/constants/client.js');

    const server = mysql.createServer();
    server.listen(3307);

    server.on('connection', (conn) => {
    console.log('connection');

    conn.serverHandshake({
    protocolVersion: 10,
    serverVersion: 'node.js rocks',
    connectionId: 1234,
    statusFlags: 2,
    characterSet: 8,
    capabilityFlags: 0xffffff ^ ClientFlags.COMPRESS,
    });

    conn.on('field_list', (table, fields) => {
    console.log('field list:', table, fields);
    conn.writeEof();
    });

    const remote = mysql.createConnection({
    user: 'root',
    database: 'dbname',
    host: 'server.example.com',
    password: 'secret',
    });

    conn.on('query', (sql) => {
    console.log(`proxying query: ${sql}`);
    remote.query(sql, function (err) {
    // overloaded args, either (err, result :object)
    // or (err, rows :array, columns :array)
    if (Array.isArray(arguments[1])) {
    // response to a 'select', 'show' or similar
    const rows = arguments[1],
    columns = arguments[2];
    console.log('rows', rows);
    console.log('columns', columns);
    conn.writeTextResult(rows, columns);
    } else {
    // response to an 'insert', 'update' or 'delete'
    const result = arguments[1];
    console.log('result', result);
    conn.writeOk(result);
    }
    });
    });

    conn.on('end', remote.end.bind(remote));
    });
    +

    MySQL Proxy

    +
    'use strict';

    const mysql = require('mysql2');
    const ClientFlags = require('mysql2/lib/constants/client.js');

    const server = mysql.createServer();
    server.listen(3307);

    server.on('connection', (conn) => {
    console.log('connection');

    conn.serverHandshake({
    protocolVersion: 10,
    serverVersion: 'node.js rocks',
    connectionId: 1234,
    statusFlags: 2,
    characterSet: 8,
    capabilityFlags: 0xffffff ^ ClientFlags.COMPRESS,
    });

    conn.on('field_list', (table, fields) => {
    console.log('field list:', table, fields);
    conn.writeEof();
    });

    const remote = mysql.createConnection({
    user: 'root',
    database: 'dbname',
    host: 'server.example.com',
    password: 'secret',
    });

    conn.on('query', (sql) => {
    console.log(`proxying query: ${sql}`);
    remote.query(sql, function (err) {
    // overloaded args, either (err, result :object)
    // or (err, rows :array, columns :array)
    if (Array.isArray(arguments[1])) {
    // response to a 'select', 'show' or similar
    const rows = arguments[1],
    columns = arguments[2];
    console.log('rows', rows);
    console.log('columns', columns);
    conn.writeTextResult(rows, columns);
    } else {
    // response to an 'insert', 'update' or 'delete'
    const result = arguments[1];
    console.log('result', result);
    conn.writeOk(result);
    }
    });
    });

    conn.on('end', remote.end.bind(remote));
    });
    \ No newline at end of file diff --git a/zh-CN/docs/examples/pool-test.html b/zh-CN/docs/examples/tests/pool.html similarity index 65% rename from zh-CN/docs/examples/pool-test.html rename to zh-CN/docs/examples/tests/pool.html index de2ad83f55..b74ea18a73 100644 --- a/zh-CN/docs/examples/pool-test.html +++ b/zh-CN/docs/examples/tests/pool.html @@ -1,14 +1,14 @@ - + - -Pool Test | Quickstart - - + +Pool | Quickstart + + -

    Pool Test

    -
    'use strict';

    const pool = require('mysql2').createPool({
    host: 'localhost',
    user: 'root',
    database: 'test',
    password: 'root',
    });

    setInterval(() => {
    for (let i = 0; i < 5; ++i) {
    pool.query((err, rows, fields) => {
    console.log(rows, fields);
    // Connection is automatically released once query resolves
    });
    }
    }, 1000);

    setInterval(() => {
    for (let i = 0; i < 5; ++i) {
    pool.getConnection((err, db) => {
    db.query('select sleep(0.5) as qqq', (err, rows, fields) => {
    console.log(rows, fields);
    db.release();
    });
    });
    }
    }, 1000);
    +

    Pool

    +
    'use strict';

    const pool = require('mysql2').createPool({
    host: 'localhost',
    user: 'root',
    database: 'test',
    password: 'root',
    });

    setInterval(() => {
    for (let i = 0; i < 5; ++i) {
    pool.query((err, rows, fields) => {
    console.log(rows, fields);
    // Connection is automatically released once query resolves
    });
    }
    }, 1000);

    setInterval(() => {
    for (let i = 0; i < 5; ++i) {
    pool.getConnection((err, db) => {
    db.query('select sleep(0.5) as qqq', (err, rows, fields) => {
    console.log(rows, fields);
    db.release();
    });
    });
    }
    }, 1000);
    \ No newline at end of file diff --git a/zh-CN/docs/examples/server.html b/zh-CN/docs/examples/tests/server.html similarity index 79% rename from zh-CN/docs/examples/server.html rename to zh-CN/docs/examples/tests/server.html index cca72445d2..aeb55ed6a9 100644 --- a/zh-CN/docs/examples/server.html +++ b/zh-CN/docs/examples/tests/server.html @@ -1,14 +1,14 @@ - + - -Server | Quickstart - - + +Server | Quickstart + + -

    Server

    -
    'use strict';

    const mysql = require('mysql2');
    const flags = require('mysql2/lib/constants/client.js');
    const auth = require('mysql2/lib/auth_41.js');

    function authenticate(params, cb) {
    console.log(params);
    const doubleSha = auth.doubleSha1('pass123');
    const isValid = auth.verifyToken(
    params.authPluginData1,
    params.authPluginData2,
    params.authToken,
    doubleSha
    );
    if (isValid) {
    cb(null);
    } else {
    // for list of codes lib/constants/errors.js
    cb(null, { message: 'wrong password dude', code: 1045 });
    }
    }

    const server = mysql.createServer();
    server.listen(3333);
    server.on('connection', (conn) => {
    // we can deny connection here:
    // conn.writeError({ message: 'secret', code: 123 });
    // conn.close();
    conn.serverHandshake({
    protocolVersion: 10,
    serverVersion: '5.6.10', // 'node.js rocks',
    connectionId: 1234,
    statusFlags: 2,
    characterSet: 8,
    // capabilityFlags: 0xffffff,
    // capabilityFlags: -2113931265,
    capabilityFlags: 2181036031,
    authCallback: authenticate,
    });

    conn.on('field_list', (table, fields) => {
    console.log('FIELD LIST:', table, fields);
    conn.writeEof();
    });

    conn.on('query', (query) => {
    conn.writeColumns([
    {
    catalog: 'def',
    schema: 'test',
    table: 'test_table',
    orgTable: 'test_table',
    name: 'beta',
    orgName: 'beta',
    characterSet: 33,
    columnLength: 384,
    columnType: 253,
    flags: 0,
    decimals: 0,
    },
    ]);
    conn.writeTextRow(['test тест テスト փորձարկում পরীক্ষা kiểm tra ']);
    conn.writeTextRow(['ტესტი પરીક્ષણ מבחן פּרובירן اختبار परीक्षण']);
    conn.writeEof();
    conn.close();
    });
    });
    +

    Server

    +
    'use strict';

    const mysql = require('mysql2');
    const flags = require('mysql2/lib/constants/client.js');
    const auth = require('mysql2/lib/auth_41.js');

    function authenticate(params, cb) {
    console.log(params);
    const doubleSha = auth.doubleSha1('pass123');
    const isValid = auth.verifyToken(
    params.authPluginData1,
    params.authPluginData2,
    params.authToken,
    doubleSha
    );
    if (isValid) {
    cb(null);
    } else {
    // for list of codes lib/constants/errors.js
    cb(null, { message: 'wrong password dude', code: 1045 });
    }
    }

    const server = mysql.createServer();
    server.listen(3333);
    server.on('connection', (conn) => {
    // we can deny connection here:
    // conn.writeError({ message: 'secret', code: 123 });
    // conn.close();
    conn.serverHandshake({
    protocolVersion: 10,
    serverVersion: '5.6.10', // 'node.js rocks',
    connectionId: 1234,
    statusFlags: 2,
    characterSet: 8,
    // capabilityFlags: 0xffffff,
    // capabilityFlags: -2113931265,
    capabilityFlags: 2181036031,
    authCallback: authenticate,
    });

    conn.on('field_list', (table, fields) => {
    console.log('FIELD LIST:', table, fields);
    conn.writeEof();
    });

    conn.on('query', (query) => {
    conn.writeColumns([
    {
    catalog: 'def',
    schema: 'test',
    table: 'test_table',
    orgTable: 'test_table',
    name: 'beta',
    orgName: 'beta',
    characterSet: 33,
    columnLength: 384,
    columnType: 253,
    flags: 0,
    decimals: 0,
    },
    ]);
    conn.writeTextRow(['test тест テスト փորձարկում পরীক্ষা kiểm tra ']);
    conn.writeTextRow(['ტესტი પરીક્ષણ מבחן פּרובירן اختبار परीक्षण']);
    conn.writeEof();
    conn.close();
    });
    });
    \ No newline at end of file diff --git a/zh-CN/docs/examples/typescript/basic-custom-class.html b/zh-CN/docs/examples/typescript/basic-custom-class.html index 1395f66d11..b47c649f5e 100644 --- a/zh-CN/docs/examples/typescript/basic-custom-class.html +++ b/zh-CN/docs/examples/typescript/basic-custom-class.html @@ -2,13 +2,13 @@ - -Basic Custom Class | Quickstart - - + +Basic Custom Class | Quickstart + + -

    Basic Custom Class

    -
    /**
    * The types are explicity for learning purpose
    */

    import { PoolOptions } from 'mysql2/promise';
    import { MySQL } from './db.js';

    interface User extends RowDataPacket {
    id: number;
    name: string;
    }

    const access: PoolOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    };

    (async () => {
    const mysql = new MySQL(access);

    /** Deleting the `users` table, if it exists */
    await mysql.queryResult('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await mysql.queryResult(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await mysql.executeResult(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Getting users */
    const [users] = await mysql.queryRows(
    'SELECT * FROM `users` ORDER BY `name` ASC;'
    );

    users.forEach((user: User) => {
    console.log('-----------');
    console.log('id: ', user.id);
    console.log('name:', user.name);
    });

    await mysql.connection.end();
    })();

    /** Output
    *
    * Inserted: 4
    * -----------
    * id: 4
    * name: Gween
    * -----------
    * id: 2
    * name: John
    * -----------
    * id: 1
    * name: Josh
    * -----------
    * id: 3
    * name: Marie
    */
    +

    Basic Custom Class

    +
    /**
    * The types are explicity for learning purpose
    */

    import { PoolOptions } from 'mysql2/promise';
    import { MySQL } from './db.js';

    interface User extends RowDataPacket {
    id: number;
    name: string;
    }

    const access: PoolOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    };

    (async () => {
    const mysql = new MySQL(access);

    /** Deleting the `users` table, if it exists */
    await mysql.queryResult('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await mysql.queryResult(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await mysql.executeResult(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Getting users */
    const [users] = await mysql.queryRows(
    'SELECT * FROM `users` ORDER BY `name` ASC;'
    );

    users.forEach((user: User) => {
    console.log('-----------');
    console.log('id: ', user.id);
    console.log('name:', user.name);
    });

    await mysql.connection.end();
    })();

    /** Output
    *
    * Inserted: 4
    * -----------
    * id: 4
    * name: Gween
    * -----------
    * id: 2
    * name: John
    * -----------
    * id: 1
    * name: Josh
    * -----------
    * id: 3
    * name: Marie
    */
    \ No newline at end of file diff --git a/zh-CN/docs/examples/typescript/procedure-call/procedure-call-packet.html b/zh-CN/docs/examples/typescript/procedure-call/index.html similarity index 77% rename from zh-CN/docs/examples/typescript/procedure-call/procedure-call-packet.html rename to zh-CN/docs/examples/typescript/procedure-call/index.html index f84729bc64..81de846989 100644 --- a/zh-CN/docs/examples/typescript/procedure-call/procedure-call-packet.html +++ b/zh-CN/docs/examples/typescript/procedure-call/index.html @@ -1,14 +1,14 @@ - + - -Procedure Call Packet | Quickstart - - + +Procedure Call Packet | Quickstart + + -

    Procedure Call Packet

    -
    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ProcedureCallPacket,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    id: number;
    name: string;
    }

    const isResultSetHeader = (data: unknown): data is ResultSetHeader => {
    if (!data || typeof data !== 'object') return false;

    const keys = [
    'fieldCount',
    'affectedRows',
    'insertId',
    'info',
    'serverStatus',
    'warningStatus',
    'changedRows',
    ];

    return keys.every((key) => key in data);
    };

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Deleting the `getUsers` procedure, if it exists */
    await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');

    /** Creating a procedure to get the users */
    await conn.query<ResultSetHeader>(`
    CREATE PROCEDURE getUsers()
    BEGIN
    SELECT * FROM users ORDER BY name ASC;
    END
    `);

    /** Getting users */
    const [procedureResult] =
    await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');

    procedureResult.forEach((users) => {
    /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */
    if (isResultSetHeader(users)) {
    console.log('----------------');
    console.log('Affected Rows:', users.affectedRows);
    } else {
    users.forEach((user) => {
    console.log('----------------');
    console.log('id: ', user.id);
    console.log('name:', user.name);
    });
    }
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * ----------------
    * id: 4
    * name: Gween
    * ----------------
    * id: 2
    * name: John
    * ----------------
    * id: 1
    * name: Josh
    * ----------------
    * id: 3
    * name: Marie
    * ----------------
    * Affected Rows: 0
    */
    +

    Procedure Call Packet

    +
    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ProcedureCallPacket,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    id: number;
    name: string;
    }

    const isResultSetHeader = (data: unknown): data is ResultSetHeader => {
    if (!data || typeof data !== 'object') return false;

    const keys = [
    'fieldCount',
    'affectedRows',
    'insertId',
    'info',
    'serverStatus',
    'warningStatus',
    'changedRows',
    ];

    return keys.every((key) => key in data);
    };

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Deleting the `getUsers` procedure, if it exists */
    await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');

    /** Creating a procedure to get the users */
    await conn.query<ResultSetHeader>(`
    CREATE PROCEDURE getUsers()
    BEGIN
    SELECT * FROM users ORDER BY name ASC;
    END
    `);

    /** Getting users */
    const [procedureResult] =
    await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');

    procedureResult.forEach((users) => {
    /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */
    if (isResultSetHeader(users)) {
    console.log('----------------');
    console.log('Affected Rows:', users.affectedRows);
    } else {
    users.forEach((user) => {
    console.log('----------------');
    console.log('id: ', user.id);
    console.log('name:', user.name);
    });
    }
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * ----------------
    * id: 4
    * name: Gween
    * ----------------
    * id: 2
    * name: John
    * ----------------
    * id: 1
    * name: Josh
    * ----------------
    * id: 3
    * name: Marie
    * ----------------
    * Affected Rows: 0
    */
    \ No newline at end of file diff --git a/zh-CN/docs/examples/typescript/procedure-call/row-as-array.html b/zh-CN/docs/examples/typescript/procedure-call/row-as-array.html index 63f2fb9a10..5dcfbd4879 100644 --- a/zh-CN/docs/examples/typescript/procedure-call/row-as-array.html +++ b/zh-CN/docs/examples/typescript/procedure-call/row-as-array.html @@ -2,13 +2,13 @@ - -Procedure Call Packet (Row as Array) | Quickstart - - + +Procedure Call Packet (Row as Array) | Quickstart + + -

    Procedure Call Packet (Row as Array)

    -
    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ProcedureCallPacket,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    /** id */
    0: number;
    /** name */
    1: string;
    }

    const isResultSetHeader = (data: unknown): data is ResultSetHeader => {
    if (!data || typeof data !== 'object') return false;

    const keys = [
    'fieldCount',
    'affectedRows',
    'insertId',
    'info',
    'serverStatus',
    'warningStatus',
    'changedRows',
    ];

    return keys.every((key) => key in data);
    };

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    rowsAsArray: true,
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Deleting the `getUsers` procedure, if it exists */
    await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');

    /** Creating a procedure to get the users */
    await conn.query<ResultSetHeader>(`
    CREATE PROCEDURE getUsers()
    BEGIN
    SELECT * FROM users ORDER BY name ASC;
    END
    `);

    /** Getting users */
    const [procedureResult] =
    await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');

    procedureResult.forEach((users) => {
    /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */
    if (isResultSetHeader(users)) {
    console.log('----------------');
    console.log('Affected Rows:', users.affectedRows);
    } else {
    users.forEach((user) => {
    console.log('----------------');
    console.log('id: ', user[0]);
    console.log('name:', user[1]);
    });
    }
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * ----------------
    * id: 4
    * name: Gween
    * ----------------
    * id: 2
    * name: John
    * ----------------
    * id: 1
    * name: Josh
    * ----------------
    * id: 3
    * name: Marie
    * ----------------
    * Affected Rows: 0
    */
    +

    Procedure Call Packet (Row as Array)

    +
    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ProcedureCallPacket,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    /** id */
    0: number;
    /** name */
    1: string;
    }

    const isResultSetHeader = (data: unknown): data is ResultSetHeader => {
    if (!data || typeof data !== 'object') return false;

    const keys = [
    'fieldCount',
    'affectedRows',
    'insertId',
    'info',
    'serverStatus',
    'warningStatus',
    'changedRows',
    ];

    return keys.every((key) => key in data);
    };

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    rowsAsArray: true,
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Deleting the `getUsers` procedure, if it exists */
    await conn.query<ResultSetHeader>('DROP PROCEDURE IF EXISTS getUsers');

    /** Creating a procedure to get the users */
    await conn.query<ResultSetHeader>(`
    CREATE PROCEDURE getUsers()
    BEGIN
    SELECT * FROM users ORDER BY name ASC;
    END
    `);

    /** Getting users */
    const [procedureResult] =
    await conn.query<ProcedureCallPacket<User[]>>('CALL getUsers()');

    procedureResult.forEach((users) => {
    /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */
    if (isResultSetHeader(users)) {
    console.log('----------------');
    console.log('Affected Rows:', users.affectedRows);
    } else {
    users.forEach((user) => {
    console.log('----------------');
    console.log('id: ', user[0]);
    console.log('name:', user[1]);
    });
    }
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * ----------------
    * id: 4
    * name: Gween
    * ----------------
    * id: 2
    * name: John
    * ----------------
    * id: 1
    * name: Josh
    * ----------------
    * id: 3
    * name: Marie
    * ----------------
    * Affected Rows: 0
    */
    \ No newline at end of file diff --git a/zh-CN/docs/examples/typescript/row-data/row-data-packet.html b/zh-CN/docs/examples/typescript/row-data/index.html similarity index 69% rename from zh-CN/docs/examples/typescript/row-data/row-data-packet.html rename to zh-CN/docs/examples/typescript/row-data/index.html index a5fa6a3dd2..836c874aa8 100644 --- a/zh-CN/docs/examples/typescript/row-data/row-data-packet.html +++ b/zh-CN/docs/examples/typescript/row-data/index.html @@ -1,14 +1,14 @@ - + - -Row Data Packet | Quickstart - - + +Row Data Packet | Quickstart + + -

    Row Data Packet

    -
    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    id: number;
    name: string;
    }

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Getting users */
    const [users] = await conn.query<User[]>(
    'SELECT * FROM `users` ORDER BY `name` ASC;'
    );

    users.forEach((user) => {
    console.log('-----------');
    console.log('id: ', user.id);
    console.log('name:', user.name);
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * -----------
    * id: 4
    * name: Gween
    * -----------
    * id: 2
    * name: John
    * -----------
    * id: 1
    * name: Josh
    * -----------
    * id: 3
    * name: Marie
    */
    +

    Row Data Packet

    +
    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    id: number;
    name: string;
    }

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Getting users */
    const [users] = await conn.query<User[]>(
    'SELECT * FROM `users` ORDER BY `name` ASC;'
    );

    users.forEach((user) => {
    console.log('-----------');
    console.log('id: ', user.id);
    console.log('name:', user.name);
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * -----------
    * id: 4
    * name: Gween
    * -----------
    * id: 2
    * name: John
    * -----------
    * id: 1
    * name: Josh
    * -----------
    * id: 3
    * name: Marie
    */
    \ No newline at end of file diff --git a/zh-CN/docs/examples/typescript/row-data/multi-statements.html b/zh-CN/docs/examples/typescript/row-data/multi-statements.html index ac4183172c..c9bd16f1c2 100644 --- a/zh-CN/docs/examples/typescript/row-data/multi-statements.html +++ b/zh-CN/docs/examples/typescript/row-data/multi-statements.html @@ -2,13 +2,13 @@ - -Row Data Packet (Multi Statements) | Quickstart - - + +Row Data Packet (Multi Statements) | Quickstart + + -

    Row Data Packet (Multi Statements)

    +

    Row Data Packet (Multi Statements)

    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    id: number;
    name: string;
    }

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    multipleStatements: true,
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Getting users */
    const [rows] = await conn.query<User[][]>(
    [
    'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2;',
    'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2 OFFSET 2;',
    ].join(' ')
    );

    rows.forEach((users) => {
    users.forEach((user) => {
    console.log('-----------');
    console.log('id: ', user.id);
    console.log('name:', user.name);
    });
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * -----------
    * id: 4
    * name: Gween
    * -----------
    * id: 2
    * name: John
    * -----------
    * id: 1
    * name: Josh
    * -----------
    * id: 3
    * name: Marie
    */
    \ No newline at end of file diff --git a/zh-CN/docs/examples/typescript/row-data/row-as-array-multi-statements.html b/zh-CN/docs/examples/typescript/row-data/row-as-array-multi-statements.html index 2c94a287a6..9762edce28 100644 --- a/zh-CN/docs/examples/typescript/row-data/row-as-array-multi-statements.html +++ b/zh-CN/docs/examples/typescript/row-data/row-as-array-multi-statements.html @@ -2,13 +2,13 @@ - -Row Data Packet (Multi Statements and Row as Array) | Quickstart - - + +Row Data Packet (Multi Statements and Row as Array) | Quickstart + + -

    Row Data Packet (Multi Statements and Row as Array)

    +

    Row Data Packet (Multi Statements and Row as Array)

    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    /** id */
    0: number;
    /** name */
    1: string;
    }

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    multipleStatements: true,
    rowsAsArray: true,
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Getting users */
    const [rows] = await conn.query<User[][]>(
    [
    'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2;',
    'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2 OFFSET 2;',
    ].join(' ')
    );

    rows.forEach((users) => {
    users.forEach((user) => {
    console.log('-----------');
    console.log('id: ', user[0]);
    console.log('name:', user[1]);
    });
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * -----------
    * id: 4
    * name: Gween
    * -----------
    * id: 2
    * name: John
    * -----------
    * id: 1
    * name: Josh
    * -----------
    * id: 3
    * name: Marie
    */
    \ No newline at end of file diff --git a/zh-CN/docs/examples/typescript/row-data/row-as-array.html b/zh-CN/docs/examples/typescript/row-data/row-as-array.html index 87e4f5092f..95cd775370 100644 --- a/zh-CN/docs/examples/typescript/row-data/row-as-array.html +++ b/zh-CN/docs/examples/typescript/row-data/row-as-array.html @@ -2,13 +2,13 @@ - -Row Data Packet (Row as Array) | Quickstart - - + +Row Data Packet (Row as Array) | Quickstart + + -

    Row Data Packet (Row as Array)

    -
    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    /** id */
    0: number;
    /** name */
    1: string;
    }

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    rowsAsArray: true,
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Getting users */
    const [users] = await conn.query<User[]>(
    'SELECT * FROM `users` ORDER BY `name` ASC;'
    );

    users.forEach((user) => {
    console.log('-----------');
    console.log('id: ', user[0]);
    console.log('name:', user[1]);
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * -----------
    * id: 4
    * name: Gween
    * -----------
    * id: 2
    * name: John
    * -----------
    * id: 1
    * name: Josh
    * -----------
    * id: 3
    * name: Marie
    */
    +

    Row Data Packet (Row as Array)

    +
    /**
    * The types are explicity for learning purpose
    * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
    */

    import mysql, {
    ConnectionOptions,
    ResultSetHeader,
    RowDataPacket,
    } from 'mysql2/promise';

    interface User extends RowDataPacket {
    /** id */
    0: number;
    /** name */
    1: string;
    }

    (async () => {
    const access: ConnectionOptions = {
    host: '',
    user: '',
    password: '',
    database: '',
    rowsAsArray: true,
    };

    const conn = await mysql.createConnection(access);

    /** Deleting the `users` table, if it exists */
    await conn.query<ResultSetHeader>('DROP TABLE IF EXISTS `users`;');

    /** Creating a minimal user table */
    await conn.query<ResultSetHeader>(
    'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));'
    );

    /** Inserting some users */
    const [inserted] = await conn.execute<ResultSetHeader>(
    'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);',
    ['Josh', 'John', 'Marie', 'Gween']
    );

    console.log('Inserted:', inserted.affectedRows);

    /** Getting users */
    const [users] = await conn.query<User[]>(
    'SELECT * FROM `users` ORDER BY `name` ASC;'
    );

    users.forEach((user) => {
    console.log('-----------');
    console.log('id: ', user[0]);
    console.log('name:', user[1]);
    });

    await conn.end();
    })();

    /** Output
    *
    * Inserted: 4
    * -----------
    * id: 4
    * name: Gween
    * -----------
    * id: 2
    * name: John
    * -----------
    * id: 1
    * name: Josh
    * -----------
    * id: 3
    * name: Marie
    */
    \ No newline at end of file diff --git a/zh-CN/docs/faq.html b/zh-CN/docs/faq.html index eddc51f298..c62ef00e3d 100644 --- a/zh-CN/docs/faq.html +++ b/zh-CN/docs/faq.html @@ -2,10 +2,10 @@ - -FAQ - - + +FAQ + +
    diff --git a/zh-CN/docs/faq/how-to-handle-errors.html b/zh-CN/docs/faq/how-to-handle-errors.html index 5800361ee4..4a42fea493 100644 --- a/zh-CN/docs/faq/how-to-handle-errors.html +++ b/zh-CN/docs/faq/how-to-handle-errors.html @@ -2,10 +2,10 @@ - -How to handle errors? | Quickstart - - + +How to handle errors? | Quickstart + +

    How to handle errors?

    diff --git a/zh-CN/docs/history-and-why-mysq2.html b/zh-CN/docs/history-and-why-mysq2.html index a548738b1a..54068a3feb 100644 --- a/zh-CN/docs/history-and-why-mysq2.html +++ b/zh-CN/docs/history-and-why-mysq2.html @@ -2,10 +2,10 @@ - -MySQL2的历史以及选择原因 | Quickstart - - + +MySQL2的历史以及选择原因 | Quickstart + +

    MySQL2的历史以及选择原因

    diff --git a/zh-CN/docs/stability-badges.html b/zh-CN/docs/stability-badges.html index 9fc8291903..1a1563cee7 100644 --- a/zh-CN/docs/stability-badges.html +++ b/zh-CN/docs/stability-badges.html @@ -2,10 +2,10 @@ - -Stability Badges | Quickstart - - + +Stability Badges | Quickstart + +

    Stability Badges

    diff --git a/zh-CN/docs/tags.html b/zh-CN/docs/tags.html new file mode 100644 index 0000000000..fa6cffa814 --- /dev/null +++ b/zh-CN/docs/tags.html @@ -0,0 +1,13 @@ + + + + + +标签 | Quickstart + + + + + + + \ No newline at end of file diff --git a/zh-CN/docs/tags/create-connection.html b/zh-CN/docs/tags/create-connection.html new file mode 100644 index 0000000000..8c8d5a1d97 --- /dev/null +++ b/zh-CN/docs/tags/create-connection.html @@ -0,0 +1,13 @@ + + + + + +1 篇文档带有标签「createConnection」 | Quickstart + + + + + + + \ No newline at end of file diff --git a/zh-CN/docs/tags/create-pool-cluster.html b/zh-CN/docs/tags/create-pool-cluster.html new file mode 100644 index 0000000000..0f828f7d72 --- /dev/null +++ b/zh-CN/docs/tags/create-pool-cluster.html @@ -0,0 +1,13 @@ + + + + + +1 篇文档带有标签「createPoolCluster」 | Quickstart + + + + + + + \ No newline at end of file diff --git a/zh-CN/docs/tags/create-pool.html b/zh-CN/docs/tags/create-pool.html new file mode 100644 index 0000000000..bd65086309 --- /dev/null +++ b/zh-CN/docs/tags/create-pool.html @@ -0,0 +1,13 @@ + + + + + +1 篇文档带有标签「createPool」 | Quickstart + + + + + + + \ No newline at end of file diff --git a/zh-CN/docs/tags/execute.html b/zh-CN/docs/tags/execute.html new file mode 100644 index 0000000000..8905cec4f9 --- /dev/null +++ b/zh-CN/docs/tags/execute.html @@ -0,0 +1,13 @@ + + + + + +5 篇文档带有标签「execute」 | Quickstart + + + + +

    5 篇文档带有标签「execute」

    查看所有标签
    + + \ No newline at end of file diff --git a/zh-CN/docs/tags/parameters.html b/zh-CN/docs/tags/parameters.html new file mode 100644 index 0000000000..1cb062d3bc --- /dev/null +++ b/zh-CN/docs/tags/parameters.html @@ -0,0 +1,13 @@ + + + + + +4 篇文档带有标签「Parameters」 | Quickstart + + + + + + + \ No newline at end of file diff --git a/zh-CN/docs/tags/placeholders.html b/zh-CN/docs/tags/placeholders.html new file mode 100644 index 0000000000..eb3d388644 --- /dev/null +++ b/zh-CN/docs/tags/placeholders.html @@ -0,0 +1,13 @@ + + + + + +4 篇文档带有标签「Placeholders」 | Quickstart + + + + + + + \ No newline at end of file diff --git a/zh-CN/docs/tags/prepared-statements.html b/zh-CN/docs/tags/prepared-statements.html new file mode 100644 index 0000000000..bf5c0c9f66 --- /dev/null +++ b/zh-CN/docs/tags/prepared-statements.html @@ -0,0 +1,13 @@ + + + + + +5 篇文档带有标签「Prepared Statements」 | Quickstart + + + + +

    5 篇文档带有标签「Prepared Statements」

    查看所有标签
    + + \ No newline at end of file diff --git a/zh-CN/docs/tags/query.html b/zh-CN/docs/tags/query.html new file mode 100644 index 0000000000..661a427b6f --- /dev/null +++ b/zh-CN/docs/tags/query.html @@ -0,0 +1,13 @@ + + + + + +4 篇文档带有标签「query」 | Quickstart + + + + +

    4 篇文档带有标签「query」

    查看所有标签

    DELETE

    The examples below also work for the execute method.

    INSERT

    The examples below also work for the execute method.

    SELECT

    The examples below also work for the execute method.

    UPDATE

    The examples below also work for the execute method.

    + + \ No newline at end of file diff --git a/zh-CN/docs/tags/rds.html b/zh-CN/docs/tags/rds.html new file mode 100644 index 0000000000..89cfa7590f --- /dev/null +++ b/zh-CN/docs/tags/rds.html @@ -0,0 +1,13 @@ + + + + + +3 篇文档带有标签「RDS」 | Quickstart + + + + +

    3 篇文档带有标签「RDS」

    查看所有标签

    createConnection

    For queries please see the Simple Queries and Prepared Statements examples.

    createPool

    For queries please see the Simple Queries and Prepared Statements examples.

    createPoolCluster

    For queries please see the Simple Queries and Prepared Statements examples.

    + + \ No newline at end of file diff --git a/zh-CN/docs/tags/sha-1.html b/zh-CN/docs/tags/sha-1.html new file mode 100644 index 0000000000..a60947abef --- /dev/null +++ b/zh-CN/docs/tags/sha-1.html @@ -0,0 +1,13 @@ + + + + + +3 篇文档带有标签「SHA1」 | Quickstart + + + + +

    3 篇文档带有标签「SHA1」

    查看所有标签

    createConnection

    For queries please see the Simple Queries and Prepared Statements examples.

    createPool

    For queries please see the Simple Queries and Prepared Statements examples.

    createPoolCluster

    For queries please see the Simple Queries and Prepared Statements examples.

    + + \ No newline at end of file diff --git a/zh-CN/docs/tags/socks.html b/zh-CN/docs/tags/socks.html new file mode 100644 index 0000000000..582304b140 --- /dev/null +++ b/zh-CN/docs/tags/socks.html @@ -0,0 +1,13 @@ + + + + + +3 篇文档带有标签「Socks」 | Quickstart + + + + +

    3 篇文档带有标签「Socks」

    查看所有标签

    createConnection

    For queries please see the Simple Queries and Prepared Statements examples.

    createPool

    For queries please see the Simple Queries and Prepared Statements examples.

    createPoolCluster

    For queries please see the Simple Queries and Prepared Statements examples.

    + + \ No newline at end of file diff --git a/zh-CN/docs/tags/ssl.html b/zh-CN/docs/tags/ssl.html new file mode 100644 index 0000000000..d30533aeb8 --- /dev/null +++ b/zh-CN/docs/tags/ssl.html @@ -0,0 +1,13 @@ + + + + + +3 篇文档带有标签「SSL」 | Quickstart + + + + +

    3 篇文档带有标签「SSL」

    查看所有标签

    createConnection

    For queries please see the Simple Queries and Prepared Statements examples.

    createPool

    For queries please see the Simple Queries and Prepared Statements examples.

    createPoolCluster

    For queries please see the Simple Queries and Prepared Statements examples.

    + + \ No newline at end of file diff --git a/zh-CN/docs/tags/uri.html b/zh-CN/docs/tags/uri.html new file mode 100644 index 0000000000..a47f38b938 --- /dev/null +++ b/zh-CN/docs/tags/uri.html @@ -0,0 +1,13 @@ + + + + + +3 篇文档带有标签「URI」 | Quickstart + + + + +

    3 篇文档带有标签「URI」

    查看所有标签

    createConnection

    For queries please see the Simple Queries and Prepared Statements examples.

    createPool

    For queries please see the Simple Queries and Prepared Statements examples.

    createPoolCluster

    For queries please see the Simple Queries and Prepared Statements examples.

    + + \ No newline at end of file diff --git a/zh-CN/index.html b/zh-CN/index.html index a916787a4d..1112af4ccd 100644 --- a/zh-CN/index.html +++ b/zh-CN/index.html @@ -2,10 +2,10 @@ - -Quickstart - - + +Quickstart + +
    diff --git a/zh-CN/search-index.json b/zh-CN/search-index.json index 7305f338cd..d082f14034 100644 --- a/zh-CN/search-index.json +++ b/zh-CN/search-index.json @@ -1 +1 @@ -[{"documents":[{"i":175,"t":"鸣谢","u":"/node-mysql2/zh-CN/docs/acknowledgements","b":[]},{"i":177,"t":"贡献","u":"/node-mysql2/zh-CN/docs/contributing","b":["贡献"]},{"i":179,"t":"API配置项","u":"/node-mysql2/zh-CN/docs/api-and-configurations","b":[]},{"i":181,"t":"Documentation","u":"/node-mysql2/zh-CN/docs/documentation","b":["Docs","Documentation"]},{"i":191,"t":"Authentication Switch Request","u":"/node-mysql2/zh-CN/docs/documentation/authentication-switch","b":["Docs","Documentation"]},{"i":195,"t":"MySQL2","u":"/node-mysql2/zh-CN/docs","b":[]},{"i":209,"t":"Website Contributing Guidelines","u":"/node-mysql2/zh-CN/docs/contributing/website","b":["贡献"]},{"i":225,"t":"Prepared Statements","u":"/node-mysql2/zh-CN/docs/documentation/prepared-statements","b":["Docs","Documentation"]},{"i":234,"t":"Extra Features","u":"/node-mysql2/zh-CN/docs/documentation/extras","b":["Docs","Documentation"]},{"i":243,"t":"Promise Wrappers","u":"/node-mysql2/zh-CN/docs/documentation/promise-wrapper","b":["Docs","Documentation"]},{"i":251,"t":"MySQL Server API","u":"/node-mysql2/zh-CN/docs/documentation/mysql-server","b":["Docs","Documentation"]},{"i":260,"t":"Using MySQL2 with TypeScript","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","b":["Docs","Documentation"]},{"i":286,"t":"Binlog Watcher","u":"/node-mysql2/zh-CN/docs/examples/binlog-watcher","b":["Examples"]},{"i":288,"t":"Examples","u":"/node-mysql2/zh-CN/docs/examples","b":["Examples"]},{"i":299,"t":"Connect Over Socks","u":"/node-mysql2/zh-CN/docs/examples/connect-over-socks","b":["Examples"]},{"i":301,"t":"MySQL Proxy","u":"/node-mysql2/zh-CN/docs/examples/mysqlproxy","b":["Examples"]},{"i":303,"t":"Pass SHA","u":"/node-mysql2/zh-CN/docs/examples/pass-sha","b":["Examples"]},{"i":305,"t":"Prepared Statements","u":"/node-mysql2/zh-CN/docs/examples/prepare","b":["Examples"]},{"i":307,"t":"Pool Test","u":"/node-mysql2/zh-CN/docs/examples/pool-test","b":["Examples"]},{"i":309,"t":"Execute","u":"/node-mysql2/zh-CN/docs/examples/execute","b":["Examples"]},{"i":311,"t":"SELECT","u":"/node-mysql2/zh-CN/docs/examples/queries/select","b":["Examples","Queries"]},{"i":313,"t":"Server","u":"/node-mysql2/zh-CN/docs/examples/server","b":["Examples"]},{"i":315,"t":"Select Over SSL","u":"/node-mysql2/zh-CN/docs/examples/ssl/select-over-ssl","b":["Examples","SSL"]},{"i":317,"t":"Procedure Call Packet","u":"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/procedure-call-packet","b":["Examples","TypeScript","Procedure Call Packet"]},{"i":319,"t":"Promise CO Await","u":"/node-mysql2/zh-CN/docs/examples/promise-co-await","b":["Examples"]},{"i":321,"t":"Procedure Call Packet (Row as Array)","u":"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-array","b":["Examples","TypeScript","Procedure Call Packet"]},{"i":323,"t":"RDS SSL","u":"/node-mysql2/zh-CN/docs/examples/ssl/rds-ssl","b":["Examples","SSL"]},{"i":325,"t":"Row Data Packet (Multi Statements)","u":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/multi-statements","b":["Examples","TypeScript","Row Data Packet"]},{"i":327,"t":"Row Data Packet (Multi Statements and Row as Array)","u":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array-multi-statements","b":["Examples","TypeScript","Row Data Packet"]},{"i":329,"t":"Row Data Packet","u":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-data-packet","b":["Examples","TypeScript","Row Data Packet"]},{"i":331,"t":"How to handle errors?","u":"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors","b":["FAQ"]},{"i":339,"t":"MySQL2的历史以及选择原因","u":"/node-mysql2/zh-CN/docs/history-and-why-mysq2","b":[]},{"i":341,"t":"Frequently Asked Questions","u":"/node-mysql2/zh-CN/docs/faq","b":["FAQ"]},{"i":343,"t":"Basic Custom Class","u":"/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-class","b":["Examples","TypeScript"]},{"i":345,"t":"Row Data Packet (Row as Array)","u":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array","b":["Examples","TypeScript","Row Data Packet"]},{"i":347,"t":"Stability Badges","u":"/node-mysql2/zh-CN/docs/stability-badges","b":[]}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/175",[0,3.545]],["t/177",[0,3.545]],["t/179",[1,3.545]],["t/181",[2,4.217]],["t/191",[3,2.917,4,2.917,5,2.917]],["t/195",[6,3.102]],["t/209",[7,2.917,8,2.917,9,2.917]],["t/225",[10,2.899,11,2.267]],["t/234",[12,3.449,13,3.449]],["t/243",[14,2.899,15,3.449]],["t/251",[1,2.452,16,2.452,17,2.452]],["t/260",[6,2.146,18,2.917,19,2.917]],["t/286",[20,3.449,21,3.449]],["t/288",[22,4.217]],["t/299",[23,2.917,24,2.452,25,2.917]],["t/301",[16,2.899,26,3.449]],["t/303",[27,3.449,28,3.449]],["t/305",[10,2.899,11,2.267]],["t/307",[29,3.449,30,3.449]],["t/309",[31,4.217]],["t/311",[32,3.545]],["t/313",[17,3.545]],["t/315",[24,2.452,32,2.452,33,2.452]],["t/317",[34,2.452,35,2.452,36,1.583]],["t/319",[14,2.452,37,2.917,38,2.917]],["t/321",[34,1.875,35,1.875,36,1.21,39,1.326,40,1.641]],["t/323",[33,2.899,41,3.449]],["t/325",[11,1.466,36,1.21,39,1.326,42,1.466,43,1.875]],["t/327",[11,1.186,36,0.979,39,1.709,40,1.328,42,1.186,43,1.517]],["t/329",[36,1.583,39,1.735,42,1.917]],["t/331",[44,3.449,45,3.449]],["t/339",[6,3.102]],["t/341",[46,2.917,47,2.917,48,2.917]],["t/343",[49,2.917,50,2.917,51,2.917]],["t/345",[36,1.21,39,2.015,40,1.641,42,1.466]],["t/347",[52,3.449,53,3.449]]],"invertedIndex":[["",{"_index":0,"t":{"175":{"position":[[0,2]]},"177":{"position":[[0,2]]}}}],["api",{"_index":1,"t":{"179":{"position":[[0,6]]},"251":{"position":[[13,3]]}}}],["array",{"_index":40,"t":{"321":{"position":[[30,6]]},"327":{"position":[[45,6]]},"345":{"position":[[24,6]]}}}],["ask",{"_index":47,"t":{"341":{"position":[[11,5]]}}}],["authent",{"_index":3,"t":{"191":{"position":[[0,14]]}}}],["await",{"_index":38,"t":{"319":{"position":[[11,5]]}}}],["badg",{"_index":53,"t":{"347":{"position":[[10,6]]}}}],["basic",{"_index":49,"t":{"343":{"position":[[0,5]]}}}],["binlog",{"_index":20,"t":{"286":{"position":[[0,6]]}}}],["call",{"_index":35,"t":{"317":{"position":[[10,4]]},"321":{"position":[[10,4]]}}}],["class",{"_index":51,"t":{"343":{"position":[[13,5]]}}}],["co",{"_index":37,"t":{"319":{"position":[[8,2]]}}}],["connect",{"_index":23,"t":{"299":{"position":[[0,7]]}}}],["contribut",{"_index":8,"t":{"209":{"position":[[8,12]]}}}],["custom",{"_index":50,"t":{"343":{"position":[[6,6]]}}}],["data",{"_index":42,"t":{"325":{"position":[[4,4]]},"327":{"position":[[4,4]]},"329":{"position":[[4,4]]},"345":{"position":[[4,4]]}}}],["document",{"_index":2,"t":{"181":{"position":[[0,13]]}}}],["error",{"_index":45,"t":{"331":{"position":[[14,7]]}}}],["exampl",{"_index":22,"t":{"288":{"position":[[0,8]]}}}],["execut",{"_index":31,"t":{"309":{"position":[[0,7]]}}}],["extra",{"_index":12,"t":{"234":{"position":[[0,5]]}}}],["featur",{"_index":13,"t":{"234":{"position":[[6,8]]}}}],["frequent",{"_index":46,"t":{"341":{"position":[[0,10]]}}}],["guidelin",{"_index":9,"t":{"209":{"position":[[21,10]]}}}],["handl",{"_index":44,"t":{"331":{"position":[[7,6]]}}}],["multi",{"_index":43,"t":{"325":{"position":[[16,6]]},"327":{"position":[[16,6]]}}}],["mysql",{"_index":16,"t":{"251":{"position":[[0,5]]},"301":{"position":[[0,5]]}}}],["mysql2",{"_index":6,"t":{"195":{"position":[[0,6]]},"260":{"position":[[6,6]]},"339":{"position":[[0,15]]}}}],["over",{"_index":24,"t":{"299":{"position":[[8,4]]},"315":{"position":[[7,4]]}}}],["packet",{"_index":36,"t":{"317":{"position":[[15,6]]},"321":{"position":[[15,6]]},"325":{"position":[[9,6]]},"327":{"position":[[9,6]]},"329":{"position":[[9,6]]},"345":{"position":[[9,6]]}}}],["pass",{"_index":27,"t":{"303":{"position":[[0,4]]}}}],["pool",{"_index":29,"t":{"307":{"position":[[0,4]]}}}],["prepar",{"_index":10,"t":{"225":{"position":[[0,8]]},"305":{"position":[[0,8]]}}}],["procedur",{"_index":34,"t":{"317":{"position":[[0,9]]},"321":{"position":[[0,9]]}}}],["promis",{"_index":14,"t":{"243":{"position":[[0,7]]},"319":{"position":[[0,7]]}}}],["proxi",{"_index":26,"t":{"301":{"position":[[6,5]]}}}],["question",{"_index":48,"t":{"341":{"position":[[17,9]]}}}],["rd",{"_index":41,"t":{"323":{"position":[[0,3]]}}}],["request",{"_index":5,"t":{"191":{"position":[[22,7]]}}}],["row",{"_index":39,"t":{"321":{"position":[[22,4]]},"325":{"position":[[0,3]]},"327":{"position":[[0,3],[38,3]]},"329":{"position":[[0,3]]},"345":{"position":[[0,3],[16,4]]}}}],["select",{"_index":32,"t":{"311":{"position":[[0,6]]},"315":{"position":[[0,6]]}}}],["server",{"_index":17,"t":{"251":{"position":[[6,6]]},"313":{"position":[[0,6]]}}}],["sha",{"_index":28,"t":{"303":{"position":[[5,3]]}}}],["sock",{"_index":25,"t":{"299":{"position":[[13,5]]}}}],["ssl",{"_index":33,"t":{"315":{"position":[[12,3]]},"323":{"position":[[4,3]]}}}],["stabil",{"_index":52,"t":{"347":{"position":[[0,9]]}}}],["statement",{"_index":11,"t":{"225":{"position":[[9,10]]},"305":{"position":[[9,10]]},"325":{"position":[[23,11]]},"327":{"position":[[23,10]]}}}],["switch",{"_index":4,"t":{"191":{"position":[[15,6]]}}}],["test",{"_index":30,"t":{"307":{"position":[[5,4]]}}}],["typescript",{"_index":19,"t":{"260":{"position":[[18,10]]}}}],["us",{"_index":18,"t":{"260":{"position":[[0,5]]}}}],["watcher",{"_index":21,"t":{"286":{"position":[[7,7]]}}}],["websit",{"_index":7,"t":{"209":{"position":[[0,7]]}}}],["wrapper",{"_index":15,"t":{"243":{"position":[[8,8]]}}}]],"pipeline":["stemmer"]}},{"documents":[{"i":183,"t":"Examples","u":"/node-mysql2/zh-CN/docs/documentation","h":"#examples","p":181},{"i":185,"t":"Known incompatibilities with Node MySQL","u":"/node-mysql2/zh-CN/docs/documentation","h":"#known-incompatibilities-with-node-mysql","p":181},{"i":187,"t":"Other Resources","u":"/node-mysql2/zh-CN/docs/documentation","h":"#other-resources","p":181},{"i":189,"t":"Benchmarks","u":"/node-mysql2/zh-CN/docs/documentation","h":"#benchmarks","p":181},{"i":193,"t":"Multi-factor authentication","u":"/node-mysql2/zh-CN/docs/documentation/authentication-switch","h":"#multi-factor-authentication","p":191},{"i":197,"t":"安装","u":"/node-mysql2/zh-CN/docs","h":"#安装","p":195},{"i":199,"t":"查询数据","u":"/node-mysql2/zh-CN/docs","h":"#查询数据","p":195},{"i":201,"t":"SQL预处理的使用","u":"/node-mysql2/zh-CN/docs","h":"#sql预处理的使用","p":195},{"i":203,"t":"连接池的使用","u":"/node-mysql2/zh-CN/docs","h":"#连接池的使用","p":195},{"i":205,"t":"Promise封装","u":"/node-mysql2/zh-CN/docs","h":"#promise封装","p":195},{"i":207,"t":"结果返回","u":"/node-mysql2/zh-CN/docs","h":"#结果返回","p":195},{"i":211,"t":"Environment","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"#environment","p":209},{"i":213,"t":"Development","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"#development","p":209},{"i":215,"t":"Extras Components","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"#extras-components","p":209},{"i":217,"t":"History","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"#history","p":209},{"i":219,"t":"Stability","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"#stability","p":209},{"i":221,"t":"FAQ","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"#faq","p":209},{"i":223,"t":"Running Tests","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"#running-tests","p":209},{"i":226,"t":"Automatic creation, cached and re-used by connection","u":"/node-mysql2/zh-CN/docs/documentation/prepared-statements","h":"#automatic-creation-cached-and-re-used-by-connection","p":225},{"i":228,"t":"Manual prepare / execute","u":"/node-mysql2/zh-CN/docs/documentation/prepared-statements","h":"#manual-prepare--execute","p":225},{"i":230,"t":"Configuration","u":"/node-mysql2/zh-CN/docs/documentation/prepared-statements","h":"","p":225},{"i":232,"t":"Serialization of bind parameters","u":"/node-mysql2/zh-CN/docs/documentation/prepared-statements","h":"","p":225},{"i":235,"t":"Named placeholders","u":"/node-mysql2/zh-CN/docs/documentation/extras","h":"#named-placeholders","p":234},{"i":237,"t":"Receiving rows as array of columns instead of hash with column name as key:","u":"/node-mysql2/zh-CN/docs/documentation/extras","h":"#receiving-rows-as-array-of-columns-instead-of-hash-with-column-name-as-key","p":234},{"i":239,"t":"Sending tabular data with 'load infile' and local stream:","u":"/node-mysql2/zh-CN/docs/documentation/extras","h":"#sending-tabular-data-with-load-infile-and-local-stream","p":234},{"i":241,"t":"Connecting using custom stream:","u":"/node-mysql2/zh-CN/docs/documentation/extras","h":"#connecting-using-custom-stream","p":234},{"i":245,"t":"Basic Promise","u":"/node-mysql2/zh-CN/docs/documentation/promise-wrapper","h":"#basic-promise","p":243},{"i":247,"t":"ES7 Async Await","u":"/node-mysql2/zh-CN/docs/documentation/promise-wrapper","h":"#es7-async-await","p":243},{"i":249,"t":"With CO","u":"/node-mysql2/zh-CN/docs/documentation/promise-wrapper","h":"#with-co","p":243},{"i":252,"t":"Server","u":"/node-mysql2/zh-CN/docs/documentation/mysql-server","h":"#server","p":251},{"i":254,"t":"Events","u":"/node-mysql2/zh-CN/docs/documentation/mysql-server","h":"#events","p":251},{"i":256,"t":"Connection","u":"/node-mysql2/zh-CN/docs/documentation/mysql-server","h":"#connection","p":251},{"i":258,"t":"Events","u":"/node-mysql2/zh-CN/docs/documentation/mysql-server","h":"#events-1","p":251},{"i":261,"t":"Installation","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#installation","p":260},{"i":263,"t":"Usage","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#usage","p":260},{"i":265,"t":"Connection","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#connection","p":260},{"i":267,"t":"Pool Connection","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#pool-connection","p":260},{"i":269,"t":"Query and Execute","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#query-and-execute","p":260},{"i":271,"t":"Type Specification","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#type-specification","p":260},{"i":272,"t":"RowDataPacket[]","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#rowdatapacket","p":260},{"i":274,"t":"RowDataPacket[][]","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#rowdatapacket-1","p":260},{"i":276,"t":"ResultSetHeader","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#resultsetheader","p":260},{"i":278,"t":"ResultSetHeader[]","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#resultsetheader-1","p":260},{"i":280,"t":"ProcedureCallPacket","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#procedurecallpacket","p":260},{"i":282,"t":"OkPacket","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#okpacket","p":260},{"i":284,"t":"Examples","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#examples","p":260},{"i":289,"t":"Simple SELECT","u":"/node-mysql2/zh-CN/docs/examples","h":"#simple-select","p":288},{"i":291,"t":"Prepared Statement and Parameters","u":"/node-mysql2/zh-CN/docs/examples","h":"#prepared-statement-and-parameters","p":288},{"i":293,"t":"Connecting over encrypted connection","u":"/node-mysql2/zh-CN/docs/examples","h":"#connecting-over-encrypted-connection","p":288},{"i":295,"t":"Simple MySQL proxy server","u":"/node-mysql2/zh-CN/docs/examples","h":"#simple-mysql-proxy-server","p":288},{"i":297,"t":"Examples using MySQL server API","u":"/node-mysql2/zh-CN/docs/examples","h":"#examples-using-mysql-server-api","p":288},{"i":333,"t":"Using callbacks","u":"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors","h":"#using-callbacks","p":331},{"i":335,"t":"Using promises","u":"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors","h":"#using-promises","p":331},{"i":337,"t":"Related Links","u":"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors","h":"#related-links","p":331}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/183",[0,3.487]],["t/185",[1,2.597,2,2.597,3,2.597,4,1.986]],["t/187",[5,4.56]],["t/189",[6,4.56]],["t/193",[7,3.032,8,3.032,9,3.032]],["t/197",[10,2.915]],["t/199",[10,2.915]],["t/201",[11,4.56]],["t/203",[10,2.915]],["t/205",[12,3.487]],["t/207",[10,2.915]],["t/211",[13,4.56]],["t/213",[14,4.56]],["t/215",[15,3.642,16,3.642]],["t/217",[17,4.56]],["t/219",[18,4.56]],["t/221",[19,4.56]],["t/223",[20,3.642,21,3.642]],["t/226",[22,2.018,23,2.018,24,2.018,25,2.018,26,1.29,27,1.196]],["t/228",[10,1.66,28,2.597,29,2.229,30,2.229]],["t/230",[31,4.56]],["t/232",[32,3.032,33,3.032,34,2.602]],["t/235",[35,3.126,36,3.642]],["t/237",[35,1.298,37,1.512,38,1.512,39,1.512,40,2.54,41,1.512,42,1.512,43,1.512]],["t/239",[44,1.815,45,1.815,46,1.815,47,1.815,48,1.815,49,1.815,50,1.558]],["t/241",[26,1.66,27,1.54,50,2.229,51,2.597]],["t/245",[12,2.785,52,3.642]],["t/247",[53,3.032,54,3.032,55,3.032]],["t/249",[56,4.56]],["t/252",[57,3.487]],["t/254",[58,3.913]],["t/256",[27,2.703]],["t/258",[58,3.913]],["t/261",[59,4.56]],["t/263",[60,4.56]],["t/265",[27,2.703]],["t/267",[27,2.159,61,3.642]],["t/269",[30,3.126,62,3.642]],["t/271",[63,3.642,64,3.642]],["t/272",[65,3.913]],["t/274",[65,3.913]],["t/276",[66,3.913]],["t/278",[66,3.913]],["t/280",[67,4.56]],["t/282",[68,4.56]],["t/284",[0,3.487]],["t/289",[69,3.126,70,3.642]],["t/291",[29,2.602,34,2.602,71,3.032]],["t/293",[27,2.319,72,2.597,73,2.597]],["t/295",[4,1.986,57,1.986,69,2.229,74,2.597]],["t/297",[0,1.737,4,1.737,26,1.452,57,1.737,75,2.271]],["t/333",[26,2.328,76,3.642]],["t/335",[12,2.785,26,2.328]],["t/337",[77,3.642,78,3.642]]],"invertedIndex":[["",{"_index":10,"t":{"197":{"position":[[0,2]]},"199":{"position":[[0,4]]},"203":{"position":[[0,6]]},"207":{"position":[[0,4]]},"228":{"position":[[15,1]]}}}],["api",{"_index":75,"t":{"297":{"position":[[28,3]]}}}],["array",{"_index":39,"t":{"237":{"position":[[18,5]]}}}],["async",{"_index":54,"t":{"247":{"position":[[4,5]]}}}],["authent",{"_index":9,"t":{"193":{"position":[[13,14]]}}}],["automat",{"_index":22,"t":{"226":{"position":[[0,9]]}}}],["await",{"_index":55,"t":{"247":{"position":[[10,5]]}}}],["basic",{"_index":52,"t":{"245":{"position":[[0,5]]}}}],["benchmark",{"_index":6,"t":{"189":{"position":[[0,10]]}}}],["bind",{"_index":33,"t":{"232":{"position":[[17,4]]}}}],["cach",{"_index":24,"t":{"226":{"position":[[20,6]]}}}],["callback",{"_index":76,"t":{"333":{"position":[[6,9]]}}}],["co",{"_index":56,"t":{"249":{"position":[[5,2]]}}}],["column",{"_index":40,"t":{"237":{"position":[[27,7],[56,6]]}}}],["compon",{"_index":16,"t":{"215":{"position":[[7,10]]}}}],["configur",{"_index":31,"t":{"230":{"position":[[0,13]]}}}],["connect",{"_index":27,"t":{"226":{"position":[[42,10]]},"241":{"position":[[0,10]]},"256":{"position":[[0,10]]},"265":{"position":[[0,10]]},"267":{"position":[[5,10]]},"293":{"position":[[0,10],[26,10]]}}}],["creation",{"_index":23,"t":{"226":{"position":[[10,9]]}}}],["custom",{"_index":51,"t":{"241":{"position":[[17,6]]}}}],["data",{"_index":46,"t":{"239":{"position":[[16,4]]}}}],["develop",{"_index":14,"t":{"213":{"position":[[0,11]]}}}],["encrypt",{"_index":73,"t":{"293":{"position":[[16,9]]}}}],["environ",{"_index":13,"t":{"211":{"position":[[0,11]]}}}],["es7",{"_index":53,"t":{"247":{"position":[[0,3]]}}}],["event",{"_index":58,"t":{"254":{"position":[[0,6]]},"258":{"position":[[0,6]]}}}],["exampl",{"_index":0,"t":{"183":{"position":[[0,8]]},"284":{"position":[[0,8]]},"297":{"position":[[0,8]]}}}],["execut",{"_index":30,"t":{"228":{"position":[[17,7]]},"269":{"position":[[10,7]]}}}],["extra",{"_index":15,"t":{"215":{"position":[[0,6]]}}}],["factor",{"_index":8,"t":{"193":{"position":[[6,6]]}}}],["faq",{"_index":19,"t":{"221":{"position":[[0,3]]}}}],["hash",{"_index":42,"t":{"237":{"position":[[46,4]]}}}],["histori",{"_index":17,"t":{"217":{"position":[[0,7]]}}}],["incompat",{"_index":2,"t":{"185":{"position":[[6,17]]}}}],["infil",{"_index":48,"t":{"239":{"position":[[32,7]]}}}],["instal",{"_index":59,"t":{"261":{"position":[[0,12]]}}}],["instead",{"_index":41,"t":{"237":{"position":[[35,7]]}}}],["key",{"_index":43,"t":{"237":{"position":[[71,4]]}}}],["known",{"_index":1,"t":{"185":{"position":[[0,5]]}}}],["link",{"_index":78,"t":{"337":{"position":[[8,5]]}}}],["load",{"_index":47,"t":{"239":{"position":[[26,5]]}}}],["local",{"_index":49,"t":{"239":{"position":[[44,5]]}}}],["manual",{"_index":28,"t":{"228":{"position":[[0,6]]}}}],["multi",{"_index":7,"t":{"193":{"position":[[0,5]]}}}],["mysql",{"_index":4,"t":{"185":{"position":[[34,5]]},"295":{"position":[[7,5]]},"297":{"position":[[15,5]]}}}],["name",{"_index":35,"t":{"235":{"position":[[0,5]]},"237":{"position":[[63,4]]}}}],["node",{"_index":3,"t":{"185":{"position":[[29,4]]}}}],["okpacket",{"_index":68,"t":{"282":{"position":[[0,8]]}}}],["over",{"_index":72,"t":{"293":{"position":[[11,4]]}}}],["paramet",{"_index":34,"t":{"232":{"position":[[22,10]]},"291":{"position":[[23,10]]}}}],["placehold",{"_index":36,"t":{"235":{"position":[[6,12]]}}}],["pool",{"_index":61,"t":{"267":{"position":[[0,4]]}}}],["prepar",{"_index":29,"t":{"228":{"position":[[7,7]]},"291":{"position":[[0,8]]}}}],["procedurecallpacket",{"_index":67,"t":{"280":{"position":[[0,19]]}}}],["promis",{"_index":12,"t":{"205":{"position":[[0,9]]},"245":{"position":[[6,7]]},"335":{"position":[[6,8]]}}}],["proxi",{"_index":74,"t":{"295":{"position":[[13,5]]}}}],["queri",{"_index":62,"t":{"269":{"position":[[0,5]]}}}],["re",{"_index":25,"t":{"226":{"position":[[31,2]]}}}],["receiv",{"_index":37,"t":{"237":{"position":[[0,9]]}}}],["relat",{"_index":77,"t":{"337":{"position":[[0,7]]}}}],["resourc",{"_index":5,"t":{"187":{"position":[[6,9]]}}}],["resultsethead",{"_index":66,"t":{"276":{"position":[[0,15]]},"278":{"position":[[0,17]]}}}],["row",{"_index":38,"t":{"237":{"position":[[10,4]]}}}],["rowdatapacket",{"_index":65,"t":{"272":{"position":[[0,15]]},"274":{"position":[[0,17]]}}}],["run",{"_index":20,"t":{"223":{"position":[[0,7]]}}}],["select",{"_index":70,"t":{"289":{"position":[[7,6]]}}}],["send",{"_index":44,"t":{"239":{"position":[[0,7]]}}}],["serial",{"_index":32,"t":{"232":{"position":[[0,13]]}}}],["server",{"_index":57,"t":{"252":{"position":[[0,6]]},"295":{"position":[[19,6]]},"297":{"position":[[21,6]]}}}],["simpl",{"_index":69,"t":{"289":{"position":[[0,6]]},"295":{"position":[[0,6]]}}}],["specif",{"_index":64,"t":{"271":{"position":[[5,13]]}}}],["sql",{"_index":11,"t":{"201":{"position":[[0,9]]}}}],["stabil",{"_index":18,"t":{"219":{"position":[[0,9]]}}}],["statement",{"_index":71,"t":{"291":{"position":[[9,9]]}}}],["stream",{"_index":50,"t":{"239":{"position":[[50,7]]},"241":{"position":[[24,7]]}}}],["tabular",{"_index":45,"t":{"239":{"position":[[8,7]]}}}],["test",{"_index":21,"t":{"223":{"position":[[8,5]]}}}],["type",{"_index":63,"t":{"271":{"position":[[0,4]]}}}],["us",{"_index":26,"t":{"226":{"position":[[34,4]]},"241":{"position":[[11,5]]},"297":{"position":[[9,5]]},"333":{"position":[[0,5]]},"335":{"position":[[0,5]]}}}],["usag",{"_index":60,"t":{"263":{"position":[[0,5]]}}}]],"pipeline":["stemmer"]}},{"documents":[{"i":176,"t":"内部协议由@sidorares编写 MySQL-Native 常量、SQL参数插值、连接池、ConnectionConfig 类取自node-mysql 基于@TooTallNate的SSL代码升级代码地址 与MariaSQL客户端兼容安全连接/压缩连接 API。 贡献者","s":"鸣谢","u":"/node-mysql2/zh-CN/docs/acknowledgements","h":"","p":175},{"i":178,"t":"如果要为node-mysql2做些贡献.请查阅 Contributing.md 来获得更多详细信息。","s":"贡献","u":"/node-mysql2/zh-CN/docs/contributing","h":"","p":177},{"i":180,"t":"MySQL2大部分的API与 Node MySQL 基本上相同,你应该查看他们的API文档来知道更多的API选项。 One known incompatibility is that DECIMAL values are returned as strings whereas in Node MySQL they are returned as numbers. This includes the result of SUM() and AVG() functions when applied to INTEGER arguments. This is done deliberately to avoid loss of precision - see https://github.com/sidorares/node-mysql2/issues/935. 信息 如果您发现与 Node MySQL 的任何不兼容问题,请通过issue报告。 我们将优先修复报告的不兼容问题。","s":"API配置项","u":"/node-mysql2/zh-CN/docs/api-and-configurations","h":"","p":179},{"i":182,"t":"MySQL2 aims to be a drop in replacement for Node MySQL. 备注 If you see any API incompatibilities with Node MySQL, please report via github issue. Not only MySQL2 offers better performance over Node MySQL, we also support these additional features: Prepared Statements Promise Wrapper Authentication Switch More Features MySQL Server Pooling SSL MySQL Compression Binary Log Protocol Client","s":"Documentation","u":"/node-mysql2/zh-CN/docs/documentation","h":"","p":181},{"i":184,"t":"Please check these examples for MySQL2.","s":"Examples","u":"/node-mysql2/zh-CN/docs/documentation","h":"#examples","p":181},{"i":186,"t":"zeroFill flag is ignored in type conversion. You need to check corresponding field's zeroFill flag and convert to string manually if this is of importance to you. DECIMAL and NEWDECIMAL types always returned as string unless you pass this config option: { decimalNumbers: true, } 备注 This option could lose precision on the number as Javascript Number is a Float!","s":"Known incompatibilities with Node MySQL","u":"/node-mysql2/zh-CN/docs/documentation","h":"#known-incompatibilities-with-node-mysql","p":181},{"i":188,"t":"Wire protocol documentation Node MySQL - Most popular node.js mysql client library node-mariasql - Bindings to libmariasql. One of the fastest clients node-libmysqlclient - Bindings to libmysqlclient go-mysql - MySQL Go client (prepared statements, binlog protocol, server)","s":"Other Resources","u":"/node-mysql2/zh-CN/docs/documentation","h":"#other-resources","p":181},{"i":190,"t":"https://gist.github.com/sidorares/ffe9ee9c423f763e3b6b npm run benchmarks node-mysql-benchmarks try to run example benchmarks on your system","s":"Benchmarks","u":"/node-mysql2/zh-CN/docs/documentation","h":"#benchmarks","p":181},{"i":192,"t":"During the connection phase the server may ask the client to switch to a different auth method. If the authPlugins connection config option is set, it must be an object where each key is the name of a potential authentication plugin requested by the server, and the corresponding value must be a function that optionally receives the connection config options and returns another function, which in turn, optionally receives the switch request data. The plugin is loaded with a ({user,password,...}) signature, and each call has a (pluginData) signature. Each call should make the plugin return any additional authentication data (Buffer) that should be sent back to the server, either synchronously or asynchronously using a Promise, or should yield an error accordingly. Example: (imaginary ssh-key-auth plugin) pseudo code const conn = mysql.createConnection({ user: 'test_user', password: 'test', database: 'test_database', authPlugins: { 'ssh-key-auth': function ({ password }) { return function (pluginData) { return getPrivate(key) .then((key) => { const response = encrypt(key, password, pluginData); // continue handshake by sending response data return response; }) .catch((err) => { // throw error to propagate error to connect/changeUser handlers }); }; }, }, }); There is also a deprecated API where if a authSwitchHandler connection config option is set it must be a function that receives switch request data and responds via a callback. In this case, the first invocation always has a ({pluginName, pluginData}) signature, following calls - ({pluginData}). The client replies with an opaque blob matching the requested plugin via callback(null, data: Buffer). const conn = mysql.createConnection({ user: 'test_user', password: 'test', database: 'test_database', authSwitchHandler: function ({ pluginName, pluginData }, cb) { if (pluginName === 'ssh-key-auth') { getPrivateKey((key) => { const response = encrypt(key, pluginData); // continue handshake by sending response data // respond with error to propagate error to connect/changeUser handlers cb(null, response); }); } else { const err = new Error( `Unknown AuthSwitchRequest plugin name ${pluginName}` ); err.fatal = true; cb(err); } }, }); The initial handshake is always performed using mysql_native_password plugin. This will be possible to override in future versions. Note that if the mysql_native_password method is requested it will be handled internally according to Authentication::Native41 and no authPlugins function or the authSwitchHandler will be invoked. These MAY be called multiple times if the plugin algorithm requires multiple roundtrips of data exchange between client and server.","s":"Authentication Switch Request","u":"/node-mysql2/zh-CN/docs/documentation/authentication-switch","h":"","p":191},{"i":194,"t":"If the user requires multi-factor authentication in the server, the client will receive a AuthNextFactor request, which is similar in structure to the regular authentication switch request and contains the name and possible initial data for the additional authentication factor plugin (up to 3). Additional passwords can be provided using the connection config options - password2 and password3. Again, for each authentication factor, multiple roundtrips of data exchange can be required by the plugin algoritm. const conn = mysql.createConnection({ user: 'test_user', password: 'secret1', password2: 'secret2', password3: 'secret3', database: 'test_database', authPlugins: { // password1 === password 'auth-plugin1': function ({ password1 }) { return function (serverPluginData) { return clientPluginData(password1, serverPluginData); }; }, 'auth-plugin2': function ({ password2 }) { return function (serverPluginData) { return clientPluginData(password2, serverPluginData); }; }, 'auth-plugin3': function ({ password3 }) { return function (serverPluginData) { return clientPluginData(password3, serverPluginData); }; }, }, });","s":"Multi-factor authentication","u":"/node-mysql2/zh-CN/docs/documentation/authentication-switch","h":"#multi-factor-authentication","p":191},{"i":196,"t":"适用于Node.js的MySQL客户端,专注于性能优化。支持SQL预处理、非UTF-8编码支持、二进制文件编码支持、压缩和SSL等等 查看更多。","s":"MySQL2","u":"/node-mysql2/zh-CN/docs","h":"","p":195},{"i":198,"t":"MySQL2 可以跨平台使用,毫无疑问可以安装在 Linux、Mac OS 或 Windows 上。 JavaScript TypeScript npm install --save mysql2 npm install --save mysql2 npm install --save-dev @types/node For TypeScript documentation and examples, see here.","s":"安装","u":"/node-mysql2/zh-CN/docs","h":"#安装","p":195},{"i":200,"t":"Promise Callback // 导入模块 import mysql from 'mysql2/promise'; // 创建一个数据库连接 const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // 简单查询 try { const [results, fields] = await connection.query( 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45' ); console.log(results); // 结果集 console.log(fields); // 额外的元数据(如果有的话) } catch (err) { console.log(err); } // 使用占位符 try { const [results] = await connection.query( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Page', 45] ); console.log(results); } catch (err) { console.log(err); } // 导入模块 const mysql = require('mysql2'); // 创建一个数据库连接 const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // 简单查询 connection.query( 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45', function (err, results, fields) { console.log(results); // 结果集 console.log(fields); // 额外的元数据(如果有的话) } ); // 使用占位符 connection.query( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Page', 45], function (err, results) { console.log(results); } );","s":"查询数据","u":"/node-mysql2/zh-CN/docs","h":"#查询数据","p":195},{"i":202,"t":"使用 MySQL2,您还可以提前准备好SQL预处理语句。 使用准备好的SQL预处理语句,MySQL 不必每次都为相同的查询做准备,这会带来更好的性能。 如果您不知道为什么它们很重要,请查看这些讨论: 如何防止预处理语句SQL注入攻击 MySQL2 提供了 execute 辅助函数,它将准备和查询语句。 您还可以使用 prepare / unprepare 方法手动准备/取消准备。 Promise Callback import mysql from 'mysql2/promise'; try { // 创建一个数据库连接 const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // execute 将在内部调用 prepare 和 query const [results, fields] = await connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Rick C-137', 53] ); console.log(results); // 结果集 console.log(fields); // 额外的元数据(如果有的话) } catch (err) { console.log(err); } const mysql = require('mysql2'); // 创建一个数据库连接 const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // execute 将在内部调用 prepare 和 query connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Rick C-137', 53], function (err, results, fields) { console.log(results); // 结果集 console.log(fields); // 额外的元数据(如果有的话) } ); 提示 如果再次执行相同的语句,他将从缓存中选取,这能有效的节省准备查询时间获得更好的性能。","s":"SQL预处理的使用","u":"/node-mysql2/zh-CN/docs","h":"#sql预处理的使用","p":195},{"i":204,"t":"连接池通过重用以前的连接来帮助减少连接到 MySQL 服务器所花费的时间,当你完成它们时让它们保持打开而不是关闭。 这改善了查询的延迟,因为您避免了建立新连接所带来的所有开销。 Promise Callback import mysql from 'mysql2/promise'; // 创建连接池,设置连接池的参数 const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', waitForConnections: true, connectionLimit: 10, maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit` idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000 queueLimit: 0, enableKeepAlive: true, keepAliveInitialDelay: 0, }); const mysql = require('mysql2'); // 创建连接池,设置连接池的参数 const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', waitForConnections: true, connectionLimit: 10, maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit` idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000 queueLimit: 0, enableKeepAlive: true, keepAliveInitialDelay: 0, }); 备注 该池不会预先创建所有连接,而是根据需要创建它们,直到达到连接限制。 您可以像直接连接一样使用池(使用 pool.query() 和 pool.execute()): Promise Callback try { // For pool initialization, see above const [rows, fields] = await pool.query('SELECT `field` FROM `table`'); // Connection is automatically released when query resolves } catch (err) { console.log(err); } // For pool initialization, see above pool.query('SELECT `field` FROM `table`', function (err, rows, fields) { // Connection is automatically released when query resolves }); 或者,也可以手动从池中获取连接并稍后返回: Promise Callback // For pool initialization, see above const conn = await pool.getConnection(); // Do something with the connection await conn.query(/* ... */); // Don't forget to release the connection when finished! pool.releaseConnection(conn); // For pool initialization, see above pool.getConnection(function (err, conn) { // Do something with the connection conn.query(/* ... */); // Don't forget to release the connection when finished! pool.releaseConnection(conn); }); Additionally, directly release the connection using the connection object: conn.release();","s":"连接池的使用","u":"/node-mysql2/zh-CN/docs","h":"#连接池的使用","p":195},{"i":206,"t":"MySQL2 也支持 Promise API。 这与 ES7 异步等待非常有效。 import mysql from 'mysql2/promise'; async function main() { // create the connection const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // query database const [rows, fields] = await connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Morty', 14] ); } MySQL2 使用范围内可用的默认 Promise 对象。 但是你可以选择你想使用的 Promise 实现。 // 导入模块 import mysql from 'mysql2/promise'; // get the promise implementation, we will use bluebird import bluebird from 'bluebird'; // create the connection, specify bluebird as Promise const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', Promise: bluebird, }); // query database const [rows, fields] = await connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Morty', 14] ); MySQL2 还在 Pools 上公开了一个 .promise()函数,因此您可以从同一个池创建一个 promise/non-promise 连接。 import mysql from 'mysql2'; async function main() { // create the pool const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', }); // now get a Promise wrapped instance of that pool const promisePool = pool.promise(); // query database using promises const [rows, fields] = await promisePool.query('SELECT 1'); } MySQL2 在 Connections 上公开了一个 .promise()函数,以“升级”现有的 non-promise 连接以使用 Promise。 const mysql = require('mysql2'); // create the connection const conn = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); conn .promise() .query('SELECT 1') .then(([rows, fields]) => { console.log(rows); }) .catch(console.log) .then(() => conn.end());","s":"Promise封装","u":"/node-mysql2/zh-CN/docs","h":"#promise封装","p":195},{"i":208,"t":"如果你有两个相同名称的列,你可能希望以数组而不是对象的形式获取结果,为了防止冲突,这是与 Node MySQL 库的区别。 例如: SELECT 1 AS `foo`, 2 AS `foo`. 您可以在连接级别(适用于所有查询)或查询级别(仅适用于该特定查询)启用此设置。 连接级别​ Promise Callback const conn = await mysql.createConnection({ host: 'localhost', database: 'test', user: 'root', rowsAsArray: true, }); const conn = mysql.createConnection({ host: 'localhost', database: 'test', user: 'root', rowsAsArray: true, }); 查询级别​ Promise Callback try { const [results, fields] = await conn.query({ sql: 'SELECT 1 AS `foo`, 2 AS `foo`', rowsAsArray: true, }); console.log(results); // 返回数组而不是数组对象 console.log(fields); // 无变化 } catch (err) { console.log(err); } conn.query( { sql: 'SELECT 1 AS `foo`, 2 AS `foo`', rowsAsArray: true, }, function (err, results, fields) { console.log(results); // in this query, results will be an array of arrays rather than an array of objects console.log(fields); // fields are unchanged } ); Getting Help Need help? Ask your question on Stack Overflow or GitHub. If you've encountered an issue, please file it on GitHub.","s":"结果返回","u":"/node-mysql2/zh-CN/docs","h":"#结果返回","p":195},{"i":210,"t":"This website is built using Docusaurus 3, a modern static website generator.","s":"Website Contributing Guidelines","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"","p":209},{"i":212,"t":"You will need these tools installed on your system: Node.js (18.x or higher)","s":"Environment","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"#environment","p":209},{"i":214,"t":"Fork the MySQL2 repository. Download your forked repository locally. The website's workspace is the \"website\" directory in node-mysql2 root. Create a new branch from master (optional). Run cd website to enter the website workspace. Run npm ci to install the dependecies from package-lock.json. Run npm start to starting the local development. It will start a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. For Docusaurus complete documentation, please see here. CLI example git clone https://github.com/sidorares/node-mysql2.git git checkout -b website # optional cd /path-to/node-mysql2/website npm ci npm start Documentation is auto-generated from MDX files placed in these directories: ./docs/documentation ./docs/examples ./docs/faq Caution Note that the website has its own package.json. Please, do not install dependencies for the website in node-mysql2 root.","s":"Development","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"#development","p":209},{"i":216,"t":"Every extra component is thoroughly documented with complete typings descriptions. Docusaurus Markdown Features: The MDX compiler transforms Markdown files to React components, and allows you to use JSX in your Markdown content. This enables you to easily interleave React components within your content, and create delightful learning experiences.","s":"Extras Components","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"#extras-components","p":209},{"i":218,"t":"The History component displays version changes in a table format, listing version numbers alongside their changes. import { History } from '@site/src/components/History'; 提示 You can also utilize React components in the changes option. Example History Version Changes v1.0.0 Some change message.","s":"History","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"#history","p":209},{"i":220,"t":"See the Stability Badges for more detais. import { Stability } from '@site/src/components/Stability'; 提示 You can also utilize React components in the message option. Available levels: 0, 1, 1.1, 1.2, 2 and 3. Example 2Stable 2Stable Some message.","s":"Stability","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"#stability","p":209},{"i":222,"t":"import { FAQ } from '@site/src/components/FAQ'; > Some markdown (**MDX**) content. 提示 The FAQ component can be utilized in any section or page. Code blocks are compatible and can be used within the FAQ component. Example Title Some markdown (MDX) content.","s":"FAQ","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"#faq","p":209},{"i":224,"t":"npm run test Check Prettier and ESLint rules for compliance npm run lintcheck Included in the GitHub Actions workflow. Check for typings errors 1Experimental Checks for MDX components are missing. npm run typecheck Included in the GitHub Actions workflow. Clear and build the website npm run clear npm run build Included in the GitHub Actions workflow. Fix issues from Prettier and ESLint rules npm run lint To prevent lint issues, it is recommended to execute this command before creating your commit. Not included in the GitHub Actions workflow.","s":"Running Tests","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"#running-tests","p":209},{"i":227,"t":"Similar to connection.query(). connection.execute('select 1 + ? + ? as result', [5, 6], (err, rows) => { // rows: [ { result: 12 } ] // internally 'select 1 + ? + ? as result' is prepared first. On subsequent calls cached statement is re-used }); // close cached statement for 'select 1 + ? + ? as result'. noop if not in cache connection.unprepare('select 1 + ? + ? as result'); Note that connection.execute() will cache the prepared statement for better performance, remove the cache with connection.unprepare() when you're done.","s":"Automatic creation, cached and re-used by connection","u":"/node-mysql2/zh-CN/docs/documentation/prepared-statements","h":"#automatic-creation-cached-and-re-used-by-connection","p":225},{"i":229,"t":"Manually prepared statements doesn't comes with LRU cache and SHOULD be closed using statement.close() instead of connection.unprepare(). connection.prepare('select ? + ? as tests', (err, statement) => { // statement.parameters - array of column definitions, length === number of params, here 2 // statement.columns - array of result column definitions. Can be empty if result schema is dynamic / not known // statement.id // statement.query statement.execute([1, 2], (err, rows, columns) => { // -> [ { tests: 3 } ] }); // don't use connection.unprepare(), it won't work! // note that there is no callback here. There is no statement close ack at protocol level. statement.close(); }); Note that you should not use statement after connection reset (changeUser() or disconnect). Statement scope is connection, you need to prepare statement for each new connection in order to use it.","s":"Manual prepare / execute","u":"/node-mysql2/zh-CN/docs/documentation/prepared-statements","h":"#manual-prepare--execute","p":225},{"i":231,"t":"maxPreparedStatements : We keep the cached statements in a lru-cache. Default size is 16000 but you can use this option to override it. Any statements that are dropped from cache will be closed.","s":"Configuration","u":"/node-mysql2/zh-CN/docs/documentation/prepared-statements","h":"","p":225},{"i":233,"t":"The bind parameter values passed to execute are serialized JS -> MySQL as: null -> NULL number -> DOUBLE boolean -> TINY (0 for false, 1 for true) object -> depending on prototype: Date -> DATETIME JSON like object - JSON Buffer -> VAR_STRING Other -> VAR_STRING Passing in undefined or a function will result in an error.","s":"Serialization of bind parameters","u":"/node-mysql2/zh-CN/docs/documentation/prepared-statements","h":"","p":225},{"i":236,"t":"You can use named placeholders for parameters by setting namedPlaceholders config value or query/execute time option. Named placeholders are converted to unnamed ? on the client (mysql protocol does not support named parameters). If you reference parameter multiple times under the same name it is sent to server multiple times. Unnamed placeholders can still be used by providing the values as an array instead of an object. connection.config.namedPlaceholders = true; connection.execute('select :x + :y as z', { x: 1, y: 2 }, (err, rows) => { // statement prepared as \"select ? + ? as z\" and executed with [1,2] values // rows returned: [ { z: 3 } ] }); connection.execute('select :x + :x as z', { x: 1 }, (err, rows) => { // select ? + ? as z, execute with [1, 1] }); connection.query('select :x + :x as z', { x: 1 }, (err, rows) => { // query select 1 + 1 as z }); // unnamed placeholders are still valid if the values are provided in an array connection.query('select ? + ? as z', [1, 1], (err, rows) => { // query select 1 + 1 as z });","s":"Named placeholders","u":"/node-mysql2/zh-CN/docs/documentation/extras","h":"#named-placeholders","p":234},{"i":238,"t":"const options = { sql: 'select A,B,C,D from foo', rowsAsArray: true }; connection.query(options, (err, results) => { /* results will be an array of arrays like this now: [[ 'field A value', 'field B value', 'field C value', 'field D value', ], ...] */ });","s":"Receiving rows as array of columns instead of hash with column name as key:","u":"/node-mysql2/zh-CN/docs/documentation/extras","h":"#receiving-rows-as-array-of-columns-instead-of-hash-with-column-name-as-key","p":234},{"i":240,"t":"In addition to sending local fs files you can send any stream using infileStreamFactory query option. If set, it has to be a function that return a readable stream. It gets file path from query as a parameter. Note: starting from version 2.0 infileStreamFactory is required parameter for LOAD DATA LOCAL INFILE. Response from server indicates that it wants access to a local file and no infileStreamFactory option is provided the query ends with error. // local file connection.query( 'LOAD DATA LOCAL INFILE \"/tmp/data.csv\" INTO TABLE test FIELDS TERMINATED BY ? (id, title)', onInserted1 ); // local stream const sql = 'LOAD DATA LOCAL INFILE \"mystream\" INTO TABLE test FIELDS TERMINATED BY ? (id, title)'; connection.query( { sql: sql, infileStreamFactory: function (path) { return getStream(); }, }, onInserted2 ); The infileStreamFactory option may also be set at a connection-level: const fs = require('fs'); const mysql = require('mysql2'); const connection = mysql.createConnection({ user: 'test', database: 'test', infileStreamFactory: (path) => { // Validate file path const validPaths = ['/tmp/data.csv']; if (!validPaths.includes(path)) { throw new Error( `invalid file path: ${path}: expected to be one of ${validPaths.join( ',' )}` ); } return fs.createReadStream(path); }, }); connection.query( 'LOAD DATA LOCAL INFILE \"/tmp/data.csv\" INTO TABLE test', onInserted );","s":"Sending tabular data with 'load infile' and local stream:","u":"/node-mysql2/zh-CN/docs/documentation/extras","h":"#sending-tabular-data-with-load-infile-and-local-stream","p":234},{"i":242,"t":"const net = require('net'); const mysql = require('mysql2'); const shape = require('shaper'); const connection = mysql.createConnection({ user: 'test', database: 'test', stream: net.connect('/tmp/mysql.sock').pipe(shape(10)), // emulate 10 bytes/sec link }); connection.query('SELECT 1+1 as test1', console.log); stream also can be a function. In that case function result has to be duplex stream, and it is used for connection transport. This is required if you connect pool using custom transport as new pooled connection needs new stream. Example connecting over socks5 proxy: const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const pool = mysql.createPool({ database: 'test', user: 'foo', password: 'bar', stream: function (cb) { const newStream = new SocksConnection( { host: 'remote.host', port: 3306 }, { host: 'localhost', port: 1080 } ); cb(null, newStream); }, }); In addition to password createConnection(), createPool() and changeUser() accept passwordSha1 option. This is useful when implementing proxies as plaintext password might be not available.","s":"Connecting using custom stream:","u":"/node-mysql2/zh-CN/docs/documentation/extras","h":"#connecting-using-custom-stream","p":234},{"i":244,"t":"In addition to errback interface there is thin wrapper to expose Promise-based api","s":"Promise Wrappers","u":"/node-mysql2/zh-CN/docs/documentation/promise-wrapper","h":"","p":243},{"i":246,"t":"/* eslint-env es6 */ const mysql = require('mysql2/promise'); // or require('mysql2').createConnectionPromise mysql .createConnection({ /* same parameters as for non-promise createConnection */ }) .then((conn) => conn.query('select foo from bar')) .then(([rows, fields]) => console.log(rows[0].foo)); const pool = require('mysql2/promise').createPool({}); // or require('mysql2').createPoolPromise({}) or require('mysql2').createPool({}).promise() pool .getConnection() .then((conn) => { const res = conn.query('select foo from bar'); conn.release(); return res; }) .then((result) => { console.log(result[0][0].foo); }) .catch((err) => { console.log(err); // any of connection time or query time errors from above });","s":"Basic Promise","u":"/node-mysql2/zh-CN/docs/documentation/promise-wrapper","h":"#basic-promise","p":243},{"i":248,"t":"async function example1() { const mysql = require('mysql2/promise'); const conn = await mysql.createConnection({ database: test }); const [rows, fields] = await conn.execute('select ?+? as sum', [2, 2]); await conn.end(); } async function example2() { const mysql = require('mysql2/promise'); const pool = mysql.createPool({ database: test }); // execute in parallel, next console.log in 3 seconds await Promise.all([ pool.query('select sleep(2)'), pool.query('select sleep(3)'), ]); console.log('3 seconds after'); await pool.end(); }","s":"ES7 Async Await","u":"/node-mysql2/zh-CN/docs/documentation/promise-wrapper","h":"#es7-async-await","p":243},{"i":250,"t":"const mysql = require('mysql2'); const co = require('co'); co(function* () { const c = yield mysql.createConnectionPromise({ user: 'root', namedPlaceholders: true, }); const rows = yield c.query('show databases'); console.log(rows); console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 })); yield c.end(); }); Examples in /examples/promise-co-await","s":"With CO","u":"/node-mysql2/zh-CN/docs/documentation/promise-wrapper","h":"#with-co","p":243},{"i":253,"t":"createServer() - creates server instance Server.listen - listen port / unix socket (same arguments as net.Server.listen)","s":"Server","u":"/node-mysql2/zh-CN/docs/documentation/mysql-server","h":"#server","p":251},{"i":255,"t":"connect new incoming connection.","s":"Events","u":"/node-mysql2/zh-CN/docs/documentation/mysql-server","h":"#events","p":251},{"i":257,"t":"serverHandshake({ serverVersion, protocolVersion, connectionId, statusFlags, characterSet, capabilityFlags }) send server handshake initialisation packet, wait handshake response and start listening for commands writeOk({ affectedRows: num, insertId: num }) send OK packet to client writeEof(warnings, statusFlags) send EOF packet writeTextResult(rows, fields) write query result to client. Rows and fields are in the same format as in connection.query callback. writeColumns(fields) write fields + EOF packets. writeTextRow(row) write array (not hash!) of values as result row TODO: binary protocol","s":"Connection","u":"/node-mysql2/zh-CN/docs/documentation/mysql-server","h":"#connection","p":251},{"i":259,"t":"Every command packet received by the server will be emitted as a packet event with the parameters: packet: Packet The packet itself knownCommand: boolean is this command known to the server *commandCode: number the parsed command code (first byte) In addition special events are emitted for commands received from the client. If no listener is present a fallback behavior will be invoked. quit() Default: close the connection init_db(schemaName: string) Default: return OK query(sql: string) Please attach a listener to this. Default: return HA_ERR_INTERNAL_ERROR field_list(table: string, fields: string) Default: return ER_WARN_DEPRECATED_SYNTAX ping() - Default: return OK","s":"Events","u":"/node-mysql2/zh-CN/docs/documentation/mysql-server","h":"#events-1","p":251},{"i":262,"t":"npm install --save mysql2 npm install --save-dev @types/node The @types/node ensure the proper interaction between TypeScript and the Node.js modules used by MySQL2 (net, events, stream, tls, etc.). 信息 Requires TypeScript >=4.5.2.","s":"Installation","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#installation","p":260},{"i":264,"t":"You can import MySQL2 in two ways: By setting the esModuleInterop option to true in tsconfig.json import mysql from 'mysql2'; import mysql from 'mysql2/promise'; By setting the esModuleInterop option to false in tsconfig.json import * as mysql from 'mysql2'; import * as mysql from 'mysql2/promise';","s":"Usage","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#usage","p":260},{"i":266,"t":"import mysql, { ConnectionOptions } from 'mysql2'; const access: ConnectionOptions = { user: 'test', database: 'test', }; const conn = mysql.createConnection(access);","s":"Connection","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#connection","p":260},{"i":268,"t":"import mysql, { PoolOptions } from 'mysql2'; const access: PoolOptions = { user: 'test', database: 'test', }; const conn = mysql.createPool(access);","s":"Pool Connection","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#pool-connection","p":260},{"i":270,"t":"A simple query​ conn.query('SELECT 1 + 1 AS `test`;', (_err, rows) => { /** * @rows: [ { test: 2 } ] */ }); conn.execute('SELECT 1 + 1 AS `test`;', (_err, rows) => { /** * @rows: [ { test: 2 } ] */ }); The rows output will be these possible types: RowDataPacket[] RowDataPacket[][] ResultSetHeader ResultSetHeader[] ProcedureCallPacket In this example, you need to manually check the output types","s":"Query and Execute","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#query-and-execute","p":260},{"i":273,"t":"2Stable An array with the returned rows, for example: import mysql, { RowDataPacket } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', }); // SELECT conn.query('SELECT 1 + 1 AS `test`;', (_err, rows) => { console.log(rows); /** * @rows: [ { test: 2 } ] */ }); // SHOW conn.query('SHOW TABLES FROM `test`;', (_err, rows) => { console.log(rows); /** * @rows: [ { Tables_in_test: 'test' } ] */ }); Using rowsAsArray option as true: import mysql, { RowDataPacket } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', rowsAsArray: true, }); // SELECT conn.query( 'SELECT 1 + 1 AS test, 2 + 2 AS test;', (_err, rows) => { console.log(rows); /** * @rows: [ [ 2, 4 ] ] */ } ); // SHOW conn.query('SHOW TABLES FROM `test`;', (_err, rows) => { console.log(rows); /** * @rows: [ [ 'test' ] ] */ });","s":"RowDataPacket[]","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#rowdatapacket","p":260},{"i":275,"t":"2Stable Using multipleStatements option as true with multiple queries: import mysql, { RowDataPacket } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', multipleStatements: true, }); const sql = ` SELECT 1 + 1 AS test; SELECT 2 + 2 AS test; `; conn.query(sql, (_err, rows) => { console.log(rows); /** * @rows: [ [ { test: 2 } ], [ { test: 4 } ] ] */ });","s":"RowDataPacket[][]","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#rowdatapacket-1","p":260},{"i":277,"t":"2Stable History Version Changes v3.5.1 OkPacket is deprecated and might be removed in the future major release. Please use ResultSetHeader instead. changedRows option is deprecated and might be removed in the future major release. Please use affectedRows instead. For INSERT, UPDATE, DELETE, TRUNCATE, etc.: import mysql, { ResultSetHeader } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', }); const sql = ` SET @1 = 1; `; conn.query(sql, (_err, result) => { console.log(result); /** * @result: ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } */ });","s":"ResultSetHeader","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#resultsetheader","p":260},{"i":279,"t":"2Stable History Version Changes v3.5.1 Introduce ResultSetHeader[] For multiples INSERT, UPDATE, DELETE, TRUNCATE, etc. when using multipleStatements as true: import mysql, { ResultSetHeader } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', multipleStatements: true, }); const sql = ` SET @1 = 1; SET @2 = 2; `; conn.query(sql, (_err, results) => { console.log(results); /** * @results: [ ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 10, warningStatus: 0, changedRows: 0 }, ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } ] */ });","s":"ResultSetHeader[]","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#resultsetheader-1","p":260},{"i":281,"t":"2Stable History Version Changes v3.5.1 Introduce ProcedureCallPacket 提示 By performing a Call Procedure using INSERT, UPDATE, etc., the return will be a ProcedureCallPacket (even if you perform multiples queries and set multipleStatements to true): import mysql, { ProcedureCallPacket, ResultSetHeader } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', }); /** ResultSetHeader */ conn.query('DROP PROCEDURE IF EXISTS myProcedure'); /** ResultSetHeader */ conn.query(` CREATE PROCEDURE myProcedure() BEGIN SET @1 = 1; SET @2 = 2; END `); /** ProcedureCallPacket */ const sql = 'CALL myProcedure()'; conn.query>(sql, (_err, result) => { console.log(result); /** * @result: ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } */ }); For CREATE PROCEDURE and DROP PROCEDURE, these returns will be the default ResultSetHeader. By using SELECT and SHOW queries in a Procedure Call, it groups the results as: /** ProcedureCallPacket */ [RowDataPacket[], ResultSetHeader] For ProcedureCallPacket, please see the following examples.","s":"ProcedureCallPacket","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#procedurecallpacket","p":260},{"i":283,"t":"0Deprecated OkPacket is deprecated and might be removed in the future major release. Please use ResultSetHeader instead.","s":"OkPacket","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#okpacket","p":260},{"i":285,"t":"You can also check some code examples using MySQL2 and TypeScript to understand advanced concepts: Extending and using Interfaces with RowDataPacket Extending and using Interfaces with RowDataPacket and rowAsArray Extending and using Interfaces with RowDataPacket and multipleStatements Extending and using Interfaces with RowDataPacket, rowAsArray and multipleStatements Checking for ResultSetHeader, extending and using Interfaces with RowDataPacket from ProcedureCallPacket Checking for ResultSetHeader, extending and using Interfaces with RowDataPacket and rowAsArray from ProcedureCallPacket Creating a basic custom MySQL2 Class","s":"Examples","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#examples","p":260},{"i":287,"t":"index.js 'use strict'; const mysql = require('mysql2'); const through2 = require('through2'); const binlogStream = mysql.createBinlogStream({ serverId: 123, // slave ID, first field in \"show slave hosts\" sql response // you can also specify slave host, username, password and port masterId: 0, filename: 'mysql-bin.000007', binlogPos: 120, flags: 1, // 1 = \"non-blocking mode\" }); binlogStream.pipe( through2.obj((obj, enc, next) => { console.log(obj); next(); }) );","s":"Binlog Watcher","u":"/node-mysql2/zh-CN/docs/examples/binlog-watcher","h":"","p":286},{"i":290,"t":"Promise Callback import mysql from 'mysql2/promise'; const connection = await mysql.createConnection({ user: 'test', database: 'test', }); const [rows] = await connection.query('SELECT 1+1 AS `test1`'); // ... const mysql = require('mysql2'); const connection = mysql.createConnection({ user: 'test', database: 'test', }); connection.query('SELECT 1+1 AS `test1`', (err, rows) => { // ... });","s":"Simple SELECT","u":"/node-mysql2/zh-CN/docs/examples","h":"#simple-select","p":288},{"i":292,"t":"Promise Callback import mysql from 'mysql2/promise'; const connection = await mysql.createConnection({ user: 'test', database: 'test', }); const [rows] = await connection.execute('SELECT 1+? AS `test1`', [10]); // ... const mysql = require('mysql2'); const connection = mysql.createConnection({ user: 'test', database: 'test', }); connection.execute('SELECT 1+? as test1', [10], (err, rows) => { // ... });","s":"Prepared Statement and Parameters","u":"/node-mysql2/zh-CN/docs/examples","h":"#prepared-statement-and-parameters","p":288},{"i":294,"t":"Promise Callback import fs from 'fs'; import mysql from 'mysql2/promise'; const connection = await mysql.createConnection({ user: 'test', database: 'test', ssl: { key: fs.readFileSync('./certs/client-key.pem'), cert: fs.readFileSync('./certs/client-cert.pem'), }, }); console.log(await connection.query('SELECT 1+1 AS `test1`')); const fs = require('fs'); const mysql = require('mysql2'); const connection = mysql.createConnection({ user: 'test', database: 'test', ssl: { key: fs.readFileSync('./certs/client-key.pem'), cert: fs.readFileSync('./certs/client-cert.pem'), }, }); connection.query('SELECT 1+1 AS `test1`', console.log); You can use 'Amazon RDS' string as value to ssl property to connect to Amazon RDS mysql over ssl (in that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used) Promise Callback import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ user: 'foo', password: 'bar', host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); const [res] = await connection.query(\"SHOW `status` LIKE 'Ssl_cipher'\"); console.log(res); connection.end(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const connection = mysql.createConnection({ user: 'foo', password: 'bar', host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); connection.query(\"SHOW `status` LIKE 'Ssl_cipher'\", (err, res) => { console.log(err, res); connection.end(); });","s":"Connecting over encrypted connection","u":"/node-mysql2/zh-CN/docs/examples","h":"#connecting-over-encrypted-connection","p":288},{"i":296,"t":"const mysql = require('mysql2'); const server = mysql.createServer(); server.listen(3307); server.on('connection', (conn) => { console.log('connection'); conn.serverHandshake({ protocolVersion: 10, serverVersion: 'node.js rocks', connectionId: 1234, statusFlags: 2, characterSet: 8, capabilityFlags: 0xffffff, }); conn.on('field_list', (table, fields) => { console.log('field list:', table, fields); conn.writeEof(); }); const remote = mysql.createConnection({ user: 'root', database: 'dbname', host: 'server.example.com', password: 'secret', }); conn.on('query', (sql) => { console.log(`proxying query: ${sql}`); remote.query(sql, function (err) { // overloaded args, either (err, result :object) // or (err, rows :array, columns :array) if (Array.isArray(arguments[1])) { // response to a 'select', 'show' or similar const rows = arguments[1], columns = arguments[2]; console.log('rows', rows); console.log('columns', columns); conn.writeTextResult(rows, columns); } else { // response to an 'insert', 'update' or 'delete' const result = arguments[1]; console.log('result', result); conn.writeOk(result); } }); }); conn.on('end', remote.end.bind(remote)); });","s":"Simple MySQL proxy server","u":"/node-mysql2/zh-CN/docs/examples","h":"#simple-mysql-proxy-server","p":288},{"i":298,"t":"MySQL-pg-proxy - MySQL to Postgres proxy server. MySQLite.js - MySQL server with JS-only (emscripten compiled) sqlite backend. SQL-engine - MySQL server with LevelDB backend. MySQL-osquery-proxy - Connect to facebook osquery using MySQL client PlyQL - Connect to Druid using MySQL client","s":"Examples using MySQL server API","u":"/node-mysql2/zh-CN/docs/examples","h":"#examples-using-mysql-server-api","p":288},{"i":300,"t":"index.js 'use strict'; const mysql = require('mysql2'); const SocksConnection = require('socksjs'); // const socksProxy = new SocksConnection({ port: 3306 }); // const conn = mysql.createConnection({ // stream: socksProxy, // }); // conn.query(\"select 1+1\", function(err, rows, fields) { // console.log(err, rows, fields); // }); const conn1 = mysql.createPool({ debug: 1, stream: function () { return new SocksConnection({ port: 3306 }); }, }); conn1.execute('select sleep(1.1) as www', (err, rows, fields) => { console.log(err, rows, fields); }); conn1.execute('select sleep(1) as qqq', (err, rows, fields) => { console.log(err, rows, fields); }); conn1.execute('select sleep(1) as qqq', (err, rows, fields) => { console.log(err, rows, fields); });","s":"Connect Over Socks","u":"/node-mysql2/zh-CN/docs/examples/connect-over-socks","h":"","p":299},{"i":302,"t":"index.js 'use strict'; const mysql = require('mysql2'); const ClientFlags = require('mysql2/lib/constants/client.js'); const server = mysql.createServer(); server.listen(3307); server.on('connection', (conn) => { console.log('connection'); conn.serverHandshake({ protocolVersion: 10, serverVersion: 'node.js rocks', connectionId: 1234, statusFlags: 2, characterSet: 8, capabilityFlags: 0xffffff ^ ClientFlags.COMPRESS, }); conn.on('field_list', (table, fields) => { console.log('field list:', table, fields); conn.writeEof(); }); const remote = mysql.createConnection({ user: 'root', database: 'dbname', host: 'server.example.com', password: 'secret', }); conn.on('query', (sql) => { console.log(`proxying query: ${sql}`); remote.query(sql, function (err) { // overloaded args, either (err, result :object) // or (err, rows :array, columns :array) if (Array.isArray(arguments[1])) { // response to a 'select', 'show' or similar const rows = arguments[1], columns = arguments[2]; console.log('rows', rows); console.log('columns', columns); conn.writeTextResult(rows, columns); } else { // response to an 'insert', 'update' or 'delete' const result = arguments[1]; console.log('result', result); conn.writeOk(result); } }); }); conn.on('end', remote.end.bind(remote)); });","s":"MySQL Proxy","u":"/node-mysql2/zh-CN/docs/examples/mysqlproxy","h":"","p":301},{"i":304,"t":"index.js 'use strict'; const mysql = require('mysql2').createConnection({ host: 'localhost', user: 'root', database: 'test', passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'), }); mysql.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [1, null, 3], (err, rows, fields) => { console.log(err, rows, fields); } );","s":"Pass SHA","u":"/node-mysql2/zh-CN/docs/examples/pass-sha","h":"","p":303},{"i":306,"t":"index.js 'use strict'; // get the client const mysql = require('mysql2'); // create the connection to database const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // execute will internally call prepare and query connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Rick C-137', 53], (err, results, fields) => { console.log(results); // results contains rows returned by server console.log(fields); // fields contains extra meta data about results, if available // If you execute same statement again, it will be picked form a LRU cache // which will save query preparation time and give better performance } );","s":"Prepared Statements","u":"/node-mysql2/zh-CN/docs/examples/prepare","h":"","p":305},{"i":308,"t":"index.js 'use strict'; const pool = require('mysql2').createPool({ host: 'localhost', user: 'root', database: 'test', password: 'root', }); setInterval(() => { for (let i = 0; i < 5; ++i) { pool.query((err, rows, fields) => { console.log(rows, fields); // Connection is automatically released once query resolves }); } }, 1000); setInterval(() => { for (let i = 0; i < 5; ++i) { pool.getConnection((err, db) => { db.query('select sleep(0.5) as qqq', (err, rows, fields) => { console.log(rows, fields); db.release(); }); }); } }, 1000);","s":"Pool Test","u":"/node-mysql2/zh-CN/docs/examples/pool-test","h":"","p":307},{"i":310,"t":"index.js 'use strict'; // get the client const mysql = require('mysql2'); // create the connection to database const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); connection.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [1, null, 3], (err, rows, fields) => { console.log(err, rows, fields); connection.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [3, null, 3], (err, rows, fields) => { console.log(err, rows, fields); connection.unprepare('select ?+1 as qqq, ? as rrr, ? as yyy'); connection.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [3, null, 3], (err, rows, fields) => { console.log(err, rows, fields); } ); } ); } );","s":"Execute","u":"/node-mysql2/zh-CN/docs/examples/execute","h":"","p":309},{"i":312,"t":"index.js 'use strict'; // get the client const mysql = require('mysql2'); // create the connection to database const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // simple query connection.query( 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45', (err, results, fields) => { console.log(results); // results contains rows returned by server console.log(fields); // fields contains extra meta data about results, if available } ); // with placeholder connection.query( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Page', 45], (err, results) => { console.log(results); } );","s":"SELECT","u":"/node-mysql2/zh-CN/docs/examples/queries/select","h":"","p":311},{"i":314,"t":"index.js 'use strict'; const mysql = require('mysql2'); const flags = require('mysql2/lib/constants/client.js'); const auth = require('mysql2/lib/auth_41.js'); function authenticate(params, cb) { console.log(params); const doubleSha = auth.doubleSha1('pass123'); const isValid = auth.verifyToken( params.authPluginData1, params.authPluginData2, params.authToken, doubleSha ); if (isValid) { cb(null); } else { // for list of codes lib/constants/errors.js cb(null, { message: 'wrong password dude', code: 1045 }); } } const server = mysql.createServer(); server.listen(3333); server.on('connection', (conn) => { // we can deny connection here: // conn.writeError({ message: 'secret', code: 123 }); // conn.close(); conn.serverHandshake({ protocolVersion: 10, serverVersion: '5.6.10', // 'node.js rocks', connectionId: 1234, statusFlags: 2, characterSet: 8, // capabilityFlags: 0xffffff, // capabilityFlags: -2113931265, capabilityFlags: 2181036031, authCallback: authenticate, }); conn.on('field_list', (table, fields) => { console.log('FIELD LIST:', table, fields); conn.writeEof(); }); conn.on('query', (query) => { conn.writeColumns([ { catalog: 'def', schema: 'test', table: 'test_table', orgTable: 'test_table', name: 'beta', orgName: 'beta', characterSet: 33, columnLength: 384, columnType: 253, flags: 0, decimals: 0, }, ]); conn.writeTextRow(['test тест テスト փորձարկում পরীক্ষা kiểm tra ']); conn.writeTextRow(['ტესტი પરીક્ષણ מבחן פּרובירן اختبار परीक्षण']); conn.writeEof(); conn.close(); }); });","s":"Server","u":"/node-mysql2/zh-CN/docs/examples/server","h":"","p":313},{"i":316,"t":"index.js 'use strict'; const fs = require('fs'); const mysql = require('mysql2'); const conn = mysql.createConnection({ user: 'root', password: '', database: 'test', host: '127.0.0.1', port: '3306', ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); conn.query('select 1+1 as test', function (err, res) { console.log(res); conn.query('select repeat(\"a\", 100) as test', function (err, res) { console.log(res); }); }); See examples/ssl/certs.","s":"Select Over SSL","u":"/node-mysql2/zh-CN/docs/examples/ssl/select-over-ssl","h":"","p":315},{"i":318,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ProcedureCallPacket, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { id: number; name: string; } const isResultSetHeader = (data: unknown): data is ResultSetHeader => { if (!data || typeof data !== 'object') return false; const keys = [ 'fieldCount', 'affectedRows', 'insertId', 'info', 'serverStatus', 'warningStatus', 'changedRows', ]; return keys.every((key) => key in data); }; (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Deleting the `getUsers` procedure, if it exists */ await conn.query('DROP PROCEDURE IF EXISTS getUsers'); /** Creating a procedure to get the users */ await conn.query(` CREATE PROCEDURE getUsers() BEGIN SELECT * FROM users ORDER BY name ASC; END `); /** Getting users */ const [procedureResult] = await conn.query>('CALL getUsers()'); procedureResult.forEach((users) => { /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */ if (isResultSetHeader(users)) { console.log('----------------'); console.log('Affected Rows:', users.affectedRows); } else { users.forEach((user) => { console.log('----------------'); console.log('id: ', user.id); console.log('name:', user.name); }); } }); await conn.end(); })(); /** Output * * Inserted: 4 * ---------------- * id: 4 * name: Gween * ---------------- * id: 2 * name: John * ---------------- * id: 1 * name: Josh * ---------------- * id: 3 * name: Marie * ---------------- * Affected Rows: 0 */","s":"Procedure Call Packet","u":"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/procedure-call-packet","h":"","p":317},{"i":320,"t":"await.js co.js .babelrc package.json 'use strict'; const mysql = require('mysql2/promise'); async function test() { const c = await mysql.createConnection({ port: 3306, user: 'testuser', namedPlaceholders: true, password: 'testpassword', }); console.log('connected!'); const [rows, fields] = await c.query('show databases'); console.log(rows); try { const [rows, fields] = await c.query('some invalid sql here'); } catch (e) { console.log('caught exception!', e); } console.log(await c.execute('select sleep(0.5)')); console.log('after first sleep'); console.log(await c.execute('select sleep(0.5)')); console.log('after second sleep'); let start = +new Date(); console.log( await Promise.all([ c.execute('select sleep(2.5)'), c.execute('select sleep(2.5)'), ]) ); console.log( 'after 2+3 parallel sleep which is in fact not parallel because commands are queued per connection' ); let end = +new Date(); console.log(end - start); await c.end(); const p = mysql.createPool({ port: 3306, user: 'testuser', namedPlaceholders: true, password: 'testpassword', }); console.log(await p.execute('select sleep(0.5)')); console.log('after first pool sleep'); start = +new Date(); console.log( await Promise.all([ p.execute('select sleep(2.5)'), p.execute('select sleep(2.5)'), ]) ); console.log('after 2+3 parallel pool sleep'); end = +new Date(); console.log(end - start); await p.end(); } test() .then(() => { console.log('done'); }) .catch((err) => { console.log('error!', err); throw err; }); 'use strict'; const mysql = require('mysql2/promise'); const co = require('co'); co(function* () { const c = yield mysql.createConnection({ port: 3306, user: 'root', namedPlaceholders: true, }); const rows = yield c.query('show databases'); console.log(rows); console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 })); yield c.end(); }) .then(function () { console.log('done'); }) .catch(function (err) { console.log(err); throw err; }); { \"plugins\": [\"transform-async-to-generator\"] } { \"name\": \"promise-co-await\", \"version\": \"1.0.0\", \"description\": \"\", \"main\": \"await.js\", \"scripts\": { \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\" }, \"author\": \"\", \"license\": \"ISC\", \"dependencies\": { \"babel-cli\": \"^6.9.0\" } }","s":"Promise CO Await","u":"/node-mysql2/zh-CN/docs/examples/promise-co-await","h":"","p":319},{"i":322,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ProcedureCallPacket, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { /** id */ 0: number; /** name */ 1: string; } const isResultSetHeader = (data: unknown): data is ResultSetHeader => { if (!data || typeof data !== 'object') return false; const keys = [ 'fieldCount', 'affectedRows', 'insertId', 'info', 'serverStatus', 'warningStatus', 'changedRows', ]; return keys.every((key) => key in data); }; (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', rowsAsArray: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Deleting the `getUsers` procedure, if it exists */ await conn.query('DROP PROCEDURE IF EXISTS getUsers'); /** Creating a procedure to get the users */ await conn.query(` CREATE PROCEDURE getUsers() BEGIN SELECT * FROM users ORDER BY name ASC; END `); /** Getting users */ const [procedureResult] = await conn.query>('CALL getUsers()'); procedureResult.forEach((users) => { /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */ if (isResultSetHeader(users)) { console.log('----------------'); console.log('Affected Rows:', users.affectedRows); } else { users.forEach((user) => { console.log('----------------'); console.log('id: ', user[0]); console.log('name:', user[1]); }); } }); await conn.end(); })(); /** Output * * Inserted: 4 * ---------------- * id: 4 * name: Gween * ---------------- * id: 2 * name: John * ---------------- * id: 1 * name: Josh * ---------------- * id: 3 * name: Marie * ---------------- * Affected Rows: 0 */","s":"Procedure Call Packet (Row as Array)","u":"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-array","h":"","p":321},{"i":324,"t":"index.js 'use strict'; const mysql = require('mysql2'); const conn = mysql.createConnection({ user: process.env.USER, password: process.env.PASSWORD, database: process.env.DB, host: process.env.HOST, port: 3306, ssl: 'Amazon RDS', }); conn.query(\"show status like 'Ssl_cipher'\", function (err, res) { console.log(err, res); conn.end(); });","s":"RDS SSL","u":"/node-mysql2/zh-CN/docs/examples/ssl/rds-ssl","h":"","p":323},{"i":326,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { id: number; name: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', multipleStatements: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [rows] = await conn.query( [ 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2;', 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2 OFFSET 2;', ].join(' ') ); rows.forEach((users) => { users.forEach((user) => { console.log('-----------'); console.log('id: ', user.id); console.log('name:', user.name); }); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet (Multi Statements)","u":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/multi-statements","h":"","p":325},{"i":328,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { /** id */ 0: number; /** name */ 1: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', multipleStatements: true, rowsAsArray: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [rows] = await conn.query( [ 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2;', 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2 OFFSET 2;', ].join(' ') ); rows.forEach((users) => { users.forEach((user) => { console.log('-----------'); console.log('id: ', user[0]); console.log('name:', user[1]); }); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet (Multi Statements and Row as Array)","u":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array-multi-statements","h":"","p":327},{"i":330,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { id: number; name: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [users] = await conn.query( 'SELECT * FROM `users` ORDER BY `name` ASC;' ); users.forEach((user) => { console.log('-----------'); console.log('id: ', user.id); console.log('name:', user.name); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet","u":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-data-packet","h":"","p":329},{"i":332,"t":"This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as createConnection, createPool, createPoolCluster, execute and query.","s":"How to handle errors?","u":"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors","h":"","p":331},{"i":334,"t":"createConnection 2Stable This solution has been tested and confirmed as the correct answer. Handling connection errors by adding an error event listener: const mysql = require('mysql2'); connection = mysql.createConnection({ host: '', user: '', database: '', }); connection.addListener('error', (err) => { if (err instanceof Error) { console.log(`createConnection error:`, err); } }); createPool 2Stable This solution has been tested. Handling connection errors through callback's err parameter: const mysql = require('mysql2'); const pool = mysql.createPool({ host: '', user: '', database: '', }); pool.getConnection((err, connection) => { if (err instanceof Error) { console.log('pool.getConnection error:', err); return; } }); createPoolCluster 2Stable This solution has been tested. Handling connection errors through callback's err parameter: const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('NodeI', { host: '', user: '', database: '', }); poolCluster.getConnection('NodeI', (err, connection) => { if (err instanceof Error) { console.log('poolCluster.getConnection error:', err); return; } }); execute 2Stable This solution has been tested. Handling execute errors through callback's err parameter: connection.execute('SELEC 1 + 1', (err, rows) => { if (err instanceof Error) { console.log('execute error:', err); return; } console.log(rows); }); It will work for both createConnection, createPool and createPoolCluster connections. query 2Stable This solution has been tested. Handling query errors through callback's err parameter: connection.query('SELEC 1 + 1', (err, rows) => { if (err instanceof Error) { console.log('query error:', err); return; } console.log(rows); }); It will work for both createConnection, createPool and createPoolCluster connections.","s":"Using callbacks","u":"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors","h":"#using-callbacks","p":331},{"i":336,"t":"createConnection 2Stable This solution has been tested and confirmed as the correct answer. Handling connection errors through try-catch block: import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ host: '', user: '', database: '', }); } catch (err) { if (err instanceof Error) { console.log(err); } } createPool 2Stable This solution has been tested. Handling connection errors through try-catch block: import mysql from 'mysql2/promise'; const pool = mysql.createPool({ host: '', user: '', database: '', }); try { const connection = await pool.getConnection(); } catch (err) { if (err instanceof Error) { console.log(err); } } createPoolCluster 2Stable This solution has been tested. Handling connection errors through try-catch block: import mysql from 'mysql2/promise'; const poolCluster = mysql.createPoolCluster(); poolCluster.add('NodeI', { host: '', user: '', database: '', }); try { await poolCluster.getConnection('NodeI'); } catch (err) { if (err instanceof Error) { console.log('createConnection error:', err); } } execute 2Stable This solution has been tested. Handling execute errors through try-catch block: try { const [rows] = await connection.execute('SELEC 1 + 1'); console.log(rows); } catch (err) { if (err instanceof Error) { console.log('execute error:', err); } } It will work for both createConnection, createPool and createPoolCluster connections. query 2Stable This solution has been tested. Handling query errors through try-catch block: try { const [rows] = await connection.query('SELEC 1 + 1'); console.log(rows); } catch (err) { if (err instanceof Error) { console.log('query error:', err); } } It will work for both createConnection, createPool and createPoolCluster connections.","s":"Using promises","u":"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors","h":"#using-promises","p":331},{"i":338,"t":"Discussions #1998 #2282","s":"Related Links","u":"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors","h":"#related-links","p":331},{"i":340,"t":"MySQL2 项目是 MySQL-Native 的延续。 协议解析器代码从头开始重写,api 更改为匹配流行的 mysqljs/mysql。 MySQL2 团队正在与 mysqljs/mysql 团队合作,将共享代码分解并移至 mysqljs 组织下。 MySQL2 大部分 API 与 mysqljs 兼容,并支持大部分功能。 MySQL2 还提供了更多的附加功能: 更快、更好的性能 支持预处理 MySQL二进制日志协议 MySQL Server 对编码和排序规则有很好的支持 Promise封装 支持压缩 SSL 和 Authentication Switch 自定义流 连接池","s":"MySQL2的历史以及选择原因","u":"/node-mysql2/zh-CN/docs/history-and-why-mysq2","h":"","p":339},{"i":342,"t":"This section provides answers to commonly asked questions about MySQL2. 提示 To explore the FAQs, please use the sidebar navigation on desktop or access the menu on mobile devices.","s":"Frequently Asked Questions","u":"/node-mysql2/zh-CN/docs/faq","h":"","p":341},{"i":344,"t":"index.ts db.ts /** * The types are explicity for learning purpose */ import { PoolOptions } from 'mysql2/promise'; import { MySQL } from './db.js'; interface User extends RowDataPacket { id: number; name: string; } const access: PoolOptions = { host: '', user: '', password: '', database: '', }; (async () => { const mysql = new MySQL(access); /** Deleting the `users` table, if it exists */ await mysql.queryResult('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await mysql.queryResult( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await mysql.executeResult( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [users] = await mysql.queryRows( 'SELECT * FROM `users` ORDER BY `name` ASC;' ); users.forEach((user: User) => { console.log('-----------'); console.log('id: ', user.id); console.log('name:', user.name); }); await mysql.connection.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */ /** * The types are explicity for learning purpose */ import { createPool, PoolOptions, Pool, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; export class MySQL { private conn: Pool; private credentials: PoolOptions; constructor(credentials: PoolOptions) { this.credentials = credentials; this.conn = createPool(this.credentials); } /** A random method to simulate a step before to get the class methods */ private ensureConnection() { if (!this?.conn) this.conn = createPool(this.credentials); } /** For `SELECT` and `SHOW` */ get queryRows() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */ get queryRowsAsArray() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For `INSERT`, `UPDATE`, etc. */ get queryResult() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */ get queryResults() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For `SELECT` and `SHOW` */ get executeRows() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */ get executeRowsAsArray() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** For `INSERT`, `UPDATE`, etc. */ get executeResult() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */ get executeResults() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** Expose the Pool Connection */ get connection() { return this.conn; } }","s":"Basic Custom Class","u":"/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-class","h":"","p":343},{"i":346,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { /** id */ 0: number; /** name */ 1: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', rowsAsArray: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [users] = await conn.query( 'SELECT * FROM `users` ORDER BY `name` ASC;' ); users.forEach((user) => { console.log('-----------'); console.log('id: ', user[0]); console.log('name:', user[1]); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet (Row as Array)","u":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array","h":"","p":345},{"i":348,"t":"The Stability Badges are indications of a section's stability. The stability indices are as follows: 0Deprecated The feature might generate warnings and does not assure backward compatibility. Experimental: These features are not bound by semantic versioning. They may undergo non-backward compatible changes or be removed in future releases. Their use in production is discouraged. Use caution with Experimental features, especially in libraries. Users might not expect changes from these unstable features. To reduce surprises, consider using a command-line flag for Experimental features. Experimental features are classified into stages: 1Experimental Experimental features at this stage are currently in development and prone to considerable changes. 1.1Early Development Experimental features at this stage are approaching minimum viability. 1.2Release Candidate Experimental features are close to reaching stability. Major changes are not expected, but they could still occur based on user feedback. Testing and feedback are important to ascertain the readiness of these features for stable classification. 2Stable Compatibility with the MySQL ecosystem is a high priority. 3Legacy This feature, while not likely to be removed and still subject to semantic versioning, is not under active maintenance and other options are available. Features are classified as legacy instead of deprecated when they cause no harm and have widespread use in the MySQL ecosystem. It's unlikely that bugs in legacy features will be addressed.","s":"Stability Badges","u":"/node-mysql2/zh-CN/docs/stability-badges","h":"","p":347}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/176",[0,6.325,1,0.882,2,5.525,3,6.325,4,3.607,5,6.325,6,5.525,7,4.028,8,0.338]],["t/178",[4,3.776,8,0.354,9,2.332,10,6.62]],["t/180",[1,0.86,4,4.112,8,0.385,11,5.237,12,5.237,13,4.138,14,4.138,15,4.574,16,4.138,17,2.207,18,2.579,19,2.595,20,5.237,21,2.387,22,4.574,23,2.05,24,4.574,25,5.237,26,1.91,27,5.237,28,5.237,29,4.574,30,4.574,31,5.237,32,5.237,33,5.237,34,4.574,35,2.987,36,4.574,37,5.237,38,3.812]],["t/182",[1,0.919,4,4.032,7,3.197,8,0.268,9,2.26,15,4.385,35,2.864,38,3.654,39,5.021,40,3.967,41,5.021,42,2.725,43,5.021,44,4.385,45,3.967,46,5.021,47,3.967,48,3.019,49,3.967,50,4.385,51,3.019,52,5.069,53,3.019,54,3.019,55,2.199,56,4.385,57,3.405,58,3.654,59,4.385,60,1.965,61,2.488,62,3.405,63,5.021,64,4.385,65,5.021,66,3.405,67,2.488]],["t/184",[9,2.332,42,3.593,68,4.489,69,2.9]],["t/186",[8,0.386,16,4.163,18,2.063,19,3.277,21,3.014,34,4.602,68,3.573,70,6.614,71,4.814,72,5.269,73,3.277,74,5.269,75,3.355,76,4.602,77,5.269,78,4.602,79,4.163,80,1.426,81,5.269,82,3.835,83,5.269,84,4.602,85,3.835,86,2.686,87,5.269,88,1.921,89,5.269,90,4.602,91,5.269]],["t/188",[1,0.917,4,4.194,6,4.78,13,4.324,53,3.291,54,3.291,60,2.142,66,4.593,67,3.644,92,5.472,93,3.983,94,5.472,95,3.485,96,4.78,97,5.915,98,5.472,99,5.472,100,6.772,101,6.772,102,5.472]],["t/190",[1,0.744,4,3.555,69,2.73,103,6.233,104,4.227,105,5.788,106,7.78,107,3.555,108,5.444]],["t/192",[7,1.357,8,0.439,17,0.899,18,2.129,26,2.23,44,3.003,48,1.282,51,1.282,55,0.934,57,2.332,58,3.145,60,1.941,67,2.141,69,0.934,76,1.862,82,2.503,85,3.145,86,2.208,88,0.777,109,2.132,110,1.478,111,2.132,112,1.684,113,2.132,114,3.917,115,2.717,116,3.774,117,2.068,118,1.157,119,3.414,120,2.568,121,1.346,122,2.132,123,5.028,124,4.75,125,3.414,126,2.132,127,2.132,128,3.678,129,1.862,130,2.132,131,4.321,132,3.608,133,6.116,134,2.132,135,3.003,136,1.862,137,2.132,138,2.132,139,2.132,140,0.571,141,1.684,142,3.156,143,2.132,144,2.132,145,4.321,146,2.132,147,1.446,148,0.842,149,0.993,150,0.931,151,0.631,152,3.003,153,1.808,154,0.793,155,0.631,156,3.003,157,2.132,158,2.132,159,3.702,160,3.438,161,3.438,162,3.774,163,2.717,164,1.684,165,1.684,166,3.438,167,3.438,168,3.438,169,1.552,170,4.321,171,3.438,172,1.104,173,1.684,174,1.446,175,2.132,176,4.957,177,1.684,178,2.132,179,2.132,180,2.132,181,2.132,182,2.132,183,1.684,184,2.132,185,1.684,186,0.636,187,1.157,188,1.684,189,2.132,190,2.132,191,2.132,192,1.684,193,3.438,194,1.684,195,1.862,196,1.552,197,1.216,198,1.446,199,1.552,200,1.684,201,2.132,202,2.132,203,1.862,204,2.068,205,1.552,206,2.132,207,1.446,208,1.862,209,1.862,210,1.862]],["t/194",[8,0.447,18,2.774,26,2.584,51,3.035,57,4.365,58,2.566,60,1.38,67,1.747,85,2.566,86,1.431,110,1.051,114,4.658,116,3.079,119,2.785,121,1.38,123,3.988,124,4.409,125,2.785,128,3.035,140,0.585,148,0.546,149,1.018,150,0.954,151,0.927,152,3.079,153,2.15,155,0.647,156,3.079,192,2.785,194,2.785,204,2.12,207,3.423,208,3.079,209,3.079,211,3.525,212,5.896,213,3.525,214,2.566,215,3.525,216,3.525,217,2.785,218,3.079,219,1.486,220,2.566,221,5.896,222,5.896,223,3.079,224,3.525,225,3.525,226,3.525,227,3.525,228,5.047,229,3.525,230,7.087,231,3.525,232,3.525,233,3.525,234,3.525,235,3.525]],["t/196",[8,0.357,236,6.672,237,6.672]],["t/198",[8,0.398,9,2.621,35,3.203,69,2.46,90,4.906,93,4.088,104,5.046,238,5.616,239,5.616,240,4.906,241,5.437,242,5.415,243,5.878,244,4.906,245,4.906,246,3.809]],["t/200",[1,0.555,8,0.461,23,2.389,26,1.695,55,1.379,80,0.852,107,2.651,110,1.386,121,2.389,148,1.008,150,1.258,151,0.854,154,1.072,155,0.854,172,1.63,186,1.82,247,1.278,248,2.015,249,1.342,250,2.303,251,1.887,252,1.53,253,4.139,254,1.943,255,2.225,256,4.822,257,4.139,258,5.33,259,3.48,260,3.152,261,2.795,262,2.207,263,1.072]],["t/202",[1,0.587,8,0.461,9,1.197,23,1.925,26,1.239,53,3.473,55,1.489,80,0.92,107,1.938,110,1.466,121,1.925,148,0.98,150,1.331,151,0.903,154,1.134,155,0.903,172,1.761,186,1.466,247,1.38,248,1.793,249,1.419,250,2.436,251,1.996,252,1.619,254,1.566,255,1.793,257,3.334,259,2.804,260,3.334,261,2.044,262,1.614,263,1.157,264,3.399,265,3.399,266,1.549,267,2.435,268,3.399,269,1.419,270,3.334,271,4.294,272,3.334,273,4.294,274,4.294]],["t/204",[1,0.577,8,0.45,17,2.301,26,0.923,35,3.113,55,2.118,61,3.103,80,0.685,88,1.99,107,1.443,110,2.191,118,1.374,140,0.42,148,0.915,149,1.137,151,0.723,154,0.908,155,0.723,172,2.505,186,1.442,192,4.312,247,1.028,248,1.764,249,1.137,250,1.952,251,1.599,252,1.797,255,1.436,261,1.522,262,1.202,263,0.862,269,1.137,275,2.247,276,3.939,277,5.458,278,2.962,279,3.939,280,3.939,281,5.458,282,3.972,283,2.508,284,3.939,285,5.458,286,3.939,287,3.939,288,3.939,289,2.487,290,3.939,291,3.939,292,2.531,293,2.531,294,4.767,295,1.066,296,3.441,297,3.441,298,4.01,299,3.441,300,2.21,301,3.939,302,3.112,303,3.441,304,3.939,305,3.939,306,3.939,307,2.531,308,2.531,309,2.531,310,2.21]],["t/206",[1,0.66,7,1.651,8,0.455,9,2.107,26,1.463,55,3.316,61,2.739,80,1.496,110,1.886,121,1.571,140,0.666,148,1.083,149,1.159,150,1.329,151,1.015,154,1.275,155,1.211,247,1.63,248,2.181,249,1.596,250,2.739,251,2.245,252,1.82,254,1.278,255,1.463,257,2.722,263,0.883,269,1.418,270,2.722,275,1.478,295,1.329,311,2.592,312,2.079,313,3.505,314,2.164,315,4.013,316,4.013,317,2.264,318,5.98,319,2.048,320,2.592,321,2.264,322,2.592,323,2.264,324,2.592,325,2.592,326,2.592,327,1.122,328,1.887,329,2.592,330,2.264,331,1.478,332,2.592,333,1.407]],["t/208",[1,0.419,4,2.002,8,0.449,23,2.303,26,1.28,38,2.555,42,1.906,45,3.976,55,2.204,75,2.236,88,2.343,107,2.002,112,2.774,118,1.906,148,0.911,149,1.453,150,1.362,151,0.924,154,1.161,155,0.924,172,2.607,186,1.501,248,1.835,249,1.453,250,2.493,251,2.043,252,1.937,254,1.873,259,2.87,260,3.413,261,2.111,262,1.667,266,2.293,269,1.014,302,3.976,327,1.644,334,4.8,335,2.003,336,4.091,337,3.355,338,3.511,339,1.906,340,5.032,341,3.066,342,3.511,343,3.511,344,3.511,345,3.511,346,2.555]],["t/210",[140,1.057,219,2.686,347,5.863,348,6.372,349,5.035,350,6.372,351,6.372,352,4.638]],["t/212",[75,4.119,95,4.119,108,5.651,242,4.709,353,6.469,354,6.469,355,6.469]],["t/214",[4,3.031,8,0.203,9,2.162,35,2.163,36,3.312,42,2.885,60,2.081,69,1.661,86,2.158,93,3.868,104,4.51,105,4.848,187,2.058,198,2.572,218,3.312,240,3.312,242,3.868,246,2.572,251,2.158,314,1.484,346,2.76,347,5.735,349,2.996,352,2.76,356,5.315,357,5.315,358,3.792,359,5.36,360,3.792,361,5.315,362,5.315,363,3.792,364,3.792,365,5.315,366,3.792,367,5.315,368,3.792,369,3.792,370,3.792,371,4.84,372,4.642,373,3.792,374,3.792,375,2.415,376,3.792,377,3.792,378,3.792,379,3.792,380,3.792,381,3.312,382,3.312,383,5.315,384,3.792,385,3.792,386,3.792,387,3.312,388,3.312,389,3.792,390,3.792,391,3.792,392,2.76,393,3.792,394,3.792,395,3.792,396,3.792,397,3.312,398,3.312,399,2.996]],["t/216",[52,4.269,73,2.677,93,3.932,140,0.896,314,2.115,346,3.932,349,4.269,381,4.719,392,3.932,400,4.269,401,4.959,402,5.403,403,4.719,404,6.387,405,4.719,406,4.719,407,5.309,408,5.403,409,5.403,410,5.868,411,5.403,412,5.403,413,5.403,414,4.719,415,5.403,416,3.081,417,5.403]],["t/218",[8,0.43,21,2.343,69,2.252,80,1.392,86,2.088,197,4.286,255,1.875,375,5.123,401,4.417,407,4.063,418,5.47,419,5.142,420,4.491,421,3.743,422,5.142,423,5.142,424,5.142,425,4.491,426,5.146,427,4.063,428,5.142]],["t/220",[8,0.418,35,3.024,59,4.631,69,2.322,80,1.435,86,2.153,219,2.235,289,2.416,327,1.482,335,1.805,401,3.596,407,4.189,426,5.728,427,4.189,429,6.638,430,4.631,431,5.302,432,5.302,433,6.64,434,5.302,435,3.596,436,4.189,437,5.302,438,5.302,439,3.604]],["t/222",[8,0.412,69,2.413,80,1.491,140,0.914,147,3.735,256,4.352,392,4.949,401,4.611,404,5.939,410,5.939,414,4.811,427,4.352,440,6.911,441,5.507,442,5.507,443,4.352,444,4.352,445,4.811,446,4.811]],["t/224",[22,6.248,38,4.358,45,5.651,68,4.555,73,2.237,104,5.187,105,6.044,142,2.451,154,1.041,267,1.903,314,1.768,347,3.568,392,3.287,401,3.062,447,5.987,448,5.229,449,5.987,450,4.515,451,4.515,452,7.153,453,7.153,454,3.944,455,4.515,456,4.515,457,5.987,458,5.987,459,4.515,460,5.987,461,4.515,462,4.515,463,3.062,464,3.944,465,4.515]],["t/227",[8,0.456,23,2.868,30,3.764,47,3.405,48,2.592,53,3.49,54,3.946,132,3.137,140,0.715,174,2.923,186,1.285,198,2.923,200,3.405,214,3.137,253,2.923,254,1.848,270,2.923,295,1.571,327,1.962,466,3.405,467,3.764,468,4.31,469,4.31,470,4.31,471,5.333,472,2.923,473,2.923,474,4.31,475,3.764,476,3.137,477,3.764,478,4.31]],["t/229",[8,0.449,14,3.009,21,1.736,23,2.087,53,3.206,54,4.371,66,2.583,75,2.425,79,3.009,110,1.834,119,3.009,140,1.106,154,1.23,172,1.973,186,1.59,187,2.067,198,3.616,219,1.606,246,3.616,295,1.031,303,3.327,335,1.815,337,3.041,436,3.009,471,2.772,473,3.616,477,4.657,479,3.809,480,3.809,481,3.009,482,5.331,483,2.583,484,3.809,485,3.809,486,4.86,487,5.331,488,3.809,489,3.809,490,3.809,491,3.809,492,3.327,493,3.809,494,3.809,495,3.809,496,3.809,497,3.809,498,3.009,499,3.809,500,3.809,501,3.327,502,3.809,503,3.809,504,2.172]],["t/231",[8,0.321,40,4.751,54,4.312,86,2.441,140,0.998,195,5.252,282,4.376,471,5.578,473,4.078,481,4.751,505,6.013,506,6.013,507,6.013,508,6.013]],["t/233",[1,0.61,8,0.435,17,2.154,21,2.329,23,2.001,26,1.864,84,5.667,88,1.864,97,4.464,118,3.522,135,4.464,142,2.774,267,2.154,289,2.329,327,1.429,399,4.038,509,3.255,510,5.111,511,4.464,512,5.127,513,5.111,514,4.464,515,5.111,516,3.72,517,5.111,518,4.464,519,5.111,520,6.488,521,6.488,522,5.111]],["t/236",[1,0.368,8,0.455,17,2.545,18,1.205,50,2.69,53,1.852,54,1.852,60,1.205,66,2.088,67,1.526,78,2.69,85,2.241,86,1.25,88,1.123,117,1.852,118,1.671,121,2.364,136,2.69,140,0.759,186,1.801,204,2.75,205,3.971,219,1.298,220,3.329,254,1.923,267,1.928,269,1.32,283,1.961,295,1.746,327,2.12,335,1.048,337,2.608,466,3.613,483,2.088,509,3.474,523,5.274,524,2.433,525,3.079,526,5.455,527,3.079,528,2.69,529,3.995,530,3.079,531,7.189,532,4.573,533,7.344,534,3.079,535,3.329,536,2.69]],["t/238",[8,0.447,17,3.196,23,2.589,86,2.139,88,1.921,148,0.816,186,1.571,252,2.496,254,1.678,266,2.401,272,3.573,321,4.602,334,3.573,336,3.355,337,3.772,387,4.602,537,5.269,538,5.269,539,5.269]],["t/240",[1,0.361,8,0.442,13,2.39,18,2.113,26,1.646,51,1.819,60,1.184,86,2.192,110,1.346,117,2.714,128,3.599,129,5.227,140,0.502,142,2.449,148,0.991,150,0.819,151,0.555,154,1.477,155,0.555,159,1.926,163,3.566,165,2.39,187,1.642,197,1.725,198,2.051,207,2.051,220,2.202,252,1.486,253,3.661,255,1.968,263,1.03,266,2.46,269,1.558,339,1.642,346,4.887,359,6.246,371,2.202,388,5.865,436,2.39,446,3.942,509,2.874,536,2.642,540,3.566,541,3.929,542,6.715,543,3.025,544,3.025,545,5.985,546,2.642,547,1.499,548,2.051,549,5.398,550,4.513,551,2.449,552,3.025,553,3.025,554,3.025,555,3.025,556,2.39,557,3.025,558,3.025,559,2.642,560,2.642,561,3.025,562,3.025,563,3.025]],["t/242",[1,0.602,8,0.438,23,1.38,26,2.15,49,2.785,51,2.12,61,2.921,69,1.544,75,2.245,86,1.431,110,2.031,140,0.978,148,1.155,150,0.954,151,0.927,153,2.15,154,1.36,155,0.927,173,2.785,183,2.785,185,2.785,187,3.2,207,2.391,249,1.457,250,1.747,263,1.718,275,2.011,278,1.913,317,3.079,334,2.391,435,2.391,501,3.079,535,2.566,541,4.958,564,3.079,565,3.525,566,3.525,567,3.525,568,3.525,569,3.525,570,3.525,571,3.525,572,2.391,573,2.566,574,1.747,575,3.525,576,5.047,577,3.079,578,3.525,579,4.409,580,4.409,581,3.079,582,2.785,583,5.047,584,3.525,585,3.035,586,2.391,587,3.525,588,2.391,589,2.391,590,3.525,591,3.079,592,3.525]],["t/244",[7,4.058,51,3.832,55,2.791,56,5.566,593,6.372,594,3.459,595,6.372,596,5.566,597,5.566]],["t/246",[1,0.702,8,0.454,18,1.722,55,1.927,61,2.915,110,1.312,142,2.388,148,1.026,164,3.476,205,4.282,252,1.448,262,2.089,269,1.27,283,2.801,294,3.842,310,3.842,328,3.202,330,3.842,334,3.99,448,3.842,472,3.99,509,2.801,582,4.649,588,3.99,598,4.399,599,4.399,600,3.476,601,4.399,602,5.884,603,4.649,604,4.399,605,4.399,606,4.399,607,4.399,608,4.399,609,4.399,610,4.399]],["t/248",[1,0.717,8,0.444,24,3.965,26,2.191,61,2.249,148,1.154,149,1.31,150,1.229,154,1.386,155,1.103,219,1.913,248,2.719,252,1.494,267,1.913,275,2.589,295,1.229,296,5.248,312,3.112,333,2.464,335,2.046,574,2.249,600,4.747,611,4.539,612,3.965,613,4.539,614,3.965,615,3.965,616,5.248,617,3.965,618,4.539,619,4.539,620,4.539,621,4.539]],["t/250",[1,0.606,8,0.442,69,2.226,88,1.853,141,5.617,148,1.158,151,0.933,155,0.933,248,1.853,251,2.063,263,1.73,272,3.445,278,2.758,295,1.375,331,2.898,524,4.014,622,5.646,623,4.438,624,4.438,625,5.081,626,4.438,627,4.438,628,4.438,629,4.438,630,3.235,631,4.438,632,4.438,633,5.081]],["t/253",[8,0.331,29,5.404,60,2.422,283,3.94,314,2.422,323,5.404,585,3.721,634,6.187,635,6.187,636,4.504,637,6.187,638,6.187,639,6.187]],["t/255",[110,2.262,187,3.593,640,6.62]],["t/257",[8,0.361,17,1.924,23,2.36,60,1.787,64,3.986,66,3.095,67,2.987,159,2.906,162,5.266,163,5.335,172,2.364,252,2.223,253,3.095,269,1.317,283,2.906,295,1.632,337,2.603,371,3.322,420,3.986,463,3.095,636,3.322,641,4.564,642,3.322,643,3.322,644,3.322,645,4.389,646,3.322,647,3.322,648,4.564,649,6.274,650,4.564,651,4.564,652,2.906,653,6.029,654,2.906,655,3.986,656,4.564,657,6.029,658,4.564,659,6.752,660,4.564,661,4.564,662,4.564,663,4.564]],["t/259",[14,3.568,18,2.8,19,3.544,21,2.058,42,2.451,51,2.715,60,2.344,67,2.237,110,1.347,125,4.73,147,3.062,174,3.062,203,3.944,252,1.487,282,5.417,463,4.851,473,3.062,509,2.875,514,3.944,636,4.358,649,6.501,655,5.229,664,5.987,665,4.73,666,4.515,667,4.515,668,4.515,669,4.515,670,4.515,671,4.515,672,4.515,673,4.515,674,4.515,675,4.515,676,4.515,677,4.515,678,4.515,679,4.515,680,4.515,681,4.515,682,4.515]],["t/262",[8,0.298,9,2.414,95,3.553,104,4.648,140,0.926,207,3.784,210,4.874,241,5.415,242,4.989,243,5.415,244,4.874,245,5.986,541,4.061,564,4.874,665,4.409,683,5.58,684,5.58,685,5.58,686,5.58,687,5.58,688,3.784,689,5.58]],["t/264",[1,0.923,8,0.366,9,2.613,80,2.15,86,2.783,88,2.035,117,4.121,247,2.783,516,4.061,690,5.58,691,5.58,692,6.854,693,6.854]],["t/266",[1,0.703,8,0.438,9,2.074,80,1.594,148,1.096,149,1.7,151,1.081,154,1.633,155,1.081,547,2.917,694,4.258,695,3.541]],["t/268",[1,0.703,8,0.438,9,2.074,80,1.594,148,1.096,149,1.7,151,1.081,154,1.633,155,1.081,547,2.917,696,6.185,697,5.888]],["t/270",[8,0.456,68,3.18,69,2.054,73,3.041,75,2.986,79,3.705,154,1.674,194,3.705,269,1.354,295,2.039,327,2.029,335,2.09,603,3.705,612,4.096,698,4.096,699,3.909,700,3.501,701,2.914,702,2.797,703,3.18]],["t/273",[1,0.574,8,0.461,9,1.693,18,1.289,69,1.443,80,1.301,86,1.337,88,1.752,140,0.547,148,0.744,149,1.387,150,1.301,151,0.882,154,1.795,155,0.882,254,1.807,255,1.752,295,2.023,327,1.743,331,3.557,335,2.123,336,3.06,337,1.878,439,1.788,699,3.971,701,2.282,704,3.294,705,2.741,706,4.805,707,3.294,708,3.294,709,1.788]],["t/275",[1,0.539,8,0.457,9,1.591,80,1.222,86,1.833,88,2.183,140,0.749,148,0.927,149,1.304,150,1.222,151,0.829,154,1.764,155,0.829,204,2.715,254,1.907,266,2.058,269,1.304,295,1.62,327,1.673,331,2.575,335,2.287,439,2.451,699,2.875,701,2.144,709,2.451,710,3.6,711,4.515]],["t/277",[1,0.49,8,0.444,9,1.445,23,2.197,42,3.046,80,1.11,86,1.666,117,2.467,140,0.931,148,0.869,149,1.184,150,1.11,151,0.753,154,1.294,155,0.753,169,4.085,196,4.085,197,2.34,259,2.34,266,1.87,289,3.283,298,3.806,327,1.569,335,1.397,375,2.612,418,2.986,439,2.227,476,4.085,483,3.806,652,3.574,654,2.612,688,2.782,699,2.612,702,2.916,712,3.241,713,3.583,714,4.434,715,3.806,716,1.948,717,2.612,718,2.033,719,3.583,720,4.102,721,2.782,722,2.782,723,2.782,724,2.782]],["t/279",[1,0.467,8,0.45,9,1.379,23,2.127,80,1.059,88,1.981,117,3.267,140,0.649,148,0.841,149,1.13,150,1.059,151,0.719,154,1.253,155,0.719,197,2.232,204,2.354,259,2.232,266,1.784,278,2.124,289,3.592,327,1.519,335,2.125,375,2.492,418,2.849,439,2.124,652,3.46,654,3.46,688,2.654,699,2.492,702,3.073,710,3.267,712,3.092,715,3.685,716,1.858,717,2.492,718,1.939,719,3.419,721,3.685,722,3.685,723,3.685,724,3.685,725,3.419,726,3.914]],["t/281",[1,0.406,8,0.447,9,1.197,18,1.925,23,2.261,35,1.938,40,2.685,42,1.845,48,2.956,69,1.489,80,0.92,88,1.239,117,3.473,132,4.204,140,0.816,148,0.761,149,0.981,150,0.92,151,0.624,154,1.134,155,0.624,177,2.685,197,1.938,204,2.044,254,1.082,259,1.938,266,1.549,269,1.419,282,2.474,289,3.06,302,2.685,314,1.925,327,1.374,335,1.967,375,2.164,418,2.474,439,1.845,548,2.305,652,2.164,654,2.164,688,2.305,699,2.164,701,1.614,702,3.19,703,3.917,705,1.938,710,2.044,712,2.685,715,2.305,716,1.614,717,2.164,721,2.305,722,2.305,723,2.305,724,2.305,725,2.969,727,5.531,728,3.399,729,3.399,730,3.399,731,1.938,732,5.776,733,2.685,734,3.399,735,3.399,736,4.916]],["t/283",[42,3.408,140,1.042,169,4.57,196,4.57,298,4.258,476,4.57,483,4.258,702,2.861,713,5.484,714,4.961,737,5.484]],["t/285",[9,2.226,68,4.742,69,2.149,140,1.321,147,3.326,241,3.876,314,1.92,577,4.284,594,4.247,701,3.715,702,2.88,703,4.286,710,3.8,738,4.905,739,4.905,740,4.905,741,4.463,742,6.107,743,4.905,744,4.284]],["t/287",[1,0.725,8,0.441,71,3.358,140,0.765,148,1.051,153,1.682,159,2.938,174,3.128,249,1.753,252,1.519,263,1.571,266,2.102,289,2.102,319,3.645,327,1.697,328,3.358,444,3.645,551,2.504,585,2.774,615,5.304,705,2.631,745,2.286,746,2.19,747,4.613,748,4.613,749,4.613,750,4.613,751,4.613,752,4.029,753,6.788,754,4.613,755,4.613,756,4.613,757,4.613,758,4.613,759,4.613,760,4.613,761,4.613,762,4.613,763,4.613,764,4.613]],["t/290",[1,0.76,8,0.448,55,2.174,80,1.343,110,1.899,148,1.148,150,1.723,151,1.169,154,1.711,155,1.169,172,2.57,186,1.48,247,2.015,248,2.322,263,1.69,295,1.723,535,4.634,572,4.318,573,4.634]],["t/292",[1,0.754,8,0.447,55,2.149,80,1.328,110,1.885,148,1.143,150,1.711,151,1.161,154,1.703,155,1.161,172,2.541,186,1.463,247,1.992,248,2.305,263,1.67,278,3.43,295,1.711,327,1.767,466,4.994,573,4.6]],["t/294",[1,0.769,8,0.439,17,1.293,19,1.52,49,2.424,55,1.998,62,4.74,80,1.473,107,1.75,110,1.921,120,2.363,140,0.757,148,1.112,150,1.631,151,1.107,153,1.663,154,1.39,155,0.838,172,2.363,173,2.424,186,1.36,247,1.852,248,1.985,249,1.317,261,1.845,262,2.166,263,1.553,334,3.093,472,3.692,535,3.32,540,4.301,556,2.424,572,3.093,573,3.32,574,1.52,582,3.604,765,5.264,766,3.984,767,4.755,768,4.755,769,2.68,770,5.264,771,5.264,772,3.068,773,3.068,774,3.068,775,3.984,776,4.561,777,4.561,778,4.561,779,4.561,780,3.984,781,3.984,782,2.68,783,4.561]],["t/296",[1,0.422,8,0.45,23,2.313,26,1.291,60,1.386,95,2.254,118,1.921,148,1.056,149,1.022,150,0.958,151,0.65,153,1.291,155,0.65,159,3.224,186,1.762,214,2.577,249,1.022,251,1.437,252,1.667,254,1.127,255,1.846,263,1.205,266,2.307,269,1.022,278,1.921,295,1.599,335,1.205,337,2.887,421,2.577,486,5.095,642,2.577,643,2.577,644,2.577,645,2.577,646,2.577,647,2.577,705,2.019,716,1.681,717,2.254,718,1.754,784,2.797,785,3.092,786,2.797,787,2.797,788,2.797,789,2.797,790,2.797,791,2.797,792,2.797,793,2.797,794,2.797,795,2.797,796,3.092,797,3.092,798,3.092,799,2.797,800,2.797,801,3.092,802,3.092,803,3.092,804,3.092,805,3.092,806,4.422,807,3.092,808,3.092,809,3.092,810,3.092,811,3.092,812,3.092,813,3.092,814,3.092]],["t/298",[1,0.967,60,2.838,67,3.29,110,1.98,140,1.102,266,2.416,405,4.631,511,4.631,579,6.333,815,5.302,816,5.302,817,5.302,818,5.302,819,5.302,820,6.64,821,5.302,822,5.302,823,6.64,824,5.302,825,5.302,826,5.302]],["t/300",[1,0.459,8,0.455,18,1.505,26,1.401,140,0.638,148,1.089,149,1.109,150,1.04,186,1.843,187,2.912,252,2.512,262,3.176,263,1.309,275,2.192,295,2.066,327,1.074,541,3.905,572,2.606,580,5.399,581,3.357,585,3.226,586,3.638,630,3.416,745,1.904,746,1.825,827,5.365,828,3.843,829,3.843,830,3.843,831,3.843,832,6.181,833,3.843,834,3.843,835,5.365]],["t/302",[1,0.407,8,0.45,23,2.266,26,1.244,60,1.336,95,2.173,118,1.852,140,0.566,148,1.085,149,0.985,150,0.924,151,0.627,153,1.244,155,0.627,159,3.14,186,1.726,214,2.484,249,0.985,251,1.386,252,1.623,254,1.087,255,1.798,263,1.162,266,2.247,269,0.985,278,1.852,295,1.567,335,1.162,337,2.812,421,2.484,486,5.01,642,2.484,643,2.484,644,2.484,645,2.484,646,2.484,647,2.484,705,1.946,716,1.62,717,2.173,718,1.691,745,1.691,746,1.62,784,2.696,785,2.981,786,2.696,787,2.696,788,2.696,789,2.696,790,2.696,791,2.696,792,2.696,793,2.696,794,2.696,795,2.696,796,2.981,797,2.981,798,2.981,799,2.696,800,2.696,801,2.981,802,2.981,803,2.981,804,2.981,805,2.981,806,4.307,807,2.981,808,2.981,809,2.981,810,2.981,811,2.981,812,2.981,813,2.981,814,2.981,836,3.412,837,2.981,838,3.412]],["t/304",[1,0.625,8,0.437,140,0.869,148,0.811,151,0.962,154,1.208,155,0.962,186,1.562,219,2.207,249,1.512,250,2.595,251,2.126,252,2.169,254,1.668,262,2.486,295,1.783,327,1.842,512,4.138,591,4.574,630,3.335,745,2.595,746,2.486,839,5.237,840,5.237,841,5.237,842,5.237,843,4.574,844,4.574]],["t/306",[1,0.487,8,0.447,18,1.598,23,2.498,47,3.226,48,2.455,53,3.364,54,2.455,60,1.598,67,2.023,110,1.668,121,1.598,128,2.455,132,2.972,140,0.677,148,0.866,150,1.105,151,0.75,154,0.942,155,1.027,186,1.218,200,3.226,205,2.972,217,4.42,223,3.566,243,3.226,249,1.179,250,2.023,251,1.658,252,1.842,254,1.3,255,1.489,257,2.769,259,2.328,260,2.769,263,1.39,267,2.358,269,1.615,270,2.769,271,3.566,272,2.769,273,3.566,274,3.566,283,2.6,295,1.105,314,1.598,400,3.226,435,2.769,471,2.972,481,3.226,745,2.023,746,1.938,845,3.566,846,4.083,847,4.083,848,4.083]],["t/308",[8,0.457,61,2.168,110,1.305,140,0.726,148,0.677,151,0.804,153,1.596,154,1.009,155,0.804,186,1.305,249,1.263,250,2.168,251,2.381,252,2.325,269,1.263,289,2.672,295,1.587,297,3.822,298,2.968,299,3.822,331,3.344,467,5.121,630,2.787,745,2.168,746,2.078,849,4.376,850,5.863,851,4.376,852,4.376,853,5.863,854,3.822,855,4.376,856,4.376,857,3.822,858,4.376]],["t/310",[1,0.465,8,0.452,67,1.93,110,1.615,140,0.646,148,0.838,150,1.055,151,0.715,154,0.899,155,0.995,186,1.857,219,2.981,249,1.125,250,1.93,251,1.582,252,2.41,254,1.983,262,2.956,263,1.326,270,4.222,295,1.981,314,1.525,327,1.977,475,3.403,512,4.919,630,4.285,745,1.93,746,1.85,843,5.878,844,5.878]],["t/312",[1,0.494,8,0.454,18,1.622,23,2.704,60,1.622,67,2.052,110,1.685,121,2.212,128,2.491,140,0.687,148,0.875,150,1.121,151,0.761,154,0.955,155,1.037,186,1.685,217,4.464,249,1.196,250,2.052,251,1.682,252,1.86,253,3.831,254,1.799,255,2.06,256,4.464,257,3.831,258,4.935,259,3.222,260,2.809,263,1.41,269,1.196,295,1.121,314,1.622,400,3.273,435,2.809,523,3.618,698,3.618,745,2.052,746,1.967,845,3.618]],["t/314",[1,0.358,8,0.455,16,2.373,26,1.095,57,2.037,60,1.176,71,3.267,95,1.913,110,0.896,114,2.373,121,1.176,140,0.498,147,3.645,148,1.037,149,0.867,153,1.095,154,0.693,183,2.373,185,3.547,246,2.037,252,1.478,255,1.96,263,1.023,269,0.867,278,1.63,289,2.046,335,1.023,421,3.267,426,3.547,492,2.623,642,2.186,643,2.186,644,2.186,645,2.186,646,3.267,647,3.912,745,1.488,746,1.426,752,2.623,784,2.373,786,2.373,788,2.373,789,2.373,790,2.373,791,2.373,792,2.373,793,2.373,794,2.373,795,3.547,799,2.373,800,2.373,837,2.623,859,3.003,860,3.003,861,3.003,862,4.489,863,3.003,864,4.489,865,3.003,866,3.003,867,3.003,868,3.003,869,3.003,870,3.003,871,3.003,872,3.003,873,3.003,874,3.003,875,3.003,876,4.489,877,3.003,878,3.003,879,3.003,880,3.003,881,3.003,882,3.003,883,3.003,884,4.489,885,3.003,886,4.489,887,3.003,888,3.003,889,3.003,890,3.003,891,3.003,892,3.003,893,3.003,894,3.003,895,3.003,896,3.003]],["t/316",[1,0.548,8,0.443,26,2.206,35,2.617,62,3.112,120,2.377,140,0.761,148,1.048,149,1.325,150,1.242,151,0.843,153,1.673,154,1.561,155,0.843,186,1.804,249,1.325,251,1.863,263,1.562,472,4.103,540,3.625,556,3.625,572,3.112,585,2.759,586,3.112,603,4.781,745,2.273,746,2.179,765,5.285,766,4.008,767,4.008,768,5.285,775,4.008,782,5.285,897,4.588,898,4.588,899,4.588,900,4.588,901,4.588]],["t/318",[1,0.262,8,0.458,17,0.926,18,1.379,19,1.089,21,1.002,48,1.322,73,1.089,80,0.595,82,1.6,118,1.193,120,2.285,121,2.424,128,3.321,140,0.365,148,0.912,149,0.634,151,1.251,153,0.801,155,0.404,188,1.737,219,0.926,247,0.892,248,2.347,249,0.634,254,1.122,255,1.84,267,0.926,269,0.634,289,1.002,295,0.954,312,1.138,314,1.975,327,0.614,333,1.193,335,0.748,339,1.193,416,1.253,504,1.253,516,1.6,547,1.089,548,1.49,551,3.361,574,1.746,594,1.913,652,1.4,654,1.4,694,2.119,695,1.322,700,1.253,701,2.094,702,2.01,703,1.49,705,1.253,709,1.913,715,1.49,716,2.396,718,1.746,721,1.49,722,1.49,723,1.49,724,1.49,727,3.987,731,2.878,733,1.737,741,2.01,902,1.322,903,1.322,904,1.322,905,1.92,906,1.92,907,1.92,908,2.244,909,1.322,910,2.244,911,1.322,912,1.322,913,1.322,914,1.322,915,1.4,916,1.322,917,2.119,918,2.119,919,2.119,920,2.119,921,1.322,922,1.322,923,4.407,924,1.322,925,3.078,926,1.92,927,1.92,928,1.92,929,1.92,930,1.92,931,1.92,932,1.92,933,1.322,934,1.322,935,1.6,936,1.322,937,1.6,938,1.92]],["t/320",[1,0.429,8,0.45,26,0.82,55,0.986,61,1.779,88,1.634,107,1.283,110,0.671,121,0.881,123,1.778,140,0.596,141,3.54,142,1.221,148,1.036,150,0.972,151,0.823,153,1.309,154,1.179,155,0.659,164,1.778,165,2.837,174,2.435,186,1.525,187,2.776,197,1.283,246,1.526,248,2.367,251,0.914,252,1.182,261,1.353,262,1.068,266,1.025,272,2.435,275,1.283,278,1.221,295,1.213,312,1.86,313,1.965,319,1.778,327,0.629,331,2.048,352,1.638,371,3.722,382,1.965,398,1.965,399,1.778,403,1.965,406,1.965,425,1.965,463,1.526,518,4.467,524,3.54,548,2.435,559,1.965,574,2.22,585,2.694,586,3.038,600,2.837,614,3.913,616,1.965,617,3.136,622,3.136,623,1.965,624,1.965,626,3.136,627,1.965,628,4.881,629,1.965,630,1.433,631,1.965,632,3.136,746,1.705,769,3.913,787,1.778,857,3.913,939,3.59,940,2.25,941,2.25,942,3.59,943,3.59,944,2.25,945,3.59,946,2.25,947,2.25,948,5.114,949,5.588,950,5.114,951,3.59,952,2.25,953,2.25,954,2.25,955,3.59,956,2.25,957,4.48,958,2.25,959,3.59,960,2.25,961,2.25,962,2.25,963,2.25,964,2.25,965,2.25,966,2.25,967,2.25,968,2.25,969,2.25,970,2.25]],["t/322",[1,0.257,8,0.459,17,0.908,18,1.357,19,1.067,21,0.981,48,1.295,73,1.067,80,0.583,82,1.567,88,0.785,118,1.169,120,2.254,121,2.404,128,3.287,140,0.357,148,0.904,149,0.622,151,1.243,153,0.785,155,0.395,188,1.701,219,0.908,247,0.874,248,2.329,249,0.622,254,1.104,255,1.818,267,0.908,269,0.622,289,1.58,295,0.938,312,1.115,314,1.952,327,0.969,333,1.169,335,0.733,336,1.371,339,1.169,416,1.228,504,1.228,516,1.567,547,1.067,548,1.46,551,3.333,574,1.717,594,1.881,652,1.371,654,1.371,694,2.084,695,1.295,700,1.228,701,2.066,702,1.983,703,1.46,705,1.228,709,1.881,715,1.46,716,2.368,718,1.717,721,1.46,722,1.46,723,1.46,724,1.46,727,3.94,731,2.844,733,1.701,741,1.977,902,1.295,903,1.295,904,1.295,905,1.881,906,1.881,907,1.881,908,2.207,909,1.295,910,2.207,911,1.295,912,1.295,913,1.295,914,1.295,915,1.371,916,1.295,917,2.084,918,2.084,919,2.084,920,2.084,921,1.295,922,1.295,923,4.356,924,1.295,925,3.028,926,1.881,927,1.881,928,1.881,929,1.881,930,1.881,931,1.881,932,1.881,933,1.295,934,1.295,936,1.295,938,1.881,971,1.701,972,1.701]],["t/324",[1,0.633,8,0.418,26,1.933,62,3.596,140,0.88,148,1.028,149,1.531,150,1.435,151,0.974,153,1.933,155,0.974,186,1.581,249,1.531,262,2.517,263,1.805,333,2.878,472,4.503,585,3.188,586,3.596,745,2.627,746,2.517,770,4.631,771,4.631,780,4.631,781,4.631,973,5.302,974,5.302,975,5.302,976,5.302,977,5.302]],["t/326",[1,0.318,8,0.458,17,1.123,19,1.321,21,1.215,73,1.321,80,0.721,88,0.972,120,1.381,121,2.692,140,0.442,148,0.868,149,0.769,151,1.322,153,0.972,155,0.489,219,1.123,247,1.082,248,2.332,249,0.769,254,1.306,255,2.046,267,1.123,269,0.769,295,0.721,312,1.381,314,1.605,327,0.745,333,1.447,335,1.91,339,1.447,416,1.52,504,2.338,547,1.321,551,3.616,574,1.321,594,2.225,694,2.466,695,1.603,700,1.52,701,2.373,702,1.215,709,2.225,710,1.603,716,2.664,718,1.321,731,2.338,741,2.338,902,1.603,903,1.603,904,1.603,908,1.697,909,1.603,910,1.697,911,1.603,912,1.603,913,1.603,914,1.603,915,1.697,916,1.603,917,2.466,918,2.466,919,2.466,920,2.466,921,1.603,922,1.603,924,2.466,933,1.603,934,1.603,935,1.94,936,1.603,937,1.94,978,1.94,979,3.581,980,2.328,981,2.328,982,2.328]],["t/328",[1,0.31,8,0.459,17,1.096,19,1.288,21,1.185,73,1.288,80,0.704,88,1.467,120,1.347,121,2.671,140,0.431,148,0.857,149,0.751,151,1.314,153,0.948,155,0.477,219,1.096,247,1.056,248,2.309,249,0.751,254,1.281,255,2.019,267,1.096,269,0.751,289,1.185,295,0.704,312,1.347,314,1.575,327,1.124,333,1.411,335,1.885,336,1.656,339,1.411,416,1.483,504,2.294,547,1.288,551,3.584,574,1.288,594,2.183,694,2.419,695,1.564,700,1.483,701,2.336,702,1.185,709,2.183,710,1.564,716,2.629,718,1.288,731,2.294,741,2.294,902,1.564,903,1.564,904,1.564,908,1.656,909,1.564,910,1.656,911,1.564,912,1.564,913,1.564,914,1.564,915,1.656,916,1.564,917,2.419,918,2.419,919,2.419,920,2.419,921,1.564,922,1.564,924,2.419,933,1.564,934,1.564,936,1.564,971,2.054,972,2.054,978,1.893,979,3.514,980,2.271,981,2.271,982,2.271]],["t/330",[1,0.34,8,0.458,17,1.202,19,1.413,21,1.3,73,1.413,80,0.772,120,1.478,121,2.671,140,0.473,148,0.9,149,0.824,151,1.346,153,1.04,155,0.524,219,1.202,247,1.158,248,2.395,249,0.824,254,0.908,255,2.119,267,1.202,269,0.824,312,1.478,314,1.69,327,0.797,333,1.548,335,0.971,339,1.548,416,1.627,504,1.627,547,1.413,551,3.703,574,1.413,594,2.344,694,2.597,695,1.715,700,1.627,701,2.474,702,1.3,709,2.344,716,2.759,718,1.413,731,2.463,741,2.463,902,1.715,903,1.715,904,1.715,908,1.816,909,1.715,910,1.816,911,1.715,912,1.715,913,1.715,914,1.715,915,1.816,916,1.715,917,2.597,918,2.597,919,2.597,920,2.597,921,1.715,922,1.715,924,1.715,933,1.715,934,1.715,935,2.076,936,1.715,937,2.076,978,2.076]],["t/332",[9,2.103,115,4.717,142,3.876,199,4.346,267,2.517,269,1.724,443,4.717,588,4.049,589,4.049,983,5.97,984,5.97,985,5.97,986,5.97,987,5.97,988,5.97,989,5.97,990,4.717]],["t/334",[1,0.595,8,0.452,18,2.193,61,1.316,110,2.049,142,4.205,148,0.936,150,0.719,151,0.916,154,1.395,155,0.916,186,2.344,199,4.402,249,1.44,263,1.698,267,1.724,269,1.181,275,1.515,295,1.107,327,1.566,331,2.333,439,3.283,498,3.232,509,3.567,588,3.382,589,3.382,636,1.934,665,2.099,854,2.321,990,3.94,991,5.283,992,2.321,993,2.321,994,2.099,995,2.657,996,2.657,997,5.283,998,2.657,999,4.892,1000,5.601,1001,2.657,1002,2.321,1003,2.321,1004,2.321,1005,2.321,1006,2.657,1007,2.321,1008,2.321,1009,3.573,1010,2.321,1011,2.321]],["t/336",[1,0.578,8,0.453,61,1.258,80,1.311,107,4.053,110,1.952,142,4.044,148,0.971,150,0.687,151,0.89,154,1.366,155,0.89,186,2.222,199,4.31,247,1.967,248,2.159,249,1.399,261,4.273,262,1.875,267,1.664,269,1.14,275,1.448,295,1.069,300,2.217,327,1.528,331,2.252,439,3.214,444,4.679,498,3.119,588,3.286,589,3.286,990,3.828,991,5.172,992,2.217,993,2.217,994,2.005,997,5.172,999,5.172,1002,2.217,1003,2.217,1004,2.217,1005,2.217,1007,2.217,1008,2.217,1009,3.449,1010,2.217,1011,2.217,1012,2.538]],["t/338",[1013,6.672,1014,6.672,1015,6.672]],["t/340",[1,0.865,2,4.631,7,4.228,8,0.457,9,2.677,55,2.322,57,3.596,58,3.859,60,2.076,62,3.596,1016,6.64,1017,6.64]],["t/342",[8,0.317,9,2.089,42,3.218,112,4.685,140,0.984,220,4.316,341,5.179,440,5.179,443,4.685,547,2.938,994,4.685,1018,5.929,1019,5.929,1020,5.929,1021,5.929,1022,5.929,1023,5.929,1024,5.929,1025,5.929]],["t/344",[1,0.473,8,0.459,17,0.792,18,2.458,19,0.931,21,0.856,61,1.962,73,1.536,80,1.072,88,1.676,110,0.925,115,2.45,120,0.973,121,2.268,148,0.712,149,0.542,151,1.218,153,0.685,155,0.345,187,1.019,204,1.864,219,0.792,247,1.259,248,1.855,249,0.542,254,1.62,255,1.676,312,0.973,314,1.214,327,0.525,335,0.639,339,1.019,416,1.768,464,1.64,504,1.071,547,0.931,551,3.145,574,0.931,589,1.274,594,1.019,596,1.64,688,3.117,696,4.444,700,1.071,701,1.472,702,0.856,705,2.622,709,1.683,710,1.864,716,2.876,717,2.927,718,0.931,731,1.768,741,1.071,742,2.708,744,2.708,902,1.129,903,1.864,904,1.864,909,1.129,911,1.129,912,1.129,913,1.129,914,1.129,916,1.129,917,1.864,918,1.864,919,1.864,920,1.864,921,1.129,922,1.129,924,1.129,933,1.129,934,1.129,935,1.367,936,1.129,937,1.367,1026,1.878,1027,1.878,1028,1.878,1029,1.878,1030,1.878,1031,1.878,1032,1.878,1033,1.878,1034,1.878,1035,3.96,1036,3.101,1037,1.878,1038,1.878,1039,3.96,1040,3.101,1041,1.878,1042,1.878,1043,1.878,1044,1.878,1045,1.878,1046,1.878,1047,6.058,1048,3.101,1049,1.878,1050,3.101,1051,3.101,1052,1.878,1053,3.101,1054,1.878,1055,3.101,1056,3.101]],["t/346",[1,0.332,8,0.459,17,1.171,19,1.376,21,1.266,73,1.376,80,0.752,88,1.013,120,1.439,121,2.646,140,0.461,148,0.887,149,0.802,151,1.337,153,1.013,155,0.51,219,1.171,247,1.128,248,2.371,249,0.802,254,0.885,255,2.091,267,1.171,269,0.802,289,1.266,312,1.439,314,1.657,327,1.183,333,1.508,335,0.946,336,1.769,339,1.508,416,1.584,504,1.584,547,1.376,551,3.669,574,1.376,594,2.297,694,2.545,695,1.671,700,1.584,701,2.434,702,1.266,709,2.297,716,2.722,718,1.376,731,2.414,741,2.414,902,1.671,903,1.671,904,1.671,908,1.769,909,1.671,910,1.769,911,1.671,912,1.671,913,1.671,914,1.671,915,1.769,916,1.671,917,2.545,918,2.545,919,2.545,920,2.545,921,1.671,922,1.671,924,1.671,933,1.671,934,1.671,936,1.671,971,2.195,972,2.195,978,2.022]],["t/348",[1,0.58,52,6.225,71,2.435,80,0.905,86,1.358,96,2.922,140,1.042,151,0.892,154,0.772,169,2.435,177,2.643,196,2.435,197,2.772,298,2.269,328,2.435,352,2.435,372,4.245,375,4.001,397,2.922,429,5.488,430,2.922,435,2.269,439,1.816,445,5,454,2.922,463,2.269,473,2.269,476,3.538,483,2.269,528,2.922,529,4.245,546,4.245,560,4.245,597,2.922,714,2.643,737,2.922,1057,3.345,1058,3.345,1059,3.345,1060,4.86,1061,7.183,1062,3.345,1063,4.86,1064,3.345,1065,3.345,1066,3.345,1067,3.345,1068,3.345,1069,3.345,1070,3.345,1071,3.345,1072,3.345,1073,4.86,1074,5.724,1075,3.345,1076,3.345,1077,3.345,1078,3.345,1079,3.345,1080,3.345,1081,3.345,1082,3.345,1083,3.345,1084,3.345,1085,3.345,1086,4.86,1087,3.345,1088,3.345,1089,3.345,1090,3.345,1091,4.86,1092,3.345,1093,3.345,1094,3.345,1095,3.345,1096,3.345,1097,3.345,1098,4.86,1099,3.345,1100,3.345,1101,3.345,1102,3.345,1103,3.345,1104,3.345,1105,3.345]]],"invertedIndex":[["",{"_index":8,"t":{"176":{"position":[[133,3]]},"178":{"position":[[40,10]]},"180":{"position":[[384,2],[387,6],[426,16]]},"182":{"position":[[56,2]]},"186":{"position":[[254,1],[278,1],[280,2]]},"192":{"position":[[837,1],[941,1],[968,2],[980,2],[983,1],[1014,1],[1051,2],[1054,1],[1071,1],[1109,2],[1173,2],[1189,2],[1192,1],[1194,2],[1259,3],[1263,2],[1266,2],[1269,2],[1272,3],[1687,1],[1806,2],[1832,2],[1839,1],[1856,3],[1876,1],[1898,2],[1901,1],[1918,1],[1946,2],[1993,2],[2085,3],[2089,1],[2096,1],[2108,1],[2175,2],[2188,1],[2205,1],[2207,2],[2210,3]]},"194":{"position":[[523,1],[674,1],[676,2],[689,3],[727,2],[740,2],[743,1],[780,1],[836,2],[839,2],[867,2],[880,2],[883,1],[920,1],[976,2],[979,2],[1007,2],[1020,2],[1023,1],[1060,1],[1116,2],[1119,2],[1122,2],[1125,3]]},"196":{"position":[[67,5]]},"198":{"position":[[7,17],[38,1],[48,2]]},"200":{"position":[[17,2],[20,4],[61,2],[64,9],[91,1],[175,3],[179,2],[182,4],[191,1],[217,1],[251,1],[279,1],[298,1],[304,2],[329,2],[332,3],[357,2],[360,13],[374,1],[388,1],[408,1],[410,2],[413,5],[423,1],[441,1],[475,1],[503,1],[505,1],[517,1],[519,3],[536,2],[561,1],[575,1],[595,1],[597,2],[600,4],[617,1],[638,2],[641,9],[668,1],[746,3],[750,2],[753,4],[784,1],[812,1],[831,1],[870,1],[894,2],[897,3],[922,2],[925,13],[939,1],[941,2],[944,2],[947,5],[979,1],[1007,1],[1009,1],[1021,1],[1023,3],[1065,1],[1089,1],[1091,2]]},"202":{"position":[[0,2],[50,25],[76,23],[124,3],[136,15],[152,6],[167,1],[179,12],[249,1],[251,2],[254,9],[281,1],[365,3],[369,2],[380,6],[395,1],[427,1],[463,1],[491,1],[493,1],[505,1],[507,3],[530,2],[555,2],[558,3],[583,2],[586,13],[600,1],[614,1],[634,1],[648,1],[669,2],[672,9],[699,1],[777,3],[781,2],[792,6],[807,1],[843,1],[871,1],[873,1],[885,1],[887,3],[943,1],[967,2],[970,3],[995,2],[998,13],[1012,1],[1014,2],[1017,2],[1020,42]]},"204":{"position":[[0,20],[27,30],[58,30],[142,2],[145,14],[171,1],[303,2],[399,2],[533,3],[549,1],[570,2],[573,14],[599,1],[731,2],[827,2],[961,3],[965,2],[968,33],[1002,16],[1032,1],[1072,1],[1074,2],[1133,1],[1184,2],[1244,1],[1258,1],[1278,1],[1280,2],[1389,1],[1391,2],[1451,3],[1455,21],[1494,2],[1543,1],[1573,2],[1629,3],[1633,4],[1638,2],[1725,2],[1803,1],[1805,2],[1855,3],[1859,4],[1864,2],[1951,3]]},"206":{"position":[[7,3],[24,2],[31,9],[99,1],[101,2],[143,1],[227,3],[231,2],[270,1],[306,1],[334,1],[336,1],[348,1],[350,3],[368,2],[371,1],[380,10],[399,3],[403,12],[424,3],[428,2],[431,4],[472,2],[561,2],[632,1],[735,3],[739,2],[778,1],[814,1],[842,1],[844,1],[856,1],[858,3],[876,2],[886,2],[895,6],[950,3],[1004,1],[1006,2],[1036,1],[1108,3],[1112,2],[1181,1],[1199,2],[1253,1],[1292,1],[1301,1],[1315,6],[1356,5],[1383,1],[1404,2],[1440,1],[1518,3],[1580,2],[1583,1],[1604,2],[1636,2]]},"208":{"position":[[0,44],[56,5],[62,3],[97,39],[137,5],[171,1],[274,3],[289,1],[386,3],[390,5],[417,1],[443,1],[521,3],[547,2],[550,11],[583,2],[586,3],[590,1],[604,1],[624,1],[638,1],[697,2],[732,1],[756,2],[862,2],[886,1],[888,2]]},"214":{"position":[[632,1]]},"218":{"position":[[122,1],[132,1],[191,1],[246,2],[249,2],[252,2],[255,2]]},"220":{"position":[[49,1],[61,1],[123,2],[170,2],[173,2]]},"222":{"position":[[7,1],[13,1],[68,1],[110,2]]},"227":{"position":[[60,1],[62,1],[64,1],[66,1],[100,2],[103,1],[105,2],[114,1],[116,1],[129,1],[131,1],[133,2],[157,1],[159,1],[161,1],[163,1],[243,3],[247,2],[287,1],[289,1],[291,1],[293,1],[359,1],[361,1],[363,1],[365,1]]},"229":{"position":[[165,1],[167,1],[169,1],[199,2],[202,1],[204,2],[266,3],[295,2],[395,1],[407,2],[423,2],[489,2],[492,1],[494,2],[498,1],[500,1],[502,1],[513,1],[515,1],[517,3],[521,2],[573,2],[683,3]]},"231":{"position":[[22,1]]},"233":{"position":[[63,1],[81,1],[96,1],[114,1],[155,1],[187,1],[230,1],[250,1]]},"236":{"position":[[162,1],[462,1],[500,1],[512,1],[525,2],[540,2],[543,1],[545,2],[578,1],[580,1],[582,1],[621,2],[639,1],[641,1],[648,1],[650,1],[652,3],[686,1],[698,1],[705,2],[720,2],[723,1],[725,2],[735,1],[737,1],[739,1],[767,3],[799,1],[811,1],[818,2],[833,2],[836,1],[838,2],[856,1],[865,3],[869,2],[973,1],[975,1],[977,1],[1006,2],[1009,1],[1011,2],[1029,1],[1038,3]]},"238":{"position":[[14,1],[16,1],[68,2],[112,2],[115,1],[117,2],[170,2],[241,2],[244,4],[249,2],[252,3]]},"240":{"position":[[453,2],[562,1],[590,2],[593,2],[619,1],[693,1],[727,1],[776,1],[798,2],[801,2],[816,2],[898,1],[927,1],[965,1],[1052,2],[1055,1],[1057,2],[1096,1],[1149,1],[1238,3],[1242,3],[1246,2],[1249,1],[1285,2],[1288,3],[1379,2]]},"242":{"position":[[10,1],[40,1],[73,1],[111,1],[226,2],[255,3],[592,1],[635,1],[668,1],[759,1],[777,1],[800,1],[834,2],[837,1],[869,1],[871,2],[895,2],[898,3]]},"246":{"position":[[0,2],[18,2],[33,1],[62,2],[136,2],[191,2],[194,2],[210,2],[271,2],[312,1],[356,2],[483,2],[486,1],[498,1],[563,2],[581,2],[584,1],[617,2],[633,2],[636,1],[656,2],[714,3]]},"248":{"position":[[26,1],[40,1],[80,1],[128,3],[153,1],[182,3],[222,1],[250,1],[264,1],[304,1],[340,3],[344,2],[480,3],[534,1]]},"250":{"position":[[12,1],[42,1],[72,2],[75,1],[85,1],[164,3],[179,1],[287,1],[299,4],[319,3]]},"253":{"position":[[69,1]]},"257":{"position":[[107,2],[255,2],[497,1]]},"262":{"position":[[199,2]]},"264":{"position":[[233,1],[266,1]]},"266":{"position":[[14,1],[34,1],[83,1],[85,1],[119,2],[133,1]]},"268":{"position":[[14,1],[28,1],[71,1],[73,1],[107,2],[121,1]]},"270":{"position":[[37,1],[67,2],[70,1],[72,3],[76,1],[85,1],[87,1],[97,1],[99,1],[101,2],[104,3],[131,1],[161,2],[164,1],[166,3],[170,1],[179,1],[181,1],[191,1],[193,1],[195,2],[198,3]]},"273":{"position":[[68,1],[84,1],[112,1],[171,3],[175,2],[223,1],[253,2],[256,1],[277,3],[281,1],[290,1],[292,1],[302,1],[304,1],[306,2],[309,3],[313,2],[390,2],[393,1],[414,3],[418,1],[427,1],[429,1],[454,1],[456,1],[458,2],[461,3],[513,1],[529,1],[557,1],[635,3],[639,2],[688,1],[703,1],[731,2],[734,1],[755,3],[759,1],[768,1],[770,1],[777,1],[779,1],[781,2],[784,1],[786,2],[789,2],[866,2],[869,1],[890,3],[894,1],[903,1],[905,1],[914,1],[916,1],[918,2],[921,3]]},"275":{"position":[[85,1],[101,1],[129,1],[214,3],[228,1],[230,1],[241,1],[263,1],[276,2],[327,2],[330,1],[351,3],[355,1],[364,1],[366,1],[368,1],[378,1],[380,2],[383,1],[385,1],[395,1],[397,1],[399,1],[401,2],[404,3]]},"277":{"position":[[322,1],[340,1],[368,1],[427,3],[441,1],[443,1],[452,1],[457,2],[508,2],[511,1],[534,3],[538,1],[565,1],[618,3],[672,1],[674,2],[677,3]]},"279":{"position":[[173,1],[191,1],[219,1],[304,3],[318,1],[320,1],[329,1],[341,1],[346,2],[400,2],[403,1],[427,3],[431,1],[443,1],[461,1],[514,3],[569,2],[588,1],[641,3],[695,1],[697,1],[699,2],[702,3]]},"281":{"position":[[69,2],[279,1],[318,1],[346,1],[405,3],[409,3],[429,2],[484,3],[504,2],[564,1],[576,1],[585,3],[589,3],[613,2],[626,1],[719,2],[722,1],[745,3],[749,1],[776,1],[829,3],[883,1],[885,2],[888,3],[1064,3],[1105,2]]},"287":{"position":[[35,1],[71,1],[113,1],[157,2],[217,2],[350,2],[355,1],[377,3],[430,2],[433,1],[461,2],[464,2]]},"290":{"position":[[70,1],[135,3],[152,1],[203,2],[206,3],[222,1],[260,1],[319,3],[377,2],[380,1],[382,2],[385,3],[389,3]]},"292":{"position":[[70,1],[135,3],[152,1],[211,2],[214,3],[230,1],[268,1],[327,3],[391,2],[394,1],[396,2],[399,3],[403,3]]},"294":{"position":[[91,1],[161,1],[261,2],[264,3],[339,1],[368,1],[406,1],[470,1],[570,2],[573,3],[879,1],[898,1],[1028,3],[1044,1],[1141,1],[1155,1],[1175,1],[1189,1],[1227,1],[1351,3],[1418,2],[1421,1],[1464,3]]},"296":{"position":[[12,1],[46,1],[122,2],[125,1],[310,3],[352,2],[355,1],[417,3],[434,1],[543,3],[570,2],[573,1],[647,1],[649,2],[698,2],[772,1],[774,2],[830,1],[854,1],[967,1],[974,1],[976,2],[1038,1],[1107,1],[1109,3],[1113,3],[1158,3]]},"300":{"position":[[35,1],[78,1],[100,2],[120,1],[155,3],[159,2],[173,1],[200,2],[223,2],[226,3],[230,2],[286,1],[288,2],[323,2],[326,3],[342,1],[390,2],[393,1],[435,3],[439,2],[442,3],[508,2],[511,1],[545,3],[609,2],[612,1],[646,3],[710,2],[713,1],[747,3]]},"302":{"position":[[35,1],[74,1],[132,1],[208,2],[211,1],[395,1],[419,3],[461,2],[464,1],[526,3],[543,1],[652,3],[679,2],[682,1],[756,1],[758,2],[807,2],[881,1],[883,2],[939,1],[963,1],[1076,1],[1083,1],[1085,2],[1147,1],[1216,1],[1218,3],[1222,3],[1267,3]]},"304":{"position":[[35,1],[203,3],[242,1],[252,1],[297,2],[300,1],[334,1],[336,2]]},"306":{"position":[[23,2],[53,1],[74,2],[128,1],[206,3],[210,2],[288,1],[316,1],[318,1],[330,1],[332,3],[379,2],[382,1],[406,2],[471,2],[534,2],[609,2],[679,1],[681,2]]},"308":{"position":[[34,1],[136,3],[155,2],[158,1],[171,1],[178,1],[188,1],[221,2],[224,1],[253,2],[313,3],[317,1],[319,2],[344,2],[347,1],[360,1],[367,1],[377,1],[408,2],[411,1],[470,2],[473,1],[516,3],[520,3],[524,1],[526,2]]},"310":{"position":[[23,2],[53,1],[74,2],[128,1],[206,3],[250,1],[260,1],[305,2],[308,1],[382,1],[392,1],[437,2],[440,1],[515,1],[525,1],[577,1],[587,1],[632,2],[635,1],[669,1],[671,2],[674,1],[676,2],[679,1],[681,2]]},"312":{"position":[[23,2],[53,1],[74,2],[128,1],[206,3],[210,2],[252,1],[280,1],[299,1],[329,2],[332,1],[356,2],[421,2],[484,1],[486,2],[489,2],[535,1],[563,1],[565,1],[577,1],[579,3],[612,2],[615,1],[639,1],[641,2]]},"314":{"position":[[35,1],[68,1],[124,1],[194,1],[233,1],[277,1],[373,2],[389,1],[401,1],[408,1],[410,2],[464,1],[509,3],[513,1],[515,1],[530,1],[606,2],[609,1],[611,2],[643,2],[693,3],[697,2],[783,2],[856,2],[886,2],[976,3],[1018,2],[1021,1],[1083,3],[1112,2],[1115,1],[1137,1],[1324,2],[1327,3],[1356,4],[1361,3],[1365,10],[1376,7],[1393,4],[1424,7],[1432,4],[1437,8],[1446,6],[1453,11],[1496,3],[1500,3]]},"316":{"position":[[32,1],[61,1],[93,1],[144,3],[204,1],[206,2],[257,2],[353,2],[356,3],[413,1],[499,1],[519,3],[523,3]]},"318":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[239,1],[301,1],[329,1],[355,1],[398,2],[401,1],[413,2],[428,3],[467,1],[469,1],[569,2],[596,2],[613,2],[623,2],[626,2],[629,1],[663,1],[665,1],[673,3],[683,3],[697,3],[711,3],[715,2],[729,1],[769,3],[814,2],[885,3],[919,2],[1051,2],[1054,3],[1079,2],[1099,1],[1178,4],[1183,4],[1188,6],[1230,2],[1282,3],[1334,2],[1409,3],[1451,2],[1531,1],[1567,3],[1571,3],[1589,2],[1616,1],[1716,2],[1719,1],[1721,3],[1823,2],[1856,1],[1887,3],[1942,1],[1949,1],[1972,2],[1975,1],[2006,3],[2027,2],[2073,3],[2077,1],[2079,3],[2101,5],[2107,3],[2118,1],[2120,1],[2134,1],[2153,1],[2161,1],[2175,1],[2194,1],[2202,1],[2215,1],[2234,1],[2242,1],[2255,1],[2274,1],[2282,1],[2296,1],[2315,1],[2334,2]]},"320":{"position":[[63,1],[114,1],[124,1],[238,3],[290,1],[348,1],[371,1],[413,1],[425,1],[464,1],[647,1],[759,2],[762,2],[878,2],[889,1],[953,1],[1055,3],[1155,1],[1267,2],[1270,2],[1323,1],[1379,1],[1397,2],[1400,1],[1423,2],[1439,2],[1442,1],[1483,3],[1513,1],[1551,1],[1581,2],[1584,1],[1594,1],[1678,3],[1693,1],[1801,1],[1813,4],[1833,2],[1851,2],[1854,1],[1877,2],[1902,1],[1933,3],[1937,1],[1983,1],[1985,1],[2050,3],[2085,1],[2130,2],[2141,2],[2154,3],[2192,1],[2216,1],[2218,1]]},"322":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[239,1],[301,1],[303,3],[310,2],[324,3],[333,2],[347,1],[373,1],[416,2],[419,1],[431,2],[446,3],[485,1],[487,1],[587,2],[614,2],[631,2],[641,2],[644,2],[647,1],[681,1],[683,1],[691,3],[701,3],[715,3],[729,3],[752,2],[766,1],[806,3],[851,2],[922,3],[956,2],[1088,2],[1091,3],[1116,2],[1136,1],[1215,4],[1220,4],[1225,6],[1267,2],[1319,3],[1371,2],[1446,3],[1488,2],[1568,1],[1604,3],[1608,3],[1626,2],[1653,1],[1753,2],[1756,1],[1758,3],[1860,2],[1893,1],[1924,3],[1979,1],[1986,1],[2009,2],[2012,1],[2043,3],[2064,2],[2108,3],[2112,1],[2114,3],[2136,5],[2142,3],[2153,1],[2155,1],[2169,1],[2188,1],[2196,1],[2210,1],[2229,1],[2237,1],[2250,1],[2269,1],[2277,1],[2290,1],[2309,1],[2317,1],[2331,1],[2350,1],[2369,2]]},"324":{"position":[[35,1],[67,1],[231,3],[299,1],[336,3]]},"326":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[308,1],[317,2],[320,2],[323,1],[357,1],[359,1],[367,3],[377,3],[391,3],[405,3],[435,2],[449,1],[489,3],[534,2],[605,3],[639,2],[771,2],[774,3],[799,2],[819,1],[898,4],[903,4],[908,6],[950,2],[1002,3],[1020,2],[1036,1],[1066,1],[1076,1],[1130,1],[1194,2],[1197,2],[1221,2],[1224,1],[1247,2],[1250,1],[1276,3],[1297,2],[1343,3],[1347,3],[1369,5],[1375,3],[1386,1],[1388,1],[1402,1],[1416,1],[1424,1],[1438,1],[1452,1],[1460,1],[1473,1],[1487,1],[1495,1],[1508,1],[1522,1],[1530,1],[1544,2]]},"328":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[282,3],[289,2],[303,3],[312,2],[326,1],[335,2],[338,2],[341,1],[375,1],[377,1],[385,3],[395,3],[409,3],[423,3],[472,2],[486,1],[526,3],[571,2],[642,3],[676,2],[808,2],[811,3],[836,2],[856,1],[935,4],[940,4],[945,6],[987,2],[1039,3],[1057,2],[1073,1],[1103,1],[1113,1],[1167,1],[1231,2],[1234,2],[1258,2],[1261,1],[1284,2],[1287,1],[1313,3],[1334,2],[1378,3],[1382,3],[1404,5],[1410,3],[1421,1],[1423,1],[1437,1],[1451,1],[1459,1],[1473,1],[1487,1],[1495,1],[1508,1],[1522,1],[1530,1],[1543,1],[1557,1],[1565,1],[1579,2]]},"330":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[308,1],[317,2],[320,2],[323,1],[357,1],[359,1],[367,3],[377,3],[391,3],[405,3],[409,2],[423,1],[463,3],[508,2],[579,3],[613,2],[745,2],[748,3],[773,2],[793,1],[872,4],[877,4],[882,6],[924,2],[976,3],[994,2],[1011,1],[1047,1],[1084,2],[1108,2],[1111,1],[1137,3],[1158,2],[1204,3],[1226,5],[1232,3],[1243,1],[1245,1],[1259,1],[1273,1],[1281,1],[1295,1],[1309,1],[1317,1],[1330,1],[1344,1],[1352,1],[1365,1],[1379,1],[1387,1],[1401,2]]},"334":{"position":[[166,1],[198,1],[231,3],[241,3],[255,3],[259,3],[301,2],[304,1],[332,1],[379,1],[381,3],[508,1],[540,1],[567,3],[577,3],[591,3],[595,3],[636,2],[639,1],[667,1],[724,1],[726,3],[860,1],[899,1],[953,1],[961,3],[971,3],[985,3],[989,3],[1046,2],[1049,1],[1077,1],[1141,1],[1143,3],[1280,1],[1298,2],[1301,1],[1329,1],[1375,1],[1396,3],[1613,1],[1631,2],[1634,1],[1662,1],[1706,1],[1727,3]]},"336":{"position":[[184,1],[203,1],[242,3],[252,3],[266,3],[270,3],[274,1],[288,1],[316,1],[336,1],[338,1],[489,1],[516,3],[526,3],[540,3],[544,3],[552,1],[571,1],[601,1],[615,1],[643,1],[663,1],[665,1],[830,1],[884,1],[892,3],[902,3],[916,3],[920,3],[928,1],[972,1],[986,1],[1014,1],[1061,1],[1063,1],[1165,1],[1180,1],[1216,1],[1242,1],[1256,1],[1284,1],[1322,1],[1324,1],[1508,1],[1523,1],[1557,1],[1583,1],[1597,1],[1625,1],[1661,1],[1663,1]]},"340":{"position":[[7,3],[24,4],[47,8],[78,5],[98,15],[122,4],[134,3],[142,1],[152,12],[172,12],[185,8],[194,5],[226,14],[251,4],[260,1],[284,4],[289,3]]},"342":{"position":[[72,2]]},"344":{"position":[[15,3],[19,1],[66,2],[76,1],[90,1],[122,1],[130,1],[185,1],[213,1],[241,1],[243,1],[251,3],[261,3],[275,3],[289,3],[293,2],[303,2],[306,2],[309,1],[323,1],[344,3],[389,2],[450,3],[484,2],[606,2],[609,3],[634,2],[654,1],[723,4],[728,4],[733,6],[775,2],[827,3],[845,2],[862,1],[895,1],[932,2],[962,2],[965,1],[991,3],[1012,2],[1058,3],[1092,5],[1098,3],[1109,1],[1111,1],[1125,1],[1139,1],[1147,1],[1161,1],[1175,1],[1183,1],[1196,1],[1210,1],[1218,1],[1231,1],[1245,1],[1253,1],[1267,2],[1270,3],[1274,1],[1321,2],[1331,1],[1396,1],[1440,1],[1534,1],[1553,1],[1578,1],[1610,1],[1612,3],[1683,2],[1713,1],[1742,1],[1774,1],[1776,3],[1804,2],[1823,1],[1907,1],[1909,3],[1965,2],[1991,1],[2077,1],[2079,3],[2112,2],[2133,1],[2217,1],[2219,3],[2297,2],[2319,1],[2405,1],[2407,3],[2435,2],[2456,1],[2542,1],[2544,3],[2600,2],[2628,1],[2716,1],[2718,3],[2751,2],[2774,1],[2860,1],[2862,3],[2940,2],[2964,1],[3052,1],[3054,3],[3085,2],[3105,1],[3125,1],[3127,1]]},"346":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[282,3],[289,2],[303,3],[312,2],[326,1],[335,2],[338,2],[341,1],[375,1],[377,1],[385,3],[395,3],[409,3],[423,3],[446,2],[460,1],[500,3],[545,2],[616,3],[650,2],[782,2],[785,3],[810,2],[830,1],[909,4],[914,4],[919,6],[961,2],[1013,3],[1031,2],[1048,1],[1084,1],[1121,2],[1145,2],[1148,1],[1174,3],[1195,2],[1239,3],[1261,5],[1267,3],[1278,1],[1280,1],[1294,1],[1308,1],[1316,1],[1330,1],[1344,1],[1352,1],[1365,1],[1379,1],[1387,1],[1400,1],[1414,1],[1422,1],[1436,2]]}}}],["0",{"_index":289,"t":{"204":{"position":[[481,2],[530,2],[909,2],[958,2]]},"220":{"position":[[255,2]]},"233":{"position":[[121,2]]},"277":{"position":[[579,2],[596,2],[609,2],[654,2],[670,1]]},"279":{"position":[[475,2],[492,2],[505,2],[551,2],[567,1],[602,2],[619,2],[632,2],[677,2],[693,1]]},"281":{"position":[[790,2],[807,2],[820,2],[865,2],[881,1]]},"287":{"position":[[291,2]]},"308":{"position":[[173,2],[362,2]]},"314":{"position":[[1308,2],[1321,2]]},"318":{"position":[[2332,1]]},"322":{"position":[[313,2],[2367,1]]},"328":{"position":[[292,2]]},"346":{"position":[[292,2]]}}}],["0deprec",{"_index":737,"t":{"283":{"position":[[0,11]]},"348":{"position":[[101,11]]}}}],["0xffffff",{"_index":792,"t":{"296":{"position":[[300,9]]},"302":{"position":[[386,8]]},"314":{"position":[[876,9]]}}}],["1",{"_index":327,"t":{"206":{"position":[[1287,4],[1553,3]]},"208":{"position":[[73,1],[477,1],[653,1]]},"220":{"position":[[258,2]]},"227":{"position":[[58,1],[155,1],[285,1],[357,1]]},"233":{"position":[[135,1]]},"236":{"position":[[517,2],[703,1],[760,3],[764,2],[816,1],[854,1],[858,1],[986,3],[990,3],[1027,1],[1031,1]]},"270":{"position":[[35,1],[39,1],[129,1],[133,1]]},"273":{"position":[[221,1],[225,1],[686,1],[690,1]]},"275":{"position":[[239,1],[243,1]]},"277":{"position":[[449,2],[454,2]]},"279":{"position":[[326,2],[331,2]]},"281":{"position":[[561,2],[566,2]]},"287":{"position":[[347,2],[353,1]]},"292":{"position":[[187,3],[358,3]]},"300":{"position":[[370,2]]},"304":{"position":[[230,3],[263,3]]},"310":{"position":[[238,3],[271,3],[370,3],[503,3],[565,3]]},"318":{"position":[[2240,1]]},"320":{"position":[[2138,2]]},"322":{"position":[[336,2],[2275,1]]},"326":{"position":[[1493,1]]},"328":{"position":[[315,2],[1528,1]]},"330":{"position":[[1350,1]]},"334":{"position":[[1278,1],[1282,3],[1611,1],[1615,3]]},"336":{"position":[[1214,1],[1218,4],[1555,1],[1559,4]]},"344":{"position":[[1216,1]]},"346":{"position":[[315,2],[1385,1]]}}}],["1+1",{"_index":572,"t":{"242":{"position":[[284,3]]},"290":{"position":[[185,3],[348,3]]},"294":{"position":[[311,3],[602,3]]},"300":{"position":[[252,5]]},"316":{"position":[[379,3]]}}}],["1+:toadd",{"_index":629,"t":{"250":{"position":[[269,8]]},"320":{"position":[[1783,8]]}}}],["1,2",{"_index":534,"t":{"236":{"position":[[608,5]]}}}],["1.0.0",{"_index":425,"t":{"218":{"position":[[202,8]]},"320":{"position":[[2026,8]]}}}],["1.1",{"_index":437,"t":{"220":{"position":[[261,4]]}}}],["1.1earli",{"_index":1078,"t":{"348":{"position":[[756,8]]}}}],["1.2",{"_index":438,"t":{"220":{"position":[[266,4]]}}}],["1.2releas",{"_index":1082,"t":{"348":{"position":[[848,10]]}}}],["10",{"_index":278,"t":{"204":{"position":[[286,3],[299,3],[714,3],[727,3]]},"242":{"position":[[237,2]]},"250":{"position":[[296,2]]},"279":{"position":[[532,3]]},"292":{"position":[[204,6],[373,5]]},"296":{"position":[[194,3]]},"302":{"position":[[280,3]]},"314":{"position":[[754,3]]},"320":{"position":[[1810,2]]}}}],["100",{"_index":900,"t":{"316":{"position":[[464,4]]}}}],["1000",{"_index":853,"t":{"308":{"position":[[322,6],[529,6]]}}}],["1045",{"_index":872,"t":{"314":{"position":[[504,4]]}}}],["1080",{"_index":587,"t":{"242":{"position":[[864,4]]}}}],["12",{"_index":469,"t":{"227":{"position":[[126,2]]}}}],["120",{"_index":759,"t":{"287":{"position":[[335,4]]}}}],["123",{"_index":752,"t":{"287":{"position":[[152,4]]},"314":{"position":[[689,3]]}}}],["1234",{"_index":790,"t":{"296":{"position":[[244,5]]},"302":{"position":[[330,5]]},"314":{"position":[[817,5]]}}}],["127.0.0.1",{"_index":897,"t":{"316":{"position":[[172,12]]}}}],["137",{"_index":273,"t":{"202":{"position":[[520,5],[900,5]]},"306":{"position":[[345,5]]}}}],["14",{"_index":316,"t":{"206":{"position":[[364,3],[872,3]]}}}],["16000",{"_index":508,"t":{"231":{"position":[[86,5]]}}}],["18.x",{"_index":354,"t":{"212":{"position":[[60,5]]}}}],["1998",{"_index":1014,"t":{"338":{"position":[[12,5]]}}}],["1experiment",{"_index":454,"t":{"224":{"position":[[144,13]]},"348":{"position":[[642,13]]}}}],["2",{"_index":335,"t":{"208":{"position":[[85,1],[489,1],[665,1]]},"220":{"position":[[271,1]]},"229":{"position":[[293,1],[464,3]]},"236":{"position":[[523,1]]},"248":{"position":[[195,3],[199,4]]},"270":{"position":[[95,1],[189,1]]},"273":{"position":[[300,1],[701,1],[705,1],[772,2]]},"275":{"position":[[261,1],[265,1],[376,1]]},"277":{"position":[[636,2]]},"279":{"position":[[338,2],[343,2],[659,2]]},"281":{"position":[[573,2],[578,2],[847,2]]},"296":{"position":[[263,2]]},"302":{"position":[[349,2]]},"314":{"position":[[836,2]]},"318":{"position":[[2200,1]]},"322":{"position":[[2235,1]]},"326":{"position":[[1117,4],[1171,1],[1180,4],[1458,1]]},"328":{"position":[[1154,4],[1208,1],[1217,4],[1493,1]]},"330":{"position":[[1315,1]]},"344":{"position":[[1181,1]]},"346":{"position":[[1350,1]]}}}],["2+3",{"_index":951,"t":{"320":{"position":[[785,3],[1292,3]]}}}],["2.0",{"_index":544,"t":{"240":{"position":[[238,3]]}}}],["2.rds.amazonaws.com",{"_index":778,"t":{"294":{"position":[[987,21],[1310,21]]}}}],["2113931265",{"_index":878,"t":{"314":{"position":[[907,11]]}}}],["2181036031",{"_index":879,"t":{"314":{"position":[[936,11]]}}}],["2282",{"_index":1015,"t":{"338":{"position":[[18,5]]}}}],["253",{"_index":892,"t":{"314":{"position":[[1296,4]]}}}],["2stabl",{"_index":439,"t":{"220":{"position":[[288,7],[296,7]]},"273":{"position":[[0,7]]},"275":{"position":[[0,7]]},"277":{"position":[[0,7]]},"279":{"position":[[0,7]]},"281":{"position":[[0,7]]},"334":{"position":[[17,7],[396,7],[748,7],[1155,7],[1492,7]]},"336":{"position":[[17,7],[351,7],[685,7],[1073,7],[1418,7]]},"348":{"position":[[1114,7]]}}}],["3",{"_index":219,"t":{"194":{"position":[[292,3]]},"210":{"position":[[39,2]]},"220":{"position":[[277,2]]},"229":{"position":[[511,1]]},"236":{"position":[[646,1]]},"248":{"position":[[388,1]]},"304":{"position":[[273,3]]},"310":{"position":[[281,3],[403,3],[413,3],[598,3],[608,3]]},"318":{"position":[[2280,1]]},"322":{"position":[[2315,1]]},"326":{"position":[[1528,1]]},"328":{"position":[[1563,1]]},"330":{"position":[[1385,1]]},"344":{"position":[[1251,1]]},"346":{"position":[[1420,1]]}}}],["33",{"_index":888,"t":{"314":{"position":[[1261,3]]}}}],["3306",{"_index":586,"t":{"242":{"position":[[829,4]]},"300":{"position":[[150,4],[430,4]]},"316":{"position":[[191,7]]},"320":{"position":[[163,5],[980,5],[1633,5]]},"324":{"position":[[206,5]]}}}],["384",{"_index":890,"t":{"314":{"position":[[1279,4]]}}}],["3legaci",{"_index":1094,"t":{"348":{"position":[[1181,7]]}}}],["4",{"_index":709,"t":{"273":{"position":[[775,1]]},"275":{"position":[[393,1]]},"318":{"position":[[2132,1],[2159,1]]},"322":{"position":[[2167,1],[2194,1]]},"326":{"position":[[1400,1],[1422,1]]},"328":{"position":[[1435,1],[1457,1]]},"330":{"position":[[1257,1],[1279,1]]},"344":{"position":[[1123,1],[1145,1]]},"346":{"position":[[1292,1],[1314,1]]}}}],["4.5.2",{"_index":689,"t":{"262":{"position":[[222,8]]}}}],["45",{"_index":258,"t":{"200":{"position":[[300,3],[532,3],[833,4],[1036,4]]},"312":{"position":[[301,4],[592,4]]}}}],["5",{"_index":467,"t":{"227":{"position":[[80,3]]},"308":{"position":[[180,2],[369,2]]}}}],["5.6.10",{"_index":877,"t":{"314":{"position":[[773,9]]}}}],["53",{"_index":274,"t":{"202":{"position":[[526,3],[906,4]]},"306":{"position":[[351,4]]}}}],["6",{"_index":468,"t":{"227":{"position":[[84,3]]}}}],["6.9.0",{"_index":970,"t":{"320":{"position":[[2207,8]]}}}],["60000",{"_index":285,"t":{"204":{"position":[[392,6],[463,5],[820,6],[891,5]]}}}],["8",{"_index":791,"t":{"296":{"position":[[280,2]]},"302":{"position":[[366,2]]},"314":{"position":[[853,2]]}}}],["8编码支持、二进制文件编码支持、压缩和ssl",{"_index":237,"t":{"196":{"position":[[42,24]]}}}],["_err",{"_index":699,"t":{"270":{"position":[[54,6],[148,6]]},"273":{"position":[[240,6],[377,6],[718,6],[853,6]]},"275":{"position":[[314,6]]},"277":{"position":[[493,6]]},"279":{"position":[[384,6]]},"281":{"position":[[704,6]]}}}],["a,b,c,d",{"_index":537,"t":{"238":{"position":[[31,7]]}}}],["abov",{"_index":294,"t":{"204":{"position":[[1106,5],[1312,5],[1526,5],[1757,5]]},"246":{"position":[[708,5]]}}}],["accept",{"_index":590,"t":{"242":{"position":[[976,6]]}}}],["access",{"_index":547,"t":{"240":{"position":[[357,6]]},"266":{"position":[[57,7]]},"268":{"position":[[51,7]]},"318":{"position":[[637,7]]},"322":{"position":[[655,7]]},"326":{"position":[[331,7]]},"328":{"position":[[349,7]]},"330":{"position":[[331,7]]},"342":{"position":[[144,6]]},"344":{"position":[[221,7]]},"346":{"position":[[349,7]]}}}],["accord",{"_index":201,"t":{"192":{"position":[[2435,9]]}}}],["accordingli",{"_index":143,"t":{"192":{"position":[[760,12]]}}}],["ack",{"_index":499,"t":{"229":{"position":[[641,3]]}}}],["action",{"_index":452,"t":{"224":{"position":[[101,7],[238,7],[335,7],[530,7]]}}}],["activ",{"_index":1096,"t":{"348":{"position":[[1289,6]]}}}],["ad",{"_index":995,"t":{"334":{"position":[[122,6]]}}}],["addit",{"_index":51,"t":{"182":{"position":[[226,10]]},"192":{"position":[[599,10]]},"194":{"position":[[245,10],[296,10]]},"240":{"position":[[3,8]]},"242":{"position":[[905,8]]},"244":{"position":[[3,8]]},"259":{"position":[[251,8]]}}}],["addition",{"_index":308,"t":{"204":{"position":[[1955,13]]}}}],["address",{"_index":1105,"t":{"348":{"position":[[1520,10]]}}}],["advanc",{"_index":739,"t":{"285":{"position":[[80,8]]}}}],["affect",{"_index":938,"t":{"318":{"position":[[2317,8]]},"322":{"position":[[2352,8]]}}}],["affectedrow",{"_index":652,"t":{"257":{"position":[[222,13]]},"277":{"position":[[242,12],[582,13]]},"279":{"position":[[478,13],[605,13]]},"281":{"position":[[793,13]]},"318":{"position":[[485,15]]},"322":{"position":[[503,15]]}}}],["ag",{"_index":257,"t":{"200":{"position":[[292,5],[511,5],[825,5],[1015,5]]},"202":{"position":[[499,5],[879,5]]},"206":{"position":[[342,5],[850,5]]},"306":{"position":[[324,5]]},"312":{"position":[[293,5],[571,5]]}}}],["again",{"_index":223,"t":{"194":{"position":[[396,6]]},"306":{"position":[[567,6]]}}}],["aim",{"_index":39,"t":{"182":{"position":[[7,4]]}}}],["algorithm",{"_index":206,"t":{"192":{"position":[[2592,9]]}}}],["algoritm",{"_index":224,"t":{"194":{"position":[[502,9]]}}}],["allow",{"_index":408,"t":{"216":{"position":[[181,6]]}}}],["alongsid",{"_index":422,"t":{"218":{"position":[[90,9]]}}}],["alway",{"_index":82,"t":{"186":{"position":[[192,6]]},"192":{"position":[[1488,6],[2239,6]]},"318":{"position":[[1793,6]]},"322":{"position":[[1830,6]]}}}],["amazon",{"_index":770,"t":{"294":{"position":[[645,7],[704,6],[1014,7],[1337,7]]},"324":{"position":[[217,7]]}}}],["anoth",{"_index":126,"t":{"192":{"position":[[372,7]]}}}],["answer",{"_index":994,"t":{"334":{"position":[[84,7]]},"336":{"position":[[84,7]]},"342":{"position":[[22,7]]}}}],["api",{"_index":7,"t":{"176":{"position":[[128,4]]},"182":{"position":[[74,3]]},"192":{"position":[[1303,3]]},"206":{"position":[[19,4]]},"244":{"position":[[79,3]]},"340":{"position":[[29,17],[138,3]]}}}],["api文档来知道更多的api",{"_index":12,"t":{"180":{"position":[[26,31]]}}}],["appli",{"_index":27,"t":{"180":{"position":[[242,7]]}}}],["approach",{"_index":1079,"t":{"348":{"position":[[817,11]]}}}],["arg",{"_index":804,"t":{"296":{"position":[[663,5]]},"302":{"position":[[772,5]]}}}],["argument",{"_index":29,"t":{"180":{"position":[[261,10]]},"253":{"position":[[89,9]]}}}],["arguments[1",{"_index":806,"t":{"296":{"position":[[832,13],[1040,13]]},"302":{"position":[[941,13],[1149,13]]}}}],["arguments[2",{"_index":807,"t":{"296":{"position":[[856,13]]},"302":{"position":[[965,13]]}}}],["array",{"_index":337,"t":{"208":{"position":[[793,5],[802,6],[824,5]]},"229":{"position":[[230,5],[318,5]]},"236":{"position":[[398,5],[942,5]]},"238":{"position":[[139,5],[148,6]]},"257":{"position":[[536,5]]},"273":{"position":[[11,5]]},"296":{"position":[[715,7],[731,7]]},"302":{"position":[[824,7],[840,7]]}}}],["array.isarray(arguments[1",{"_index":805,"t":{"296":{"position":[[742,29]]},"302":{"position":[[851,29]]}}}],["asc",{"_index":924,"t":{"318":{"position":[[1558,4]]},"322":{"position":[[1595,4]]},"326":{"position":[[1107,3],[1161,3]]},"328":{"position":[[1144,3],[1198,3]]},"330":{"position":[[1078,5]]},"344":{"position":[[926,5]]},"346":{"position":[[1115,5]]}}}],["ascertain",{"_index":1087,"t":{"348":{"position":[[1045,9]]}}}],["ask",{"_index":112,"t":{"192":{"position":[[43,3]]},"208":{"position":[[915,3]]},"342":{"position":[[42,5]]}}}],["assur",{"_index":1059,"t":{"348":{"position":[[162,6]]}}}],["async",{"_index":312,"t":{"206":{"position":[[77,5],[982,5]]},"248":{"position":[[0,5],[224,5]]},"318":{"position":[[616,6]]},"320":{"position":[[92,5],[1962,5]]},"322":{"position":[[634,6]]},"326":{"position":[[310,6]]},"328":{"position":[[328,6]]},"330":{"position":[[310,6]]},"344":{"position":[[296,6]]},"346":{"position":[[328,6]]}}}],["asynchron",{"_index":139,"t":{"192":{"position":[[703,14]]}}}],["attach",{"_index":678,"t":{"259":{"position":[[499,6]]}}}],["auth",{"_index":114,"t":{"192":{"position":[[83,4],[801,4],[952,6],[1869,6]]},"194":{"position":[[702,5],[842,5],[982,5]]},"314":{"position":[[119,4]]}}}],["auth.doublesha1('pass123",{"_index":863,"t":{"314":{"position":[[235,27]]}}}],["auth.verifytoken",{"_index":865,"t":{"314":{"position":[[279,17]]}}}],["authcallback",{"_index":880,"t":{"314":{"position":[[948,13]]}}}],["authent",{"_index":57,"t":{"182":{"position":[[283,14]]},"192":{"position":[[211,14],[610,14]]},"194":{"position":[[34,14],[159,14],[256,14],[412,14]]},"314":{"position":[[962,13]]},"340":{"position":[[262,14]]}}}],["authenticate(param",{"_index":860,"t":{"314":{"position":[[169,20]]}}}],["authentication::native41",{"_index":202,"t":{"192":{"position":[[2448,24]]}}}],["authnextfactor",{"_index":213,"t":{"194":{"position":[[90,14]]}}}],["author",{"_index":966,"t":{"320":{"position":[[2144,9]]}}}],["authplugin",{"_index":116,"t":{"192":{"position":[[103,11],[928,12],[2480,11]]},"194":{"position":[[661,12]]}}}],["authswitchhandl",{"_index":170,"t":{"192":{"position":[[1318,17],[1778,18],[2508,17]]}}}],["authswitchrequest",{"_index":189,"t":{"192":{"position":[[2130,17]]}}}],["auto",{"_index":391,"t":{"214":{"position":[[709,4]]}}}],["auto_incr",{"_index":912,"t":{"318":{"position":[[993,15]]},"322":{"position":[[1030,15]]},"326":{"position":[[713,15]]},"328":{"position":[[750,15]]},"330":{"position":[[687,15]]},"344":{"position":[[548,15]]},"346":{"position":[[724,15]]}}}],["automat",{"_index":297,"t":{"204":{"position":[[1201,13],[1408,13]]},"308":{"position":[[270,13]]}}}],["avail",{"_index":435,"t":{"220":{"position":[[237,9]]},"242":{"position":[[1080,10]]},"306":{"position":[[524,9]]},"312":{"position":[[474,9]]},"348":{"position":[[1330,10]]}}}],["avg",{"_index":25,"t":{"180":{"position":[[221,5]]}}}],["avoid",{"_index":32,"t":{"180":{"position":[[301,5]]}}}],["await",{"_index":248,"t":{"200":{"position":[[93,5],[219,5],[443,5]]},"202":{"position":[[283,5],[429,5]]},"204":{"position":[[1135,5],[1545,5],[1609,5]]},"206":{"position":[[145,5],[272,5],[634,5],[780,5],[1255,5]]},"208":{"position":[[173,5],[445,5]]},"248":{"position":[[82,5],[155,5],[204,5],[398,5],[516,5]]},"250":{"position":[[356,5]]},"290":{"position":[[72,5],[154,5]]},"292":{"position":[[72,5],[154,5]]},"294":{"position":[[93,5],[900,5],[1046,5]]},"318":{"position":[[731,5],[817,5],[922,5],[1101,5],[1337,5],[1454,5],[1618,5],[2083,5]]},"320":{"position":[[126,5],[292,5],[373,5],[675,5],[930,5],[1183,5],[1364,5],[2007,7]]},"322":{"position":[[768,5],[854,5],[959,5],[1138,5],[1374,5],[1491,5],[1655,5],[2118,5]]},"326":{"position":[[451,5],[537,5],[642,5],[821,5],[1038,5],[1351,5]]},"328":{"position":[[488,5],[574,5],[679,5],[858,5],[1075,5],[1386,5]]},"330":{"position":[[425,5],[511,5],[616,5],[795,5],[1013,5],[1208,5]]},"336":{"position":[[205,5],[573,5],[930,5],[1182,5],[1525,5]]},"344":{"position":[[392,5],[487,5],[656,5],[864,5],[1062,5]]},"346":{"position":[[462,5],[548,5],[653,5],[832,5],[1050,5],[1243,5]]}}}],["await.j",{"_index":939,"t":{"320":{"position":[[0,8],[2062,11]]}}}],["b",{"_index":387,"t":{"214":{"position":[[622,1]]},"238":{"position":[[197,1]]}}}],["babel",{"_index":969,"t":{"320":{"position":[[2194,6]]}}}],["babelrc",{"_index":941,"t":{"320":{"position":[[15,8]]}}}],["back",{"_index":137,"t":{"192":{"position":[[659,4]]}}}],["backend",{"_index":820,"t":{"298":{"position":[[118,8],[166,8]]}}}],["backward",{"_index":1060,"t":{"348":{"position":[[169,8],[281,8]]}}}],["badg",{"_index":430,"t":{"220":{"position":[[18,6]]},"348":{"position":[[14,6]]}}}],["bar",{"_index":582,"t":{"242":{"position":[[730,6]]},"246":{"position":[[241,6],[528,6]]},"294":{"position":[[954,6],[1277,6]]}}}],["base",{"_index":597,"t":{"244":{"position":[[73,5]]},"348":{"position":[[983,5]]}}}],["basic",{"_index":743,"t":{"285":{"position":[[608,5]]}}}],["befor",{"_index":464,"t":{"224":{"position":[[474,6]]},"344":{"position":[[1651,6]]}}}],["begin",{"_index":733,"t":{"281":{"position":[[551,5]]},"318":{"position":[[1518,5]]},"322":{"position":[[1555,5]]}}}],["behavior",{"_index":674,"t":{"259":{"position":[[363,8]]}}}],["benchmark",{"_index":106,"t":{"190":{"position":[[63,10],[85,10],[115,10]]}}}],["beta",{"_index":886,"t":{"314":{"position":[[1222,7],[1239,7]]}}}],["better",{"_index":47,"t":{"182":{"position":[[168,6]]},"227":{"position":[[449,6]]},"306":{"position":[[660,6]]}}}],["between",{"_index":210,"t":{"192":{"position":[[2648,7]]},"262":{"position":[[107,7]]}}}],["bin.000007",{"_index":757,"t":{"287":{"position":[[311,12]]}}}],["binari",{"_index":64,"t":{"182":{"position":[[362,6]]},"257":{"position":[[584,6]]}}}],["bind",{"_index":97,"t":{"188":{"position":[[99,8],[173,8]]},"233":{"position":[[4,4]]}}}],["binlog",{"_index":102,"t":{"188":{"position":[[249,6]]}}}],["binlogpo",{"_index":758,"t":{"287":{"position":[[324,10]]}}}],["binlogstream",{"_index":749,"t":{"287":{"position":[[100,12]]}}}],["binlogstream.pip",{"_index":761,"t":{"287":{"position":[[381,18]]}}}],["blob",{"_index":180,"t":{"192":{"position":[[1607,4]]}}}],["block",{"_index":444,"t":{"222":{"position":[[176,6]]},"287":{"position":[[362,8]]},"336":{"position":[[137,6],[435,6],[769,6],[1154,6],[1497,6]]}}}],["bluebird",{"_index":318,"t":{"206":{"position":[[519,8],[535,8],[549,11],[595,8],[725,9]]}}}],["boolean",{"_index":514,"t":{"233":{"position":[[105,7]]},"259":{"position":[[146,7]]}}}],["both",{"_index":1009,"t":{"334":{"position":[[1417,4],[1748,4]]},"336":{"position":[[1343,4],[1682,4]]}}}],["bound",{"_index":1062,"t":{"348":{"position":[[230,5]]}}}],["branch",{"_index":363,"t":{"214":{"position":[[154,6]]}}}],["browser",{"_index":374,"t":{"214":{"position":[[399,7]]}}}],["buffer",{"_index":135,"t":{"192":{"position":[[630,8],[1667,8]]},"233":{"position":[[222,6]]}}}],["buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd",{"_index":840,"t":{"304":{"position":[[139,55]]}}}],["bug",{"_index":1104,"t":{"348":{"position":[[1488,4]]}}}],["build",{"_index":458,"t":{"224":{"position":[[266,5],[306,5]]}}}],["built",{"_index":348,"t":{"210":{"position":[[16,5]]}}}],["byte",{"_index":670,"t":{"259":{"position":[[242,5]]}}}],["bytes/sec",{"_index":570,"t":{"242":{"position":[[240,9]]}}}],["c",{"_index":272,"t":{"202":{"position":[[518,1],[898,1]]},"238":{"position":[[214,1]]},"250":{"position":[[83,1]]},"306":{"position":[[343,1]]},"320":{"position":[[122,1],[1592,1]]}}}],["c.end",{"_index":632,"t":{"250":{"position":[[310,8]]},"320":{"position":[[936,8],[1824,8]]}}}],["c.execute('select",{"_index":628,"t":{"250":{"position":[[251,17]]},"320":{"position":[[484,17],[569,17],[695,17],[727,17],[1765,17]]}}}],["c.query('show",{"_index":626,"t":{"250":{"position":[[187,13]]},"320":{"position":[[298,13],[1701,13]]}}}],["c.query('som",{"_index":944,"t":{"320":{"position":[[379,13]]}}}],["ca",{"_index":775,"t":{"294":{"position":[[793,2],[805,2]]},"316":{"position":[[309,3]]}}}],["cach",{"_index":471,"t":{"227":{"position":[[215,6],[256,6],[322,5],[416,5],[480,5]]},"229":{"position":[[52,5]]},"231":{"position":[[36,6],[63,6],[173,5]]},"306":{"position":[[603,5]]}}}],["call",{"_index":132,"t":{"192":{"position":[[520,4],[560,4],[1549,5],[2556,6]]},"227":{"position":[[209,5]]},"281":{"position":[[88,4],[628,5],[1032,5]]},"306":{"position":[[237,4]]}}}],["callback",{"_index":172,"t":{"192":{"position":[[1443,9]]},"200":{"position":[[8,8]]},"202":{"position":[[200,8]]},"204":{"position":[[97,8],[1059,8],[1485,8]]},"208":{"position":[[151,8],[404,8]]},"229":{"position":[[598,8]]},"257":{"position":[[453,9]]},"290":{"position":[[8,8]]},"292":{"position":[[8,8]]},"294":{"position":[[8,8],[830,8]]}}}],["callback'",{"_index":1000,"t":{"334":{"position":[[470,10],[822,10],[1226,10],[1561,10]]}}}],["callback(nul",{"_index":182,"t":{"192":{"position":[[1646,14]]}}}],["candid",{"_index":1083,"t":{"348":{"position":[[859,9]]}}}],["capabilityflag",{"_index":647,"t":{"257":{"position":[[91,15]]},"296":{"position":[[283,16]]},"302":{"position":[[369,16]]},"314":{"position":[[859,16],[889,16],[919,16]]}}}],["case",{"_index":173,"t":{"192":{"position":[[1461,5]]},"242":{"position":[[352,4]]},"294":{"position":[[739,4]]}}}],["catalog",{"_index":882,"t":{"314":{"position":[[1139,8]]}}}],["catch",{"_index":261,"t":{"200":{"position":[[376,5],[563,5]]},"202":{"position":[[602,5]]},"204":{"position":[[1246,5]]},"208":{"position":[[592,5]]},"294":{"position":[[1143,5]]},"320":{"position":[[415,5]]},"336":{"position":[[131,5],[276,5],[429,5],[603,5],[763,5],[974,5],[1148,5],[1244,5],[1491,5],[1585,5]]}}}],["catch((err",{"_index":164,"t":{"192":{"position":[[1176,12]]},"246":{"position":[[620,12]]},"320":{"position":[[1426,12]]}}}],["catch(console.log",{"_index":332,"t":{"206":{"position":[[1607,19]]}}}],["catch(funct",{"_index":962,"t":{"320":{"position":[[1880,15]]}}}],["caus",{"_index":1099,"t":{"348":{"position":[[1407,5]]}}}],["caution",{"_index":397,"t":{"214":{"position":[[816,7]]},"348":{"position":[[387,7]]}}}],["cb",{"_index":183,"t":{"192":{"position":[[1835,3]]},"242":{"position":[[754,4]]},"314":{"position":[[190,3]]}}}],["cb(err",{"_index":191,"t":{"192":{"position":[[2196,8]]}}}],["cb(null",{"_index":185,"t":{"192":{"position":[[2065,8]]},"242":{"position":[[874,8]]},"314":{"position":[[391,9],[455,8]]}}}],["cd",{"_index":365,"t":{"214":{"position":[[189,2],[643,2]]}}}],["cert",{"_index":767,"t":{"294":{"position":[[211,5],[520,5],[808,4]]},"316":{"position":[[260,5]]}}}],["cert.pem",{"_index":768,"t":{"294":{"position":[[249,11],[558,11],[796,8]]},"316":{"position":[[298,10],[341,11]]}}}],["chang",{"_index":375,"t":{"214":{"position":[[420,7]]},"218":{"position":[[39,7],[106,8],[211,8],[227,6],[303,7],[343,7],[363,6]]},"277":{"position":[[24,7]]},"279":{"position":[[24,7]]},"281":{"position":[[24,7]]},"348":{"position":[[301,7],[471,7],[747,8],[930,7]]}}}],["changedrow",{"_index":715,"t":{"277":{"position":[[148,11],[657,12]]},"279":{"position":[[554,12],[680,12]]},"281":{"position":[[868,12]]},"318":{"position":[[554,14]]},"322":{"position":[[572,14]]}}}],["changeus",{"_index":501,"t":{"229":{"position":[[749,13]]},"242":{"position":[[963,12]]}}}],["characterset",{"_index":646,"t":{"257":{"position":[[77,13]]},"296":{"position":[[266,13]]},"302":{"position":[[352,13]]},"314":{"position":[[839,13],[1247,13]]}}}],["check",{"_index":68,"t":{"184":{"position":[[7,5]]},"186":{"position":[[57,5]]},"224":{"position":[[13,5],[119,5],[158,6]]},"270":{"position":[[374,5]]},"285":{"position":[[13,5],[372,8],[477,8]]}}}],["checkout",{"_index":386,"t":{"214":{"position":[[612,8]]}}}],["ci",{"_index":367,"t":{"214":{"position":[[240,2],[679,2]]}}}],["class",{"_index":744,"t":{"285":{"position":[[628,5]]},"344":{"position":[[1428,5],[1669,5]]}}}],["classif",{"_index":1090,"t":{"348":{"position":[[1098,15]]}}}],["classifi",{"_index":1073,"t":{"348":{"position":[[618,10],[1354,10]]}}}],["clear",{"_index":457,"t":{"224":{"position":[[256,5],[292,5]]}}}],["cli",{"_index":382,"t":{"214":{"position":[[541,3]]},"320":{"position":[[2201,5]]}}}],["client",{"_index":67,"t":{"182":{"position":[[382,6]]},"188":{"position":[[68,6],[143,7],[220,6]]},"192":{"position":[[51,6],[1577,6],[2656,6]]},"194":{"position":[[68,6]]},"236":{"position":[[171,6]]},"257":{"position":[[276,6],[383,7]]},"259":{"position":[[318,7]]},"298":{"position":[[237,6],[281,6]]},"306":{"position":[[34,6]]},"310":{"position":[[34,6]]},"312":{"position":[[34,6]]}}}],["clientflag",{"_index":836,"t":{"302":{"position":[[62,11]]}}}],["clientflags.compress",{"_index":838,"t":{"302":{"position":[[397,21]]}}}],["clientplugindata(password1",{"_index":231,"t":{"194":{"position":[[789,27]]}}}],["clientplugindata(password2",{"_index":233,"t":{"194":{"position":[[929,27]]}}}],["clientplugindata(password3",{"_index":235,"t":{"194":{"position":[[1069,27]]}}}],["clone",{"_index":384,"t":{"214":{"position":[[557,5]]}}}],["close",{"_index":473,"t":{"227":{"position":[[250,5]]},"229":{"position":[[72,6],[635,5]]},"231":{"position":[[187,7]]},"259":{"position":[[405,5]]},"348":{"position":[[895,5]]}}}],["co",{"_index":622,"t":{"250":{"position":[[39,2],[353,2]]},"320":{"position":[[1548,2],[2004,2]]}}}],["co(funct",{"_index":624,"t":{"250":{"position":[[59,12]]},"320":{"position":[[1568,12]]}}}],["co.j",{"_index":940,"t":{"320":{"position":[[9,5]]}}}],["code",{"_index":147,"t":{"192":{"position":[[821,4]]},"222":{"position":[[171,4]]},"259":{"position":[[230,4]]},"285":{"position":[[24,4]]},"314":{"position":[[425,5],[498,5],[683,5]]}}}],["column",{"_index":486,"t":{"229":{"position":[[239,6],[334,6],[480,8]]},"296":{"position":[[723,7],[846,7],[920,9],[957,9]]},"302":{"position":[[832,7],[955,7],[1029,9],[1066,9]]}}}],["columnlength",{"_index":889,"t":{"314":{"position":[[1265,13]]}}}],["columntyp",{"_index":891,"t":{"314":{"position":[[1284,11]]}}}],["come",{"_index":480,"t":{"229":{"position":[[37,5]]}}}],["command",{"_index":463,"t":{"224":{"position":[[466,7]]},"257":{"position":[[203,8]]},"259":{"position":[[6,7],[162,7],[222,7],[291,8]]},"320":{"position":[[842,8]]},"348":{"position":[[547,7]]}}}],["commandcod",{"_index":668,"t":{"259":{"position":[[190,13]]}}}],["commit",{"_index":465,"t":{"224":{"position":[[495,7]]}}}],["commonli",{"_index":1018,"t":{"342":{"position":[[33,8]]}}}],["compat",{"_index":445,"t":{"222":{"position":[[187,10]]},"348":{"position":[[178,14],[290,10],[1122,13]]}}}],["compil",{"_index":405,"t":{"216":{"position":[[121,8]]},"298":{"position":[[101,9]]}}}],["complet",{"_index":381,"t":{"214":{"position":[[500,8]]},"216":{"position":[[52,8]]}}}],["complianc",{"_index":450,"t":{"224":{"position":[[49,10]]}}}],["compon",{"_index":401,"t":{"216":{"position":[[12,9],[165,11],[273,10]]},"218":{"position":[[12,9],[285,10]]},"220":{"position":[[203,10]]},"222":{"position":[[121,9],[229,10]]},"224":{"position":[[173,10]]}}}],["compress",{"_index":63,"t":{"182":{"position":[[350,11]]}}}],["concept",{"_index":740,"t":{"285":{"position":[[89,9]]}}}],["config",{"_index":85,"t":{"186":{"position":[[239,6]]},"192":{"position":[[126,6],[345,6],[1347,6]]},"194":{"position":[[354,6]]},"236":{"position":[[75,6]]}}}],["confirm",{"_index":992,"t":{"334":{"position":[[59,9]]},"336":{"position":[[59,9]]}}}],["conn",{"_index":149,"t":{"192":{"position":[[832,4],[1682,4]]},"194":{"position":[[518,4]]},"204":{"position":[[1538,4],[1797,5]]},"206":{"position":[[1435,4],[1522,4]]},"208":{"position":[[166,4],[284,4]]},"248":{"position":[[75,4]]},"266":{"position":[[128,4]]},"268":{"position":[[116,4]]},"273":{"position":[[107,4],[552,4]]},"275":{"position":[[124,4]]},"277":{"position":[[363,4]]},"279":{"position":[[214,4]]},"281":{"position":[[341,4]]},"296":{"position":[[115,6]]},"300":{"position":[[168,4]]},"302":{"position":[[201,6]]},"314":{"position":[[599,6]]},"316":{"position":[[88,4]]},"318":{"position":[[724,4]]},"322":{"position":[[761,4]]},"324":{"position":[[62,4]]},"326":{"position":[[444,4]]},"328":{"position":[[481,4]]},"330":{"position":[[418,4]]},"344":{"position":[[1450,5]]},"346":{"position":[[455,4]]}}}],["conn.clos",{"_index":876,"t":{"314":{"position":[[700,13],[1482,13]]}}}],["conn.end",{"_index":333,"t":{"206":{"position":[[1639,12]]},"248":{"position":[[210,11]]},"318":{"position":[[2089,11]]},"322":{"position":[[2124,11]]},"324":{"position":[[324,11]]},"326":{"position":[[1357,11]]},"328":{"position":[[1392,11]]},"330":{"position":[[1214,11]]},"346":{"position":[[1249,11]]}}}],["conn.execute('select",{"_index":612,"t":{"248":{"position":[[161,20]]},"270":{"position":[[108,20]]}}}],["conn.execute>(sql",{"_index":734,"t":{"281":{"position":[[650,53]]}}}],["conn.query>('cal",{"_index":926,"t":{"318":{"position":[[1624,45]]},"322":{"position":[[1661,45]]}}}],["conn.query('drop",{"_index":908,"t":{"318":{"position":[[823,33],[1343,33]]},"322":{"position":[[860,33],[1380,33]]},"326":{"position":[[543,33]]},"328":{"position":[[580,33]]},"330":{"position":[[517,33]]},"346":{"position":[[554,33]]}}}],["conn.query(sql",{"_index":720,"t":{"277":{"position":[[460,32]]}}}],["conn.query(sql",{"_index":726,"t":{"279":{"position":[[349,34]]}}}],["conn.query('select",{"_index":704,"t":{"273":{"position":[[185,35]]}}}],["conn.query('show",{"_index":706,"t":{"273":{"position":[[321,33],[797,33]]}}}],["conn.query(sql",{"_index":711,"t":{"275":{"position":[[279,34]]}}}],["conn.query 提示 You can also utilize React components in the changes option. Example History Version Changes v1.0.0 Some change message.","s":"History","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"#history","p":317},{"i":328,"t":"See the Stability Badges for more detais. import { Stability } from '@site/src/components/Stability'; 提示 You can also utilize React components in the message option. Available levels: 0, 1, 1.1, 1.2, 2 and 3. Example 2Stable 2Stable Some message.","s":"Stability","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"#stability","p":317},{"i":330,"t":"import { FAQ } from '@site/src/components/FAQ'; > Some markdown (**MDX**) content. 提示 The FAQ component can be utilized in any section or page. Code blocks are compatible and can be used within the FAQ component. Example Title Some markdown (MDX) content.","s":"FAQ","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"#faq","p":317},{"i":332,"t":"import { ExternalCodeEmbed } from '@site/src/components/ExternalCodeEmbed'; Example","s":"ExternalCodeEmbed","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"#externalcodeembed","p":317},{"i":334,"t":"npm run test Check Prettier and ESLint rules for compliance npm run lintcheck Included in the GitHub Actions workflow. Check for typings errors 1Experimental Checks for MDX components are missing. npm run typecheck Included in the GitHub Actions workflow. Clear and build the website npm run clear npm run build Included in the GitHub Actions workflow. Fix issues from Prettier and ESLint rules npm run lint To prevent lint issues, it is recommended to execute this command before creating your commit. Not included in the GitHub Actions workflow.","s":"Running Tests","u":"/node-mysql2/zh-CN/docs/contributing/website","h":"#running-tests","p":317},{"i":336,"t":"MySQL2 aims to be a drop in replacement for Node MySQL. 备注 If you see any API incompatibilities with Node MySQL, please report via github issue. Not only MySQL2 offers better performance over Node MySQL, we also support these additional features: Prepared Statements Promise Wrapper Authentication Switch More Features MySQL Server Pooling SSL MySQL Compression Binary Log Protocol Client","s":"Documentation","u":"/node-mysql2/zh-CN/docs/documentation","h":"","p":335},{"i":338,"t":"Please check these examples for MySQL2.","s":"Examples","u":"/node-mysql2/zh-CN/docs/documentation","h":"#examples","p":335},{"i":340,"t":"zeroFill flag is ignored in type conversion. You need to check corresponding field's zeroFill flag and convert to string manually if this is of importance to you. DECIMAL and NEWDECIMAL types always returned as string unless you pass this config option: { decimalNumbers: true, } 备注 This option could lose precision on the number as Javascript Number is a Float!","s":"Known incompatibilities with Node MySQL","u":"/node-mysql2/zh-CN/docs/documentation","h":"#known-incompatibilities-with-node-mysql","p":335},{"i":342,"t":"Wire protocol documentation Node MySQL - Most popular node.js mysql client library node-mariasql - Bindings to libmariasql. One of the fastest clients node-libmysqlclient - Bindings to libmysqlclient go-mysql - MySQL Go client (prepared statements, binlog protocol, server)","s":"Other Resources","u":"/node-mysql2/zh-CN/docs/documentation","h":"#other-resources","p":335},{"i":344,"t":"https://gist.github.com/sidorares/ffe9ee9c423f763e3b6b npm run benchmarks node-mysql-benchmarks try to run example benchmarks on your system","s":"Benchmarks","u":"/node-mysql2/zh-CN/docs/documentation","h":"#benchmarks","p":335},{"i":347,"t":"createServer() - creates server instance Server.listen - listen port / unix socket (same arguments as net.Server.listen)","s":"Server","u":"/node-mysql2/zh-CN/docs/documentation/mysql-server","h":"#server","p":345},{"i":349,"t":"connect new incoming connection.","s":"Events","u":"/node-mysql2/zh-CN/docs/documentation/mysql-server","h":"#events","p":345},{"i":351,"t":"serverHandshake({ serverVersion, protocolVersion, connectionId, statusFlags, characterSet, capabilityFlags }) send server handshake initialisation packet, wait handshake response and start listening for commands writeOk({ affectedRows: num, insertId: num }) send OK packet to client writeEof(warnings, statusFlags) send EOF packet writeTextResult(rows, fields) write query result to client. Rows and fields are in the same format as in connection.query callback. writeColumns(fields) write fields + EOF packets. writeTextRow(row) write array (not hash!) of values as result row TODO: binary protocol","s":"Connection","u":"/node-mysql2/zh-CN/docs/documentation/mysql-server","h":"#connection","p":345},{"i":353,"t":"Every command packet received by the server will be emitted as a packet event with the parameters: packet: Packet The packet itself knownCommand: boolean is this command known to the server *commandCode: number the parsed command code (first byte) In addition special events are emitted for commands received from the client. If no listener is present a fallback behavior will be invoked. quit() Default: close the connection init_db(schemaName: string) Default: return OK query(sql: string) Please attach a listener to this. Default: return HA_ERR_INTERNAL_ERROR field_list(table: string, fields: string) Default: return ER_WARN_DEPRECATED_SYNTAX ping() - Default: return OK","s":"Events","u":"/node-mysql2/zh-CN/docs/documentation/mysql-server","h":"#events-1","p":345},{"i":355,"t":"During the connection phase the server may ask the client to switch to a different auth method. If the authPlugins connection config option is set, it must be an object where each key is the name of a potential authentication plugin requested by the server, and the corresponding value must be a function that optionally receives the connection config options and returns another function, which in turn, optionally receives the switch request data. The plugin is loaded with a ({user,password,...}) signature, and each call has a (pluginData) signature. Each call should make the plugin return any additional authentication data (Buffer) that should be sent back to the server, either synchronously or asynchronously using a Promise, or should yield an error accordingly. Example: (imaginary ssh-key-auth plugin) pseudo code const conn = mysql.createConnection({ user: 'test_user', password: 'test', database: 'test_database', authPlugins: { 'ssh-key-auth': function ({ password }) { return function (pluginData) { return getPrivate(key) .then((key) => { const response = encrypt(key, password, pluginData); // continue handshake by sending response data return response; }) .catch((err) => { // throw error to propagate error to connect/changeUser handlers }); }; }, }, }); There is also a deprecated API where if a authSwitchHandler connection config option is set it must be a function that receives switch request data and responds via a callback. In this case, the first invocation always has a ({pluginName, pluginData}) signature, following calls - ({pluginData}). The client replies with an opaque blob matching the requested plugin via callback(null, data: Buffer). const conn = mysql.createConnection({ user: 'test_user', password: 'test', database: 'test_database', authSwitchHandler: function ({ pluginName, pluginData }, cb) { if (pluginName === 'ssh-key-auth') { getPrivateKey((key) => { const response = encrypt(key, pluginData); // continue handshake by sending response data // respond with error to propagate error to connect/changeUser handlers cb(null, response); }); } else { const err = new Error( `Unknown AuthSwitchRequest plugin name ${pluginName}` ); err.fatal = true; cb(err); } }, }); The initial handshake is always performed using mysql_native_password plugin. This will be possible to override in future versions. Note that if the mysql_native_password method is requested it will be handled internally according to Authentication::Native41 and no authPlugins function or the authSwitchHandler will be invoked. These MAY be called multiple times if the plugin algorithm requires multiple roundtrips of data exchange between client and server.","s":"Authentication Switch Request","u":"/node-mysql2/zh-CN/docs/documentation/authentication-switch","h":"","p":354},{"i":357,"t":"If the user requires multi-factor authentication in the server, the client will receive a AuthNextFactor request, which is similar in structure to the regular authentication switch request and contains the name and possible initial data for the additional authentication factor plugin (up to 3). Additional passwords can be provided using the connection config options - password2 and password3. Again, for each authentication factor, multiple roundtrips of data exchange can be required by the plugin algoritm. const conn = mysql.createConnection({ user: 'test_user', password: 'secret1', password2: 'secret2', password3: 'secret3', database: 'test_database', authPlugins: { // password1 === password 'auth-plugin1': function ({ password1 }) { return function (serverPluginData) { return clientPluginData(password1, serverPluginData); }; }, 'auth-plugin2': function ({ password2 }) { return function (serverPluginData) { return clientPluginData(password2, serverPluginData); }; }, 'auth-plugin3': function ({ password3 }) { return function (serverPluginData) { return clientPluginData(password3, serverPluginData); }; }, }, });","s":"Multi-factor authentication","u":"/node-mysql2/zh-CN/docs/documentation/authentication-switch","h":"#multi-factor-authentication","p":354},{"i":360,"t":"Similar to connection.query(). connection.execute('select 1 + ? + ? as result', [5, 6], (err, rows) => { // rows: [ { result: 12 } ] // internally 'select 1 + ? + ? as result' is prepared first. On subsequent calls cached statement is re-used }); // close cached statement for 'select 1 + ? + ? as result'. noop if not in cache connection.unprepare('select 1 + ? + ? as result'); Note that connection.execute() will cache the prepared statement for better performance, remove the cache with connection.unprepare() when you're done.","s":"Automatic creation, cached and re-used by connection","u":"/node-mysql2/zh-CN/docs/documentation/prepared-statements","h":"#automatic-creation-cached-and-re-used-by-connection","p":358},{"i":362,"t":"Manually prepared statements doesn't comes with LRU cache and SHOULD be closed using statement.close() instead of connection.unprepare(). connection.prepare('select ? + ? as tests', (err, statement) => { // statement.parameters - array of column definitions, length === number of params, here 2 // statement.columns - array of result column definitions. Can be empty if result schema is dynamic / not known // statement.id // statement.query statement.execute([1, 2], (err, rows, columns) => { // -> [ { tests: 3 } ] }); // don't use connection.unprepare(), it won't work! // note that there is no callback here. There is no statement close ack at protocol level. statement.close(); }); Note that you should not use statement after connection reset (changeUser() or disconnect). Statement scope is connection, you need to prepare statement for each new connection in order to use it.","s":"Manual prepare / execute","u":"/node-mysql2/zh-CN/docs/documentation/prepared-statements","h":"#manual-prepare--execute","p":358},{"i":364,"t":"maxPreparedStatements : We keep the cached statements in a lru-cache. Default size is 16000 but you can use this option to override it. Any statements that are dropped from cache will be closed.","s":"Configuration","u":"/node-mysql2/zh-CN/docs/documentation/prepared-statements","h":"#configuration","p":358},{"i":366,"t":"The bind parameter values passed to execute are serialized JS -> MySQL as: null -> NULL number -> DOUBLE boolean -> TINY (0 for false, 1 for true) object -> depending on prototype: Date -> DATETIME JSON like object - JSON Buffer -> VAR_STRING Other -> VAR_STRING Passing in undefined or a function will result in an error.","s":"Serialization of bind parameters","u":"/node-mysql2/zh-CN/docs/documentation/prepared-statements","h":"#serialization-of-bind-parameters","p":358},{"i":368,"t":"MySQL2 provides execute helper which will prepare and query the statement. You can also manually prepare / unprepare statement with prepare / unprepare methods. connection.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [1, null, 3], (err, rows, fields) => { console.log(err, rows, fields); connection.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [3, null, 3], (err, rows, fields) => { console.log(err, rows, fields); connection.unprepare('select ?+1 as qqq, ? as rrr, ? as yyy'); connection.execute( 'select ?+1 as qqq, ? as rrr, ? as yyy', [3, null, 3], (err, rows, fields) => { console.log(err, rows, fields); } ); } ); } );","s":"Prepared Statements Helper","u":"/node-mysql2/zh-CN/docs/documentation/prepared-statements","h":"#prepared-statements-helper","p":358},{"i":370,"t":"For Prepared Statements examples, please see here.","s":"Examples","u":"/node-mysql2/zh-CN/docs/documentation/prepared-statements","h":"#examples","p":358},{"i":372,"t":"In addition to errback interface there is thin wrapper to expose Promise-based api","s":"Promise Wrappers","u":"/node-mysql2/zh-CN/docs/documentation/promise-wrapper","h":"","p":371},{"i":374,"t":"/* eslint-env es6 */ const mysql = require('mysql2/promise'); // or require('mysql2').createConnectionPromise mysql .createConnection({ /* same parameters as for non-promise createConnection */ }) .then((conn) => conn.query('select foo from bar')) .then(([rows, fields]) => console.log(rows[0].foo)); const pool = require('mysql2/promise').createPool({}); // or require('mysql2').createPoolPromise({}) or require('mysql2').createPool({}).promise() pool .getConnection() .then((conn) => { const res = conn.query('select foo from bar'); conn.release(); return res; }) .then((result) => { console.log(result[0][0].foo); }) .catch((err) => { console.log(err); // any of connection time or query time errors from above });","s":"Basic Promise","u":"/node-mysql2/zh-CN/docs/documentation/promise-wrapper","h":"#basic-promise","p":371},{"i":376,"t":"async function example1() { const mysql = require('mysql2/promise'); const conn = await mysql.createConnection({ database: test }); const [rows, fields] = await conn.execute('select ?+? as sum', [2, 2]); await conn.end(); } async function example2() { const mysql = require('mysql2/promise'); const pool = mysql.createPool({ database: test }); // execute in parallel, next console.log in 3 seconds await Promise.all([ pool.query('select sleep(2)'), pool.query('select sleep(3)'), ]); console.log('3 seconds after'); await pool.end(); }","s":"ES7 Async Await","u":"/node-mysql2/zh-CN/docs/documentation/promise-wrapper","h":"#es7-async-await","p":371},{"i":378,"t":"const mysql = require('mysql2'); const co = require('co'); co(function* () { const c = yield mysql.createConnectionPromise({ user: 'root', namedPlaceholders: true, }); const rows = yield c.query('show databases'); console.log(rows); console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 })); yield c.end(); }); Examples in /examples/promise-co-await","s":"With CO","u":"/node-mysql2/zh-CN/docs/documentation/promise-wrapper","h":"#with-co","p":371},{"i":380,"t":"提示 To explore the examples, please use the sidebar navigation on desktop or access the menu on mobile devices.","s":"Examples","u":"/node-mysql2/zh-CN/docs/examples","h":"","p":379},{"i":382,"t":"MySQL-pg-proxy - MySQL to Postgres proxy server. MySQLite.js - MySQL server with JS-only (emscripten compiled) sqlite backend. SQL-engine - MySQL server with LevelDB backend. MySQL-osquery-proxy - Connect to facebook osquery using MySQL client PlyQL - Connect to Druid using MySQL client","s":"Examples using MySQL server API","u":"/node-mysql2/zh-CN/docs/examples","h":"#examples-using-mysql-server-api","p":379},{"i":384,"t":"适用于Node.js的MySQL客户端,专注于性能优化。支持SQL预处理、非UTF-8编码支持、二进制文件编码支持、压缩和SSL等等 查看更多。","s":"MySQL2","u":"/node-mysql2/zh-CN/docs","h":"","p":383},{"i":386,"t":"MySQL2 可以跨平台使用,毫无疑问可以安装在 Linux、Mac OS 或 Windows 上。 JavaScript TypeScript npm install --save mysql2 npm install --save mysql2 npm install --save-dev @types/node For TypeScript documentation and examples, see here.","s":"安装","u":"/node-mysql2/zh-CN/docs","h":"#安装","p":383},{"i":388,"t":"To explore more queries examples, please visit the example sections Simple Queries and Prepared Statements. Promise Callback // 导入模块 import mysql from 'mysql2/promise'; // 创建一个数据库连接 const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // 简单查询 try { const [results, fields] = await connection.query( 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45' ); console.log(results); // 结果集 console.log(fields); // 额外的元数据(如果有的话) } catch (err) { console.log(err); } // 使用占位符 try { const [results] = await connection.query( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Page', 45] ); console.log(results); } catch (err) { console.log(err); } // 导入模块 const mysql = require('mysql2'); // 创建一个数据库连接 const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // 简单查询 connection.query( 'SELECT * FROM `table` WHERE `name` = \"Page\" AND `age` > 45', function (err, results, fields) { console.log(results); // 结果集 console.log(fields); // 额外的元数据(如果有的话) } ); // 使用占位符 connection.query( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Page', 45], function (err, results) { console.log(results); } );","s":"查询数据","u":"/node-mysql2/zh-CN/docs","h":"#查询数据","p":383},{"i":390,"t":"使用 MySQL2,您还可以提前准备好SQL预处理语句。 使用准备好的SQL预处理语句,MySQL 不必每次都为相同的查询做准备,这会带来更好的性能。 如果您不知道为什么它们很重要,请查看这些讨论: 如何防止预处理语句SQL注入攻击 MySQL2 提供了 execute 辅助函数,它将准备和查询语句。 您还可以使用 prepare / unprepare 方法手动准备/取消准备。 To explore more Prepared Statements and Placeholders examples, please visit the example section Prepared Statements. Promise Callback import mysql from 'mysql2/promise'; try { // 创建一个数据库连接 const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // execute 将在内部调用 prepare 和 query const [results, fields] = await connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Rick C-137', 53] ); console.log(results); // 结果集 console.log(fields); // 额外的元数据(如果有的话) } catch (err) { console.log(err); } const mysql = require('mysql2'); // 创建一个数据库连接 const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // execute 将在内部调用 prepare 和 query connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Rick C-137', 53], function (err, results, fields) { console.log(results); // 结果集 console.log(fields); // 额外的元数据(如果有的话) } ); 提示 如果再次执行相同的语句,他将从缓存中选取,这能有效的节省准备查询时间获得更好的性能。","s":"SQL预处理的使用","u":"/node-mysql2/zh-CN/docs","h":"#sql预处理的使用","p":383},{"i":392,"t":"连接池通过重用以前的连接来帮助减少连接到 MySQL 服务器所花费的时间,当你完成它们时让它们保持打开而不是关闭。 这改善了查询的延迟,因为您避免了建立新连接所带来的所有开销。 To explore more Connection Pools examples, please visit the example section createPool. Promise Callback import mysql from 'mysql2/promise'; // 创建连接池,设置连接池的参数 const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', waitForConnections: true, connectionLimit: 10, maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit` idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000 queueLimit: 0, enableKeepAlive: true, keepAliveInitialDelay: 0, }); const mysql = require('mysql2'); // 创建连接池,设置连接池的参数 const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', waitForConnections: true, connectionLimit: 10, maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit` idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000 queueLimit: 0, enableKeepAlive: true, keepAliveInitialDelay: 0, }); 备注 该池不会预先创建所有连接,而是根据需要创建它们,直到达到连接限制。 您可以像直接连接一样使用池(使用 pool.query() 和 pool.execute()): Promise Callback try { // For pool initialization, see above const [rows, fields] = await pool.query('SELECT `field` FROM `table`'); // Connection is automatically released when query resolves } catch (err) { console.log(err); } // For pool initialization, see above pool.query('SELECT `field` FROM `table`', function (err, rows, fields) { // Connection is automatically released when query resolves }); 或者,也可以手动从池中获取连接并稍后返回: Promise Callback // For pool initialization, see above const conn = await pool.getConnection(); // Do something with the connection await conn.query(/* ... */); // Don't forget to release the connection when finished! pool.releaseConnection(conn); // For pool initialization, see above pool.getConnection(function (err, conn) { // Do something with the connection conn.query(/* ... */); // Don't forget to release the connection when finished! pool.releaseConnection(conn); }); Additionally, directly release the connection using the connection object: conn.release();","s":"连接池的使用","u":"/node-mysql2/zh-CN/docs","h":"#using-connection-pools","p":383},{"i":394,"t":"MySQL2 也支持 Promise API。 这与 ES7 异步等待非常有效。 import mysql from 'mysql2/promise'; async function main() { // create the connection const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); // query database const [rows, fields] = await connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Morty', 14] ); } MySQL2 使用范围内可用的默认 Promise 对象。 但是你可以选择你想使用的 Promise 实现。 // 导入模块 import mysql from 'mysql2/promise'; // get the promise implementation, we will use bluebird import bluebird from 'bluebird'; // create the connection, specify bluebird as Promise const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', Promise: bluebird, }); // query database const [rows, fields] = await connection.execute( 'SELECT * FROM `table` WHERE `name` = ? AND `age` > ?', ['Morty', 14] ); MySQL2 还在 Pools 上公开了一个 .promise()函数,因此您可以从同一个池创建一个 promise/non-promise 连接。 import mysql from 'mysql2'; async function main() { // create the pool const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', }); // now get a Promise wrapped instance of that pool const promisePool = pool.promise(); // query database using promises const [rows, fields] = await promisePool.query('SELECT 1'); } MySQL2 在 Connections 上公开了一个 .promise()函数,以“升级”现有的 non-promise 连接以使用 Promise。 const mysql = require('mysql2'); // create the connection const conn = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', }); conn .promise() .query('SELECT 1') .then(([rows, fields]) => { console.log(rows); }) .catch(console.log) .then(() => conn.end());","s":"Promise封装","u":"/node-mysql2/zh-CN/docs","h":"#promise封装","p":383},{"i":396,"t":"如果你有两个相同名称的列,你可能希望以数组而不是对象的形式获取结果,为了防止冲突,这是与 Node MySQL 库的区别。 例如: SELECT 1 AS `foo`, 2 AS `foo`. 您可以在连接级别(适用于所有查询)或查询级别(仅适用于该特定查询)启用此设置。 连接级别​ Promise Callback const conn = await mysql.createConnection({ host: 'localhost', database: 'test', user: 'root', rowsAsArray: true, }); const conn = mysql.createConnection({ host: 'localhost', database: 'test', user: 'root', rowsAsArray: true, }); 查询级别​ Promise Callback try { const [results, fields] = await conn.query({ sql: 'SELECT 1 AS `foo`, 2 AS `foo`', rowsAsArray: true, }); console.log(results); // 返回数组而不是数组对象 console.log(fields); // 无变化 } catch (err) { console.log(err); } conn.query( { sql: 'SELECT 1 AS `foo`, 2 AS `foo`', rowsAsArray: true, }, function (err, results, fields) { console.log(results); // in this query, results will be an array of arrays rather than an array of objects console.log(fields); // fields are unchanged } ); Getting Help Need help? Ask your question on Stack Overflow or GitHub. If you've encountered an issue, please file it on GitHub.","s":"结果返回","u":"/node-mysql2/zh-CN/docs","h":"#结果返回","p":383},{"i":398,"t":"index.js 'use strict'; const mysql = require('mysql2'); const through2 = require('through2'); const binlogStream = mysql.createBinlogStream({ serverId: 123, // slave ID, first field in \"show slave hosts\" sql response // you can also specify slave host, username, password and port masterId: 0, filename: 'mysql-bin.000007', binlogPos: 120, flags: 1, // 1 = \"non-blocking mode\" }); binlogStream.pipe( through2.obj((obj, enc, next) => { console.log(obj); next(); }) );","s":"Binlog Watcher","u":"/node-mysql2/zh-CN/docs/examples/binlog-watcher","h":"","p":397},{"i":401,"t":"You can use named placeholders for parameters by setting namedPlaceholders config value or query/execute time option. Named placeholders are converted to unnamed ? on the client (mysql protocol does not support named parameters). If you reference parameter multiple times under the same name it is sent to server multiple times. Unnamed placeholders can still be used by providing the values as an array instead of an object. connection.config.namedPlaceholders = true; connection.execute('select :x + :y as z', { x: 1, y: 2 }, (err, rows) => { // statement prepared as \"select ? + ? as z\" and executed with [1,2] values // rows returned: [ { z: 3 } ] }); connection.execute('select :x + :x as z', { x: 1 }, (err, rows) => { // select ? + ? as z, execute with [1, 1] }); connection.query('select :x + :x as z', { x: 1 }, (err, rows) => { // query select 1 + 1 as z }); // unnamed placeholders are still valid if the values are provided in an array connection.query('select ? + ? as z', [1, 1], (err, rows) => { // query select 1 + 1 as z });","s":"Named placeholders","u":"/node-mysql2/zh-CN/docs/documentation/extras","h":"#named-placeholders","p":399},{"i":403,"t":"const options = { sql: 'select A,B,C,D from foo', rowsAsArray: true }; connection.query(options, (err, results) => { /* results will be an array of arrays like this now: [[ 'field A value', 'field B value', 'field C value', 'field D value', ], ...] */ });","s":"Receiving rows as array of columns instead of hash with column name as key:","u":"/node-mysql2/zh-CN/docs/documentation/extras","h":"#receiving-rows-as-array-of-columns-instead-of-hash-with-column-name-as-key","p":399},{"i":405,"t":"In addition to sending local fs files you can send any stream using infileStreamFactory query option. If set, it has to be a function that return a readable stream. It gets file path from query as a parameter. Note: starting from version 2.0 infileStreamFactory is required parameter for LOAD DATA LOCAL INFILE. Response from server indicates that it wants access to a local file and no infileStreamFactory option is provided the query ends with error. // local file connection.query( 'LOAD DATA LOCAL INFILE \"/tmp/data.csv\" INTO TABLE test FIELDS TERMINATED BY ? (id, title)', onInserted1 ); // local stream const sql = 'LOAD DATA LOCAL INFILE \"mystream\" INTO TABLE test FIELDS TERMINATED BY ? (id, title)'; connection.query( { sql: sql, infileStreamFactory: function (path) { return getStream(); }, }, onInserted2 ); The infileStreamFactory option may also be set at a connection-level: const fs = require('fs'); const mysql = require('mysql2'); const connection = mysql.createConnection({ user: 'test', database: 'test', infileStreamFactory: (path) => { // Validate file path const validPaths = ['/tmp/data.csv']; if (!validPaths.includes(path)) { throw new Error( `invalid file path: ${path}: expected to be one of ${validPaths.join( ',' )}` ); } return fs.createReadStream(path); }, }); connection.query( 'LOAD DATA LOCAL INFILE \"/tmp/data.csv\" INTO TABLE test', onInserted );","s":"Sending tabular data with 'load infile' and local stream:","u":"/node-mysql2/zh-CN/docs/documentation/extras","h":"#sending-tabular-data-with-load-infile-and-local-stream","p":399},{"i":407,"t":"const net = require('net'); const mysql = require('mysql2'); const shape = require('shaper'); const connection = mysql.createConnection({ user: 'test', database: 'test', stream: net.connect('/tmp/mysql.sock').pipe(shape(10)), // emulate 10 bytes/sec link }); connection.query('SELECT 1+1 as test1', console.log); stream also can be a function. In that case function result has to be duplex stream, and it is used for connection transport. This is required if you connect pool using custom transport as new pooled connection needs new stream. Example connecting over socks5 proxy: const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const pool = mysql.createPool({ database: 'test', user: 'foo', password: 'bar', stream: function (cb) { const newStream = new SocksConnection( { host: 'remote.host', port: 3306 }, { host: 'localhost', port: 1080 } ); cb(null, newStream); }, }); In addition to password createConnection(), createPool() and changeUser() accept passwordSha1 option. This is useful when implementing proxies as plaintext password might be not available.","s":"Connecting using custom stream:","u":"/node-mysql2/zh-CN/docs/documentation/extras","h":"#connecting-using-custom-stream","p":399},{"i":410,"t":"npm install --save mysql2 npm install --save-dev @types/node The @types/node ensure the proper interaction between TypeScript and the Node.js modules used by MySQL2 (net, events, stream, tls, etc.). 信息 Requires TypeScript >=4.5.2.","s":"Installation","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#installation","p":408},{"i":412,"t":"You can import MySQL2 in two ways: By setting the esModuleInterop option to true in tsconfig.json import mysql from 'mysql2'; import mysql from 'mysql2/promise'; By setting the esModuleInterop option to false in tsconfig.json import * as mysql from 'mysql2'; import * as mysql from 'mysql2/promise';","s":"Usage","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#usage","p":408},{"i":414,"t":"import mysql, { ConnectionOptions } from 'mysql2'; const access: ConnectionOptions = { user: 'test', database: 'test', }; const conn = mysql.createConnection(access);","s":"Connection","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#connection","p":408},{"i":416,"t":"import mysql, { PoolOptions } from 'mysql2'; const access: PoolOptions = { user: 'test', database: 'test', }; const conn = mysql.createPool(access);","s":"Pool Connection","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#pool-connection","p":408},{"i":418,"t":"A simple query​ conn.query('SELECT 1 + 1 AS `test`;', (_err, rows) => { /** * @rows: [ { test: 2 } ] */ }); conn.execute('SELECT 1 + 1 AS `test`;', (_err, rows) => { /** * @rows: [ { test: 2 } ] */ }); The rows output will be these possible types: RowDataPacket[] RowDataPacket[][] ResultSetHeader ResultSetHeader[] ProcedureCallPacket In this example, you need to manually check the output types","s":"Query and Execute","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#query-and-execute","p":408},{"i":421,"t":"2Stable An array with the returned rows, for example: import mysql, { RowDataPacket } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', }); // SELECT conn.query('SELECT 1 + 1 AS `test`;', (_err, rows) => { console.log(rows); /** * @rows: [ { test: 2 } ] */ }); // SHOW conn.query('SHOW TABLES FROM `test`;', (_err, rows) => { console.log(rows); /** * @rows: [ { Tables_in_test: 'test' } ] */ }); Using rowsAsArray option as true: import mysql, { RowDataPacket } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', rowsAsArray: true, }); // SELECT conn.query( 'SELECT 1 + 1 AS test, 2 + 2 AS test;', (_err, rows) => { console.log(rows); /** * @rows: [ [ 2, 4 ] ] */ } ); // SHOW conn.query('SHOW TABLES FROM `test`;', (_err, rows) => { console.log(rows); /** * @rows: [ [ 'test' ] ] */ });","s":"RowDataPacket[]","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#rowdatapacket","p":408},{"i":423,"t":"2Stable Using multipleStatements option as true with multiple queries: import mysql, { RowDataPacket } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', multipleStatements: true, }); const sql = ` SELECT 1 + 1 AS test; SELECT 2 + 2 AS test; `; conn.query(sql, (_err, rows) => { console.log(rows); /** * @rows: [ [ { test: 2 } ], [ { test: 4 } ] ] */ });","s":"RowDataPacket[][]","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#rowdatapacket-1","p":408},{"i":425,"t":"2Stable History Version Changes v3.5.1 OkPacket is deprecated and might be removed in the future major release. Please use ResultSetHeader instead. changedRows option is deprecated and might be removed in the future major release. Please use affectedRows instead. For INSERT, UPDATE, DELETE, TRUNCATE, etc.: import mysql, { ResultSetHeader } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', }); const sql = ` SET @1 = 1; `; conn.query(sql, (_err, result) => { console.log(result); /** * @result: ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } */ });","s":"ResultSetHeader","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#resultsetheader","p":408},{"i":427,"t":"2Stable History Version Changes v3.5.1 Introduce ResultSetHeader[] For multiples INSERT, UPDATE, DELETE, TRUNCATE, etc. when using multipleStatements as true: import mysql, { ResultSetHeader } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', multipleStatements: true, }); const sql = ` SET @1 = 1; SET @2 = 2; `; conn.query(sql, (_err, results) => { console.log(results); /** * @results: [ ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 10, warningStatus: 0, changedRows: 0 }, ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } ] */ });","s":"ResultSetHeader[]","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#resultsetheader-1","p":408},{"i":429,"t":"2Stable History Version Changes v3.5.1 Introduce ProcedureCallPacket 提示 By performing a Call Procedure using INSERT, UPDATE, etc., the return will be a ProcedureCallPacket (even if you perform multiples queries and set multipleStatements to true): import mysql, { ProcedureCallPacket, ResultSetHeader } from 'mysql2'; const conn = mysql.createConnection({ user: 'test', database: 'test', }); /** ResultSetHeader */ conn.query('DROP PROCEDURE IF EXISTS myProcedure'); /** ResultSetHeader */ conn.query(` CREATE PROCEDURE myProcedure() BEGIN SET @1 = 1; SET @2 = 2; END `); /** ProcedureCallPacket */ const sql = 'CALL myProcedure()'; conn.query>(sql, (_err, result) => { console.log(result); /** * @result: ResultSetHeader { fieldCount: 0, affectedRows: 0, insertId: 0, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } */ }); For CREATE PROCEDURE and DROP PROCEDURE, these returns will be the default ResultSetHeader. By using SELECT and SHOW queries in a Procedure Call, it groups the results as: /** ProcedureCallPacket */ [RowDataPacket[], ResultSetHeader] For ProcedureCallPacket, please see the following examples.","s":"ProcedureCallPacket","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#procedurecallpacket","p":408},{"i":431,"t":"0Deprecated OkPacket is deprecated and might be removed in the future major release. Please use ResultSetHeader instead.","s":"OkPacket","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#okpacket","p":408},{"i":433,"t":"You can also check some code examples using MySQL2 and TypeScript to understand advanced concepts: Extending and using Interfaces with RowDataPacket Extending and using Interfaces with RowDataPacket and rowAsArray Extending and using Interfaces with RowDataPacket and multipleStatements Extending and using Interfaces with RowDataPacket, rowAsArray and multipleStatements Checking for ResultSetHeader, extending and using Interfaces with RowDataPacket from ProcedureCallPacket Checking for ResultSetHeader, extending and using Interfaces with RowDataPacket and rowAsArray from ProcedureCallPacket Creating a basic custom MySQL2 Class","s":"Examples","u":"/node-mysql2/zh-CN/docs/documentation/typescript-examples","h":"#examples","p":408},{"i":435,"t":"await.js co.js .babelrc package.json 'use strict'; const mysql = require('mysql2/promise'); async function test() { const c = await mysql.createConnection({ port: 3306, user: 'testuser', namedPlaceholders: true, password: 'testpassword', }); console.log('connected!'); const [rows, fields] = await c.query('show databases'); console.log(rows); try { const [rows, fields] = await c.query('some invalid sql here'); } catch (e) { console.log('caught exception!', e); } console.log(await c.execute('select sleep(0.5)')); console.log('after first sleep'); console.log(await c.execute('select sleep(0.5)')); console.log('after second sleep'); let start = +new Date(); console.log( await Promise.all([ c.execute('select sleep(2.5)'), c.execute('select sleep(2.5)'), ]) ); console.log( 'after 2+3 parallel sleep which is in fact not parallel because commands are queued per connection' ); let end = +new Date(); console.log(end - start); await c.end(); const p = mysql.createPool({ port: 3306, user: 'testuser', namedPlaceholders: true, password: 'testpassword', }); console.log(await p.execute('select sleep(0.5)')); console.log('after first pool sleep'); start = +new Date(); console.log( await Promise.all([ p.execute('select sleep(2.5)'), p.execute('select sleep(2.5)'), ]) ); console.log('after 2+3 parallel pool sleep'); end = +new Date(); console.log(end - start); await p.end(); } test() .then(() => { console.log('done'); }) .catch((err) => { console.log('error!', err); throw err; }); 'use strict'; const mysql = require('mysql2/promise'); const co = require('co'); co(function* () { const c = yield mysql.createConnection({ port: 3306, user: 'root', namedPlaceholders: true, }); const rows = yield c.query('show databases'); console.log(rows); console.log(yield c.execute('select 1+:toAdd as qqq', { toAdd: 10 })); yield c.end(); }) .then(function () { console.log('done'); }) .catch(function (err) { console.log(err); throw err; }); { \"plugins\": [\"transform-async-to-generator\"] } { \"name\": \"promise-co-await\", \"version\": \"1.0.0\", \"description\": \"\", \"main\": \"await.js\", \"scripts\": { \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\" }, \"author\": \"\", \"license\": \"ISC\", \"dependencies\": { \"babel-cli\": \"^6.9.0\" } }","s":"await — co","u":"/node-mysql2/zh-CN/docs/examples/promise-wrapper/co-await","h":"","p":434},{"i":437,"t":"信息 For queries please see the Simple Queries and Prepared Statements examples.","s":"createConnection","u":"/node-mysql2/zh-CN/docs/examples/connections/create-connection","h":"","p":436},{"i":439,"t":"createConnection(connectionUri: string) promise.js callback.js import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection( 'mysql://root:password@localhost:3306/test' ); } catch (err) { console.log(err); } const mysql = require('mysql2'); const connection = mysql.createConnection( 'mysql://root:password@localhost:3306/test' ); connection.addListener('error', (err) => { console.log(err); });","s":"createConnection(connectionUri)","u":"/node-mysql2/zh-CN/docs/examples/connections/create-connection","h":"#createconnectionconnectionuri","p":436},{"i":441,"t":"createConnection(config: ConnectionOptions) promise.js callback.js import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', // port: 3306, // password: '', }); } catch (err) { console.log(err); } const mysql = require('mysql2'); const connection = mysql.createConnection({ host: 'localhost', user: 'root', database: 'test', // port: 3306, // password: '', }); connection.addListener('error', (err) => { console.log(err); });","s":"createConnection(config)","u":"/node-mysql2/zh-CN/docs/examples/connections/create-connection","h":"#createconnectionconfig","p":436},{"i":443,"t":"createConnection(config: ConnectionOptions) promise.js callback.js import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ // ... passwordSha1: Buffer.from( '8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex' ), }); } catch (err) { console.log(err); } const mysql = require('mysql2'); const connection = mysql.createConnection({ // ... passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'), }); connection.addListener('error', (err) => { console.log(err); });","s":"createConnection(config) — SHA1","u":"/node-mysql2/zh-CN/docs/examples/connections/create-connection","h":"#createconnectionconfig--sha1","p":436},{"i":445,"t":"createConnection(config: ConnectionOptions) promise.js callback.js certs/ca-cert.pem import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ // ... ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); } catch (err) { console.log(err); } const mysql = require('mysql2'); const connection = mysql.createConnection({ // ... ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); connection.addListener('error', (err) => { console.log(err); }); See ssl/certs.","s":"createConnection(config) — SSL","u":"/node-mysql2/zh-CN/docs/examples/connections/create-connection","h":"#createconnectionconfig--ssl","p":436},{"i":447,"t":"createConnection(config: ConnectionOptions) You can use Amazon RDS string as value to ssl property to connect to Amazon RDS MySQL over SSL. In that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used: promise.js callback.js import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ // ... host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); } catch (err) { console.log(err); } Testing try { const [res] = await connection.query('SHOW `status` LIKE \"Ssl_cipher\"'); await connection.end(); console.log(res); } catch (err) { console.log(err); } const mysql = require('mysql2'); const connection = mysql.createConnection({ // ... host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); connection.addListener('error', (err) => { console.log(err); }); Testing connectionquery('SHOW `status` LIKE \"Ssl_cipher\"', function (err, res) { connection.end(); if (err instanceof Error) { console.log(err); return; } console.log(res); });","s":"createConnection(config) — RDS SSL","u":"/node-mysql2/zh-CN/docs/examples/connections/create-connection","h":"#createconnectionconfig--rds-ssl","p":436},{"i":449,"t":"Issues #2130 — Update TLS certs for Amazon RDS instances Pull Requests #2119 — fix: make startTls code compatible with Bun #2131 — Update Amazon RDS SSL CA cert","s":"Related Links","u":"/node-mysql2/zh-CN/docs/examples/connections/create-connection","h":"#related-links","p":436},{"i":451,"t":"createConnection(config: ConnectionOptions) A.js B.js const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const socksProxy = new SocksConnection({ port: 3306 }); const connection = mysql.createConnection({ stream: socksProxy, }); connection.addListener('error', (err) => { console.log(err); }); const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const connection = mysql.createConnection({ debug: 1, stream: function () { return new SocksConnection({ port: 3306 }); }, }); connection.addListener('error', (err) => { console.log(err); }); Testing connection.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); }); connection.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); }); connection.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); });","s":"createConnection(config) — Socks","u":"/node-mysql2/zh-CN/docs/examples/connections/create-connection","h":"#createconnectionconfig--socks","p":436},{"i":454,"t":"ConnectionOptions Specification","s":"ConnectionOptions","u":"/node-mysql2/zh-CN/docs/examples/connections/create-connection","h":"#connectionoptions","p":436},{"i":456,"t":"MySQL2 provides execute helper which will prepare and query the statement. You can also manually prepare / unprepare statement with prepare / unprepare methods. See detailed documentaion in Prepared Statements. 提示 If you execute same statement again, it will be picked form a LRU cache which will save query preparation time and give better performance. Usage examples: INSERT SELECT UPDATE DELETE","s":"Prepared Statements","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements","h":"","p":455},{"i":458,"t":"信息 For queries please see the Simple Queries and Prepared Statements examples.","s":"createPool","u":"/node-mysql2/zh-CN/docs/examples/connections/create-pool","h":"","p":457},{"i":460,"t":"createPool(connectionUri: string) promise.js callback.js import mysql from 'mysql2/promise'; try { const pool = mysql.createPool('mysql://root:password@localhost:3306/test'); const connection = await pool.getConnection(); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const pool = mysql.createPool('mysql://root:password@localhost:3306/test'); pool.getConnection(function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); 注意 Don't forget to release the connection when finished by using: pool.releaseConnection(connection) connection.release()","s":"createPool(connectionUri)","u":"/node-mysql2/zh-CN/docs/examples/connections/create-pool","h":"#createpoolconnectionuri","p":457},{"i":462,"t":"createPool(config: PoolOptions) promise.js callback.js import mysql from 'mysql2/promise'; try { const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', // port: 3306, // password: '', }); const connection = await pool.getConnection(); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const pool = mysql.createPool({ host: 'localhost', user: 'root', database: 'test', // port: 3306, // password: '', }); pool.getConnection(function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); 注意 Don't forget to release the connection when finished by using: pool.releaseConnection(connection) connection.release()","s":"createPool(config)","u":"/node-mysql2/zh-CN/docs/examples/connections/create-pool","h":"#createpoolconfig","p":457},{"i":464,"t":"createPool(config: PoolOptions) promise.js callback.js import mysql from 'mysql2/promise'; try { const pool = mysql.createPool({ // ... passwordSha1: Buffer.from( '8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex' ), }); const connection = await pool.getConnection(); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const pool = mysql.createPool({ // ... passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'), }); pool.getConnection(function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); 注意 Don't forget to release the connection when finished by using: pool.releaseConnection(connection) connection.release()","s":"createPool(config) — SHA1","u":"/node-mysql2/zh-CN/docs/examples/connections/create-pool","h":"#createpoolconfig--sha1","p":457},{"i":466,"t":"createPool(config: PoolOptions) promise.js callback.js certs/ca-cert.pem import mysql from 'mysql2/promise'; try { const pool = mysql.createPool({ // ... ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); const connection = await pool.getConnection(); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const pool = mysql.createPool({ // ... ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); pool.getConnection(function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); See ssl/certs. 注意 Don't forget to release the connection when finished by using: pool.releaseConnection(connection) connection.release()","s":"createPool(config) — SSL","u":"/node-mysql2/zh-CN/docs/examples/connections/create-pool","h":"#createpoolconfig--ssl","p":457},{"i":468,"t":"createPool(config: PoolOptions) You can use Amazon RDS string as value to ssl property to connect to Amazon RDS MySQL over SSL. In that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used: promise.js callback.js import mysql from 'mysql2/promise'; try { const pool = mysql.createPool({ // ... host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); const connection = await pool.getConnection(); // ... some query connection.release(); } catch (err) { console.log(err); } Testing try { const [res] = await connection.query('SHOW `status` LIKE \"Ssl_cipher\"'); await pool.end(); console.log(res); } catch (err) { console.log(err); } const mysql = require('mysql2'); const pool = mysql.createPool({ // ... host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); pool.getConnection(function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); Testing connectionquery('SHOW `status` LIKE \"Ssl_cipher\"', function (err, res) { pool.end(); if (err instanceof Error) { console.log(err); return; } console.log(res); }); 注意 Don't forget to release the connection when finished by using: pool.releaseConnection(connection) connection.release()","s":"createPool(config) — RDS SSL","u":"/node-mysql2/zh-CN/docs/examples/connections/create-pool","h":"#createpoolconfig--rds-ssl","p":457},{"i":470,"t":"Issues #2130 — Update TLS certs for Amazon RDS instances Pull Requests #2119 — fix: make startTls code compatible with Bun #2131 — Update Amazon RDS SSL CA cert","s":"Related Links","u":"/node-mysql2/zh-CN/docs/examples/connections/create-pool","h":"#related-links","p":457},{"i":472,"t":"createPool(config: PoolOptions) A.js B.js const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const socksProxy = new SocksConnection({ port: 3306 }); const pool = mysql.createPool({ stream: socksProxy, }); const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const pool = mysql.createPool({ debug: 1, stream: function () { return new SocksConnection({ port: 3306 }); }, }); Testing pool.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); }); pool.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); }); pool.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); });","s":"createPool(config) — Socks","u":"/node-mysql2/zh-CN/docs/examples/connections/create-pool","h":"#createpoolconfig--socks","p":457},{"i":475,"t":"PoolOptions extends all options from ConnectionOptions: ConnectionOptions Specification PoolOptions Specification","s":"PoolOptions","u":"/node-mysql2/zh-CN/docs/examples/connections/create-pool","h":"#pooloptions","p":457},{"i":478,"t":"execute(sql: string, values: any[]) promise.js callback.js try { const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)'; const values = ['Josh', 19, 'Page', 45]; const [result, fields] = await connection.execute(sql, values); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)'; const values = ['Josh', 19, 'Page', 45]; connection.execute(sql, values, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); }); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available 信息 The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(sql, values)","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/insert","h":"#executesql-values","p":476},{"i":480,"t":"execute(options: QueryOptions) promise.js callback.js try { const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)'; const values = ['Josh', 19, 'Page', 45]; const [result, fields] = await connection.execute({ sql, values, // ... other options }); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)'; const values = ['Josh', 19, 'Page', 45]; connection.execute( { sql, values, // ... other options }, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available 信息 The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options)","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/insert","h":"#executeoptions","p":476},{"i":482,"t":"execute(options: QueryOptions, values: any[]) promise.js callback.js try { const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)'; const values = ['Josh', 19, 'Page', 45]; const [result, fields] = await connection.execute( { sql, // ... other options }, values ); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (?, ?), (?,?)'; const values = ['Josh', 19, 'Page', 45]; connection.execute( { sql, // ... other options }, values, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available 信息 The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options, values)","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/insert","h":"#executeoptions-values","p":476},{"i":485,"t":"ResultSetHeader Specification","s":"ResultSetHeader","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/insert","h":"#resultsetheader","p":476},{"i":487,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/insert","h":"#queryoptions","p":476},{"i":489,"t":"信息 For Prepared Statements or Placeholders / Parameters examples, please see here. Usage examples: INSERT SELECT UPDATE DELETE","s":"Simple Queries","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries","h":"","p":488},{"i":492,"t":"execute(sql: string, values: any[]) promise.js callback.js try { const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1'; const values = [20, 'Josh']; const [result, fields] = await connection.execute(sql, values); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1'; const values = [20, 'Josh']; connection.execute(sql, values, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); }); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available 信息 The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(sql, values)","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/update","h":"#executesql-values","p":490},{"i":494,"t":"execute(options: QueryOptions) promise.js callback.js try { const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1'; const values = [20, 'Josh']; const [result, fields] = await connection.execute({ sql, values, // ... other options }); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1'; const values = [20, 'Josh']; connection.execute( { sql, values, // ... other options }, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available 信息 The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options)","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/update","h":"#executeoptions","p":490},{"i":496,"t":"execute(options: QueryOptions, values: any[]) promise.js callback.js try { const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1'; const values = [20, 'Josh']; const [result, fields] = await connection.execute( { sql, // ... other options }, values ); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'UPDATE `users` SET `age` = ? WHERE `name` = ? LIMIT 1'; const values = [20, 'Josh']; connection.execute( { sql, // ... other options }, values, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available 信息 The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options, values)","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/update","h":"#executeoptions-values","p":490},{"i":499,"t":"ResultSetHeader Specification","s":"ResultSetHeader","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/update","h":"#resultsetheader","p":490},{"i":501,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/update","h":"#queryoptions","p":490},{"i":504,"t":"execute(sql: string, values: any[]) promise.js callback.js try { const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1'; const values = ['Page']; const [result, fields] = await connection.execute(sql, values); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1'; const values = ['Page']; connection.execute(sql, values, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); }); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available 信息 The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(sql, values)","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/delete","h":"#executesql-values","p":502},{"i":506,"t":"execute(options: QueryOptions) promise.js callback.js try { const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1'; const values = ['Page']; const [result, fields] = await connection.execute({ sql, values, // ... other options }); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1'; const values = ['Page']; connection.execute( { sql, values, // ... other options }, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available 信息 The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options)","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/delete","h":"#executeoptions","p":502},{"i":508,"t":"execute(options: QueryOptions, values: any[]) promise.js callback.js try { const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1'; const values = ['Page']; const [result, fields] = await connection.execute( { sql, // ... other options }, values ); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'DELETE FROM `users` WHERE `name` = ? LIMIT 1'; const values = ['Page']; connection.execute( { sql, // ... other options }, values, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available 信息 The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options, values)","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/delete","h":"#executeoptions-values","p":502},{"i":511,"t":"ResultSetHeader Specification","s":"ResultSetHeader","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/delete","h":"#resultsetheader","p":502},{"i":513,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/delete","h":"#queryoptions","p":502},{"i":516,"t":"execute(sql: string, values: any[]) promise.js callback.js try { const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?'; const values = ['Page', 45]; const [rows, fields] = await connection.execute(sql, values); console.log(rows); console.log(fields); } catch (err) { console.log(err); } const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?'; const values = ['Page', 45]; connection.execute(sql, values, (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows); console.log(fields); }); rows contains rows returned by server fields contains extra meta data about rows, if available 信息 The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(sql, values)","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/select","h":"#executesql-values","p":514},{"i":518,"t":"execute(options: QueryOptions) promise.js callback.js try { const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?'; const values = ['Page', 45]; const [rows, fields] = await connection.execute({ sql, values, // ... other options }); console.log(rows); console.log(fields); } catch (err) { console.log(err); } const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?'; const values = ['Page', 45]; connection.execute( { sql, values, // ... other options }, (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows); console.log(fields); } ); rows contains rows returned by server fields contains extra meta data about rows, if available 信息 The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options)","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/select","h":"#executeoptions","p":514},{"i":520,"t":"execute(options: QueryOptions, values: any[]) promise.js callback.js try { const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?'; const values = ['Page', 45]; const [rows, fields] = await connection.execute( { sql, // ... other options }, values ); console.log(rows); console.log(fields); } catch (err) { console.log(err); } const sql = 'SELECT * FROM `users` WHERE `name` = ? AND `age` > ?'; const values = ['Page', 45]; connection.execute( { sql, // ... other options }, values, (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows); console.log(fields); } ); rows contains rows returned by server fields contains extra meta data about rows, if available 信息 The connection used for the query (execute) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"execute(options, values)","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/select","h":"#executeoptions-values","p":514},{"i":523,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/select","h":"#queryoptions","p":514},{"i":525,"t":"信息 For queries please see the Simple Queries and Prepared Statements examples.","s":"createPoolCluster","u":"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster","h":"","p":524},{"i":527,"t":"add(group: string, connectionUri: string) promise.js callback.js import mysql from 'mysql2/promise'; try { const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', 'mysql://root:password@localhost:3306/test'); // poolCluster.add('clusterB', '...'); const connection = await poolCluster.getConnection('clusterA'); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', 'mysql://root:password@localhost:3306/test'); // poolCluster.add('clusterB', '...'); poolCluster.getConnection('clusterA', function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); 注意 Don't forget to release the connection when finished by using: connection.release()","s":"add(group, connectionUri)","u":"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster","h":"#addgroup-connectionuri","p":524},{"i":529,"t":"add(group: string, config: PoolOptions) promise.js callback.js import mysql from 'mysql2/promise'; try { const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { host: 'localhost', user: 'root', database: 'test', // port: 3306, // password: '', }); // poolCluster.add('clusterB', '...'); const connection = await poolCluster.getConnection('clusterA'); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { host: 'localhost', user: 'root', database: 'test', // port: 3306, // password: '', }); // poolCluster.add('clusterB', '...'); poolCluster.getConnection('clusterA', function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); 注意 Don't forget to release the connection when finished by using: connection.release()","s":"add(group, config)","u":"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster","h":"#addgroup-config","p":524},{"i":531,"t":"add(group: string, config: PoolOptions) promise.js callback.js import mysql from 'mysql2/promise'; try { const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { // ... passwordSha1: Buffer.from( '8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex' ), }); // poolCluster.add('clusterB', '...'); const connection = await poolCluster.getConnection('clusterA'); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { // ... passwordSha1: Buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd', 'hex'), }); // poolCluster.add('clusterB', '...'); poolCluster.getConnection('clusterA', function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); 注意 Don't forget to release the connection when finished by using: connection.release()","s":"add(group, config) — SHA1","u":"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster","h":"#addgroup-config--sha1","p":524},{"i":533,"t":"add(group: string, config: PoolOptions) promise.js callback.js certs/ca-cert.pem import mysql from 'mysql2/promise'; try { const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { // ... ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); // poolCluster.add('clusterB', '...'); const connection = await poolCluster.getConnection('clusterA'); // ... some query connection.release(); } catch (err) { console.log(err); } const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { // ... ssl: { // key: fs.readFileSync('./certs/client-key.pem'), // cert: fs.readFileSync('./certs/client-cert.pem') ca: fs.readFileSync('./certs/ca-cert.pem'), }, }); // poolCluster.add('clusterB', '...'); poolCluster.getConnection('clusterA', function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); See ssl/certs. 注意 Don't forget to release the connection when finished by using: connection.release()","s":"add(group, config) — SSL","u":"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster","h":"#addgroup-config--ssl","p":524},{"i":535,"t":"add(group: string, config: PoolOptions) You can use Amazon RDS string as value to ssl property to connect to Amazon RDS MySQL over SSL. In that case https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem CA cert is used: promise.js callback.js import mysql from 'mysql2/promise'; try { const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { // ... host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); // poolCluster.add('clusterB', '...'); const connection = await poolCluster.getConnection('clusterA'); // ... some query connection.release(); } catch (err) { console.log(err); } Testing try { const [res] = await connection.query('SHOW `status` LIKE \"Ssl_cipher\"'); await poolCluster.end(); console.log(res); } catch (err) { console.log(err); } const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { // ... host: 'db.id.ap-southeast-2.rds.amazonaws.com', ssl: 'Amazon RDS', }); // poolCluster.add('clusterB', '...'); poolCluster.getConnection('clusterA', function (err, connection) { if (err instanceof Error) { console.log(err); return; } // ... some query connection.release(); }); Testing connectionquery('SHOW `status` LIKE \"Ssl_cipher\"', function (err, res) { poolCluster.end(); if (err instanceof Error) { console.log(err); return; } console.log(res); }); 注意 Don't forget to release the connection when finished by using: connection.release()","s":"add(group, config) — RDS SSL","u":"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster","h":"#addgroup-config--rds-ssl","p":524},{"i":537,"t":"Issues #2130 — Update TLS certs for Amazon RDS instances Pull Requests #2119 — fix: make startTls code compatible with Bun #2131 — Update Amazon RDS SSL CA cert","s":"Related Links","u":"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster","h":"#related-links","p":524},{"i":539,"t":"add(group: string, config: PoolOptions) A.js B.js const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const socksProxy = new SocksConnection({ port: 3306 }); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { stream: socksProxy, }); // poolCluster.add('clusterB', '...'); const poolNamespace = poolCluster.of('clusterA'); const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('clusterA', { debug: 1, stream: function () { return new SocksConnection({ port: 3306 }); }, }); // poolCluster.add('clusterB', '...'); const poolNamespace = poolCluster.of('clusterA'); Testing poolNamespace.execute('SELECT SLEEP(1.1) AS `www`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); }); poolNamespace.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); }); poolNamespace.execute('SELECT SLEEP(1) AS `qqq`', (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows, fields); });","s":"add(group, config) — Socks","u":"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster","h":"#addgroup-config--socks","p":524},{"i":542,"t":"PoolOptions extends all options from ConnectionOptions: ConnectionOptions Specification PoolOptions Specification","s":"PoolOptions","u":"/node-mysql2/zh-CN/docs/examples/connections/createPoolCluster","h":"#pooloptions","p":524},{"i":544,"t":"The examples below also work for the execute method.","s":"DELETE","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/delete","h":"","p":543},{"i":546,"t":"query(sql: string) promise.js callback.js try { const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1'; const [result, fields] = await connection.query(sql); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1'; connection.query(sql, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); }); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available 信息 The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(sql)","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/delete","h":"#querysql","p":543},{"i":548,"t":"query(options: QueryOptions) promise.js callback.js try { const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1'; const [result, fields] = await connection.query({ sql, // ... other options }); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'DELETE FROM `users` WHERE `name` = \"Page\" LIMIT 1'; connection.query( { sql, // ... other options }, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available 信息 The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(options)","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/delete","h":"#queryoptions","p":543},{"i":551,"t":"ResultSetHeader Specification","s":"ResultSetHeader","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/delete","h":"#resultsetheader","p":543},{"i":553,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/delete","h":"#queryoptions-1","p":543},{"i":555,"t":"The examples below also work for the execute method.","s":"INSERT","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/insert","h":"","p":554},{"i":557,"t":"query(sql: string) promise.js callback.js try { const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (\"Josh\", 19), (\"Page\", 45)'; const [result, fields] = await connection.query(sql); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (\"Josh\", 19), (\"Page\", 45)'; connection.query(sql, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); }); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available 信息 The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(sql)","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/insert","h":"#querysql","p":554},{"i":559,"t":"query(options: QueryOptions) promise.js callback.js try { const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (\"Josh\", 19), (\"Page\", 45)'; const [result, fields] = await connection.query({ sql, // ... other options }); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'INSERT INTO `users`(`name`, `age`) VALUES (\"Josh\", 19), (\"Page\", 45)'; connection.query( { sql, // ... other options }, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available 信息 The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(options)","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/insert","h":"#queryoptions","p":554},{"i":562,"t":"ResultSetHeader Specification","s":"ResultSetHeader","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/insert","h":"#resultsetheader","p":554},{"i":564,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/insert","h":"#queryoptions-1","p":554},{"i":566,"t":"index.js 'use strict'; const mysql = require('mysql2'); const ClientFlags = require('mysql2/lib/constants/client.js'); const server = mysql.createServer(); server.listen(3307); server.on('connection', (conn) => { console.log('connection'); conn.serverHandshake({ protocolVersion: 10, serverVersion: 'node.js rocks', connectionId: 1234, statusFlags: 2, characterSet: 8, capabilityFlags: 0xffffff ^ ClientFlags.COMPRESS, }); conn.on('field_list', (table, fields) => { console.log('field list:', table, fields); conn.writeEof(); }); const remote = mysql.createConnection({ user: 'root', database: 'dbname', host: 'server.example.com', password: 'secret', }); conn.on('query', (sql) => { console.log(`proxying query: ${sql}`); remote.query(sql, function (err) { // overloaded args, either (err, result :object) // or (err, rows :array, columns :array) if (Array.isArray(arguments[1])) { // response to a 'select', 'show' or similar const rows = arguments[1], columns = arguments[2]; console.log('rows', rows); console.log('columns', columns); conn.writeTextResult(rows, columns); } else { // response to an 'insert', 'update' or 'delete' const result = arguments[1]; console.log('result', result); conn.writeOk(result); } }); }); conn.on('end', remote.end.bind(remote)); });","s":"MySQL Proxy","u":"/node-mysql2/zh-CN/docs/examples/tests/mysql-proxy","h":"","p":565},{"i":568,"t":"The examples below also work for the execute method.","s":"SELECT","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/select","h":"","p":567},{"i":570,"t":"query(sql: string) promise.js callback.js try { const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45'; const [rows, fields] = await connection.query(sql); console.log(rows); console.log(fields); } catch (err) { console.log(err); } const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45'; connection.query(sql, (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows); console.log(fields); }); rows contains rows returned by server fields contains extra meta data about rows, if available 信息 The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(sql)","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/select","h":"#querysql","p":567},{"i":572,"t":"query(options: QueryOptions) promise.js callback.js try { const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45'; const [rows, fields] = await connection.query({ sql, // ... other options }); console.log(rows); console.log(fields); } catch (err) { console.log(err); } const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45'; connection.query( { sql, // ... other options }, (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows); console.log(fields); } ); rows contains rows returned by server fields contains extra meta data about rows, if available 信息 The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(options)","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/select","h":"#queryoptions","p":567},{"i":574,"t":"query(options: QueryOptions) promise.js callback.js try { const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45'; const [rows, fields] = await connection.query({ sql, rowsAsArray: true, // ... other options }); console.log(rows); console.log(fields); } catch (err) { console.log(err); } const sql = 'SELECT * FROM `users` WHERE `name` = \"Page\" AND `age` > 45'; connection.query( { sql, rowsAsArray: true, // ... other options }, (err, rows, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(rows); console.log(fields); } ); rows contains rows returned by server as array fields contains extra meta data about rows, if available 信息 The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(options) — Row as Array","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/select","h":"#queryoptions--row-as-array","p":567},{"i":577,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/select","h":"#queryoptions-1","p":567},{"i":579,"t":"index.js 'use strict'; const pool = require('mysql2').createPool({ host: 'localhost', user: 'root', database: 'test', password: 'root', }); setInterval(() => { for (let i = 0; i < 5; ++i) { pool.query((err, rows, fields) => { console.log(rows, fields); // Connection is automatically released once query resolves }); } }, 1000); setInterval(() => { for (let i = 0; i < 5; ++i) { pool.getConnection((err, db) => { db.query('select sleep(0.5) as qqq', (err, rows, fields) => { console.log(rows, fields); db.release(); }); }); } }, 1000);","s":"Pool","u":"/node-mysql2/zh-CN/docs/examples/tests/pool","h":"","p":578},{"i":581,"t":"index.js 'use strict'; const mysql = require('mysql2'); const flags = require('mysql2/lib/constants/client.js'); const auth = require('mysql2/lib/auth_41.js'); function authenticate(params, cb) { console.log(params); const doubleSha = auth.doubleSha1('pass123'); const isValid = auth.verifyToken( params.authPluginData1, params.authPluginData2, params.authToken, doubleSha ); if (isValid) { cb(null); } else { // for list of codes lib/constants/errors.js cb(null, { message: 'wrong password dude', code: 1045 }); } } const server = mysql.createServer(); server.listen(3333); server.on('connection', (conn) => { // we can deny connection here: // conn.writeError({ message: 'secret', code: 123 }); // conn.close(); conn.serverHandshake({ protocolVersion: 10, serverVersion: '5.6.10', // 'node.js rocks', connectionId: 1234, statusFlags: 2, characterSet: 8, // capabilityFlags: 0xffffff, // capabilityFlags: -2113931265, capabilityFlags: 2181036031, authCallback: authenticate, }); conn.on('field_list', (table, fields) => { console.log('FIELD LIST:', table, fields); conn.writeEof(); }); conn.on('query', (query) => { conn.writeColumns([ { catalog: 'def', schema: 'test', table: 'test_table', orgTable: 'test_table', name: 'beta', orgName: 'beta', characterSet: 33, columnLength: 384, columnType: 253, flags: 0, decimals: 0, }, ]); conn.writeTextRow(['test тест テスト փորձարկում পরীক্ষা kiểm tra ']); conn.writeTextRow(['ტესტი પરીક્ષણ מבחן פּרובירן اختبار परीक्षण']); conn.writeEof(); conn.close(); }); });","s":"Server","u":"/node-mysql2/zh-CN/docs/examples/tests/server","h":"","p":580},{"i":583,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ProcedureCallPacket, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { id: number; name: string; } const isResultSetHeader = (data: unknown): data is ResultSetHeader => { if (!data || typeof data !== 'object') return false; const keys = [ 'fieldCount', 'affectedRows', 'insertId', 'info', 'serverStatus', 'warningStatus', 'changedRows', ]; return keys.every((key) => key in data); }; (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Deleting the `getUsers` procedure, if it exists */ await conn.query('DROP PROCEDURE IF EXISTS getUsers'); /** Creating a procedure to get the users */ await conn.query(` CREATE PROCEDURE getUsers() BEGIN SELECT * FROM users ORDER BY name ASC; END `); /** Getting users */ const [procedureResult] = await conn.query>('CALL getUsers()'); procedureResult.forEach((users) => { /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */ if (isResultSetHeader(users)) { console.log('----------------'); console.log('Affected Rows:', users.affectedRows); } else { users.forEach((user) => { console.log('----------------'); console.log('id: ', user.id); console.log('name:', user.name); }); } }); await conn.end(); })(); /** Output * * Inserted: 4 * ---------------- * id: 4 * name: Gween * ---------------- * id: 2 * name: John * ---------------- * id: 1 * name: Josh * ---------------- * id: 3 * name: Marie * ---------------- * Affected Rows: 0 */","s":"Procedure Call Packet","u":"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/index","h":"","p":582},{"i":585,"t":"The examples below also work for the execute method.","s":"UPDATE","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/update","h":"","p":584},{"i":587,"t":"query(sql: string) promise.js callback.js try { const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1'; const [result, fields] = await connection.query(sql); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1'; connection.query(sql, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); }); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available 信息 The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(sql)","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/update","h":"#querysql","p":584},{"i":589,"t":"query(options: QueryOptions) promise.js callback.js try { const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1'; const [result, fields] = await connection.query({ sql, // ... other options }); console.log(result); console.log(fields); } catch (err) { console.log(err); } const sql = 'UPDATE `users` SET `age` = 20 WHERE `name` = \"Josh\" LIMIT 1'; connection.query( { sql, // ... other options }, (err, result, fields) => { if (err instanceof Error) { console.log(err); return; } console.log(result); console.log(fields); } ); result: contains a ResultSetHeader object, which provides details about the operation executed by the server. fields contains extra meta data about the operation, if available 信息 The connection used for the query (.query()) can be obtained through the createConnection, createPool or createPoolCluster methods.","s":"query(options)","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/update","h":"#queryoptions","p":584},{"i":592,"t":"ResultSetHeader Specification","s":"ResultSetHeader","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/update","h":"#resultsetheader","p":584},{"i":594,"t":"QueryOptions Specification","s":"QueryOptions","u":"/node-mysql2/zh-CN/docs/examples/queries/simple-queries/update","h":"#queryoptions-1","p":584},{"i":596,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { id: number; name: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', multipleStatements: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [rows] = await conn.query( [ 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2;', 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2 OFFSET 2;', ].join(' ') ); rows.forEach((users) => { users.forEach((user) => { console.log('-----------'); console.log('id: ', user.id); console.log('name:', user.name); }); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet (Multi Statements)","u":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/multi-statements","h":"","p":595},{"i":598,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { id: number; name: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [users] = await conn.query( 'SELECT * FROM `users` ORDER BY `name` ASC;' ); users.forEach((user) => { console.log('-----------'); console.log('id: ', user.id); console.log('name:', user.name); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet","u":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/index","h":"","p":597},{"i":600,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { /** id */ 0: number; /** name */ 1: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', rowsAsArray: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [users] = await conn.query( 'SELECT * FROM `users` ORDER BY `name` ASC;' ); users.forEach((user) => { console.log('-----------'); console.log('id: ', user[0]); console.log('name:', user[1]); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet (Row as Array)","u":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array","h":"","p":599},{"i":602,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { /** id */ 0: number; /** name */ 1: string; } (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', multipleStatements: true, rowsAsArray: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [rows] = await conn.query( [ 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2;', 'SELECT * FROM `users` ORDER BY `name` ASC LIMIT 2 OFFSET 2;', ].join(' ') ); rows.forEach((users) => { users.forEach((user) => { console.log('-----------'); console.log('id: ', user[0]); console.log('name:', user[1]); }); }); await conn.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */","s":"Row Data Packet (Multi Statements and Row as Array)","u":"/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array-multi-statements","h":"","p":601},{"i":604,"t":"This section provides answers to commonly asked questions about MySQL2. 提示 To explore the FAQs, please use the sidebar navigation on desktop or access the menu on mobile devices.","s":"Frequently Asked Questions","u":"/node-mysql2/zh-CN/docs/faq","h":"","p":603},{"i":606,"t":"MySQL2 项目是 MySQL-Native 的延续。 协议解析器代码从头开始重写,api 更改为匹配流行的 mysqljs/mysql。 MySQL2 团队正在与 mysqljs/mysql 团队合作,将共享代码分解并移至 mysqljs 组织下。 MySQL2 大部分 API 与 mysqljs 兼容,并支持大部分功能。 MySQL2 还提供了更多的附加功能: 更快、更好的性能 支持预处理 MySQL二进制日志协议 MySQL Server 对编码和排序规则有很好的支持 Promise封装 支持压缩 SSL 和 Authentication Switch 自定义流 连接池","s":"MySQL2的历史以及选择原因","u":"/node-mysql2/zh-CN/docs/history-and-why-mysq2","h":"","p":605},{"i":608,"t":"The Stability Badges are indications of a section's stability. The stability indices are as follows: 0Deprecated The feature might generate warnings and does not assure backward compatibility. Experimental: These features are not bound by semantic versioning. They may undergo non-backward compatible changes or be removed in future releases. Their use in production is discouraged. Use caution with Experimental features, especially in libraries. Users might not expect changes from these unstable features. To reduce surprises, consider using a command-line flag for Experimental features. Experimental features are classified into stages: 1Experimental Experimental features at this stage are currently in development and prone to considerable changes. 1.1Early Development Experimental features at this stage are approaching minimum viability. 1.2Release Candidate Experimental features are close to reaching stability. Major changes are not expected, but they could still occur based on user feedback. Testing and feedback are important to ascertain the readiness of these features for stable classification. 2Stable Compatibility with the MySQL ecosystem is a high priority. 3Legacy This feature, while not likely to be removed and still subject to semantic versioning, is not under active maintenance and other options are available. Features are classified as legacy instead of deprecated when they cause no harm and have widespread use in the MySQL ecosystem. It's unlikely that bugs in legacy features will be addressed.","s":"Stability Badges","u":"/node-mysql2/zh-CN/docs/stability-badges","h":"","p":607},{"i":610,"t":"index.ts /** * The types are explicity for learning purpose * By extending the `RowDataPacket`, you can use your Interface in `query` and `execute` */ import mysql, { ConnectionOptions, ProcedureCallPacket, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; interface User extends RowDataPacket { /** id */ 0: number; /** name */ 1: string; } const isResultSetHeader = (data: unknown): data is ResultSetHeader => { if (!data || typeof data !== 'object') return false; const keys = [ 'fieldCount', 'affectedRows', 'insertId', 'info', 'serverStatus', 'warningStatus', 'changedRows', ]; return keys.every((key) => key in data); }; (async () => { const access: ConnectionOptions = { host: '', user: '', password: '', database: '', rowsAsArray: true, }; const conn = await mysql.createConnection(access); /** Deleting the `users` table, if it exists */ await conn.query('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await conn.query( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await conn.execute( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Deleting the `getUsers` procedure, if it exists */ await conn.query('DROP PROCEDURE IF EXISTS getUsers'); /** Creating a procedure to get the users */ await conn.query(` CREATE PROCEDURE getUsers() BEGIN SELECT * FROM users ORDER BY name ASC; END `); /** Getting users */ const [procedureResult] = await conn.query>('CALL getUsers()'); procedureResult.forEach((users) => { /** By perform a `SELECT` or `SHOW`, The last item of `procedureResult` always be a `ResultSetHeader` */ if (isResultSetHeader(users)) { console.log('----------------'); console.log('Affected Rows:', users.affectedRows); } else { users.forEach((user) => { console.log('----------------'); console.log('id: ', user[0]); console.log('name:', user[1]); }); } }); await conn.end(); })(); /** Output * * Inserted: 4 * ---------------- * id: 4 * name: Gween * ---------------- * id: 2 * name: John * ---------------- * id: 1 * name: Josh * ---------------- * id: 3 * name: Marie * ---------------- * Affected Rows: 0 */","s":"Procedure Call Packet (Row as Array)","u":"/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-array","h":"","p":609},{"i":612,"t":"index.ts db.ts /** * The types are explicity for learning purpose */ import { PoolOptions } from 'mysql2/promise'; import { MySQL } from './db.js'; interface User extends RowDataPacket { id: number; name: string; } const access: PoolOptions = { host: '', user: '', password: '', database: '', }; (async () => { const mysql = new MySQL(access); /** Deleting the `users` table, if it exists */ await mysql.queryResult('DROP TABLE IF EXISTS `users`;'); /** Creating a minimal user table */ await mysql.queryResult( 'CREATE TABLE `users` (`id` INT(11) AUTO_INCREMENT, `name` VARCHAR(50), PRIMARY KEY (`id`));' ); /** Inserting some users */ const [inserted] = await mysql.executeResult( 'INSERT INTO `users`(`name`) VALUES(?), (?), (?), (?);', ['Josh', 'John', 'Marie', 'Gween'] ); console.log('Inserted:', inserted.affectedRows); /** Getting users */ const [users] = await mysql.queryRows( 'SELECT * FROM `users` ORDER BY `name` ASC;' ); users.forEach((user: User) => { console.log('-----------'); console.log('id: ', user.id); console.log('name:', user.name); }); await mysql.connection.end(); })(); /** Output * * Inserted: 4 * ----------- * id: 4 * name: Gween * ----------- * id: 2 * name: John * ----------- * id: 1 * name: Josh * ----------- * id: 3 * name: Marie */ /** * The types are explicity for learning purpose */ import { createPool, PoolOptions, Pool, ResultSetHeader, RowDataPacket, } from 'mysql2/promise'; export class MySQL { private conn: Pool; private credentials: PoolOptions; constructor(credentials: PoolOptions) { this.credentials = credentials; this.conn = createPool(this.credentials); } /** A random method to simulate a step before to get the class methods */ private ensureConnection() { if (!this?.conn) this.conn = createPool(this.credentials); } /** For `SELECT` and `SHOW` */ get queryRows() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */ get queryRowsAsArray() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For `INSERT`, `UPDATE`, etc. */ get queryResult() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */ get queryResults() { this.ensureConnection(); return this.conn.query.bind(this.conn); } /** For `SELECT` and `SHOW` */ get executeRows() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** For `SELECT` and `SHOW` with `rowAsArray` as `true` */ get executeRowsAsArray() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** For `INSERT`, `UPDATE`, etc. */ get executeResult() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** For multiple `INSERT`, `UPDATE`, etc. with `multipleStatements` as `true` */ get executeResults() { this.ensureConnection(); return this.conn.execute.bind(this.conn); } /** Expose the Pool Connection */ get connection() { return this.conn; } }","s":"Basic Custom Class","u":"/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-class","h":"","p":611},{"i":614,"t":"This section details error handling techniques in MySQL2. It covers essential error management strategies for methods such as createConnection, createPool, createPoolCluster, execute and query.","s":"How to handle errors?","u":"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors","h":"","p":613},{"i":616,"t":"createConnection 2Stable This solution has been tested and confirmed as the correct answer. Handling connection errors by adding an error event listener: const mysql = require('mysql2'); connection = mysql.createConnection({ host: '', user: '', database: '', }); connection.addListener('error', (err) => { if (err instanceof Error) { console.log(`createConnection error:`, err); } }); createPool 2Stable This solution has been tested. Handling connection errors through callback's err parameter: const mysql = require('mysql2'); const pool = mysql.createPool({ host: '', user: '', database: '', }); pool.getConnection((err, connection) => { if (err instanceof Error) { console.log('pool.getConnection error:', err); return; } }); createPoolCluster 2Stable This solution has been tested. Handling connection errors through callback's err parameter: const mysql = require('mysql2'); const poolCluster = mysql.createPoolCluster(); poolCluster.add('NodeI', { host: '', user: '', database: '', }); poolCluster.getConnection('NodeI', (err, connection) => { if (err instanceof Error) { console.log('poolCluster.getConnection error:', err); return; } }); execute 2Stable This solution has been tested. Handling execute errors through callback's err parameter: connection.execute('SELEC 1 + 1', (err, rows) => { if (err instanceof Error) { console.log('execute error:', err); return; } console.log(rows); }); It will work for both createConnection, createPool and createPoolCluster connections. query 2Stable This solution has been tested. Handling query errors through callback's err parameter: connection.query('SELEC 1 + 1', (err, rows) => { if (err instanceof Error) { console.log('query error:', err); return; } console.log(rows); }); It will work for both createConnection, createPool and createPoolCluster connections.","s":"Using callbacks","u":"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors","h":"#using-callbacks","p":613},{"i":618,"t":"createConnection 2Stable This solution has been tested and confirmed as the correct answer. Handling connection errors through try-catch block: import mysql from 'mysql2/promise'; try { const connection = await mysql.createConnection({ host: '', user: '', database: '', }); } catch (err) { if (err instanceof Error) { console.log(err); } } createPool 2Stable This solution has been tested. Handling connection errors through try-catch block: import mysql from 'mysql2/promise'; const pool = mysql.createPool({ host: '', user: '', database: '', }); try { const connection = await pool.getConnection(); } catch (err) { if (err instanceof Error) { console.log(err); } } createPoolCluster 2Stable This solution has been tested. Handling connection errors through try-catch block: import mysql from 'mysql2/promise'; const poolCluster = mysql.createPoolCluster(); poolCluster.add('NodeI', { host: '', user: '', database: '', }); try { await poolCluster.getConnection('NodeI'); } catch (err) { if (err instanceof Error) { console.log('createConnection error:', err); } } execute 2Stable This solution has been tested. Handling execute errors through try-catch block: try { const [rows] = await connection.execute('SELEC 1 + 1'); console.log(rows); } catch (err) { if (err instanceof Error) { console.log('execute error:', err); } } It will work for both createConnection, createPool and createPoolCluster connections. query 2Stable This solution has been tested. Handling query errors through try-catch block: try { const [rows] = await connection.query('SELEC 1 + 1'); console.log(rows); } catch (err) { if (err instanceof Error) { console.log('query error:', err); } } It will work for both createConnection, createPool and createPoolCluster connections.","s":"Using promises","u":"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors","h":"#using-promises","p":613},{"i":620,"t":"Discussions #1998 #2282","s":"Related Links","u":"/node-mysql2/zh-CN/docs/faq/how-to-handle-errors","h":"#related-links","p":613}],"index":{"version":"2.3.9","fields":["t"],"fieldVectors":[["t/312",[0,7.076,1,1.63,2,6.286,3,7.076,4,4.395,5,7.076,6,6.286,7,4.809,8,0.473]],["t/314",[1,1.572,4,4.979,8,0.536,9,5.693,10,5.693,11,4.64,12,4.64,13,5.058,14,4.64,15,1.907,16,1.719,17,2.032,18,5.693,19,2.961,20,5.058,21,1.989,22,5.058,23,5.693,24,2.17,25,5.693,26,5.693,27,5.058,28,5.058,29,5.693,30,5.693,31,5.693,32,5.058,33,2.711,34,5.058,35,5.693,36,3.692]],["t/316",[4,4.636,8,0.499,37,3.049,38,7.464]],["t/318",[39,6.808,40,7.138,41,1.18,42,5.817,43,3.601,44,7.138,45,7.138,46,5.425]],["t/320",[47,4.938,48,7.265,49,5.521,50,6.454,51,5.203,52,7.265,53,7.265]],["t/322",[4,3.54,8,0.266,33,1.893,34,3.531,37,2.722,39,6.536,42,3.239,46,3.02,49,4.332,54,5.699,55,5.699,56,3.974,57,5.92,58,3.974,59,5.699,60,5.699,61,2.964,62,2.005,63,2.206,64,3.974,65,3.974,66,1.909,67,5.43,68,5.699,69,3.974,70,5.214,71,5.699,72,3.974,73,3.974,74,3.974,75,5.533,76,5.063,77,1.76,78,3.974,79,3.531,80,3.974,81,3.531,82,2.701,83,3.974,84,3.974,85,3.974,86,3.974,87,3.974,88,3.531,89,4.332,90,2.572,91,2.577,92,3.531,93,1.388,94,5.699,95,3.974,96,3.974,97,3.974,98,3.531,99,3.531,100,3.974,101,3.974,102,3.974,103,3.02,104,3.02,105,3.974,106,3.974,107,3.974,108,3.974,109,3.531,110,2.846,111,3.531,112,3.239]],["t/324",[41,0.975,42,4.807,62,2.976,88,5.241,89,4.484,103,4.484,104,4.484,113,2.41,114,5.837,115,5.899,116,3.275,117,5.241,118,7.241,119,4.807,120,5.241,121,5.241,122,6.063,123,5.899,124,5.899,125,6.61,126,5.899,127,5.899,128,5.899,129,5.241,130,5.899,131,3.664,132,5.899]],["t/326",[8,0.604,19,2.9,66,1.868,82,6.139,93,1.948,114,5.141,122,4.545,133,6.371,134,5.577,135,5.207,136,2.656,137,4.954,138,4.545,139,5.577,140,1.532,141,5.577,142,5.577,143,4.954,144,5.85,145,4.545,146,5.577]],["t/328",[8,0.586,33,2.75,43,2.913,66,1.934,93,2.017,114,4.135,122,4.705,140,1.586,144,6.576,145,4.705,147,7.544,148,5.13,149,4.135,150,5.774,151,5.774,152,7.34,153,5.774,154,2.251,155,4.705,156,3.003,157,1.714,158,5.774,159,5.774,160,2.476,161,4.381]],["t/330",[8,0.577,41,0.997,93,2.106,103,5.733,114,5.403,118,6.702,125,6.702,129,5.357,140,1.657,145,4.914,162,7.89,163,6.03,164,6.03,165,4.099,166,2.721,167,3.745,168,4.914,169,4.319,170,5.357]],["t/332",[8,0.594,93,2.293,140,1.803,171,8.549,172,6.563,173,6.563,174,6.563,175,6.563,176,6.563,177,6.563,178,6.563,179,6.563,180,6.563,181,6.563]],["t/334",[20,7.032,36,4.227,39,3.927,62,2.431,67,6.946,70,6.104,103,3.663,114,3.451,116,2.675,182,1.519,183,5.291,184,6.519,185,5.792,186,6.519,187,4.819,188,4.819,189,6.45,190,7.915,191,7.915,192,1.251,193,4.281,194,4.819,195,4.819,196,6.519,197,6.519,198,3.663,199,6.519,200,4.819,201,4.819,202,1.403,203,3.451,204,4.281,205,4.819]],["t/336",[1,1.686,4,4.868,7,3.69,8,0.363,13,4.823,33,2.585,36,3.52,37,2.882,77,1.677,90,2.449,119,5.749,149,3.888,189,4.424,206,5.428,207,4.424,208,5.428,209,5.428,210,4.823,211,5.428,212,4.424,213,3.52,214,3.888,215,4.823,216,3.52,217,2.738,218,2.659,219,3.013,220,4.823,221,3.888,222,4.126,223,2.515,224,3.013,225,5.428,226,4.823,227,5.428,228,3.888,229,3.372]],["t/338",[37,3.049,90,3.368,93,2.607,183,5.346]],["t/340",[8,0.538,14,4.672,16,1.355,17,2.608,19,3.8,32,5.094,47,3.897,66,2.448,116,4.056,140,1.575,183,4.106,230,7.307,231,5.554,232,5.733,233,5.733,234,5.094,235,5.733,236,5.094,237,4.106,238,5.733,239,4.358,240,5.733,241,5.094,242,3.422,243,5.733,244,2.459,245,5.733,246,5.094,247,5.733]],["t/342",[1,1.687,4,5.096,6,5.318,11,4.878,51,4.287,77,1.849,89,4.549,217,3.02,218,2.932,228,5.378,229,5.096,248,5.986,249,5.986,250,5.318,251,6.671,252,5.986,253,5.986,254,7.509,255,7.509,256,5.986]],["t/344",[1,1.364,4,4.32,50,6.179,67,6.705,70,4.981,93,2.43,257,6.955,258,8.763,259,1.84]],["t/347",[8,0.461,27,6.127,62,3.479,77,2.13,260,6.896,261,4.939,262,6.896,263,5.241,264,3.965,265,6.896,266,6.896,267,4.688,268,6.896]],["t/349",[63,4.143,269,1.778,270,7.464]],["t/351",[8,0.497,15,1.634,21,2.296,75,3.706,77,1.506,137,4.333,203,3.493,226,4.333,228,3.493,229,4.082,263,3.706,267,3.315,271,4.877,272,3.974,273,3.974,274,3.974,275,5.355,276,3.974,277,3.974,278,6.057,279,5.838,280,4.877,281,7.066,282,4.877,283,3.493,284,4.877,285,3.315,286,6.572,287,3.315,288,4.333,289,4.877,290,6.572,291,4.877,292,2.042,293,7.433,294,0.938,295,2.248,296,2.91,297,3.162,298,4.877,299,4.877,300,3.029,301,4.877,302,4.877]],["t/353",[12,3.927,16,1.87,17,2.824,19,2.506,77,2.014,90,2.175,167,2.993,203,5.669,216,3.125,229,2.993,263,4.955,269,0.999,281,7.347,288,5.792,292,1.324,303,5.313,304,6.519,305,5.313,306,3.125,307,4.819,308,4.819,309,4.281,310,4.819,311,4.819,312,3.451,313,4.819,314,4.819,315,4.819,316,4.819,317,4.819,318,4.281,319,4.819,320,6.285,321,3.451,322,4.819,323,3.451,324,4.819,325,4.819,326,4.819,327,4.819,328,4.819]],["t/355",[7,1.458,8,0.615,15,0.719,16,1.368,24,2.513,41,0.585,63,1.191,66,1.94,77,1.617,93,0.749,110,1.537,135,1.333,167,1.333,182,1.115,192,1.618,210,3.143,213,1.391,216,1.391,219,1.191,221,2.533,222,3.43,229,2.803,234,1.906,239,2.689,242,2.694,244,0.92,269,1.086,278,2.883,279,4.01,283,4.464,297,1.391,303,3.678,312,1.537,318,1.906,329,2.145,330,2.145,331,1.748,332,2.145,333,4.267,334,1.21,335,4.01,336,1.899,337,0.856,338,3.678,339,2.906,340,1.185,341,2.145,342,5.615,343,4.148,344,2.145,345,2.145,346,2.457,347,1.906,348,2.145,349,4.513,350,4.267,351,6.592,352,1.631,353,3.143,354,1.906,355,2.145,356,2.145,357,2.145,358,1.748,359,2.145,360,2.145,361,4.513,362,2.145,363,0.868,364,1.445,365,1.379,366,0.836,367,3.143,368,2.363,369,1.137,370,3.143,371,2.145,372,2.145,373,3.537,374,3.537,375,1.748,376,1.748,377,3.537,378,3.537,379,3.537,380,1.631,381,4.513,382,3.537,383,1.537,384,2.145,385,5.236,386,1.748,387,2.145,388,2.145,389,2.145,390,2.145,391,2.145,392,1.748,393,2.145,394,1.748,395,0.462,396,1.748,397,2.145,398,2.145,399,2.145,400,1.748,401,3.537,402,1.748,403,1.906,404,1.631,405,1.631,406,1.906,407,2.145,408,2.145,409,2.294,410,1.631,411,2.145,412,1.537,413,1.906,414,1.906,415,1.906]],["t/357",[8,0.628,16,1.844,24,2.974,41,0.607,43,1.851,66,1.229,77,1.134,79,3.261,216,3.489,221,5.023,222,2.789,229,2.28,242,2.19,269,0.761,303,2.991,333,5.19,335,3.261,338,2.991,340,1.229,342,4.384,343,3.853,346,2.005,363,0.55,364,1.499,365,1.431,366,1.271,367,3.261,368,2.874,369,1.18,370,3.261,400,2.991,402,2.991,409,2.38,412,3.853,413,3.261,414,3.261,416,3.67,417,6.369,418,3.67,419,2.991,420,3.67,421,3.67,422,1.499,423,1.536,424,6.369,425,6.369,426,3.261,427,3.67,428,3.67,429,3.67,430,3.67,431,5.38,432,3.67,433,7.803,434,3.67,435,3.67,436,3.67,437,3.67,438,3.67]],["t/360",[8,0.644,21,2.837,28,4.065,41,0.756,110,3.277,157,2.3,212,3.729,213,2.967,217,3.174,218,3.523,295,2.152,296,2.731,312,3.277,321,3.277,350,3.729,395,0.985,406,4.065,419,3.729,439,3.729,440,4.065,441,4.576,442,4.576,443,2.295,444,4.576,445,6.172,446,3.277,447,4.576,448,4.065,449,2.457,450,3.478,451,4.065,452,4.576]],["t/362",[8,0.632,12,3.254,19,2.077,21,1.998,41,1.206,43,2.015,47,2.714,63,2.217,91,3.709,110,4.096,155,3.254,160,2.453,182,1.802,217,2.885,218,3.936,228,2.86,237,2.86,269,1.386,295,1.366,297,2.59,300,3.552,321,4.096,338,3.254,395,1.231,445,3.035,451,5.081,453,3.994,454,3.994,455,3.254,456,5.719,457,2.86,458,3.994,459,3.994,460,5.936,461,5.719,462,3.994,463,3.994,464,3.994,465,3.994,466,3.548,467,3.994,468,3.994,469,3.994,470,3.994,471,2.144,472,3.994,473,2.59,474,3.994,475,3.994,476,3.548,477,3.994,478,3.994,479,2.48]],["t/364",[8,0.446,41,1.103,66,2.235,207,5.436,218,3.932,320,5.07,321,4.778,403,5.926,445,6.543,455,5.436,480,6.671,481,6.671,482,6.671,483,6.671]],["t/366",[1,1.086,8,0.611,15,1.855,19,2.88,21,1.935,24,2.111,112,4.514,156,2.88,157,1.644,192,1.437,202,1.613,241,6.35,244,2.375,251,4.921,306,3.592,309,4.921,337,2.852,353,4.921,484,5.539,485,4.921,486,6.35,487,5.539,488,5.539,489,4.21,490,5.539,491,4.921,492,5.539,493,7.147,494,7.147,495,5.539]],["t/368",[8,0.634,37,1.742,43,3.993,157,2.35,202,1.242,217,3.495,218,2.936,237,3.055,292,2.256,294,0.821,295,2.808,334,1.459,395,1.491,423,1.784,443,2.526,448,3.789,449,3.719,486,6.155,496,3.789,497,4.883,498,4.873,499,7.514,500,7.514,501,1.699]],["t/370",[33,3.491,90,3.308,91,4.753,93,2.56,217,3.698,218,3.591]],["t/372",[7,4.852,216,4.628,219,3.962,220,6.341,502,7.138,503,4.26,504,7.138,505,6.341,506,6.341]],["t/374",[1,1.253,8,0.64,16,1.106,185,4.159,192,1.215,219,2.598,223,2.962,267,3.182,269,0.971,292,1.286,294,0.901,306,3.035,363,1.091,375,3.815,410,4.858,446,4.577,501,1.148,507,4.681,508,4.681,509,3.815,510,4.681,511,2.382,512,3.558,513,6.391,514,5.678,515,4.858,516,5.678,517,4.159,518,4.681,519,4.681,520,4.681,521,4.681,522,4.681,523,4.159,524,4.681,525,4.681,526,4.159]],["t/376",[1,1.283,8,0.625,22,4.307,24,2.495,43,2.445,160,2.807,182,2.062,202,1.411,223,2.246,292,1.332,295,1.658,363,1.242,364,1.98,365,1.89,369,2.105,509,5.334,527,3.763,528,4.848,529,1.851,530,4.307,531,3.011,532,4.848,533,2.603,534,4.307,535,4.307,536,2.787,537,5.815,538,4.307,539,5.815,540,4.848,541,4.848,542,4.848,543,4.307]],["t/378",[1,1.079,8,0.622,61,2.861,93,1.922,244,2.359,295,1.882,358,6.428,363,1.25,366,1.3,369,1.769,498,3.567,529,1.229,544,1.922,545,6.322,546,4.888,547,4.888,548,4.181,549,5.501,550,4.483,551,4.888,552,2.549,553,4.888,554,4.888,555,4.888,556,4.888,557,3.567,558,4.888,559,5.501]],["t/380",[8,0.465,41,1.15,90,3.138,93,2.43,560,4.981,561,6.179,562,6.179,563,6.179,564,3.734,565,6.179,566,6.179,567,6.179]],["t/382",[1,1.785,41,1.213,77,2.493,120,5.13,229,4.559,269,1.522,485,5.13,568,5.774,569,7.169,570,5.774,571,5.774,572,5.774,573,5.774,574,7.34,575,1.857,576,5.774,577,5.774,578,7.34,579,5.774,580,5.774,581,5.774]],["t/384",[8,0.504,582,7.533,583,7.533]],["t/386",[8,0.556,33,2.937,37,3.397,49,6.321,70,5.956,81,5.479,89,4.687,91,3.999,93,2.154,246,5.479,584,6.167,585,6.167,586,6.234,587,6.777,588,5.479,589,5.479]],["t/388",[1,0.929,8,0.65,21,2.252,24,1.806,61,2.465,90,1.398,93,1.656,136,3.07,140,0.851,149,2.219,165,2.106,166,2.909,182,1.493,217,1.563,218,1.518,219,1.72,259,1.253,269,0.983,292,1.302,294,0.912,296,3.847,297,2.009,340,2.159,363,1.041,365,1.848,366,1.12,369,1.524,395,1.387,443,2.35,501,1.162,529,1.286,544,1.082,560,2.219,590,2.525,591,2.219,592,1.106,593,1.848,594,2.725,595,2.834,596,3.461,597,2.697,598,1.848,599,1.278]],["t/390",[1,0.987,8,0.648,21,1.758,24,1.278,37,1.37,61,2.617,90,1.513,93,1.758,136,2.396,140,0.921,149,2.402,165,2.279,182,1.586,202,1.758,217,3.627,218,2.465,219,1.861,259,0.887,269,1.043,292,1.383,294,0.968,297,2.175,340,1.686,363,1.006,365,1.962,366,1.189,369,1.618,395,1.083,443,1.835,449,2.701,497,2.733,501,0.822,529,1.124,544,1.171,548,3.824,560,2.402,575,1.078,590,2.733,592,1.197,593,1.962,594,2.893,595,2.213,597,2.105,598,1.962,599,0.904,600,3.353,601,3.353,602,2.733,603,5.032,604,5.032,605,5.032]],["t/392",[1,0.981,8,0.631,15,1.917,24,0.95,33,2.725,41,0.412,61,2.078,90,1.125,93,1.396,136,1.903,140,0.685,149,1.785,156,2.976,165,1.694,182,1.259,219,2.777,223,3.254,244,2.454,259,0.659,267,2.716,269,1.693,292,1.572,294,0.769,295,1.367,297,3.244,320,4.349,337,0.995,363,0.939,364,1.633,366,0.944,369,1.285,395,1.077,400,4.663,471,2.146,501,0.611,523,2.215,526,5.084,529,1.118,533,2.146,539,3.551,544,0.871,557,3.711,560,1.785,590,2.031,592,0.89,593,1.558,594,2.298,599,0.672,606,0.909,607,3.997,608,5.722,609,3.997,610,3.997,611,5.722,612,3.997,613,5.722,614,3.997,615,3.997,616,3.997,617,3.997,618,3.997,619,2.493,620,2.493,621,3.551,622,3.068,623,3.551,624,1.616,625,3.997,626,3.257,627,2.218,628,2.218,629,3.997,630,1.694,631,2.493,632,2.493]],["t/394",[1,1.159,7,1.793,8,0.642,24,1.593,37,2.631,41,0.691,61,3.073,62,2.981,136,1.991,140,1.624,157,1.241,182,1.862,219,4.654,223,2.738,261,1.889,269,1.421,292,1.624,294,0.999,295,1.776,340,1.401,363,1.15,364,1.708,365,2.025,366,1.396,369,2.309,443,1.525,449,2.245,512,2.005,517,2.344,527,2.404,529,1.439,531,1.638,533,1.416,544,0.921,552,1.222,592,1.492,593,2.304,594,3.397,595,1.838,633,2.638,634,3.714,635,4.181,636,4.181,637,2.344,638,6.441,639,2.15,640,2.638,641,2.344,642,2.638,643,2.638,644,2.638,645,2.638,646,2.638,647,2.638]],["t/396",[1,0.716,4,2.269,8,0.632,21,2.219,24,1.393,36,2.369,47,2.483,61,2.789,90,1.649,104,2.777,157,1.886,160,2.724,182,1.69,189,4.37,219,2.977,244,3.001,259,0.966,292,1.745,294,0.703,297,3.477,300,3.946,331,2.978,337,1.458,363,0.952,364,2.19,365,2.091,366,1.267,369,1.724,395,1.154,443,2.316,501,0.896,515,5.921,529,1.198,575,1.724,593,2.091,594,3.083,597,2.244,598,2.091,599,0.985,626,4.37,648,4.538,649,3.654,650,2.181,651,5.362,652,3.246,653,3.654,654,3.654,655,3.654,656,3.654]],["t/398",[1,1.299,8,0.62,41,0.816,156,2.567,157,1.967,168,4.022,231,3.751,264,2.838,283,3.535,292,1.356,312,3.535,363,1.121,368,2.227,512,3.751,535,5.886,544,1.724,575,1.587,593,2.583,639,4.022,657,3.751,658,3.535,659,4.936,660,4.936,661,4.936,662,4.936,663,4.936,664,4.385,665,7.478,666,2.946,667,3.201,668,4.936,669,4.936,670,4.936,671,4.936,672,4.936,673,4.936,674,4.936,675,4.936,676,4.936,677,4.936,678,4.936]],["t/401",[1,0.622,8,0.642,15,2.185,16,0.749,41,0.797,43,1.6,66,1.062,77,0.979,157,2.496,160,1.36,202,1.404,215,2.817,217,1.6,218,1.553,228,2.271,229,1.97,236,2.817,242,1.892,244,1.36,267,2.155,294,0.928,295,2.4,300,2.996,306,3.785,336,1.702,337,1.265,340,2.185,354,2.817,395,1.404,409,3.128,410,4.437,423,2.018,439,3.931,443,2.379,457,2.271,550,2.584,602,5.316,679,3.171,680,5.837,681,3.171,682,2.817,683,4.285,684,3.171,685,7.918,686,4.823,687,8.111,688,3.171,689,4.285,690,2.817]],["t/403",[8,0.63,15,2.837,21,2.553,66,1.921,98,5.094,244,2.459,292,2.327,300,4.539,363,0.86,395,1.234,443,2.091,515,4.358,548,4.358,575,1.844,641,5.094,648,3.718,691,5.733,692,5.733,693,5.733]],["t/405",[1,0.61,8,0.62,11,2.535,16,1.363,24,1.812,41,0.514,57,6.992,63,1.727,66,1.932,75,2.364,77,0.961,99,6.517,104,5.575,110,2.228,135,1.932,136,2.747,155,2.535,170,4.223,182,2.192,192,1.234,216,2.017,269,0.986,278,3.873,283,2.228,292,1.306,294,1.11,296,3.443,306,3.082,336,2.552,346,2.407,347,5.738,363,1.043,365,1.213,366,0.735,369,1,376,2.535,412,2.228,423,1.301,544,1.087,564,1.67,575,1.855,650,1.856,666,2.837,690,2.763,694,4.753,695,3.921,696,7.336,697,3.111,698,3.111,699,6.458,700,2.763,701,2.228,702,5.769,703,4.753,704,3.111,705,3.111,706,3.111,707,3.111,708,3.111,709,3.111,710,3.111,711,2.763,712,2.763,713,3.111,714,3.111,715,3.111]],["t/407",[1,1.055,8,0.614,21,1.282,24,2.427,41,1.053,47,2.495,63,3.535,66,1.229,93,1.282,154,1.431,182,2.007,214,2.629,216,2.38,223,2.951,264,3.093,269,1.548,363,1.24,365,1.431,366,1.271,368,2.874,369,1.73,383,2.629,392,2.991,394,2.991,412,2.629,476,3.261,511,1.368,515,2.789,516,3.261,533,1.97,536,2.11,544,1.879,557,2.38,569,4.78,593,2.098,594,2.11,606,1.338,637,3.261,689,3.261,695,5.075,716,3.261,717,3.67,718,3.67,719,3.67,720,3.67,721,3.67,722,3.67,723,3.67,724,3.67,725,3.67,726,3.67,727,5.38,728,3.261,729,3.67,730,4.089,731,2.789,732,5.38,733,3.67,734,2.28,735,3.67,736,3.67,737,2.789,738,3.67]],["t/410",[8,0.409,37,3.11,41,1.012,49,5.787,51,4.383,70,5.453,305,4.988,412,4.383,415,5.437,586,6.205,587,6.205,588,5.437,589,6.764,695,4.16,716,5.437,739,6.12,740,6.12,741,6.12,742,6.12,743,4.652,744,4.383,745,6.12]],["t/412",[1,1.7,8,0.509,37,3.386,66,2.551,140,2.451,244,2.625,336,4.088,489,4.652,592,2.717,746,6.12,747,6.12,748,7.614,749,7.614]],["t/414",[1,1.277,8,0.617,37,2.66,140,1.789,182,2.492,363,1.186,364,2.66,366,1.538,369,2.094,564,3.496,750,3.875,751,4.222]],["t/416",[1,1.277,8,0.617,37,2.66,140,1.789,182,2.492,363,1.186,364,2.66,366,1.538,369,2.094,564,3.496,752,3.99,753,6.511]],["t/418",[8,0.644,47,3.417,93,1.756,116,3.723,157,2.391,160,2.876,182,2.537,183,3.6,237,3.6,294,0.967,295,2.869,402,4.097,514,4.466,530,4.466,591,3.6,754,4.559,755,4.166,756,3.601,757,2.113,758,3.6]],["t/421",[1,0.999,8,0.651,16,0.806,37,2.081,41,0.564,66,1.142,93,1.191,136,2.426,140,1.4,157,2.009,160,2.902,161,2.035,182,2.729,244,2.185,295,2.83,300,2.118,363,0.764,364,2.081,365,1.986,366,1.204,369,1.638,443,2.224,552,3.135,648,3.303,667,3.303,754,4.599,756,2.735,759,3.409,760,5.094,761,3.409,762,3.409,763,2.035]],["t/423",[1,0.945,8,0.645,37,1.969,41,0.797,66,1.614,140,1.324,157,1.936,160,3.168,161,2.876,182,2.686,244,2.795,294,0.927,295,2.23,363,0.977,364,1.969,365,1.879,366,1.139,369,1.55,409,3.125,443,2.377,552,2.233,575,1.55,754,3.276,756,2.587,763,2.876,764,4.227,765,4.819]],["t/425",[1,0.85,8,0.625,21,2.117,37,1.77,41,1.002,66,1.451,82,2.945,90,2.734,133,3.293,135,2.691,140,1.191,156,4.141,157,1.799,160,1.858,161,2.586,182,1.909,285,4.118,287,2.945,336,2.326,363,0.908,364,1.77,365,1.689,366,1.024,369,1.393,380,4.605,404,4.605,450,4.605,457,4.34,575,1.393,597,1.813,622,2.968,744,3.103,754,2.945,757,2.202,766,3.531,767,3.849,768,4.938,769,4.34,770,1.955,771,2.123,772,2.008,773,3.849,774,4.333,775,3.103,776,3.103,777,3.103,778,3.103]],["t/427",[1,0.807,8,0.634,21,2.041,37,1.681,41,0.68,82,2.797,133,3.127,135,2.555,140,1.13,156,4.575,157,1.735,160,2.913,161,2.456,182,1.841,244,2.505,285,3.971,287,3.971,336,3.137,363,0.876,364,1.681,365,1.604,366,0.972,369,1.323,409,2.668,557,2.668,575,1.323,597,1.722,744,2.947,754,2.797,757,2.33,764,3.788,766,3.353,769,4.184,770,1.857,771,2.016,772,1.907,773,3.655,775,4.184,776,4.184,777,4.184,778,4.184,779,3.655,780,4.114]],["t/429",[1,0.692,8,0.629,16,1.234,21,2.174,33,1.68,37,1.441,41,0.864,62,2.636,82,2.398,90,1.592,93,1.232,133,2.681,135,2.191,140,0.969,156,3.82,157,1.551,160,2.669,161,2.105,182,1.646,207,2.875,213,3.388,244,1.513,285,2.398,287,2.398,294,1.005,320,2.681,336,3.341,350,5.071,363,0.783,364,1.441,365,1.375,366,0.833,369,1.134,386,2.875,409,2.287,443,1.286,575,1.134,597,1.476,626,2.875,667,2.287,701,2.526,744,2.526,754,2.398,756,1.894,757,2.424,758,4.457,764,2.287,766,2.875,769,2.526,770,1.592,771,1.728,775,2.526,776,2.526,777,2.526,778,2.526,779,3.134,781,6.269,782,3.527,783,3.527,784,3.527,785,2.191,786,6.223,787,2.875,788,3.527,789,3.527,790,5.225]],["t/431",[41,1.16,90,3.165,380,5.332,404,5.332,450,5.332,457,5.024,622,3.437,757,2.211,767,6.232,768,5.717,791,6.232]],["t/433",[37,2.833,41,1.474,62,2.667,93,1.847,167,3.284,183,5.542,503,5.223,586,4.309,728,4.698,756,4.699,757,2.185,758,4.967,764,4.497,792,5.288,793,5.288,794,5.288,795,5.032,796,6.875,797,5.288,798,4.698]],["t/435",[1,0.727,8,0.633,24,0.866,41,0.613,46,1.726,61,1.181,63,3.008,75,4.118,91,1.473,92,2.017,111,2.017,112,1.851,117,2.017,121,2.017,135,1.41,143,2.017,157,0.674,182,1.707,192,0.589,203,1.626,219,1.261,223,1.717,244,2.013,259,0.601,264,2.7,269,0.471,292,1.018,295,1.606,312,2.654,340,0.761,342,1.851,358,3.826,363,1.093,365,1.445,366,1.109,368,1.672,369,1.192,375,1.851,376,3.02,395,1.166,491,4.814,498,1.473,501,0.557,509,3.02,527,2.131,529,1.574,533,1.219,534,4.171,536,2.7,537,2.017,538,3.293,545,3.293,546,2.017,547,2.017,548,2.817,550,3.826,551,3.293,552,1.717,553,2.017,554,5.304,555,2.017,556,2.017,557,1.473,558,3.293,575,0.73,599,0.612,634,2.017,639,1.851,658,2.654,701,2.654,711,2.017,734,2.916,799,3.706,800,2.271,801,2.271,802,3.706,803,3.706,804,2.017,805,2.271,806,3.706,807,2.271,808,2.271,809,4.695,810,4.171,811,5.418,812,5.97,813,5.418,814,3.706,815,2.271,816,2.271,817,2.271,818,3.706,819,2.271,820,4.695,821,2.271,822,3.706,823,2.271,824,2.271,825,2.271,826,2.271,827,2.271,828,2.271,829,2.271,830,2.271,831,2.271,832,2.271,833,2.271]],["t/437",[8,0.477,33,3.399,90,3.221,93,2.493,217,3.601,218,3.497,294,1.608,591,5.112]],["t/439",[1,1.426,8,0.633,17,2.032,140,1.564,259,1.506,269,1.509,363,1.202,365,2.836,395,1.566,501,1.784,529,1.272,544,1.989,592,2.032,599,1.535,834,5.693,835,1.724,836,1.724,837,6.463,838,3.692]],["t/441",[1,1.299,8,0.637,61,3.445,140,1.356,182,2.088,259,1.305,264,3.809,269,1.374,363,1.121,365,2.583,366,1.565,368,2.989,369,2.13,395,1.426,501,1.625,529,1.103,544,1.724,592,1.761,593,2.583,594,3.809,599,1.33,734,4.115,750,2.418,835,1.495,836,1.495,838,3.201,839,3.535]],["t/443",[1,1.365,8,0.64,140,1.462,259,1.408,269,1.444,363,1.164,365,2.715,395,1.499,501,1.708,529,1.189,544,1.859,592,1.899,599,1.435,737,5.293,750,2.607,835,1.612,836,1.612,838,3.451,839,3.812,840,4.337,841,4.337,842,5.675,843,4.337]],["t/445",[1,1.239,8,0.642,33,2.191,140,1.264,224,3.507,259,1.217,269,1.31,339,3.507,363,1.081,365,2.463,395,1.36,501,1.549,529,1.028,544,1.607,592,1.642,599,1.24,750,2.254,835,1.393,836,1.393,838,2.984,839,3.296,844,3.75,845,5.531,846,6.327,847,5.148,848,3.77,849,3.77,850,5.148,851,3.75]],["t/447",[1,1.262,8,0.631,15,1.252,16,0.883,17,1.334,24,1.425,41,0.901,140,1.027,182,1.718,192,0.97,214,2.677,224,4.175,259,1.442,269,1.335,363,1.061,365,2.126,383,2.677,395,1.619,446,3.905,501,1.735,529,1.438,544,1.306,592,1.334,593,2.126,599,1.47,750,1.831,835,1.132,836,1.132,838,2.424,839,2.677,845,2.54,848,2.231,849,3.254,852,4.809,853,4.809,854,3.046,855,3.046,856,3.046,857,4.443,858,4.443,859,4.443,860,3.046,861,4.443,862,4.443,863,5.452,864,4.443,865,3.046,866,1.11]],["t/449",[8,0.556,36,3.999,167,3.83,169,4.417,198,4.687,224,3.423,261,4.417,343,4.417,352,4.687,743,4.687,771,3.747,848,4.565,849,3.68,852,5.2,853,5.2,867,5.025,868,5.025,869,5.025,870,5.025,871,5.025,872,5.025]],["t/451",[1,1.045,8,0.641,16,1.646,24,1.38,63,2.957,157,1.075,182,1.141,192,1.64,264,3.063,269,1.105,292,2.134,295,2.162,363,1.204,365,2.077,395,1.773,439,5.15,498,3.454,501,1.821,544,1.861,552,2.928,695,3.621,730,5.296,731,4.049,734,3.309,750,1.774,838,3.454,839,2.594,866,1.876,873,2.951,874,2.951,875,4.341,876,2.951,877,2.951,878,2.951,879,4.341]],["t/454",[750,3.725,880,3.523]],["t/456",[8,0.527,33,2.62,37,2.247,93,1.922,202,2.072,212,4.483,213,3.567,217,4.357,218,4.086,237,3.94,267,3.739,294,1.369,334,1.882,410,4.181,423,2.302,426,4.888,443,2.006,445,4.181,455,4.483,496,4.888,497,5.799,587,4.483,770,2.482,771,2.695,772,2.549,881,2.549,882,5.501,883,5.501,884,5.501,885,5.501,886,4.888]],["t/458",[8,0.477,33,3.399,90,3.221,93,2.493,217,3.601,218,3.497,294,1.608,591,5.112]],["t/460",[1,1.294,8,0.634,16,1.159,17,1.751,41,0.811,140,1.348,192,1.273,223,3.057,259,1.298,269,1.546,294,1.27,363,1.195,395,1.605,471,2.634,501,1.618,529,1.096,544,1.714,592,1.751,599,1.322,622,2.403,624,3.181,627,2.723,628,2.723,630,3.335,835,1.486,836,1.486,866,1.457,887,4.906,888,6.598,889,4.286,890,3.514]],["t/462",[1,1.171,8,0.638,16,1.002,41,0.701,61,3.105,140,1.166,182,1.881,192,1.101,223,2.767,259,1.122,264,3.433,269,1.433,294,1.149,363,1.124,366,1.411,368,2.694,369,1.92,395,1.487,471,2.278,501,1.464,529,0.948,533,3.205,544,1.482,592,1.514,593,2.328,594,3.433,599,1.144,622,2.078,624,2.751,627,2.355,628,2.355,630,2.884,734,3.708,752,2.14,835,1.285,836,1.285,866,1.26,889,3.972,890,3.039,891,3.039]],["t/464",[1,1.224,8,0.641,16,1.069,41,0.748,140,1.243,192,1.174,223,2.894,259,1.197,269,1.483,294,1.202,363,1.156,395,1.539,471,2.429,501,1.532,529,1.011,533,3.353,544,1.581,592,1.615,599,1.22,622,2.217,624,2.934,627,2.512,628,2.512,630,3.076,737,4.746,752,2.283,835,1.37,836,1.37,840,3.688,841,3.688,842,5.089,843,3.688,866,1.344,889,4.111,890,3.241,891,3.241]],["t/466",[1,1.121,8,0.642,16,0.944,33,1.902,41,0.66,140,1.097,192,1.036,223,2.65,224,3.175,259,1.056,269,1.386,294,1.101,339,3.175,363,1.094,395,1.438,471,2.144,501,1.403,529,0.892,533,3.071,544,1.395,592,1.425,599,1.077,622,1.956,624,2.59,627,2.217,628,2.217,630,2.714,752,2.015,835,1.209,836,1.209,844,3.254,845,5.248,846,5.946,847,4.661,848,3.413,849,3.413,850,4.661,851,3.254,866,1.186,889,3.842,890,2.86,891,2.86]],["t/468",[1,1.178,8,0.633,15,1.114,16,1.181,17,1.187,24,1.268,41,0.993,140,0.914,182,1.576,192,1.298,214,2.382,223,2.317,224,3.977,259,1.323,269,1.386,294,0.962,363,1.074,383,2.382,395,1.62,446,3.582,471,1.786,501,1.639,529,1.343,533,2.685,543,4.443,544,1.162,592,1.187,593,1.95,599,1.348,622,1.629,624,2.157,627,1.846,628,1.846,630,2.261,752,1.678,835,1.007,836,1.007,845,2.261,848,1.985,849,2.985,852,4.543,853,4.543,854,2.711,855,2.711,856,2.711,857,4.075,858,4.075,859,4.075,860,2.711,861,4.075,862,4.075,864,4.075,865,2.711,866,1.485,889,3.455,890,2.382,891,2.382]],["t/470",[8,0.556,36,3.999,167,3.83,169,4.417,198,4.687,224,3.423,261,4.417,343,4.417,352,4.687,743,4.687,771,3.747,848,4.565,849,3.68,852,5.2,853,5.2,867,5.025,868,5.025,869,5.025,870,5.025,871,5.025,872,5.025]],["t/472",[1,1.087,8,0.638,16,1.69,24,1.458,63,3.078,157,1.136,182,1.205,192,1.692,223,2.569,264,3.188,292,2.175,295,2.231,363,1.224,395,1.704,498,3.595,501,1.6,533,2.977,544,1.937,552,3.022,695,3.769,730,5.436,731,4.214,734,3.444,752,1.93,866,1.936,873,3.117,874,3.117,875,4.518,876,3.117,877,3.117,878,3.117,879,4.518,891,2.739,892,6.522]],["t/475",[66,2.412,750,4.114,752,4.236,795,4.14,880,3.891]],["t/478",[8,0.628,15,2.767,16,0.939,17,1.418,21,2.328,41,0.657,77,1.227,113,1.623,154,1.549,166,2.572,192,1.031,202,1.659,259,1.051,269,0.824,292,1.831,294,0.765,334,1.359,337,1.586,346,1.481,363,1.155,395,1.434,422,2.328,423,1.663,501,1.398,511,1.481,529,0.888,575,1.833,595,2.506,596,3.06,597,2.385,598,2.222,599,1.071,606,1.449,757,1.252,770,2.572,835,1.203,836,1.203,866,1.18,881,1.842,893,3.02,894,3.06,895,2.641,896,4.082,897,4.332,898,2.792,899,1.663,900,1.663,901,1.586,902,1.549]],["t/480",[8,0.637,15,2.639,16,0.891,21,2.26,41,0.624,66,1.839,77,1.165,113,1.541,154,1.471,166,2.477,192,0.979,202,1.598,259,0.998,269,0.782,292,1.778,294,0.726,334,1.29,337,1.505,346,1.406,363,1.132,395,1.393,422,2.242,423,1.578,449,2.947,501,1.346,511,1.406,529,0.843,575,2.285,595,2.414,596,2.947,597,2.296,598,2.14,599,1.017,606,1.375,757,1.189,770,2.477,835,1.142,836,1.142,866,1.12,881,1.748,894,2.947,895,2.543,896,3.931,898,2.689,899,1.578,900,1.578,901,1.505,902,1.471,903,2.343,904,1.578]],["t/482",[8,0.638,15,2.712,16,0.879,21,2.242,41,0.615,66,1.82,77,1.149,113,1.52,154,1.451,166,2.452,192,0.966,202,1.582,259,0.984,269,0.771,292,1.764,294,0.716,334,1.273,337,1.484,346,1.387,363,1.126,395,1.382,422,2.22,423,1.557,449,2.917,501,1.333,511,1.387,529,0.831,575,2.27,595,2.389,596,2.917,597,2.274,598,2.118,599,1.003,606,1.357,757,1.172,770,2.452,835,1.127,836,1.127,866,1.105,881,1.724,894,2.917,895,2.518,896,3.892,898,2.662,899,1.557,900,1.557,901,1.484,902,1.451,903,2.311,904,1.557]],["t/485",[757,2.396,880,3.523]],["t/487",[880,3.523,904,3.181]],["t/489",[8,0.539,33,3.203,90,3.035,91,4.361,93,2.817,217,3.393,218,3.295,306,4.361,443,2.453,602,5.481,770,3.035,771,3.295,772,3.117,886,5.975]],["t/492",[8,0.63,15,2.562,16,0.921,17,1.391,21,2.303,41,0.644,77,1.204,113,1.592,154,1.52,157,1.669,192,1.012,202,1.637,259,1.031,269,0.808,292,1.811,294,0.75,334,1.333,336,3.018,337,1.555,340,1.883,346,1.453,363,1.147,366,1.328,395,1.419,422,2.296,423,1.631,501,1.379,511,1.453,529,0.871,575,1.807,595,2.472,597,2.352,598,2.191,599,1.051,606,1.421,757,1.228,771,2.754,835,1.18,836,1.18,866,1.157,881,1.806,893,2.963,895,2.605,897,4.272,898,2.754,899,1.631,900,1.631,901,1.555,902,1.52,905,3.018,906,4.026]],["t/494",[8,0.638,15,2.36,16,0.875,21,2.236,41,0.612,66,1.814,77,1.144,113,1.513,154,1.444,157,1.608,192,0.961,202,1.577,259,0.98,269,0.768,292,1.759,294,0.713,334,1.267,336,2.908,337,1.478,340,1.814,346,1.38,363,1.124,366,1.28,395,1.378,422,2.212,423,1.55,449,2.908,501,1.328,511,1.38,529,0.827,575,2.265,595,2.381,597,2.266,598,2.111,599,0.998,606,1.35,757,1.167,771,2.653,835,1.121,836,1.121,866,1.1,881,1.716,895,2.509,898,2.653,899,1.55,900,1.55,901,1.478,902,1.444,903,2.3,904,1.55,905,2.908,906,3.879]],["t/496",[8,0.639,15,2.497,16,0.863,21,2.219,41,0.604,66,1.796,77,1.129,113,1.493,154,1.425,157,1.592,192,0.948,202,1.561,259,0.966,269,0.758,292,1.745,294,0.703,334,1.25,336,2.879,337,1.458,340,1.796,346,1.362,363,1.117,366,1.267,395,1.367,422,2.19,423,1.529,449,2.879,501,1.315,511,1.362,529,0.816,575,2.25,595,2.358,597,2.244,598,2.091,599,0.985,606,1.332,757,1.151,771,2.627,835,1.106,836,1.106,866,1.085,881,1.693,895,2.485,898,2.627,899,1.529,900,1.529,901,1.458,902,1.425,903,2.269,904,1.529,905,2.879,906,3.84]],["t/499",[757,2.396,880,3.523]],["t/501",[880,3.523,904,3.181]],["t/504",[8,0.625,15,2.611,16,0.967,17,1.461,21,2.366,41,0.677,77,1.264,113,1.672,154,1.596,157,1.728,166,2.627,192,1.062,202,1.695,259,1.083,269,0.849,292,1.861,294,0.788,334,1.4,337,1.633,340,1.95,346,1.526,363,1.169,366,1.375,395,1.458,422,2.378,423,1.713,501,1.428,511,1.526,529,0.915,575,1.872,597,2.436,598,2.27,599,1.104,606,1.493,757,1.29,772,2.697,835,1.24,836,1.24,866,1.215,881,1.897,893,3.111,897,4.424,898,2.852,899,1.713,900,1.713,901,1.633,902,1.596,905,3.125]],["t/506",[8,0.636,15,2.412,16,0.917,21,2.296,41,0.641,66,1.876,77,1.198,113,1.585,154,1.513,157,1.663,166,2.528,192,1.007,202,1.631,259,1.026,269,0.805,292,1.806,294,0.747,334,1.327,337,1.548,340,1.876,346,1.446,363,1.145,366,1.323,395,1.415,422,2.288,423,1.623,449,3.007,501,1.374,511,1.446,529,0.867,575,2.315,597,2.344,598,2.184,599,1.046,606,1.415,757,1.223,772,2.596,835,1.175,836,1.175,866,1.152,881,1.798,898,2.744,899,1.623,900,1.623,901,1.548,902,1.513,903,2.41,904,1.623,905,3.007]],["t/508",[8,0.638,15,2.543,16,0.904,21,2.278,41,0.632,66,1.857,77,1.181,113,1.562,154,1.491,157,1.646,166,2.502,192,0.993,202,1.614,259,1.012,269,0.793,292,1.792,294,0.736,334,1.308,337,1.526,340,1.857,346,1.426,363,1.138,366,1.31,395,1.404,422,2.265,423,1.6,449,2.977,501,1.36,511,1.426,529,0.855,575,2.3,597,2.32,598,2.162,599,1.031,606,1.395,757,1.205,772,2.569,835,1.158,836,1.158,866,1.136,881,1.772,898,2.716,899,1.6,900,1.6,901,1.526,902,1.491,903,2.376,904,1.6,905,2.977]],["t/511",[757,2.396,880,3.523]],["t/513",[880,3.523,904,3.181]],["t/516",[8,0.636,15,2.601,16,1.366,17,1.446,41,0.67,77,1.252,113,1.656,154,1.58,166,2.608,192,1.052,202,1.18,259,1.072,269,0.84,292,1.851,294,0.78,295,2.656,334,1.386,340,1.936,346,1.511,363,1.164,366,1.366,395,1.45,422,2.361,443,2.108,501,1.418,511,1.511,529,0.905,552,2.678,575,1.859,595,2.542,596,3.103,598,2.254,599,1.093,606,1.478,835,1.227,836,1.227,866,1.203,893,3.08,897,4.393,899,1.696,900,1.696,901,1.617,902,1.58]],["t/518",[8,0.642,15,2.401,16,1.314,41,0.635,66,1.864,77,1.187,113,1.57,154,1.498,166,2.51,192,0.997,202,1.119,259,1.016,269,0.797,292,1.797,294,0.74,295,2.602,334,1.314,340,1.864,346,1.432,363,1.14,366,1.314,395,1.407,422,2.273,443,2.029,449,2.987,501,1.365,511,1.432,529,0.859,552,2.578,575,2.305,595,2.446,596,2.987,598,2.169,599,1.036,606,1.401,835,1.164,836,1.164,866,1.141,899,1.608,900,1.608,901,1.533,902,1.498,903,2.387,904,1.608]],["t/520",[8,0.643,15,2.534,16,1.301,41,0.626,66,1.845,77,1.17,113,1.548,154,1.477,166,2.485,192,0.983,202,1.103,259,1.002,269,0.786,292,1.782,294,0.729,295,2.587,334,1.296,340,1.845,346,1.413,363,1.134,366,1.301,395,1.396,422,2.25,443,2.008,449,2.957,501,1.351,511,1.413,529,0.847,552,2.552,575,2.29,595,2.422,596,2.957,598,2.147,599,1.022,606,1.382,835,1.147,836,1.147,866,1.125,899,1.586,900,1.586,901,1.512,902,1.477,903,2.354,904,1.586]],["t/523",[880,3.523,904,3.181]],["t/525",[8,0.477,33,3.399,90,3.221,93,2.493,217,3.601,218,3.497,294,1.608,591,5.112]],["t/527",[1,1.234,8,0.637,16,1.081,17,2.246,24,1.744,41,0.756,140,1.257,192,1.188,259,1.21,269,1.491,294,1.211,363,1.161,395,1.548,471,2.457,501,1.543,529,1.022,544,1.598,592,1.633,599,1.233,622,2.242,627,2.54,628,2.54,835,1.386,836,1.386,837,5.591,866,1.359,889,4.135,907,3.11,908,4.576,909,3.909,910,3.909,911,4.277,912,4.277,913,4.507]],["t/529",[1,1.121,8,0.642,16,0.944,17,1.425,24,1.522,41,0.66,61,2.974,140,1.097,182,1.802,192,1.036,242,2.383,259,1.056,264,3.288,269,1.386,294,1.101,363,1.094,366,1.351,368,2.581,369,1.839,395,1.438,471,2.144,501,1.403,529,0.892,544,1.395,592,1.425,593,2.23,594,3.288,599,1.077,622,1.956,627,2.217,628,2.217,734,3.552,752,2.015,835,1.209,836,1.209,866,1.186,889,3.842,907,2.714,909,3.552,910,3.552,911,3.887,912,3.887,913,4.096]],["t/531",[1,1.171,8,0.644,16,1.002,17,1.514,24,1.617,41,0.701,140,1.166,192,1.101,242,2.532,259,1.122,269,1.433,294,1.149,363,1.124,395,1.487,471,2.278,501,1.464,529,0.948,544,1.482,592,1.514,599,1.144,622,2.078,627,2.355,628,2.355,737,4.538,752,2.14,835,1.285,836,1.285,840,3.458,841,3.458,842,4.865,843,3.458,866,1.26,889,3.972,907,2.884,909,3.708,910,3.708,911,4.058,912,4.058,913,4.276]],["t/533",[1,1.076,8,0.644,16,0.891,17,1.346,24,1.438,33,1.796,41,0.624,140,1.036,192,0.979,224,3.047,242,2.251,259,0.998,269,1.342,294,1.056,339,3.047,363,1.065,395,1.393,471,2.025,501,1.346,529,0.843,544,1.318,592,1.346,599,1.017,622,1.848,627,2.094,628,2.094,752,1.903,835,1.142,836,1.142,844,3.074,845,5.132,846,5.79,847,4.473,848,3.276,849,3.276,850,4.473,851,3.074,866,1.12,889,3.72,907,2.564,909,3.409,910,3.409,911,3.731,912,3.731,913,3.931]],["t/535",[1,1.145,8,0.637,15,1.062,16,1.14,17,1.721,24,1.838,41,0.965,140,0.871,182,1.52,192,1.252,214,2.271,224,3.895,242,1.892,259,1.276,269,1.353,294,0.928,363,1.052,383,2.271,395,1.591,446,3.455,471,1.702,501,1.6,529,1.304,544,1.108,592,1.132,593,1.881,599,1.3,622,1.553,627,1.76,628,1.76,752,1.6,835,0.96,836,0.96,845,2.155,848,1.892,849,2.879,852,4.434,853,4.434,854,2.584,855,2.584,856,2.584,857,3.931,858,3.931,859,3.931,860,2.584,861,3.931,862,3.931,864,3.931,865,2.584,866,1.432,889,3.356,907,2.155,909,2.996,910,2.996,911,3.279,912,3.279,913,3.455,914,4.823]],["t/537",[8,0.556,36,3.999,167,3.83,169,4.417,198,4.687,224,3.423,261,4.417,343,4.417,352,4.687,743,4.687,771,3.747,848,4.565,849,3.68,852,5.2,853,5.2,867,5.025,868,5.025,869,5.025,870,5.025,871,5.025,872,5.025]],["t/539",[1,1.018,8,0.641,16,1.619,17,1.248,24,1.333,63,2.882,157,1.038,182,1.102,192,1.607,242,2.087,264,2.985,292,2.107,295,2.118,363,1.249,395,1.651,498,3.367,501,1.519,544,1.814,552,2.869,695,3.529,730,5.207,731,3.946,734,3.225,752,1.764,866,1.838,873,2.85,874,2.85,875,4.231,876,2.85,877,2.85,878,2.85,879,4.231,907,2.377,909,3.225,910,3.225,911,3.529,912,3.529,915,5.192,916,5.192,917,6.192]],["t/542",[66,2.412,750,4.114,752,4.236,795,4.14,880,3.891]],["t/544",[93,2.584,202,2.154,334,2.53,473,4.796,918,5.622]],["t/546",[8,0.619,16,1.024,17,1.546,21,2.441,41,0.716,77,1.338,113,1.77,154,1.689,157,1.799,166,2.734,192,1.124,202,1.262,259,1.146,269,0.899,292,1.92,294,1.166,323,3.103,334,1.482,337,1.729,340,2.03,346,1.615,363,1.047,366,1.432,395,1.504,422,2.475,423,1.813,501,1.486,511,1.615,529,0.968,575,1.948,597,2.535,598,2.362,599,1.168,606,1.58,757,1.365,772,2.808,835,1.312,836,1.312,866,1.286,881,2.008,898,2.968,899,1.813,900,1.813,901,1.729,902,1.689,905,3.253,919,4.605]],["t/548",[8,0.633,16,0.962,21,2.36,41,0.673,66,1.943,77,1.258,113,1.664,154,1.588,157,1.722,166,2.617,192,1.057,202,1.186,259,1.077,269,0.845,292,1.856,294,1.116,296,3.462,334,1.393,337,1.625,340,1.943,346,1.518,363,1.013,366,1.37,395,1.454,422,2.369,423,1.704,501,1.423,511,1.518,529,0.91,575,2.367,597,2.427,598,2.262,599,1.098,606,1.485,757,1.284,772,2.688,835,1.233,836,1.233,866,1.209,881,1.887,898,2.842,899,1.704,900,1.704,901,1.625,902,1.588,904,1.704,905,3.114,920,2.917]],["t/551",[757,2.396,880,3.523]],["t/553",[880,3.523,904,3.181]],["t/555",[93,2.584,202,2.154,334,2.53,473,4.796,918,5.622]],["t/557",[8,0.61,15,2.015,16,1.013,17,1.53,21,2.427,41,0.709,77,1.324,113,1.751,154,1.672,166,2.714,192,1.113,202,1.248,259,1.134,269,0.889,292,1.909,294,1.157,323,3.071,334,1.466,337,1.711,346,1.598,363,1.041,395,1.495,422,2.457,423,1.794,501,1.475,511,1.598,529,0.958,575,1.934,595,2.645,596,3.229,597,2.517,598,2.345,599,1.156,606,1.563,757,1.351,770,2.714,835,1.298,836,1.298,866,1.273,881,1.987,894,3.229,895,2.787,896,4.308,898,2.946,899,1.794,900,1.794,901,1.711,902,1.672,919,4.571]],["t/559",[8,0.629,15,1.929,16,0.953,21,2.347,41,0.667,66,1.929,77,1.246,113,1.647,154,1.572,166,2.599,192,1.047,202,1.174,259,1.067,269,0.836,292,1.846,294,1.108,296,3.438,334,1.379,337,1.609,346,1.503,363,1.007,395,1.446,422,2.353,423,1.687,501,1.413,511,1.503,529,0.901,575,2.356,595,2.533,596,3.092,597,2.41,598,2.246,599,1.087,606,1.471,757,1.271,770,2.599,835,1.221,836,1.221,866,1.197,881,1.869,894,3.092,895,2.669,896,4.125,898,2.822,899,1.687,900,1.687,901,1.609,902,1.572,904,1.687,920,2.888]],["t/562",[757,2.396,880,3.523]],["t/564",[880,3.523,904,3.181]],["t/566",[1,0.695,8,0.633,21,2.179,24,1.35,41,0.586,51,2.537,61,1.842,77,1.094,136,2.496,138,2.887,160,1.519,272,2.887,273,2.887,274,2.887,275,2.887,276,2.887,277,2.887,283,3.754,292,1.44,294,0.682,295,2.134,300,3.256,337,1.413,363,1.155,364,1.447,365,1.381,366,0.837,368,1.599,369,1.139,395,1.343,419,2.887,443,1.292,460,6.126,544,1.238,557,2.297,575,1.685,593,1.381,657,2.693,658,2.537,667,2.297,770,1.599,771,1.736,772,1.642,804,3.147,921,3.543,922,3.147,923,3.147,924,3.543,925,3.147,926,3.147,927,3.147,928,3.147,929,3.147,930,3.147,931,3.543,932,3.147,933,3.147,934,3.147,935,3.543,936,3.543,937,3.543,938,3.147,939,3.147,940,3.543,941,3.543,942,3.543,943,3.543,944,3.543,945,5.242,946,3.543,947,3.543,948,3.543,949,3.543,950,3.543,951,3.543,952,3.543,953,3.543]],["t/568",[93,2.584,202,2.154,334,2.53,473,4.796,918,5.622]],["t/570",[8,0.63,16,1.432,17,1.546,41,0.716,77,1.338,113,1.77,154,1.689,166,2.734,192,1.124,259,1.146,269,0.899,292,1.92,294,1.166,295,2.723,323,3.103,334,1.482,340,2.03,346,1.615,363,1.047,366,1.432,395,1.504,422,2.475,443,2.209,501,1.486,511,1.615,529,0.968,552,2.808,575,1.948,595,2.664,596,3.253,598,2.362,599,1.168,606,1.58,835,1.312,836,1.312,866,1.286,899,1.813,900,1.813,901,1.729,902,1.689,919,4.605]],["t/572",[8,0.639,16,1.37,41,0.673,66,1.943,77,1.258,113,1.664,154,1.588,166,2.617,192,1.057,259,1.077,269,0.845,292,1.856,294,1.116,295,2.661,296,3.462,334,1.393,340,1.943,346,1.518,363,1.013,366,1.37,395,1.454,422,2.369,443,2.115,501,1.423,511,1.518,529,0.91,552,2.688,575,2.367,595,2.551,596,3.114,598,2.262,599,1.098,606,1.485,835,1.233,836,1.233,866,1.209,899,1.704,900,1.704,901,1.625,902,1.588,904,1.704,920,2.917]],["t/574",[8,0.637,16,1.347,41,0.657,66,1.909,77,1.227,113,1.623,154,1.549,166,2.572,192,1.031,244,2.444,259,1.051,269,0.824,292,1.831,294,1.097,295,2.636,296,3.401,300,2.468,334,1.359,340,1.909,346,1.481,363,0.999,366,1.347,395,1.434,422,2.328,443,2.078,501,1.398,511,1.481,529,0.888,552,2.641,575,2.341,595,2.506,596,3.06,598,2.222,599,1.071,606,1.449,648,3.696,835,1.203,836,1.203,866,1.18,899,1.663,900,1.663,901,1.586,902,1.549,904,1.663,920,2.846]],["t/577",[880,3.523,904,3.181]],["t/579",[8,0.645,41,0.769,61,3.311,156,3.311,182,1.467,223,2.157,269,0.965,292,2.144,294,0.896,295,2.178,363,0.698,366,1.1,368,2.1,369,1.496,395,1.002,440,5.656,498,3.018,552,2.95,593,1.815,594,2.676,621,4.135,622,2.28,623,4.135,657,3.537,658,3.333,810,4.135,954,4.654,955,6.366,956,4.654,957,4.654,958,6.366,959,4.135,960,4.654,961,4.654,962,4.654]],["t/581",[1,0.605,8,0.642,14,2.516,24,1.177,41,0.51,51,2.211,77,0.953,91,2.002,136,2.734,138,3.851,144,3.851,156,2.458,160,1.324,167,3.566,182,0.973,221,2.211,231,3.592,269,0.64,272,2.516,273,2.516,274,2.516,275,2.516,276,3.851,277,4.679,292,1.298,294,0.594,333,2.516,340,1.034,363,1.096,364,1.261,368,1.393,392,2.516,394,3.851,466,2.743,544,1.078,557,2.002,657,2.346,658,2.211,664,2.743,922,2.743,923,2.743,925,2.743,926,2.743,927,2.743,928,2.743,929,2.743,930,2.743,932,2.743,933,2.743,934,4.198,938,2.743,939,2.743,963,3.087,964,3.087,965,3.087,966,4.726,967,3.087,968,4.726,969,3.087,970,3.087,971,3.087,972,3.087,973,3.087,974,3.087,975,3.087,976,3.087,977,3.087,978,3.087,979,3.087,980,4.726,981,3.087,982,3.087,983,3.087,984,3.087,985,3.087,986,3.087,987,3.087,988,4.726,989,3.087,990,4.726,991,3.087,992,3.087,993,3.087,994,3.087,995,3.087,996,3.087,997,3.087,998,3.087,999,3.087,1000,3.087]],["t/583",[1,0.434,8,0.646,15,0.742,16,0.858,17,0.791,19,1.152,41,0.366,43,1.118,62,2.693,116,1.23,131,1.376,136,2.542,140,0.609,156,1.152,157,0.658,160,0.95,202,0.645,213,1.437,239,1.684,285,1.506,287,1.506,294,0.426,295,1.242,337,0.884,339,2.562,340,2.239,346,2.196,363,0.949,364,0.905,366,1.757,368,1,369,0.712,396,1.805,443,1.324,479,1.376,489,1.684,503,2.168,527,1.274,529,1.559,531,1.376,536,2.088,564,1.189,592,0.791,593,0.864,650,1.322,666,3.99,667,1.437,701,1.587,750,1.779,751,1.437,755,1.376,756,2.478,757,1.454,758,1.587,763,2.168,769,1.587,770,2.409,772,1.683,775,1.587,776,1.587,777,1.587,778,1.587,781,4.351,785,3.316,787,1.805,795,2.088,894,1.189,895,1.683,1001,1.437,1002,1.437,1003,1.437,1004,1.968,1005,1.968,1006,1.968,1007,2.469,1008,1.437,1009,2.469,1010,1.437,1011,1.437,1012,1.437,1013,1.437,1014,1.506,1015,2.355,1016,2.355,1017,2.355,1018,1.437,1019,1.437,1020,4.743,1021,1.437,1022,3.227,1023,1.968,1024,1.968,1025,1.968,1026,1.968,1027,1.968,1028,1.968,1029,1.968,1030,1.437,1031,1.437,1032,1.684,1033,1.437,1034,1.684,1035,1.968]],["t/585",[93,2.584,202,2.154,334,2.53,473,4.796,918,5.622]],["t/587",[8,0.621,16,0.982,17,1.483,21,2.386,41,0.687,77,1.284,113,1.698,154,1.62,157,1.747,192,1.079,202,1.21,259,1.099,269,0.862,292,1.877,294,1.132,323,2.977,334,1.422,336,3.159,337,1.658,340,1.971,346,1.549,363,1.024,366,1.39,395,1.47,422,2.404,423,1.739,501,1.443,511,1.549,529,0.929,575,1.892,595,2.588,597,2.462,598,2.294,599,1.12,606,1.516,757,1.31,771,2.883,835,1.259,836,1.259,866,1.234,881,1.926,895,2.727,898,2.883,899,1.739,900,1.739,901,1.658,902,1.62,905,3.159,906,4.214,919,4.472]],["t/589",[8,0.634,16,0.925,21,2.309,41,0.647,66,1.889,77,1.21,113,1.6,154,1.527,157,1.675,192,1.017,202,1.14,259,1.036,269,0.812,292,1.816,294,1.085,296,3.366,334,1.34,336,3.028,337,1.563,340,1.889,346,1.46,363,0.991,366,1.333,395,1.423,422,2.304,423,1.639,501,1.383,511,1.46,529,0.875,575,2.325,595,2.48,597,2.36,598,2.199,599,1.056,606,1.428,757,1.234,771,2.763,835,1.186,836,1.186,866,1.163,881,1.815,895,2.614,898,2.763,899,1.639,900,1.639,901,1.563,902,1.527,904,1.639,905,3.028,906,4.04,920,2.805]],["t/592",[757,2.396,880,3.523]],["t/594",[880,3.523,904,3.181]],["t/596",[1,0.533,8,0.646,15,0.91,17,0.97,19,1.413,41,0.449,43,1.371,62,2.159,116,1.508,131,1.688,136,2.861,140,0.747,157,0.807,160,2.576,202,0.791,244,1.165,294,0.523,295,0.929,339,1.508,340,2.521,363,0.9,364,1.11,366,1.873,368,1.226,369,0.874,443,1.561,479,2.658,503,2.554,527,1.562,529,1.551,531,1.688,536,1.562,564,1.459,592,0.97,593,1.059,650,1.622,666,4.335,750,2.096,751,1.762,755,1.688,756,2.842,757,0.856,763,2.554,764,1.762,770,2.71,772,1.259,785,2.658,795,2.461,894,1.459,895,1.983,905,2.298,1001,1.762,1002,1.762,1003,1.762,1007,1.847,1008,1.762,1009,1.847,1010,1.762,1011,1.762,1012,1.762,1013,1.762,1014,1.847,1015,2.775,1016,2.775,1017,2.775,1018,1.762,1019,1.762,1021,2.775,1030,1.762,1031,1.762,1032,2.065,1033,1.762,1034,2.065,1036,2.065,1037,2.414,1038,2.414,1039,2.414]],["t/598",[1,0.573,8,0.646,15,0.979,17,1.042,19,1.519,41,0.483,43,1.474,62,2.285,116,1.622,131,1.814,136,2.976,140,0.803,157,0.867,160,1.253,202,0.851,294,0.562,339,1.622,340,2.5,363,0.937,364,1.193,366,1.912,368,1.318,369,0.939,443,1.065,479,1.814,503,2.703,527,1.68,529,1.598,531,1.814,536,1.68,564,1.568,592,1.042,593,1.139,650,1.743,666,4.454,750,2.219,751,1.894,755,1.814,756,2.978,757,0.921,763,2.703,770,2.819,772,1.354,785,2.813,795,2.604,894,1.568,895,2.099,1001,1.894,1002,1.894,1003,1.894,1007,1.986,1008,1.894,1009,1.986,1010,1.894,1011,1.894,1012,1.894,1013,1.894,1014,1.986,1015,2.937,1016,2.937,1017,2.937,1018,1.894,1019,1.894,1021,1.894,1030,1.894,1031,1.894,1032,2.22,1033,1.894,1034,2.22,1036,2.22]],["t/600",[1,0.557,8,0.647,15,0.951,17,1.013,19,1.477,41,0.469,43,1.433,62,2.235,116,1.576,131,1.764,136,2.931,140,0.78,156,1.477,157,1.315,160,1.218,202,0.827,244,1.218,294,0.546,339,1.576,340,2.474,363,0.923,364,1.16,366,1.897,368,1.281,369,0.913,443,1.036,479,1.764,503,2.644,527,1.633,529,1.58,531,1.764,536,1.633,564,1.525,592,1.013,593,1.107,648,1.842,650,1.695,666,4.408,750,2.17,751,1.842,755,1.764,756,2.925,757,0.895,763,2.644,770,2.777,772,1.316,785,2.752,795,2.547,894,1.525,895,2.053,1001,1.842,1002,1.842,1003,1.842,1007,1.93,1008,1.842,1009,1.93,1010,1.842,1011,1.842,1012,1.842,1013,1.842,1014,1.93,1015,2.873,1016,2.873,1017,2.873,1018,1.842,1019,1.842,1021,1.842,1030,1.842,1031,1.842,1033,1.842,1036,2.158,1040,2.314,1041,2.314]],["t/602",[1,0.519,8,0.647,15,0.887,17,0.944,19,1.376,41,0.437,43,1.335,62,2.114,116,1.469,131,1.644,136,2.819,140,0.727,156,1.376,157,1.244,160,2.538,202,0.771,244,1.797,294,0.509,295,0.905,339,1.469,340,2.498,363,0.887,364,1.081,366,1.858,368,1.194,369,0.851,443,1.528,479,2.603,503,2.502,527,1.522,529,1.533,531,1.644,536,1.522,564,1.421,592,0.944,593,1.032,648,1.716,650,1.579,666,4.291,750,2.053,751,1.716,755,1.644,756,2.794,757,0.834,763,2.502,764,1.716,770,2.671,772,1.226,785,2.603,795,2.41,894,1.421,895,1.942,905,2.25,1001,1.716,1002,1.716,1003,1.716,1007,1.799,1008,1.716,1009,1.799,1010,1.716,1011,1.716,1012,1.716,1013,1.716,1014,1.799,1015,2.718,1016,2.718,1017,2.718,1018,1.716,1019,1.716,1021,2.718,1030,1.716,1031,1.716,1033,1.716,1036,2.011,1037,2.351,1038,2.351,1039,2.351,1040,2.157,1041,2.157]],["t/604",[8,0.439,37,2.681,41,1.085,90,2.962,162,5.831,165,4.461,331,5.349,423,2.746,560,4.701,561,5.831,562,5.831,563,5.831,564,3.524,565,5.831,566,5.831,567,5.831,652,5.831,1042,5.349,1043,6.563]],["t/606",[1,1.582,2,5.13,7,4.989,8,0.645,37,3.469,77,1.783,219,3.205,221,4.135,222,4.388,224,3.205,1044,7.34,1045,7.34]],["t/608",[1,1.011,41,1.128,46,2.635,66,1.162,76,4.583,82,4.638,109,3.081,119,7.159,135,3.204,140,0.953,147,6.062,148,3.081,154,1.352,161,2.069,169,4.412,182,1.093,193,3.081,203,2.483,231,2.635,250,3.081,321,2.483,366,1.219,380,2.635,386,2.826,404,2.635,450,3.921,457,2.483,506,3.081,512,2.635,622,1.699,682,3.081,683,4.583,700,4.583,712,4.583,768,2.826,791,3.081,1046,3.467,1047,3.467,1048,3.467,1049,5.159,1050,7.918,1051,3.467,1052,5.159,1053,3.467,1054,3.467,1055,3.467,1056,3.467,1057,3.467,1058,3.467,1059,3.467,1060,3.467,1061,3.467,1062,5.159,1063,6.161,1064,3.467,1065,3.467,1066,3.467,1067,3.467,1068,3.467,1069,3.467,1070,3.467,1071,3.467,1072,3.467,1073,3.467,1074,3.467,1075,5.159,1076,3.467,1077,3.467,1078,3.467,1079,3.467,1080,5.159,1081,3.467,1082,3.467,1083,3.467,1084,3.467,1085,3.467,1086,3.467,1087,5.159,1088,3.467,1089,3.467,1090,3.467,1091,3.467,1092,3.467,1093,3.467,1094,3.467]],["t/610",[1,0.425,8,0.647,15,0.726,16,0.843,17,0.774,19,1.128,41,0.358,43,1.094,62,2.658,116,1.204,131,1.347,136,2.51,140,0.596,156,1.856,157,1.059,160,0.93,202,0.631,213,1.406,239,1.648,244,0.93,285,1.474,287,1.474,294,0.417,295,1.22,337,0.865,339,2.524,340,2.219,346,2.171,363,0.939,364,0.886,366,1.744,368,0.978,369,0.697,396,1.767,443,1.301,479,1.347,489,1.648,503,2.13,527,1.247,529,1.546,531,1.347,536,2.052,564,1.164,592,0.774,593,0.845,648,1.406,650,1.294,666,3.953,667,1.406,701,1.553,750,1.748,751,1.406,755,1.347,756,2.441,757,1.433,758,1.553,763,2.13,769,1.553,770,2.378,772,1.653,775,1.553,776,1.553,777,1.553,778,1.553,781,4.294,785,3.273,787,1.767,795,2.052,894,1.164,895,1.653,1001,1.406,1002,1.406,1003,1.406,1004,1.926,1005,1.926,1006,1.926,1007,2.425,1008,1.406,1009,2.425,1010,1.406,1011,1.406,1012,1.406,1013,1.406,1014,1.474,1015,2.314,1016,2.314,1017,2.314,1018,1.406,1019,1.406,1020,4.682,1021,1.406,1022,3.17,1023,1.926,1024,1.926,1025,1.926,1026,1.926,1027,1.926,1028,1.926,1029,1.926,1030,1.406,1031,1.406,1033,1.406,1035,1.926,1040,1.767,1041,1.767]],["t/612",[1,0.805,8,0.648,15,0.629,16,1.603,17,0.67,19,0.977,43,0.948,62,1.597,63,1.043,116,1.758,131,1.967,136,2.295,140,1.128,157,0.558,160,0.806,204,1.669,223,1.902,244,2.066,269,0.657,334,1.083,339,1.043,340,2.079,363,0.722,364,0.767,366,1.704,368,0.848,369,0.604,409,2.053,443,1.962,479,1.167,503,1.121,505,1.669,527,1.08,529,1.202,536,1.08,564,1.009,592,1.13,593,0.732,606,0.685,650,1.121,666,3.704,667,3.125,744,3.451,752,2.714,755,1.167,756,1.7,757,0.592,763,1.89,764,2.053,770,2.941,771,2.36,772,0.871,785,1.967,795,1.08,796,2.813,798,2.813,894,1.009,895,1.467,1001,1.218,1002,2.053,1003,2.053,1008,1.218,1010,1.218,1011,1.218,1012,1.218,1013,1.218,1015,2.053,1016,2.053,1017,2.053,1018,1.218,1019,1.218,1021,1.218,1030,1.218,1031,1.218,1032,1.428,1033,1.218,1034,1.428,1095,1.879,1096,1.879,1097,1.879,1098,1.879,1099,1.879,1100,1.879,1101,1.879,1102,1.879,1103,1.879,1104,4.105,1105,3.167,1106,1.879,1107,1.879,1108,4.105,1109,3.167,1110,1.879,1111,1.879,1112,1.879,1113,1.879,1114,1.879,1115,1.879,1116,6.518,1117,3.167,1118,1.879,1119,3.167,1120,3.167,1121,1.879,1122,3.167,1123,1.879,1124,3.167,1125,3.167]],["t/614",[37,2.703,165,4.497,192,2.073,202,1.926,294,1.273,334,2.263,405,5.029,511,2.466,606,2.413,881,3.066,902,2.58,1126,6.617,1127,6.617,1128,6.617,1129,6.617,1130,6.617,1131,6.617]],["t/616",[1,1.036,8,0.636,16,1.417,157,1.78,161,3.893,182,2.056,192,2.234,202,1.243,223,1.255,263,2.058,269,1.559,294,0.821,295,1.46,305,2.207,306,3.888,363,0.978,365,1.056,366,1.248,369,1.699,395,1.883,405,4.958,473,2.768,511,1.969,533,1.454,544,1.845,552,1.978,593,2.06,606,1.926,838,1.756,866,1.937,901,2.392,902,2.06,909,1.682,910,1.682,959,2.406,1042,2.207,1132,5.796,1133,2.406,1134,2.406,1135,2.708,1136,2.708,1137,5.996,1138,2.708,1139,2.406,1140,2.406,1141,2.708,1142,2.406,1143,2.406,1144,3.792,1145,2.406,1146,2.406]],["t/618",[1,1.003,8,0.637,140,1.406,157,1.732,161,3.802,168,5.192,182,2.008,192,2.137,202,1.196,223,1.195,259,2.064,269,1.476,294,0.79,295,1.405,363,1.017,365,1.006,366,1.209,369,1.645,395,1.772,405,4.842,473,2.663,501,1.007,511,1.907,529,1.423,533,1.385,552,1.903,592,1.826,593,1.995,599,2.104,606,1.866,624,1.673,866,1.892,901,2.542,902,1.995,909,1.602,910,1.602,1042,2.102,1132,5.66,1133,2.292,1134,2.292,1139,2.292,1140,2.292,1142,2.292,1143,2.292,1144,3.649,1145,2.292,1146,2.292,1147,2.58]],["t/620",[1148,7.533,1149,7.533,1150,7.533]]],"invertedIndex":[["",{"_index":8,"t":{"312":{"position":[[133,3]]},"314":{"position":[[384,2],[387,6],[426,16]]},"316":{"position":[[40,10]]},"322":{"position":[[632,1]]},"326":{"position":[[122,1],[132,1],[191,1],[246,2],[249,2],[252,2],[255,2]]},"328":{"position":[[49,1],[61,1],[123,2],[170,2],[173,2]]},"330":{"position":[[7,1],[13,1],[68,1],[110,2]]},"332":{"position":[[7,1],[27,1],[216,2],[385,2]]},"336":{"position":[[56,2]]},"340":{"position":[[254,1],[278,1],[280,2]]},"347":{"position":[[69,1]]},"351":{"position":[[107,2],[255,2],[497,1]]},"355":{"position":[[837,1],[941,1],[968,2],[980,2],[983,1],[1014,1],[1051,2],[1054,1],[1071,1],[1109,2],[1173,2],[1189,2],[1192,1],[1194,2],[1259,3],[1263,2],[1266,2],[1269,2],[1272,3],[1687,1],[1806,2],[1832,2],[1839,1],[1856,3],[1876,1],[1898,2],[1901,1],[1918,1],[1946,2],[1993,2],[2085,3],[2089,1],[2096,1],[2108,1],[2175,2],[2188,1],[2205,1],[2207,2],[2210,3]]},"357":{"position":[[523,1],[674,1],[676,2],[689,3],[727,2],[740,2],[743,1],[780,1],[836,2],[839,2],[867,2],[880,2],[883,1],[920,1],[976,2],[979,2],[1007,2],[1020,2],[1023,1],[1060,1],[1116,2],[1119,2],[1122,2],[1125,3]]},"360":{"position":[[60,1],[62,1],[64,1],[66,1],[100,2],[103,1],[105,2],[114,1],[116,1],[129,1],[131,1],[133,2],[157,1],[159,1],[161,1],[163,1],[243,3],[247,2],[287,1],[289,1],[291,1],[293,1],[359,1],[361,1],[363,1],[365,1]]},"362":{"position":[[165,1],[167,1],[169,1],[199,2],[202,1],[204,2],[266,3],[295,2],[395,1],[407,2],[423,2],[489,2],[492,1],[494,2],[498,1],[500,1],[502,1],[513,1],[515,1],[517,3],[521,2],[573,2],[683,3]]},"364":{"position":[[22,1]]},"366":{"position":[[63,1],[81,1],[96,1],[114,1],[155,1],[187,1],[230,1],[250,1]]},"368":{"position":[[105,1],[140,1],[201,1],[211,1],[256,2],[259,1],[333,1],[343,1],[388,2],[391,1],[466,1],[476,1],[528,1],[538,1],[583,2],[586,1],[620,1],[622,2],[625,1],[627,2],[630,1],[632,2]]},"374":{"position":[[0,2],[18,2],[33,1],[62,2],[136,2],[191,2],[194,2],[210,2],[271,2],[312,1],[356,2],[483,2],[486,1],[498,1],[563,2],[581,2],[584,1],[617,2],[633,2],[636,1],[656,2],[714,3]]},"376":{"position":[[26,1],[40,1],[80,1],[128,3],[153,1],[182,3],[222,1],[250,1],[264,1],[304,1],[340,3],[344,2],[480,3],[534,1]]},"378":{"position":[[12,1],[42,1],[72,2],[75,1],[85,1],[164,3],[179,1],[287,1],[299,4],[319,3]]},"380":{"position":[[0,2]]},"384":{"position":[[67,5]]},"386":{"position":[[7,17],[38,1],[48,2]]},"388":{"position":[[125,2],[128,4],[169,2],[172,9],[199,1],[283,3],[287,2],[290,4],[299,1],[325,1],[359,1],[387,1],[406,1],[412,2],[437,2],[440,3],[465,2],[468,13],[482,1],[496,1],[516,1],[518,2],[521,5],[531,1],[549,1],[583,1],[611,1],[613,1],[625,1],[627,3],[644,2],[669,1],[683,1],[703,1],[705,2],[708,4],[725,1],[746,2],[749,9],[776,1],[854,3],[858,2],[861,4],[892,1],[920,1],[939,1],[978,1],[1002,2],[1005,3],[1030,2],[1033,13],[1047,1],[1049,2],[1052,2],[1055,5],[1087,1],[1115,1],[1117,1],[1129,1],[1131,3],[1173,1],[1197,1],[1199,2]]},"390":{"position":[[0,2],[50,25],[76,23],[124,3],[136,15],[152,6],[167,1],[179,12],[366,1],[368,2],[371,9],[398,1],[482,3],[486,2],[497,6],[512,1],[544,1],[580,1],[608,1],[610,1],[622,1],[624,3],[647,2],[672,2],[675,3],[700,2],[703,13],[717,1],[731,1],[751,1],[765,1],[786,2],[789,9],[816,1],[894,3],[898,2],[909,6],[924,1],[960,1],[988,1],[990,1],[1002,1],[1004,3],[1060,1],[1084,2],[1087,3],[1112,2],[1115,13],[1129,1],[1131,2],[1134,2],[1137,42]]},"392":{"position":[[0,20],[27,30],[58,30],[230,2],[233,14],[259,1],[391,2],[487,2],[621,3],[637,1],[658,2],[661,14],[687,1],[819,2],[915,2],[1049,3],[1053,2],[1056,33],[1090,16],[1120,1],[1160,1],[1162,2],[1221,1],[1272,2],[1332,1],[1346,1],[1366,1],[1368,2],[1477,1],[1479,2],[1539,3],[1543,21],[1582,2],[1631,1],[1661,2],[1717,3],[1721,4],[1726,2],[1813,2],[1891,1],[1893,2],[1943,3],[1947,4],[1952,2],[2039,3]]},"394":{"position":[[7,3],[24,2],[31,9],[99,1],[101,2],[143,1],[227,3],[231,2],[270,1],[306,1],[334,1],[336,1],[348,1],[350,3],[368,2],[371,1],[380,10],[399,3],[403,12],[424,3],[428,2],[431,4],[472,2],[561,2],[632,1],[735,3],[739,2],[778,1],[814,1],[842,1],[844,1],[856,1],[858,3],[876,2],[886,2],[895,6],[950,3],[1004,1],[1006,2],[1036,1],[1108,3],[1112,2],[1181,1],[1199,2],[1253,1],[1292,1],[1301,1],[1315,6],[1356,5],[1383,1],[1404,2],[1440,1],[1518,3],[1580,2],[1583,1],[1604,2],[1636,2]]},"396":{"position":[[0,44],[56,5],[62,3],[97,39],[137,5],[171,1],[274,3],[289,1],[386,3],[390,5],[417,1],[443,1],[521,3],[547,2],[550,11],[583,2],[586,3],[590,1],[604,1],[624,1],[638,1],[697,2],[732,1],[756,2],[862,2],[886,1],[888,2]]},"398":{"position":[[35,1],[71,1],[113,1],[157,2],[217,2],[350,2],[355,1],[377,3],[430,2],[433,1],[461,2],[464,2]]},"401":{"position":[[162,1],[462,1],[500,1],[512,1],[525,2],[540,2],[543,1],[545,2],[578,1],[580,1],[582,1],[621,2],[639,1],[641,1],[648,1],[650,1],[652,3],[686,1],[698,1],[705,2],[720,2],[723,1],[725,2],[735,1],[737,1],[739,1],[767,3],[799,1],[811,1],[818,2],[833,2],[836,1],[838,2],[856,1],[865,3],[869,2],[973,1],[975,1],[977,1],[1006,2],[1009,1],[1011,2],[1029,1],[1038,3]]},"403":{"position":[[14,1],[16,1],[68,2],[112,2],[115,1],[117,2],[170,2],[241,2],[244,4],[249,2],[252,3]]},"405":{"position":[[453,2],[562,1],[590,2],[593,2],[619,1],[693,1],[727,1],[776,1],[798,2],[801,2],[816,2],[898,1],[927,1],[965,1],[1052,2],[1055,1],[1057,2],[1096,1],[1149,1],[1238,3],[1242,3],[1246,2],[1249,1],[1285,2],[1288,3],[1379,2]]},"407":{"position":[[10,1],[40,1],[73,1],[111,1],[226,2],[255,3],[592,1],[635,1],[668,1],[759,1],[777,1],[800,1],[834,2],[837,1],[869,1],[871,2],[895,2],[898,3]]},"410":{"position":[[199,2]]},"412":{"position":[[233,1],[266,1]]},"414":{"position":[[14,1],[34,1],[83,1],[85,1],[119,2],[133,1]]},"416":{"position":[[14,1],[28,1],[71,1],[73,1],[107,2],[121,1]]},"418":{"position":[[37,1],[67,2],[70,1],[72,3],[76,1],[85,1],[87,1],[97,1],[99,1],[101,2],[104,3],[131,1],[161,2],[164,1],[166,3],[170,1],[179,1],[181,1],[191,1],[193,1],[195,2],[198,3]]},"421":{"position":[[68,1],[84,1],[112,1],[171,3],[175,2],[223,1],[253,2],[256,1],[277,3],[281,1],[290,1],[292,1],[302,1],[304,1],[306,2],[309,3],[313,2],[390,2],[393,1],[414,3],[418,1],[427,1],[429,1],[454,1],[456,1],[458,2],[461,3],[513,1],[529,1],[557,1],[635,3],[639,2],[688,1],[703,1],[731,2],[734,1],[755,3],[759,1],[768,1],[770,1],[777,1],[779,1],[781,2],[784,1],[786,2],[789,2],[866,2],[869,1],[890,3],[894,1],[903,1],[905,1],[914,1],[916,1],[918,2],[921,3]]},"423":{"position":[[85,1],[101,1],[129,1],[214,3],[228,1],[230,1],[241,1],[263,1],[276,2],[327,2],[330,1],[351,3],[355,1],[364,1],[366,1],[368,1],[378,1],[380,2],[383,1],[385,1],[395,1],[397,1],[399,1],[401,2],[404,3]]},"425":{"position":[[322,1],[340,1],[368,1],[427,3],[441,1],[443,1],[452,1],[457,2],[508,2],[511,1],[534,3],[538,1],[565,1],[618,3],[672,1],[674,2],[677,3]]},"427":{"position":[[173,1],[191,1],[219,1],[304,3],[318,1],[320,1],[329,1],[341,1],[346,2],[400,2],[403,1],[427,3],[431,1],[443,1],[461,1],[514,3],[569,2],[588,1],[641,3],[695,1],[697,1],[699,2],[702,3]]},"429":{"position":[[69,2],[279,1],[318,1],[346,1],[405,3],[409,3],[429,2],[484,3],[504,2],[564,1],[576,1],[585,3],[589,3],[613,2],[626,1],[719,2],[722,1],[745,3],[749,1],[776,1],[829,3],[883,1],[885,2],[888,3],[1064,3],[1105,2]]},"435":{"position":[[63,1],[114,1],[124,1],[238,3],[290,1],[348,1],[371,1],[413,1],[425,1],[464,1],[647,1],[759,2],[762,2],[878,2],[889,1],[953,1],[1055,3],[1155,1],[1267,2],[1270,2],[1323,1],[1379,1],[1397,2],[1400,1],[1423,2],[1439,2],[1442,1],[1483,3],[1513,1],[1551,1],[1581,2],[1584,1],[1594,1],[1678,3],[1693,1],[1801,1],[1813,4],[1833,2],[1851,2],[1854,1],[1877,2],[1902,1],[1933,3],[1937,1],[1983,1],[1985,1],[2050,3],[2085,1],[2130,2],[2141,2],[2154,3],[2192,1],[2216,1],[2218,1]]},"437":{"position":[[0,2]]},"439":{"position":[[103,1],[122,1],[198,2],[201,1],[215,1],[235,1],[249,1],[287,1],[357,2],[398,2],[401,1],[421,3]]},"441":{"position":[[107,1],[126,1],[210,2],[225,2],[238,3],[242,3],[246,1],[260,1],[280,1],[294,1],[332,1],[410,2],[425,2],[438,3],[442,3],[484,2],[487,1],[507,3]]},"443":{"position":[[107,1],[126,1],[159,2],[162,3],[243,2],[246,3],[250,1],[264,1],[284,1],[298,1],[336,1],[363,2],[366,3],[448,3],[490,2],[493,1],[513,3]]},"445":{"position":[[125,1],[144,1],[177,2],[180,3],[189,1],[191,2],[242,2],[338,2],[341,3],[345,1],[359,1],[379,1],[393,1],[431,1],[458,2],[461,3],[470,1],[472,2],[523,2],[619,2],[622,3],[664,2],[667,1],[687,3]]},"447":{"position":[[294,1],[313,1],[346,2],[349,3],[420,3],[424,1],[438,1],[458,1],[472,1],[486,1],[589,1],[603,1],[623,1],[637,1],[675,1],[702,2],[705,3],[776,3],[818,2],[821,1],[841,3],[924,1],[970,1],[998,1],[1018,3]]},"449":{"position":[[13,1],[77,1],[129,1]]},"451":{"position":[[66,1],[109,1],[148,1],[183,3],[204,1],[251,3],[293,2],[296,1],[316,3],[332,1],[375,1],[414,1],[468,2],[471,1],[513,3],[517,2],[520,3],[562,2],[565,1],[585,3],[666,2],[669,1],[697,1],[725,1],[754,3],[825,2],[828,1],[856,1],[884,1],[913,3],[984,2],[987,1],[1015,1],[1043,1],[1072,3]]},"456":{"position":[[105,1],[140,1],[211,2]]},"458":{"position":[[0,2]]},"460":{"position":[[97,1],[110,1],[192,1],[222,2],[225,3],[262,1],[276,1],[296,1],[310,1],[342,1],[453,1],[481,1],[509,1],[511,2],[514,3],[551,3],[555,2]]},"462":{"position":[[95,1],[108,1],[180,2],[195,2],[208,3],[212,3],[233,1],[263,2],[266,3],[303,1],[317,1],[337,1],[351,1],[383,1],[455,2],[470,2],[483,3],[487,3],[537,1],[565,1],[593,1],[595,2],[598,3],[635,3],[639,2]]},"464":{"position":[[95,1],[108,1],[129,2],[132,3],[213,2],[216,3],[237,1],[267,2],[270,3],[307,1],[321,1],[341,1],[355,1],[387,1],[408,2],[411,3],[493,3],[543,1],[571,1],[599,1],[601,2],[604,3],[641,3],[645,2]]},"466":{"position":[[113,1],[126,1],[147,2],[150,3],[159,1],[161,2],[212,2],[308,2],[311,3],[332,1],[362,2],[365,3],[402,1],[416,1],[436,1],[450,1],[482,1],[503,2],[506,3],[515,1],[517,2],[568,2],[664,2],[667,3],[717,1],[745,1],[773,1],[775,2],[778,3],[815,3],[834,2]]},"468":{"position":[[282,1],[295,1],[316,2],[319,3],[390,3],[411,1],[441,2],[444,3],[481,1],[495,1],[515,1],[529,1],[543,1],[640,1],[654,1],[674,1],[688,1],[720,1],[741,2],[744,3],[815,3],[865,1],[893,1],[921,1],[923,2],[926,3],[963,3],[1046,1],[1086,1],[1114,1],[1134,3],[1138,2]]},"470":{"position":[[13,1],[77,1],[129,1]]},"472":{"position":[[54,1],[97,1],[136,1],[171,3],[186,1],[227,3],[243,1],[286,1],[319,1],[367,2],[370,1],[412,3],[416,2],[419,3],[494,2],[497,1],[525,1],[553,1],[582,3],[647,2],[650,1],[678,1],[706,1],[735,3],[800,2],[803,1],[831,1],[859,1],[888,3]]},"478":{"position":[[63,1],[75,1],[120,3],[124,3],[128,7],[149,1],[200,1],[283,1],[297,1],[317,1],[329,1],[374,3],[378,3],[382,7],[403,1],[485,2],[488,1],[516,1],[544,1],[588,3],[768,2]]},"480":{"position":[[58,1],[70,1],[115,3],[119,3],[123,7],[144,1],[195,1],[237,2],[240,3],[258,3],[304,1],[318,1],[338,1],[350,1],[395,3],[399,3],[403,7],[424,1],[472,1],[487,2],[490,3],[508,2],[533,2],[536,1],[564,1],[592,1],[636,1],[638,2],[817,2]]},"482":{"position":[[73,1],[85,1],[130,3],[134,3],[138,7],[159,1],[210,1],[238,1],[245,2],[248,3],[266,2],[276,2],[321,1],[335,1],[355,1],[367,1],[412,3],[416,3],[420,7],[441,1],[489,1],[496,2],[499,3],[517,2],[550,2],[553,1],[581,1],[609,1],[653,1],[655,2],[834,2]]},"489":{"position":[[0,2],[43,1]]},"492":{"position":[[63,1],[75,1],[103,1],[105,1],[120,1],[122,1],[147,1],[186,1],[269,1],[283,1],[303,1],[315,1],[343,1],[345,1],[360,1],[362,1],[387,1],[457,2],[460,1],[488,1],[516,1],[560,3],[740,2]]},"494":{"position":[[58,1],[70,1],[98,1],[100,1],[115,1],[117,1],[142,1],[181,1],[223,2],[226,3],[244,3],[290,1],[304,1],[324,1],[336,1],[364,1],[366,1],[381,1],[383,1],[408,1],[444,1],[459,2],[462,3],[480,2],[505,2],[508,1],[536,1],[564,1],[608,1],[610,2],[789,2]]},"496":{"position":[[73,1],[85,1],[113,1],[115,1],[130,1],[132,1],[157,1],[196,1],[224,1],[231,2],[234,3],[252,2],[262,2],[307,1],[321,1],[341,1],[353,1],[381,1],[383,1],[398,1],[400,1],[425,1],[461,1],[468,2],[471,3],[489,2],[522,2],[525,1],[553,1],[581,1],[625,1],[627,2],[806,2]]},"504":{"position":[[63,1],[75,1],[111,1],[113,1],[138,1],[173,1],[256,1],[270,1],[290,1],[302,1],[338,1],[340,1],[365,1],[431,2],[434,1],[462,1],[490,1],[534,3],[714,2]]},"506":{"position":[[58,1],[70,1],[106,1],[108,1],[133,1],[168,1],[210,2],[213,3],[231,3],[277,1],[291,1],[311,1],[323,1],[359,1],[361,1],[386,1],[418,1],[433,2],[436,3],[454,2],[479,2],[482,1],[510,1],[538,1],[582,1],[584,2],[763,2]]},"508":{"position":[[73,1],[85,1],[121,1],[123,1],[148,1],[183,1],[211,1],[218,2],[221,3],[239,2],[249,2],[294,1],[308,1],[328,1],[340,1],[376,1],[378,1],[403,1],[435,1],[442,2],[445,3],[463,2],[496,2],[499,1],[527,1],[555,1],[599,1],[601,2],[780,2]]},"516":{"position":[[63,1],[75,1],[85,1],[113,1],[115,1],[127,1],[129,3],[146,1],[183,1],[264,1],[278,1],[298,1],[310,1],[320,1],[348,1],[350,1],[362,1],[364,3],[381,1],[449,2],[452,1],[480,1],[508,1],[550,3],[649,2]]},"518":{"position":[[58,1],[70,1],[80,1],[108,1],[110,1],[122,1],[124,3],[141,1],[178,1],[220,2],[223,3],[241,3],[285,1],[299,1],[319,1],[331,1],[341,1],[369,1],[371,1],[383,1],[385,3],[402,1],[438,1],[453,2],[456,3],[474,2],[497,2],[500,1],[528,1],[556,1],[598,1],[600,2],[698,2]]},"520":{"position":[[73,1],[85,1],[95,1],[123,1],[125,1],[137,1],[139,3],[156,1],[193,1],[221,1],[228,2],[231,3],[249,2],[259,2],[302,1],[316,1],[336,1],[348,1],[358,1],[386,1],[388,1],[400,1],[402,3],[419,1],[455,1],[462,2],[465,3],[483,2],[514,2],[517,1],[545,1],[573,1],[615,1],[617,2],[715,2]]},"525":{"position":[[0,2]]},"527":{"position":[[105,1],[125,1],[228,2],[259,7],[284,1],[331,2],[334,3],[371,1],[385,1],[405,1],[419,1],[458,1],[561,2],[592,7],[665,1],[693,1],[721,1],[723,2],[726,3],[763,3],[767,2]]},"529":{"position":[[103,1],[123,1],[180,1],[233,2],[248,2],[261,3],[265,3],[269,2],[300,7],[325,1],[372,2],[375,3],[412,1],[426,1],[446,1],[460,1],[499,1],[556,1],[609,2],[624,2],[637,3],[641,3],[645,2],[676,7],[749,1],[777,1],[805,1],[807,2],[810,3],[847,3],[851,2]]},"531":{"position":[[103,1],[123,1],[180,1],[182,2],[185,3],[266,2],[269,3],[273,2],[304,7],[329,1],[376,2],[379,3],[416,1],[430,1],[450,1],[464,1],[503,1],[560,1],[562,2],[565,3],[647,3],[651,2],[682,7],[755,1],[783,1],[811,1],[813,2],[816,3],[853,3],[857,2]]},"533":{"position":[[121,1],[141,1],[198,1],[200,2],[203,3],[212,1],[214,2],[265,2],[361,2],[364,3],[368,2],[399,7],[424,1],[471,2],[474,3],[511,1],[525,1],[545,1],[559,1],[598,1],[655,1],[657,2],[660,3],[669,1],[671,2],[722,2],[818,2],[821,3],[825,2],[856,7],[929,1],[957,1],[985,1],[987,2],[990,3],[1027,3],[1046,2]]},"535":{"position":[[290,1],[310,1],[367,1],[369,2],[372,3],[443,3],[447,2],[478,7],[503,1],[550,2],[553,3],[590,1],[604,1],[624,1],[638,1],[652,1],[756,1],[770,1],[790,1],[804,1],[843,1],[900,1],[902,2],[905,3],[976,3],[980,2],[1011,7],[1084,1],[1112,1],[1140,1],[1142,2],[1145,3],[1182,3],[1265,1],[1312,1],[1340,1],[1360,3],[1364,2]]},"537":{"position":[[13,1],[77,1],[129,1]]},"539":{"position":[[62,1],[105,1],[144,1],[179,3],[201,1],[258,1],[280,3],[284,2],[315,7],[343,1],[385,1],[428,1],[468,1],[525,1],[554,2],[557,1],[599,3],[603,2],[606,3],[610,2],[641,7],[669,1],[779,2],[782,1],[810,1],[838,1],[867,3],[941,2],[944,1],[972,1],[1000,1],[1029,3],[1103,2],[1106,1],[1134,1],[1162,1],[1191,3]]},"546":{"position":[[46,1],[58,1],[94,1],[136,1],[209,1],[223,1],[243,1],[255,1],[291,1],[354,2],[357,1],[385,1],[413,1],[457,3],[637,2]]},"548":{"position":[[56,1],[68,1],[104,1],[146,1],[178,2],[181,3],[199,3],[245,1],[259,1],[279,1],[291,1],[327,1],[364,1],[371,2],[374,3],[392,2],[417,2],[420,1],[448,1],[476,1],[520,1],[522,2],[701,2]]},"557":{"position":[[46,1],[58,1],[155,1],[228,1],[242,1],[262,1],[274,1],[392,2],[395,1],[423,1],[451,1],[495,3],[675,2]]},"559":{"position":[[56,1],[68,1],[165,1],[197,2],[200,3],[218,3],[264,1],[278,1],[298,1],[310,1],[402,1],[409,2],[412,3],[430,2],[455,2],[458,1],[486,1],[514,1],[558,1],[560,2],[739,2]]},"566":{"position":[[35,1],[74,1],[132,1],[208,2],[211,1],[395,1],[419,3],[461,2],[464,1],[526,3],[543,1],[652,3],[679,2],[682,1],[756,1],[758,2],[807,2],[881,1],[883,2],[939,1],[963,1],[1076,1],[1083,1],[1085,2],[1147,1],[1216,1],[1218,3],[1222,3],[1267,3]]},"570":{"position":[[46,1],[58,1],[68,1],[96,1],[115,1],[143,1],[214,1],[228,1],[248,1],[260,1],[270,1],[298,1],[317,1],[366,2],[369,1],[397,1],[425,1],[467,3],[566,2]]},"572":{"position":[[56,1],[68,1],[78,1],[106,1],[125,1],[153,1],[185,2],[188,3],[206,3],[250,1],[264,1],[284,1],[296,1],[306,1],[334,1],[353,1],[378,1],[385,2],[388,3],[406,2],[429,2],[432,1],[460,1],[488,1],[530,1],[532,2],[630,2]]},"574":{"position":[[56,1],[68,1],[78,1],[106,1],[125,1],[153,1],[204,2],[207,3],[225,3],[269,1],[283,1],[303,1],[315,1],[325,1],[353,1],[372,1],[397,1],[423,2],[426,3],[444,2],[467,2],[470,1],[498,1],[526,1],[568,1],[570,2],[677,2]]},"579":{"position":[[34,1],[136,3],[155,2],[158,1],[171,1],[178,1],[188,1],[221,2],[224,1],[253,2],[313,3],[317,1],[319,2],[344,2],[347,1],[360,1],[367,1],[377,1],[408,2],[411,1],[470,2],[473,1],[516,3],[520,3],[524,1],[526,2]]},"581":{"position":[[35,1],[68,1],[124,1],[194,1],[233,1],[277,1],[373,2],[389,1],[401,1],[408,1],[410,2],[464,1],[509,3],[513,1],[515,1],[530,1],[606,2],[609,1],[611,2],[643,2],[693,3],[697,2],[783,2],[856,2],[886,2],[976,3],[1018,2],[1021,1],[1083,3],[1112,2],[1115,1],[1137,1],[1324,2],[1327,3],[1356,4],[1361,3],[1365,10],[1376,7],[1393,4],[1424,7],[1432,4],[1437,8],[1446,6],[1453,11],[1496,3],[1500,3]]},"583":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[239,1],[301,1],[329,1],[355,1],[398,2],[401,1],[413,2],[428,3],[467,1],[469,1],[569,2],[596,2],[613,2],[623,2],[626,2],[629,1],[663,1],[665,1],[673,3],[683,3],[697,3],[711,3],[715,2],[729,1],[769,3],[814,2],[885,3],[919,2],[1051,2],[1054,3],[1079,2],[1099,1],[1178,4],[1183,4],[1188,6],[1230,2],[1282,3],[1334,2],[1409,3],[1451,2],[1531,1],[1567,3],[1571,3],[1589,2],[1616,1],[1716,2],[1719,1],[1721,3],[1823,2],[1856,1],[1887,3],[1942,1],[1949,1],[1972,2],[1975,1],[2006,3],[2027,2],[2073,3],[2077,1],[2079,3],[2101,5],[2107,3],[2118,1],[2120,1],[2134,1],[2153,1],[2161,1],[2175,1],[2194,1],[2202,1],[2215,1],[2234,1],[2242,1],[2255,1],[2274,1],[2282,1],[2296,1],[2315,1],[2334,2]]},"587":{"position":[[46,1],[58,1],[86,1],[104,1],[146,1],[219,1],[233,1],[253,1],[265,1],[293,1],[311,1],[374,2],[377,1],[405,1],[433,1],[477,3],[657,2]]},"589":{"position":[[56,1],[68,1],[96,1],[114,1],[156,1],[188,2],[191,3],[209,3],[255,1],[269,1],[289,1],[301,1],[329,1],[347,1],[384,1],[391,2],[394,3],[412,2],[437,2],[440,1],[468,1],[496,1],[540,1],[542,2],[721,2]]},"596":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[308,1],[317,2],[320,2],[323,1],[357,1],[359,1],[367,3],[377,3],[391,3],[405,3],[435,2],[449,1],[489,3],[534,2],[605,3],[639,2],[771,2],[774,3],[799,2],[819,1],[898,4],[903,4],[908,6],[950,2],[1002,3],[1020,2],[1036,1],[1066,1],[1076,1],[1130,1],[1194,2],[1197,2],[1221,2],[1224,1],[1247,2],[1250,1],[1276,3],[1297,2],[1343,3],[1347,3],[1369,5],[1375,3],[1386,1],[1388,1],[1402,1],[1416,1],[1424,1],[1438,1],[1452,1],[1460,1],[1473,1],[1487,1],[1495,1],[1508,1],[1522,1],[1530,1],[1544,2]]},"598":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[308,1],[317,2],[320,2],[323,1],[357,1],[359,1],[367,3],[377,3],[391,3],[405,3],[409,2],[423,1],[463,3],[508,2],[579,3],[613,2],[745,2],[748,3],[773,2],[793,1],[872,4],[877,4],[882,6],[924,2],[976,3],[994,2],[1011,1],[1047,1],[1084,2],[1108,2],[1111,1],[1137,3],[1158,2],[1204,3],[1226,5],[1232,3],[1243,1],[1245,1],[1259,1],[1273,1],[1281,1],[1295,1],[1309,1],[1317,1],[1330,1],[1344,1],[1352,1],[1365,1],[1379,1],[1387,1],[1401,2]]},"600":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[282,3],[289,2],[303,3],[312,2],[326,1],[335,2],[338,2],[341,1],[375,1],[377,1],[385,3],[395,3],[409,3],[423,3],[446,2],[460,1],[500,3],[545,2],[616,3],[650,2],[782,2],[785,3],[810,2],[830,1],[909,4],[914,4],[919,6],[961,2],[1013,3],[1031,2],[1048,1],[1084,1],[1121,2],[1145,2],[1148,1],[1174,3],[1195,2],[1239,3],[1261,5],[1267,3],[1278,1],[1280,1],[1294,1],[1308,1],[1316,1],[1330,1],[1344,1],[1352,1],[1365,1],[1379,1],[1387,1],[1400,1],[1414,1],[1422,1],[1436,2]]},"602":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[218,1],[280,1],[282,3],[289,2],[303,3],[312,2],[326,1],[335,2],[338,2],[341,1],[375,1],[377,1],[385,3],[395,3],[409,3],[423,3],[472,2],[486,1],[526,3],[571,2],[642,3],[676,2],[808,2],[811,3],[836,2],[856,1],[935,4],[940,4],[945,6],[987,2],[1039,3],[1057,2],[1073,1],[1103,1],[1113,1],[1167,1],[1231,2],[1234,2],[1258,2],[1261,1],[1284,2],[1287,1],[1313,3],[1334,2],[1378,3],[1382,3],[1404,5],[1410,3],[1421,1],[1423,1],[1437,1],[1451,1],[1459,1],[1473,1],[1487,1],[1495,1],[1508,1],[1522,1],[1530,1],[1543,1],[1557,1],[1565,1],[1579,2]]},"604":{"position":[[72,2]]},"606":{"position":[[7,3],[24,4],[47,8],[78,5],[98,15],[122,4],[134,3],[142,1],[152,12],[172,12],[185,8],[194,5],[226,14],[251,4],[260,1],[284,4],[289,3]]},"610":{"position":[[9,3],[13,1],[60,1],[148,2],[165,1],[239,1],[301,1],[303,3],[310,2],[324,3],[333,2],[347,1],[373,1],[416,2],[419,1],[431,2],[446,3],[485,1],[487,1],[587,2],[614,2],[631,2],[641,2],[644,2],[647,1],[681,1],[683,1],[691,3],[701,3],[715,3],[729,3],[752,2],[766,1],[806,3],[851,2],[922,3],[956,2],[1088,2],[1091,3],[1116,2],[1136,1],[1215,4],[1220,4],[1225,6],[1267,2],[1319,3],[1371,2],[1446,3],[1488,2],[1568,1],[1604,3],[1608,3],[1626,2],[1653,1],[1753,2],[1756,1],[1758,3],[1860,2],[1893,1],[1924,3],[1979,1],[1986,1],[2009,2],[2012,1],[2043,3],[2064,2],[2108,3],[2112,1],[2114,3],[2136,5],[2142,3],[2153,1],[2155,1],[2169,1],[2188,1],[2196,1],[2210,1],[2229,1],[2237,1],[2250,1],[2269,1],[2277,1],[2290,1],[2309,1],[2317,1],[2331,1],[2350,1],[2369,2]]},"612":{"position":[[15,3],[19,1],[66,2],[76,1],[90,1],[122,1],[130,1],[185,1],[213,1],[241,1],[243,1],[251,3],[261,3],[275,3],[289,3],[293,2],[303,2],[306,2],[309,1],[323,1],[344,3],[389,2],[450,3],[484,2],[606,2],[609,3],[634,2],[654,1],[723,4],[728,4],[733,6],[775,2],[827,3],[845,2],[862,1],[895,1],[932,2],[962,2],[965,1],[991,3],[1012,2],[1058,3],[1092,5],[1098,3],[1109,1],[1111,1],[1125,1],[1139,1],[1147,1],[1161,1],[1175,1],[1183,1],[1196,1],[1210,1],[1218,1],[1231,1],[1245,1],[1253,1],[1267,2],[1270,3],[1274,1],[1321,2],[1331,1],[1396,1],[1440,1],[1534,1],[1553,1],[1578,1],[1610,1],[1612,3],[1683,2],[1713,1],[1742,1],[1774,1],[1776,3],[1804,2],[1823,1],[1907,1],[1909,3],[1965,2],[1991,1],[2077,1],[2079,3],[2112,2],[2133,1],[2217,1],[2219,3],[2297,2],[2319,1],[2405,1],[2407,3],[2435,2],[2456,1],[2542,1],[2544,3],[2600,2],[2628,1],[2716,1],[2718,3],[2751,2],[2774,1],[2860,1],[2862,3],[2940,2],[2964,1],[3052,1],[3054,3],[3085,2],[3105,1],[3125,1],[3127,1]]},"616":{"position":[[166,1],[198,1],[231,3],[241,3],[255,3],[259,3],[301,2],[304,1],[332,1],[379,1],[381,3],[508,1],[540,1],[567,3],[577,3],[591,3],[595,3],[636,2],[639,1],[667,1],[724,1],[726,3],[860,1],[899,1],[953,1],[961,3],[971,3],[985,3],[989,3],[1046,2],[1049,1],[1077,1],[1141,1],[1143,3],[1280,1],[1298,2],[1301,1],[1329,1],[1375,1],[1396,3],[1613,1],[1631,2],[1634,1],[1662,1],[1706,1],[1727,3]]},"618":{"position":[[184,1],[203,1],[242,3],[252,3],[266,3],[270,3],[274,1],[288,1],[316,1],[336,1],[338,1],[489,1],[516,3],[526,3],[540,3],[544,3],[552,1],[571,1],[601,1],[615,1],[643,1],[663,1],[665,1],[830,1],[884,1],[892,3],[902,3],[916,3],[920,3],[928,1],[972,1],[986,1],[1014,1],[1061,1],[1063,1],[1165,1],[1180,1],[1216,1],[1242,1],[1256,1],[1284,1],[1322,1],[1324,1],[1508,1],[1523,1],[1557,1],[1583,1],[1597,1],[1625,1],[1661,1],[1663,1]]}}}],["0",{"_index":156,"t":{"328":{"position":[[255,2]]},"366":{"position":[[121,2]]},"392":{"position":[[569,2],[618,2],[997,2],[1046,2]]},"398":{"position":[[291,2]]},"425":{"position":[[579,2],[596,2],[609,2],[654,2],[670,1]]},"427":{"position":[[475,2],[492,2],[505,2],[551,2],[567,1],[602,2],[619,2],[632,2],[677,2],[693,1]]},"429":{"position":[[790,2],[807,2],[820,2],[865,2],[881,1]]},"579":{"position":[[173,2],[362,2]]},"581":{"position":[[1308,2],[1321,2]]},"583":{"position":[[2332,1]]},"600":{"position":[[292,2]]},"602":{"position":[[292,2]]},"610":{"position":[[313,2],[2367,1]]}}}],["0deprec",{"_index":791,"t":{"431":{"position":[[0,11]]},"608":{"position":[[101,11]]}}}],["0xffffff",{"_index":930,"t":{"566":{"position":[[386,8]]},"581":{"position":[[876,9]]}}}],["1",{"_index":157,"t":{"328":{"position":[[258,2]]},"360":{"position":[[58,1],[155,1],[285,1],[357,1]]},"366":{"position":[[135,1]]},"368":{"position":[[189,3],[222,3],[321,3],[454,3],[516,3]]},"394":{"position":[[1287,4],[1553,3]]},"396":{"position":[[73,1],[477,1],[653,1]]},"398":{"position":[[347,2],[353,1]]},"401":{"position":[[517,2],[703,1],[760,3],[764,2],[816,1],[854,1],[858,1],[986,3],[990,3],[1027,1],[1031,1]]},"418":{"position":[[35,1],[39,1],[129,1],[133,1]]},"421":{"position":[[221,1],[225,1],[686,1],[690,1]]},"423":{"position":[[239,1],[243,1]]},"425":{"position":[[449,2],[454,2]]},"427":{"position":[[326,2],[331,2]]},"429":{"position":[[561,2],[566,2]]},"435":{"position":[[2138,2]]},"451":{"position":[[448,2]]},"472":{"position":[[347,2]]},"492":{"position":[[130,3],[370,3]]},"494":{"position":[[125,3],[391,3]]},"496":{"position":[[140,3],[408,3]]},"504":{"position":[[121,3],[348,3]]},"506":{"position":[[116,3],[369,3]]},"508":{"position":[[131,3],[386,3]]},"539":{"position":[[534,2]]},"546":{"position":[[109,3],[306,3]]},"548":{"position":[[119,3],[342,3]]},"583":{"position":[[2240,1]]},"587":{"position":[[119,3],[326,3]]},"589":{"position":[[129,3],[362,3]]},"596":{"position":[[1493,1]]},"598":{"position":[[1350,1]]},"600":{"position":[[315,2],[1385,1]]},"602":{"position":[[315,2],[1528,1]]},"610":{"position":[[336,2],[2275,1]]},"612":{"position":[[1216,1]]},"616":{"position":[[1278,1],[1282,3],[1611,1],[1615,3]]},"618":{"position":[[1214,1],[1218,4],[1555,1],[1559,4]]}}}],["1+1",{"_index":724,"t":{"407":{"position":[[284,3]]}}}],["1+:toadd",{"_index":555,"t":{"378":{"position":[[269,8]]},"435":{"position":[[1783,8]]}}}],["1,2",{"_index":688,"t":{"401":{"position":[[608,5]]}}}],["1.0.0",{"_index":143,"t":{"326":{"position":[[202,8]]},"435":{"position":[[2026,8]]}}}],["1.1",{"_index":158,"t":{"328":{"position":[[261,4]]}}}],["1.1earli",{"_index":1067,"t":{"608":{"position":[[756,8]]}}}],["1.2",{"_index":159,"t":{"328":{"position":[[266,4]]}}}],["1.2releas",{"_index":1071,"t":{"608":{"position":[[848,10]]}}}],["10",{"_index":557,"t":{"378":{"position":[[296,2]]},"392":{"position":[[374,3],[387,3],[802,3],[815,3]]},"407":{"position":[[237,2]]},"427":{"position":[[532,3]]},"435":{"position":[[1810,2]]},"566":{"position":[[280,3]]},"581":{"position":[[754,3]]}}}],["1000",{"_index":958,"t":{"579":{"position":[[322,6],[529,6]]}}}],["1045",{"_index":976,"t":{"581":{"position":[[504,4]]}}}],["1080",{"_index":735,"t":{"407":{"position":[[864,4]]}}}],["12",{"_index":442,"t":{"360":{"position":[[126,2]]}}}],["120",{"_index":673,"t":{"398":{"position":[[335,4]]}}}],["123",{"_index":664,"t":{"398":{"position":[[152,4]]},"581":{"position":[[689,3]]}}}],["1234",{"_index":928,"t":{"566":{"position":[[330,5]]},"581":{"position":[[817,5]]}}}],["137",{"_index":604,"t":{"390":{"position":[[637,5],[1017,5]]}}}],["14",{"_index":636,"t":{"394":{"position":[[364,3],[872,3]]}}}],["16000",{"_index":483,"t":{"364":{"position":[[86,5]]}}}],["18.x",{"_index":52,"t":{"320":{"position":[[60,5]]}}}],["19",{"_index":896,"t":{"478":{"position":[[160,3],[414,3]]},"480":{"position":[[155,3],[435,3]]},"482":{"position":[[170,3],[452,3]]},"557":{"position":[[112,4],[328,4]]},"559":{"position":[[122,4],[364,4]]}}}],["1998",{"_index":1149,"t":{"620":{"position":[[12,5]]}}}],["1experiment",{"_index":193,"t":{"334":{"position":[[144,13]]},"608":{"position":[[642,13]]}}}],["2",{"_index":160,"t":{"328":{"position":[[271,1]]},"362":{"position":[[293,1],[464,3]]},"376":{"position":[[195,3],[199,4]]},"396":{"position":[[85,1],[489,1],[665,1]]},"401":{"position":[[523,1]]},"418":{"position":[[95,1],[189,1]]},"421":{"position":[[300,1],[701,1],[705,1],[772,2]]},"423":{"position":[[261,1],[265,1],[376,1]]},"425":{"position":[[636,2]]},"427":{"position":[[338,2],[343,2],[659,2]]},"429":{"position":[[573,2],[578,2],[847,2]]},"566":{"position":[[349,2]]},"581":{"position":[[836,2]]},"583":{"position":[[2200,1]]},"596":{"position":[[1117,4],[1171,1],[1180,4],[1458,1]]},"598":{"position":[[1315,1]]},"600":{"position":[[1350,1]]},"602":{"position":[[1154,4],[1208,1],[1217,4],[1493,1]]},"610":{"position":[[2235,1]]},"612":{"position":[[1181,1]]}}}],["2+3",{"_index":814,"t":{"435":{"position":[[785,3],[1292,3]]}}}],["2.0",{"_index":698,"t":{"405":{"position":[[238,3]]}}}],["2.rds.amazonaws.com",{"_index":859,"t":{"447":{"position":[[379,21],[735,21]]},"468":{"position":[[349,21],[774,21]]},"535":{"position":[[402,21],[935,21]]}}}],["20",{"_index":906,"t":{"492":{"position":[[149,4],[389,4]]},"494":{"position":[[144,4],[410,4]]},"496":{"position":[[159,4],[427,4]]},"587":{"position":[[88,2],[295,2]]},"589":{"position":[[98,2],[331,2]]}}}],["2113931265",{"_index":982,"t":{"581":{"position":[[907,11]]}}}],["2119",{"_index":869,"t":{"449":{"position":[[71,5]]},"470":{"position":[[71,5]]},"537":{"position":[[71,5]]}}}],["2130",{"_index":867,"t":{"449":{"position":[[7,5]]},"470":{"position":[[7,5]]},"537":{"position":[[7,5]]}}}],["2131",{"_index":872,"t":{"449":{"position":[[123,5]]},"470":{"position":[[123,5]]},"537":{"position":[[123,5]]}}}],["2181036031",{"_index":983,"t":{"581":{"position":[[936,11]]}}}],["2282",{"_index":1150,"t":{"620":{"position":[[18,5]]}}}],["253",{"_index":996,"t":{"581":{"position":[[1296,4]]}}}],["2stabl",{"_index":161,"t":{"328":{"position":[[288,7],[296,7]]},"421":{"position":[[0,7]]},"423":{"position":[[0,7]]},"425":{"position":[[0,7]]},"427":{"position":[[0,7]]},"429":{"position":[[0,7]]},"608":{"position":[[1114,7]]},"616":{"position":[[17,7],[396,7],[748,7],[1155,7],[1492,7]]},"618":{"position":[[17,7],[351,7],[685,7],[1073,7],[1418,7]]}}}],["3",{"_index":43,"t":{"318":{"position":[[39,2]]},"328":{"position":[[277,2]]},"357":{"position":[[292,3]]},"362":{"position":[[511,1]]},"368":{"position":[[232,3],[354,3],[364,3],[549,3],[559,3]]},"376":{"position":[[388,1]]},"401":{"position":[[646,1]]},"583":{"position":[[2280,1]]},"596":{"position":[[1528,1]]},"598":{"position":[[1385,1]]},"600":{"position":[[1420,1]]},"602":{"position":[[1563,1]]},"610":{"position":[[2315,1]]},"612":{"position":[[1251,1]]}}}],["33",{"_index":992,"t":{"581":{"position":[[1261,3]]}}}],["3306",{"_index":734,"t":{"407":{"position":[[829,4]]},"435":{"position":[[163,5],[980,5],[1633,5]]},"441":{"position":[[219,5],[419,5]]},"451":{"position":[[178,4],[508,4]]},"462":{"position":[[189,5],[464,5]]},"472":{"position":[[166,4],[407,4]]},"529":{"position":[[242,5],[618,5]]},"539":{"position":[[174,4],[594,4]]}}}],["384",{"_index":994,"t":{"581":{"position":[[1279,4]]}}}],["3legaci",{"_index":1083,"t":{"608":{"position":[[1181,7]]}}}],["4",{"_index":763,"t":{"421":{"position":[[775,1]]},"423":{"position":[[393,1]]},"583":{"position":[[2132,1],[2159,1]]},"596":{"position":[[1400,1],[1422,1]]},"598":{"position":[[1257,1],[1279,1]]},"600":{"position":[[1292,1],[1314,1]]},"602":{"position":[[1435,1],[1457,1]]},"610":{"position":[[2167,1],[2194,1]]},"612":{"position":[[1123,1],[1145,1]]}}}],["4.5.2",{"_index":745,"t":{"410":{"position":[[222,8]]}}}],["45",{"_index":596,"t":{"388":{"position":[[408,3],[640,3],[941,4],[1144,4]]},"478":{"position":[[172,4],[426,4]]},"480":{"position":[[167,4],[447,4]]},"482":{"position":[[182,4],[464,4]]},"516":{"position":[[157,4],[392,4]]},"518":{"position":[[152,4],[413,4]]},"520":{"position":[[167,4],[430,4]]},"557":{"position":[[126,5],[342,5]]},"559":{"position":[[136,5],[378,5]]},"570":{"position":[[117,4],[319,4]]},"572":{"position":[[127,4],[355,4]]},"574":{"position":[[127,4],[374,4]]}}}],["5",{"_index":440,"t":{"360":{"position":[[80,3]]},"579":{"position":[[180,2],[369,2]]}}}],["5.6.10",{"_index":981,"t":{"581":{"position":[[773,9]]}}}],["53",{"_index":605,"t":{"390":{"position":[[643,3],[1023,4]]}}}],["6",{"_index":441,"t":{"360":{"position":[[84,3]]}}}],["6.9.0",{"_index":833,"t":{"435":{"position":[[2207,8]]}}}],["60000",{"_index":613,"t":{"392":{"position":[[480,6],[551,5],[908,6],[979,5]]}}}],["8",{"_index":929,"t":{"566":{"position":[[366,2]]},"581":{"position":[[853,2]]}}}],["8bb6118f8fd6935ad0876a3be34a717d32708ffd",{"_index":841,"t":{"443":{"position":[[193,43]]},"464":{"position":[[163,43]]},"531":{"position":[[216,43]]}}}],["8编码支持、二进制文件编码支持、压缩和ssl",{"_index":583,"t":{"384":{"position":[[42,24]]}}}],["_err",{"_index":754,"t":{"418":{"position":[[54,6],[148,6]]},"421":{"position":[[240,6],[377,6],[718,6],[853,6]]},"423":{"position":[[314,6]]},"425":{"position":[[493,6]]},"427":{"position":[[384,6]]},"429":{"position":[[704,6]]}}}],["a,b,c,d",{"_index":691,"t":{"403":{"position":[[31,7]]}}}],["a.j",{"_index":873,"t":{"451":{"position":[[44,4]]},"472":{"position":[[32,4]]},"539":{"position":[[40,4]]}}}],["abov",{"_index":526,"t":{"374":{"position":[[708,5]]},"392":{"position":[[1194,5],[1400,5],[1614,5],[1845,5]]}}}],["accept",{"_index":736,"t":{"407":{"position":[[976,6]]}}}],["access",{"_index":564,"t":{"380":{"position":[[76,6]]},"405":{"position":[[357,6]]},"414":{"position":[[57,7]]},"416":{"position":[[51,7]]},"583":{"position":[[637,7]]},"596":{"position":[[331,7]]},"598":{"position":[[331,7]]},"600":{"position":[[349,7]]},"602":{"position":[[349,7]]},"604":{"position":[[144,6]]},"610":{"position":[[655,7]]},"612":{"position":[[221,7]]}}}],["accord",{"_index":407,"t":{"355":{"position":[[2435,9]]}}}],["accordingli",{"_index":359,"t":{"355":{"position":[[760,12]]}}}],["ack",{"_index":474,"t":{"362":{"position":[[641,3]]}}}],["action",{"_index":190,"t":{"334":{"position":[[101,7],[238,7],[335,7],[530,7]]}}}],["activ",{"_index":1085,"t":{"608":{"position":[[1289,6]]}}}],["ad",{"_index":1135,"t":{"616":{"position":[[122,6]]}}}],["add(group",{"_index":907,"t":{"527":{"position":[[0,10]]},"529":{"position":[[0,10]]},"531":{"position":[[0,10]]},"533":{"position":[[0,10]]},"535":{"position":[[0,10]]},"539":{"position":[[0,10]]}}}],["addit",{"_index":216,"t":{"336":{"position":[[226,10]]},"353":{"position":[[251,8]]},"355":{"position":[[599,10]]},"357":{"position":[[245,10],[296,10]]},"372":{"position":[[3,8]]},"405":{"position":[[3,8]]},"407":{"position":[[905,8]]}}}],["addition",{"_index":631,"t":{"392":{"position":[[2043,13]]}}}],["address",{"_index":1094,"t":{"608":{"position":[[1520,10]]}}}],["advanc",{"_index":793,"t":{"433":{"position":[[80,8]]}}}],["affect",{"_index":1035,"t":{"583":{"position":[[2317,8]]},"610":{"position":[[2352,8]]}}}],["affectedrow",{"_index":285,"t":{"351":{"position":[[222,13]]},"425":{"position":[[242,12],[582,13]]},"427":{"position":[[478,13],[605,13]]},"429":{"position":[[793,13]]},"583":{"position":[[485,15]]},"610":{"position":[[503,15]]}}}],["ag",{"_index":595,"t":{"388":{"position":[[400,5],[619,5],[933,5],[1123,5]]},"390":{"position":[[616,5],[996,5]]},"394":{"position":[[342,5],[850,5]]},"478":{"position":[[106,6],[360,6]]},"480":{"position":[[101,6],[381,6]]},"482":{"position":[[116,6],[398,6]]},"492":{"position":[[97,5],[337,5]]},"494":{"position":[[92,5],[358,5]]},"496":{"position":[[107,5],[375,5]]},"516":{"position":[[121,5],[356,5]]},"518":{"position":[[116,5],[377,5]]},"520":{"position":[[131,5],[394,5]]},"557":{"position":[[89,6],[305,6]]},"559":{"position":[[99,6],[341,6]]},"570":{"position":[[109,5],[311,5]]},"572":{"position":[[119,5],[347,5]]},"574":{"position":[[119,5],[366,5]]},"587":{"position":[[80,5],[287,5]]},"589":{"position":[[90,5],[323,5]]}}}],["again",{"_index":426,"t":{"357":{"position":[[396,6]]},"456":{"position":[[244,6]]}}}],["aim",{"_index":206,"t":{"336":{"position":[[7,4]]}}}],["algorithm",{"_index":411,"t":{"355":{"position":[[2592,9]]}}}],["algoritm",{"_index":427,"t":{"357":{"position":[[502,9]]}}}],["allow",{"_index":123,"t":{"324":{"position":[[181,6]]}}}],["alongsid",{"_index":139,"t":{"326":{"position":[[90,9]]}}}],["alway",{"_index":239,"t":{"340":{"position":[[192,6]]},"355":{"position":[[1488,6],[2239,6]]},"583":{"position":[[1793,6]]},"610":{"position":[[1830,6]]}}}],["amazon",{"_index":852,"t":{"447":{"position":[[56,6],[113,6],[406,7],[762,7]]},"449":{"position":[[36,6],[138,6]]},"468":{"position":[[44,6],[101,6],[376,7],[801,7]]},"470":{"position":[[36,6],[138,6]]},"535":{"position":[[52,6],[109,6],[429,7],[962,7]]},"537":{"position":[[36,6],[138,6]]}}}],["anoth",{"_index":344,"t":{"355":{"position":[[372,7]]}}}],["answer",{"_index":1042,"t":{"604":{"position":[[22,7]]},"616":{"position":[[84,7]]},"618":{"position":[[84,7]]}}}],["api",{"_index":7,"t":{"312":{"position":[[128,4]]},"336":{"position":[[74,3]]},"355":{"position":[[1303,3]]},"372":{"position":[[79,3]]},"394":{"position":[[19,4]]},"606":{"position":[[29,17],[138,3]]}}}],["api文档来知道更多的api",{"_index":10,"t":{"314":{"position":[[26,31]]}}}],["appli",{"_index":25,"t":{"314":{"position":[[242,7]]}}}],["approach",{"_index":1068,"t":{"608":{"position":[[817,11]]}}}],["arg",{"_index":943,"t":{"566":{"position":[[772,5]]}}}],["argument",{"_index":27,"t":{"314":{"position":[[261,10]]},"347":{"position":[[89,9]]}}}],["arguments[1",{"_index":945,"t":{"566":{"position":[[941,13],[1149,13]]}}}],["arguments[2",{"_index":946,"t":{"566":{"position":[[965,13]]}}}],["array",{"_index":300,"t":{"351":{"position":[[536,5]]},"362":{"position":[[230,5],[318,5]]},"396":{"position":[[793,5],[802,6],[824,5]]},"401":{"position":[[398,5],[942,5]]},"403":{"position":[[139,5],[148,6]]},"421":{"position":[[11,5]]},"566":{"position":[[824,7],[840,7]]},"574":{"position":[[614,5]]}}}],["array.isarray(arguments[1",{"_index":944,"t":{"566":{"position":[[851,29]]}}}],["asc",{"_index":1021,"t":{"583":{"position":[[1558,4]]},"596":{"position":[[1107,3],[1161,3]]},"598":{"position":[[1078,5]]},"600":{"position":[[1115,5]]},"602":{"position":[[1144,3],[1198,3]]},"610":{"position":[[1595,4]]},"612":{"position":[[926,5]]}}}],["ascertain",{"_index":1076,"t":{"608":{"position":[[1045,9]]}}}],["ask",{"_index":331,"t":{"355":{"position":[[43,3]]},"396":{"position":[[915,3]]},"604":{"position":[[42,5]]}}}],["assur",{"_index":1048,"t":{"608":{"position":[[162,6]]}}}],["async",{"_index":527,"t":{"376":{"position":[[0,5],[224,5]]},"394":{"position":[[77,5],[982,5]]},"435":{"position":[[92,5],[1962,5]]},"583":{"position":[[616,6]]},"596":{"position":[[310,6]]},"598":{"position":[[310,6]]},"600":{"position":[[328,6]]},"602":{"position":[[328,6]]},"610":{"position":[[634,6]]},"612":{"position":[[296,6]]}}}],["asynchron",{"_index":357,"t":{"355":{"position":[[703,14]]}}}],["attach",{"_index":324,"t":{"353":{"position":[[499,6]]}}}],["auth",{"_index":333,"t":{"355":{"position":[[83,4],[801,4],[952,6],[1869,6]]},"357":{"position":[[702,5],[842,5],[982,5]]},"581":{"position":[[119,4]]}}}],["auth.doublesha1('pass123",{"_index":967,"t":{"581":{"position":[[235,27]]}}}],["auth.verifytoken",{"_index":969,"t":{"581":{"position":[[279,17]]}}}],["authcallback",{"_index":984,"t":{"581":{"position":[[948,13]]}}}],["authent",{"_index":221,"t":{"336":{"position":[[283,14]]},"355":{"position":[[211,14],[610,14]]},"357":{"position":[[34,14],[159,14],[256,14],[412,14]]},"581":{"position":[[962,13]]},"606":{"position":[[262,14]]}}}],["authenticate(param",{"_index":964,"t":{"581":{"position":[[169,20]]}}}],["authentication::native41",{"_index":408,"t":{"355":{"position":[[2448,24]]}}}],["authnextfactor",{"_index":418,"t":{"357":{"position":[[90,14]]}}}],["author",{"_index":829,"t":{"435":{"position":[[2144,9]]}}}],["authplugin",{"_index":335,"t":{"355":{"position":[[103,11],[928,12],[2480,11]]},"357":{"position":[[661,12]]}}}],["authswitchhandl",{"_index":381,"t":{"355":{"position":[[1318,17],[1778,18],[2508,17]]}}}],["authswitchrequest",{"_index":397,"t":{"355":{"position":[[2130,17]]}}}],["auto",{"_index":102,"t":{"322":{"position":[[709,4]]}}}],["auto_incr",{"_index":1011,"t":{"583":{"position":[[993,15]]},"596":{"position":[[713,15]]},"598":{"position":[[687,15]]},"600":{"position":[[724,15]]},"602":{"position":[[750,15]]},"610":{"position":[[1030,15]]},"612":{"position":[[548,15]]}}}],["automat",{"_index":621,"t":{"392":{"position":[[1289,13],[1496,13]]},"579":{"position":[[270,13]]}}}],["avail",{"_index":154,"t":{"328":{"position":[[237,9]]},"407":{"position":[[1080,10]]},"478":{"position":[[758,9]]},"480":{"position":[[807,9]]},"482":{"position":[[824,9]]},"492":{"position":[[730,9]]},"494":{"position":[[779,9]]},"496":{"position":[[796,9]]},"504":{"position":[[704,9]]},"506":{"position":[[753,9]]},"508":{"position":[[770,9]]},"516":{"position":[[639,9]]},"518":{"position":[[688,9]]},"520":{"position":[[705,9]]},"546":{"position":[[627,9]]},"548":{"position":[[691,9]]},"557":{"position":[[665,9]]},"559":{"position":[[729,9]]},"570":{"position":[[556,9]]},"572":{"position":[[620,9]]},"574":{"position":[[667,9]]},"587":{"position":[[647,9]]},"589":{"position":[[711,9]]},"608":{"position":[[1330,10]]}}}],["avg",{"_index":23,"t":{"314":{"position":[[221,5]]}}}],["avoid",{"_index":30,"t":{"314":{"position":[[301,5]]}}}],["await",{"_index":529,"t":{"376":{"position":[[82,5],[155,5],[204,5],[398,5],[516,5]]},"378":{"position":[[356,5]]},"388":{"position":[[201,5],[327,5],[551,5]]},"390":{"position":[[400,5],[546,5]]},"392":{"position":[[1223,5],[1633,5],[1697,5]]},"394":{"position":[[145,5],[272,5],[634,5],[780,5],[1255,5]]},"396":{"position":[[173,5],[445,5]]},"435":{"position":[[126,5],[292,5],[373,5],[675,5],[930,5],[1183,5],[1364,5],[2007,7]]},"439":{"position":[[124,5]]},"441":{"position":[[128,5]]},"443":{"position":[[128,5]]},"445":{"position":[[146,5]]},"447":{"position":[[315,5],[488,5],[547,5]]},"460":{"position":[[194,5]]},"462":{"position":[[235,5]]},"464":{"position":[[239,5]]},"466":{"position":[[334,5]]},"468":{"position":[[413,5],[545,5],[604,5]]},"478":{"position":[[202,5]]},"480":{"position":[[197,5]]},"482":{"position":[[212,5]]},"492":{"position":[[188,5]]},"494":{"position":[[183,5]]},"496":{"position":[[198,5]]},"504":{"position":[[175,5]]},"506":{"position":[[170,5]]},"508":{"position":[[185,5]]},"516":{"position":[[185,5]]},"518":{"position":[[180,5]]},"520":{"position":[[195,5]]},"527":{"position":[[286,5]]},"529":{"position":[[327,5]]},"531":{"position":[[331,5]]},"533":{"position":[[426,5]]},"535":{"position":[[505,5],[654,5],[713,5]]},"546":{"position":[[138,5]]},"548":{"position":[[148,5]]},"557":{"position":[[157,5]]},"559":{"position":[[167,5]]},"570":{"position":[[145,5]]},"572":{"position":[[155,5]]},"574":{"position":[[155,5]]},"583":{"position":[[731,5],[817,5],[922,5],[1101,5],[1337,5],[1454,5],[1618,5],[2083,5]]},"587":{"position":[[148,5]]},"589":{"position":[[158,5]]},"596":{"position":[[451,5],[537,5],[642,5],[821,5],[1038,5],[1351,5]]},"598":{"position":[[425,5],[511,5],[616,5],[795,5],[1013,5],[1208,5]]},"600":{"position":[[462,5],[548,5],[653,5],[832,5],[1050,5],[1243,5]]},"602":{"position":[[488,5],[574,5],[679,5],[858,5],[1075,5],[1386,5]]},"610":{"position":[[768,5],[854,5],[959,5],[1138,5],[1374,5],[1491,5],[1655,5],[2118,5]]},"612":{"position":[[392,5],[487,5],[656,5],[864,5],[1062,5]]},"618":{"position":[[205,5],[573,5],[930,5],[1182,5],[1525,5]]}}}],["await.j",{"_index":799,"t":{"435":{"position":[[0,8],[2062,11]]}}}],["b",{"_index":98,"t":{"322":{"position":[[622,1]]},"403":{"position":[[197,1]]}}}],["b.j",{"_index":874,"t":{"451":{"position":[[49,4]]},"472":{"position":[[37,4]]},"539":{"position":[[45,4]]}}}],["babel",{"_index":832,"t":{"435":{"position":[[2194,6]]}}}],["babelrc",{"_index":801,"t":{"435":{"position":[[15,8]]}}}],["back",{"_index":355,"t":{"355":{"position":[[659,4]]}}}],["backend",{"_index":574,"t":{"382":{"position":[[118,8],[166,8]]}}}],["backward",{"_index":1049,"t":{"608":{"position":[[169,8],[281,8]]}}}],["badg",{"_index":148,"t":{"328":{"position":[[18,6]]},"608":{"position":[[14,6]]}}}],["bar",{"_index":516,"t":{"374":{"position":[[241,6],[528,6]]},"407":{"position":[[730,6]]}}}],["base",{"_index":506,"t":{"372":{"position":[[73,5]]},"608":{"position":[[983,5]]}}}],["basic",{"_index":797,"t":{"433":{"position":[[608,5]]}}}],["befor",{"_index":204,"t":{"334":{"position":[[474,6]]},"612":{"position":[[1651,6]]}}}],["begin",{"_index":787,"t":{"429":{"position":[[551,5]]},"583":{"position":[[1518,5]]},"610":{"position":[[1555,5]]}}}],["behavior",{"_index":317,"t":{"353":{"position":[[363,8]]}}}],["below",{"_index":918,"t":{"544":{"position":[[13,5]]},"555":{"position":[[13,5]]},"568":{"position":[[13,5]]},"585":{"position":[[13,5]]}}}],["benchmark",{"_index":258,"t":{"344":{"position":[[63,10],[85,10],[115,10]]}}}],["beta",{"_index":990,"t":{"581":{"position":[[1222,7],[1239,7]]}}}],["better",{"_index":212,"t":{"336":{"position":[[168,6]]},"360":{"position":[[449,6]]},"456":{"position":[[334,6]]}}}],["between",{"_index":415,"t":{"355":{"position":[[2648,7]]},"410":{"position":[[107,7]]}}}],["bin.000007",{"_index":671,"t":{"398":{"position":[[311,12]]}}}],["binari",{"_index":226,"t":{"336":{"position":[[362,6]]},"351":{"position":[[584,6]]}}}],["bind",{"_index":251,"t":{"342":{"position":[[99,8],[173,8]]},"366":{"position":[[4,4]]}}}],["binlog",{"_index":256,"t":{"342":{"position":[[249,6]]}}}],["binlogpo",{"_index":672,"t":{"398":{"position":[[324,10]]}}}],["binlogstream",{"_index":661,"t":{"398":{"position":[[100,12]]}}}],["binlogstream.pip",{"_index":675,"t":{"398":{"position":[[381,18]]}}}],["blob",{"_index":389,"t":{"355":{"position":[[1607,4]]}}}],["block",{"_index":168,"t":{"330":{"position":[[176,6]]},"398":{"position":[[362,8]]},"618":{"position":[[137,6],[435,6],[769,6],[1154,6],[1497,6]]}}}],["bluebird",{"_index":638,"t":{"394":{"position":[[519,8],[535,8],[549,11],[595,8],[725,9]]}}}],["boolean",{"_index":309,"t":{"353":{"position":[[146,7]]},"366":{"position":[[105,7]]}}}],["both",{"_index":1144,"t":{"616":{"position":[[1417,4],[1748,4]]},"618":{"position":[[1343,4],[1682,4]]}}}],["bound",{"_index":1051,"t":{"608":{"position":[[230,5]]}}}],["branch",{"_index":64,"t":{"322":{"position":[[154,6]]}}}],["browser",{"_index":80,"t":{"322":{"position":[[399,7]]}}}],["buffer",{"_index":353,"t":{"355":{"position":[[630,8],[1667,8]]},"366":{"position":[[222,6]]}}}],["buffer.from",{"_index":840,"t":{"443":{"position":[[180,12]]},"464":{"position":[[150,12]]},"531":{"position":[[203,12]]}}}],["buffer.from('8bb6118f8fd6935ad0876a3be34a717d32708ffd",{"_index":843,"t":{"443":{"position":[[384,55]]},"464":{"position":[[429,55]]},"531":{"position":[[583,55]]}}}],["bug",{"_index":1093,"t":{"608":{"position":[[1488,4]]}}}],["build",{"_index":197,"t":{"334":{"position":[[266,5],[306,5]]}}}],["built",{"_index":40,"t":{"318":{"position":[[16,5]]}}}],["bun",{"_index":871,"t":{"449":{"position":[[119,3]]},"470":{"position":[[119,3]]},"537":{"position":[[119,3]]}}}],["byte",{"_index":313,"t":{"353":{"position":[[242,5]]}}}],["bytes/sec",{"_index":722,"t":{"407":{"position":[[240,9]]}}}],["c",{"_index":548,"t":{"378":{"position":[[83,1]]},"390":{"position":[[635,1],[1015,1]]},"403":{"position":[[214,1]]},"435":{"position":[[122,1],[1592,1]]}}}],["c.end",{"_index":558,"t":{"378":{"position":[[310,8]]},"435":{"position":[[936,8],[1824,8]]}}}],["c.execute('select",{"_index":554,"t":{"378":{"position":[[251,17]]},"435":{"position":[[484,17],[569,17],[695,17],[727,17],[1765,17]]}}}],["c.query('show",{"_index":551,"t":{"378":{"position":[[187,13]]},"435":{"position":[[298,13],[1701,13]]}}}],["c.query('som",{"_index":805,"t":{"435":{"position":[[379,13]]}}}],["ca",{"_index":849,"t":{"445":{"position":[[294,3],[575,3]]},"447":{"position":[[202,2],[214,2]]},"449":{"position":[[153,2]]},"466":{"position":[[264,3],[620,3]]},"468":{"position":[[190,2],[202,2]]},"470":{"position":[[153,2]]},"533":{"position":[[317,3],[774,3]]},"535":{"position":[[198,2],[210,2]]},"537":{"position":[[153,2]]}}}],["cach",{"_index":445,"t":{"360":{"position":[[215,6],[256,6],[322,5],[416,5],[480,5]]},"362":{"position":[[52,5]]},"364":{"position":[[36,6],[63,6],[173,5]]},"456":{"position":[[280,5]]}}}],["call",{"_index":350,"t":{"355":{"position":[[520,4],[560,4],[1549,5],[2556,6]]},"360":{"position":[[209,5]]},"429":{"position":[[88,4],[628,5],[1032,5]]}}}],["callback",{"_index":297,"t":{"351":{"position":[[453,9]]},"355":{"position":[[1443,9]]},"362":{"position":[[598,8]]},"388":{"position":[[116,8]]},"390":{"position":[[317,8]]},"392":{"position":[[185,8],[1147,8],[1573,8]]},"396":{"position":[[151,8],[404,8]]}}}],["callback'",{"_index":1137,"t":{"616":{"position":[[470,10],[822,10],[1226,10],[1561,10]]}}}],["callback(nul",{"_index":391,"t":{"355":{"position":[[1646,14]]}}}],["callback.j",{"_index":836,"t":{"439":{"position":[[51,11]]},"441":{"position":[[55,11]]},"443":{"position":[[55,11]]},"445":{"position":[[55,11]]},"447":{"position":[[242,11]]},"460":{"position":[[45,11]]},"462":{"position":[[43,11]]},"464":{"position":[[43,11]]},"466":{"position":[[43,11]]},"468":{"position":[[230,11]]},"478":{"position":[[47,11]]},"480":{"position":[[42,11]]},"482":{"position":[[57,11]]},"492":{"position":[[47,11]]},"494":{"position":[[42,11]]},"496":{"position":[[57,11]]},"504":{"position":[[47,11]]},"506":{"position":[[42,11]]},"508":{"position":[[57,11]]},"516":{"position":[[47,11]]},"518":{"position":[[42,11]]},"520":{"position":[[57,11]]},"527":{"position":[[53,11]]},"529":{"position":[[51,11]]},"531":{"position":[[51,11]]},"533":{"position":[[51,11]]},"535":{"position":[[238,11]]},"546":{"position":[[30,11]]},"548":{"position":[[40,11]]},"557":{"position":[[30,11]]},"559":{"position":[[40,11]]},"570":{"position":[[30,11]]},"572":{"position":[[40,11]]},"574":{"position":[[40,11]]},"587":{"position":[[30,11]]},"589":{"position":[[40,11]]}}}],["candid",{"_index":1072,"t":{"608":{"position":[[859,9]]}}}],["capabilityflag",{"_index":277,"t":{"351":{"position":[[91,15]]},"566":{"position":[[369,16]]},"581":{"position":[[859,16],[889,16],[919,16]]}}}],["case",{"_index":383,"t":{"355":{"position":[[1461,5]]},"407":{"position":[[352,4]]},"447":{"position":[[148,4]]},"468":{"position":[[136,4]]},"535":{"position":[[144,4]]}}}],["catalog",{"_index":986,"t":{"581":{"position":[[1139,8]]}}}],["catch",{"_index":599,"t":{"388":{"position":[[484,5],[671,5]]},"390":{"position":[[719,5]]},"392":{"position":[[1334,5]]},"396":{"position":[[592,5]]},"435":{"position":[[415,5]]},"439":{"position":[[203,5]]},"441":{"position":[[248,5]]},"443":{"position":[[252,5]]},"445":{"position":[[347,5]]},"447":{"position":[[426,5],[591,5]]},"460":{"position":[[264,5]]},"462":{"position":[[305,5]]},"464":{"position":[[309,5]]},"466":{"position":[[404,5]]},"468":{"position":[[483,5],[642,5]]},"478":{"position":[[285,5]]},"480":{"position":[[306,5]]},"482":{"position":[[323,5]]},"492":{"position":[[271,5]]},"494":{"position":[[292,5]]},"496":{"position":[[309,5]]},"504":{"position":[[258,5]]},"506":{"position":[[279,5]]},"508":{"position":[[296,5]]},"516":{"position":[[266,5]]},"518":{"position":[[287,5]]},"520":{"position":[[304,5]]},"527":{"position":[[373,5]]},"529":{"position":[[414,5]]},"531":{"position":[[418,5]]},"533":{"position":[[513,5]]},"535":{"position":[[592,5],[758,5]]},"546":{"position":[[211,5]]},"548":{"position":[[247,5]]},"557":{"position":[[230,5]]},"559":{"position":[[266,5]]},"570":{"position":[[216,5]]},"572":{"position":[[252,5]]},"574":{"position":[[271,5]]},"587":{"position":[[221,5]]},"589":{"position":[[257,5]]},"618":{"position":[[131,5],[276,5],[429,5],[603,5],[763,5],[974,5],[1148,5],[1244,5],[1491,5],[1585,5]]}}}],["catch((err",{"_index":375,"t":{"355":{"position":[[1176,12]]},"374":{"position":[[620,12]]},"435":{"position":[[1426,12]]}}}],["catch(console.log",{"_index":647,"t":{"394":{"position":[[1607,19]]}}}],["catch(funct",{"_index":825,"t":{"435":{"position":[[1880,15]]}}}],["caus",{"_index":1088,"t":{"608":{"position":[[1407,5]]}}}],["caution",{"_index":109,"t":{"322":{"position":[[816,7]]},"608":{"position":[[387,7]]}}}],["cb",{"_index":392,"t":{"355":{"position":[[1835,3]]},"407":{"position":[[754,4]]},"581":{"position":[[190,3]]}}}],["cb(err",{"_index":399,"t":{"355":{"position":[[2196,8]]}}}],["cb(null",{"_index":394,"t":{"355":{"position":[[2065,8]]},"407":{"position":[[874,8]]},"581":{"position":[[391,9],[455,8]]}}}],["cd",{"_index":68,"t":{"322":{"position":[[189,2],[643,2]]}}}],["cert",{"_index":848,"t":{"445":{"position":[[245,5],[526,5]]},"447":{"position":[[217,4]]},"449":{"position":[[26,5],[156,4]]},"466":{"position":[[215,5],[571,5]]},"468":{"position":[[205,4]]},"470":{"position":[[26,5],[156,4]]},"533":{"position":[[268,5],[725,5]]},"535":{"position":[[213,4]]},"537":{"position":[[26,5],[156,4]]}}}],["cert.pem",{"_index":845,"t":{"445":{"position":[[76,8],[283,10],[326,11],[564,10],[607,11]]},"447":{"position":[[205,8]]},"466":{"position":[[64,8],[253,10],[296,11],[609,10],[652,11]]},"468":{"position":[[193,8]]},"533":{"position":[[72,8],[306,10],[349,11],[763,10],[806,11]]},"535":{"position":[[201,8]]}}}],["certs/ca",{"_index":844,"t":{"445":{"position":[[67,8]]},"466":{"position":[[55,8]]},"533":{"position":[[63,8]]}}}],["chang",{"_index":82,"t":{"322":{"position":[[420,7]]},"326":{"position":[[39,7],[106,8],[211,8],[227,6],[303,7],[343,7],[363,6]]},"425":{"position":[[24,7]]},"427":{"position":[[24,7]]},"429":{"position":[[24,7]]},"608":{"position":[[301,7],[471,7],[747,8],[930,7]]}}}],["changedrow",{"_index":769,"t":{"425":{"position":[[148,11],[657,12]]},"427":{"position":[[554,12],[680,12]]},"429":{"position":[[868,12]]},"583":{"position":[[554,14]]},"610":{"position":[[572,14]]}}}],["changeus",{"_index":476,"t":{"362":{"position":[[749,13]]},"407":{"position":[[963,12]]}}}],["characterset",{"_index":276,"t":{"351":{"position":[[77,13]]},"566":{"position":[[352,13]]},"581":{"position":[[839,13],[1247,13]]}}}],["check",{"_index":183,"t":{"334":{"position":[[13,5],[119,5],[158,6]]},"338":{"position":[[7,5]]},"340":{"position":[[57,5]]},"418":{"position":[[374,5]]},"433":{"position":[[13,5],[372,8],[477,8]]}}}],["checkout",{"_index":97,"t":{"322":{"position":[[612,8]]}}}],["ci",{"_index":71,"t":{"322":{"position":[[240,2],[679,2]]}}}],["class",{"_index":798,"t":{"433":{"position":[[628,5]]},"612":{"position":[[1428,5],[1669,5]]}}}],["classif",{"_index":1079,"t":{"608":{"position":[[1098,15]]}}}],["classifi",{"_index":1062,"t":{"608":{"position":[[618,10],[1354,10]]}}}],["clear",{"_index":196,"t":{"334":{"position":[[256,5],[292,5]]}}}],["cli",{"_index":92,"t":{"322":{"position":[[541,3]]},"435":{"position":[[2201,5]]}}}],["client",{"_index":229,"t":{"336":{"position":[[382,6]]},"342":{"position":[[68,6],[143,7],[220,6]]},"351":{"position":[[276,6],[383,7]]},"353":{"position":[[318,7]]},"355":{"position":[[51,6],[1577,6],[2656,6]]},"357":{"position":[[68,6]]},"382":{"position":[[237,6],[281,6]]},"401":{"position":[[171,6]]}}}],["clientflag",{"_index":921,"t":{"566":{"position":[[62,11]]}}}],["clientflags.compress",{"_index":931,"t":{"566":{"position":[[397,21]]}}}],["clientplugindata(password1",{"_index":434,"t":{"357":{"position":[[789,27]]}}}],["clientplugindata(password2",{"_index":436,"t":{"357":{"position":[[929,27]]}}}],["clientplugindata(password3",{"_index":438,"t":{"357":{"position":[[1069,27]]}}}],["clone",{"_index":95,"t":{"322":{"position":[[557,5]]}}}],["close",{"_index":321,"t":{"353":{"position":[[405,5]]},"360":{"position":[[250,5]]},"362":{"position":[[72,6],[635,5]]},"364":{"position":[[187,7]]},"608":{"position":[[895,5]]}}}],["co",{"_index":545,"t":{"378":{"position":[[39,2],[353,2]]},"435":{"position":[[1548,2],[2004,2]]}}}],["co(funct",{"_index":547,"t":{"378":{"position":[[59,12]]},"435":{"position":[[1568,12]]}}}],["co.j",{"_index":800,"t":{"435":{"position":[[9,5]]}}}],["code",{"_index":167,"t":{"330":{"position":[[171,4]]},"353":{"position":[[230,4]]},"355":{"position":[[821,4]]},"433":{"position":[[24,4]]},"449":{"position":[[98,4]]},"470":{"position":[[98,4]]},"537":{"position":[[98,4]]},"581":{"position":[[425,5],[498,5],[683,5]]}}}],["column",{"_index":460,"t":{"362":{"position":[[239,6],[334,6],[480,8]]},"566":{"position":[[832,7],[955,7],[1029,9],[1066,9]]}}}],["columnlength",{"_index":993,"t":{"581":{"position":[[1265,13]]}}}],["columntyp",{"_index":995,"t":{"581":{"position":[[1284,11]]}}}],["come",{"_index":454,"t":{"362":{"position":[[37,5]]}}}],["command",{"_index":203,"t":{"334":{"position":[[466,7]]},"351":{"position":[[203,8]]},"353":{"position":[[6,7],[162,7],[222,7],[291,8]]},"435":{"position":[[842,8]]},"608":{"position":[[547,7]]}}}],["commandcod",{"_index":310,"t":{"353":{"position":[[190,13]]}}}],["commit",{"_index":205,"t":{"334":{"position":[[495,7]]}}}],["commonli",{"_index":1043,"t":{"604":{"position":[[33,8]]}}}],["compat",{"_index":169,"t":{"330":{"position":[[187,10]]},"449":{"position":[[103,10]]},"470":{"position":[[103,10]]},"537":{"position":[[103,10]]},"608":{"position":[[178,14],[290,10],[1122,13]]}}}],["compil",{"_index":120,"t":{"324":{"position":[[121,8]]},"382":{"position":[[101,9]]}}}],["complet",{"_index":88,"t":{"322":{"position":[[500,8]]},"324":{"position":[[52,8]]}}}],["complianc",{"_index":187,"t":{"334":{"position":[[49,10]]}}}],["compon",{"_index":114,"t":{"324":{"position":[[12,9],[165,11],[273,10]]},"326":{"position":[[12,9],[285,10]]},"328":{"position":[[203,10]]},"330":{"position":[[121,9],[229,10]]},"334":{"position":[[173,10]]}}}],["compress",{"_index":225,"t":{"336":{"position":[[350,11]]}}}],["concept",{"_index":794,"t":{"433":{"position":[[89,9]]}}}],["config",{"_index":242,"t":{"340":{"position":[[239,6]]},"355":{"position":[[126,6],[345,6],[1347,6]]},"357":{"position":[[354,6]]},"401":{"position":[[75,6]]},"529":{"position":[[19,7]]},"531":{"position":[[19,7]]},"533":{"position":[[19,7]]},"535":{"position":[[19,7]]},"539":{"position":[[19,7]]}}}],["confirm",{"_index":1133,"t":{"616":{"position":[[59,9]]},"618":{"position":[[59,9]]}}}],["conn",{"_index":364,"t":{"355":{"position":[[832,4],[1682,4]]},"357":{"position":[[518,4]]},"376":{"position":[[75,4]]},"392":{"position":[[1626,4],[1885,5]]},"394":{"position":[[1435,4],[1522,4]]},"396":{"position":[[166,4],[284,4]]},"414":{"position":[[128,4]]},"416":{"position":[[116,4]]},"421":{"position":[[107,4],[552,4]]},"423":{"position":[[124,4]]},"425":{"position":[[363,4]]},"427":{"position":[[214,4]]},"429":{"position":[[341,4]]},"566":{"position":[[201,6]]},"581":{"position":[[599,6]]},"583":{"position":[[724,4]]},"596":{"position":[[444,4]]},"598":{"position":[[418,4]]},"600":{"position":[[455,4]]},"602":{"position":[[481,4]]},"610":{"position":[[761,4]]},"612":{"position":[[1450,5]]}}}],["conn.clos",{"_index":980,"t":{"581":{"position":[[700,13],[1482,13]]}}}],["conn.end",{"_index":531,"t":{"376":{"position":[[210,11]]},"394":{"position":[[1639,12]]},"583":{"position":[[2089,11]]},"596":{"position":[[1357,11]]},"598":{"position":[[1214,11]]},"600":{"position":[[1249,11]]},"602":{"position":[[1392,11]]},"610":{"position":[[2124,11]]}}}],["conn.execute('select",{"_index":530,"t":{"376":{"position":[[161,20]]},"418":{"position":[[108,20]]}}}],["conn.execute>(sql",{"_index":788,"t":{"429":{"position":[[650,53]]}}}],["conn.query>('cal",{"_index":1023,"t":{"583":{"position":[[1624,45]]},"610":{"position":[[1661,45]]}}}],["conn.query('drop",{"_index":1007,"t":{"583":{"position":[[823,33],[1343,33]]},"596":{"position":[[543,33]]},"598":{"position":[[517,33]]},"600":{"position":[[554,33]]},"602":{"position":[[580,33]]},"610":{"position":[[860,33],[1380,33]]}}}],["conn.query(sql",{"_index":774,"t":{"425":{"position":[[460,32]]}}}],["conn.query(sql",{"_index":780,"t":{"427":{"position":[[349,34]]}}}],["conn.query('select",{"_index":759,"t":{"421":{"position":[[185,35]]}}}],["conn.query('show",{"_index":760,"t":{"421":{"position":[[321,33],[797,33]]}}}],["conn.query(sql",{"_index":765,"t":{"423":{"position":[[279,34]]}}}],["conn.query - -搜索文档 - - + +搜索文档 + + diff --git a/zh-CN/sitemap.xml b/zh-CN/sitemap.xml index f25697b254..899ac5fb6f 100644 --- a/zh-CN/sitemap.xml +++ b/zh-CN/sitemap.xml @@ -1 +1 @@ -https://sidorares.github.io/node-mysql2/zh-CN/searchweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docsweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/acknowledgementsweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/api-and-configurationsweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/category/procedure-call-packetweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/category/queriesweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/category/row-data-packetweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/category/sslweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/category/typescriptweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/contributingweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/contributing/websiteweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/documentationweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/documentation/authentication-switchweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/documentation/extrasweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/documentation/mysql-serverweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/documentation/prepared-statementsweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/documentation/promise-wrapperweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/documentation/typescript-examplesweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examplesweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/binlog-watcherweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/connect-over-socksweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/executeweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/mysqlproxyweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/pass-shaweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/pool-testweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/prepareweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/promise-co-awaitweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/queries/selectweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/serverweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/ssl/rds-sslweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/ssl/select-over-sslweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-classweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/procedure-call-packetweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-arrayweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/typescript/row-data/multi-statementsweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-arrayweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array-multi-statementsweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-data-packetweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/faqweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/faq/how-to-handle-errorsweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/history-and-why-mysq2weekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/stability-badgesweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/weekly0.5 \ No newline at end of file +https://sidorares.github.io/node-mysql2/zh-CN/searchweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/tagsweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/tags/create-connectionweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/tags/create-poolweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/tags/create-pool-clusterweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/tags/executeweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/tags/parametersweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/tags/placeholdersweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/tags/prepared-statementsweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/tags/queryweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/tags/rdsweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/tags/sha-1weekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/tags/socksweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/tags/sslweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/tags/uriweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docsweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/acknowledgementsweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/api-and-configurationsweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/contributingweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/contributing/websiteweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/documentationweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/documentation/authentication-switchweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/documentation/extrasweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/documentation/mysql-serverweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/documentation/prepared-statementsweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/documentation/promise-wrapperweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/documentation/typescript-examplesweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examplesweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/binlog-watcherweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/connections/create-connectionweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/connections/create-poolweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/connections/createPoolClusterweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/promise-wrapper/co-awaitweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/queries/prepared-statementsweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/deleteweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/insertweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/selectweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/queries/prepared-statements/updateweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/queries/simple-queriesweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/queries/simple-queries/deleteweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/queries/simple-queries/insertweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/queries/simple-queries/selectweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/queries/simple-queries/updateweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/tests/mysql-proxyweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/tests/poolweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/tests/serverweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/typescript/basic-custom-classweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/indexweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/typescript/procedure-call/row-as-arrayweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/typescript/row-data/indexweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/typescript/row-data/multi-statementsweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-arrayweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/examples/typescript/row-data/row-as-array-multi-statementsweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/faqweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/faq/how-to-handle-errorsweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/history-and-why-mysq2weekly0.5https://sidorares.github.io/node-mysql2/zh-CN/docs/stability-badgesweekly0.5https://sidorares.github.io/node-mysql2/zh-CN/weekly0.5 \ No newline at end of file